1 2016-05-03 Jan Hubicka <hubicka@ucw.cz>
3 * cgraph.c (symbol_table::create_edge): Set inline_failed.
4 (cgraph_edge::make_direct): Likewise.
5 (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
6 * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
7 * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
9 * ipa-inline-analysis.c (initialize_inline_failed): Preserve
10 CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
11 (compute_inline_parameters): Set inline_failed for thunks.
12 (inline_analyze_function): Cleanup.
13 * ipa-inline.c (can_inline_edge_p): Do not deal with
14 call_stmt_cannot_inline_p.
15 (can_early_inline_edge_p): Likewise.
16 (early_inliner): Initialize inline_failed.
17 * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
19 2016-05-03 Uros Bizjak <ubizjak@gmail.com>
21 * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
22 from nonimm_ssenomem_operand.
23 (nonimm_ssenomem_operand): New predicate.
24 * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
25 as operand 0 predicate.
26 (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
27 Disable unsupported alternatives using "enabled" attribute.
28 Use register_ssemem_operand as operand 0 predicate.
29 (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
31 2016-05-03 Marek Polacek <polacek@redhat.com>
34 * input.c (expansion_point_location): New function.
35 * input.h (expansion_point_location): Declare.
37 2016-05-03 Pierre-Marie de Rodat <derodat@adacore.com>
39 * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
40 occurence with frame_offset_ ones.
42 2016-05-03 Alan Modra <amodra@gmail.com>
44 PR rtl-optimization/70890
45 * ira.c (combine_and_move_insns): When moving def_insn, remove
48 2016-05-03 Dominik Vogt <vogt@linux.vnet.ibm.com>
50 * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
51 ("*r<noxa>sbg_<mode>_srl"): New define_insns.
52 ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
53 ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
55 2016-05-03 Alan Modra <amodra@gmail.com>
57 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
58 for SAVE_MULTIPLE/STORE_MULTIPLE.
60 2016-05-03 Jakub Jelinek <jakub@redhat.com>
62 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
63 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead
66 2016-05-03 Richard Biener <rguenther@suse.de>
68 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
70 (gimplify_arg): Likewise.
71 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
72 re-writing the result to a decl if required.
73 (internal_get_tmp_var): Add allow_ssa parameter
74 and override into_ssa with it.
75 (get_formal_tmp_var): Adjust.
76 (get_initialized_tmp_var): Add allow_ssa parameter.
77 (gimplify_arg): Add allow_ssa parameter and avoid generating
78 SSA names for the result false.
79 (gimplify_call_expr): If the call may return twice do not
80 gimplify parameters into SSA.
81 (prepare_gimple_addressable): Do not allow an SSA name as temporary.
82 (gimplify_modify_expr): Adjust assert. For noreturn calls
83 with a SSA name LHS adjust its def.
84 (gimplify_save_expr): Do not allow an SSA name as save-expr result.
85 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
86 (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
87 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
88 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
89 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
90 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
91 (optimize_target_teams): Do not allow SSA names for clause operands.
92 (gimplify_expr): Likewise for where we mark the result addressable.
93 * passes.def (pass_init_datastructures): Remove.
94 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
95 (rewrite_stmt): Likewise.
96 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
97 (replace_locals_op): Replace SSA names.
98 (copy_gimple_seq_and_replace_locals): Init src_cfun.
99 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
100 * cgraph.c (release_function_body): Free CFG annotations only
101 when we have a CFG. Simplify.
102 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
103 force_gimple_operand instead of get_initialized_tmp_var.
104 * tree-pass.h (make_pass_init_datastructures): Remove.
105 * tree-ssa.c (execute_init_datastructures): Remove.
106 (pass_data_init_datastructures): Likewise.
107 (class pass_init_datastructures): Likewise.
108 (make_pass_init_datastructures): Likewise.
109 * omp-low.c (create_omp_child_function): Init SSA data structures.
110 (grid_expand_target_grid_body): Likewise.
111 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
112 name before adding it to names_to_release.
113 (remove_bb): Always release SSA defs.
114 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
115 before dereferencing it.
116 * cgraphunit.c (init_lowered_empty_function): Always
117 int SSA data structures.
118 * tree-ssanames.c (release_defs): Remove assert that we are in
120 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
122 2016-05-03 Jakub Jelinek <jakub@redhat.com>
123 Uros Bizjak <ubizjak@gmail.com>
125 PR rtl-optimization/70467
126 * config/i386/predicates.md (x86_64_hilo_int_operand,
127 x86_64_hilo_general_operand): New predicates.
128 * config/i386/constraints.md (Wd): New constraint.
129 * config/i386/i386.md (mode attr di): Use Wd instead of e.
130 (general_hilo_operand): New mode attr.
131 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
132 instead of <general_operand>.
133 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
134 x86_64_hilo_general_operand instead of <general_operand>.
136 2016-05-03 Jakub Jelinek <jakub@redhat.com>
138 PR tree-optimization/70916
139 * tree-if-conv.c (constant_or_ssa_name): Removed.
140 (fold_build_cond_expr): Use is_gimple_val instead of
141 constant_or_ssa_name.
143 PR tree-optimization/70916
144 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
145 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
148 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
149 (optimize_atomic_bit_test_and): New function.
150 (pass_fold_builtins::execute): Use it.
151 * optabs.def (atomic_bit_test_and_set_optab,
152 atomic_bit_test_and_complement_optab,
153 atomic_bit_test_and_reset_optab): New optabs.
154 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
155 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
156 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
157 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
158 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
159 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
160 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
161 * doc/md.texi (atomic_bit_test_and_set@var{mode},
162 atomic_bit_test_and_complement@var{mode},
163 atomic_bit_test_and_reset@var{mode}): Document.
164 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
165 atomic_bit_test_and_complement<mode>,
166 atomic_bit_test_and_reset<mode>): New expanders.
167 (atomic_bit_test_and_set<mode>_1,
168 atomic_bit_test_and_complement<mode>_1,
169 atomic_bit_test_and_reset<mode>_1): New insns.
171 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
173 PR rtl-optimization/70687
174 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
175 instead of unsigned HOST_WIDE_INT.
177 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
179 PR rtl-optimization/44281
180 * hard-reg-set.h (struct target_hard_regs): New field
181 x_fixed_nonglobal_reg_set.
182 (fixed_nonglobal_reg_set): New macro.
183 * reginfo.c (init_reg_sets_1): Initialize it.
184 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
186 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
188 2016-05-03 Bin Cheng <bin.cheng@arm.com>
190 PR tree-optimization/56541
191 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
192 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
193 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
194 (any_complicated_phi): new static variable.
195 (aggressive_if_conv): delete.
196 (if_convertible_phi_p): support phis with more than two arguments.
197 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
199 (ifcvt_split_critical_edges): support phis with more than two
200 arguments by checking new parameter. only split critical edges
202 (tree_if_conversion): handle simd pragma marked loop using new
203 local variable aggressive_if_conv. check any_complicated_phi.
205 2016-05-03 Bin Cheng <bin.cheng@arm.com>
207 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
210 2016-05-03 Bin Cheng <bin.cheng@arm.com>
212 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
215 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
217 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
218 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
219 define_insn_and_split.
220 (mulsi3_i): New define_insn_and_split.
221 (mulsi3_call): Convert to define_insn.
222 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
225 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
227 * machmode.h (mode_complex): Add support to give the complex mode
229 (GET_MODE_COMPLEX_MODE): Likewise.
230 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
231 stored by build_complex_type and gfc_build_complex_type instead of
232 trying to figure out the appropriate mode based on the size. Raise
233 an assertion error, if the type was not set.
234 * genmodes.c (struct mode_data): Add field for the complex type of
236 (blank_mode): Likewise.
237 (make_complex_modes): Remember the complex mode created in the
239 (emit_mode_complex): Write out the mode_complex array to map a
240 type mode to the complex version.
241 (emit_insn_modes_c): Likewise.
242 * tree.c (build_complex_type): Set the complex type to use before
244 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
245 support for __float128 complex datatypes.
246 (rs6000_hard_regno_mode_ok): Likewise.
247 (rs6000_setup_reg_addr_masks): Likewise.
248 (rs6000_complex_function_value): Likewise.
249 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
250 __float128 and __ibm128 complex.
251 (FLOAT128_IBM_P): Likewise.
252 (ALTIVEC_ARG_MAX_RETURN): Likewise.
253 * doc/extend.texi (Additional Floating Types): Document that
254 -mfloat128 must be used to enable __float128. Document complex
255 __float128 and __ibm128 support.
257 2016-05-02 Jakub Jelinek <jakub@redhat.com>
260 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
261 char/short arguments promoted to int because of promote_prototypes.
263 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
265 * config/i386/predicates.md (register_ssemem_operand): New predicate.
266 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
267 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
268 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
269 alternatives using "enabled" attribute. Use register_ssemem_operand
270 as operand 1 predicate.
271 (*cmpi<unord>xf_i387): Split XFmode pattern from
272 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
273 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
274 *absneg<mode>2_i387. Disable unsupported alternatives using
276 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
278 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
280 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
282 (oacc_loop_process): Check mask for loop termination.
284 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
286 * cif-code.def (CIF_THUNK): Add.
287 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
290 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
292 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
293 (dump_inline_summary): Dump it.
294 (fp_expression_p): New predicate.
295 (estimate_function_body_sizes): Use it.
296 (inline_merge_summary): Merge fp_expressions.
297 (inline_read_section): Read fp_expressions.
298 (inline_write_summary): Write fp_expressions.
299 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
300 codegen boundary if either caller or callee is !fp_expressions.
301 * ipa-inline.h (inline_summary): Add fp_expressions.
302 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
303 to fp_expressions be sure the fp generation flags are updated.
305 2016-05-02 Jakub Jelinek <jakub@redhat.com>
307 PR rtl-optimization/70467
308 * cse.c (cse_insn): Handle no-op MEM moves after folding.
310 PR rtl-optimization/70467
311 * ipa-pure-const.c (check_call): Handle internal calls even in
312 ipa mode like in local mode.
314 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
316 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
318 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
320 * match.pd (X u< X, X u> X): New transformations.
322 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
324 * flag-types.h (enum warn_strict_overflow_code): Move ...
325 * coretypes.h: ... here.
326 * fold-const.h (fold_overflow_warning): Declare.
327 * fold-const.c (fold_overflow_warning): Make non-static.
328 (fold_comparison): Move the transformation of X +- C1 CMP C2
329 into X CMP C2 -+ C1 ...
330 * match.pd: ... here.
331 * gimple-fold.c (fold_stmt_1): Protect with
332 fold_defer_overflow_warnings.
334 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
336 * omp-low.c (struct oacc_loop): Add 'inner' field.
337 (new_oacc_loop_raw): Initialize it to zero.
338 (oacc_loop_fixed_partitions): Initialize it.
339 (oacc_loop_auto_partitions): Partition outermost loop to outermost
340 available partitioning.
342 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
344 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
346 (umulsidi3): Likewise.
347 (indirect_jump): Fix jump instruction assembly patterns.
349 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
352 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
353 (nvptx_function_value): Assert non-NULL cfun.
355 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
357 PR rtl-optimization/70886
358 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
360 * cselib.h (rtx_equal_for_cselib_1): Declare.
361 (rtx_equal_for_cselib_p: New inline function.
362 * cselib.c (rtx_equal_for_cselib_p): Delete.
363 (rtx_equal_for_cselib_1): Make public.
365 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
367 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
368 (register_mixssei387nonimm_operand): Remove predicate.
369 * config/i386/i386.md (*fop_<mode>_comm): Merge from
370 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
371 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
372 for TARGET_MIX_SSE_I387 alternatives.
373 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
374 Disable unsupported alternatives using "enabled" attribute. Use
375 nonimm_ssenomem_operand as operand 1 predicate. Also check
376 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
378 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
380 * tree.c (cst_and_fits_in_hwi): Simplify.
382 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
384 * tree.h (wi::to_wide): New function.
385 * expr.c (expand_expr_real_1): Use wi::to_wide.
386 * fold-const.c (int_const_binop_1): Likewise.
387 (extract_muldiv_1): Likewise.
389 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
391 * wide-int.h: Update offset_int and widest_int documentation.
392 (WI_SIGNED_SHIFT_RESULT): New macro.
393 (wi::binary_shift): Define signed_shift_result_type for
394 shifts on offset_int- and widest_int-like types.
395 (generic_wide_int): Support <<= and >>= if << and >> are supported.
396 * tree.h (int_bit_position): Use shift operators instead of wi::
398 * alias.c (adjust_offset_for_component_ref): Likewise.
399 * expr.c (get_inner_reference): Likewise.
400 * fold-const.c (fold_comparison): Likewise.
401 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
402 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
403 * tree-dfa.c (get_ref_base_and_extent): Likewise.
404 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
405 (stmt_kills_ref_p): Likewise.
406 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
407 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
408 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
409 (ao_ref_init_from_vn_reference): Likewise.
411 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
413 * wide-int.h: Update offset_int and widest_int documentation.
414 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
415 (wi::binary_traits): Allow ordered comparisons between offset_int and
416 offset_int, between widest_int and widest_int, and between either
417 of these types and basic C types.
418 (operator <, <=, >, >=): Define for the same combinations.
419 * tree.h (tree_int_cst_lt): Use comparison operators instead
421 (tree_int_cst_le): Likewise.
422 * gimple-fold.c (fold_array_ctor_reference): Likewise.
423 (fold_nonarray_ctor_reference): Likewise.
424 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
425 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
426 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
427 * tree-sra.c (completely_scalarize): Likewise.
428 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
429 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
430 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
431 (check_for_binary_op_overflow): Likewise.
432 (search_for_addr_array): Likewise.
433 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
435 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
437 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
438 (arc_save_restore): Likewise.
439 (arc_dwarf_register_span): Likewise.
440 (arc_output_pic_addr_const): Initialize suffix variable.
442 2016-05-02 Martin Liska <mliska@suse.cz>
444 * symbol-summary.h (function_summary::function_summary):
445 Remove checking assert for all cgraph nodes.
446 (function_summary::get): Check summary_uid.
447 (symtab_insertion): Check summary_uid.
449 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
451 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
452 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
454 (arc_dwarf_register_span): Remove enum keyword.
455 (compact_memory_operand_p): New function.
456 * config/arc/arc.h (reg_class): Add code density register classes.
457 (REG_CLASS_NAMES): Likewise.
458 (REG_CLASS_CONTENTS): Likewise.
459 * config/arc/arc.md (*movqi_insn): Add code density instructions.
460 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
461 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
462 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
463 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
465 (h, Rcd, Rsd, Rzd): New register constraints.
466 (T): Use compact_memory_operand_p function.
467 * config/arc/predicates.md (compact_load_memory_operand): Remove.
469 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
471 * config/sh/sh.md (*negnegt, *movtt): Remove.
473 2016-05-02 Marek Polacek <polacek@redhat.com>
474 Tom de Vries <tom@codesourcery.com>
476 PR tree-optimization/70700
477 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
478 bigger than FIRST_REF_NODE.
480 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
483 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
485 (prepare_cbranch_operands): Don't use scratch register. Assume that
486 function is used when pseudos can be created.
487 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
488 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
489 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
490 define_expand. Allow it only when pseudos can be created.
491 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
493 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
495 * config/i386/constraints.md (BC): Only allow -1 operands.
496 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
497 Add "enabled" attribute. Update XI mode attribute calculation.
498 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
499 (*movoi_internal_avx): Update XI mode attribute calculation.
500 (*movti_internal): Ditto.
502 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
504 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
505 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
507 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
509 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
510 statement on instruction code. Remove trailing spaces.
511 (altivec_expand_stv_builtin): Likewise.
513 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
515 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
516 (TARGET_FPU_DOUBLE): Simplify.
517 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
518 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
519 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
520 with 'TARGET_FPU_DOUBLE'.
521 * config/sh/sh.md: Likewise.
523 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
525 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
526 SH_DIV_STR_FOR_SIZE): Remove.
527 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
528 SH_DIV_STR_FOR_SIZE): Remove.
530 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
532 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
533 logical_reg_operand): Delete.
534 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
535 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
536 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
537 match_operand and match_test.
538 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
539 variables on their first use. Return bool values.
540 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
541 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
542 arith_reg_operand for input operand. Remove empty constraints.
544 (*xorsi3_compact): Rename to xorsi3.
545 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
546 (*zero_extend<mode>si2_disp_mem): Update comment.
549 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
551 * config/sh/t-sh: Remove SH5 support.
552 * config.gcc: Likewise.
553 * configure: Likewise.
555 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
557 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
559 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
561 * config/sh/sh.c (register_sh_passes, sh_option_override,
562 sh_print_operand, prepare_move_operands,
563 sh_can_follow_jump): Remove TARGET_SH1 checks.
564 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
565 PROMOTE_MODE): Likewise.
566 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
569 2016-04-30 Alan Modra <amodra@gmail.com>
571 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
572 restoring when fixed_reg_p, but allow out-of-line or stmw save.
573 Check for user regs later to avoid unnecessary looping over regs.
574 Merge user reg check with non-saved reg check. Don't force
575 inline VR restore when static chain used.
576 (rs6000_frame_related): Omit eh_frame info for user regs when
578 (fixed_regs_p): Delete.
580 2016-04-30 Alan Modra <amodra@gmail.com>
582 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
583 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
586 2016-04-30 Alan Modra <amodra@gmail.com>
589 * config/rs6000/rs6000.c (fixed_reg_p): New function.
590 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
593 2016-04-30 Alan Modra <amodra@gmail.com>
595 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
596 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
597 flag_pic test for Darwin.
599 2016-04-30 Alan Modra <amodra@gmail.com>
601 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
603 (REG_FREQ_CALLS_CROSSED): Delete.
604 (REG_N_THROWING_CALLS_CROSSED): Delete.
605 * regstat.c (regstat_bb_compute_ri): Don't calculate
606 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
607 (dump_reg_info): Don't print call cross frequency.
608 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
609 and REG_N_THROWING_CALLS_CROSSED.
611 2016-04-30 Alan Modra <amodra@gmail.com>
613 * regs.h (struct reg_info_t): Delete live_length.
614 (REG_LIVE_LENGTH): Delete macro.
615 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
616 local_live, local_processed and local_live_last_luid params.
617 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
619 (regstat_compute_ri): Adjust for above. Don't set
621 (dump_reg_info): Don't print live length.
622 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
623 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
624 Localize loop_depth var.
626 2016-04-30 Alan Modra <amodra@gmail.com>
628 * ira.c (enum valid_equiv): New.
629 (validate_equiv_mem): Return enum.
630 (update_equiv_mem): Create replacement in more cases.
631 (add_store_equivs): Update validate_equiv_mem call.
633 2016-04-30 Alan Modra <amodra@gmail.com>
635 * ira.c (combine_and_move_insns): Rather than scanning insns,
636 use DF infrastucture to find use and def insns.
638 2016-04-30 Alan Modra <amodra@gmail.com>
640 ira.c (combine_and_move_insns): Move invariant conditions..
641 (ira.c): ..to here. Call combine_and_move_insns before
642 add_store_equivs. Call grow_reg_equivs later. Allocate
643 req_equiv later using max_reg_num() rather than global max_regno.
644 (contains_replace_regs): Delete.
645 (add_store_equivs): Remove contains_replace_regs test.
647 2016-04-30 Alan Modra <amodra@gmail.com>
649 * ira.c (struct equiv_mem_data): New.
650 (equiv_mem, equiv_mem_modified): Delete static vars.
651 (validate_equiv_mem_from_store): Use "data" param to communicate..
652 (validate_equiv_mem): ..from here.
654 2016-04-30 Alan Modra <amodra@gmail.com>
656 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
658 (update_reg_equivs): ..here. Move allocation and freeing of
659 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
660 end_alias_analysis to..
663 2016-04-30 Alan Modra <amodra@gmail.com>
665 * ira.c (pdx_subregs): Delete.
666 (struct equivalence): Add pdx_subregs field.
667 (set_paradoxical_subreg): Remove pdx_subregs param. Update
669 (update_equiv_regs): Don't create or free pdx_subregs. Update
672 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
674 * config/rs6000/altivec.h: Change definitions of vec_xl and
676 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
677 (LD_ELEMREV_V2DI): New.
678 (LD_ELEMREV_V4SF): New.
679 (LD_ELEMREV_V4SI): New.
680 (LD_ELEMREV_V8HI): New.
681 (LD_ELEMREV_V16QI): New.
682 (ST_ELEMREV_V2DF): New.
683 (ST_ELEMREV_V2DI): New.
684 (ST_ELEMREV_V4SF): New.
685 (ST_ELEMREV_V4SI): New.
686 (ST_ELEMREV_V8HI): New.
687 (ST_ELEMREV_V16QI): New.
690 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
691 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
692 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
693 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
694 (altivec_expand_builtin): Add handling for
695 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
696 (rs6000_invalid_builtin): Add error-checking for
697 RS6000_BTM_P9_VECTOR.
698 (altivec_init_builtins): Define builtins used to implement vec_xl
700 (rs6000_builtin_mask_names): Define power9-vector.
701 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
702 (RS6000_BTM_P9_VECTOR): Define.
703 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
704 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
705 (vsx_ld_elemrev_v2df): Likewise.
706 (vsx_ld_elemrev_v4sf): Likewise.
707 (vsx_ld_elemrev_v4si): Likewise.
708 (vsx_ld_elemrev_v8hi): Likewise.
709 (vsx_ld_elemrev_v16qi): Likewise.
710 (vsx_st_elemrev_v2df): Likewise.
711 (vsx_st_elemrev_v2di): Likewise.
712 (vsx_st_elemrev_v4sf): Likewise.
713 (vsx_st_elemrev_v4si): Likewise.
714 (vsx_st_elemrev_v8hi): Likewise.
715 (vsx_st_elemrev_v16qi): Likewise.
716 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
719 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
721 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
723 (simplify_control_stmt_condition_1): ... here. Recurse into
724 BIT_AND_EXPRs and BIT_IOR_EXPRs.
726 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
729 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
730 (zero_extendqi<mode>2_dot): Revert earlier conversion from
731 define_insn_and_split to define_insn.
732 (zero_extendqi<mode>2_dot2): Same.
733 (extendqi<mode>2_dot): Same.
734 (extendqi<mode>2_dot2): Same.
736 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
738 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
739 (probe_stack): New expander.
740 (probe_stack_<mode>): New insn pattern.
742 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
744 * config/i386/i386.md
745 (operations with memory inputs setting flags peephole2):
746 Remove uneeded REG_P checks. Cleanup pattern generation.
748 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
750 * tree-vect-loop.c (vect_transform_loop): Fix
751 nb_iterations_upper_bound computation for vectorized loop.
753 2016-04-29 Marek Polacek <polacek@redhat.com>
754 Jakub Jelinek <jakub@redhat.com>
757 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
758 TARGET_EXPR_SLOT as a base.
760 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
762 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
763 with 'rCm2' constraints to limit possible immediate size.
764 (*load_zeroextendqisi_update): Likewise.
765 (*load_signextendqisi_update): Likewise.
766 (*loadhi_update): Likewise.
767 (*load_zeroextendhisi_update): Likewise.
768 (*load_signextendhisi_update): Likewise.
769 (*loadsi_update): Likewise.
770 (*loadsf_update): Likewise.
772 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
774 * config/i386/predicates.md (constm1_operand): Fix comparison.
776 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
778 * testsuite/gcc.target/arc/ieee_eq.c: New test.
780 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
782 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
783 remaining SH5 related settings.
784 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
785 shmedia_prepare_call_address): Delete.
786 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
787 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
788 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
789 UNSUPPORTED_SH2A): Remove m5 checks.
790 (sh_divide_strategy_e): Remove SH5 division strategies.
791 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
792 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
794 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
796 * config/s390/s390.c (s390_rtx_costs): Update documentation.
798 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
800 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
801 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
803 * config/s390/vector.md ("mov<mode>"): Likewise.
805 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
807 * config/s390/constraints.md ("U", "W"): Invoke
808 s390_mem_constraint with "ZR" and "ZT".
809 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
810 addresses when using LRA. Accept also short displacements for S
811 and T constraints. Do not check for long displacement target for
813 (s390_mem_constraint): Remove handling of U and W constraints.
814 * config/s390/s390.md (various patterns): Remove the short
815 displacement constraints (Q and R) if a long displacement
816 constraint is present. Add longdisp as required CPU capability.
817 * config/s390/vector.md: Likewise.
818 * config/s390/vx-builtins.md: Likewise.
820 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
823 * reload1.c (reload): Call finish_spills before
824 restarting reload loop. Skip select_reload_regs
825 if update_eliminables_and_spill returns true.
827 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
829 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
830 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
831 (umulhisi3_imm): Update predicates and constraint letters.
832 (umulhisi3_reg): Declare instruction as commutative.
833 * config/arc/constraints.md (J12, J16): New constraints.
834 * config/arc/predicates.md (short_unsigned_const_operand): New
836 (arc_short_operand): Likewise.
837 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
839 2016-04-29 Richard Biener <rguenther@suse.de>
841 PR tree-optimization/13962
842 PR tree-optimization/65686
843 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
844 * tree-ssa-alias.c (ptrs_compare_unequal): New function
845 using PTA to compare pointers.
846 * match.pd: Add pattern for pointer equality compare simplification
847 using ptrs_compare_unequal.
849 2016-04-29 Richard Biener <rguenther@suse.de>
851 * stor-layout.c (layout_type): Do not build a pointer-to-element
854 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
856 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
857 Use SWI mode iterator. Use general_reg_operand predicate.
858 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
859 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
862 2016-04-29 Jakub Jelinek <jakub@redhat.com>
865 * fold-const.c (operand_equal_p): Don't verify hash value equality
867 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
870 2016-04-28 Jakub Jelinek <jakub@redhat.com>
873 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
874 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
875 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
876 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
877 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
879 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
881 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
882 to info. Don't initialize separate fields to 0. Clean up
885 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
887 * config/i386/i386.md (peephole2s for operations with memory inputs):
888 Use SWI mode iterator.
889 (peephole2s for operations with memory outputs): Ditto.
890 Do not check for stack checking probe.
892 (probe_stack): Remove expander.
894 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
895 Andrew Burgess <andrew.burgess@embecosm.com>
897 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
900 2016-04-28 Jason Merrill <jason@redhat.com>
902 * gdbinit.in: Skip line-map.h.
904 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
905 Andrew Burgess <andrew.burgess@embecosm.com>
907 * config/arc/arc.c (arc_conditional_register_usage): Take
908 TARGET_RRQ_CLASS into account.
909 (arc_print_operand): Support printing 'p' and 's' operands.
910 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
912 (TARGET_RRQ_CLASS): Define.
913 (IS_POWEROF2_OR_0_P): Define.
914 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
916 (*tst_movb): New define_insn.
917 (*tst): Avoid recognition if it could prevent '*tst_movb'
918 combination; replace c/CnL with c/Chs alternative.
919 (*tst_bitfield_tst): New define_insn.
920 (*tst_bitfield_asr): New define_insn.
921 (*tst_bitfield): New define_insn.
922 (andsi3_i): Add Rrq variant.
923 (extzv): New define_expand.
924 (insv): New define_expand.
925 (*insv_i): New define_insn.
926 (*movb): New define_insn.
927 (*movb_signed): New define_insn.
928 (*movb_high): New define_insn.
929 (*movb_high_signed): New define_insn.
930 (*movb_high_signed + 1): New define_split pattern.
931 (*mrgb): New define_insn.
932 (*mrgb + 1): New define_peephole2 pattern.
933 (*mrgb + 2): New define_peephole2 pattern.
934 * config/arc/arc.opt (mbitops): New option for nps400, uses
935 TARGET_NPS_BITOPS_DEFAULT.
936 * config/arc/constraints.md (q): Make register class conditional.
937 (Rrq): New register constraint.
938 (Chs): New constraint.
939 (Clo): New constraint.
940 (Chi): New constraint.
941 (Cbf): New constraint.
942 (Cbn): New constraint.
943 (C18): New constraint.
944 (Cbi): New constraint.
946 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
948 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
950 (bitmap_intersection_of_preds): Ditto.
951 (bitmap_union_of_succs): Ditto.
952 (bitmap_union_of_preds): Ditto.
953 * sbitmap.c (do_popcount): Delete.
954 (BITMAP_DEBUGGING): Delete.
955 (sbitmap_verify_popcount): Delete.
956 (sbitmap_alloc): Don't initialize the popcount field.
957 (sbitmap_alloc_with_popcount): Delete.
958 (sbitmap_resize): Don't resize the popcount array.
959 (sbitmap_vector_alloc): Don't initialize the popcount field.
960 (bitmap_copy): Don't copy the popcount array.
961 (bitmap_clear): Don't clear the popcount array.
962 (bitmap_clear): Delete the popcount array handling.
963 (bitmap_ior_and_compl): Delete the popcount assert.
965 (bitmap_and_compl): Ditto.
966 (bitmap_and): Delete the popcount array handling.
969 (bitmap_or_and): Delete the popcount assert.
970 (bitmap_and_or): Ditto.
971 (popcount_table): Delete.
972 (sbitmap_elt_popcount): Delete.
973 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
974 (bitmap_set_bit): Delete the popcount assert.
975 (bitmap_clear_bit): Ditto.
976 (sbitmap_free): Don't free the popcount array.
977 (sbitmap_alloc_with_popcount): Delete declaration.
978 (sbitmap_popcount): Ditto.
980 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
981 Andrew Burgess <andrew.burgess@embecosm.com>
983 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
984 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
985 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
986 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
987 * config/arc/arc.opt (mcmem): New option.
988 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
989 supply length for r/m alternative.
990 (*extendqisi2_ac): Likewise.
991 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
993 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
994 (movhi_insn): Likewise.
995 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
996 (*zero_extendqihi2_i): Add r/Ucm alternative.
997 (*zero_extendqisi2_ac): Likewise.
998 (*zero_extendhisi2_i): Likewise.
999 * config/arc/constraints.md (Uex): New memory constraint.
1000 (Ucm): New define_constraint.
1001 * config/arc/predicates.md (long_immediate_loadstore_operand):
1002 Return 0 for MEM with cmem_address address.
1003 (cmem_address_0): New predicates.
1004 (cmem_address_1): Likewise.
1005 (cmem_address_2): Likewise.
1006 (cmem_address): Likewise.
1008 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
1010 * config/rs6000/rs6000.c (machine_function): Rename
1011 insn_chain_scanned_p to spe_insn_chain_scanned_p.
1012 (rs6000_stack_info): Adjust.
1014 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
1015 Andrew Burgess <andrew.burgess@embecosm.com>
1017 * config/arc/constraints.md (Usd): Convert to define_constraint.
1021 2016-04-28 Jakub Jelinek <jakub@redhat.com>
1024 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
1025 Add new peephole2 where the first insn is *mov<mode>_or instead of
1026 *mov<mode>_internal.
1028 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
1030 * tracer.c (bb_seen): Make static.
1032 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
1034 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
1035 support, setup defaults.
1036 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
1037 * config/arc/arc.c (arc_init): Add NPS400 support.
1038 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
1039 (TARGET_ARC700): NPS400 is also an ARC700.
1040 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
1042 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
1045 * config/nds32/nds32.md (casesi): Don't access the operands array
1048 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
1050 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
1051 (or $-1,reg peephole2): Ditto.
1052 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
1054 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1056 * doc/extend.texi (Common Function Attributes) [optimize]:
1057 Discourage use of the optimize attribute.
1059 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
1061 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
1062 special case builtin.
1063 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1064 ALTIVEC_BUILTIN_VEC_ADDE.
1065 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1066 support for ALTIVEC_BUILTIN_VEC_ADDE.
1067 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1068 for __builtin_vec_adde.
1070 2016-04-28 Jakub Jelinek <jakub@redhat.com>
1072 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
1073 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
1075 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1078 * doc/sourcebuild.texi (Effective-Target Keywords, Other
1079 attributes): Document cilkplus_runtime.
1081 2016-04-28 Martin Jambor <mjambor@suse.cz>
1083 * tree-cfg.c (verify_expr): Verify that local declarations belong to
1084 this function. Call verify_expr on MEM_REFs and bases of other
1087 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1089 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
1090 for WORD_REGISTER_OPERATIONS to runtime check.
1092 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1094 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
1096 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1098 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
1099 big-endian compilation.
1100 * config/arc/arc.md (addf3): Likewise.
1104 2016-04-28 Richard Biener <rguenther@suse.de>
1106 PR tree-optimization/70840
1107 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
1108 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
1109 Mark x * pow(x,c) -> pow(x,c+1) commutative.
1110 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
1112 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1114 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
1115 and explain why in a comment.
1117 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1119 * config/arc/arc.md (cpu_facility): Add fpx variant.
1120 (subdf3): Prohibit use reverse sub when assist operations option
1122 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
1123 instructions only when FPX is enabled.
1124 * testsuite/gcc.target/arc/trsub.c: New test.
1126 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
1128 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
1129 mult_operator when calculating "type" attribute.
1130 (*fop_<mode>_1_i387): Ditto.
1131 (*fop_xf_1_i387): Ditto.
1132 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
1133 Use std::swap to swap operands. Use RTL expressions to generate
1136 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1137 Joern Rennecke <joern.rennecke@embecosm.com>
1139 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
1141 (emit_pic_move): Remove.
1142 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
1143 * config/arc/arc.c (emit_pic_move): Removed.
1144 (TARGET_HAVE_TLS): Define.
1145 (arc_conditional_register_usage): Test for arc_tp_regno.
1146 (arc_print_operand, arc_print_operand_address): Handle TLS
1148 (arc_needs_pcl_p): New function.
1149 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
1150 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
1151 (arc_raw_symbolic_reference_mentioned_p): Likewise.
1152 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
1153 (arc_legitimize_tls_address): Likewise.
1154 (DTPOFF_ZERO_SYM): Define.
1155 (arc_legitimize_pic_address): Make it static, handle TLS cases.
1156 (arc_output_pic_addr_const): Print TLS unspecs.
1157 (prepare_pic_move): New function, replaces emit_pic_move.
1158 (arc_legitimate_constant_p): Handle TLS unspecs.
1159 (arc_legitimate_address_p): Likewise.
1160 (arc_rewrite_small_data_p): Use assert for TLS constants.
1161 (prepare_move_operands): Use prepare_pic_move.
1162 (arc_legitimize_address): Legitimize tls addresses.
1163 (arc_epilogue_uses): Check for arc_tp_regno.
1164 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
1165 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
1167 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
1169 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
1170 %(arc_tls_extra_start_spec).
1171 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
1172 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
1174 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
1175 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
1176 (UNSPEC_TLS_OFF): Add.
1178 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
1179 (get_thread_pointersi): New patterns.
1180 * config/arc/arc.opt (mtp-regno): New option.
1181 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
1182 (move_dest_operand): Likewise.
1183 * configure: Regenerate.
1184 * configure.ac: Add arc*-*-* case to test for tls.
1185 * doc/invoke.texi (ARC options): Document mtp-regno.
1187 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1189 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
1190 the new ARC HS SIMD instructions.
1191 (arc_preferred_simd_mode): New function.
1192 (arc_autovectorize_vector_sizes): Likewise.
1193 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1194 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1195 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
1196 (arc_init_builtins): Add new SIMD builtin types.
1197 (arc_split_move): Handle 64 bit vector moves.
1198 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
1199 (TARGET_PLUS_QMACW): Define.
1200 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
1201 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
1202 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
1203 (VSUBADD4H): New builtins.
1204 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
1205 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
1207 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
1208 Matthias Klose <doko@debian.org>
1210 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
1212 2016-04-28 Richard Biener <rguenther@suse.de>
1215 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
1218 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
1220 * common/config/sh/sh-common.c: Remove SH5 support.
1221 * config/sh/constraints.md: Likewise.
1222 * config/sh/config/sh/elf.h: Likewise.
1223 * config/sh/linux.h: Likewise.
1224 * config/sh/netbsd-elf.h: Likewise.
1225 * config/sh/predicates.md: Likewise.
1226 * config/sh/sh-c.c: Likewise.
1227 * config/sh/sh-protos.h: Likewise.
1228 * config/sh/sh.c: Likewise.
1229 * config/sh/sh.h: Likewise.
1230 * config/sh/sh.md: Likewise.
1231 * config/sh/sh.opt: Likewise.
1232 * config/sh/sync.md: Likewise.
1233 * config/sh/sh64.h: Delete.
1234 * config/sh/shmedia.h: Likewise.
1235 * config/sh/shmedia.md: Likewise.
1236 * config/sh/sshmedia.h: Likewise.
1237 * config/sh/t-netbsd-sh5-64: Likewise.
1238 * config/sh/t-sh64: Likewise.
1239 * config/sh/ushmedia.h: Likewise.
1241 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
1243 * config/i386/i386.md (sign_extend to memory peephole2s): Use
1244 general_reg_operand instead of register_operand predicate.
1246 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1248 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
1250 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
1252 * match.pd (A - B > A, A + B < A): New transformations.
1254 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
1256 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
1257 which defaults to true. Emit an outer pair of parentheses only if
1258 EMIT_PARENS. When continuing a chain of && or || (or & or |),
1259 don't emit parentheses for the right-hand operand.
1261 2016-04-27 Jeff Law <law@redhat.com>
1263 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
1265 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1267 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
1268 (altivec_lvx_<mode>_internal): Document.
1269 (altivec_lvx_<mode>_2op): New define_insn.
1270 (altivec_lvx_<mode>_1op): Likewise.
1271 (altivec_lvx_<mode>_2op_si): Likewise.
1272 (altivec_lvx_<mode>_1op_si): Likewise.
1273 (altivec_stvx_<mode>): Remove.
1274 (altivec_stvx_<mode>_internal): Document.
1275 (altivec_stvx_<mode>_2op): New define_insn.
1276 (altivec_stvx_<mode>_1op): Likewise.
1277 (altivec_stvx_<mode>_2op_si): Likewise.
1278 (altivec_stvx_<mode>_1op_si): Likewise.
1279 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1280 Expand vec_ld and vec_st during parsing.
1281 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
1283 (altivec_expand_stvx_be): Likewise.
1284 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
1285 address-masking behavior in RTL.
1286 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
1287 address-masking behavior in RTL.
1288 (altivec_expand_builtin): Change builtin code arguments for calls
1289 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
1290 (insn_is_swappable_p): Avoid incorrect swap optimization in the
1291 presence of lvx/stvx patterns.
1292 (alignment_with_canonical_addr): New function.
1293 (alignment_mask): Likewise.
1294 (find_alignment_op): Likewise.
1295 (recombine_lvx_pattern): Likewise.
1296 (recombine_stvx_pattern): Likewise.
1297 (recombine_lvx_stvx_patterns): Likewise.
1298 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
1299 stvx patterns from expand.
1300 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
1302 (vector_altivec_store_<mode>): Likewise.
1304 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
1306 * config/aarch64/aarch64.md
1307 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
1308 remove the "fp" attributes.
1309 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
1310 add the "simd" attributes.
1311 (*movdf_aarch64): Likewise.
1312 (*movtf_aarch64): Remove the "fp" attributes.
1313 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
1314 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
1316 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1318 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
1319 rtx to rtx_code_label *.
1320 * rtl.h (maybe_set_first_label_num): Likewise.
1322 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1324 * df-core.c (df_add_problem): Make the problem param be const.
1325 (df_remove_problem): Make local "problem" be const.
1326 * df-problems.c (problem_RD): Make const.
1327 (problem_LR): Likewise.
1328 (problem_LIVE): Likewise.
1329 (problem_MIR): Likewise.
1330 (problem_CHAIN): Likewise.
1331 (problem_WORD_LR): Likewise.
1332 (problem_NOTE): Likewise.
1333 (problem_MD): Likewise.
1334 * df-scan.c (problem_SCAN): Likewise.
1335 * df.h (struct df_problem): Make field "dependent_problem" be
1337 (struct dataflow): Likewise for field "problem".
1338 (df_add_problem): Make param const.
1340 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1342 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
1343 inter-unit moves to/from vector registers are enabled. Do not disable
1346 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1348 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
1349 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
1351 (enum df_problem_id): ...this new enum.
1352 (struct df_problem): Convert field "id" from "int" to
1355 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1357 * rtl.def: Update comment for "things in the instruction chain" to
1358 reflect the removal of the leading "i" field for INSN_UID in
1359 r210360. Fix bogus apostrophe.
1361 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1363 * config/i386/i386.md
1364 (lea arith with mem operand + setcc peephole2): Set operator mode.
1366 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
1369 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
1370 (dimode_scalar_to_vector_candidate_p): This.
1371 (timode_scalar_to_vector_candidate_p): New function.
1372 (scalar_to_vector_candidate_p): Likewise.
1373 (timode_check_non_convertible_regs): Likewise.
1374 (timode_remove_non_convertible_regs): Likewise.
1375 (remove_non_convertible_regs): Likewise.
1376 (remove_non_convertible_regs): Renamed to ...
1377 (dimode_remove_non_convertible_regs): This.
1378 (scalar_chain::~scalar_chain): Make it virtual.
1379 (scalar_chain::compute_convert_gain): Make it pure virtual.
1380 (scalar_chain::mark_dual_mode_def): Likewise.
1381 (scalar_chain::convert_insn): Likewise.
1382 (scalar_chain::convert_registers): Likewise.
1383 (scalar_chain::add_to_queue): Make it protected.
1384 (scalar_chain::emit_conversion_insns): Likewise.
1385 (scalar_chain::replace_with_subreg): Likewise.
1386 (scalar_chain::replace_with_subreg_in_insn): Likewise.
1387 (scalar_chain::convert_op): Likewise.
1388 (scalar_chain::convert_reg): Likewise.
1389 (scalar_chain::make_vector_copies): Likewise.
1390 (scalar_chain::convert_registers): New pure virtual function.
1391 (class dimode_scalar_chain): New class.
1392 (class timode_scalar_chain): Likewise.
1393 (scalar_chain::mark_dual_mode_def): Renamed to ...
1394 (dimode_scalar_chain::mark_dual_mode_def): This.
1395 (timode_scalar_chain::mark_dual_mode_def): New function.
1396 (timode_scalar_chain::convert_insn): Likewise.
1397 (dimode_scalar_chain::convert_registers): Likewise.
1398 (scalar_chain::compute_convert_gain): Renamed to ...
1399 (dimode_scalar_chain::compute_convert_gain): This.
1400 (scalar_chain::replace_with_subreg): Renamed to ...
1401 (dimode_scalar_chain::replace_with_subreg): This.
1402 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1403 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1404 (scalar_chain::make_vector_copies): Renamed to ...
1405 (dimode_scalar_chain::make_vector_copies): This.
1406 (scalar_chain::convert_reg): Renamed to ...
1407 (dimode_scalar_chain::convert_reg ): This.
1408 (scalar_chain::convert_op): Renamed to ...
1409 (dimode_scalar_chain::convert_op): This.
1410 (scalar_chain::convert_insn): Renamed to ...
1411 (dimode_scalar_chain::convert_insn): This.
1412 (scalar_chain::convert): Call convert_registers.
1413 (convert_scalars_to_vector): Change to scalar_chain pointer to
1414 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1415 in 32-bit mode. Delete scalar_chain pointer. Call
1416 free_dominance_info in 64-bit mode.
1417 (pass_stv::gate): Remove TARGET_64BIT check.
1418 (ix86_option_override): Put the 64-bit STV pass before the CSE
1421 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1423 * dwarf2out.h (struct dw_loc_descr_node): Remove the
1424 dw_loc_frame_offset field.
1425 * dwarf2out.c (new_loc_descr): Likewise.
1426 (resolve_args_picking_1): Turn the VISITED hash set into a
1427 FRAME_OFFSET hash map. Use it to associate a frame offset to
1428 visited nodes. Remove uses of the CHECKING_P macro.
1429 (resolve_args_picking): Update call to resolve_args_picking_1.
1431 2016-04-27 Martin Liska <mliska@suse.cz>
1433 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1434 (free_loop_data): Release vuses of groups.
1436 2016-04-27 Bin Cheng <bin.cheng@arm.com>
1438 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1439 instead of redundant use_id and boolean have_use_for.
1440 (struct iv_use): Change sub_id into group_id. Remove field next.
1441 Move fields: related_cands, n_map_members, cost_map and selected
1443 (struct iv_group): ... here. New structure.
1444 (struct iv_common_cand): Use structure declaration directly.
1445 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1446 (MAX_CONSIDERED_USES): Rename macro to ...
1447 (MAX_CONSIDERED_GROUPS): ... here.
1448 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1449 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1450 (dump_uses): Rename to ...
1451 (dump_groups): ... here. Update all uses.
1452 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1453 (find_induction_variables): Refactor format of dump information.
1454 (record_sub_use): Delete.
1455 (record_use): Update all uses.
1456 (record_group): New function.
1457 (record_group_use, find_interesting_uses_op): Call above functions.
1459 (find_interesting_uses_cond): Ditto.
1460 (group_compare_offset): New function.
1461 (split_all_small_groups): Rename to ...
1462 (split_small_address_groups_p): ... here. Update all uses.
1463 (split_address_groups): Update all uses.
1464 (find_interesting_uses): Refactor format of dump information.
1465 (add_candidate_1): Update all uses. Remove redundant check on iv,
1467 (add_candidate, record_common_cand): Remove redundant assert.
1468 (add_iv_candidate_for_biv): Update use.
1469 (add_iv_candidate_derived_from_uses): Update all uses.
1470 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1471 (alloc_use_cost_map): Ditto.
1472 (set_use_iv_cost, get_use_iv_cost): Rename to ...
1473 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
1474 (determine_use_iv_cost_generic): Ditto.
1475 (determine_group_iv_cost_generic): Ditto.
1476 (determine_use_iv_cost_address): Ditto.
1477 (determine_group_iv_cost_address): Ditto.
1478 (determine_use_iv_cost_condition): Ditto.
1479 (determine_group_iv_cost_cond): Ditto.
1480 (determine_use_iv_cost): Ditto.
1481 (determine_group_iv_cost): Ditto.
1482 (set_autoinc_for_original_candidates): Update all uses.
1483 (find_iv_candidates): Update all uses. Refactor dump information.
1484 (determine_use_iv_costs): Ditto.
1485 (determine_iv_costs): Ditto.
1486 (iv_ca_cand_for_use): Rename to ...
1487 (iv_ca_cand_for_group): ... here. Update all uses.
1488 (iv_ca_add_use, iv_ca_add_group): Ditto.
1489 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1490 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1491 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1492 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1493 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1494 (create_new_iv, adjust_iv_update_pos): Ditto.
1495 (rewrite_use_address): Delete.
1496 (rewrite_use_address_1): Rename to ...
1497 (rewrite_use_address): ... here.
1498 (rewrite_use_compare): Update all uses.
1499 (rewrite_use): Delete.
1500 (rewrite_uses): Rename to ...
1501 (rewrite_groups): ... here. Update all uses.
1502 (remove_unused_ivs, free_loop_data): Update all uses.
1503 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1505 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1507 * rtlanal.c (nonzero_bits1): Convert preprocessor check
1508 for WORD_REGISTER_OPERATIONS to runtime check.
1510 2016-04-27 Richard Biener <rguenther@suse.de>
1513 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1514 aggregate_value_p to determine if a function result is
1515 returned by reference.
1516 (ipa_pta_execute): Functions having their address taken are
1517 not automatically nonlocal.
1519 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1522 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1523 * fold-const.c (operand_equal_p): If flag_checking and
1524 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1525 and if it returns non-zero, assert iterative_hash_expr on both
1528 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1530 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1532 2016-04-27 Nick Clifton <nickc@redhat.com>
1535 * varasm.c (merge_weak): Generate an error if an attempt is made
1536 to convert a non-weak static function into a weak, public function.
1538 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1540 * params.def (MAX_PARTITION_SIZE): New param.
1541 * doc/invoke.texi: Document lto-max-partition.
1543 2016-04-27 Richard Biener <rguenther@suse.de>
1546 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1547 function cummulating used_from_other_partition, externally_visible
1548 and force_output from aliases.
1549 (refered_from_nonlocal_var): Likewise.
1550 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1551 node flags properly.
1553 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1555 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1556 (-Wmemset-elt-size): New item.
1558 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
1561 * stor-layout.h (internal_reference_types): Delete.
1562 * stor-layout.c (reference_types_internal): Likewise.
1563 (internal_reference_types): Likewise.
1564 (layout_type) <REFERENCE_TYPE>: Adjust.
1566 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1569 * tree.h (inchash::add_expr): Add FLAGS argument.
1570 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
1571 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
1572 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1573 Formatting fix. Adjust recursive calls. For tcc_comparison,
1574 if swap_tree_comparison (code) is smaller than code, hash that
1575 and arguments in the other order. Hash CONVERT_EXPR the same
1576 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1577 of ADDR_EXPR of decl as the decl itself. Add or remove
1578 OEP_ADDRESS_OF from recursive flags as needed. For
1579 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1580 operands commutatively and only the third one normally.
1581 For internal CALL_EXPR hash in CALL_EXPR_IFN.
1583 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1585 * config/rtems.h (LIB_SPEC): Add -latomic.
1587 2016-04-27 Joel Sherrill <joel@rtems.org>
1589 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1590 xilink.ld and flags not relevant to RTEMS.
1592 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1594 * toplev.c (backend_init_target): Avoid calling init_reload when using
1597 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1599 * reorg.c (try_merge_delay_insns): Declare i and j inside the
1600 for loops rather than one for the whole function.
1602 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1604 * match.pd (X + CST CMP X): New transformation.
1606 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1608 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1609 * fold-const.c (fold_binary_loc): Remove 2 transformations
1610 superseded by match.pd.
1611 * match.pd (x+x -> x*2): Generalize to integers.
1613 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
1615 * config/i386/i386.md (operation on memory peephole): Duplicate an
1616 existing peephole and adapt it to match lea rather than an operation
1619 PR rtl-optimization/57193
1620 * opts.c (default_options_table): Add OPT_frename_registers at -O2
1622 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1624 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1626 * tree-if-conv.c (any_pred_load_store): New static variable.
1627 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
1628 any_pred_load_store instead of and_mask_load_store.
1629 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1630 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1631 (combine_blocks, tree_if_conversion): Ditto.
1633 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1635 PR tree-optimization/70771
1636 PR tree-optimization/70775
1637 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1638 virtual PHI nodes. Delete parameter.
1639 (if_convertible_loop_p_1): Delete argument to above function.
1640 (predicate_all_scalar_phis): Delete code handling single-argument
1642 (tree_if_conversion): Mark and update virtual SSA.
1644 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1647 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1648 (x86_elf_aligned_common): Rename to ...
1649 (x86_elf_aligned_decl_common): ... this.
1650 Add decl arg. Switch to .lbss for largecomm object. Use
1651 LARGECOMM_SECTION_ASM_OP.
1652 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1654 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1655 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1657 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1658 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1660 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1663 * config/i386/i386.c (SECTION_LARGE): Define.
1664 (x86_64_elf_select_section): Set it for large data/bss sections.
1665 Only clear SECTION_WRITE for .lrodata.
1666 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1668 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1669 * varasm.c (default_elf_asm_named_section): Grow flagchars.
1670 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1672 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1673 * doc/tm.texi: Regenerate.
1675 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1678 * configure.ac (--enable-checking): Document extra flag, for
1679 non-release builds default to --enable-checking=yes,extra.
1680 If misc checking and extra checking, define CHECKING_P to 2 instead
1682 * common.opt (fchecking=): Add.
1683 * doc/invoke.texi (-fchecking=): Document.
1684 * doc/install.texi: Document --enable-checking changes.
1685 * configure: Regenerated.
1686 * config.in: Regenerated.
1688 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1690 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1691 attribute instead of which_alternative.
1692 * config/i386/sse.md (*mov<mode>_internal): Ditto.
1693 Use EXT_REX_SSE_REG_P where appropriate.
1695 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1697 * config/i386/predicates.md (const0_operand): Do not match
1698 const_wide_int code.
1699 (const1_operand): Ditto.
1701 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1703 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1704 for SSE constm1 operands and TARGET_AVX512VL.
1705 (*movti_internal): Ditto.
1706 (*mov<mode>_or): Use constm1_operand predicate.
1707 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1708 for SSE vector_all_ones operands and TARGET_AVX512VL.
1709 * config/i386/predicates.md (constm1_operand): New predicate.
1710 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1711 emission of constant -1 load.
1713 2016-04-25 Jason Merrill <jason@redhat.com>
1715 * gdbinit.in: Skip is-a.h.
1717 * attribs.c (register_scoped_attributes): Fix logic.
1718 * attribs.h: Declare register_scoped_attributes.
1720 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1722 * config/rs6000/rs6000-builtin.def: Correct pasto error for
1723 stxvd2x and stxvw4x built-in functions.
1725 2016-04-25 DJ Delorie <dj@redhat.com>
1727 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1728 (ashrhi3): Likewise.
1729 (lshrhi3): Likewise.
1731 2016-04-25 Richard Biener <rguenther@suse.de>
1733 PR tree-optimization/70780
1734 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1736 (compute_antic): Mark blocks with abnormal preds as visited as
1737 they have a final empty antic-in solution already.
1739 2016-04-25 Michael Collison <michael.collison@linaro.org>
1741 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1743 2016-04-25 Michael Collison <michael.collison@linaro.org>
1745 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1746 mode is VQI to improve mixed mode vectorization.
1747 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1748 define_insn to match low half of signed vaddw.
1749 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1750 define_insn to match high half of signed vaddw.
1751 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1752 define_insn to match low half of unsigned vaddw.
1753 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1754 define_insn to match high half of unsigned vaddw.
1755 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1756 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1757 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1759 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1760 * config/arm/predicates.md (vect_par_constant_high): Support
1761 big endian and simplify by calling
1762 arm_simd_check_vect_par_cnst_half
1763 (vect_par_constant_low): Likewise.
1765 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1767 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1768 predicate for operand 2.
1770 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
1771 H.J. Lu <hongjiu.lu@intel.com>
1773 * config/i386/i386-protos.h (standard_sse_constant_p): Add
1774 machine_mode argument.
1775 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1776 constm1_rtx operands. For VOIDmode constants, get mode from
1777 pred_mode. Check mode size if the mode is supported by ABI.
1778 (standard_sse_constant_opcode): Do not use standard_constant_p.
1779 Strictly check ABI support for all-ones operands.
1780 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1781 immediates. Update calls to standard_sse_constant_p.
1782 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1783 (ix86_rtx_costs): Ditto.
1784 * config/i386/i386.md (*movxi_internal_avx512f): Use
1785 nonimmediate_or_sse_const_operand instead of vector_move_operand.
1786 Use (v,BC) alternative instead of (v,C). Use register_operand
1787 checks instead of MEM_P.
1788 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1789 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
1790 isa attribute. Use register_operand checks instead of MEM_P.
1791 (*movti_internal): Use nonimmediate_or_sse_const_operand for
1792 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
1793 alternative and corresponding sse2 isa attribute.
1794 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1795 to standard_sse_constant_p.
1796 (FP constant splitters): Ditto.
1797 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1799 * config/i386/predicates.md (constm1_operand): Remove.
1800 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1801 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1802 vector_all_ones_operand instead of constm1_operand.
1804 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1806 * print-rtl.c (print_rtx_insn_vec): New function.
1807 * print-rtl.h: New prototype.
1808 * store-motion.c (struct st_expr): Make avail_stores a vector.
1809 (st_expr_entry): Adjust.
1810 (free_st_expr_entry): Likewise.
1811 (print_store_motion_mems): Likewise.
1812 (find_moveable_store): Likewise.
1813 (compute_store_table): Likewise.
1814 (delete_store): Likewise.
1815 (build_store_vectors): Likewise.
1817 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1819 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1821 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1823 * vec.h (vec_safe_contains): New function.
1824 (vec::contains): Likewise.
1825 (vec::begin): Likewise.
1826 (vec::end): Likewise.
1828 2016-04-23 Jakub Jelinek <jakub@redhat.com>
1831 * cfgexpand.c (expand_stack_vars): Fix typo.
1833 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1835 * system.h (list, map, set, vector): Include conditionally.
1836 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1837 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1838 * ipa-icf.c (INCLUDE_LIST): Define.
1839 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1840 * config/sh/sh.c (INCLUDE_VECTOR): Define.
1841 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1842 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1843 * cp/logic.cc (INCLUDE_LIST): Define.
1844 * fortran/trans-common.c (INCLUDE_MAP): Define.
1846 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1848 * auto-profile.c: Remove <string.h> include.
1849 * ipa-icf-gimple.c: Remove <list> include.
1850 * diagnostic.c: Remove <new> include.
1851 * genmatch.c: Likewise.
1852 * pretty-print.c: Likewise.
1853 * toplev.c: Likewise
1854 * c/c-objc-common.c: Likewise.
1855 * cp/error.c: Likewise.
1856 * fortran/error.c: Likewise.
1858 2016-04-22 Richard Biener <rguenther@suse.de>
1860 * lto-streamer-in.c (input_ssa_names): Do not allocate
1861 GIMPLE_NOP for all SSA names.
1862 * lto-streamer-out.c (output_ssa_names): Do not output
1863 SSA names that should have been released.
1865 2016-04-22 Richard Biener <rguenther@suse.de>
1867 PR tree-optimization/70740
1868 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1871 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1874 * config/i386/predicates.md (call_insn_operand): Replace
1875 sibcall_memory_operand with memory_operand.
1877 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
1879 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1880 has_single_use() tests.
1881 (register_edge_assert_for_1): Likewise.
1882 (find_assert_locations_1): Check the liveness bitmap instead of
1883 checking has_single_use().
1885 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
1888 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1889 Extract AVX-512BW constraint from AVX.
1891 2016-04-21 Richard Biener <rguenther@suse.de>
1893 PR tree-optimization/70725
1894 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1895 for phi_convertible_by_degenerating_args.
1896 (predicate_all_scalar_phis): Handle single-argument PHIs.
1898 2016-04-21 Richard Biener <rguenther@suse.de>
1901 * fold-const.c (fold_comparison): Return properly typed
1904 2016-04-21 Bin Cheng <bin.cheng@arm.com>
1906 PR tree-optimization/70715
1907 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1908 after expanding BASE using expand_simple_operations.
1910 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1912 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1913 New transformations.
1915 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1917 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1919 2016-04-20 Jan Hubicka <jh@suse.cz>
1921 * ipa-inline.c (can_inline_edge_p): Pass caller info to
1922 ultiimate_alias_target.
1923 (update_callee_keys): Likewise.
1924 (lookup_recursive_calls): Likewise.
1925 (speculation_useful_p): Likewise.
1927 2016-04-20 Jan Hubicka <jh@suse.cz>
1930 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1931 (set_nothrow_flag_1): ... this; handle interposition correctly;
1932 recurse on aliases and thunks.
1933 (cgraph_node::set_nothrow_flag): New.
1934 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1935 functions compiled with non-call exceptions that binds to current
1937 (propagate_nothrow): Be safe WRT interposition.
1938 * cgraph.h (set_nothrow_flag): Update prototype.
1940 2016-04-18 Jan Hubicka <jh@suse.cz>
1942 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1943 max_loop_iterations_int.
1944 (tree_unswitch_outer_loop): Likewise.
1946 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1948 PR tree-optimization/69489
1949 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1950 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1951 Revise dump message.
1952 (if_convertible_bb_p): Remove check on edge count of basic block's
1955 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1957 PR tree-optimization/56625
1958 PR tree-optimization/69489
1959 * tree-data-ref.h (DR_INNERMOST): New macro.
1960 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1961 hashing struct innermost_loop_behavior.
1962 (ref_DR_map): Remove.
1963 (innermost_DR_map): New map.
1964 (baseref_DR_map): Revise comment.
1965 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1966 to innermost_DR_map accroding to its innermost loop behavior.
1967 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1968 to its innermost loop behavior.
1969 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1970 Add initialization for innermost_DR_map. Record memory reference
1971 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1972 have innermost loop behavior.
1973 (if_convertible_loop_p): Remove release for ref_DR_map. Release
1976 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
1978 * config/i386/i386.md (*lea<mode>_general_1): Rename from
1979 *lea_general_1. Use explicit SWI12 mode interator.
1980 (*lea<mode>_general_2): Rename from *lea_general_2.
1981 Use explicit SWI12 mode interator.
1982 (*lea<mode>_general_3): Rename from *lea_general_3.
1983 Use explicit SWI12 mode interator.
1984 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1985 Use explicit SWI12 mode interator.
1986 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1987 Use explicit SWI48 mode interator.
1989 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1991 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1992 Short-cut unaligned load and store cases. Handle all integer
1994 (ix86_expand_vector_move_misalign): Short-cut unaligned load
1995 and store cases. Call ix86_avx256_split_vector_move_misalign
1996 directly without checking mode class.
1998 2016-04-20 Andrew Pinski <apinski@cavium.com>
1999 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2002 * config/aarch64/aarch64.md (sibcall): Force call
2003 address to be DImode for ILP32.
2004 (sibcall_value): Likewise.
2006 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
2008 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
2010 2016-04-20 Richard Biener <rguenther@suse.de>
2012 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
2013 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
2014 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
2015 (maybe_push_res_to_seq): Adjust.
2016 * gimple-fold.c (maybe_build_generic_op): Likewise.
2018 2016-04-20 Marek Polacek <polacek@redhat.com>
2020 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
2023 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
2025 * config/i386/sse.md (vec_unpacks_lo_hi): Always
2026 use kmovw to support AVX512F target.
2028 2016-04-20 Bin Cheng <bin.cheng@arm.com>
2030 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
2032 2016-04-20 Marek Polacek <polacek@redhat.com>
2034 PR tree-optimization/70725
2035 * tree-if-conv.c (is_false_predicate): New function.
2036 (predicate_mem_writes): Use it.
2038 2016-04-20 Richard Biener <rguenther@suse.de>
2040 PR tree-optimization/70726
2041 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
2042 shift amounts from a pattern stmt operand.
2044 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2047 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
2048 stack_restore_from_fpr pattern when restoring r15.
2049 (s390_optimize_prologue): Strip away the memory barrier in the
2050 parallel when trying to get rid of restore insns.
2051 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
2052 definition for loading the stack pointer from an FPR. Compared to
2053 the normal move insn this pattern includes a full memory barrier.
2055 2016-04-19 Jakub Jelinek <jakub@redhat.com>
2058 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
2059 implicitly linear or lastprivate iterator on the outer context.
2061 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
2063 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
2065 * config/i386/i386.md (ssememalign): Removed.
2066 * config/i386/sse.md: Remove ssememalign attribute from patterns.
2068 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
2071 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
2072 const short * to __builtin_ia32_loaddquhi512_mask.
2073 (_mm512_maskz_loadu_epi16): Likewise.
2074 (_mm512_mask_storeu_epi16): Pass short * to
2075 __builtin_ia32_storedquhi512_mask.
2076 (_mm512_mask_loadu_epi8): Pass const char * to
2077 __builtin_ia32_loaddquqi512_mask.
2078 (_mm512_maskz_loadu_epi8): Likewise.
2079 (_mm512_mask_storeu_epi8): Pass char * to
2080 __builtin_ia32_storedquqi512_mask.
2081 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
2082 const double * to __builtin_ia32_loadupd512_mask.
2083 (_mm512_mask_loadu_pd): Likewise.
2084 (_mm512_maskz_loadu_pd): Likewise.
2085 (_mm512_storeu_pd): Pass double * to
2086 __builtin_ia32_storeupd512_mask.
2087 (_mm512_mask_storeu_pd): Likewise.
2088 (_mm512_loadu_ps): Pass const float * to
2089 __builtin_ia32_loadups512_mask.
2090 (_mm512_mask_loadu_ps): Likewise.
2091 (_mm512_maskz_loadu_ps): Likewise.
2092 (_mm512_storeu_ps): Pass float * to
2093 __builtin_ia32_storeups512_mask.
2094 (_mm512_mask_storeu_ps): Likewise.
2095 (_mm512_mask_loadu_epi64): Pass const long long * to
2096 __builtin_ia32_loaddqudi512_mask.
2097 (_mm512_maskz_loadu_epi64): Likewise.
2098 (_mm512_mask_storeu_epi64): Pass long long *
2099 to __builtin_ia32_storedqudi512_mask.
2100 (_mm512_loadu_si512): Pass const int * to
2101 __builtin_ia32_loaddqusi512_mask.
2102 (_mm512_mask_loadu_epi32): Likewise.
2103 (_mm512_maskz_loadu_epi32): Likewise.
2104 (_mm512_storeu_si512): Pass int * to
2105 __builtin_ia32_storedqusi512_mask.
2106 (_mm512_mask_storeu_epi32): Likewise.
2107 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
2108 char * to __builtin_ia32_storedquqi256_mask.
2109 (_mm_mask_storeu_epi8): Likewise.
2110 (_mm256_mask_loadu_epi16): Pass const short * to
2111 __builtin_ia32_loaddquhi256_mask.
2112 (_mm256_maskz_loadu_epi16): Likewise.
2113 (_mm_mask_loadu_epi16): Pass const short * to
2114 __builtin_ia32_loaddquhi128_mask.
2115 (_mm_maskz_loadu_epi16): Likewise.
2116 (_mm256_mask_loadu_epi8): Pass const char * to
2117 __builtin_ia32_loaddquqi256_mask.
2118 (_mm256_maskz_loadu_epi8): Likewise.
2119 (_mm_mask_loadu_epi8): Pass const char * to
2120 __builtin_ia32_loaddquqi128_mask.
2121 (_mm_maskz_loadu_epi8): Likewise.
2122 (_mm256_mask_storeu_epi16): Pass short * to.
2123 __builtin_ia32_storedquhi256_mask.
2124 (_mm_mask_storeu_epi16): Pass short * to.
2125 __builtin_ia32_storedquhi128_mask.
2126 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
2127 const double * to __builtin_ia32_loadupd256_mask.
2128 (_mm256_maskz_loadu_pd): Likewise.
2129 (_mm_mask_loadu_pd): Pass onst double * to
2130 __builtin_ia32_loadupd128_mask.
2131 (_mm_maskz_loadu_pd): Likewise.
2132 (_mm256_mask_storeu_pd): Pass double * to
2133 __builtin_ia32_storeupd256_mask.
2134 (_mm_mask_storeu_pd): Pass double * to
2135 __builtin_ia32_storeupd128_mask.
2136 (_mm256_mask_loadu_ps): Pass const float * to
2137 __builtin_ia32_loadups256_mask.
2138 (_mm256_maskz_loadu_ps): Likewise.
2139 (_mm_mask_loadu_ps): Pass const float * to
2140 __builtin_ia32_loadups128_mask.
2141 (_mm_maskz_loadu_ps): Likewise.
2142 (_mm256_mask_storeu_ps): Pass float * to
2143 __builtin_ia32_storeups256_mask.
2144 (_mm_mask_storeu_ps): ass float * to
2145 __builtin_ia32_storeups128_mask.
2146 (_mm256_mask_loadu_epi64): Pass const long long * to
2147 __builtin_ia32_loaddqudi256_mask.
2148 (_mm256_maskz_loadu_epi64): Likewise.
2149 (_mm_mask_loadu_epi64): Pass const long long * to
2150 __builtin_ia32_loaddqudi128_mask.
2151 (_mm_maskz_loadu_epi64): Likewise.
2152 (_mm256_mask_storeu_epi64): Pass long long * to
2153 __builtin_ia32_storedqudi256_mask.
2154 (_mm_mask_storeu_epi64): Pass long long * to
2155 __builtin_ia32_storedqudi128_mask.
2156 (_mm256_mask_loadu_epi32): Pass const int * to
2157 __builtin_ia32_loaddqusi256_mask.
2158 (_mm256_maskz_loadu_epi32): Likewise.
2159 (_mm_mask_loadu_epi32): Pass const int * to
2160 __builtin_ia32_loaddqusi128_mask.
2161 (_mm_maskz_loadu_epi32): Likewise.
2162 (_mm256_mask_storeu_epi32): Pass int * to
2163 __builtin_ia32_storedqusi256_mask.
2164 (_mm_mask_storeu_epi32): Pass int * to
2165 __builtin_ia32_storedqusi128_mask.
2166 * config/i386/i386-builtin-types.def (PCSHORT): New.
2168 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
2169 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
2170 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
2171 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
2172 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
2173 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
2174 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
2175 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
2176 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
2177 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
2178 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
2179 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
2180 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
2181 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
2182 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
2183 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
2184 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
2185 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
2186 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
2187 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
2188 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
2189 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
2190 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
2191 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
2192 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
2193 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
2194 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
2195 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
2196 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
2197 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
2198 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
2199 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
2200 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
2201 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
2202 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
2203 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
2204 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
2205 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
2206 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
2207 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
2208 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
2209 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
2210 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
2211 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
2212 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
2213 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
2214 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
2215 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
2216 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
2218 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
2219 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
2221 (ix86_expand_vector_move_misalign): Likewise.
2222 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
2223 to scalar function prototype for unaligned load/store builtins.
2224 (ix86_expand_special_args_builtin): Updated.
2225 * config/i386/sse.md (UNSPEC_LOADU): Removed.
2226 (UNSPEC_STOREU): Likewise.
2227 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
2228 (VI_ULOADSTORE_F_AVX512VL): Likewise.
2229 (ssescalarsize): Handle V4TI, V2TI and V1TI.
2230 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2231 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2232 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
2233 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
2234 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
2235 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
2236 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
2237 (<avx512>_storedqu<mode>_mask): Likewise.
2238 (*sse4_2_pcmpestr_unaligned): Likewise.
2239 (*sse4_2_pcmpistr_unaligned): Likewise.
2240 (*mov<mode>_internal): Renamed to ...
2241 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
2242 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
2243 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
2244 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
2246 2016-04-19 Richard Biener <rguenther@suse.de>
2248 PR tree-optimization/70171
2249 * tree-ssa-phiprop.c: Include stor-layout.h.
2250 (phiprop_insert_phi): Handle the aggregate copy case.
2251 (propagate_with_phi): Likewise.
2253 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
2255 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
2256 instead of simplify_gen_subreg (... , 0).
2257 (ix86_delegitimize_address): Ditto.
2258 (ix86_split_divmod): Ditto.
2259 (ix86_split_copysign_const): Ditto.
2260 (ix86_split_copysign_var): Ditto.
2261 (ix86_expand_args_builtin): Ditto.
2262 (ix86_expand_round_builtin): Ditto.
2263 (ix86_expand_special_args_builtin): Ditto.
2264 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
2265 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
2266 (udivmodqi4): Ditto.
2267 (absneg splitters): Ditto.
2268 (*jcc_bt<mode>_1): Ditto.
2270 2016-04-19 Richard Biener <rguenther@suse.de>
2272 PR tree-optimization/70724
2273 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
2274 restoring out from ...
2275 (free_scc_vn): ... here.
2276 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
2277 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
2279 (pass_fre::execute): Restore SSA info.
2281 2016-04-19 Richard Biener <rguenther@suse.de>
2283 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
2284 * gimple-walk.c (walk_gimple_op): Initialize it.
2285 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
2286 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
2287 remapping SSA names of defs.
2288 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
2291 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
2294 * lra-constraints.c (equiv_substition_p): New.
2295 (process_alt_operands): Use it.
2296 (swap_operands): Swap it.
2297 (curr_insn_transform): Update it.
2299 2016-04-18 Michael Matz <matz@suse.de>
2301 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
2302 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
2303 * tree-core.h (tree_type_common.align): Use bit-field.
2304 (tree_type_common.spare): New.
2305 (tree_decl_common.off_align): Make smaller.
2306 (tree_decl_common.align): Use bit-field.
2308 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
2309 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
2310 (scan_sharing_clauses): Ditto.
2311 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2312 (omp_finish_file): Ditto.
2313 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
2314 (layout_decl): Ditto.
2315 (relayout_decl): Ditto.
2316 (finalize_record_size): Use SET_TYPE_ALIGN.
2317 (finalize_type_size): Ditto.
2318 (finish_builtin_struct): Ditto.
2319 (layout_type): Ditto.
2320 (initialize_sizetypes): Ditto.
2321 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
2322 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
2323 (lookup_field_for_decl): Use SET_DECL_ALIGN.
2324 (get_chain_field): Ditto.
2325 (get_trampoline_type): Ditto.
2326 (get_nl_goto_field): Ditto.
2327 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2329 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
2330 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
2331 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2332 (build_qualified_type): Use SET_TYPE_ALIGN.
2333 (build_aligned_type, build_range_type_1): Ditto.
2334 (build_atomic_base): Ditto.
2335 (build_common_tree_nodes): Ditto.
2336 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
2337 (expand_one_stack_var_at): Ditto.
2338 * coverage.c (build_var): Use SET_DECL_ALIGN.
2339 * except.c (init_eh): Ditto.
2340 * function.c (assign_parm_setup_block): Ditto.
2341 * symtab.c (increase_alignment_1): Ditto.
2342 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
2343 * tree-vect-stmts.c (ensure_base_align): Ditto.
2344 * varasm.c (align_variable): Ditto.
2345 (assemble_variable): Ditto.
2346 (build_constant_desc): Ditto.
2347 (output_constant_def_contents): Ditto.
2349 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
2350 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
2351 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
2352 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
2353 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
2355 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
2358 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
2359 replace %vmovsd with "%vmovq".
2360 (vec_concatv2df): Likewise.
2362 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
2364 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
2365 (*vec_extractv2si_0): Ditto.
2366 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
2367 (zero_extended_scalar_load_operand splitters): Ditto.
2368 (vec_extract splitters): Ditto.
2369 (*vec_extractv4si_0_zext): Ditto.
2370 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
2372 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
2373 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
2374 (*sse4_1_extractps): Use lowpart_subreg.
2376 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2378 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2380 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2381 Mention Solaris 11 packaging changes.
2382 Update gas and gld requirements.
2383 Remove reference to pre-Solaris 10 bug.
2384 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2386 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2389 2016-04-17 Jan Hubicka <jh@suse.cz>
2391 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2392 max_loop_iterations_int.
2394 2016-04-18 Richard Biener <rguenther@suse.de>
2396 PR tree-optimization/43434
2397 * tree-ssa-structalias.c (struct vls_data): New.
2398 (visit_loadstore): Handle all pointer-based accesses.
2399 (compute_dependence_clique): Compute a bitmap of restrict tags
2400 assigned bases and pass it to visit_loadstore.
2402 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
2405 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2406 armv8.1-a and armv8.1-a+crc.
2408 2016-04-18 Richard Biener <rguenther@suse.de>
2410 PR tree-optimization/70701
2411 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2412 references after translating through a memcpy.
2414 2016-04-18 Richard Biener <rguenther@suse.de>
2416 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2417 (compute_antic): ... here. For partial antic use regular
2418 postorder and scrap iteration.
2419 (compute_partial_antic_aux): Remove unused return value.
2420 (init_pre): Do not allocate postorder.
2421 (fini_pre): Do not free postorder.
2423 2016-04-18 Richard Biener <rguenther@suse.de>
2426 * expmed.c (extract_bit_field_1): Remove broken case
2427 using a wider MODE_INT mode.
2429 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
2431 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2432 unless compiling with at least GCC-4.8.
2434 2016-04-17 Jan Hubicka <jh@suse.cz>
2437 * graphite.c (graphite_finalize): Update call to
2438 tree_estimate_probability.
2439 * predict.h (tree_estimate_probability): Update prototype.
2441 2016-04-17 Jan Hubicka <jh@suse.cz>
2443 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2444 (tree_estimate_probability): Likewise.
2445 (pass_profile::execute): Update.
2446 (report_predictor_hitrates): New function.
2447 * profile.c (compute_branch_probabilities): Use it.
2448 * predict.h (report_predictor_hitrates): Declare.
2450 2016-04-17 Jan Hubicka <jh@suse.cz>
2453 * cgraph.h (cgraph_node::set_const_flag,
2454 cgraph_node::set_pure_flag): Update prototype to return bool;
2456 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2457 of interposable symbol are interposable, too.
2458 (cgraph_set_const_flag_1): Rename to ...
2459 (set_const_flag_1): ... this one; change to self recursive function
2460 instead of call_for_symbol_thunks_and_aliases. Handle correctly
2461 clearnig the flag in all variants and also virtual thunks of const
2462 functions are pure; track if any change was done.
2463 (cgraph_node::set_const_flag): Update.
2464 (struct set_pure_flag_info): New struct.
2465 (cgraph_set_pure_flag_1): Rename to ...
2466 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2467 rather than pointer encoded flags; track if any changes was done;
2468 handle correctly clearning flag and setting flag of aliases already
2470 (cgraph_node::set_pure_flag): Update.
2471 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2473 2016-04-17 Tom de Vries <tom@codesourcery.com>
2476 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2479 2016-04-17 Tom de Vries <tom@codesourcery.com>
2481 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2482 '{}<> ' as escape-for-record.
2484 2016-04-17 Tom de Vries <tom@codesourcery.com>
2486 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2489 2016-04-17 Tom de Vries <tom@codesourcery.com>
2492 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2493 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2494 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2495 * passes.c (finish_optimization_passes): Only call
2496 finish_graph_dump_file if dfi->graph_dump_initialized.
2497 (execute_function_dump, pass_init_dump_file): Use
2498 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2500 2016-04-17 Tom de Vries <tom@codesourcery.com>
2502 PR tree-optimization/70256
2503 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2504 (debug_varmap): New function.
2506 2016-04-17 Tom de Vries <tom@codesourcery.com>
2509 * passes.c (pass_manager::register_pass): Propagate pflags.
2511 2016-04-17 Tom de Vries <tom@codesourcery.com>
2514 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2515 * passes.c (pass_manager::pass_manager): Declare and init p_start in
2516 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
2517 check if it's equal to p_start.
2518 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2520 2016-04-15 Jan Hubicka <jh@suse.cz>
2523 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2524 function does not bind to current def.
2525 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2526 handle conservatively calls to functions that does not need to bind
2528 (check_call): Update call of worse_state.
2529 (ignore_edge_for_nothrow): Update.
2530 (ignore_edge_for_pure_const): Likewise.
2531 (propagate_pure_const): Update calls to worse_state.
2532 (skip_function_for_local_pure_const): Reformat comments.
2534 2016-04-15 Jan Hubicka <jh@suse.cz>
2537 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2538 (cgraph_node::function_symbol): Likewise.
2539 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2540 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2541 (symtab_node::ultimate_alias_target): Add REF parameter.
2542 (symtab_node::binds_to_current_def_p): Declare.
2543 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2544 (cgraph_node::function_symbol): Likewise.
2545 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2546 (cgraph_node::get_availability): Likewise.
2547 (cgraph_edge::binds_to_current_def_p): New inline function.
2548 (varpool_node::get_availability): Add REF parameter.
2549 (varpool_node::ultimate_alias_target): Likewise.
2550 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2551 (symtab_node::binds_to_current_def_p): Likewise.
2552 * varpool.c (varpool_node::get_availability): Likewise.
2554 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2557 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2558 Fix mode size check.
2560 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2562 * BASE-VER: Set to 7.0.0.
2564 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2566 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2568 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2570 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2571 architecture revisions.
2573 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2575 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2576 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2577 * config/i386/i386.md (stack decrement to push peepholes): Guard
2578 with !x86_using_red_zone ().
2580 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2583 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2584 to dump_generic_node.
2585 (NIY): Pass also flags to do_niy.
2587 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2589 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2590 (simd_clone_vector_of_formal_parm_types)
2591 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2592 (simd_clone_mangle, simd_clone_create)
2593 (simd_clone_adjust_return_type, create_tmp_simd_array)
2594 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2595 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2596 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2597 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2598 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2599 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2600 * omp-simd-clone.c: ... this new file.
2601 (simd_clone_vector_of_formal_parm_types): Make it static.
2602 * Makefile.in (OBJS): Add omp-simd-clone.o.
2604 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2607 * config/i386/sse.md: Use proper memory operand modifiers.
2610 2016-04-15 Richard Biener <rguenther@suse.de>
2611 Alan Modra <amodra@gmail.com>
2613 PR tree-optimization/70130
2614 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2615 when alignment stays not the same and no not use the realign
2618 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2621 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2622 direct move handlers for KFmode. Change TFmode handlers test from
2623 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2625 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2628 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2629 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2630 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2631 * tree-ssa-live.c (remove_unused_scope_block_p): When
2632 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2633 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2634 block_ultimate_origin is FUNCTION_DECL.
2635 (remove_unused_locals): If current_function_decl is
2636 polymorphic_ctor_dtor_p, pass initial true to
2637 remove_unused_scope_block_p' is_ctor_dtor_block.
2639 2016-04-14 Martin Sebor <msebor@redhat.com>
2644 * doc/extend.texi (Variable Length): Revert.
2646 2016-04-14 Marek Polacek <polacek@redhat.com>
2647 Jan Hubicka <hubicka@ucw.cz>
2650 * tree.c (verify_type): Disable the canonical type of main variant
2653 2016-04-14 Jason Merrill <jason@redhat.com>
2655 * cfgexpand.c, expr.c: Revert previous change.
2657 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2660 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2661 when building a mem ref for the incoming reduction variable.
2663 2016-04-14 Richard Biener <rguenther@suse.de>
2665 PR tree-optimization/70614
2666 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2667 loop if the evolution dropped to chrec_dont_know.
2668 (interpret_condition_phi): Likewise.
2670 2016-04-14 Richard Biener <rguenther@suse.de>
2672 PR tree-optimization/70623
2673 * tree-ssa-pre.c (changed_blocks): Make global ...
2674 (compute_antic): ... local here. Move and fix worklist
2675 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2676 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2677 worklist handling, dump when ANTIC_IN changed.
2678 (compute_partial_antic_aux): Remove worklist handling.
2679 (init_pre): Do not compute post dominators. Add a comment about
2680 the CFG order chosen.
2681 (fini_pre): Do not free post dominators.
2683 2016-04-13 Martin Sebor <msebor@redhat.com>
2688 * doc/extend.texi (Variable Length): Document C++ specifics.
2690 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2693 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2694 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2695 eh edges have been purged.
2698 * tree-sra.c (create_access_replacement,
2699 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2701 * tree-pretty-print.c (dump_fancy_name): New function.
2702 (dump_decl_name, dump_generic_node): Use it.
2704 2016-04-13 Jason Merrill <jason@redhat.com>
2706 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2707 * expr.c (expand_expr_real_1): Likewise.
2709 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2711 * config/i386/i386.md (kunpckhi): Swap operands.
2712 (kunpcksi): Likewise.
2713 (kunpckdi): Likewise.
2714 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2715 (vec_pack_trunc_<mode>): Likewise.
2717 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2720 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2723 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2724 gimplification turns some element into non-constant.
2727 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2728 * explow.c (convert_memory_address_addr_space_1): No longer static,
2729 add NO_EMIT argument and don't call convert_modes if true, pass
2730 it down recursively, remove break after return.
2731 (convert_memory_address_addr_space): Adjust caller.
2732 * simplify-rtx.c (simplify_unary_operation_1): Call
2733 convert_memory_address_addr_space_1 instead of convert_memory_address,
2734 if it returns NULL, don't simplify.
2736 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2739 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2741 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2743 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2744 Bump the upper SIMDLEN limits, so that if the return type or
2745 characteristic type if the return type is void can be passed in
2746 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2749 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2752 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2753 Do not use "=" constraint on an input constraint.
2754 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2755 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2756 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2757 generates (neg (abs ...)) instead of (abs ...).
2759 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2761 PR rtl-optimization/70596
2762 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2763 just invalidate LRA data and reset them. Adjust dump wording.
2765 2016-04-12 Martin Liska <mliska@suse.cz>
2768 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2770 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2772 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2773 max_loop_iterations_int.
2774 (tree_unswitch_outer_loop): Likewise.
2775 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2776 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2778 2016-04-12 Tom de Vries <tom@codesourcery.com>
2780 PR tree-optimization/68756
2781 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2782 instead of new_name.
2784 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2786 PR tree-optimization/70602
2787 * tree-sra.c (generate_subtree_copies): Don't write anything into
2788 constant pool decls.
2790 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2791 regardless whether there are depend clauses or not.
2793 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2796 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2797 target attribute and pragma from changing the -mfloat128
2798 and -mfloat128-hardware options.
2800 * doc/extend.texi (Additional Floating Types): Document PowerPC
2801 __float128 restrictions.
2803 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2806 * config/aarch64/driver-aarch64.c
2807 (aarch64_get_extension_string_for_isa_flags): New.
2808 (arch_extension): Rename to...
2809 (aarch64_arch_extension): ...This.
2810 (ext_to_feat_string): Rename to...
2811 (aarch64_extensions): ...This.
2812 (aarch64_core_data): Keep track of architecture extension flags.
2813 (cpu_data): Rename to...
2814 (aarch64_cpu_data): ...This.
2815 (aarch64_arch_driver_info): Keep track of architecture extension
2817 (get_arch_name_from_id): Rename to...
2818 (get_arch_from_id): ...This, change return type.
2819 (host_detect_local_cpu): Update and reformat for renames, handle
2820 extensions through common infrastructure.
2822 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2825 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2826 track of a canonical flag name.
2827 (all_extensions): Likewise.
2828 (arch_to_arch_name): Also track extension flags enabled by the arch.
2829 (all_architectures): Likewise.
2830 (aarch64_parse_extension): Move to here.
2831 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2833 (aarch64_rewrite_selected_cpu): Update for above change.
2834 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2835 are handled, such that the single explicit value enabled by an
2836 extension is kept seperate from the implicit values it also enables.
2837 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2839 (aarch64_parse_extension): New.
2840 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2841 here to config/aarch64/aarch64-protos.h.
2842 (aarch64_parse_extension): Move from here to
2843 common/config/aarch64/aarch64-common.c.
2844 (aarch64_option_print): Update.
2845 (aarch64_declare_function_name): Likewise.
2846 (aarch64_start_file): Likewise.
2847 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2848 the canonical flag for extensions.
2849 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2852 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2854 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2857 2016-04-09 Tom de Vries <tom@codesourcery.com>
2859 PR tree-optimization/68953
2860 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2861 first to last subscript.
2863 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2865 PR tree-optimization/70586
2866 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2869 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2873 PR tree-optimization/70373
2877 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2878 clauses for acc parallel reductions as necessary. Error on those
2880 * omp-low.c (scan_sharing_clauses): Don't install variables which
2881 are used in acc parallel reductions.
2882 (lower_rec_input_clauses): Remove dead code.
2883 (lower_oacc_reductions): Add support for reference reductions.
2884 (lower_reduction_clauses): Remove dead code.
2885 (lower_omp_target): Don't remap variables appearing in acc parallel
2887 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2889 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2892 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2893 with multiple SSA_NAME defs, force the outputs other than first
2894 to be live before calling live_track_process_def on each output.
2896 PR rtl-optimization/70574
2897 * fwprop.c (forward_propagate_and_simplify): Don't add
2898 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2899 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2900 paradoxical subregs within *loc.
2902 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2904 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2905 -ftree-parallelize-loops={0,1}.
2906 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2907 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2908 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2909 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2910 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2912 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2915 * asan.c (instrument_derefs): If we get unknown location, extract it
2917 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2919 2016-04-08 Tom de Vries <tom@codesourcery.com>
2921 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2922 implicit firstprivate clause.
2924 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2927 * config/arm/thumb2.md (tst + branch-> lsls + branch
2928 peephole below *orsi_not_shiftsi_si): Require that condition
2929 register is dead after the peephole.
2930 (second peephole after the above): Likewise.
2932 2016-04-08 Alan Modra <amodra@gmail.com>
2935 * builtins.c (fold_builtin_classify): For IBM extended precision,
2936 look at just the high-order double to test for NaN.
2937 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2938 test just the high double for Inf but both doubles for subnormal
2941 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2943 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2944 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2945 node->simdclone->mask_mode != VOIDmode masks.
2946 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2947 earlier, use it instead of node->simdclone.
2948 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2949 Set clonei->mask_mode.
2951 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2954 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2955 Pass it through to cp_parser_already_scoped_statement.
2956 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2957 it through to cp_parser_statement.
2958 (cp_parser_statement): Pass IF_P through to
2959 cp_parser_iteration_statement.
2960 (cp_parser_pragma): Adjust call to
2961 cp_parser_iteration_statement.
2963 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2966 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2967 resolve a future -Wparentheses warning.
2968 * omp-low.c (scan_sharing_clauses): Likewise.
2969 * tree-parloops.c (eliminate_local_variables): Likewise.
2971 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2973 PR rtl-optimization/70398
2974 * lra-constraints.c (process_address_1): Check zero scale and code
2975 for reloading with zero scale.
2977 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2979 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2980 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2982 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2984 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2985 Add support for AVX512F clones, include them by default for
2986 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2987 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2991 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2992 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2993 firstprivate clauses.
2994 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2995 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2996 (lower_omp_target): Set TREE_NO_WARNING for
2997 non-addressable possibly uninitialized vars which are copied into
2998 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
3000 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
3002 * config/pa/predicates.md (integer_store_memory_operand): Accept
3003 REG+D operands with a large offset when reload_in_progress is true.
3004 (floating_point_store_memory_operand): Likewise.
3006 2016-04-05 Jakub Jelinek <jakub@redhat.com>
3009 * match.pd (nested int casts): Limit to GIMPLE.
3011 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
3014 * ipa-devirt.c (maybe_record_node): Fix comment; use
3015 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
3017 2016-04-05 Jakub Jelinek <jakub@redhat.com>
3019 PR rtl-optimization/70542
3020 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
3021 if there are any uses other than insn or debug insns.
3023 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
3024 Jakub Jelinek <jakub@redhat.com>
3026 PR tree-optimization/70509
3027 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
3028 Shift HOST_WIDE_INT_1U instead of 1.
3030 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
3032 PR tree-optimization/70509
3033 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
3034 of the vector base type for index.
3036 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
3039 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
3041 2016-04-05 Richard Biener <rguenther@suse.de>
3043 PR tree-optimization/70526
3044 * tree-sra.c (build_ref_for_offset): Use prev_base to
3045 extract the alias pointer type.
3047 2016-04-05 Richard Biener <rguenther@suse.de>
3049 * dse.c (struct store_info): Remove alias_set member.
3050 (struct read_info_type): Likewise.
3051 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
3052 spill_deleted, clear_alias_set_lookup): Remove.
3053 (get_group_info): Remove dead base == NULL_RTX case.
3054 (dse_step0): Remove initialization of removed variables.
3055 (delete_dead_store_insn): Reomve alias set dumping.
3056 (free_read_records): Remove alias_set handling.
3057 (canon_address): Remove alias_set_out parameter.
3058 (record_store): Remove spill_alias_set, it's always zero.
3059 (check_mem_read_rtx): Likewise.
3060 (dse_step2): Rename from ...
3061 (dse_step2_nospill): ... this. Adjust.
3062 (scan_stores): Rename from ...
3063 (scan_stores_nospill): ... this.
3064 (scan_reads): Rename from ...
3065 (scan_reads_nospill): ... this.
3066 (scan_stores_spill, scan_reads_spill): Remove.
3067 (dse_step3_scan): Remove for_spills argument which is always false.
3068 (dse_step3): Likewise.
3069 (dse_step5): Rename from ...
3070 (dse_step5_nospill): ... this. Remove alias_set handling.
3071 (rest_of_handle_dse): Adjust.
3073 2016-04-05 Jakub Jelinek <jakub@redhat.com>
3076 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
3077 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
3078 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
3079 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
3081 2016-04-05 Richard Biener <rguenther@suse.de>
3084 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
3085 non-register type temporaries into SSA.
3087 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
3090 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
3091 calls when sanitizing.
3092 (possible_polymorphic_call_target_p): Fix formatting.
3094 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3095 Jakub Jelinek <jakub@redhat.com>
3098 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
3099 to ensure a call statement is compatible with a built-in's
3101 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
3104 2016-04-04 Richard Biener <rguenther@suse.de>
3106 PR rtl-optimization/70484
3107 * rtl.h (canon_output_dependence): Declare.
3108 * alias.c (canon_output_dependence): New function.
3109 * dse.c (record_store): Use canon_output_dependence rather
3110 than canon_true_dependence.
3112 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
3115 * cgraph.h (symtab_node::copy_visibility_from): New function.
3116 * symtab.c (symtab_node::copy_visibility_from): New function.
3117 * ipa-visibility.c (optimize_weakref): New function.
3118 (function_and_variable_visibility): Use it.
3120 2016-04-04 Martin Liska <mliska@suse.cz>
3123 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
3124 value that is really in range handled by SBR instruction.
3125 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
3126 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
3127 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
3129 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
3133 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
3134 set, but not for SP_REG operands.
3136 2016-04-02 Martin Sebor <msebor@redhat.com>
3139 * fold-const.c (maybe_nonzero_address): New function.
3140 (fold_comparison): Call it. Fold equality and relational
3141 expressions involving null pointers.
3142 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
3144 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
3146 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
3147 the "Y" constraint (scalar FP 0.0 immediate).
3149 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
3150 Add the "const_double" to the list of operand constraints.
3152 2016-04-01 Jakub Jelinek <jakub@redhat.com>
3154 PR rtl-optimization/70467
3155 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
3156 If low word of the last operand is 0, just emit addition/subtraction
3159 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3162 * config/s390/s390.c (s390_expand_insv): Check for everything
3163 constant instead of just VOIDmode stuff.
3165 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3168 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
3170 2016-04-01 Nathan Sidwell <nathan@acm.org>
3172 * tree.def (TRY_CATCH_EXPR): Correct documentation.
3174 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
3176 PR rtl-optimization/70461
3177 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
3180 2016-03-31 Martin Liska <mliska@suse.cz>
3183 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
3184 a tree value or an immediate integer value to a buffer
3185 that is eventually copied to a BRIG section.
3186 (emit_immediate_operand): Call the function here.
3187 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
3188 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
3189 of class' fields that are removed.
3190 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
3191 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
3192 m_brig_repr_size fields.
3194 2016-03-31 Martin Liska <mliska@suse.cz>
3197 * hsa-gen.c (hsa_function_representation::update_dominance): New
3199 (convert_addr_to_flat_segment): Likewise.
3200 (gen_hsa_memory_set): New alignment argument.
3201 (gen_hsa_ctor_assignment): Likewise.
3202 (gen_hsa_insns_for_single_assignment): Provide alignment
3203 to gen_hsa_ctor_assignment.
3204 (gen_hsa_insns_for_direct_call): Add new argument.
3205 (expand_lhs_of_string_op): New function.
3206 (expand_string_operation_builtin): Likewise.
3207 (expand_memory_copy): New function.
3208 (expand_memory_set): New function.
3209 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
3210 (convert_switch_statements): Change signature.
3211 (generate_hsa): Use a return value of the function.
3212 (pass_gen_hsail::execute): Do not call
3213 convert_switch_statements here.
3214 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
3215 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
3216 (hsa_function_representation::update_dominance): New function.
3218 2016-03-31 Martin Liska <mliska@suse.cz>
3221 * hsa-brig.c (emit_directive_variable): Emit alignment
3222 according to hsa_symbol::m_align.
3223 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
3224 (dump_hsa_symbol): Dump alignment of HSA symbols.
3225 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
3226 (gen_hsa_addr_with_align): New function.
3227 (hsa_bitmemref_alignment): Use newly added function.
3228 (gen_hsa_insns_for_load): Likewise.
3229 (gen_hsa_insns_for_store): Likewise.
3230 (gen_hsa_memory_copy): New argument added.
3231 (gen_hsa_insns_for_single_assignment): Respect
3232 alignment for assignments processed via gen_hsa_memory_copy.
3233 (gen_hsa_insns_for_direct_call): Likewise.
3234 (gen_hsa_insns_for_return): Likewise.
3235 (gen_function_def_parameters): Set default alignment.
3236 * hsa.c (hsa_object_alignment): New function.
3237 (hsa_byte_alignment): Pasted function.
3238 * hsa.h (hsa_symbol::m_align): New field.
3240 2016-03-31 Bin Cheng <bin.cheng@arm.com>
3242 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
3243 scratch field for goto case.
3245 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
3247 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
3249 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
3252 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
3253 (scalar_chain::convert_insn): Call convert_op for reg
3254 moves to handle undefined registers.
3256 2016-03-31 Nathan Sidwell <nathan@acm.org>
3259 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
3260 Assert we don't want to move backwards.
3262 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
3265 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
3267 2016-03-31 Jakub Jelinek <jakub@redhat.com>
3269 PR rtl-optimization/70460
3270 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
3271 with operand from REG_LABEL_OPERAND, instead substitute
3272 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
3273 Don't do anything for REG_NON_LOCAL_GOTO jumps.
3275 2016-03-31 Martin Liska <mliska@suse.cz>
3277 * passes.c (execute_one_pass): Do not call
3278 todo_after for a discarded function.
3280 2016-03-31 Bin Cheng <bin.cheng@arm.com>
3282 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
3283 (no_cost, infinite_cost): Initialize the new field.
3284 (get_computation_cost_at): Record setup cost.
3285 (determine_use_iv_cost_address): Skip cost computation for sub
3286 uses if we can estimate it without losing accuracy.
3288 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
3290 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
3292 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3293 max_loop_iterations_int.
3294 (tree_unswitch_outer_loop): Likewise.
3295 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3296 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3298 2016-03-30 Richard Biener <rguenther@suse.de>
3301 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
3303 2016-03-30 Jakub Jelinek <jakub@redhat.com>
3306 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
3307 in gen_blendm expander.
3309 2016-03-30 Nick Clifton <nickc@redhat.com>
3312 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
3313 case where we are already provided with an SImode SUBREG.
3315 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
3318 * config/i386/i386.c (ix86_expand_epilogue): Properly check
3319 conflict between DRAP register and __builtin_eh_return.
3321 2016-03-30 Michael Matz <matz@suse.de>
3322 Richard Biener <rguenther@suse.de>
3325 * ipa-polymorphic-call.c (struct type_change_info): Change
3326 speculative to an unsigned allowing to limit the work we do.
3327 (csftc_abort_walking_p): New inline function..
3328 (check_stmt_for_type_change): Limit the number of may-defs
3329 skipped for speculative devirtualization to
3330 max-speculative-devirt-maydefs.
3331 * params.def (max-speculative-devirt-maydefs): New param.
3332 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
3334 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
3337 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
3340 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
3342 PR tree-optimization/59124
3343 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
3344 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
3346 2016-03-29 Jeff Law <law@redhat.com>
3348 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
3350 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3352 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3355 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3357 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3358 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3359 gcrt0.o if linking dynamically.
3361 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3364 * ipa-devirt.c (methods_equal_p): New function.
3365 (compare_virtual_tables): Use it.
3366 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3367 * cgraphclones.c (clone_function_name_1): Use
3368 symbol_table::symbol_suffix_separator.
3369 * coverage.c (build_var): Likewise.
3370 * symtab.c (symbol_table::symbol_suffix_separator): New.
3372 2016-03-29 Jakub Jelinek <jakub@redhat.com>
3374 PR rtl-optimization/70429
3375 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3376 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3377 mode != result_mode.
3380 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3382 PR tree-optimization/70405
3383 * ssa-iterators.h (num_imm_uses): Add missing braces.
3385 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
3387 PR rtl-optimization/68695
3388 * ira-color.c (allocno_copy_cost_saving): New.
3389 (improve_allocation): Use it.
3391 2016-03-29 Richard Henderson <rth@redhat.com>
3394 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3396 2016-03-29 Richard Biener <rguenther@suse.de>
3399 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3400 use alignment returned by get_pointer_alignment_1 if it is
3401 bigger than BITS_PER_UNIT.
3402 * builtins.c (get_pointer_alignment_1): Do not return true
3403 for alignment extracted from SSA info.
3405 2016-03-28 James Bowman <james.bowman@ftdichip.com>
3407 * config/ft32/ft32.opt (mnodiv): New.
3408 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3409 * doc/invoke.texi (FT32 Options -mnodiv): New.
3411 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
3414 * config/i386/i386.md (define_split, andn): Fix modes.
3416 2016-03-26 Richard Biener <rguenther@suse.de>
3417 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3420 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3422 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3423 as 2nd argument to cl_optimization_restore().
3425 2016-03-25 Richard Henderson <rth@redhat.com>
3428 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3429 * config/aarch64/aarch64-protos.h: Declare it.
3430 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3432 2016-03-25 Alan Modra <amodra@gmail.com>
3435 * config/rs6000/constraints.md (j): Simplify.
3436 * config/rs6000/predicates.md (easy_fp_constant): Exclude
3438 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3439 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3440 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3441 in all constraint alternatives.
3442 (movtd_64bit_nodm): Delete "j" constraint alternative.
3444 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3446 * tree-ssa-propagate.c: Enhance docs for
3447 SSA_PROP_NOT_INTERESTING.
3449 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3451 * doc/extend.texi: Fix typo in documentation to pure attribute.
3453 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
3456 * config/pa/pa.md (bswapdi2): Use a scratch register.
3458 2016-03-24 Richard Henderson <rth@redhat.com>
3461 * fold-const.c (extract_muldiv_1): Correct test for multiplication
3464 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
3466 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3467 using ix86_expand_binary_operator instead of gen_andsi3.
3469 2016-03-24 Richard Biener <rguenther@suse.de>
3471 PR tree-optimization/70396
3472 * tree-vect-stmts.c (vectorizable_comparison): Use
3473 get_vectype_for_scalar_type.
3475 2016-03-24 Richard Biener <rguenther@suse.de>
3478 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3479 with register bases.
3481 2016-03-24 Richard Biener <rguenther@suse.de>
3483 PR tree-optimization/70372
3484 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3485 build_all_ones_cst to also handle vector types correctly.
3487 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3490 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3493 2016-03-23 Marek Polacek <polacek@redhat.com>
3496 * doc/invoke.texi: Document -Wignored-attributes.
3498 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3500 PR tree-optimization/69042
3501 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3502 parameter from 30 to 40.
3504 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3506 PR tree-optimization/69042
3507 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3508 for use with constant offset stripped in base.
3510 2016-03-23 Richard Biener <rguenther@suse.de>
3513 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3514 mode compatibility check.
3515 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3517 2016-03-23 Jeff Law <law@redhat.com>
3519 PR tree-optimization/64058
3520 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3522 (struct ssa_conflicts): Move up earlier in the file.
3523 (conflicts_, var_map_): New static variables.
3524 (initialize_conflict_count): New function to initialize the
3525 CONFLICT_COUNT field for each conflict pair.
3526 (compare_pairs): Lazily initialize the conflict count and use it
3527 as the first tie-breaker.
3528 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3529 and wipe conflicts_ and map_ around the call to qsort. Remove
3530 special case for 2 coalesce pairs.
3531 * bitmap.c (bitmap_count_unique_bits): New function.
3532 (bitmap_count_bits_in_word): New function, extracted from
3534 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3535 * bitmap.h (bitmap_count_unique_bits): Declare it.
3537 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3540 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3541 transparent alias chain for decl assembler name.
3542 * config/sol2.c (solaris_assemble_visibility): Likewise.
3544 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3546 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3548 (v10_fdivs): Likewise.
3549 (v10_fdivd): Likewise.
3551 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3554 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3555 to not call fclose twice on file.
3557 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3559 PR tree-optimization/70354
3560 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3561 oprnd0 is wider than oprnd1 and there is a cast from the wider
3562 type to oprnd1, mask it with the mask of the narrower type.
3565 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3566 Optimize TARGET_STV splitters, if high or low word of last argument
3569 2016-03-22 Jeff Law <law@redhat.com>
3572 tree-ssa-threadbackward.c
3573 (fsm_find_control_statement_thread_paths): Correctly distinguish
3574 between old style jump threads vs FSM jump threads.
3576 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3579 * config/i386/i386.c (scalar_chain::convert_op): Support
3580 uninitialized register usage case.
3582 2016-03-22 Richard Biener <rguenther@suse.de>
3585 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3587 (capture::gen_transform): ... to change behavior when substituting
3588 a condition into cond or not-cond expr context.
3589 (dt_simplify::gen_1): Adjust.
3590 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3591 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3592 last change and instead change to
3593 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3594 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3596 2016-03-22 Anthony Green <green@moxielogic.com>
3598 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3599 issue for moxiebox targets.
3600 (CC1PLUS_SPEC): Ditto.
3602 2016-03-22 Richard Biener <rguenther@suse.de>
3605 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3608 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3610 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3612 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3615 * config/i386/i386.c (def_builtin): Handle
3616 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3618 (const struct builtin_description bdesc_special_args[]):
3619 Remove duplicate ISA bits.
3621 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3624 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3625 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3626 in a way that works also for AVX512BW.
3629 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3630 instead of source if operands[1] is xmm16 and above and
3631 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3632 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3635 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3636 on assign if (*from_p) is a comparison, set it to
3637 TREE_NO_WARNING (*from_p).
3639 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3642 * lra.c (restore_scratches): Ignore deleted insns.
3644 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3645 Jakub Jelinek <jakub@redhat.com>
3647 PR tree-optimization/70317
3648 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3651 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3654 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3655 of ix86_expand_move.
3657 (movti): Use general_operand for operand 1 predicate.
3659 2016-03-21 Martin Liska <mliska@suse.cz>
3661 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3663 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3665 2016-03-21 Martin Liska <mliska@suse.cz>
3668 * ipa-icf.c (sem_function::parse): Skip static
3669 constructors and destructors.
3671 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3674 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3675 function-like macro, peek following token(s) if it is followed
3676 by CPP_OPEN_PAREN token with optional padding in between, and
3677 if not, don't treat it like a macro.
3679 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3680 Alexander Monakov <amonakov@ispras.ru>
3682 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3683 for the stabs debug format.
3685 2016-03-21 Richard Biener <rguenther@suse.de>
3687 PR tree-optimization/70310
3688 * tree-vect-generic.c (expand_vector_condition): Fold the built
3691 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3694 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3695 Block third alternative for AVX-512VL target,
3697 2016-03-21 Martin Liska <mliska@suse.cz>
3700 * hsa-brig.c (emit_function_directives): Mark unemitted
3701 global variables for emission.
3702 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3703 (get_symbol_for_decl): Likewise.
3704 * hsa.h (struct hsa_symbol): New flag.
3706 2016-03-21 Richard Biener <rguenther@suse.de>
3708 PR tree-optimization/70288
3709 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3710 we do not estimate unsimplified all-constant conditionals or
3711 switches as optimized away.
3713 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3715 PR rtl-optimization/69102
3716 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3717 when we have a readonly dependency context.
3719 2016-03-18 Jeff Law <law@redhat.com>
3721 PR rtl-optimization/70263
3722 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3723 (update_equiv_regs): When trying to move a store to after the insn
3724 that sets the source of the store, make sure the store occurs after
3725 the insn that sets the source of the store. When successful note
3726 the REG_EQUIV note created in the dump file.
3728 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3729 Bernd Schmidt <bschmidt@redhat.com>
3731 * doc/extend.texi: Document more potential problems with basic asms.
3733 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3735 PR rtl-optimization/70278
3736 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3739 2016-03-18 Jason Merrill <jason@redhat.com>
3741 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3743 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3745 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3746 values to 128b regs.
3748 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3750 PR tree-optimization/70252
3751 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3752 boolean vector has a proper number of elements.
3753 (supportable_narrowing_operation): Likewise.
3755 2016-03-18 Tom de Vries <tom@codesourcery.com>
3758 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3760 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3762 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3763 instead of replace_rtx for DEBUG_INSNs.
3765 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3767 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3768 load type reservations.
3770 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3773 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3774 define_constraint for "Q" and "T" constraints.
3776 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3778 Tweak the pipeline model for Exynos M1
3780 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3783 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3786 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3787 where one or both locations aren't within a line_map.
3789 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3792 * opts.c (finish_options): Don't set flag_pie to the default if
3793 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3796 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3798 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3799 true as ALL_REGS argument to replace_rtx.
3801 2016-03-17 Richard Biener <rguenther@suse.de>
3804 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3807 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3810 * rtl.h (replace_rtx): Add ALL_REGS argument.
3811 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3812 equality and assert mode is the same, instead of just rtx pointer
3814 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3815 true as ALL_REGS argument to replace_rtx.
3817 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3819 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3820 for boolean vector with vector mode only.
3821 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3823 2016-03-17 Nick Clifton <nickc@redhat.com>
3826 * config/rx/rx.c (rx_print_integer): Print negative constants in
3829 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3832 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3834 2016-03-16 Richard Henderson <rth@redhat.com>
3835 Richard Biener <rguenth@suse.de>
3840 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3841 first operand as is_gimple_condexpr.
3846 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3847 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3848 Do not gimplify the result.
3849 (do_unop): Adjust call to tree_vec_extract.
3850 (do_binop): Likewise.
3851 (do_compare): Likewise.
3852 (do_plus_minus): Likewise.
3853 (do_negate): Likewise.
3854 (expand_vector_condition): Likewise.
3855 (do_cond): Likewise.
3857 2016-03-16 Richard Henderson <rth@redhat.com>
3860 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3861 (aarch64_classify_address): Use it.
3862 (aarch64_legitimize_address): Force all subexpressions of PLUS
3863 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3865 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3866 Richard Biener <rguenth@suse.de>
3869 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3870 return to even if only REGNO is equal, and assert
3873 2016-03-11 Jeff Law <law@redhat.com>
3875 PR rtl-optimization/70224
3876 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3878 2016-03-16 Richard Henderson <rth@redhat.com>
3881 * function.h (struct function): Add has_forced_label_in_static.
3882 * gimplify.c (force_labels_r): Set it.
3883 * lto-streamer-in.c (input_struct_function_base): Read it.
3884 * lto-streamer-out.c (output_struct_function_base): Write it.
3885 * tree-inline.c (has_label_address_in_static_1): Remove.
3886 (copy_forbidden): Remove fndecl parameter; test
3887 has_forced_label_in_static.
3888 (inline_forbidden_p): Update call to copy_forbidden.
3889 (tree_versionable_function_p): Likewise.
3890 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3891 (chkp_versioning): Likewise.
3892 * tree-inline.h (copy_forbidden): Update decl.
3894 2016-03-16 Marek Polacek <polacek@redhat.com>
3897 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3898 function being thunked if the result type doesn't have fixed size.
3899 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3900 doesn't have fixed size.
3902 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3904 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3905 reporting malformed loop nest.
3907 2016-03-16 Tom de Vries <tom@codesourcery.com>
3910 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3911 nodes.length () == 1 test to before first nodes[0] access.
3913 2016-03-16 Tom de Vries <tom@codesourcery.com>
3915 PR tree-optimization/68715
3916 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3919 2016-03-16 Tom de Vries <tom@codesourcery.com>
3921 PR tree-optimization/68809
3922 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3925 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3926 Sandra Loosemore <sandra@codesourcery.com>
3928 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3929 on leaf attribute. Mention ELF interposition problems.
3931 2016-03-16 Alan Modra <amodra@gmail.com>
3933 PR rtl-optimization/69195
3934 PR rtl-optimization/47992
3935 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3938 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3941 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3943 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3945 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3947 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3949 PR rtl-optimization/70222
3950 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3951 optimization if mode is different from result_mode, queue up masking
3952 of the result in outer_op. Formatting fix.
3955 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3958 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3960 PR rtl-optimization/69032
3961 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3962 looping backwards over basic block insns.
3964 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3967 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3968 to non-speculative when propagating trap bits.
3970 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3972 PR rtl-optimization/63384
3973 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3976 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3979 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3980 factored out from ...
3981 (sched_analyze_insn): ... here.
3982 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3983 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3984 get_implicit_reg_pending_clobbers in it.
3985 (setup_id_reg_sets): Use setup_id_implicit_regs.
3986 (deps_init_id): Ditto.
3988 2016-03-15 Tom de Vries <tom@codesourcery.com>
3991 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3993 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3994 execute_function_dump.
3995 (execute_one_pass): Don't dump function if it will be dumped after ipa
3998 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
4000 * genrecog.c (match_pattern_2): If pred is NULL don't call
4001 safe_predicate_mode on it.
4003 2016-03-14 Jakub Jelinek <jakub@redhat.com>
4006 * lra-constraints.c (delete_move_and_clobber): Change assertion
4007 to also allow dregno == 0.
4009 2016-03-14 Richard Henderson <rth@redhat.com>
4012 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
4013 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
4014 (reassociate_bb): Use optimize_vec_cond_expr; avoid
4015 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
4018 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
4021 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
4023 (lra_create_live_ranges_1): initialize hard register biggest_mode to
4025 * lra-constraints.c (split_reg): For hard regs, try to find the
4026 biggest single-register mode used in the function.
4028 2016-03-14 Richard Biener <rguenther@suse.de>
4030 PR tree-optimization/56365
4031 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
4032 constants to compare against.
4034 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
4037 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
4038 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
4039 (define_split for the GPR case): Use int_reg_operand instead of
4040 gpc_reg_operand for the output.
4042 2016-03-14 Tom de Vries <tom@codesourcery.com>
4044 PR tree-optimization/70045
4045 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
4046 create_empty_if_region_on_edge argument.
4048 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
4050 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
4051 (STACK_CHECK_PROTECT): Likewise.
4052 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
4053 (STACK_CHECK_PROTECT): Likewise.
4054 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
4055 (STACK_CHECK_PROTECT): Likewise.
4056 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
4057 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4058 (STACK_CHECK_PROTECT): Likewise.
4060 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
4062 PR rtl-optimization/69307
4063 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
4064 registers in modes that span more than one register.
4066 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
4069 * lra-constraints.c (delete_move_and_clobber): New.
4070 (remove_inheritance_pseudos): Use it.
4072 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
4075 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
4076 the libcall is LCT_THROW.
4077 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
4078 for the checking routine.
4080 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4083 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
4084 optimization if we have direct move.
4085 (roundu32<mode>2_fprs): Likewise.
4087 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
4090 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
4092 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
4093 Arguments swapped. All callers changed. Take reg_renumber into
4094 account, and Calculate and compare register ranges for hard regs.
4096 2016-03-11 Jeff Law <law@redhat.com>
4098 PR tree-optimization/70190
4099 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4100 Handle cases where we can not extract the taken edge, even though we
4101 found a constant value.
4103 PR tree-optimization/64058
4104 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
4105 (num_coalesce_pairs): Move up earlier in file.
4106 (find_coalesce_pair): Initialize the INDEX field for each pair
4108 (compare_pairs): No longer sort on the elements in each pair.
4109 Instead break ties with the index of the coalesce pair.
4111 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4114 * config/aarch64/aarch64-protos.h
4115 (aarch64_save_restore_target_globals): New prototype.
4116 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
4117 Call the above when popping pragma.
4118 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
4120 (aarch64_set_current_function): Rewrite using the above.
4122 2016-03-11 Jakub Jelinek <jakub@redhat.com>
4124 PR tree-optimization/70177
4125 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
4126 (extract_ops_from_tree): ... this. In the 2 argument
4127 overload remove _1 suffix.
4128 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
4129 (extract_ops_from_tree): ... this.
4130 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
4132 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
4133 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
4134 extract_ops_from_tree instead of 2 operand one.
4136 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
4138 PR tree-optimization/70013
4139 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
4140 for constant-pool entries.
4142 2016-03-11 Jakub Jelinek <jakub@redhat.com>
4144 PR rtl-optimization/70174
4145 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
4146 followed by gen_lowpart on force_reg instead of just gen_lowpart.
4148 PR tree-optimization/70169
4149 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
4150 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
4153 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4154 Jakub Jelinek <jakub@redhat.com>
4157 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
4158 of uninitialized values.
4160 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4162 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
4164 ("*trunctddd2"): New pattern definition.
4165 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
4168 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4170 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
4171 definitions for BFP and DFP rounding modes.
4172 ("fixuns_truncdddi2", "fixuns_trunctddi2")
4173 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
4174 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
4175 ("fix_trunctf<mode>2"): Use the new constants instead of magic
4178 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4180 * config/s390/constraints.md: Adjust comment.
4181 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
4182 s390_decompose_addrstyle_without_index.
4183 * config/s390/predicates.md (shift_count_or_setmem_operand):
4184 Rename to setmem_operand.
4185 * config/s390/s390-protos.h
4186 (s390_decompose_shift_count): Rename to
4187 s390_decompose_addrstyle_without_index.
4188 * config/s390/s390.c (s390_decompose_shift_count)
4189 (s390_mem_constraint, print_shift_count_operand)
4190 (print_operand_address, print_operand): Rename
4191 s390_decompose_shift_count to
4192 s390_decompose_addrstyle_without_index and rename
4193 print_shift_count_operand to print_addrstyle_operand troughout the
4195 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
4196 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
4197 Rename shift_count_or_setmem_operand to setmem_operand.
4198 * config/s390/vx-builtins.md ("vec_insert<mode>")
4199 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
4202 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4205 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4206 Handle overlapping retval and newval.
4208 2016-03-10 Nick Clifton <nickc@redhat.com>
4211 * config/aarch64/aarch64.c
4212 (aarch64_override_options_after_change_1): When forcing
4213 flag_omit_frame_pointer to be true, use a special value that can
4214 be detected if this function is called again, thus preventing
4215 flag_omit_leaf_frame_pointer from being forced to be false.
4217 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4219 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4220 Set x_flag_omit_leaf_frame_pointer when handling
4221 -momit-leaf-frame-pointer.
4223 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4226 * cgraph.c (cgraph_node::dump): Dump split_part and
4227 indirect_call_target.
4228 * cgraph.h (cgraph_node): Add indirect_call_target flag.
4229 * ipa.c (has_addr_references_p): Cleanup.
4230 (is_indirect_call_target_p): New.
4231 (walk_polymorphic_call_targets): Do not mark virtuals that may be
4232 called indirectly as local.
4233 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
4235 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4238 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4239 on cxa_pure_virtual.
4241 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4244 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
4246 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4249 * tree.c (need_assembler_name_p): Only record main variant type names.
4251 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
4254 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
4255 Always define to 0 or 1.
4256 (TARGET_FIX_ERR_A53_843419): New macro.
4257 * config/aarch64/aarch64-elf-raw.h
4258 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
4259 * config/aarch64/aarch64-linux.h: Likewise.
4260 * config/aarch64/aarch64.c
4261 (aarch64_override_options_after_change_1): Do not default
4262 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
4264 (aarch64_attributes): Handle fix-cortex-a53-843419.
4265 (aarch64_can_inline_p): Likewise.
4266 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
4268 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
4269 Jakub Jelinek <jakub@redhat.com>
4271 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
4272 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
4273 DECL_COMMONS if flag_unconstrained_commons is set.
4274 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4275 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
4276 (funconstrained-commons): Document.
4278 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
4280 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
4281 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
4283 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4285 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
4286 has a proper number of elements.
4288 2016-03-10 Alan Modra <amodra@gmail.com>
4290 PR rtl-optimization/69195
4291 PR rtl-optimization/47992
4292 * ira.c (recorded_label_ref): Delete.
4293 (update_equiv_regs): Return void.
4294 (indirect_jump_optimize): New function.
4295 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
4296 before regstat_compute_ri. Don't rebuild_jump_labels here.
4297 Delete update_regstat.
4299 2016-03-10 Richard Biener <rguenther@suse.de>
4301 PR tree-optimization/70128
4302 * tree-ssa-structalias.c (set_uids_in_ptset): Set
4303 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
4305 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4307 PR tree-optimization/70152
4308 * tree-sra.c (replace_removed_params_ssa_names): Copy over
4309 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
4312 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
4313 instead of gen_sse2_loadlpd.
4314 * config/i386/sse.md (*vec_concatv2df): Rename to...
4315 (vec_concatv2df): ... this.
4317 PR tree-optimization/70127
4318 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
4320 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4324 * diagnostic-show-locus.c (compatible_locations_p): New function.
4325 (layout::layout): Sanitize ranges using compatible_locations_p.
4327 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4331 * diagnostic-show-locus.c (layout_range::layout_range): Replace
4332 location_range param with three const expanded_locations * and a
4334 (layout::layout): Replace call to
4335 rich_location::lazily_expand_location with get_expanded_location.
4336 Extract the range and perform location expansion here, passing
4337 the results to the layout_range ctor.
4338 * diagnostic.c (source_range::debug): Delete.
4339 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
4340 of rich_location::get_expanded_location.
4341 * gcc-rich-location.c (get_range_for_expr): Delete.
4342 (gcc_rich_location::add_expr): Reimplement to avoid the
4343 rich_location::add_range overload that took a location_range,
4344 passing a location_t instead.
4346 2016-03-09 Richard Biener <rguenther@suse.de>
4347 Jakub Jelinek <jakub@redhat.com>
4349 PR tree-optimization/70138
4350 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4351 Also skip vect_double_reduction_def.
4353 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4356 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4357 if the operand is "m".
4359 2016-03-09 Nathan Sidwell <nathan@acm.org>
4361 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4363 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4365 * config/i386/i386.c (processor_target_table): Fix cost table
4366 intialization order for znver1.
4368 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4370 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4371 - becuase -> because.
4372 * ipa-reference.c (ignore_module_statics): Likewise.
4373 * cgraph.c (cgraph_node::get_body): Likewise.
4374 * ipa-inline.c (early_inliner): Likewise.
4375 * ipa-devirt.c (types_same_for_odr): Likewise.
4376 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4377 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4379 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4381 * tree-ssa-math-opts.c: Fix typo in comment.
4383 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4386 * config/i386/i386.c (scalar_chain::make_vector_copies,
4387 scalar_chain::convert_reg): Call end_sequence in between
4388 get_insns and emit_conversion_insns rather than after both
4391 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
4394 * config/i386/i386.h (machine_function): Add
4395 pc_thunk_call_expanded flag.
4396 (ix86_pc_thunk_call_expanded): New define.
4397 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4398 (*set_got): Rename insn pattern from set_got.
4399 (*set_got_labelled): Rename inst pattern from set_got_labelled.
4400 * config/i386/i386.c (ix86_compute_frame_layout): Use
4401 ix86_pc_thunk_call_expanded to prevent red-zone.
4403 2016-03-07 Martin Jambor <mjambor@suse.cz>
4405 * hsa.h (hsa_get_ctor_statements): Declare.
4406 (hsa_get_dtor_statements): Likewise.
4407 (hsa_get_kernel_dispatch_type): Likewise.
4408 * hsa.c (hsa_get_ctor_statements): New function.
4409 (hsa_get_dtor_statements): Likewise.
4410 (hsa_get_kernel_dispatch_type): Likewise.
4411 * hsa-brig.c (hsa_cdtor_statements): Removed.
4412 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4413 hsa_get_dtor_statements.
4414 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4415 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4417 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4419 * config/arm/arm-cores.def (cortex-r8): New.
4420 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4421 * config/arm/arm-tune.md: Likewise.
4422 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4424 2016-03-07 Martin Sebor <msebor@redhat.com>
4426 PR rtl-optimization/19705
4427 * doc/invoke.texi (Options That Control Optimization): Clarify
4428 -fno-branch-count-reg.
4430 2016-02-26 Richard Biener <rguenther@suse.de>
4431 Jeff Law <law@redhat.com>
4433 PR tree-optimization/69740
4434 * cfghooks.c (remove_edge): Request loop fixups if we delete
4435 an edge that might turn an irreducible loop into a natural
4437 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4438 Move after definition of loops_state_clear.
4440 2016-03-07 Bin Cheng <bin.cheng@arm.com>
4442 PR rtl-optimization/69052
4443 * rtlanal.c (commutative_operand_precedence): Set higher precedence
4446 2016-03-07 Tom de Vries <tom@codesourcery.com>
4448 PR tree-optimization/70116
4449 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4450 is_tm_ending stmts and ubsan/asan internal functions.
4451 (find_duplicate): Use it. Don't test is_tm_ending here.
4453 2016-03-07 Richard Biener <rguenther@suse.de>
4455 PR tree-optimization/70115
4456 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4457 (propagate_constants_for_unrolling): Use replace_uses_by.
4459 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
4462 * omp-low.c (struct oacc_loop): Add ifns.
4463 (new_oacc_loop_raw): Initialize it.
4464 (finish_oacc_loop): Clear mask & flags if no ifns.
4465 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4466 (oacc_loop_xform_loop): Add ifns arg & adjust.
4467 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4469 2016-03-07 Richard Henderson <rth@redhat.com>
4472 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4473 (insert_value_copy_on_edge): Likewise.
4475 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4477 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4479 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4482 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4484 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4486 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4488 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4490 Fix sseimul type attribute.
4491 * config/i386/znver1.md
4492 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4493 znver1_sseimul_avx256_load) : Fix the type attribute.
4494 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4495 pipe usage and latency.
4497 2016-03-05 Jakub Jelinek <jakub@redhat.com>
4500 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4501 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4504 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4507 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4509 PR rtl-optimization/69941
4510 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4511 the reg share its mode.
4513 2016-03-04 Jeff Law <law@redhat.com>
4515 PR tree-optimization/69196
4516 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4517 If the both SSA_NAMEs are anonymous, then consider them unassociated
4518 and include the PHI in the statement count.
4520 2016-03-05 Tom de Vries <tom@codesourcery.com>
4522 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4523 construct in oacc routine. Check for oacc region in oacc routine.
4525 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4528 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4529 2016-02-22 changes, instead don't recurse if RECUR is already true.
4530 Don't change *dynamic_check if RECUR. Adjust recursive caller
4531 to pass true to the new argument.
4532 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4535 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4536 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4538 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4540 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4542 PR rtl-optimization/57676
4543 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4546 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4548 * tree-vect-patterns.c (search_type_for_mask): Handle
4549 comparison of booleans.
4551 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4553 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4557 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4558 all other ops that have dw_val_class_die_ref operands,
4559 and DW_OP_GNU_entry_value.
4561 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4563 PR rtl-optimization/69904
4564 * config/arm/arm.c (arm_cannot_copy_insn_p):
4565 Return true for load-exclusive instructions.
4567 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4570 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4571 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4572 the pattern no matter if it is used just by non-pattern, pattern
4574 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4575 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4576 oprnd1 def_stmt is in pattern, don't look through it.
4578 2016-03-03 Marek Polacek <polacek@redhat.com>
4581 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4583 2016-03-03 Martin Liska <mliska@suse.cz>
4585 PR tree-optimization/70043
4586 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4587 previous statement if we see a debug statement.
4589 2016-03-03 Richard Biener <rguenther@suse.de>
4591 PR tree-optimization/55936
4592 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4593 parameter and guard unsafe equivalence use.
4594 (vrp_evaluate_conditional_warnv_with_ops): Always use
4595 safe equivalences but not via the quadratic compare_names
4598 2016-03-03 Michael Collison <michael.collison@linaro.org>
4601 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4602 for operand 1 to s_register_operand. Change predicate for operand
4603 2 to arm_not_immediate_operand.
4605 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4607 * doc/tm.texi: Regenerated.
4609 2016-03-02 Richard Henderson <rth@redhat.com>
4612 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4613 simplification when all args are positive non-fixed registers.
4615 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4617 * target.def (lra_p): Specify that new ports should use LRA.
4619 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4622 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4623 gimplify_type_sizes the type they refer to.
4624 (omp_notice_variable): Handle reference vars to VLAs.
4625 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4626 reference to VLA decls in the second pass instead of first pass.
4628 2016-03-02 Tom de Vries <tom@codesourcery.com>
4630 PR tree-optimization/68659
4631 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4632 new_expr == NULL_TREE.
4633 (get_new_name): Handle ADDR_EXPR.
4635 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4637 PR rtl-optimization/69052
4638 * loop-invariant.c (canonicalize_address): New function.
4639 (inv_can_prop_to_addr_use): Check validity of address expression
4640 which is canonicalized by above function.
4642 2016-03-02 Alan Modra <amodra@gmail.com>
4645 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4648 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4651 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4652 (*movhi_internal): Put mask moves from and to memory separately
4653 from moves from/to GPRs.
4655 2016-03-02 Richard Biener <rguenther@suse.de>
4657 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4658 GENERIC expressions in GIMPLE.
4660 2016-03-02 Richard Biener <rguenther@suse.de>
4662 * config/i386/i386.c (type_natural_mode): Fix typo.
4664 2016-03-02 Nick Clifton <nickc@redhat.com>
4666 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4668 2016-03-02 Richard Biener <rguenther@suse.de>
4669 Uros Bizjak <ubizjak@gmail.com>
4672 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4674 2016-03-02 Richard Biener <rguenther@suse.de>
4677 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4679 2016-03-02 Marek Polacek <polacek@redhat.com>
4682 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4683 "is promoted to" warning.
4685 2016-03-01 DJ Delorie <dj@redhat.com>
4687 * config.gcc: Deprecate mep-*.
4689 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4692 * lra-constraints.c (regno_val_use_in): New.
4693 (match_reload): Use it instead of regno_use_in.
4695 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4697 PR rtl-optimization/70007
4698 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4699 references present in REG_EQUAL notes attached to non-SET patterns.
4701 2016-03-01 Jeff Law <law@redhat.com>
4703 PR tree-optimization/69196
4704 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4705 Appropriately clamp the number of statements to copy when the
4706 thread path does not traverse a loop backedge.
4708 PR tree-optimization/69196
4709 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4710 Do count some PHIs in the thread path against the insn count. Decrease
4711 final statement count by one as the control statement in the last
4712 block will get removed. Remove special cased code for handling PHIs
4715 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4718 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4719 asm dialect alternatives to explicit GOTPCREL calls.
4721 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4724 * ira.c (do_reload): Issue warning for generic stack checking here...
4725 * reload1.c (reload): ...instead of here and streamline it.
4727 2016-03-01 Nick Clifton <nickc@redhat.com>
4729 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4731 2016-03-01 Richard Biener <rguenther@suse.de>
4733 PR tree-optimization/69983
4734 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4735 types and fall back to operand_equal_p.
4737 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4740 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4742 * config/s390/constraints.md ("jm8"): New constraint.
4743 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4745 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4747 ("*setmem_long<setmem_and>"): New pattern.
4748 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4750 ("*setmem_long_31z<setmem_and>"): New pattern.
4751 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4752 New substitution rules with the required attributes.
4755 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4758 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4760 * gensupport.c (process_substs_on_one_elem): Split loop to
4761 complete mark_operands_used_in_match_dup on all expressions in the
4763 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4764 and remove function.
4766 2016-03-01 Richard Biener <rguenther@suse.de>
4769 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4770 vector BIT_FIELD_REF extract.
4772 2016-03-01 Richard Biener <rguenther@suse.de>
4774 PR tree-optimization/69994
4775 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4777 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4779 PR tree-optimization/69956
4780 * tree-vect-stmts.c (supportable_widening_operation): Support
4781 multi-step conversion of boolean vectors.
4782 (supportable_narrowing_operation): Likewise.
4784 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4786 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4789 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4791 * config/s390/subst.md (DSI_VI): New mode iterator.
4792 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4793 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4794 the insn definition.
4795 ("*vec_set<mode>"): Change predicate and add alternative to
4796 support only either register or const_int operands as element
4798 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4800 ("vec_extract<mode>"): New expander.
4801 ("*vec_extract<mode>"): New insn definition supporting reg and
4802 const_int element selectors.
4803 ("*vec_extract<mode>_plus"): New insn definition supporting
4804 reg+const_int element selectors.
4805 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4806 following expander+insn definition.
4807 ("<vec_shifts_name><mode>3"): New expander.
4808 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4810 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4812 * config/s390/s390.md ("*tabort_1"): Change predicate to
4813 nonmemory_operand. Add a second alternative to cover
4814 register as well as const int operands.
4815 ("*tabort_1_plus"): New pattern definition.
4817 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4819 * config/s390/s390.md ("*ashrdi3_cc_31")
4820 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4821 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4822 Merge insn definitions into ...
4823 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4824 New pattern definition.
4825 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4826 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4827 ("*ashr<mode>3_and"): Merge insn definitions into ...
4828 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4829 New pattern definition.
4830 * config/s390/subst.md ("addr_style_op_cc_subst")
4831 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4832 substitutions patterns plus attributes.
4833 Add ashiftrt to SUBST iterator.
4835 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4837 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4838 op2 to nonmemory_operand.
4839 ("*<shift>di3_31", "*<shift>di3_31_and"):
4840 Merge into single pattern definition ...
4841 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4842 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4843 pattern definition ...
4844 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4845 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4848 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4850 * config/s390/predicates.md (const_int_6bitset_operand): New
4852 * config/s390/s390.md: Include subst.md.
4853 ("rotl<mode>3"): New expander.
4854 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4856 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4857 * config/s390/subst.md: New file.
4859 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4861 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4862 Remove RRR type. It doesn't really exist.
4863 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4865 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4866 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4867 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4868 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4869 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4870 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4871 `enabled' attribute.
4873 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4875 * gensupport.c (process_substs_on_one_elem): Split loop to
4876 complete mark_operands_used_in_match_dup on all expressions in the
4878 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4879 and remove function.
4881 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4884 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4885 (CEIL_NWORDS): ...this. Use CEIL macro.
4886 (compute_fp_layout): Adjust to above renaming.
4887 (function_arg_union_value): Likewise.
4888 (sparc_arg_partial_bytes): Likewise.
4889 (sparc_function_arg_advance): Likewise.
4891 2016-02-29 Jeff Law <law@redhat.com>
4893 PR tree-optimization/70005
4894 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4895 where an object with a boolean range is compared against a value
4898 PR tree-optimization/69999
4899 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4900 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4903 2016-02-29 Richard Biener <rguenther@suse.de>
4905 PR tree-optimization/69994
4906 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4907 (get_unary_op): Look through nop conversions.
4908 (ops_equal_values_p): New function, look for equality diregarding
4910 (eliminate_plus_minus_pair): Use ops_equal_values_p
4911 (repropagate_negates): Do not use get_unary_op here.
4913 2016-02-29 Martin Liska <mliska@suse.cz>
4915 * system.h: Poison ENABLE_CHECKING macro.
4917 2016-02-29 Martin Liska <mliska@suse.cz>
4919 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4920 is presented in dump flags.
4921 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4922 (hsa_regalloc): Likewise.
4924 2016-02-19 Richard Biener <rguenther@suse.de>
4926 PR tree-optimization/69980
4927 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4928 permutation of those we need to keep.
4930 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4933 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4934 (NWORDS_UP): ...this
4935 (init_cumulative_args): Minor tweaks.
4936 (sparc_promote_function_mode): Likewise.
4937 (scan_record_type): Delete.
4938 (traverse_record_type): New function template.
4939 (classify_data_t): New structure type.
4940 (classify_registers): New inline function.
4941 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4942 exhausted. Instantiate traverse_record_type on classify_registers and
4943 deal with the case of a structure passed in slot #15 with no FP field
4945 (assign_data_t): New structure type.
4946 (compute_int_layout): New static function.
4947 (compute_fp_layout): Likewise.
4948 (count_registers): New inline function.
4949 (assign_int_registers): New static function.
4950 (assign_fp_registers): Likewise.
4951 (assign_registers): New inline function.
4952 (function_arg_record_value_1): Delete.
4953 (function_arg_record_value_2): Likewise.
4954 (function_arg_record_value_3): Likewise.
4955 (function_arg_record_value): Adjust to above changes. Instantiate
4956 traverse_record_type on count_registers to first count the number of
4957 registers to be used and then on assign_registers to assign them.
4958 (function_arg_union_value): Adjust to above renaming.
4959 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4960 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4961 case of a structure passed in slot #15
4962 (sparc_function_arg_advance): Likewise.
4963 (function_arg_padding): Minor tweak.
4965 2016-02-29 Richard Biener <rguenther@suse.de>
4967 PR tree-optimization/69720
4968 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4969 the adjustment_def path for possibly vectorized defs.
4970 (vect_create_epilog_for_reduction): Handle vectorized initial
4973 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4975 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4977 2016-02-27 Jeff Law <law@redhat.com>
4980 2016-02-26 Richard Biener <rguenther@suse.de>
4981 Jeff Law <law@redhat.com>
4983 PR tree-optimization/69740
4984 * cfghooks.c (remove_edge): Request loop fixups if we delete
4985 an edge that might turn an irreducible loop into a natural
4988 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4990 PR rtl-optimization/69896
4991 * tree-vect-generic.c (get_compute_type): Avoid single element
4994 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4996 Rename the AArch64 tuning option and related functions to enable the
4997 Newton series for the reciprocal square root to reflect its
4998 approximative characteristic.
5000 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
5001 function to "aarch64_emit_approx_rsqrt".
5002 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
5003 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
5004 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
5005 (xgene1_tunings): Likewise.
5006 (use_rsqrt_p): Likewise.
5007 (aarch64_emit_swrsqrt): Use new function name.
5008 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
5009 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
5010 text explaining this option.
5011 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
5013 2016-02-26 Jakub Jelinek <jakub@redhat.com>
5016 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5017 complain about -mallow-movmisalign without -mvsx if
5018 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
5020 2016-02-26 Joel Sherrill <joel@rtems.org>
5022 * config.gcc: Add x86_64-*-rtems*.
5023 * gcc/config/i386/rtems-64.h: New file.
5025 2016-02-26 Joel Sherrill <joel@rtems.org>
5027 * config.gcc: Add aarch64-*-rtems*.
5028 * gcc/config/aarch64/rtems.h: New file.
5030 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
5033 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
5034 shift amount using %h. Add comment.
5036 2016-02-26 Richard Biener <rguenther@suse.de>
5037 Jeff Law <law@redhat.com>
5039 PR tree-optimization/69740
5040 * cfghooks.c (remove_edge): Request loop fixups if we delete
5041 an edge that might turn an irreducible loop into a natural
5044 2016-02-26 Martin Jambor <mjambor@suse.cz>
5047 * tree-sra.c (sra_modify_assign): Do not remove loads of
5048 uninitialized aggregates to SSA_NAMEs.
5050 2016-02-26 Richard Henderson <rth@redhat.com>
5053 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
5054 pseudo in case the target rtx matches the source of the left
5057 2016-02-26 Martin Jambor <mjambor@suse.cz>
5060 * hsa.h (hsa_type_packed_p): Declare.
5061 * hsa.c (hsa_type_packed_p): New function.
5062 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
5064 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
5065 * hsa-brig.c (emit_basic_insn): Likewise.
5067 2016-02-26 Martin Jambor <mjambor@suse.cz>
5070 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
5072 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
5074 2016-02-26 Martin Jambor <mjambor@suse.cz>
5076 * hsa.h (is_a_helper): New overload for hsa_op_immed for
5077 hsa_op_with_type operands.
5078 (hsa_unsigned_type_for_type): Declare.
5079 * hsa.c (hsa_unsigned_type_for_type): New function.
5080 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
5081 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
5082 the finalizer. Do not emit extra move.
5084 2016-02-26 Martin Jambor <mjambor@suse.cz>
5086 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
5087 atomic operations in private segment.
5089 2016-02-26 Martin Jambor <mjambor@suse.cz>
5091 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
5092 statements to wi->info. Also disallow omp simd constructs.
5093 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
5094 for not gridifying. Dump special string for omp_for.
5096 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5099 * config/aarch64/aarch64.c (aarch64_set_current_function):
5100 Save/restore target globals when switching to
5101 target_option_default_node.
5103 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5106 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
5107 Return 0 if !SHIFT_COUNT_TRUNCATED.
5109 2016-02-26 Jakub Jelinek <jakub@redhat.com>
5110 Eric Botcazou <ebotcazou@adacore.com>
5112 PR rtl-optimization/69891
5113 * dse.c (scan_insn): If we can't figure out memset arguments
5114 or they are non-constant, call clear_rhs_from_active_local_stores.
5116 2016-02-26 Martin Liska <mliska@suse.cz>
5118 * doc/extend.texi: Mention clog10, clog10f an clog10l
5119 in Builtins section.
5121 2016-02-26 Martin Liska <mliska@suse.cz>
5123 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
5125 (resolve_args_picking_1): Likewise.
5126 * dwarf2out.h (struct GTY): Likewise.
5128 2016-02-26 Martin Liska <mliska@suse.cz>
5130 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
5132 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
5134 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
5135 Martin Liska <mliska@suse.cz>
5137 * doc/install.texi: Mention --enable-valgrind-annotations.
5139 2016-02-26 Richard Biener <rguenther@suse.de>
5141 PR tree-optimization/69551
5142 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
5143 looking through aliases adjust DECL_PT_UID to refer to the
5144 ultimate alias target.
5146 2016-02-25 Martin Liska <mliska@suse.cz>
5149 * alloc-pool.c (after_memory_report): New variable.
5150 * alloc-pool.h (base_pool_allocator ::release): Do not use
5151 the infrastructure if after_memory_report.
5152 * toplev.c (toplev::main): Mark after memory report.
5154 2016-02-25 Richard Biener <rguenther@suse.de>
5156 PR tree-optimization/48795
5157 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
5159 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5162 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
5163 offloading is enabled and -fopenacc or -fopenmp is specified.
5164 (CRTOFFLOADEND): Likewise.
5165 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
5166 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
5167 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
5168 (offload_objects_file_name): New static var.
5169 (tool_cleanup): Remove offload_objects_file_name file.
5170 (find_offloadbeginend): Replace with ...
5171 (find_crtoffloadtable): ... this.
5172 (run_gcc): Remove offload_argc and offload_argv.
5173 Get offload_objects_file_name from -foffload-objects=... option.
5174 Read names of object files with offload from this file, pass them to
5175 compile_images_for_offload_targets. Don't call find_offloadbeginend and
5176 don't pass offloadbegin and offloadend to the linker. Don't pass
5177 offload non-LTO files to the linker, because now they're not claimed.
5179 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
5182 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5183 on builtin_unreachable.
5185 2016-02-25 Jakub Jelinek <jakub@redhat.com>
5187 PR rtl-optimization/69896
5188 * regcprop.c: Include cfgrtl.h.
5189 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
5190 than remembered mode, either delete it (if noop_move_p), or
5191 treat like copy_p but not noop_p instruction.
5193 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5196 * dwarf2out.c (gen_variable_die): Work around buggy LTO
5197 - allow NULL decl for Fortran DW_TAG_common_block variables.
5199 2016-02-24 Jason Merrill <jason@redhat.com>
5201 * common.opt (flifetime-dse): Add -flifetime-dse=1.
5203 2016-02-24 Richard Biener <rguenther@suse.de>
5204 Jakub Jelinek <jakub@redhat.com>
5207 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
5208 conditionally executed ops to well-defined overflow behavior.
5210 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5213 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
5216 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5218 PR rtl-optimization/69886
5219 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
5220 argument. Use it when checking validity of set instructions.
5221 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
5222 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
5224 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
5225 * store-motion.c (find_moveable_store): Update
5226 can_assign_to_reg_without_clobbers_p callsite.
5228 2016-02-24 Richard Biener <rguenther@suse.de>
5231 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
5233 (record_nonwrapping_iv): Do not fall back to the low/high bound
5234 for non-constant IV bases if the stmt is not always executed.
5236 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5238 * config/arm/arm-cores.def (cortex-a32): New entry.
5239 * config/arm/arm-tables.opt: Regenerate.
5240 * config/arm/arm-tune.md: Regenerate.
5241 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
5242 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
5243 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
5244 for -mcpu and -mtune.
5246 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5249 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
5250 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
5251 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
5252 (atomic_loaddi_1): Delete.
5253 (atomic_loaddi): Rewrite expander using the above changes.
5255 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5258 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
5261 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5262 Richard Biener <rguenth@suse.de>
5265 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
5266 set_mem_attributes if tem is SSA_NAME which got expanded
5269 2016-02-24 Richard Biener <rguenther@suse.de>
5271 PR tree-optimization/69907
5272 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
5273 end of permutations for BB vectorization.
5275 2016-02-24 Christian Bruel <christian.bruel@st.com>
5277 * config/arm/arm-c.c (arm_option_override): Initialize
5278 target_option_current_node.
5279 * config/arm/arm.c (arm_pragma_target_parse): Replace
5280 build_target_option_node call by target_option_current_node.
5281 Set target_option_current_node.
5284 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
5287 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
5288 define_insn_and_split to define_insn.
5289 (zero_extendqi<mode>2_dot2): Same.
5290 (extendqi<mode>2_dot): Same.
5291 (extendqi<mode>2_dot2): Same.
5293 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5295 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
5296 and add bypass for AES{D,E} and AESMC pairs.
5297 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
5300 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5302 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
5303 series for reciprocal square root in Exynos M1.
5305 2016-02-23 Martin Sebor <msebor@redhat.com>
5308 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
5309 __builtin_alloca_with_align.
5311 2016-02-23 Richard Henderson <rth@redhat.com>
5313 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
5314 (ix86_register_pragmas): Remove __seg_tls.
5315 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
5316 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
5317 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
5318 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
5319 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
5320 * doc/extend.texi (__seg_tls): Remove item.
5322 2016-02-23 Richard Biener <rguenther@suse.de>
5324 * alloc-pool.h (struct allocation_object): Make id member
5325 conditional on CHECKING_P again.
5326 (get_instance): Adjust.
5327 (base_pool_allocator): Likewise.
5329 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5331 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
5332 (parallelize_loops): In OpenACC kernels mode, set n_threads to
5334 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
5336 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5338 2016-02-23 Richard Biener <rguenther@suse.de>
5340 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
5341 * bitmap.h (struct bitmap_usage): Likewise.
5342 (bitmap_move): Declare.
5343 * bitmap.c (register_overhead): Take size_t argument.
5344 (bitmap_move): New function.
5345 * df-problems.c (df_rd_transfer_function): Use bitmap_move
5346 to properly account overhead.
5347 * tree.c (free_node): Use tree_size.
5349 2016-02-23 Jakub Jelinek <jakub@redhat.com>
5352 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5353 when inverting comparison.
5356 * common.opt (Wunreachable-code): Add Warning flag.
5358 2016-02-23 Mark Wielaard <mjw@redhat.com>
5359 Jakub Jelinek <jakub@redhat.com>
5362 * cgraphunit.c (check_global_declaration): Check main_input_filename
5363 and DECL_SOURCE_FILE are not NULL.
5365 2016-02-23 Martin Jambor <mjambor@suse.cz>
5367 PR tree-optimization/69666
5368 * tree-sra.c (sra_modify_assign): Do not attempt to create
5369 default_def replacements for unscalarizable regions.
5371 2016-02-20 Mark Wielaard <mjw@redhat.com>
5374 * cgraphunit.c (check_global_declaration): Check level of
5375 warn_unused_const_variable and main_input_filename.
5376 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5377 (-Wunused-variable): For C implies -Wunused-const-variable=1.
5378 (-Wunused-const-variable): Explain levels 1 and 2.
5380 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5383 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5384 identical arguments. Formatting and spelling fixes.
5387 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5392 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5393 and m68k-devices.def.
5394 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5395 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5397 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5399 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5400 and HImode registers.
5402 2016-02-22 Richard Biener <rguenther@suse.de>
5404 PR tree-optimization/69882
5405 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5406 preserve permutations present because of gaps.
5407 (vect_supported_load_permutation_p): Always continue checking
5408 permutations after vect_attempt_slp_rearrange_stmts.
5410 2016-02-22 Bin Cheng <bin.cheng@arm.com>
5412 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5413 min_profitable_estimate, rather than min_profitable_iters.
5415 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5418 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5419 SImode for last match_operand.
5421 2016-02-22 Martin Liska <mliska@suse.cz>
5423 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5424 return bitsize - 1 as the return value.
5426 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5430 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5431 Handle negative shift counts.
5432 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5433 force_reg on the shift constant.
5434 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
5435 (lshrsi3_d): Handle negative shift counts.
5437 2016-02-22 Richard Biener <rguenther@suse.de>
5438 Tom de Vries <tom@codesourcery.com>
5440 * graph.c: Include dumpfile.h.
5441 (print_graph_cfg): Split into three overloads.
5442 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5444 2016-02-22 Tom de Vries <tom@codesourcery.com>
5446 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5449 2016-02-22 Richard Biener <rguenther@suse.de>
5452 * ipa-inline-transform.c (inline_call): When not updating
5453 overall summaries adjust self size by the growth estimate.
5454 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5455 hash-set, do not update overall summaries here. Renamed from ...
5456 (inline_to_all_callers): ... this which is now wrapping the
5457 above and performing delayed overall summary update.
5458 (early_inline_small_functions): Delay updating of the overall
5461 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
5463 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5466 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5469 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5470 :%* in %:gt() argument.
5471 (greater_than_spec_func): Adjust for expecting only numbers,
5472 if there are more than two numbers, compare the last two.
5474 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
5476 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5477 -Wnarrowing with -std.
5479 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5482 * expr.c (store_field): Don't use bit-field path if exp is
5483 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5484 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5485 and the assignment can be performed by bitwise copy. Formatting
5489 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5490 call copy_reg_eh_region_note_forward on before and/or after sequences
5491 and remove note from insn if it no longer can throw.
5494 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5497 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5499 * config/s390/vector.md: Add missing commutative operand markers
5500 to the patterns which qualify for one.
5501 * config/s390/vx-builtins.md: Likewise.
5503 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5505 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5506 types to mode iterators.
5507 (vec_double): ... and mode attribute.
5508 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5510 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5512 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5513 Change the predicate of op2 from nonimmediate to general and let
5514 reload fix it if necessary.
5516 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5518 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5520 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5522 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5525 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5527 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5528 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5529 * config/s390/s390.md ("movstr<P:mode>"): Call
5530 s390_expand_vec_movstr.
5532 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5534 * config/s390/s390.md: Add missing output modifier for operand 1
5535 to print it as address properly.
5537 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5539 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5540 * config/s390/2964.md: New file.
5541 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5542 of insn grouping attributes depending on the CPU level.
5543 (s390_get_unit_mask): New function.
5544 (s390_sched_score): Remove the OOO from the scheduling macros.
5545 Add loop to calculate a score for the instruction mix.
5546 (s390_sched_reorder): Likewise plus improve debug output.
5547 (s390_sched_variable_issue): Rename macros as above. Calculate
5548 the unit distances after actually scheduling an insn. Improve
5550 (s390_sched_init): Clear last_scheduled_unit_distance array.
5551 * config/s390/s390.md: Include 2964.md.
5553 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5556 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5557 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5558 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5559 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5560 *avx512f_<code>v8div16qi2_mask_1): New insns.
5562 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5565 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5568 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5569 earlyclobber from target. Use wF constraint for fused memory
5571 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5573 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5574 Martin Liska <mliska@suse.cz>
5577 * cfgexpand.c (asan_sanitize_stack_p): New function.
5578 (partition_stack_vars): Use the function.
5579 (expand_stack_vars): Likewise.
5580 (defer_stack_allocation): Likewise.
5581 (expand_used_vars): Likewise.
5583 2016-02-18 Richard Biener <rguenther@suse.de>
5586 * fold-const.c (operand_equal_p): Properly compare offsets for
5587 IMAGPART_EXPR and ARRAY_REF.
5589 2016-02-18 Nick Clifton <nickc@redhat.com>
5593 * config/arm/arm.c (arm_option_override_internal): Disable
5594 interworking if the target does not support thumb instructions.
5595 (arm_reload_in_hi): Handle the case where a register to register
5596 move needs reloading because there is no simple pattern to handle
5598 (arm_reload_out_hi): Likewise.
5600 2016-02-18 Richard Biener <rguenther@suse.de>
5603 * match.pd: Don't use fold_binary or fold_unary for folding
5606 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5609 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5610 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5611 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5612 warn on gimple_no_warning_p statements.
5614 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5616 * doc/extend.texi (C++ Attributes): Correct description of
5617 warn_unused type attribute.
5619 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5621 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5622 correct instruction.
5624 2016-02-17 Richard Biener <rguenther@suse.de>
5626 PR rtl-optimization/69609
5627 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5628 (find_traces_1_round): When ending a trace update cached priority
5630 (bb_to_key): Use cached priority when available.
5631 (copy_bb): Initialize cached priority.
5632 (reorder_basic_blocks_software_trace_cache): Likewise.
5634 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5637 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5639 (aarch64_comparison_operator): Break overly long line into two.
5640 (aarch64_comparison_operation): Likewise.
5641 * config/aarch64/aarch64.md (cstorecc4): Use
5642 aarch64_comparison_operator_mode instead of
5643 aarch64_comparison_operator.
5644 (cstore<mode>4): Likewise.
5645 (aarch64_cstore<mode>): Likewise.
5646 (*cstoresi_insn_uxtw): Likewise.
5647 (cstore<mode>_neg): Likewise.
5648 (*cstoresi_neg_uxtw): Likewise.
5650 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5653 * config/arm/predicates.md (arm_comparison_operator_mode):
5655 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5656 instead of arm_comparison_operator.
5657 (*mov_negscc): Likewise.
5658 (*mov_notscc): Likewise.
5659 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5660 (*thumb2_mov_negscc): Likewise.
5661 (*thumb2_mov_negscc_strict_it): Likewise.
5662 (*thumb2_mov_notscc): Likewise.
5663 (*thumb2_mov_notscc_strict_it): Likewise.
5665 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5667 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5670 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5672 * config/visium/visium.c (machine_libfunc_index): New enum.
5673 (machine_libfuncs): New structure.
5674 (visium_libfuncs): New static variable.
5675 (TARGET_INIT_LIBFUNCS): Define to...
5676 (visium_init_libfuncs): ...this. New function.
5677 (expand_block_move_4): Use the appropriate libfunc.
5678 (expand_block_move_2): Likewise.
5679 (expand_block_move_1): Likewise.
5680 (expand_block_set_4): Likewise.
5681 (expand_block_set_2): Likewise.
5682 (expand_block_set_1): Likewise.
5683 (visium_trampoline_init): Likewise.
5685 2016-02-17 Nick Clifton <nickc@redhat.com>
5687 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5688 TI's devices.csv file as of March 2016.
5690 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5693 * opts-global.c (handle_common_deferred_options): Introduce and
5694 initialize two global variables to remember command-line options
5695 specifying a stack-limiting register.
5696 * opts.h: Add extern declarations of the two new global variables.
5697 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5698 variable based on the values of the two new global variables.
5700 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5703 * common.opt (Wnonnull-compare): New warning.
5704 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5705 of arguments against NULL.
5706 (-Wnonnull-compare): Document.
5707 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5708 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5709 * passes.def (pass_warn_nonnull_compare): Add.
5710 * gimple-ssa-nonnull-compare.c: New file.
5712 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5714 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5715 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5717 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5719 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5720 reciprocal sqrt for -mlow-precision-recip-sqrt.
5722 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5723 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5725 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5726 always use lane loads to construct non-constant vectors.
5728 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5730 * config/aarch64/aarch64.md
5731 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5732 constraints for operand 3.
5733 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5735 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5736 Richard Biener <rguenther@suse.de>
5738 PR tree-optimization/69820
5739 * tree-vect-patterns.c (type_conversion_p): Return false if
5740 *orig_type is unsigned single precision or boolean.
5741 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5744 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5746 PR rtl-optimization/69764
5747 PR rtl-optimization/69771
5748 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5749 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5751 2016-02-16 Richard Biener <rguenther@suse.de>
5753 PR tree-optimization/69776
5754 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5756 (indirect_refs_may_alias_p): Likewise.
5757 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5758 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5759 according to tbaa_p.
5760 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5761 (optimize_stmt): For redundant store discovery do not allow tbaa.
5763 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5765 PR tree-optimization/69714
5766 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5767 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5769 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5771 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5772 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5773 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5774 * config/arc/arc.c (arc_init): Check FPU options.
5775 (get_arc_condition_code): Handle new CC_FPU* modes.
5776 (arc_select_cc_mode): Likewise.
5777 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5778 register pair only. Allow access for ARCv2 accumulator.
5779 (gen_compare_reg): Whenever we have FPU support use FPU compare
5781 (arc_reorg): Don't generate brcc insns when FPU compare
5782 instructions are involved.
5783 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5784 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5785 floating point emulation.
5786 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5787 (REVERSE_CONDITION): Add new CC_FPU* modes.
5788 (TARGET_FP_SP_BASE): Define.
5789 (TARGET_FP_DP_BASE): Likewise.
5790 (TARGET_FP_SP_FUSED): Likewise.
5791 (TARGET_FP_DP_FUSED): Likewise.
5792 (TARGET_FP_SP_CONV): Likewise.
5793 (TARGET_FP_DP_CONV): Likewise.
5794 (TARGET_FP_SP_SQRT): Likewise.
5795 (TARGET_FP_DP_SQRT): Likewise.
5796 (TARGET_FP_DP_AX): Likewise.
5797 * config/arc/arc.md (ARCV2_ACC): New constant.
5798 (type): New fpu type attribute.
5799 (SDF): Conditional iterator.
5800 (cstore<mode>, cbranch<mode>): Change expand condition.
5801 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5802 handles FPU/FPX cases as well.
5803 * config/arc/arc.opt (mfpu): New option.
5804 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5806 (adddf3, muldf3, subdf3): Removed.
5807 * config/arc/predicates.md (proper_comparison_operator): Recognize
5809 * config/arc/fpu.md: New file.
5810 * doc/invoke.texi (ARC Options): Document mfpu option.
5812 2016-02-16 Richard Biener <rguenther@suse.de>
5814 PR rtl-optimization/69291
5815 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5816 noce_operand_ok check.
5818 2016-02-16 Tom de Vries <tom@codesourcery.com>
5821 * omp-low.c (simd_clone_create): Remove call to
5822 symtab->call_cgraph_insertion_hooks.
5824 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5826 PR tree-optimization/69802
5827 * tree-ssa-reassoc.c (update_range_test): If op is
5828 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5829 op == 1 test of precision 1 integral op, otherwise handle
5830 that case as op itself. Fix up formatting.
5831 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5834 2016-02-16 Richard Biener <rguenther@suse.de>
5836 PR tree-optimization/69586
5837 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5838 types for conversion sources.
5840 2016-02-16 Richard Biener <rguenther@suse.de>
5843 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5844 mask OEP_ADDRESS_OF.
5846 2016-02-16 Alan Modra <amodra@gmail.com>
5849 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5850 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5851 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5853 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5854 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5855 (p8_fmrgow_<mode>): Likewise.
5856 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5858 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5859 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5860 to use movdi_internal64. Remove op0_di.
5861 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5863 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5865 Add support for the FCCMP insn types
5867 * config/aarch64/aarch64.md (fccmp): Change insn type.
5869 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5870 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5871 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5872 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5873 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5874 * config/arm/types.md (fccmps): Add new insn type.
5877 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5879 * alias.c (get_alias_set): Fix a typo in comment.
5881 2016-02-15 Richard Biener <rguenther@suse.de>
5883 PR tree-optimization/69595
5884 * match.pd: Complete range test simplification to true.
5886 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5888 PR rtl-optimization/69648
5889 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5890 pic_offset_table_rtx.
5892 PR rtl-optimization/69752
5893 * ira.c (update_equiv_regs): When looking for more than a single SET,
5894 also take other side effects into account.
5896 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5898 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5899 for z900+ CPUs in 31-bit mode.
5901 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5903 * common/config/s390/s390-common.c (s390_supports_split_stack):
5905 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5906 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5907 * config/s390/s390.c (struct machine_function): New field
5908 split_stack_varargs_pointer.
5909 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5910 in s390_emit_prologue.
5911 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5913 (morestack_ref): New global.
5914 (SPLIT_STACK_AVAILABLE): New macro.
5915 (s390_expand_split_stack_prologue): New function.
5916 (s390_live_on_entry): New function.
5917 (s390_va_start): Use split-stack vararg pointer if appropriate.
5918 (s390_asm_file_end): Emit the split-stack note sections.
5919 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5920 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5921 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5922 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5923 (split_stack_prologue): New expand.
5924 (split_stack_space_check): New expand.
5925 (split_stack_data): New insn.
5926 (split_stack_call): New expand.
5927 (split_stack_call_*): New insn.
5928 (split_stack_cond_call): New expand.
5929 (split_stack_cond_call_*): New insn.
5931 2016-02-15 Richard Biener <rguenther@suse.de>
5933 PR tree-optimization/69783
5934 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5935 Add trivially correct cases.
5937 2016-02-15 Tom de Vries <tom@codesourcery.com>
5940 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5942 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5944 2016-02-15 Richard Biener <rguenther@suse.de>
5946 PR tree-optimization/69776
5947 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5948 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5949 indicate whether we can use TBAA to disambiguate against stores.
5950 Use alias-set zero if not.
5951 (visit_reference_op_store): Do not use TBAA when looking up
5953 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5954 (eliminate_dom_walker::before_dom_children): But not when looking
5955 up redundant stores.
5957 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5959 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5961 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5963 * config/i386/znver1.md
5964 (znver1_pop, znver1_pop_mem,
5965 znver1_load_imov_double_store,
5966 znver1_load_imov_direct_store,
5967 znver1_load_imov_direct_load,
5968 znver1_load_imov_double_load): Add new.
5969 (znver1_insn, znver1_insn_load): Add icmov type.
5971 znver1_sseavx_fma_load,
5973 znver1_avx256_fma_load): Fix pipe usage.
5975 2016-02-14 Alan Modra <amodra@gmail.com>
5978 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5979 with an invalid hard reg, reload just the reg not the entire
5980 pre/post-inc/dec address expression.
5982 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5985 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5986 fixed R1_REG scratch reg.
5987 (sibcall_value_pcrel_fdpic): Likewise.
5989 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5993 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5995 2016-02-12 Walter Lee <walt@tilera.com>
5997 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5998 * config/tilegx/t-tilegx: Likewise.
6000 2016-02-12 David Malcolm <dmalcolm@redhat.com>
6003 * diagnostic-show-locus.c (struct line_span): New struct.
6004 (layout::get_first_line): Delete.
6005 (layout::get_last_line): Delete.
6006 (layout::get_num_line_spans): New member function.
6007 (layout::get_line_span): Likewise.
6008 (layout::print_heading_for_line_span_index_p): Likewise.
6009 (layout::get_expanded_location): Likewise.
6010 (layout::calculate_line_spans): Likewise.
6011 (layout::m_first_line): Delete.
6012 (layout::m_last_line): Delete.
6013 (layout::m_line_spans): New field.
6014 (layout::layout): Update comment. Replace m_first_line and
6015 m_last_line with m_line_spans, replacing their initialization
6016 with a call to calculate_line_spans.
6017 (diagnostic_show_locus): When printing source lines and
6018 annotations, rather than looping over a single span
6019 of lines, instead loop over each line_span within
6020 the layout, with an inner loop over the lines within them.
6021 Call the context's start_span callback when changing line spans.
6022 * diagnostic.c (diagnostic_initialize): Initialize start_span.
6023 (diagnostic_build_prefix): Break out the building of the location
6024 part of the string into...
6025 (diagnostic_get_location_text): ...this new function, rewriting
6026 it from nested ternary expressions to a sequence of "if"
6028 (default_diagnostic_start_span_fn): New function.
6029 * diagnostic.h (diagnostic_start_span_fn): New typedef.
6030 (diagnostic_context::start_span): New field.
6031 (default_diagnostic_start_span_fn): New prototype.
6033 2016-02-12 David Malcolm <dmalcolm@redhat.com>
6036 * gcc.c (driver::finalize): Fix cleanup of "specs".
6038 2016-02-12 David Malcolm <dmalcolm@redhat.com>
6042 * gcc.c (driver::driver): Initialize m_option_suggestions.
6043 (driver::~driver): Clean up m_option_suggestions.
6044 (suggest_option): Convert to...
6045 (driver::suggest_option): ...this, and split out into
6046 driver::build_option_suggestions and find_closest_string.
6047 (driver::build_option_suggestions): New function, from
6048 first half of suggest_option. Special-case
6049 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
6050 the sanitizer_opts array. For options of enum types, add the
6051 various enum values to the candidate strings.
6052 (driver::handle_unrecognized_options): Remove "const".
6053 * gcc.h (driver::handle_unrecognized_options): Likewise.
6054 (driver::build_option_suggestions): New decl.
6055 (driver::suggest_option): New decl.
6056 (driver::m_option_suggestions): New field.
6057 * opts-common.c (add_misspelling_candidates): New function.
6058 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
6059 and make non-static.
6060 * opts.h (sanitizer_opts): New array decl.
6061 (add_misspelling_candidates): New function decl.
6062 * spellcheck.c (find_closest_string): New function.
6063 * spellcheck.h (find_closest_string): New function decl.
6065 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6067 PR rtl-optimization/69764
6068 PR rtl-optimization/69771
6069 * optabs.c (expand_binop_directly): For shift_optab_p, force
6070 convert_modes with VOIDmode if xop1 has VOIDmode.
6072 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6075 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
6076 to correctly determine instrumentation thunks.
6078 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6081 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
6082 type by reference, force lhs on the call.
6085 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
6086 Compute retval and retbnd early in all cases if split_part_return_p
6087 and return_bb is not EXIT. Remove all clobber stmts and reset
6088 all debug stmts that refer to SSA_NAMEs defined in split part,
6089 except if it is retval, in that case replace the old retval with the
6090 lhs of the call to the split part.
6092 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6095 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6098 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6099 whose result is used in PHI.
6100 (maybe_optimize_range_tests): Likewise.
6101 (final_range_test_p): Likweise.
6103 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6106 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6107 whose result is used in PHI.
6108 (maybe_optimize_range_tests): Likewise.
6109 (final_range_test_p): Likweise.
6111 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6113 * cgraph.c: Spelling fixes - behaviour -> behavior and
6114 neighbour -> neighbor.
6115 * target.def: Likewise.
6116 * sel-sched.c: Likewise.
6117 * config/mips/mips.c: Likewise.
6118 * config/arc/arc.md: Likewise.
6119 * config/arm/cortex-a57.md: Likewise.
6120 * config/arm/arm.c: Likewise.
6121 * config/arm/neon.md: Likewise.
6122 * config/arm/arm-c.c: Likewise.
6123 * config/vms/vms-c.c: Likewise.
6124 * config/s390/s390.c: Likewise.
6125 * config/i386/znver1.md: Likewise.
6126 * config/i386/i386.c: Likewise.
6127 * config/ia64/hpux-unix2003.h: Likewise.
6128 * config/msp430/msp430.md: Likewise.
6129 * config/rx/rx.c: Likewise.
6130 * config/rx/rx.md: Likewise.
6131 * config/aarch64/aarch64-simd.md: Likewise.
6132 * config/aarch64/aarch64.c: Likewise.
6133 * config/nvptx/nvptx.c: Likewise.
6134 * config/bfin/bfin.c: Likewise.
6135 * config/cris/cris.opt: Likewise.
6136 * config/rs6000/rs6000.c: Likewise.
6137 * target.h: Likewise.
6138 * spellcheck.c: Likewise.
6139 * ira-build.c: Likewise.
6140 * tree-inline.c: Likewise.
6141 * builtins.c: Likewise.
6142 * lra-constraints.c: Likewise.
6143 * explow.c: Likewise.
6144 * hwint.h: Likewise.
6145 * targhooks.c: Likewise.
6146 * tree-vect-data-refs.c: Likewise.
6148 * doc/tm.texi: Likewise.
6149 * doc/extend.texi: Likewise.
6150 * doc/install.texi: Likewise.
6151 * doc/md.texi: Likewise.
6152 * tree-ssa-tail-merge.c: Likewise.
6153 * sched-int.h: Likewise.
6154 * match.pd: Likewise.
6155 * sched-ebb.c: Likewise.
6156 * target.def (omit_struct_return_reg): Likewise.
6157 * gimple-ssa-isolate-paths.c: Likewise.
6158 (find_implicit_erroneous_behaviour): Renamed to...
6159 (find_implicit_erroneous_behavior): ... this.
6160 (find_explicit_erroneous_behaviour): Renamed to...
6161 (find_explicit_erroneous_behavior): ... this.
6162 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
6164 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
6166 PR rtl-optimization/64682
6167 PR rtl-optimization/69567
6168 PR rtl-optimization/69737
6169 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
6170 in I2 as well, just lose it.
6172 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6174 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
6176 (aarch64_last_printed_tune_string): Likewise.
6177 (aarch64_declare_function_name): Only output .arch assembler
6178 directive if it will be different from the previously output
6179 directive. Same for .tune comment but only if -dA is set.
6180 (aarch64_start_file): New function.
6181 (TARGET_ASM_FILE_START): Define.
6183 2016-02-11 David Malcolm <dmalcolm@redhat.com>
6186 * Makefile.in (PLUGIN_HEADERS): Add params.list.
6188 2016-02-11 Jakub Jelinek <jakub@redhat.com>
6191 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
6192 -Wmaybe-uninitialized warning.
6194 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
6197 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
6199 2016-02-11 Richard Biener <rguenther@suse.de>
6201 PR rtl-optimization/69291
6202 * ifcvt.c (noce_try_store_flag_constants): Do not allow
6203 subexpressions affected by changing the result.
6205 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
6208 * lra-constraints.c (curr_insn_transform): Find in/out operands
6209 for secondary memory moves. Update dups.
6211 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
6213 PR tree-optimization/69652
6214 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
6215 to nested loop, did source re-formatting, skip debug statements,
6216 add check on statement with volatile operand, remove dead scalar
6219 2016-02-10 Jakub Jelinek <jakub@redhat.com>
6220 Patrick Palka <ppalka@gcc.gnu.org>
6224 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
6225 calls if the return type is TREE_ADDRESSABLE.
6226 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
6227 * ipa-split.c (split_function): Fix doubled "we" in comment.
6228 Use void return type for the split part even if
6229 !split_point->split_part_set_retval.
6231 2016-02-10 Bin Cheng <bin.cheng@arm.com>
6233 PR tree-optimization/68021
6234 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
6235 when computing the value of biv cand by itself.
6237 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
6239 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
6240 (cortexa57_tunings): Likewise.
6241 (cortexa72_tunings): Likewise.
6242 (arch_macro_fusion_pair_p): Add support for AES fusion.
6243 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
6244 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6245 Allow virtual registers before reload so early scheduling works.
6246 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
6247 correct latency and pipeline.
6248 (cortex_a57_crypto_complex): Likewise.
6249 (cortex_a57_crypto_xor): Likewise.
6250 (define_bypass): Add AES bypass.
6252 2016-02-10 Richard Biener <rguenther@suse.de>
6254 PR tree-optimization/69726
6255 * passes.def: Add DCE pass before late uninit.
6256 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
6257 really fixup if-conversions job.
6259 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
6261 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
6262 (arm_cortex_a57_tune): Likewise.
6263 (aarch_macro_fusion_pair_p): Add support for AES fusion.
6264 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
6266 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
6268 * timevar.def (TV_PHASE_DBGINFO): Delete.
6269 (TV_PHASE_CHECK_DBGINFO): Likewise.
6270 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
6272 2016-02-10 Richard Biener <rguenther@suse.de>
6274 PR tree-optimization/69719
6275 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6276 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
6278 2016-02-09 Andrew Pinski <apinski@cavium.com>
6281 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
6282 get_vcond_mask_icode returns false.
6284 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6287 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
6288 an ADDIS that adds a pointer to a large constant that sets the
6289 upper16 bits with a load operation.
6291 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6294 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
6296 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
6298 (vzipq_s16): Likewise.
6299 (vzipq_s32): Likewise.
6300 (vzipq_f32): Likewise.
6301 (vzipq_u8): Likewise.
6302 (vzipq_u16): Likewise.
6303 (vzipq_u32): Likewise.
6304 (vzipq_p8): Likewise.
6305 (vzipq_p16): Likewise.
6307 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6310 * config/arm/arm.c (neon_endian_lane_map): New function.
6311 (neon_vector_pair_endian_lane_map): New function.
6312 (arm_evpc_neon_vuzp): Allow for big endian lane order.
6313 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
6315 (vuzpq_s16): Likewise.
6316 (vuzpq_s32): Likewise.
6317 (vuzpq_f32): Likewise.
6318 (vuzpq_u8): Likewise.
6319 (vuzpq_u16): Likewise.
6320 (vuzpq_u32): Likewise.
6321 (vuzpq_p8): Likewise.
6322 (vuzpq_p16): Likewise.
6324 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
6327 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
6330 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
6332 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
6333 truncate const_int operand 1 to QImode.
6335 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
6337 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
6338 corresponding to an abnormal edge.
6340 2016-02-09 Tom de Vries <tom@codesourcery.com>
6342 PR tree-optimization/69599
6343 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
6345 (find_func_aliases_for_builtin_call, find_func_clobbers)
6346 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
6349 2016-02-09 Richard Biener <rguenther@suse.de>
6351 PR tree-optimization/69715
6352 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6353 LHS on calls as non-rewritable.
6355 2016-02-09 Tom de Vries <tom@codesourcery.com>
6358 * lto-wrapper.c (append_diag_options): New function.
6359 (compile_offload_image): Call append_diag_options.
6361 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
6364 * doc/extend.texi (Flag Output Operands): Correct sectioning.
6365 Minor copy-edit to fix verb tenses.
6367 2016-02-08 Jakub Jelinek <jakub@redhat.com>
6369 PR tree-optimization/69209
6370 * ipa-split.c (split_function): If split part is not
6371 returning retval, retval has gimple type but is not
6372 gimple value, force it into a SSA_NAME first.
6374 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
6376 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6379 2016-02-08 Jason Merrill <jason@redhat.com>
6382 * convert.c (convert_to_integer_1): Check dofold on truncation
6384 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6385 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6386 Rename from *_nofold.
6387 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6388 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6390 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6393 * tree.c (build_common_tree_nodes): Remove short_double argument.
6394 All callers changed.
6395 * tree.h (build_common_tree_nodes): Adjust declaration.
6396 * doc/invoke.texi (-fshort-double): Remove documentation.
6397 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6398 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6399 * lto-wrapper.c (merge_and_complain, append_compiler_options)
6400 (append_linker_options): Don't handle OPT_fshort_double.
6402 PR rtl-optimization/68730
6403 * lra-remat.c (insn_to_cand_activation): New static variable.
6404 (lra_remat): Allocate and free it.
6405 (create_cand): New arg activation. Initialize a field in
6406 insn_to_cand_activation if it is nonnull.
6407 (create_cands): Pass the activation insn to create_cand when making
6408 a candidate involving an output reload. Reorganize code a little.
6409 (do_remat): Keep track of active status of candidates in a separate
6412 2016-02-08 Richard Biener <rguenther@suse.de>
6414 PR tree-optimization/69719
6415 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6416 Properly use absolute of the difference of the two offsets to
6417 compare or adjust the segment length.
6419 2016-02-08 Richard Biener <rguenther@suse.de>
6420 Jeff Law <law@redhat.com>
6423 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6424 types for anonymous SSA names.
6426 2016-02-08 Richard Biener <rguenther@suse.de>
6428 PR rtl-optimization/69274
6429 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6431 2016-02-08 Jeff Law <law@redhat.com>
6433 PR tree-optimization/65917
6434 * tree-ssa-dom.c (record_temporary_equivalences): Record both
6435 equivalences from if (x == y) style conditionals.
6436 (loop_depth_of_name): Remove.
6437 (record_equality): Remove loop depth check.
6438 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6439 (const_and_copies::record_const_or_copy_raw): New member function.
6440 * tree-ssa-scopedtables.c
6441 (const_and_copies::record_const_or_copy_raw): New, factored out of
6442 (const_and_copies::record_const_or_copy): Call new member function.
6444 2016-02-05 Jeff Law <law@redhat.com>
6446 PR tree-optimization/68541
6447 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6448 (count_stmts_in_block): New function.
6449 (poor_ifcvt_candidate_code): Likewise.
6450 (is_feasible_trace): Add some heuristics to determine when path
6451 splitting is profitable.
6452 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6453 is a diamond with a single exit.
6455 2016-02-05 Martin Sebor <msebor@redhat.com>
6458 * doc/invoke.texi: Update -Wplacement-new to take an optional
6461 2016-02-06 Richard Henderson <rth@redhat.com>
6464 * tree.c (tree_nop_conversion_p): Do not strip casts into or
6465 out of non-standard address spaces.
6467 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6469 PR rtl-optimization/69691
6470 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6472 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
6474 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6475 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6476 (*ieee128_mfvsrd_64bit): Likewise.
6477 (*ieee128_mfvsrd_32bit): Likewise.
6479 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6483 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6485 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6486 instrumented_version.
6488 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
6490 * doc/invoke.texi (Optimize Options): In table of --param options
6491 rename second occurrence of tracer-min-branch-ratio to
6492 tracer-min-branch-probability, rename
6493 tracer-min-branch-ratio-feedback to
6494 tracer-min-branch-probability-feedback and clarify description,
6495 rename sched-spec-state-edge-prob-cutoff to
6496 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6497 to selsched-insns-to-rename, rename lto-minpartition to
6498 lto-min-partition, delete reorder-blocks-duplicate and
6499 reorder-blocks-duplicate-feedback.
6501 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6503 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6506 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6508 * doc/extend.texi: S/390: Correct some typos.
6510 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6512 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6514 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6517 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6518 (s390_register_info_gprtofpr): Use new macros above.
6519 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6521 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6522 its name. Adjust restore and save gpr ranges.
6523 (s390_register_info_set_ranges): New function.
6524 (s390_register_info): Use new macros above. Call
6525 s390_register_info_set_ranges.
6526 (s390_optimize_register_info): Likewise.
6527 (s390_hard_regno_rename_ok): Use new macros.
6528 (s390_hard_regno_scratch_ok): Likewise.
6529 (s390_emit_epilogue): Likewise.
6530 (s390_can_use_return_insn): Likewise.
6531 (s390_optimize_prologue): Likewise.
6532 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6534 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6537 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6539 (ix86_option_override_internal): Disable TARGET_STV even for
6540 -m{incoming,preferred}-stack-boundary=3.
6542 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6544 * config.gcc: Mark deprecated rtems targets as obsolete.
6546 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6548 PR rtl-optimization/64682
6549 PR rtl-optimization/69567
6550 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6551 before I2 only if the register is both used and set in I2.
6553 2016-02-04 DJ Delorie <dj@redhat.com>
6555 * config/msp430/msp430.c (msp430_start_function): Add function type.
6557 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6560 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6562 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6564 PR rtl-optimization/69577
6566 2015-10-29 Richard Henderson <rth@redhat.com>
6570 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6571 sse check to the exact conditions of PR 67609.
6573 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6576 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6577 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6578 not allowed into the traditional Altivec registers.
6579 (movtd_64bit_nodm): Likewise.
6580 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6582 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6584 * config/aarch64/cortex-a57-fma-steering.c
6585 (aarch64_register_fma_steering): Remove "static" from arguments
6588 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6591 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6594 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6596 * doc/invoke.texi: Delete -mno-fma4.
6598 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6600 PR rtl-optimization/69577
6601 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6602 (find_subregs_of_mode): Update accordingly. Iterate over partial
6605 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6607 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6608 * config/arm/arm.c (neon_reinterpret): Remove.
6609 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6610 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6611 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6612 vreinterpretti): Remove.
6613 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6614 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6615 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6616 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6617 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6618 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6619 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6620 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6621 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6622 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6623 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6624 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6625 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6626 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6627 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6628 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6629 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6630 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6631 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6632 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6633 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6634 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6635 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6636 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6637 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6638 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6639 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6640 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6641 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6642 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6643 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6644 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6645 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6646 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6647 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6648 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6649 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6650 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6651 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6652 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6653 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6654 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6655 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6656 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6657 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6658 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6659 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6660 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6661 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6662 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6663 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6664 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6665 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6666 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6667 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6668 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6669 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6670 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6671 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6672 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6673 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6674 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6675 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6676 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6677 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6678 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6679 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6680 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6681 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6682 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6683 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6684 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6685 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6686 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6687 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6688 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6689 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6690 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6691 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6692 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6693 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6694 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6695 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6696 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6697 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6698 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6699 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6700 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6701 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6702 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6703 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6704 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6705 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6706 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6707 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6708 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6709 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6710 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6711 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6712 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6713 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6714 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6715 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6717 2016-02-04 Martin Liska <mliska@suse.cz>
6720 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6721 that are gimple_store_p.
6722 (maybe_instrument_call): Likewise.
6724 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6726 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6727 register scaling out of memory reference and comment why.
6729 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6733 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6734 folding the source of a SET.
6736 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6740 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6741 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6743 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6747 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6750 2016-02-04 Christian Bruel <christian.bruel@st.com>
6752 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6753 * config/arm/arm.c (arm_set_current_function): Likewise.
6755 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6756 Ilya Enkovich <enkovich.gnu@gmail.com>
6757 H.J. Lu <hongjiu.lu@intel.com>
6760 * config/i386/i386.c (convert_scalars_to_vector): Remove
6761 stack alignment fixes.
6762 (ix86_option_override_internal): Disable TARGET_STV if stack
6763 might not be aligned enough.
6764 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6766 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6768 * gcc/config/i386/x86-tune.def: Disable default prefetching
6771 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6772 Vladimir Makarov <vmakarov@redhat.com>
6775 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6776 in validating fused toc addresses.
6778 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6781 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6782 range->m_caret fields if range->m_show_caret_p is false.
6785 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6786 Force oldval into register if it does not satisfy reg_or_short_operand
6787 predicate. Fix up formatting.
6789 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6790 Alexandre Oliva <aoliva@redhat.com>
6793 * lra-constraints.c (simplify_operand_subreg): Check additionally
6794 address validity after potential reloading.
6795 (process_address_1): Check insns validity. In case of failure do
6798 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6801 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6804 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6806 * wide-int.cc (canonize_uhwi): New function.
6807 (wi::divmod_internal): Use it.
6809 2016-02-02 James Norris <jnorris@codesourcery.com
6811 * gimplify.c (omp_notice_variable): Add usage check.
6813 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6815 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6816 like LE, GE, LT, GT when emitting relational operator.
6818 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6820 * ira-costs.c (find_costs_and_classes): Add extra argument.
6821 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6822 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6823 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6824 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6825 Add best_class parameter, and return it if not ALL_REGS.
6826 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6828 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6831 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6833 * config/aarch64/aarch64.c
6834 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6835 (aarch64_ira_change_pseudo_allocno_class): New function.
6837 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6840 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6842 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6844 * config/avr/avr.c (avr_option_override): Set
6845 PARAM_ALLOW_STORE_DATA_RACES to 1.
6847 2016-02-02 Richard Biener <rguenther@suse.de>
6849 PR tree-optimization/69595
6850 * match.pd: Add range test simplifications to true/false.
6852 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6854 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6855 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6858 2016-02-02 Richard Biener <rguenther@suse.de>
6860 PR tree-optimization/69606
6861 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6862 info on the result before moving a stmt.
6864 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6867 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6868 branch with vector comparison.
6869 * config/i386/sse.md (VI48_AVX): New mode iterator.
6870 (define_expand "cbranch<mode>4): Add support for conditional branch
6871 with vector comparison.
6872 * tree-vect-loop.c (optimize_mask_stores): New function.
6873 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6874 has_mask_store field of vect_info.
6875 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6876 vectorized loops having masked stores after vec_info destroy.
6877 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6878 correspondent macros.
6879 (optimize_mask_stores): Add prototype.
6881 2016-02-02 Alan Modra <amodra@gmail.com>
6884 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6887 2016-02-02 Alan Modra <amodra@gmail.com>
6890 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6891 whenever toc_label_name used.
6892 (rs6000_file_start): Don't set up toc section here,
6893 (rs6000_output_function_epilogue): do so here instead,
6894 (rs6000_xcoff_file_start): and here.
6895 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6896 (load_toc_aix_di): Likewise.
6898 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6900 PR rtl-optimization/69592
6901 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6902 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6903 (num_sign_bit_copies_binary_arith_p): New inline function.
6904 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6906 2016-02-01 Jeff Law <law@redhat.com>
6908 PR tree-optimization/69580
6909 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6910 * tree-ssa-threadbackward.c
6911 (fsm_find_control_statement_thread_paths): Do not try to walk
6912 through large PHI nodes.
6914 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6916 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6917 when count is incremented above limit, don't analyze further
6920 * omp-low.c (oacc_parse_default_dims): Avoid
6921 -Wsign-compare warning, make sure value fits into int
6922 rather than just unsigned int.
6924 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6926 PR tree-optimization/67921
6927 * fold-const.c (split_tree): New parameters. Convert pointer
6928 type variable part to proper type before negating.
6929 (fold_binary_loc): Pass new arguments to split_tree.
6931 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6933 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6934 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6935 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6936 * doc/tm.texti: Rebuilt.
6937 * doc/invoke.texi (fopenacc-dim): Document.
6938 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6939 (append_compiler_options): Likewise.
6940 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6941 (oacc_parse_default_dims): New.
6942 (oacc_validate_dims): Add USED arg. Select non-unity default when
6944 (oacc_loop_fixed_partitions): Return mask of used partitions.
6945 (oacc_loop_auto_partitions): Emit dump info.
6946 (oacc_loop_partition): Return mask of used partitions.
6947 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6948 loop partitioning and validation calls.
6950 2016-02-01 Richard Biener <rguenther@suse.de>
6953 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6955 2016-02-01 Richard Biener <rguenther@suse.de>
6957 PR tree-optimization/69574
6958 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6959 of asserting return chrec_dont_know.
6961 2016-02-01 Martin Liska <mliska@suse.cz>
6963 * mem-stats-traits.h: Add copyright header.
6964 * mem-stats.h: Likewise.
6966 2016-02-01 Richard Biener <rguenther@suse.de>
6968 PR tree-optimization/69579
6969 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6970 Do not propagate through abnormal PHI results.
6972 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6974 * postreload.c (reload_cse_simplify): Remove dead code.
6976 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6978 PR rtl-optimization/69570
6979 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6980 if there is more than one set, not if there is a single set.
6982 2016-02-01 Richard Henderson <rth@redhat.com>
6985 * combine.c (make_compound_operation): When looking through a
6986 subreg, make sure to re-extend to the width of the outer mode.
6988 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6990 PR tree-optimization/69546
6991 * wide-int.cc (wi::divmod_internal): For unsigned division
6992 where both operands fit into uhwi, if o1 is 1 and o0 has
6993 msb set, if divident_prec is larger than bits per hwi,
6994 clear another quotient word and return 2 instead of 1.
6995 Similarly for remainder with msb in HWI set, if dividend_prec
6996 is larger than bits per hwi.
6998 2016-01-29 Martin Jambor <mjambor@suse.cz>
7000 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
7001 Use short lowercase names.
7002 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
7003 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
7004 acq_rel one. Protect warning agains segfaults if
7005 get_memory_order_name returns NULL.
7006 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
7007 with release semantics. Do not warn if get_memory_order already did.
7008 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
7009 semantics. Fix check for relaxed or acquire semantics. Do not warn
7010 if get_memory_order already did.
7012 2016-01-29 Sebastian Pop <s.pop@samsung.com>
7014 * doc/install.texi: Document that isl-0.16 is supported.
7016 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
7019 * config/i386/constraints.md (Bm): Describe as special memory
7021 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
7022 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
7023 * genpreds.c (struct constraint_data): Add is_special_memory.
7024 (have_special_memory_constraints, special_memory_start): New
7026 (special_memory_end): Ditto.
7027 (add_constraint): Add new arg is_special_memory. Add code to
7028 process its true value. Update have_special_memory_constraints.
7029 (process_define_constraint): Pass the new arg.
7030 (process_define_register_constraint): Ditto.
7031 (choose_enum_order): Process special memory.
7032 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
7033 function insn_extra_special_memory_constraint.
7034 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
7035 * gensupport.c (process_rtx): Process
7036 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
7037 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
7038 * ira-lives.c (single_reg_class): Use
7039 insn_extra_special_memory_constraint.
7040 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
7041 * lra-constraints.c (process_alt_operands): Ditto.
7042 (curr_insn_transform): Use insn_extra_special_memory_constraint.
7043 * recog.c (asm_operand_ok, preprocess_constraints): Process
7045 * reload.c (find_reloads): Ditto.
7046 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
7047 * stmt.c (parse_input_constraint): Use
7048 insn_extra_special_memory_constraint.
7050 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
7053 * lra-splill.c (lra_final_code_change): Revert r229087 by
7054 removing all sub-registers.
7056 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
7059 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
7061 2016-01-29 Jakub Jelinek <jakub@redhat.com>
7064 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
7065 SSE1, copy target into the temporary reg first before recursing
7068 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
7070 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
7073 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
7075 * ginclude/stdarg.h: Test __cplusplus instead of
7076 __GXX_EXPERIMENTAL_CXX0X__.
7078 2016-01-29 Richard Biener <rguenther@suse.de>
7080 PR tree-optimization/69547
7081 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
7082 Do not mark clobbers necessary.
7083 (mark_all_reaching_defs_necessary_1): Likewise.
7085 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7087 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
7088 declaration name with %qs and print it in both error messages.
7089 Also fix indentation.
7091 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7094 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
7095 trailing blank line from error message.
7097 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
7100 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
7103 2016-01-29 Richard Biener <rguenther@suse.de>
7106 * match.pd: Allow all integral types when simplifying a
7107 widening or sign-changing conversion.
7109 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7111 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
7112 back to setting codegen_error to fail codegen.
7114 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
7117 * config/i386/constraints.md (C): Only accept constant zero operand.
7118 (BC): New constraint.
7119 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
7120 instead of C constraint.
7121 * doc/md.texi (Machine Constraints): Update description
7124 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
7127 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
7129 2016-01-28 Jakub Jelinek <jakub@redhat.com>
7132 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
7135 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
7137 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
7138 branches if using guessed profile.
7140 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
7142 * graphite-optimize-isl.c (optimize_isl): Fix dump.
7144 2016-01-28 Richard Henderson <rth@redhat.com>
7147 * config/aarch64/aarch64-modes.def (CC_Cmode): New
7148 * config/aarch64/aarch64-protos.h: Update.
7149 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
7150 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
7151 (aarch64_get_condition_code_1): Handle CC_Cmode.
7152 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
7153 (*add<mode>3_compareC_cconly_imm): New.
7154 (*add<mode>3_compareC_cconly): New.
7155 (*add<mode>3_compareC_imm): New.
7156 (add<mode>3_compareC): New.
7157 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
7158 to be first. Use aarch64_carry_operation.
7159 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
7160 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
7161 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
7162 (subti3): Use subdi3_compare1.
7163 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
7164 (sub<mode>3_compare1): New.
7165 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
7166 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
7167 (*subsi3_carryin_uxtw): Likewise.
7168 (*ngc<mode>, *ngcsi_uxtw): Likewise.
7169 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
7170 * config/aarch64/iterators.md (DWI): New.
7171 * config/aarch64/predicates.md (aarch64_carry_operation): New.
7172 (aarch64_borrow_operation): New.
7174 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7176 * graphite-optimize-isl.c (optimize_isl): Print a different debug
7177 message when isl does not return a valid schedule.
7179 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7181 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7182 Remove comments from class declarations: they are already in the code
7185 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7187 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
7189 (ternary_op_to_tree): Same.
7190 (unary_op_to_tree): Same.
7191 (nary_op_to_tree): Same.
7192 (gcc_expression_from_isl_expr_op): Same.
7193 (gcc_expression_from_isl_expression): Same.
7194 (graphite_create_new_loop): Same.
7195 (graphite_create_new_loop_guard): Same.
7196 (build_iv_mapping): Same.
7197 (graphite_create_new_guard): Same.
7198 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
7199 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
7201 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7203 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
7204 instead of setting codegen_error to fail codegen.
7206 2016-01-28 Jason Merrill <jason@redhat.com>
7208 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
7210 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7212 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7213 Remove CONST_INT_P check in CCMP cost calculation.
7215 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7217 * config/aarch64/aarch64.c (generic_vector_cost):
7218 Set vec_permute_cost.
7219 (cortexa57_vector_cost): Likewise.
7220 (exynosm1_vector_cost): Likewise.
7221 (xgene1_vector_cost): Likewise.
7222 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
7223 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
7224 Add vec_permute_cost entry.
7226 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7228 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
7230 (add<mode>3_compare0): Likewise.
7231 (addsi3_compare0_uxtw): Likewise.
7232 (add<mode>3nr_compare0): Likewise.
7233 (compare_neg<mode>): Likewise.
7234 (<optab><mode>3): Likewise.
7236 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
7238 * tree-vect-stmts.c (vectorizable_comparison): Add
7239 NULL check for vectype.
7241 2016-01-28 Richard Biener <rguenther@suse.de>
7243 PR tree-optimization/69466
7244 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7245 Account for PHIs we couldn't duplicate.
7247 2016-01-28 Martin Liska <mliska@suse.cz>
7250 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
7251 instead of ENABLE_VALGRIND_CHECKING.
7253 2016-01-27 Richard Henderson <rth@redhat.com>
7256 * lra-remat.c (subreg_regs): New.
7257 (dump_candidates_and_remat_bb_data): Dump it.
7258 (operand_to_remat): Reject if operand in subreg_regs.
7259 (set_bb_regs): Collect subreg_regs.
7260 (lra_remat): Init and free subreg_regs. Compute
7261 calculate_local_reg_remat_bb_data before create_cands.
7263 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
7266 * config/i386/i386.c (ix86_update_stack_boundary): Don't
7267 change stack_alignment_needed for __tls_get_addr call.
7269 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
7271 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
7273 2016-01-27 Jeff Law <law@redhat.com>
7275 PR tree-optimization/68398
7276 PR tree-optimization/69196
7277 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
7278 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
7279 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7280 Only count PHIs in the last block in the path. The others will
7281 const/copy propagate away. Add heuristic to allow more irreducible
7282 subloops to be created when it is likely profitable to do so.
7284 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7285 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
7286 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
7288 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7291 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
7292 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
7293 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
7294 * tree-streamer-in.c: Include asan.h.
7295 (streamer_get_builtin_tree): For builtins in sanitizer
7296 range call initialize_sanitizer_builtins and retry.
7298 2016-01-27 Ian Lance Taylor <iant@google.com>
7300 * common.opt (fkeep-gc-roots-live): New undocumented option.
7301 * tree-ssa-loop-ivopts.c (add_candidate_1): If
7302 -fkeep-gc-roots-live, skip pointers.
7303 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
7306 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
7309 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
7310 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
7312 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
7315 * configure.ac: NetBSD provides SSP in its C library.
7316 * configure: Updated.
7318 2016-01-27 Richard Biener <rguenther@suse.de>
7320 PR tree-optimization/69166
7321 * tree-vect-loop.c (vect_is_simple_reduction): Always check
7322 reduction code for commutativity / associativity.
7324 2016-01-27 Martin Jambor <mjambor@suse.cz>
7326 PR tree-optimization/69355
7327 * tree-sra.c (analyze_access_subtree): Correct hole detection when
7328 total_scalarization fails.
7330 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
7332 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
7335 2016-01-27 Christian Bruel <christian.bruel@st.com>
7338 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
7339 Move arm_reset_previous_fndecl and set_target_option_current_node in
7340 the conditional part. Call save_restore_target_globals.
7341 * config/arm/arm.c (arm_set_current_function):
7342 Refactor to better support #pragma target and attribute mix.
7343 Call save_restore_target_globals.
7344 * config/arm/arm-protos.h (save_restore_target_globals): New function.
7346 2016-01-27 Martin Liska <mliska@suse.cz>
7348 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
7349 reference for an HSA kernel and its host function.
7351 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7353 PR tree-optimization/69399
7354 * wide-int.h (wi::lrshift): For larger precisions, only
7355 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7357 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
7359 * config/arc/predicates.md (proper_comparison_operator): Reject
7360 constant-constant comparison.
7362 2016-01-26 Tom de Vries <tom@codesourcery.com>
7364 PR tree-optimization/69110
7365 * tree-data-ref.c (initialize_data_dependence_relation): Handle
7366 DR_NUM_DIMENSIONS == 0.
7368 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7369 Sebastian Pop <s.pop@samsung.com>
7371 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7372 isl_ast_op_cond and isl_ast_op_select.
7373 (gcc_expression_from_isl_expr_op): Same.
7375 2016-01-26 Jason Merrill <jason@redhat.com>
7378 * tree.c (recompute_constructor_flags): Split out from
7380 (verify_constructor_flags): New.
7381 * tree.h: Declare them.
7383 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
7385 PR rtl-optimization/69217
7386 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7387 are no TYPE_FIELDS set for the record type.
7389 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7392 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7393 toc_label_name unconditionally.
7394 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7395 SYMBOL_REF string. Use toc_label_name instead of constructing
7397 (rs6000_elf_declare_function_name): Use toc_label_name instead of
7398 constructing LCTOC1.
7400 2016-01-26 Martin Sebor <msebor@redhat.com>
7403 * doc/extend.texi (Common Type Attributes): Move text that talks about
7404 attribute packed from attribute aligned to the section discussing
7405 the former attribute for clarity.
7407 2016-01-26 Richard Henderson <rth@redhat.com>
7410 * trans-mem.c (tm_region_init): Mark entry block as visited.
7412 2016-01-26 David Malcolm <dmalcolm@redhat.com>
7415 * diagnostic-show-locus.c (layout::print_source_line): Replace
7416 call to pp_newline with call to layout::print_newline.
7417 (layout::print_annotation_line): Likewise.
7418 (layout::move_to_column): Likewise.
7419 (layout::print_any_fixits): After printing any fixits, print a
7420 trailing newline, if necessary.
7421 (layout::print_newline): New method, resetting any colorization
7423 (diagnostic_show_locus): Move the pp_newline to before the
7424 early bailout. Remove dummy block enclosing the layout instance.
7425 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7426 of pp_newline_and_flush with pp_flush.
7427 (diagnostic_append_note): Delete use of pp_newline.
7428 (diagnostic_append_note_at_rich_loc): Delete.
7429 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7430 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7431 when newline characters are added to the buffer.
7433 2016-01-26 Michael Matz <matz@suse.de>
7435 * configure.ac (ac_cv_std_swap_in_utility): New test.
7436 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7437 * configure: Regenerate.
7438 * config.in: Regenerate.
7440 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
7442 * config/arc/arc.md (cstoresi4): Force operand into register.
7443 (arcset<code>): Fix predicate.
7444 (arcsetltu): Likewise.
7445 (arcsetgeu): Likewise.
7446 (arcsethi): Likewise.
7447 (arcsetls): Likewise.
7449 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7451 PR tree-optimization/69483
7452 * gimple-fold.c (canonicalize_constructor_val): Return NULL
7453 if base has error_mark_node type.
7455 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
7458 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7459 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7461 (vget_lane_f16): Handle big-endian.
7462 (vgetq_lane_f16): Likewise.
7463 (vset_lane_f16): Likewise.
7464 (vsetq_lane_f16): Likewise.
7465 * config/arm/iterators.md (VQXMOV): Add V8HF.
7466 (VDQ): Add V4HF and V8HF.
7467 (V_reg): Handle V4HF and V8HF.
7468 (Is_float_mode): Likewise.
7469 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7470 neon_vdup_nv8hf): New patterns.
7471 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7472 Use VD_LANE iterator.
7473 (neon_vld1_dup<mode>): Use VQ2 iterator.
7475 2016-01-26 Nathan Sidwell <nathan@acm.org>
7477 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7478 (set_oacc_fn_attrib): Add IS_KERNEL arg.
7479 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7480 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7481 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7482 (oacc_validate_dims): Add LEVEL arg, don't return level.
7483 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7485 (execute_oacc_device_lower): Adjust, add more dump output.
7486 * tree-ssa-loop.c (gate_oacc_kernels): Use
7487 oacc_fn_attrib_kernels_p.
7488 * tree-parloops.c (create_parallel_loop): Adjust
7489 set_oacc_fn_attrib call.
7491 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7494 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7495 (append_compiler_options): Handle -fcilkplus.
7496 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7498 2016-01-26 Nick Clifton <nickc@redhat.com>
7501 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7502 been marked as DECL_ONE_ONLY but we do not the means to make it
7503 so, then do not allow it to bind locally.
7505 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7508 * opts.h (parse_sanitizer_options): New prototype.
7509 * opts.c (sanitizer_opts): New array.
7510 (parse_sanitizer_options): New function.
7511 (common_handle_option): Use parse_sanitizer_options.
7513 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7516 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7517 alignment adjustment to ...
7518 (ix86_update_stack_boundary): Here. Don't over-align stack for
7520 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7521 if __tls_get_addr is called.
7523 2016-01-26 Christian Bruel <christian.bruel@st.com>
7525 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7527 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7529 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7531 2016-01-26 Richard Biener <rguenther@suse.de>
7534 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7536 2016-01-26 Richard Biener <rguenther@suse.de>
7538 PR tree-optimization/69452
7539 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7540 (move_computations_dom_walker::before_dom_children): Rename
7542 (move_computations_worker): This.
7543 (move_computations): Perform an RPO rather than a DOM walk.
7545 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7548 * combine.c (combine_instructions): For REG_EQUAL note with
7549 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7550 to the underlying register.
7551 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7552 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7554 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7557 * config/aarch64/aarch64-builtins.c
7558 (aarch64_init_simd_builtin_types): Do not set structural
7559 equality to __Poly{8,16,64,128}_t types.
7561 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7563 PR tree-optimization/69400
7564 * wide-int.cc (wi_pack): Take the precision as argument and
7565 perform canonicalization here rather than in the callers.
7566 Use the main loop to handle all full-width HWIs. Add a
7567 zero HWI if in_len isn't a full result.
7568 (wi::divmod_internal): Update accordingly.
7569 (wi::mul_internal): Likewise. Simplify.
7571 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7572 Sebastian Pop <s.pop@samsung.com>
7574 * graphite-poly.c (apply_poly_transforms): Simplify.
7575 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7576 (print_isl_map): Same.
7577 (print_isl_union_map): Same.
7578 (print_isl_schedule): New.
7579 (debug_isl_schedule): New.
7580 * graphite-dependences.c (scop_get_reads): Do not call
7581 isl_union_map_add_map that is undocumented isl functionality.
7582 (scop_get_must_writes): Same.
7583 (scop_get_may_writes): Same.
7584 (scop_get_original_schedule): Remove.
7585 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7586 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7587 (compute_deps): Remove.
7588 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7589 (debug_schedule_ast): New.
7590 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7591 set_separate_option.
7592 (graphite_regenerate_ast_isl): Add dump.
7593 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7594 from scop->transformed_schedule.
7595 (graphite_regenerate_ast_isl): Add more dump.
7596 * graphite-optimize-isl.c (optimize_isl): Set
7597 scop->transformed_schedule. Check whether schedules are equal.
7598 (apply_poly_transforms): Move here.
7599 * graphite-poly.c (apply_poly_transforms): ... from here.
7600 (free_poly_bb): Static.
7601 (free_scop): Static.
7602 (pbb_number_of_iterations_at_time): Remove.
7603 (print_isl_ast): New.
7604 (debug_isl_ast): New.
7605 (debug_scop_pbb): New.
7606 * graphite-scop-detection.c (print_edge): Move.
7608 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7609 (build_scop_scattering): Remove.
7610 (create_pw_aff_from_tree): Assert instead of bailing out.
7611 (add_condition_to_pbb): Remove unused code, do not fail.
7612 (add_conditions_to_domain): Same.
7613 (add_conditions_to_constraints): Remove.
7614 (build_scop_context): New.
7615 (add_iter_domain_dimension): New.
7616 (build_iteration_domains): Initialize pbb->iterators.
7617 Call add_conditions_to_domain.
7620 (index_outermost_in_loop): New.
7621 (index_pbb_in_loop): New.
7622 (outermost_pbb_in): New.
7623 (add_in_sequence): New.
7624 (add_outer_projection): New.
7625 (outer_projection_mupa): New.
7626 (add_loop_schedule): New.
7627 (build_schedule_pbb): New.
7628 (build_schedule_loop): New.
7629 (embed_in_surrounding_loops): New.
7630 (build_schedule_loop_nest): New.
7631 (build_original_schedule): New.
7632 (build_poly_scop): Call build_original_schedule.
7633 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7634 (free_poly_dr): Remove.
7635 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7636 (free_poly_bb): Remove.
7637 (debug_loop_vec): Remove.
7638 (print_isl_ast): Declare.
7639 (debug_isl_ast): Declare.
7640 (scop_do_interchange): Remove.
7641 (scop_do_strip_mine): Remove.
7642 (scop_do_block): Remove.
7643 (flatten_all_loops): Remove.
7644 (optimize_isl): Remove.
7645 (pbb_number_of_iterations_at_time): Remove.
7646 (debug_scop_pbb): Declare.
7647 (print_schedule_ast): Declare.
7648 (debug_schedule_ast): Declare.
7649 (struct scop): Remove schedule. Add original_schedule,
7650 transformed_schedule.
7651 (free_gimple_poly_bb): Remove.
7652 (print_generated_program): Remove.
7653 (debug_generated_program): Remove.
7654 (unify_scattering_dimensions): Remove.
7655 * sese.c (print_edge): ... here.
7656 (print_sese): ... here.
7657 (debug_edge): ... here.
7658 (debug_sese): ... here.
7659 * sese.h (print_edge): Declare.
7660 (print_sese): Declare.
7661 (dump_edge): Declare.
7662 (dump_sese): Declare.
7664 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7665 Sebastian Pop <s.pop@samsung.com>
7667 * Makefile.in: Set ISLVER in site.exp.
7669 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7671 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7672 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7673 through DECL_VALUE_EXPR for expansion.
7675 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7677 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7678 the frame info after reload completed.
7680 2016-01-25 Jeff Law <law@redhat.com>
7682 PR tree-optimization/69196
7683 PR tree-optimization/68398
7684 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7685 tree-ssa-threadupdate.c.
7686 (determine_bb_domination_status): Prototype
7687 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7688 (determine_bb_domination_status): No longer static.
7689 (valid_jump_thread_path): Remove code to detect characteristics
7690 of the jump thread path not associated with correctness.
7691 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7692 Correct test for thread path length. Count PHIs for real operands as
7693 statements that need to be copied. Do not count ASSERT_EXPRs.
7694 Look at all the blocks in the thread path. Compute and selectively
7695 filter thread paths based on threading through the latch, threading
7696 a multiway branch or crossing a multiway branch.
7698 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7700 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7701 decl with __attribute__ ((unused)) annotation.
7703 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7706 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7707 of operands is compatible with a statement vectype.
7709 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7711 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7712 improve wording for mixed storage order support.
7714 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7716 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7717 (vcvt_u64_f64): Likewise.
7718 (vcvta_s64_f64): Likewise.
7719 (vcvta_u64_f64): Likewise.
7720 (vcvtm_s64_f64): Likewise.
7721 (vcvtm_u64_f64): Likewise.
7722 (vcvtn_s64_f64): Likewise.
7723 (vcvtn_u64_f64): Likewise.
7724 (vcvtp_s64_f64): Likewise.
7725 (vcvtp_u64_f64): Likewise.
7727 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7729 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7730 (arc_init): Check validity mll64 option.
7731 (arc_save_restore): Use double load/store instruction.
7732 (arc_expand_movmem): Likewise.
7733 (arc_split_move): Don't split if we have double load/store
7734 instructions. Returns a boolean.
7735 (arc_process_double_reg_moves): Change function to return boolean
7736 instead of a sequence of instructions.
7737 (arc_dwarf_register_span): New function.
7738 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7739 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7740 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7741 (*movdf_insn): Likewise.
7742 * config/arc/arc.opt (mll64): New option.
7743 * config/arc/predicates.md (even_register_operand): New predicate.
7744 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7746 2016-01-25 Richard Biener <rguenther@suse.de>
7749 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7750 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7752 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7754 2016-01-25 Richard Biener <rguenther@suse.de>
7756 PR tree-optimization/69376
7757 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7759 (VN_INFO_ANTI_RANGE_P): New inline.
7760 (VN_INFO_RANGE_TYPE): Likewise.
7761 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7762 SSA_NAME_ANTI_RANGE_P.
7763 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7764 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7765 Properly query VN_INFO_RANGE_TYPE.
7767 2016-01-25 Nick Clifton <nickc@redhat.com>
7770 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7772 2016-01-23 Tom de Vries <tom@codesourcery.com>
7774 PR tree-optimization/69426
7775 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7778 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7780 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7781 "the the" with "the" in the comments.
7782 * ipa-devirt.c (build_type_inheritance_graph,
7783 update_type_inheritance_graph): Likewise.
7784 * tree.c (build_function_type_list_1): Likewise.
7785 * cfgloopmanip.c (scale_loop_profile): Likewise.
7786 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7787 * gimple-ssa-split-paths.c
7788 (find_block_to_duplicate_for_splitting_paths): Likewise.
7789 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7790 * expr.c (convert_move): Likewise.
7791 * var-tracking.c (vt_stack_adjustments): Likewise.
7792 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7793 * tree-vrp.c (test_for_singularity): Likewise.
7795 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7796 directly instead of building a temporary tree.
7799 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7800 remove <algorithm> include.
7802 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7805 * config/i386/i386.c: Include dojump.h.
7806 (expand_small_movmem_or_setmem,
7807 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7809 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7810 if dynamic_check != -1.
7812 2016-01-21 Jeff Law <law@redhat.com>
7815 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7816 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7817 into dominated_by_p.
7818 (cprop_into_successor_phis): Avoid unnecessary tests.
7820 2016-01-22 Richard Henderson <rth@redhat.com>
7823 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7824 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7826 2016-01-22 Michael Matz <matz@suse.de>
7828 * system.h (string, algorithm): Include only conditionally.
7829 (new): Include always under C++.
7830 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7831 * final.c (toplevel): Ditto.
7832 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7833 * genconditions.c (write_header): Make gencondmd.c define
7835 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7837 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7838 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7840 2016-01-22 Christian Bruel <christian.bruel@st.com>
7843 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7845 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7848 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7849 define_insn_and_split. Ensure operands[1] and operands[0] do not
7850 get assigned the same register.
7852 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7854 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7856 2016-01-22 Christian Bruel <christian.bruel@st.com>
7858 * config/arm/arm-c.c (arm_pragma_target_parse):
7859 Remove warn_builtin_macro_redefined overwrite.
7861 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7863 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7864 flag_non_call_exceptions compatibility.
7866 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7869 * dwarf2out.c (add_child_die_after): New function.
7870 (dwarf_qual_info_t): New type.
7871 (dwarf_qual_info): New variable.
7872 (qualified_die_p): New function.
7873 (modified_type_die): For -fdebug-types-section, ensure
7874 canonical order of qualifiers. Put qualified DIEs adjacent
7875 to the corresponding non-qualified type DIE and search there
7876 for existing qualified DIEs.
7878 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7880 * doc/extend.texi (scalar_storage_order type attribute): Document
7881 restriction on type punning and aliasing, and remove future tense.
7883 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7886 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7889 2016-01-21 Jeff Law <law@redhat.com>
7892 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7893 useless call to record_temporary_equivalences.
7894 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7895 allocate 10 slots in the bb_path vector and let it grow as needed.
7896 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7899 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7901 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7903 * configure: Regenerate.
7905 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7907 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7908 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7910 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7913 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7914 drop EXPAND_INITIALIZER.
7915 * rtl.h (contains_symbolic_reference_p): Declare.
7916 * rtlanal.c (contains_symbolic_reference_p): New function.
7917 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7918 a subtraction into a NOT if symbolic constants are involved.
7920 2016-01-21 Anton Blanchard <anton@samba.org>
7921 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7924 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7926 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7929 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7931 * config/microblaze/microblaze.c
7932 (get_branch_target): New.
7933 (insert_wic_for_ilb_runout): New.
7935 (microblaze_machine_dependent_reorg): New.
7936 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7937 * config/microblaze/microblaze.md
7938 (UNSPEC_IPREFETCH): Define.
7939 (iprefetch): New pattern
7940 * config/microblaze/microblaze.opt
7941 (mxl-prefetch): New flag.
7943 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7945 * config/microblaze/microblaze.h
7946 (FIXED_REGISTERS): Update in macro.
7947 (CALL_USED_REGISTERS): Update in macro.
7949 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7951 PR rtl-optimization/68920
7952 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7955 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7957 PR rtl-optimization/68990
7958 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7959 pseudo instead of inheritance ones.
7961 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7962 Nick Clifton <nickc@redhat.com>
7966 * config/mips/mips.c (mips_compute_frame_info): Initialise
7967 args_size and hard_frame_pointer_offset fields of the frame
7968 structure before calling mips_global_pointer.
7970 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7972 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7974 * configure: Regenerate.
7976 2016-01-21 Richard Biener <rguenther@suse.de>
7978 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7980 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7982 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7983 to actually emit the .size directive.
7985 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7986 Jakub Jelinek <jakub@redhat.com>
7990 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7991 args array size by one to avoid buffer overflow.
7993 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7995 * config/s390/s390.md (pool_section_start): Use switch_to_section
7996 to select proper read-only data section instead of hardcoding
7998 (pool_section_end): Use switch_to_section to match the above.
8000 2016-01-21 Richard Biener <rguenther@suse.de>
8002 PR tree-optimization/69378
8003 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
8004 (set_ssa_val_to): Use it for dominance checks taking into
8005 account not executable edges.
8007 2016-01-21 Jakub Jelinek <jakub@redhat.com>
8010 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
8011 for bitsize instead of GET_MODE_PRECISION (mode).
8013 2016-01-20 Martin Sebor <msebor@redhat.com>
8016 * extend.texi (__sync Builtins): Clarify the semantics of
8017 __sync_fetch_and_OP built-ins on pointers.
8018 (__atomic Builtins): Same.
8020 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8021 Sebastian Pop <s.pop@samsung.com>
8023 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
8024 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
8025 (is_valid_rename): Same.
8026 (translate_isl_ast_to_gimple::get_rename): Same.
8027 (translate_isl_ast_to_gimple::rename_all_uses): Same.
8028 (translate_isl_ast_to_gimple::rename_uses): Same.
8029 (get_new_name): Check for close_phi nodes.
8030 (copy_loop_phi_args): Use phi_node_kind.
8031 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
8032 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
8034 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8035 Sebastian Pop <s.pop@samsung.com>
8037 Revert commit r229783.
8038 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8039 Remove use of parameter_rename_map.
8041 (copy_internal_parameters): Remove.
8042 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8043 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8044 (free_sese_info): Do not free parameter_rename_map.
8045 (set_rename): Do not use parameter_rename_map.
8046 (rename_uses): Update call to set_rename.
8047 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8048 * sese.h (parameter_rename_map_t): Remove.
8049 (struct sese_info_t): Remove field parameter_rename_map.
8051 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8052 Sebastian Pop <s.pop@samsung.com>
8054 * graphite-isl-ast-to-gimple.c: Fix comment.
8055 * graphite-scop-detection.c (defined_in_loop_p): New.
8056 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
8057 names defined in loop.
8059 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8060 Sebastian Pop <s.pop@samsung.com>
8062 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8063 Discard unstructured if-then-else regions.
8065 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8066 Sebastian Pop <s.pop@samsung.com>
8068 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
8069 (cleanup_loop_iter_dom): Remove.
8070 (build_loop_iteration_domains): Remove.
8071 (build_scop_context): Remove.
8072 (build_scop_iteration_domain): Remove.
8073 (add_loop_constraints): New.
8074 (build_iteration_domains): New.
8075 (build_poly_scop): Call build_iteration_domains.
8077 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8078 Sebastian Pop <s.pop@samsung.com>
8080 * graphite-scop-detection.c
8081 (scop_detection::harmful_loop_in_region): Free dom and loops.
8082 (scop_detection::loop_body_is_valid_scop): Free bbs.
8084 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8085 Sebastian Pop <s.pop@samsung.com>
8087 * graphite-scop-detection.c (record_loop_in_sese): New.
8088 (gather_bbs::before_dom_children): Call record_loop_in_sese.
8089 (build_scops): Remove call to build_sese_loop_nests.
8090 * sese.c (sese_record_loop): Remove.
8091 (build_sese_loop_nests): Remove.
8092 (new_sese_info): Remove region->loops.
8093 (free_sese_info): Same.
8094 * sese.h (sese_contains_loop): Same.
8095 (build_sese_loop_nests): Remove.
8096 (sese_contains_loop): Remove.
8098 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8099 Sebastian Pop <s.pop@samsung.com>
8101 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
8102 loop_is_valid_in_scop.
8103 (scop_detection::harmful_stmt_in_region): Renamed
8104 harmful_loop_in_region.
8105 Call loop_is_valid_in_scop.
8107 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8108 Sebastian Pop <s.pop@samsung.com>
8110 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
8113 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8114 Sebastian Pop <s.pop@samsung.com>
8116 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
8117 * graphite.h (struct poly_bb): Remove field is_reduction.
8118 (PBB_IS_REDUCTION): Remove.
8120 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8121 Sebastian Pop <s.pop@samsung.com>
8123 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
8124 (add_pdr_constraints): Same.
8125 (scop_get_reads): Same.
8126 (scop_get_must_writes): Same.
8127 (scop_get_may_writes): Same.
8128 (scop_get_original_schedule): Same.
8129 (extend_schedule): Same.
8130 (apply_schedule_on_deps): Same.
8131 (carries_deps): Same.
8132 (compute_deps): Same.
8133 (scop_get_dependences): Same.
8134 * graphite-isl-ast-to-gimple.c
8135 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
8136 * graphite-optimize-isl.c (get_schedule_for_band): Same.
8137 (get_schedule_for_band_list): Same.
8138 (get_schedule_map): Same.
8139 (apply_schedule_map_to_scop): Same.
8140 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8141 (build_loop_iteration_domains): Same.
8142 (add_condition_to_pbb): Same.
8143 (add_param_constraints): Same.
8144 (pdr_add_memory_accesses): Same.
8145 (pdr_add_data_dimensions): Same.
8147 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
8149 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
8152 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
8154 * common.opt (feliminate-dwarf2-dups): Replace references to
8155 "DWARF 2" with just "DWARF".
8156 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
8157 * doc/extend.texi: Likewise.
8158 * doc/cpp.texi: Likewise.
8159 * doc/invoke.texi: Likewise.
8160 (Option Summary): Add -gdwarf to list of Debugging Options.
8161 (Debugging Options): Document -gdwarf.
8162 * doc/contrib.texi: Spell "DWARF" like that.
8164 2016-01-21 Jakub Jelinek <jakub@redhat.com>
8166 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
8167 warning. Fix up formatting.
8170 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
8171 attempt to mark memory input operand addressable and
8172 call prepare_gimple_addressable in that case. Don't adjust
8173 input_location for diagnostics, use error_at instead.
8175 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
8177 * config/rs6000/ppc-auxv.h: New file.
8178 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
8180 (cpu_supports): Likewise.
8181 * config/rs6000/rs6000.c: include "ppc-auxv.h".
8182 (cpu_is_info): New variable.
8183 (cpu_supports_info): Likewise.
8184 (tcb_verification_symbol): Likewise.
8185 (cpu_builtin_p): Likewise.
8186 (cpu_expand_builtin): New function.
8187 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
8188 (rs6000_init_builtins): Likewise.
8189 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
8190 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
8191 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
8192 * configure: Regenerate.
8193 * config.in: Likewise.
8194 * doc/extend.texi (PowerPC Built-in Functions): Document
8195 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
8197 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
8200 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
8202 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
8205 2016-01-20 Richard Henderson <rth@redhat.com>
8211 * tree.c (tm_define_builtin): New.
8212 (find_tm_vector_type): New.
8213 (build_tm_vector_builtins): New.
8214 (build_common_builtin_nodes): Call it.
8216 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
8218 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
8219 (arm_fp_ok): Likewise.
8221 (arm_crypto): Likewise.
8223 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
8224 Richard Biener <rguenther@suse.de>
8226 PR tree-optimization/69328
8227 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
8228 vectors have same number of elements.
8229 (vectorizable_condition): Fix masked version recognition.
8231 2016-01-20 Richard Biener <rguenther@suse.de>
8233 PR tree-optimization/69345
8234 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
8235 (VN_INFO_PTR_INFO): Likewise.
8236 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
8237 info when it is equal between non-dominating SSA names.
8238 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8239 Make sure to look at original SSA infos.
8241 2016-01-20 Jeff Law <law@redhat.com>
8244 * config/m68k/predicates.md (pow2_m1_operand): New predicate
8246 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
8247 (pc_or_label_operand): New predicate.
8248 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
8249 tests for small integers that are 2^n - 1.
8251 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
8253 * doc/invoke.texi (Options Summary): Add '.' after @xref.
8255 2016-01-19 Jeff Law <law@redhat.com>
8258 * tree-ssa-threadbackwards.c
8259 (fsm_find_control_statement_thread_paths): Do not try to lookup
8260 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
8262 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
8264 * doc/lto.texi: Remove text that says only Gold has linker plugin
8267 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
8269 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
8270 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
8271 the DIE accordingly.
8272 (modified_type_die): Add REVERSE parameter and pass it recursively,
8273 as well as to base_type_die. Adjust presence check accordingly.
8274 (base_type_for_mode): Adjust call to modified_type_die.
8275 (add_type_attribute): Add REVERSE parameter and pass it to
8277 (generic_parameter_die): Adjust call to add_type_attribute.
8278 (add_scalar_info): Likewise.
8279 (add_subscript_info): Likewise.
8280 (gen_array_type_die): Likewise.
8281 (gen_descr_array_type_die): Likewise.
8282 (gen_entry_point_die): Likewise.
8283 (gen_enumeration_type_die): Likewise.
8284 (gen_formal_parameter_die): Likewise.
8285 (gen_subprogram_die): Likewise.
8286 (gen_variable_die ): Likewise.
8287 (gen_const_die): Likewise.
8288 (gen_field_die): Likewise.
8289 (gen_pointer_type_die): Likewise.
8290 (gen_reference_type_die): Likewise.
8291 (gen_ptr_to_mbr_type_die): Likewise.
8292 (gen_inheritance_die): Likewise.
8293 (gen_subroutine_type_die): Likewise.
8294 (gen_typedef_die): Likewise.
8295 (force_type_die): Adjust call to modified_type_die.
8297 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
8299 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
8300 flow throughout the file. Fix broken link to Objective-C 2.0
8302 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
8305 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8307 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
8309 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8312 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
8313 (maybe_record_node): Record cxa_pure_virtual as the only possible
8314 target if there are not ohter candidates.
8315 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
8317 2016-01-19 Richard Biener <rguenther@suse.de>
8319 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
8320 (get_memory_order): Likewise.
8322 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
8324 * tree-vect-stmts.c (vectorizable_store): Check
8327 2016-01-19 David Malcolm <dmalcolm@redhat.com>
8330 * gcc.c (driver::decode_argv): Add call to
8331 init_opts_obstack before init_options_struct.
8332 * opts.c (init_opts_obstack): Remove idempotency.
8333 (init_options_struct): Replace call to init_opts_obstack
8334 with a gcc_assert to verify that it has already been called.
8335 * toplev.c (toplev::main): Add call to init_opts_obstack before
8336 calls to init_options_struct.
8337 (toplev::finalize): Move cleanup of opts_obstack next to
8338 cleanup of save_decoded_options, clearing the latter, and
8339 save_decoded_options_count.
8341 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8344 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
8345 attribute to unconditional. Remove %? from output template.
8347 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8348 Jiong Wang <jiong.wang@arm.com>
8350 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
8351 generated from different expand order.
8353 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8355 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8356 Add support for CCMP costing.
8358 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8360 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8361 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8362 (fccmpe<mode>): Likewise.
8363 (fcmp): Rename to fcmp and globalize pattern.
8365 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8366 (aarch64_gen_ccmp_next): Add FP support.
8368 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8370 * target.def (gen_ccmp_first): Update documentation.
8371 (gen_ccmp_next): Likewise.
8372 * doc/tm.texi (gen_ccmp_first): Update documentation.
8373 (gen_ccmp_next): Likewise.
8374 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8375 expand_ccmp_expr_1. Improve comments.
8376 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8377 (ccmp_ior<mode>): Remove pattern.
8378 (cmp<mode>): Remove expand.
8379 (cmp): Globalize pattern.
8380 (cstorecc4): Use cc_register.
8381 (mov<mode>cc): Remove ccmp_cc_register check.
8382 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8383 Simplify after removal of CC_DNE/* modes.
8384 (aarch64_ccmp_mode_to_code): Remove.
8385 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
8386 In 'k' case use integer as condition.
8387 (aarch64_nzcv_codes): Remove inverted cases.
8388 (aarch64_code_to_ccmode): Remove.
8389 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
8390 comparison with CC register to be used in folowing CCMP/branch/CSEL.
8391 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8392 pattern. Return the comparison with CC register. Invert conditions
8394 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8395 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8397 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8399 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8400 instrumented_version.
8402 2016-01-19 Richard Biener <rguenther@suse.de>
8404 PR tree-optimization/69336
8405 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8406 handled components with get_ref_base_and_extent.
8407 (equal_mem_array_ref_p): Adjust.
8409 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8412 * shrink-wrap.c: Include valtrack.h.
8413 (move_insn_for_shrink_wrap): Add DEBUG argument. If
8414 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8415 in between insn and where it will be moved to. Call
8416 dead_debug_insert_temp.
8417 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
8418 first and dead_debug_local_finish at the end.
8419 For uses and defs bitmap, handle all regs in between REGNO and
8420 END_REGNO, not just the first one.
8422 2016-01-19 Richard Biener <rguenther@suse.de>
8424 PR tree-optimization/69352
8425 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8426 (equal_mem_array_ref_p): Constrain size and max size properly.
8427 Compare the reverse flag.
8429 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
8431 * ira.c (ira): Update regstat data if we deleted insns.
8433 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8435 PR rtl-optimization/68955
8436 PR rtl-optimization/64557
8437 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8438 here. Fix up formatting.
8439 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8441 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8444 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8445 assume that the node has body.
8446 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8449 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8451 * lto-streamer-out.c (lto_output): Do not stream instrumentation
8454 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8456 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8457 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8459 2016-01-19 Martin Jambor <mjambor@suse.cz>
8460 Martin Liska <mliska@suse.cz>
8461 Michael Matz <matz@suse.de>
8463 * Makefile.in (OBJS): Add new source files.
8464 (GTFILES): Add hsa.c.
8465 * common.opt (disable_hsa): New variable.
8466 (-Whsa): New warning.
8467 * config.in (ENABLE_HSA): New.
8468 * configure.ac: Treat hsa differently from other accelerators.
8469 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8471 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8472 * doc/install.texi (Configuration): Document --with-hsa-runtime,
8473 --with-hsa-runtime-include, --with-hsa-runtime-lib and
8475 * doc/invoke.texi (-Whsa): Document.
8476 (hsa-gen-debug-stores): Likewise.
8477 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8478 to invoke offload compiler for hsa acclerator.
8479 * opts.c (common_handle_option): Determine whether HSA offloading
8480 should be performed.
8481 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8482 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8483 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8484 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8485 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8486 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8487 GF_OMP_FOR_KIND_GRID_LOOP.
8488 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8489 (pp_gimple_stmt_1): Likewise.
8490 * gimple-walk.c (walk_gimple_stmt): Likewise.
8491 * gimple.c (gimple_build_omp_grid_body): New function.
8492 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8493 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8494 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8495 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8496 GF_OMP_TEAMS_GRID_PHONY.
8497 (gimple_statement_omp_single_layout): Updated comments.
8498 (gimple_build_omp_grid_body): New function.
8499 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8500 (gimple_omp_for_grid_phony): New function.
8501 (gimple_omp_for_set_grid_phony): Likewise.
8502 (gimple_omp_parallel_grid_phony): Likewise.
8503 (gimple_omp_parallel_set_grid_phony): Likewise.
8504 (gimple_omp_teams_grid_phony): Likewise.
8505 (gimple_omp_teams_set_grid_phony): Likewise.
8506 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8507 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8508 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8509 (BUILT_IN_GOMP_TARGET): Updated type.
8510 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8511 (adjust_for_condition): New function.
8512 (get_omp_for_step_from_incr): Likewise.
8513 (extract_omp_for_data): Moved parts to adjust_for_condition and
8514 get_omp_for_step_from_incr.
8515 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8516 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8517 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8518 (scan_omp_parallel): Do not create child functions for phony
8520 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8521 (scan_omp_1_op): Checking assert we are not remapping to
8522 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8523 (parallel_needs_hsa_kernel_p): New function.
8524 (expand_parallel_call): Register apprpriate parallel child
8525 functions as HSA kernels.
8526 (grid_launch_attributes_trees): New type.
8527 (grid_attr_trees): New variable.
8528 (grid_create_kernel_launch_attr_types): New function.
8529 (grid_insert_store_range_dim): Likewise.
8530 (grid_get_kernel_launch_attributes): Likewise.
8531 (get_target_argument_identifier_1): Likewise.
8532 (get_target_argument_identifier): Likewise.
8533 (get_target_argument_value): Likewise.
8534 (push_target_argument_according_to_value): Likewise.
8535 (get_target_arguments): Likewise.
8536 (expand_omp_target): Call get_target_arguments instead of looking
8537 up for teams and thread limit.
8538 (grid_expand_omp_for_loop): New function.
8539 (grid_arg_decl_map): New type.
8540 (grid_remap_kernel_arg_accesses): New function.
8541 (grid_expand_target_kernel_body): New function.
8542 (expand_omp): Call it.
8543 (lower_omp_for): Do not emit phony constructs.
8544 (lower_omp_taskreg): Do not emit phony constructs but create for them
8545 a temporary variable receiver_decl.
8546 (lower_omp_taskreg): Do not emit phony constructs.
8547 (lower_omp_teams): Likewise.
8548 (lower_omp_grid_body): New function.
8549 (lower_omp_1): Call it.
8550 (grid_reg_assignment_to_local_var_p): New function.
8551 (grid_seq_only_contains_local_assignments): Likewise.
8552 (grid_find_single_omp_among_assignments_1): Likewise.
8553 (grid_find_single_omp_among_assignments): Likewise.
8554 (grid_find_ungridifiable_statement): Likewise.
8555 (grid_target_follows_gridifiable_pattern): Likewise.
8556 (grid_remap_prebody_decls): Likewise.
8557 (grid_copy_leading_local_assignments): Likewise.
8558 (grid_process_kernel_body_copy): Likewise.
8559 (grid_attempt_target_gridification): Likewise.
8560 (grid_gridify_all_targets_stmt): Likewise.
8561 (grid_gridify_all_targets): Likewise.
8562 (execute_lower_omp): Call grid_gridify_all_targets.
8563 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8564 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8565 (tree_omp_clause): Added union field dimension.
8566 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8567 * tree.c (omp_clause_num_ops): Added number of arguments of
8568 OMP_CLAUSE__GRIDDIM_.
8569 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8570 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8571 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8572 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8573 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8574 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8575 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8576 * tree-pass.h (make_pass_gen_hsail): Declare.
8577 (make_pass_ipa_hsa): Likewise.
8578 * ipa-hsa.c: New file.
8579 * lto-section-in.c (lto_section_name): Add hsa section name.
8580 * lto-streamer.h (lto_section_type): Add hsa section.
8581 * timevar.def (TV_IPA_HSA): New.
8582 * hsa-brig-format.h: New file.
8583 * hsa-brig.c: New file.
8584 * hsa-dump.c: Likewise.
8585 * hsa-gen.c: Likewise.
8588 * toplev.c (compile_file): Call hsa_output_brig.
8589 * hsa-regalloc.c: New file.
8591 2016-01-18 Jeff Law <law@redhat.com>
8593 PR tree-optimization/69320
8594 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8595 ranged object, do nothing if the RHS constant is not [0..1].
8596 (optimize_stmt): Comparing a boolean ranged object against a
8597 constant outside [0..1] results in a compile-time constant.
8599 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8602 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8604 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8605 (Option Summary): Update to reflect new section and moved options.
8606 (C++ Dialect Options): Move -fstats to new section.
8607 (Debugging Options): Move all dump, statistics, and other GCC
8608 developer options to new section. Rewrite section introduction
8609 and re-order remaining options to put the more basic ones first.
8610 (Optimization Options): Move -fira-verbose and -flto-report* to
8612 (Developer Options): New section incorporating moved options.
8613 * doc/cppopts.texi (-dM): Update cross-reference.
8615 2016-01-18 Richard Henderson <rth@redhat.com>
8618 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8619 operands to pseudo only if CSE is expected. Split long immediate
8620 operands only after reload, and for the stack pointer.
8621 (*add<GPI>3_pluslong): Remove.
8622 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8623 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8624 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8625 (*add<GPI>3 peepholes): New.
8626 (*add<GPI>3 splitters): New.
8627 * config/aarch64/constraints.md (Upl): New.
8628 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8630 2016-01-18 Richard Biener <rguenther@suse.de>
8632 PR tree-optimization/69297
8633 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8635 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8637 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8640 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8641 of mixind vector and scalar types.
8642 (fold_relational_const): Add handling of vector
8643 comparison with boolean result.
8644 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8645 comparison of vector operands with boolean result for EQ/NE only.
8646 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8647 (verify_gimple_cond): Likewise.
8648 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8651 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8653 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8656 2016-01-18 Richard Biener <rguenther@suse.de>
8659 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8661 2016-01-18 Tom de Vries <tom@codesourcery.com>
8663 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8665 2016-01-18 Tom de Vries <tom@codesourcery.com>
8667 * omp-low.c (set_oacc_fn_attrib): Make extern.
8668 * omp-low.h (set_oacc_fn_attrib): Declare.
8669 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8670 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8671 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8672 Add and handle function parameter oacc_kernels_p.
8673 (find_reduc_addr, get_omp_data_i_param): New function.
8674 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8675 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8676 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8677 Calculate dominance info. Skip loops that are not in a kernels region
8678 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8679 (pass_parallelize_loops::execute): Call parallelize_loops with
8680 oacc_kernels_p argument.
8681 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8682 New member function.
8683 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8684 * passes.def: Add argument to pass_parallelize_loops instantation.
8686 2016-01-18 Tom de Vries <tom@codesourcery.com>
8688 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8689 pass_parallelize_loops to be run outside the loop pipeline.
8691 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8693 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8694 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8696 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8699 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8700 using get_ref_base_and_extent.
8701 (equal_mem_array_ref_p): New.
8702 (hashable_expr_equal_p): Add call to previous.
8704 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8707 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8708 (sra_initialize): Allocate disqualified_constants.
8709 (sra_deinitialize): Free disqualified_constants.
8710 (disqualify_candidate): Update disqualified_constants when appropriate.
8711 (create_access): Scan for constant-pool entries as we go along.
8712 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8713 (maybe_add_sra_candidate): Allow constant-pool entries.
8714 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8715 (initialize_constant_pool_replacements): New.
8716 (sra_modify_assign): Avoid mangling assignments created by previous,
8717 and don't generate writes into constant pool.
8718 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8720 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8722 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8724 (scalar_chain::convert_op): Likewise.
8725 * config/i386/i386.md (*andndi3_doubleword): New.
8727 2016-01-18 Richard Biener <rguenther@suse.de>
8729 PR tree-optimization/69170
8730 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8731 building a vector from scalar results of a pattern stmt.
8733 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8735 * haifa-sched.c (autopref_multipass_init): Work around
8736 -Wmaybe-uninitialized warning.
8738 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8740 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8741 against the constant 0.
8743 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8745 PR tree-optimization/68799
8746 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8747 look up phi candidates in the statement-candidate map.
8748 (phi_add_costs): Likewise.
8749 (record_phi_increments): Likewise.
8750 (phi_incr_cost): Likewise.
8751 (ncd_with_phi): Likewise.
8752 (all_phi_incrs_profitable): Likewise.
8754 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8756 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8757 -Wmaybe-uninitialized warning.
8759 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8761 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8762 (Option Summary): Update to reflect new section and moved options.
8763 (C++ Dialect Options): Move -fvtable-verify and related options.
8764 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8765 and profiling-related options.
8766 (Optimization Options): Move profile generation options and
8767 -fstack-protector and related options.
8768 (Instrumentation Options): New section incorporating moved options.
8769 (Code Generation Options): Move -finstrument-functions and
8770 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8772 2016-01-16 Tom de Vries <tom@codesourcery.com>
8774 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8776 2016-01-16 Tom de Vries <tom@codesourcery.com>
8778 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8780 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8782 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8783 that checks whether the table is already empty. Rename the
8784 original implementation to...
8785 (hash_table::empty_slot): ...this new private function.
8787 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8790 * diagnostic-show-locus.c (layout::print_source_line): Move x
8791 offset of line until after call to
8792 get_line_width_without_trailing_whitespace.
8794 2016-01-15 Jeff Law <law@redhat.com>
8796 PR tree-optimization/69270
8797 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8798 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8799 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8800 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8801 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8802 ssa_name_has_boolean_range and constant_boolean_node.
8804 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8806 PR rtl-optimization/69030
8807 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8809 (spill_pseudos): Delete debug insn for dead pseudo.
8810 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8812 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8814 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8816 (TYPES_UNOPUS): Likewise.
8817 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8818 builtin type, from UNOP to UNOPUS.
8819 (lbtruncuv4sf): Likewise.
8820 (lbtruncuv2df): Likewise.
8821 (lrounduv2sf): Likewise.
8822 (lrounduv4sf): Likewise.
8823 (lrounduv2df): Likewise.
8824 (lroundusf): Likewise.
8825 (lroundusf): Likewise.
8826 (lceiluv2sf): Likewise.
8827 (lceiluv4sf): Likewise.
8828 (lceiluv2df): Likewise.
8829 (lceilusf): Likewise.
8830 (lceiludf): Likewise.
8831 (lflooruv2sf): Likewise.
8832 (lflooruv4sf): Likewise.
8833 (lflooruv2df): Likewise.
8834 (lfloorusf): Likewise.
8835 (lfloorudf): Likewise.
8836 (lfrintnuv2sf): Likewise.
8837 (lfrintnuv4sf): Likewise.
8838 (lfrintnuv2df): Likewise.
8839 (lfrintnusf): Likewise.
8840 (lfrintnudf): Likewise.
8841 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8843 (vcvtq_u32_f32): Likewise.
8844 (vcvtq_u64_f64): Likewise.
8845 (vcvta_u32_f32): Likewise.
8846 (vcvtaq_u32_f32): Likewise.
8847 (vcvtaq_u64_f64): Likewise.
8848 (vcvtm_u32_f32): Likewise.
8849 (vcvtmq_u32_f32): Likewise.
8850 (vcvtmq_u64_f64): Likewise.
8851 (vcvtn_u32_f32): Likwise.
8852 (vcvtnq_u32_f32): Likewise.
8853 (vcvtnq_u64_f64): Likewise.
8854 (vcvtp_u32_f32): Likewise.
8855 (vcvtpq_u32_f32): Likewise.
8856 (vcvtpq_u64_f64): Likewise.
8857 (vcvtmd_u64_f64): Likewise.
8858 (vcvtms_u32_f32): Likewise.
8859 (vcvtad_u64_f64): Likewise.
8860 (vcvtas_u32_f32): Likewise.
8861 (vcvtnd_u64_f64): Likewise.
8862 (vcvtns_u32_f32): Likewise.
8863 (vcvtpd_u64_f64): Likewise.
8864 (vcvtps_u32_f32): Likewise.
8866 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8868 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8869 CSEL of zero_extended registers.
8871 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8873 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8874 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8876 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8878 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8879 false when argument string is not found in the attributes table
8882 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8885 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8886 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8887 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8890 2016-01-15 Richard Biener <rguenther@suse.de>
8892 PR tree-optimization/66856
8893 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8894 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8895 (vect_create_new_slp_node): Increment stmt reference count.
8896 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8897 an SLP tree before swapping operands.
8898 (vect_build_slp_tree): Likewise.
8899 (destroy_bb_vec_info): Free stmt info after SLP instances.
8900 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8901 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8902 (STMT_VINFO_NUM_SLP_USES): New macro.
8904 2016-01-15 Richard Biener <rguenther@suse.de>
8907 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8908 (add_linkage_name): ... here.
8909 (gen_typedef_die): Use add_linkage_name_raw instead of
8910 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8913 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8915 * gimplify.c (oacc_default_clause): Decode reference and pointer
8916 types for both kernels and parallel regions.
8918 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8921 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8923 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8925 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8926 (convert_scalars_to_vector): Likewise.
8928 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8930 * doc/extend.texi (Type Traits): Fix grammar.
8932 2016-01-15 Martin Jambor <mjambor@suse.cz>
8934 * tree-inline.c (remap_decl): Use existing dclarations if
8935 remapping a type and prevent_decl_creation_for_types.
8936 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8937 decls first. Do real remapping with
8938 prevent_decl_creation_for_types set.
8939 * tree-inline.h (copy_body_data): New field
8940 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8943 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8945 * config/s390/s390.opt (mmvcle): More verbose help text.
8947 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8949 * config/s390/s390.opt: Add period to -mzvector option text.
8951 2016-01-15 Richard Biener <rguenther@suse.de>
8953 PR tree-optimization/68961
8954 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8955 of invariants in stores again.
8957 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8959 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8961 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8963 * config/i386/i386.c (ix86_expand_branch): Don't split
8964 DI mode xor instruction to SI mode.
8966 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8969 * ipa-icf.c (sem_function::merge): Virtual functions may become
8970 reachable even if they address is not taken and there are no
8973 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8975 * lto-streamer-out.c (subtract_estimated_size): New function.
8976 (get_symbol_initial_value): Use it.
8978 2016-01-15 Christian Bruel <christian.bruel@st.com>
8981 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8982 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8983 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8984 use add_builtin_function_ext_scope instead of add_builtin_function.
8985 (neon_set_p, neon_crypto_set_p): Remove.
8986 (arm_init_builtins): Always call arm_init_neon_builtins and
8987 arm_init_crypto_builtins.
8988 (arm_expand_builtin): Check that builtins are allowed for the arch.
8989 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8990 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8991 arm_init_neon_builtins call.
8993 2016-01-15 Richard Biener <rguenther@suse.de>
8995 PR tree-optimization/69117
8996 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8997 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8998 of the leader conservatively.
8999 (free_scc_vn): Restore original SSA name infos.
9001 2016-01-14 Jeff Law <law@redhat.com>
9003 PR tree-optimization/69270
9004 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
9005 single bit of precision, verify it's also unsigned.
9006 (record_edge_info): Use constant_boolean_node rather than fold_convert
9007 to convert boolean_true/boolean_false to the right type.
9009 2016-01-14 Richard Henderson <rth@redhat.com>
9012 * loop-doloop.c (record_reg_sets): New.
9013 (doloop_optimize): Reject the transform if the sequence
9014 clobbers registers live at the end of the loop block.
9015 (doloop_optimize_loops): Enable df_live if needed.
9017 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
9019 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
9020 * gcc/config/rs6000/rs6000.c: Likewise.
9021 * gcc/config/rs6000/rs6000.h: Likewise.
9022 * gcc/config/rs6000/rs6000.md: Likewise.
9023 * gcc/doc/extend.texi: Likewsie.
9025 2016-01-14 Jeff Law <law@redhat.com>
9027 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
9030 2016-01-14 Richard Henderson <rth@redhat.com>
9034 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
9035 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
9036 instead of builtin_decl_declared_p to test for declaration.
9038 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
9040 * doc/loop.texi (Loop Analysis and Representation): Document
9041 loop_depth function.
9043 2016-01-14 Tom de Vries <tom@codesourcery.com>
9045 PR tree-optimization/68773
9046 * omp-low.c (expand_omp_target): Don't set force_output.
9047 * varpool.c (varpool_node::get_create): Same.
9048 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
9049 offload_funcs with force_output.
9051 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9054 * lra-eliminations.c (move_plus_up): Don't change anything if either
9055 the outer or inner subreg mode is not MODE_INT.
9056 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
9057 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
9059 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
9061 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
9062 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
9063 reduc_uplus_@var{m}): Remove.
9064 * expr.c (expand_expr_real_2): Remove expansion path for
9065 reduc_[us](min|max|plus) optabs.
9066 * optabs-tree.c (scalar_reduc_to_vector): Remove.
9067 * optabs-tree.h (scalar_reduc_to_vector): Remove.
9068 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
9069 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
9070 * tree-vect-loop.c (vectorizable_reduction): Remove test for
9071 reduc_[us](min|max|plus) optabs.
9073 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
9075 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
9076 (reduc_plus_scal_v2sf): New.
9077 (reduc_smax_v2sf): Rename to...
9078 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
9079 (reduc_smin_v2sf): Rename to...
9080 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
9082 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
9084 * alias.c (compare_base_symbol_refs): New function.
9085 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
9088 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9091 PR tree-optimization/69155
9092 * tree-complex.c: Include cfganal.h.
9093 (phis_to_revisit): New variable.
9094 (extract_component): Add phiarg_p argument. Assert that returned
9095 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
9096 (update_phi_components): Partly rewrite to use loop over real/imag
9097 components instead of code duplication. If extract_component returns
9098 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
9099 create_tmp_reg into the PHI node instead, and mention the phi triplet
9101 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
9102 in phis_to_revisit at the end.
9104 2016-01-14 Richard Biener <rguenther@suse.de>
9106 PR tree-optimization/68060
9107 * tree-vect-loop.c (vect_is_simple_reduction): Check the
9108 outer loop reduction is only used in the inner loop before
9109 detecting a double reduction.
9111 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9114 * combine.c (expand_field_assignment): Punt if compute_mode is
9115 unsupported scalar mode.
9117 2016-01-14 Richard Biener <rguenther@suse.de>
9119 PR tree-optimization/66856
9120 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
9121 SLP node only if it built successfully.
9122 (vect_analyze_slp_instance): Adjust.
9124 2016-01-14 Jeff Law <law@redhat.com>
9126 PR tree-optimization/69270
9127 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
9128 (record_edge_info): Use it. Convert boolean_{true,false}_node
9131 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
9134 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
9135 use block_ultimate_origin
9136 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
9138 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
9140 * doc/invoke.texi (Submodel Options): Rename section to
9141 "Machine-Dependent Options" to better reflect its content.
9142 Rewrite introductory text to remove archaic CPU names.
9145 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
9147 * doc/invoke.texi (Code Gen Options): Move section up in file,
9148 before target-specific options. Update menu and option summary
9149 to reflect the new section ordering.
9151 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
9153 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
9154 (C++ Dialect Options): Add cross-reference to -std option.
9155 * doc/standards.texi (C++ Language): Document C++14 support.
9157 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9159 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
9160 for pack/unpack functions for __ibm128.
9161 (PACK_IF): Likewise.
9162 (UNPACK_IF): Likewise.
9164 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9165 support for __ibm128 pack/unpack functions.
9166 (rs6000_invalid_builtin): Likewise.
9167 (rs6000_init_builtins): Likewise.
9168 (rs6000_opt_masks): Likewise.
9170 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
9171 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
9173 (RS6000_BTM_COMMON): Likewise.
9175 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
9176 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
9177 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
9178 128-bit floating point. Add support for the double values to be
9179 in Altivec registers for TF/IF packing and unpacking, but restrict
9180 TD packing sub-fields to be FPR registers. Don't allow overlapped
9181 register support for packing. Allow pack inputs to be memory
9182 locations. Don't build generator functions for unpack<mode>_dm
9183 and unpack<mode>_nodm.
9184 (unpack<mode>_dm): Likewise.
9185 (unpack<mode>_nodm): Likewise.
9186 (pack<mode>): Likewise.
9188 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
9189 built-in functions to pack/unpack explicit __ibm128 values.
9190 (__builtin_unpack_ibm128): Likewise.
9192 * doc/extend.texi (PowerPC Built-in Functions): Document
9193 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
9195 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
9198 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
9199 Add new arg loc and pass it down as context.
9200 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
9201 to the location to use for the warning.
9202 (check_function_arguments): New arg loc. All callers changed. Pass
9203 it to check_function_nonnull.
9204 * c-common.h (check_function_arguments): Adjust declaration.
9206 2016-01-13 Jakub Jelinek <jakub@redhat.com>
9208 PR tree-optimization/69156
9209 * gimple.c (validate_type): Removed.
9210 (gimple_builtin_call_types_compatible_p): Use
9211 useless_type_conversion_p instead of validate_type.
9212 * value-prof.c (gimple_stringop_fixed_value): Fold
9213 icall_size to correct type.
9215 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
9217 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
9220 2016-01-13 Richard Henderson <rth@redhat.com>
9223 * target.def (builtin_tm_load, builtin_tm_store): Remove.
9224 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
9225 (ix86_builtin_tm_store): Remove.
9226 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9227 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9228 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9229 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9230 * doc/tm.texi: Rebuild.
9232 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
9233 (BUILT_IN_TM_MEMCPY_RTWN): New.
9234 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
9235 fallback from vector to integer helpers.
9236 (build_tm_load): Handle vector types directly, instead of
9238 (build_tm_store): Likewise.
9239 (expand_assign_tm): Prepare for register types not handled by
9240 the above. Copy them to memory and use memcpy.
9241 * tree.c (tm_define_builtin): New.
9242 (find_tm_vector_type): New.
9243 (build_tm_vector_builtins): New.
9244 (build_common_builtin_nodes): Call it.
9246 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
9248 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
9249 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
9251 2016-01-13 Tom de Vries <tom@codesourcery.com>
9253 PR tree-optimization/69169
9254 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
9255 handled_struct_type param.
9256 (create_variable_info_for, intra_create_variable_infos): Call
9257 create_variable_info_for_1 with extra arg.
9259 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
9261 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
9262 and "armv8.1-a+crc" entries.
9264 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
9267 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
9268 Change first operand predicate from register_or_constm1_operand
9269 to register_operand.
9270 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
9271 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
9272 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
9273 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
9274 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
9275 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
9276 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
9277 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
9278 comparison with constm1_rtx from vec_prefetch_gen part.
9280 2016-01-13 Richard Biener <rguenther@suse.de>
9282 PR tree-optimization/69013
9283 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
9284 Exchange assert for a test.
9286 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9289 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
9291 2016-01-13 Richard Biener <rguenther@suse.de>
9293 PR tree-optimization/69242
9294 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
9295 assert with a check.
9297 2016-01-13 Richard Biener <rguenther@suse.de>
9299 PR tree-optimization/69186
9300 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9301 Properly guard vect_update_misalignment_for_peel call.
9303 2016-01-12 Jeff Law <law@redhat.com>
9305 PR tree-optimization/pr67755
9306 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
9307 "need_profile_correction".
9308 (thread_block_1): Initialize new field to false by default. If we
9309 have multiple thread paths through a common joiner to different
9310 final targets, then set new field to true.
9311 (compute_path_counts): Only do count adjustment when it's really
9314 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9316 * doc/invoke.texi (Spec Files): Move section down in file, past
9317 all command-line option descriptions.
9319 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9322 * doc/gty.texi: Remove documentation of mark_hook.
9323 * gengtype.c (struct write_types_data): Remove code to support
9324 mark_hook attribute.
9325 (walk_type): Likewise.
9326 (write_func_for_structure): Likewise.
9328 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9330 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
9331 Directory Options, and -specs= to Overall Options.
9332 (Overall Options): Adjust similarly. Reorder to group related
9333 options together. Make -specs= cross-reference the spec file details.
9334 (Directory Options): Adjust similarly.
9336 2016-01-12 Jeff Law <law@redhat.com>
9338 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
9340 2016-01-12 Olivier Hainque <hainque@adacore.com>
9342 * gcc.c (spec_undefvar_allowed): New global.
9343 (process_command): Set to true when running for --version or --help,
9345 (getenv_spec_function): When the variable is not defined, use the
9346 variable name as the variable value if we're allowed not to issue
9349 2016-01-12 Bin Cheng <bin.cheng@arm.com>
9351 PR tree-optimization/68911
9352 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9353 information computed for expression "init + nit * step".
9355 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9357 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
9358 about name of GCC executable. Remove deleted node from menu.
9359 (Directory Options) <-B>: Remove cross-reference to deleted node.
9360 (Target Options): Delete section.
9362 2016-01-12 Christian Bruel <christian.bruel@st.com>
9365 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9366 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9368 2016-01-12 Jakub Jelinek <jakub@redhat.com>
9371 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9372 aligned_mem is properly set for AVX512-VL floating point masked
9376 * ifcvt.c (cond_exec_process_if_block): When removing the last
9377 insn from then_bb, remove also any possible barriers that follow it.
9379 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
9383 * config/i386/iamcu.h (SIZE_TYPE): New macro.
9384 (PTRDIFF_TYPE): Likewise.
9385 (WCHAR_TYPE): Likewise.
9386 (WCHAR_TYPE_SIZE): Likewise.
9387 (STDINT_LONG32): Likewise.
9389 2016-01-12 Richard Biener <rguenther@suse.de>
9391 PR tree-optimization/69053
9392 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9393 convert initial value for cond reductions.
9395 2016-01-12 Richard Biener <rguenther@suse.de>
9397 PR tree-optimization/69007
9398 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9399 widen_sum after dot_prod and sad.
9401 2016-01-12 Richard Biener <rguenther@suse.de>
9403 PR tree-optimization/69168
9404 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9405 pattern stmt SLP type.
9406 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9407 end up unused so cope with that case.
9409 2016-01-12 Richard Biener <rguenther@suse.de>
9411 PR tree-optimization/69157
9412 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9413 stmts def type only during analyze phase.
9414 (vectorizable_call): Likewise.
9415 (vectorizable_simd_clone_call): Likewise.
9416 (vectorizable_conversion): Likewise.
9417 (vectorizable_assignment): Likewise.
9418 (vectorizable_shift): Likewise.
9419 (vectorizable_operation): Likewise.
9420 (vectorizable_store): Likewise.
9421 (vectorizable_load): Likewise.
9423 2016-01-12 Richard Biener <rguenther@suse.de>
9425 PR tree-optimization/69174
9426 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9428 (vectorizable_load): Properly compute the number of loads needed
9429 for permuted strided SLP loads and do not spuriously assign
9430 to SLP_TREE_VEC_STMTS.
9432 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
9434 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9435 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9436 (MD_EXEC_PREFIX): Remove.
9437 (MD_STARTFILE_PREFIX) Removee.
9438 (FILE_NAME_ABSOLUTE_P): Remove.
9439 (CPP_SPEC): Do not read macros from sys/version.h.
9440 (LINK_COMMAND_SPEC): Remove.
9441 (LOCAL_INCLUDE_DIR): Remove.
9442 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9443 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9444 (POST_LINK_SPEC): Define to invoke stubify after linker
9445 (LIBSTDCXX): Remove define
9446 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9447 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9448 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9449 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9450 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9451 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9452 (i386_djgpp_asm_named_section): Add propotype of new procedure
9454 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9455 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9456 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9457 in config/i386/djgpp.h).
9458 (STANDARD_STARTFILE_PREFIX_2): Define identical to
9459 STANDARD_STARTFILE_PREFIX_1.
9460 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9461 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9462 installation errors.
9463 (MAX_OFILE_ALIGNMENT): Define to 128.
9464 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9466 * config/i386/djgpp.c: New file. Add implementation of
9467 i386_djgpp_asm_named_section.
9469 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9471 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9472 Add rule for building djgpp.o.
9474 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9476 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9477 (rtx_is_swappable_p): Reductions are swappable.
9478 (insn_is_swappable_p): V2DF reductions are swappable.
9480 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
9482 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9483 reloads for other unsupported memory operands.
9485 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9486 Jim Wilson <jim.wilson@linaro.org>
9489 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9490 copy_to_mode_reg instead of force_reg.
9492 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9495 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9496 TARGET_80387 is true.
9498 2016-01-11 Jakub Jelinek <jakub@redhat.com>
9501 * lra-eliminations.c (move_plus_up): Only move plus up
9502 if subreg of the constant can be simplified into constant
9503 and use the simplified subreg of the constant instead of
9504 the original constant.
9506 * fold-const.c (fold_convertible_p): Don't return true
9507 for conversion of VECTOR_TYPE to same sized integral type.
9508 (fold_convert_loc): Fix up formatting. Fold conversion of
9509 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9510 instead of NOP_EXPR.
9512 PR tree-optimization/69214
9513 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9514 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9517 PR tree-optimization/69207
9518 * tree-vect-slp.c (vect_get_constant_vectors): For
9519 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9520 fold_convertible_p to vector_type's element type, and always
9521 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9523 2016-01-11 Richard Biener <rguenther@suse.de>
9525 PR tree-optimization/69173
9526 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9527 fixup the cycle if all stmts are in a pattern.
9529 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9532 * alias.c (base_alias_check): Move check for addresses with
9533 alignment ANDs before the call for compare_base_decls.
9534 (memrefs_conflict_p): Return -1 for different decls
9535 that went through alignment adjustments.
9537 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9539 PR rtl-optimization/68796
9540 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9541 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9542 and QImode comparisons against zero with CC_NZmode.
9543 * config/aarch64/iterators.md (short_mask): New mode_attr.
9545 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9547 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9548 (<avx512>_store<mode>_mask): Likewise.
9550 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9551 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9553 PR rtl-optimization/68841
9554 * ifcvt.c (struct noce_if_info): Add orig_x field.
9555 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9556 Don't record conflicts on to_rename if it's present.
9557 Allow memory destinations in sets.
9558 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9559 blocks, passing orig_x to the checks.
9560 (noce_process_if_block): Set if_info->orig_x appropriately.
9562 2016-01-11 Tom de Vries <tom@codesourcery.com>
9564 PR tree-optimization/69069
9565 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9567 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9569 PR rtl-optimization/68920
9570 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9571 of conditional moves for RTL if-conversion to 1 for
9572 TARGET_ONE_IF_CONV_INSN.
9573 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9574 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9575 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9576 parameter to restirct number of conditional moves for
9578 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9579 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9582 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9585 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9586 onepart vars. Fix typo in comment. Fix reversed condition in
9588 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9591 * var-tracking.c (dump_onepart_variable_differences): New.
9592 (dataflow_set_different): If a detailed dump is requested,
9593 delay early returns and dump differences between onepart
9594 variables present before and after, and added variables.
9596 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9599 * expr.c (expand_expr_real_1): For boolean vector constants
9600 with a scalar mode use const_scalar_mask_from_tree.
9601 (const_scalar_mask_from_tree): New.
9602 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9603 assigned to a mask type to handle constants.
9605 2016-01-11 Martin Jambor <mjambor@suse.cz>
9608 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9609 useless parameters if we cannot change function signature.
9611 2016-01-11 Martin Jambor <mjambor@suse.cz>
9614 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9617 2016-01-11 Tom de Vries <tom@codesourcery.com>
9619 PR tree-optimization/69109
9620 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9623 2016-01-11 Tom de Vries <tom@codesourcery.com>
9625 PR tree-optimization/69108
9626 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9627 res is not used in a phi.
9629 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9632 * common.opt (frandom-seed): Fix parameter name.
9633 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9635 2016-01-11 Tom de Vries <tom@codesourcery.com>
9637 PR tree-optimization/69058
9638 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9641 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9643 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9644 (mcode-density): Likewise.
9646 2016-01-10 Tom de Vries <tom@codesourcery.com>
9648 PR tree-optimization/69062
9649 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9650 (parallelize_loops): Don't paralelize loop that has phi with address
9653 2016-01-10 Tom de Vries <tom@codesourcery.com>
9655 PR tree-optimization/69039
9656 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9659 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9662 * match.pd: Require target has function_c99_misc before doing
9663 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9665 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9667 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9669 * configure: Regenerate.
9671 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9674 PR tree-optimization/69097
9675 * fold-const.h (expr_not_equal_to): New prototype.
9676 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9677 (expr_not_equal_to): New function.
9678 * match.pd (X % -Y is the same as X % Y): Don't optimize
9679 unless X is known not to be equal to minimum or Y is known
9680 not to be equal to -1.
9681 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9682 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9683 (simplify_stmt_using_ranges): Adjust caller.
9684 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9685 substitute_and_fold.
9687 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9689 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9692 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9694 PR tree-optimization/69167
9695 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9696 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9698 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9700 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9701 Richard Biener <rguenther@suse.de>
9703 PR tree-optimization/68707
9704 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9705 instances that can be handled via vect_load_lanes.
9707 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9709 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9710 if we can't determine address equivalence.
9711 * alias.c (compare_base_decl): Update for changed return value of
9712 symtab_node::equal_address_to.
9714 2016-01-08 Jason Merrill <jason@redhat.com>
9718 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9719 * expr.c (store_field): Not here.
9720 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9721 call with TREE_ADDRESSABLE type.
9722 * tree-cfg.c (verify_gimple_call): Adjust.
9724 2016-01-08 Olivier Hainque <hainque@adacore.com>
9726 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9729 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9731 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9732 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9733 (reduc_smin_v2sf): Rename to...
9734 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9735 (reduc_splus_v2sf): Rename to...
9736 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9738 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9740 PR tree-optimization/69162
9741 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9742 valist argument in another argument.
9743 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9744 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9745 to determine the va_list type, build a MEM_REF instead of
9746 build_fold_indirect_ref.
9748 PR tree-optimization/69172
9749 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9752 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9754 PR tree-optimization/67781
9755 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9756 and cmpnop in two steps: first the ones not accessed in original
9757 gimple expression in a endian independent way and then the ones not
9758 accessed in the final result in an endian-specific way.
9760 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9762 PR tree-optimization/69083
9763 * tree-vect-slp.c (vect_get_constant_vectors): For
9764 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9765 element type. If op is fold_convertible_p to vector_type's element
9766 type, use NOP_EXPR instead of VCE.
9768 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9770 PR rtl-optimization/67778
9771 PR rtl-optimization/68634
9772 PR rtl-optimization/68909
9773 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9774 block from the stack until done with it. Remove a superfluous
9775 bitmap set. Remove a superfluous bitmap test.
9777 2016-01-07 Martin Sebor <msebor@redhat.com>
9780 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9781 constraint on the type of arguments.
9783 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9785 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9786 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9787 unaligned_access on the gcc_options set.
9788 * config/arm/arm.c (arm_option_override_internal): Use
9789 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9791 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9794 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9795 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9797 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9800 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9803 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9804 depending on frame_pointer_needed before remaining integer and SSE
9805 registers are saved.
9807 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9810 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9812 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9815 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9816 Use the "xBm" constraint.
9817 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9819 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9820 (sse_cvtsi2ssq<round_name>): Likewise.
9821 (sse_cvtss2si<round_name>): Likewise.
9822 (sse_cvtss2siq<round_name>): Likewise.
9823 (sse2_cvtsi2sdq<round_name>): Likewise.
9824 (sse2_cvtsd2si<round_name>): Likewise.
9825 (sse2_cvtsd2siq<round_name>): Likewise.
9826 * config/i386/subst.md (round_nimm_scalar_predicate): New
9829 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9832 * varasm.c (make_decl_rtl): Mark invalid register vars as
9835 PR rtl-optimization/66206
9836 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9837 All callers changed.
9839 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9841 PR tree-optimization/69141
9842 * tree-ssa-pre.c: Include langhooks.h.
9843 (eliminate_dom_walker::before_dom_children): Use
9844 lang_hooks.decl_printable_name instead of
9845 cgraph_node::get ()->name ().
9848 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9849 it and DECL_ALIGN too.
9851 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9853 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9855 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9858 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9859 depending on frame_pointer_needed before remaining integer and SSE
9860 registers are saved.
9862 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9864 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9865 mode iterator with VSX_M2.
9866 (*p9_vecstore_<mode>): Likewise.
9867 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9868 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9869 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9870 (define_split for VSX_LE128 stores): Likewise.
9871 (define_peephole2 for TImode LE swaps): Likewise.
9872 (define_split for VSX_LE128 post-reload stores): Likewise.
9874 2016-01-06 Marek Polacek <polacek@redhat.com>
9877 * convert.c (convert_to_integer_1): Adjust call to
9878 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9879 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9880 EXPR instead of ARG.
9881 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9883 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9886 * doc/extend.texi (RL78 Variable Attributes): New section.
9888 2016-01-05 Marek Polacek <polacek@redhat.com>
9891 * builtins.c (get_memmodel): Use expansion point location rather than
9892 the input location. Call warning_at rather than warning.
9893 (expand_builtin_atomic_compare_exchange): Likewise.
9894 (expand_builtin_atomic_load): Likewise.
9895 (expand_builtin_atomic_store): Likewise.
9896 (expand_builtin_atomic_clear): Likewise.
9898 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9901 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9902 Replace nonimmediate_operand with vector_operand.
9903 * config/i386/predicates.md (vector_operand): New predicate.
9904 (general_vector_operand): Replace nonimmediate_operand with
9906 * config/i386/sse.md: Replace nonimmediate_operand with
9907 vector_operand and m constraint with Bm constraint on SSE
9908 patterns with 16-byte memory operand.
9909 * config/i386/subst.md (round_nimm_predicate): Replace
9910 nonimmediate_operand with vector_operand.
9911 (round_saeonly_nimm_predicate): Likewise.
9912 (round_saeonly_nimm_scalar_predicate): New.
9914 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9917 * config/i386/constraints.md (Bm): New constraint.
9918 * config/i386/predicates.md (vector_memory_operand): New
9920 * config/i386/sse.md: Replace xm with xBm in plusminus and
9923 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9926 * doc/extend.texi (V850 Function Attributes): New section.
9927 (V850 Variable Attributes): New section.
9929 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9932 * doc/extend.texi (MicroBlaze Function Attributes): Document
9933 interrupt_handler and fast_interrupt attributes.
9935 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9938 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9939 for local symbolic operands.
9940 * config/ia64/predicates.md (local_symbolic_operand64): New
9943 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9945 PR rtl-optimization/68651
9946 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9949 2016-01-05 Nathan Sidwell <nathan@acm.org>
9951 * alias.c (compare_base_decls): Use symtab_node::get.
9953 2016-01-05 Nick Clifton <nickc@redhat.com>
9956 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9957 secondary_reload_info structure.
9960 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9961 decls if weak support is available.
9963 2016-01-04 Martin Sebor <msebor@redhat.com>
9965 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9967 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9969 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9970 OPTION_MASK_P9_DFORM.
9972 * config/rs6000/constraints.md (wo constraint): New constraint for
9975 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9977 (rs6000_init_hard_regno_mode_ok): Likewise.
9979 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9982 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9983 expanders not to have constraints. Add support for ISA 3.0 xxperm
9984 instruction. Add support for fusing xxlor with xxperm.
9985 (altivec_vperm_<mode>_internal): Likewise.
9986 (altivec_vperm_v8hiv16qi): Likewise.
9987 (altivec_vperm_<mode>v16q): Likewise.
9988 (altivec_vperm_<mode>_uns): Likewise.
9989 (vperm_v8hiv4si): Likewise.
9990 (vperm_v16qiv8hi): Likewise.
9992 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9994 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9996 Update copyright years.
9998 * gcc.c (process_command): Update copyright notice dates.
9999 * gcov-dump.c (print_version): Ditto.
10000 * gcov.c (print_version): Ditto.
10001 * gcov-tool.c (print_version): Ditto.
10002 * gengtype.c (create_file): Ditto.
10003 * doc/cpp.texi: Bump @copying's copyright year.
10004 * doc/cppinternals.texi: Ditto.
10005 * doc/gcc.texi: Ditto.
10006 * doc/gccint.texi: Ditto.
10007 * doc/gcov.texi: Ditto.
10008 * doc/install.texi: Ditto.
10009 * doc/invoke.texi: Ditto.
10011 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
10013 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
10014 modes larger than TImode as TImode if NEON is not enabled.
10016 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
10019 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
10020 mode for %f0-%f31 only if TARGET_FPU.
10022 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
10025 * config/sparc/sparc.c (scan_record_type): Take into account subfields
10026 to compute the PACKED_P predicate.
10027 (function_arg_record_value): Minor tweaks.
10029 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
10031 * doc/install.texi (--with-multilib-list): Describe the meaning of the
10032 option for arm*-*-* targets.
10034 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
10036 * doc/extend.texi (Common Function Attributes): Move docs for
10037 MSP430-specific attributes to....
10038 (MSP430 Function Attributes): ...here. Delete the redundant
10039 entries and copy-edit the remaining text.
10040 (MSP430 Variable Attributes): Use uniform format for index
10041 entries and add a cross-reference to the corresponding function
10044 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
10046 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
10048 (x86 Options): Likewise.
10050 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
10054 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
10055 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
10056 to corresponding attribute.
10058 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
10060 * doc/extend.texi (Common Function Attributes) <noplt>: Move
10061 to correct alphabetization of table. Copy-edit and correct
10063 <stack_protect>: Likewise.
10064 <target_clones>: Likewise.
10066 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
10067 Correct punctuation.
10068 (Code Gen Options) <-fno-plt>: Copy-edit.
10070 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10073 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
10074 SI values. Explicitly convert SI to DI and vice-versa.
10076 2016-01-01 Jakub Jelinek <jakub@redhat.com>
10078 PR tree-optimization/69070
10079 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
10080 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
10083 * ubsan.c (ubsan_instrument_float_cast): Call
10084 initialize_sanitizer_builtins.
10087 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
10089 Copyright (C) 2016 Free Software Foundation, Inc.
10091 Copying and distribution of this file, with or without modification,
10092 are permitted in any medium without royalty provided the copyright
10093 notice and this notice are preserved.