1 2016-05-03 Alan Modra <amodra@gmail.com>
3 * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
4 for SAVE_MULTIPLE/STORE_MULTIPLE.
6 2016-05-03 Jakub Jelinek <jakub@redhat.com>
8 * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
9 *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead
12 2016-05-03 Richard Biener <rguenther@suse.de>
14 * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16 (gimplify_arg): Likewise.
17 * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
18 re-writing the result to a decl if required.
19 (internal_get_tmp_var): Add allow_ssa parameter
20 and override into_ssa with it.
21 (get_formal_tmp_var): Adjust.
22 (get_initialized_tmp_var): Add allow_ssa parameter.
23 (gimplify_arg): Add allow_ssa parameter and avoid generating
24 SSA names for the result false.
25 (gimplify_call_expr): If the call may return twice do not
26 gimplify parameters into SSA.
27 (prepare_gimple_addressable): Do not allow an SSA name as
29 (gimplify_modify_expr): Adjust assert. For noreturn calls
30 with a SSA name LHS adjust its def.
31 (gimplify_save_expr): Do not allow an SSA name as save-expr
33 (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
34 (gimplify_body): Init GIMPLE SSA data structures and gimplify
36 (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
37 an SSA name. Likewise for OMP_CLAUSE_REDUCTION operands.
38 (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL. Likewise
39 for OMP_FOR_COND, OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
40 (optimize_target_teams): Do not allow SSA names for clause operands.
41 (gimplify_expr): Likewise for where we mark the result addressable.
42 * passes.def (pass_init_datastructures): Remove.
43 * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
44 (rewrite_stmt): Likewise.
45 * tree-inline.c (initialize_cfun): Properly transfer SSA state.
46 (replace_locals_op): Replace SSA names.
47 (copy_gimple_seq_and_replace_locals): Init src_cfun.
48 * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
49 * cgraph.c (release_function_body): Free CFG annotations only
50 when we have a CFG. Simplify.
51 * gimple-fold.c (gimplify_and_update_call_from_tree): Use
52 force_gimple_operand instead of get_initialized_tmp_var.
53 * tree-pass.h (make_pass_init_datastructures): Remove.
54 * tree-ssa.c (execute_init_datastructures): Remove.
55 (pass_data_init_datastructures): Likewise.
56 (class pass_init_datastructures): Likewise.
57 (make_pass_init_datastructures): Likewise.
58 * omp-low.c (create_omp_child_function): Init SSA data structures.
59 (grid_expand_target_grid_body): Likewise.
60 * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
61 name before adding it to names_to_release.
62 (remove_bb): Always release SSA defs.
63 * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
64 before dereferencing it.
65 * cgraphunit.c (init_lowered_empty_function): Always
66 int SSA data structures.
67 * tree-ssanames.c (release_defs): Remove assert that we are in
69 * trans-mem.c (diagnose_tm_1): Handle SSA name function.
71 2016-05-03 Jakub Jelinek <jakub@redhat.com>
72 Uros Bizjak <ubizjak@gmail.com>
74 PR rtl-optimization/70467
75 * config/i386/predicates.md (x86_64_hilo_int_operand,
76 x86_64_hilo_general_operand): New predicates.
77 * config/i386/constraints.md (Wd): New constraint.
78 * config/i386/i386.md (mode attr di): Use Wd instead of e.
79 (general_hilo_operand): New mode attr.
80 (add<mode>3, sub<mode>3): Use <general_hilo_operand>
81 instead of <general_operand>.
82 (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
83 x86_64_hilo_general_operand instead of <general_operand>.
85 2016-05-03 Jakub Jelinek <jakub@redhat.com>
87 PR tree-optimization/70916
88 * tree-if-conv.c (constant_or_ssa_name): Removed.
89 (fold_build_cond_expr): Use is_gimple_val instead of
92 PR tree-optimization/70916
93 * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
94 if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
97 * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
98 (optimize_atomic_bit_test_and): New function.
99 (pass_fold_builtins::execute): Use it.
100 * optabs.def (atomic_bit_test_and_set_optab,
101 atomic_bit_test_and_complement_optab,
102 atomic_bit_test_and_reset_optab): New optabs.
103 * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
104 ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
105 * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
106 * builtins.c (expand_ifn_atomic_bit_test_and): New function.
107 * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
108 expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
109 expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
110 * doc/md.texi (atomic_bit_test_and_set@var{mode},
111 atomic_bit_test_and_complement@var{mode},
112 atomic_bit_test_and_reset@var{mode}): Document.
113 * config/i386/sync.md (atomic_bit_test_and_set<mode>,
114 atomic_bit_test_and_complement<mode>,
115 atomic_bit_test_and_reset<mode>): New expanders.
116 (atomic_bit_test_and_set<mode>_1,
117 atomic_bit_test_and_complement<mode>_1,
118 atomic_bit_test_and_reset<mode>_1): New insns.
120 2016-05-03 Richard Sandiford <richard.sandiford@arm.com>
122 PR rtl-optimization/70687
123 * combine.c (change_zero_ext): Check for scalar modes. Use wide_int
124 instead of unsigned HOST_WIDE_INT.
126 2016-05-03 Bernd Schmidt <bschmidt@redhat.com>
128 PR rtl-optimization/44281
129 * hard-reg-set.h (struct target_hard_regs): New field
130 x_fixed_nonglobal_reg_set.
131 (fixed_nonglobal_reg_set): New macro.
132 * reginfo.c (init_reg_sets_1): Initialize it.
133 * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
135 * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
137 2016-05-03 bin cheng <bin.cheng@arm.com>
139 PR tree-optimization/56541
140 * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
141 * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
142 * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
143 (any_complicated_phi): new static variable.
144 (aggressive_if_conv): delete.
145 (if_convertible_phi_p): support phis with more than two arguments.
146 (if_convertible_bb_p): remvoe check on aggressive_if_conv and
148 (ifcvt_split_critical_edges): support phis with more than two
149 arguments by checking new parameter. only split critical edges
151 (tree_if_conversion): handle simd pragma marked loop using new
152 local variable aggressive_if_conv. check any_complicated_phi.
154 2016-05-03 Bin Cheng <bin.cheng@arm.com>
156 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
159 2016-05-03 Bin Cheng <bin.cheng@arm.com>
161 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
164 2016-05-03 Oleg Endo <olegendo@gcc.gnu.org>
166 * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
167 (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
168 define_insn_and_split.
169 (mulsi3_i): New define_insn_and_split.
170 (mulsi3_call): Convert to define_insn.
171 (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
174 2016-05-02 Michael Meissner <meissner@linux.vnet.ibm.com>
176 * machmode.h (mode_complex): Add support to give the complex mode
178 (GET_MODE_COMPLEX_MODE): Likewise.
179 * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
180 stored by build_complex_type and gfc_build_complex_type instead of
181 trying to figure out the appropriate mode based on the size. Raise
182 an assertion error, if the type was not set.
183 * genmodes.c (struct mode_data): Add field for the complex type of
185 (blank_mode): Likewise.
186 (make_complex_modes): Remember the complex mode created in the
188 (emit_mode_complex): Write out the mode_complex array to map a
189 type mode to the complex version.
190 (emit_insn_modes_c): Likewise.
191 * tree.c (build_complex_type): Set the complex type to use before
193 * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
194 support for __float128 complex datatypes.
195 (rs6000_hard_regno_mode_ok): Likewise.
196 (rs6000_setup_reg_addr_masks): Likewise.
197 (rs6000_complex_function_value): Likewise.
198 * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
199 __float128 and __ibm128 complex.
200 (FLOAT128_IBM_P): Likewise.
201 (ALTIVEC_ARG_MAX_RETURN): Likewise.
202 * doc/extend.texi (Additional Floating Types): Document that
203 -mfloat128 must be used to enable __float128. Document complex
204 __float128 and __ibm128 support.
206 2016-05-02 Jakub Jelinek <jakub@redhat.com>
209 * gimple.c (gimple_builtin_call_types_compatible_p): Allow
210 char/short arguments promoted to int because of promote_prototypes.
212 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
214 * config/i386/predicates.md (register_ssemem_operand): New predicate.
215 * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
216 *cmpi<FPCMP:unord><MODEF:mode>_mixed and
217 *cmpi<FPCMP:unord><X87MODEF:mode>_i387. Disable unsupported
218 alternatives using "enabled" attribute. Use register_ssemem_operand
219 as operand 1 predicate.
220 (*cmpi<unord>xf_i387): Split XFmode pattern from
221 *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
222 (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
223 *absneg<mode>2_i387. Disable unsupported alternatives using
225 (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
227 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
229 * omp-low.c (lower_oacc_head_tail): Assert there is at least one
231 (oacc_loop_process): Check mask for loop termination.
233 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
235 * cif-code.def (CIF_THUNK): Add.
236 * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
239 2016-05-02 Jan Hubicka <hubicka@ucw.cz>
241 * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
242 (dump_inline_summary): Dump it.
243 (fp_expression_p): New predicate.
244 (estimate_function_body_sizes): Use it.
245 (inline_merge_summary): Merge fp_expressions.
246 (inline_read_section): Read fp_expressions.
247 (inline_write_summary): Write fp_expressions.
248 * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
249 codegen boundary if either caller or callee is !fp_expressions.
250 * ipa-inline.h (inline_summary): Add fp_expressions.
251 * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
252 to fp_expressions be sure the fp generation flags are updated.
254 2016-05-02 Jakub Jelinek <jakub@redhat.com>
256 PR rtl-optimization/70467
257 * cse.c (cse_insn): Handle no-op MEM moves after folding.
259 PR rtl-optimization/70467
260 * ipa-pure-const.c (check_call): Handle internal calls even in
261 ipa mode like in local mode.
263 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
265 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
267 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
269 * match.pd (X u< X, X u> X): New transformations.
271 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
273 * flag-types.h (enum warn_strict_overflow_code): Move ...
274 * coretypes.h: ... here.
275 * fold-const.h (fold_overflow_warning): Declare.
276 * fold-const.c (fold_overflow_warning): Make non-static.
277 (fold_comparison): Move the transformation of X +- C1 CMP C2
278 into X CMP C2 -+ C1 ...
279 * match.pd: ... here.
280 * gimple-fold.c (fold_stmt_1): Protect with
281 fold_defer_overflow_warnings.
283 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
285 * omp-low.c (struct oacc_loop): Add 'inner' field.
286 (new_oacc_loop_raw): Initialize it to zero.
287 (oacc_loop_fixed_partitions): Initialize it.
288 (oacc_loop_auto_partitions): Partition outermost loop to outermost
289 available partitioning.
291 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
293 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
295 (umulsidi3): Likewise.
296 (indirect_jump): Fix jump instruction assembly patterns.
298 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
301 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
302 (nvptx_function_value): Assert non-NULL cfun.
304 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
306 PR rtl-optimization/70886
307 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
309 * cselib.h (rtx_equal_for_cselib_1): Declare.
310 (rtx_equal_for_cselib_p: New inline function.
311 * cselib.c (rtx_equal_for_cselib_p): Delete.
312 (rtx_equal_for_cselib_1): Make public.
314 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
316 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
317 (register_mixssei387nonimm_operand): Remove predicate.
318 * config/i386/i386.md (*fop_<mode>_comm): Merge from
319 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
320 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
321 for TARGET_MIX_SSE_I387 alternatives.
322 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
323 Disable unsupported alternatives using "enabled" attribute. Use
324 nonimm_ssenomem_operand as operand 1 predicate. Also check
325 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
327 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
329 * tree.c (cst_and_fits_in_hwi): Simplify.
331 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
333 * tree.h (wi::to_wide): New function.
334 * expr.c (expand_expr_real_1): Use wi::to_wide.
335 * fold-const.c (int_const_binop_1): Likewise.
336 (extract_muldiv_1): Likewise.
338 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
340 * wide-int.h: Update offset_int and widest_int documentation.
341 (WI_SIGNED_SHIFT_RESULT): New macro.
342 (wi::binary_shift): Define signed_shift_result_type for
343 shifts on offset_int- and widest_int-like types.
344 (generic_wide_int): Support <<= and >>= if << and >> are supported.
345 * tree.h (int_bit_position): Use shift operators instead of wi::
347 * alias.c (adjust_offset_for_component_ref): Likewise.
348 * expr.c (get_inner_reference): Likewise.
349 * fold-const.c (fold_comparison): Likewise.
350 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
351 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
352 * tree-dfa.c (get_ref_base_and_extent): Likewise.
353 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
354 (stmt_kills_ref_p): Likewise.
355 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
356 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
357 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
358 (ao_ref_init_from_vn_reference): Likewise.
360 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
362 * wide-int.h: Update offset_int and widest_int documentation.
363 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
364 (wi::binary_traits): Allow ordered comparisons between offset_int and
365 offset_int, between widest_int and widest_int, and between either
366 of these types and basic C types.
367 (operator <, <=, >, >=): Define for the same combinations.
368 * tree.h (tree_int_cst_lt): Use comparison operators instead
370 (tree_int_cst_le): Likewise.
371 * gimple-fold.c (fold_array_ctor_reference): Likewise.
372 (fold_nonarray_ctor_reference): Likewise.
373 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
374 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
375 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
376 * tree-sra.c (completely_scalarize): Likewise.
377 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
378 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
379 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
380 (check_for_binary_op_overflow): Likewise.
381 (search_for_addr_array): Likewise.
382 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
384 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
386 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
387 (arc_save_restore): Likewise.
388 (arc_dwarf_register_span): Likewise.
389 (arc_output_pic_addr_const): Initialize suffix variable.
391 2016-05-02 Martin Liska <mliska@suse.cz>
393 * symbol-summary.h (function_summary::function_summary):
394 Remove checking assert for all cgraph nodes.
395 (function_summary::get): Check summary_uid.
396 (symtab_insertion): Check summary_uid.
398 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
400 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
401 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
403 (arc_dwarf_register_span): Remove enum keyword.
404 (compact_memory_operand_p): New function.
405 * config/arc/arc.h (reg_class): Add code density register classes.
406 (REG_CLASS_NAMES): Likewise.
407 (REG_CLASS_CONTENTS): Likewise.
408 * config/arc/arc.md (*movqi_insn): Add code density instructions.
409 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
410 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
411 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
412 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
414 (h, Rcd, Rsd, Rzd): New register constraints.
415 (T): Use compact_memory_operand_p function.
416 * config/arc/predicates.md (compact_load_memory_operand): Remove.
418 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
420 * config/sh/sh.md (*negnegt, *movtt): Remove.
422 2016-05-02 Marek Polacek <polacek@redhat.com>
423 Tom de Vries <tom@codesourcery.com>
425 PR tree-optimization/70700
426 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
427 bigger than FIRST_REF_NODE.
429 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
432 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
434 (prepare_cbranch_operands): Don't use scratch register. Assume that
435 function is used when pseudos can be created.
436 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
437 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
438 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
439 define_expand. Allow it only when pseudos can be created.
440 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
442 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
444 * config/i386/constraints.md (BC): Only allow -1 operands.
445 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
446 Add "enabled" attribute. Update XI mode attribute calculation.
447 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
448 (*movoi_internal_avx): Update XI mode attribute calculation.
449 (*movti_internal): Ditto.
451 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
453 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
454 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
456 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
458 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
459 statement on instruction code. Remove trailing spaces.
460 (altivec_expand_stv_builtin): Likewise.
462 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
464 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
465 (TARGET_FPU_DOUBLE): Simplify.
466 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
467 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
468 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
469 with 'TARGET_FPU_DOUBLE'.
470 * config/sh/sh.md: Likewise.
472 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
474 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
475 SH_DIV_STR_FOR_SIZE): Remove.
476 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
477 SH_DIV_STR_FOR_SIZE): Remove.
479 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
481 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
482 logical_reg_operand): Delete.
483 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
484 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
485 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
486 match_operand and match_test.
487 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
488 variables on their first use. Return bool values.
489 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
490 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
491 arith_reg_operand for input operand. Remove empty constraints.
493 (*xorsi3_compact): Rename to xorsi3.
494 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
495 (*zero_extend<mode>si2_disp_mem): Update comment.
498 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
500 * config/sh/t-sh: Remove SH5 support.
501 * config.gcc: Likewise.
502 * configure: Likewise.
504 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
506 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
508 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
510 * config/sh/sh.c (register_sh_passes, sh_option_override,
511 sh_print_operand, prepare_move_operands,
512 sh_can_follow_jump): Remove TARGET_SH1 checks.
513 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
514 PROMOTE_MODE): Likewise.
515 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
518 2016-04-30 Alan Modra <amodra@gmail.com>
520 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
521 restoring when fixed_reg_p, but allow out-of-line or stmw save.
522 Check for user regs later to avoid unnecessary looping over regs.
523 Merge user reg check with non-saved reg check. Don't force
524 inline VR restore when static chain used.
525 (rs6000_frame_related): Omit eh_frame info for user regs when
527 (fixed_regs_p): Delete.
529 2016-04-30 Alan Modra <amodra@gmail.com>
531 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
532 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
535 2016-04-30 Alan Modra <amodra@gmail.com>
538 * config/rs6000/rs6000.c (fixed_reg_p): New function.
539 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
542 2016-04-30 Alan Modra <amodra@gmail.com>
544 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
545 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
546 flag_pic test for Darwin.
548 2016-04-30 Alan Modra <amodra@gmail.com>
550 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
552 (REG_FREQ_CALLS_CROSSED): Delete.
553 (REG_N_THROWING_CALLS_CROSSED): Delete.
554 * regstat.c (regstat_bb_compute_ri): Don't calculate
555 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
556 (dump_reg_info): Don't print call cross frequency.
557 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
558 and REG_N_THROWING_CALLS_CROSSED.
560 2016-04-30 Alan Modra <amodra@gmail.com>
562 * regs.h (struct reg_info_t): Delete live_length.
563 (REG_LIVE_LENGTH): Delete macro.
564 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
565 local_live, local_processed and local_live_last_luid params.
566 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
568 (regstat_compute_ri): Adjust for above. Don't set
570 (dump_reg_info): Don't print live length.
571 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
572 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
573 Localize loop_depth var.
575 2016-04-30 Alan Modra <amodra@gmail.com>
577 * ira.c (enum valid_equiv): New.
578 (validate_equiv_mem): Return enum.
579 (update_equiv_mem): Create replacement in more cases.
580 (add_store_equivs): Update validate_equiv_mem call.
582 2016-04-30 Alan Modra <amodra@gmail.com>
584 * ira.c (combine_and_move_insns): Rather than scanning insns,
585 use DF infrastucture to find use and def insns.
587 2016-04-30 Alan Modra <amodra@gmail.com>
589 ira.c (combine_and_move_insns): Move invariant conditions..
590 (ira.c): ..to here. Call combine_and_move_insns before
591 add_store_equivs. Call grow_reg_equivs later. Allocate
592 req_equiv later using max_reg_num() rather than global max_regno.
593 (contains_replace_regs): Delete.
594 (add_store_equivs): Remove contains_replace_regs test.
596 2016-04-30 Alan Modra <amodra@gmail.com>
598 * ira.c (struct equiv_mem_data): New.
599 (equiv_mem, equiv_mem_modified): Delete static vars.
600 (validate_equiv_mem_from_store): Use "data" param to communicate..
601 (validate_equiv_mem): ..from here.
603 2016-04-30 Alan Modra <amodra@gmail.com>
605 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
607 (update_reg_equivs): ..here. Move allocation and freeing of
608 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
609 end_alias_analysis to..
612 2016-04-30 Alan Modra <amodra@gmail.com>
614 * ira.c (pdx_subregs): Delete.
615 (struct equivalence): Add pdx_subregs field.
616 (set_paradoxical_subreg): Remove pdx_subregs param. Update
618 (update_equiv_regs): Don't create or free pdx_subregs. Update
621 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
623 * config/rs6000/altivec.h: Change definitions of vec_xl and
625 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
626 (LD_ELEMREV_V2DI): New.
627 (LD_ELEMREV_V4SF): New.
628 (LD_ELEMREV_V4SI): New.
629 (LD_ELEMREV_V8HI): New.
630 (LD_ELEMREV_V16QI): New.
631 (ST_ELEMREV_V2DF): New.
632 (ST_ELEMREV_V2DI): New.
633 (ST_ELEMREV_V4SF): New.
634 (ST_ELEMREV_V4SI): New.
635 (ST_ELEMREV_V8HI): New.
636 (ST_ELEMREV_V16QI): New.
639 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
640 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
641 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
642 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
643 (altivec_expand_builtin): Add handling for
644 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
645 (rs6000_invalid_builtin): Add error-checking for
646 RS6000_BTM_P9_VECTOR.
647 (altivec_init_builtins): Define builtins used to implement vec_xl
649 (rs6000_builtin_mask_names): Define power9-vector.
650 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
651 (RS6000_BTM_P9_VECTOR): Define.
652 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
653 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
654 (vsx_ld_elemrev_v2df): Likewise.
655 (vsx_ld_elemrev_v4sf): Likewise.
656 (vsx_ld_elemrev_v4si): Likewise.
657 (vsx_ld_elemrev_v8hi): Likewise.
658 (vsx_ld_elemrev_v16qi): Likewise.
659 (vsx_st_elemrev_v2df): Likewise.
660 (vsx_st_elemrev_v2di): Likewise.
661 (vsx_st_elemrev_v4sf): Likewise.
662 (vsx_st_elemrev_v4si): Likewise.
663 (vsx_st_elemrev_v8hi): Likewise.
664 (vsx_st_elemrev_v16qi): Likewise.
665 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
668 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
670 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
672 (simplify_control_stmt_condition_1): ... here. Recurse into
673 BIT_AND_EXPRs and BIT_IOR_EXPRs.
675 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
678 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
679 (zero_extendqi<mode>2_dot): Revert earlier conversion from
680 define_insn_and_split to define_insn.
681 (zero_extendqi<mode>2_dot2): Same.
682 (extendqi<mode>2_dot): Same.
683 (extendqi<mode>2_dot2): Same.
685 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
687 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
688 (probe_stack): New expander.
689 (probe_stack_<mode>): New insn pattern.
691 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
693 * config/i386/i386.md
694 (operations with memory inputs setting flags peephole2):
695 Remove uneeded REG_P checks. Cleanup pattern generation.
697 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
699 * tree-vect-loop.c (vect_transform_loop): Fix
700 nb_iterations_upper_bound computation for vectorized loop.
702 2016-04-29 Marek Polacek <polacek@redhat.com>
703 Jakub Jelinek <jakub@redhat.com>
706 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
707 TARGET_EXPR_SLOT as a base.
709 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
711 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
712 with 'rCm2' constraints to limit possible immediate size.
713 (*load_zeroextendqisi_update): Likewise.
714 (*load_signextendqisi_update): Likewise.
715 (*loadhi_update): Likewise.
716 (*load_zeroextendhisi_update): Likewise.
717 (*load_signextendhisi_update): Likewise.
718 (*loadsi_update): Likewise.
719 (*loadsf_update): Likewise.
721 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
723 * config/i386/predicates.md (constm1_operand): Fix comparison.
725 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
727 * testsuite/gcc.target/arc/ieee_eq.c: New test.
729 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
731 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
732 remaining SH5 related settings.
733 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
734 shmedia_prepare_call_address): Delete.
735 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
736 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
737 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
738 UNSUPPORTED_SH2A): Remove m5 checks.
739 (sh_divide_strategy_e): Remove SH5 division strategies.
740 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
741 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
743 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
745 * config/s390/s390.c (s390_rtx_costs): Update documentation.
747 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
749 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
750 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
752 * config/s390/vector.md ("mov<mode>"): Likewise.
754 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
756 * config/s390/constraints.md ("U", "W"): Invoke
757 s390_mem_constraint with "ZR" and "ZT".
758 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
759 addresses when using LRA. Accept also short displacements for S
760 and T constraints. Do not check for long displacement target for
762 (s390_mem_constraint): Remove handling of U and W constraints.
763 * config/s390/s390.md (various patterns): Remove the short
764 displacement constraints (Q and R) if a long displacement
765 constraint is present. Add longdisp as required CPU capability.
766 * config/s390/vector.md: Likewise.
767 * config/s390/vx-builtins.md: Likewise.
769 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
772 * reload1.c (reload): Call finish_spills before
773 restarting reload loop. Skip select_reload_regs
774 if update_eliminables_and_spill returns true.
776 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
778 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
779 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
780 (umulhisi3_imm): Update predicates and constraint letters.
781 (umulhisi3_reg): Declare instruction as commutative.
782 * config/arc/constraints.md (J12, J16): New constraints.
783 * config/arc/predicates.md (short_unsigned_const_operand): New
785 (arc_short_operand): Likewise.
786 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
788 2016-04-29 Richard Biener <rguenther@suse.de>
790 PR tree-optimization/13962
791 PR tree-optimization/65686
792 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
793 * tree-ssa-alias.c (ptrs_compare_unequal): New function
794 using PTA to compare pointers.
795 * match.pd: Add pattern for pointer equality compare simplification
796 using ptrs_compare_unequal.
798 2016-04-29 Richard Biener <rguenther@suse.de>
800 * stor-layout.c (layout_type): Do not build a pointer-to-element
803 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
805 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
806 Use SWI mode iterator. Use general_reg_operand predicate.
807 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
808 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
811 2016-04-29 Jakub Jelinek <jakub@redhat.com>
814 * fold-const.c (operand_equal_p): Don't verify hash value equality
816 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
819 2016-04-28 Jakub Jelinek <jakub@redhat.com>
822 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
823 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
824 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
825 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
826 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
828 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
830 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
831 to info. Don't initialize separate fields to 0. Clean up
834 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
836 * config/i386/i386.md (peephole2s for operations with memory inputs):
837 Use SWI mode iterator.
838 (peephole2s for operations with memory outputs): Ditto.
839 Do not check for stack checking probe.
841 (probe_stack): Remove expander.
843 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
844 Andrew Burgess <andrew.burgess@embecosm.com>
846 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
849 2016-04-28 Jason Merrill <jason@redhat.com>
851 * gdbinit.in: Skip line-map.h.
853 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
854 Andrew Burgess <andrew.burgess@embecosm.com>
856 * config/arc/arc.c (arc_conditional_register_usage): Take
857 TARGET_RRQ_CLASS into account.
858 (arc_print_operand): Support printing 'p' and 's' operands.
859 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
861 (TARGET_RRQ_CLASS): Define.
862 (IS_POWEROF2_OR_0_P): Define.
863 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
865 (*tst_movb): New define_insn.
866 (*tst): Avoid recognition if it could prevent '*tst_movb'
867 combination; replace c/CnL with c/Chs alternative.
868 (*tst_bitfield_tst): New define_insn.
869 (*tst_bitfield_asr): New define_insn.
870 (*tst_bitfield): New define_insn.
871 (andsi3_i): Add Rrq variant.
872 (extzv): New define_expand.
873 (insv): New define_expand.
874 (*insv_i): New define_insn.
875 (*movb): New define_insn.
876 (*movb_signed): New define_insn.
877 (*movb_high): New define_insn.
878 (*movb_high_signed): New define_insn.
879 (*movb_high_signed + 1): New define_split pattern.
880 (*mrgb): New define_insn.
881 (*mrgb + 1): New define_peephole2 pattern.
882 (*mrgb + 2): New define_peephole2 pattern.
883 * config/arc/arc.opt (mbitops): New option for nps400, uses
884 TARGET_NPS_BITOPS_DEFAULT.
885 * config/arc/constraints.md (q): Make register class conditional.
886 (Rrq): New register constraint.
887 (Chs): New constraint.
888 (Clo): New constraint.
889 (Chi): New constraint.
890 (Cbf): New constraint.
891 (Cbn): New constraint.
892 (C18): New constraint.
893 (Cbi): New constraint.
895 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
897 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
899 (bitmap_intersection_of_preds): Ditto.
900 (bitmap_union_of_succs): Ditto.
901 (bitmap_union_of_preds): Ditto.
902 * sbitmap.c (do_popcount): Delete.
903 (BITMAP_DEBUGGING): Delete.
904 (sbitmap_verify_popcount): Delete.
905 (sbitmap_alloc): Don't initialize the popcount field.
906 (sbitmap_alloc_with_popcount): Delete.
907 (sbitmap_resize): Don't resize the popcount array.
908 (sbitmap_vector_alloc): Don't initialize the popcount field.
909 (bitmap_copy): Don't copy the popcount array.
910 (bitmap_clear): Don't clear the popcount array.
911 (bitmap_clear): Delete the popcount array handling.
912 (bitmap_ior_and_compl): Delete the popcount assert.
914 (bitmap_and_compl): Ditto.
915 (bitmap_and): Delete the popcount array handling.
918 (bitmap_or_and): Delete the popcount assert.
919 (bitmap_and_or): Ditto.
920 (popcount_table): Delete.
921 (sbitmap_elt_popcount): Delete.
922 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
923 (bitmap_set_bit): Delete the popcount assert.
924 (bitmap_clear_bit): Ditto.
925 (sbitmap_free): Don't free the popcount array.
926 (sbitmap_alloc_with_popcount): Delete declaration.
927 (sbitmap_popcount): Ditto.
929 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
930 Andrew Burgess <andrew.burgess@embecosm.com>
932 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
933 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
934 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
935 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
936 * config/arc/arc.opt (mcmem): New option.
937 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
938 supply length for r/m alternative.
939 (*extendqisi2_ac): Likewise.
940 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
942 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
943 (movhi_insn): Likewise.
944 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
945 (*zero_extendqihi2_i): Add r/Ucm alternative.
946 (*zero_extendqisi2_ac): Likewise.
947 (*zero_extendhisi2_i): Likewise.
948 * config/arc/constraints.md (Uex): New memory constraint.
949 (Ucm): New define_constraint.
950 * config/arc/predicates.md (long_immediate_loadstore_operand):
951 Return 0 for MEM with cmem_address address.
952 (cmem_address_0): New predicates.
953 (cmem_address_1): Likewise.
954 (cmem_address_2): Likewise.
955 (cmem_address): Likewise.
957 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
959 * config/rs6000/rs6000.c (machine_function): Rename
960 insn_chain_scanned_p to spe_insn_chain_scanned_p.
961 (rs6000_stack_info): Adjust.
963 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
964 Andrew Burgess <andrew.burgess@embecosm.com>
966 * config/arc/constraints.md (Usd): Convert to define_constraint.
970 2016-04-28 Jakub Jelinek <jakub@redhat.com>
973 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
974 Add new peephole2 where the first insn is *mov<mode>_or instead of
977 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
979 * tracer.c (bb_seen): Make static.
981 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
983 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
984 support, setup defaults.
985 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
986 * config/arc/arc.c (arc_init): Add NPS400 support.
987 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
988 (TARGET_ARC700): NPS400 is also an ARC700.
989 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
991 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
994 * config/nds32/nds32.md (casesi): Don't access the operands array
997 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
999 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
1000 (or $-1,reg peephole2): Ditto.
1001 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
1003 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
1005 * doc/extend.texi (Common Function Attributes) [optimize]:
1006 Discourage use of the optimize attribute.
1008 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
1010 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
1011 special case builtin.
1012 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1013 ALTIVEC_BUILTIN_VEC_ADDE.
1014 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1015 support for ALTIVEC_BUILTIN_VEC_ADDE.
1016 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1017 for __builtin_vec_adde.
1019 2016-04-28 Jakub Jelinek <jakub@redhat.com>
1021 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
1022 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
1024 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1027 * doc/sourcebuild.texi (Effective-Target Keywords, Other
1028 attributes): Document cilkplus_runtime.
1030 2016-04-28 Martin Jambor <mjambor@suse.cz>
1032 * tree-cfg.c (verify_expr): Verify that local declarations belong to
1033 this function. Call verify_expr on MEM_REFs and bases of other
1036 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1038 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
1039 for WORD_REGISTER_OPERATIONS to runtime check.
1041 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1043 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
1045 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1047 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
1048 big-endian compilation.
1049 * config/arc/arc.md (addf3): Likewise.
1053 2016-04-28 Richard Biener <rguenther@suse.de>
1055 PR tree-optimization/70840
1056 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
1057 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
1058 Mark x * pow(x,c) -> pow(x,c+1) commutative.
1059 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
1061 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1063 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
1064 and explain why in a comment.
1066 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1068 * config/arc/arc.md (cpu_facility): Add fpx variant.
1069 (subdf3): Prohibit use reverse sub when assist operations option
1071 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
1072 instructions only when FPX is enabled.
1073 * testsuite/gcc.target/arc/trsub.c: New test.
1075 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
1077 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
1078 mult_operator when calculating "type" attribute.
1079 (*fop_<mode>_1_i387): Ditto.
1080 (*fop_xf_1_i387): Ditto.
1081 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
1082 Use std::swap to swap operands. Use RTL expressions to generate
1085 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1086 Joern Rennecke <joern.rennecke@embecosm.com>
1088 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
1090 (emit_pic_move): Remove.
1091 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
1092 * config/arc/arc.c (emit_pic_move): Removed.
1093 (TARGET_HAVE_TLS): Define.
1094 (arc_conditional_register_usage): Test for arc_tp_regno.
1095 (arc_print_operand, arc_print_operand_address): Handle TLS
1097 (arc_needs_pcl_p): New function.
1098 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
1099 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
1100 (arc_raw_symbolic_reference_mentioned_p): Likewise.
1101 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
1102 (arc_legitimize_tls_address): Likewise.
1103 (DTPOFF_ZERO_SYM): Define.
1104 (arc_legitimize_pic_address): Make it static, handle TLS cases.
1105 (arc_output_pic_addr_const): Print TLS unspecs.
1106 (prepare_pic_move): New function, replaces emit_pic_move.
1107 (arc_legitimate_constant_p): Handle TLS unspecs.
1108 (arc_legitimate_address_p): Likewise.
1109 (arc_rewrite_small_data_p): Use assert for TLS constants.
1110 (prepare_move_operands): Use prepare_pic_move.
1111 (arc_legitimize_address): Legitimize tls addresses.
1112 (arc_epilogue_uses): Check for arc_tp_regno.
1113 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
1114 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
1116 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
1118 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
1119 %(arc_tls_extra_start_spec).
1120 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
1121 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
1123 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
1124 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
1125 (UNSPEC_TLS_OFF): Add.
1127 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
1128 (get_thread_pointersi): New patterns.
1129 * config/arc/arc.opt (mtp-regno): New option.
1130 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
1131 (move_dest_operand): Likewise.
1132 * configure: Regenerate.
1133 * configure.ac: Add arc*-*-* case to test for tls.
1134 * doc/invoke.texi (ARC options): Document mtp-regno.
1136 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
1138 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
1139 the new ARC HS SIMD instructions.
1140 (arc_preferred_simd_mode): New function.
1141 (arc_autovectorize_vector_sizes): Likewise.
1142 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1143 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1144 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
1145 (arc_init_builtins): Add new SIMD builtin types.
1146 (arc_split_move): Handle 64 bit vector moves.
1147 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
1148 (TARGET_PLUS_QMACW): Define.
1149 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
1150 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
1151 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
1152 (VSUBADD4H): New builtins.
1153 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
1154 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
1156 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
1157 Matthias Klose <doko@debian.org>
1159 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
1161 2016-04-28 Richard Biener <rguenther@suse.de>
1164 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
1167 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
1169 * common/config/sh/sh-common.c: Remove SH5 support.
1170 * config/sh/constraints.md: Likewise.
1171 * config/sh/config/sh/elf.h: Likewise.
1172 * config/sh/linux.h: Likewise.
1173 * config/sh/netbsd-elf.h: Likewise.
1174 * config/sh/predicates.md: Likewise.
1175 * config/sh/sh-c.c: Likewise.
1176 * config/sh/sh-protos.h: Likewise.
1177 * config/sh/sh.c: Likewise.
1178 * config/sh/sh.h: Likewise.
1179 * config/sh/sh.md: Likewise.
1180 * config/sh/sh.opt: Likewise.
1181 * config/sh/sync.md: Likewise.
1182 * config/sh/sh64.h: Delete.
1183 * config/sh/shmedia.h: Likewise.
1184 * config/sh/shmedia.md: Likewise.
1185 * config/sh/sshmedia.h: Likewise.
1186 * config/sh/t-netbsd-sh5-64: Likewise.
1187 * config/sh/t-sh64: Likewise.
1188 * config/sh/ushmedia.h: Likewise.
1190 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
1192 * config/i386/i386.md (sign_extend to memory peephole2s): Use
1193 general_reg_operand instead of register_operand predicate.
1195 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1197 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
1199 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
1201 * match.pd (A - B > A, A + B < A): New transformations.
1203 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
1205 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
1206 which defaults to true. Emit an outer pair of parentheses only if
1207 EMIT_PARENS. When continuing a chain of && or || (or & or |),
1208 don't emit parentheses for the right-hand operand.
1210 2016-04-27 Jeff Law <law@redhat.com>
1212 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
1214 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1216 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
1217 (altivec_lvx_<mode>_internal): Document.
1218 (altivec_lvx_<mode>_2op): New define_insn.
1219 (altivec_lvx_<mode>_1op): Likewise.
1220 (altivec_lvx_<mode>_2op_si): Likewise.
1221 (altivec_lvx_<mode>_1op_si): Likewise.
1222 (altivec_stvx_<mode>): Remove.
1223 (altivec_stvx_<mode>_internal): Document.
1224 (altivec_stvx_<mode>_2op): New define_insn.
1225 (altivec_stvx_<mode>_1op): Likewise.
1226 (altivec_stvx_<mode>_2op_si): Likewise.
1227 (altivec_stvx_<mode>_1op_si): Likewise.
1228 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1229 Expand vec_ld and vec_st during parsing.
1230 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
1232 (altivec_expand_stvx_be): Likewise.
1233 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
1234 address-masking behavior in RTL.
1235 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
1236 address-masking behavior in RTL.
1237 (altivec_expand_builtin): Change builtin code arguments for calls
1238 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
1239 (insn_is_swappable_p): Avoid incorrect swap optimization in the
1240 presence of lvx/stvx patterns.
1241 (alignment_with_canonical_addr): New function.
1242 (alignment_mask): Likewise.
1243 (find_alignment_op): Likewise.
1244 (recombine_lvx_pattern): Likewise.
1245 (recombine_stvx_pattern): Likewise.
1246 (recombine_lvx_stvx_patterns): Likewise.
1247 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
1248 stvx patterns from expand.
1249 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
1251 (vector_altivec_store_<mode>): Likewise.
1253 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
1255 * config/aarch64/aarch64.md
1256 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
1257 remove the "fp" attributes.
1258 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
1259 add the "simd" attributes.
1260 (*movdf_aarch64): Likewise.
1261 (*movtf_aarch64): Remove the "fp" attributes.
1262 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
1263 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
1265 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1267 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
1268 rtx to rtx_code_label *.
1269 * rtl.h (maybe_set_first_label_num): Likewise.
1271 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1273 * df-core.c (df_add_problem): Make the problem param be const.
1274 (df_remove_problem): Make local "problem" be const.
1275 * df-problems.c (problem_RD): Make const.
1276 (problem_LR): Likewise.
1277 (problem_LIVE): Likewise.
1278 (problem_MIR): Likewise.
1279 (problem_CHAIN): Likewise.
1280 (problem_WORD_LR): Likewise.
1281 (problem_NOTE): Likewise.
1282 (problem_MD): Likewise.
1283 * df-scan.c (problem_SCAN): Likewise.
1284 * df.h (struct df_problem): Make field "dependent_problem" be
1286 (struct dataflow): Likewise for field "problem".
1287 (df_add_problem): Make param const.
1289 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1291 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
1292 inter-unit moves to/from vector registers are enabled. Do not disable
1295 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1297 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
1298 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
1300 (enum df_problem_id): ...this new enum.
1301 (struct df_problem): Convert field "id" from "int" to
1304 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1306 * rtl.def: Update comment for "things in the instruction chain" to
1307 reflect the removal of the leading "i" field for INSN_UID in
1308 r210360. Fix bogus apostrophe.
1310 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1312 * config/i386/i386.md
1313 (lea arith with mem operand + setcc peephole2): Set operator mode.
1315 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
1318 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
1319 (dimode_scalar_to_vector_candidate_p): This.
1320 (timode_scalar_to_vector_candidate_p): New function.
1321 (scalar_to_vector_candidate_p): Likewise.
1322 (timode_check_non_convertible_regs): Likewise.
1323 (timode_remove_non_convertible_regs): Likewise.
1324 (remove_non_convertible_regs): Likewise.
1325 (remove_non_convertible_regs): Renamed to ...
1326 (dimode_remove_non_convertible_regs): This.
1327 (scalar_chain::~scalar_chain): Make it virtual.
1328 (scalar_chain::compute_convert_gain): Make it pure virtual.
1329 (scalar_chain::mark_dual_mode_def): Likewise.
1330 (scalar_chain::convert_insn): Likewise.
1331 (scalar_chain::convert_registers): Likewise.
1332 (scalar_chain::add_to_queue): Make it protected.
1333 (scalar_chain::emit_conversion_insns): Likewise.
1334 (scalar_chain::replace_with_subreg): Likewise.
1335 (scalar_chain::replace_with_subreg_in_insn): Likewise.
1336 (scalar_chain::convert_op): Likewise.
1337 (scalar_chain::convert_reg): Likewise.
1338 (scalar_chain::make_vector_copies): Likewise.
1339 (scalar_chain::convert_registers): New pure virtual function.
1340 (class dimode_scalar_chain): New class.
1341 (class timode_scalar_chain): Likewise.
1342 (scalar_chain::mark_dual_mode_def): Renamed to ...
1343 (dimode_scalar_chain::mark_dual_mode_def): This.
1344 (timode_scalar_chain::mark_dual_mode_def): New function.
1345 (timode_scalar_chain::convert_insn): Likewise.
1346 (dimode_scalar_chain::convert_registers): Likewise.
1347 (scalar_chain::compute_convert_gain): Renamed to ...
1348 (dimode_scalar_chain::compute_convert_gain): This.
1349 (scalar_chain::replace_with_subreg): Renamed to ...
1350 (dimode_scalar_chain::replace_with_subreg): This.
1351 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1352 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1353 (scalar_chain::make_vector_copies): Renamed to ...
1354 (dimode_scalar_chain::make_vector_copies): This.
1355 (scalar_chain::convert_reg): Renamed to ...
1356 (dimode_scalar_chain::convert_reg ): This.
1357 (scalar_chain::convert_op): Renamed to ...
1358 (dimode_scalar_chain::convert_op): This.
1359 (scalar_chain::convert_insn): Renamed to ...
1360 (dimode_scalar_chain::convert_insn): This.
1361 (scalar_chain::convert): Call convert_registers.
1362 (convert_scalars_to_vector): Change to scalar_chain pointer to
1363 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1364 in 32-bit mode. Delete scalar_chain pointer. Call
1365 free_dominance_info in 64-bit mode.
1366 (pass_stv::gate): Remove TARGET_64BIT check.
1367 (ix86_option_override): Put the 64-bit STV pass before the CSE
1370 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1372 * dwarf2out.h (struct dw_loc_descr_node): Remove the
1373 dw_loc_frame_offset field.
1374 * dwarf2out.c (new_loc_descr): Likewise.
1375 (resolve_args_picking_1): Turn the VISITED hash set into a
1376 FRAME_OFFSET hash map. Use it to associate a frame offset to
1377 visited nodes. Remove uses of the CHECKING_P macro.
1378 (resolve_args_picking): Update call to resolve_args_picking_1.
1380 2016-04-27 Martin Liska <mliska@suse.cz>
1382 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1383 (free_loop_data): Release vuses of groups.
1385 2016-04-27 Bin Cheng <bin.cheng@arm.com>
1387 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1388 instead of redundant use_id and boolean have_use_for.
1389 (struct iv_use): Change sub_id into group_id. Remove field next.
1390 Move fields: related_cands, n_map_members, cost_map and selected
1392 (struct iv_group): ... here. New structure.
1393 (struct iv_common_cand): Use structure declaration directly.
1394 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1395 (MAX_CONSIDERED_USES): Rename macro to ...
1396 (MAX_CONSIDERED_GROUPS): ... here.
1397 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1398 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1399 (dump_uses): Rename to ...
1400 (dump_groups): ... here. Update all uses.
1401 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1402 (find_induction_variables): Refactor format of dump information.
1403 (record_sub_use): Delete.
1404 (record_use): Update all uses.
1405 (record_group): New function.
1406 (record_group_use, find_interesting_uses_op): Call above functions.
1408 (find_interesting_uses_cond): Ditto.
1409 (group_compare_offset): New function.
1410 (split_all_small_groups): Rename to ...
1411 (split_small_address_groups_p): ... here. Update all uses.
1412 (split_address_groups): Update all uses.
1413 (find_interesting_uses): Refactor format of dump information.
1414 (add_candidate_1): Update all uses. Remove redundant check on iv,
1416 (add_candidate, record_common_cand): Remove redundant assert.
1417 (add_iv_candidate_for_biv): Update use.
1418 (add_iv_candidate_derived_from_uses): Update all uses.
1419 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1420 (alloc_use_cost_map): Ditto.
1421 (set_use_iv_cost, get_use_iv_cost): Rename to ...
1422 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
1423 (determine_use_iv_cost_generic): Ditto.
1424 (determine_group_iv_cost_generic): Ditto.
1425 (determine_use_iv_cost_address): Ditto.
1426 (determine_group_iv_cost_address): Ditto.
1427 (determine_use_iv_cost_condition): Ditto.
1428 (determine_group_iv_cost_cond): Ditto.
1429 (determine_use_iv_cost): Ditto.
1430 (determine_group_iv_cost): Ditto.
1431 (set_autoinc_for_original_candidates): Update all uses.
1432 (find_iv_candidates): Update all uses. Refactor dump information.
1433 (determine_use_iv_costs): Ditto.
1434 (determine_iv_costs): Ditto.
1435 (iv_ca_cand_for_use): Rename to ...
1436 (iv_ca_cand_for_group): ... here. Update all uses.
1437 (iv_ca_add_use, iv_ca_add_group): Ditto.
1438 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1439 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1440 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1441 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1442 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1443 (create_new_iv, adjust_iv_update_pos): Ditto.
1444 (rewrite_use_address): Delete.
1445 (rewrite_use_address_1): Rename to ...
1446 (rewrite_use_address): ... here.
1447 (rewrite_use_compare): Update all uses.
1448 (rewrite_use): Delete.
1449 (rewrite_uses): Rename to ...
1450 (rewrite_groups): ... here. Update all uses.
1451 (remove_unused_ivs, free_loop_data): Update all uses.
1452 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1454 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1456 * rtlanal.c (nonzero_bits1): Convert preprocessor check
1457 for WORD_REGISTER_OPERATIONS to runtime check.
1459 2016-04-27 Richard Biener <rguenther@suse.de>
1462 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1463 aggregate_value_p to determine if a function result is
1464 returned by reference.
1465 (ipa_pta_execute): Functions having their address taken are
1466 not automatically nonlocal.
1468 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1471 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1472 * fold-const.c (operand_equal_p): If flag_checking and
1473 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1474 and if it returns non-zero, assert iterative_hash_expr on both
1477 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1479 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1481 2016-04-27 Nick Clifton <nickc@redhat.com>
1484 * varasm.c (merge_weak): Generate an error if an attempt is made
1485 to convert a non-weak static function into a weak, public function.
1487 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1489 * params.def (MAX_PARTITION_SIZE): New param.
1490 * doc/invoke.texi: Document lto-max-partition.
1492 2016-04-27 Richard Biener <rguenther@suse.de>
1495 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1496 function cummulating used_from_other_partition, externally_visible
1497 and force_output from aliases.
1498 (refered_from_nonlocal_var): Likewise.
1499 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1500 node flags properly.
1502 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1504 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1505 (-Wmemset-elt-size): New item.
1507 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
1510 * stor-layout.h (internal_reference_types): Delete.
1511 * stor-layout.c (reference_types_internal): Likewise.
1512 (internal_reference_types): Likewise.
1513 (layout_type) <REFERENCE_TYPE>: Adjust.
1515 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1518 * tree.h (inchash::add_expr): Add FLAGS argument.
1519 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
1520 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
1521 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1522 Formatting fix. Adjust recursive calls. For tcc_comparison,
1523 if swap_tree_comparison (code) is smaller than code, hash that
1524 and arguments in the other order. Hash CONVERT_EXPR the same
1525 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1526 of ADDR_EXPR of decl as the decl itself. Add or remove
1527 OEP_ADDRESS_OF from recursive flags as needed. For
1528 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1529 operands commutatively and only the third one normally.
1530 For internal CALL_EXPR hash in CALL_EXPR_IFN.
1532 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1534 * config/rtems.h (LIB_SPEC): Add -latomic.
1536 2016-04-27 Joel Sherrill <joel@rtems.org>
1538 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1539 xilink.ld and flags not relevant to RTEMS.
1541 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1543 * toplev.c (backend_init_target): Avoid calling init_reload when using
1546 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1548 * reorg.c (try_merge_delay_insns): Declare i and j inside the
1549 for loops rather than one for the whole function.
1551 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1553 * match.pd (X + CST CMP X): New transformation.
1555 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1557 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1558 * fold-const.c (fold_binary_loc): Remove 2 transformations
1559 superseded by match.pd.
1560 * match.pd (x+x -> x*2): Generalize to integers.
1562 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
1564 * config/i386/i386.md (operation on memory peephole): Duplicate an
1565 existing peephole and adapt it to match lea rather than an operation
1568 PR rtl-optimization/57193
1569 * opts.c (default_options_table): Add OPT_frename_registers at -O2
1571 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1573 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1575 * tree-if-conv.c (any_pred_load_store): New static variable.
1576 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
1577 any_pred_load_store instead of and_mask_load_store.
1578 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1579 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1580 (combine_blocks, tree_if_conversion): Ditto.
1582 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1584 PR tree-optimization/70771
1585 PR tree-optimization/70775
1586 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1587 virtual PHI nodes. Delete parameter.
1588 (if_convertible_loop_p_1): Delete argument to above function.
1589 (predicate_all_scalar_phis): Delete code handling single-argument
1591 (tree_if_conversion): Mark and update virtual SSA.
1593 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1596 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1597 (x86_elf_aligned_common): Rename to ...
1598 (x86_elf_aligned_decl_common): ... this.
1599 Add decl arg. Switch to .lbss for largecomm object. Use
1600 LARGECOMM_SECTION_ASM_OP.
1601 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1603 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1604 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1606 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1607 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1609 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1612 * config/i386/i386.c (SECTION_LARGE): Define.
1613 (x86_64_elf_select_section): Set it for large data/bss sections.
1614 Only clear SECTION_WRITE for .lrodata.
1615 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1617 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1618 * varasm.c (default_elf_asm_named_section): Grow flagchars.
1619 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1621 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1622 * doc/tm.texi: Regenerate.
1624 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1627 * configure.ac (--enable-checking): Document extra flag, for
1628 non-release builds default to --enable-checking=yes,extra.
1629 If misc checking and extra checking, define CHECKING_P to 2 instead
1631 * common.opt (fchecking=): Add.
1632 * doc/invoke.texi (-fchecking=): Document.
1633 * doc/install.texi: Document --enable-checking changes.
1634 * configure: Regenerated.
1635 * config.in: Regenerated.
1637 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1639 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1640 attribute instead of which_alternative.
1641 * config/i386/sse.md (*mov<mode>_internal): Ditto.
1642 Use EXT_REX_SSE_REG_P where appropriate.
1644 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1646 * config/i386/predicates.md (const0_operand): Do not match
1647 const_wide_int code.
1648 (const1_operand): Ditto.
1650 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1652 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1653 for SSE constm1 operands and TARGET_AVX512VL.
1654 (*movti_internal): Ditto.
1655 (*mov<mode>_or): Use constm1_operand predicate.
1656 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1657 for SSE vector_all_ones operands and TARGET_AVX512VL.
1658 * config/i386/predicates.md (constm1_operand): New predicate.
1659 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1660 emission of constant -1 load.
1662 2016-04-25 Jason Merrill <jason@redhat.com>
1664 * gdbinit.in: Skip is-a.h.
1666 * attribs.c (register_scoped_attributes): Fix logic.
1667 * attribs.h: Declare register_scoped_attributes.
1669 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1671 * config/rs6000/rs6000-builtin.def: Correct pasto error for
1672 stxvd2x and stxvw4x built-in functions.
1674 2016-04-25 DJ Delorie <dj@redhat.com>
1676 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1677 (ashrhi3): Likewise.
1678 (lshrhi3): Likewise.
1680 2016-04-25 Richard Biener <rguenther@suse.de>
1682 PR tree-optimization/70780
1683 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1685 (compute_antic): Mark blocks with abnormal preds as visited as
1686 they have a final empty antic-in solution already.
1688 2016-04-25 Michael Collison <michael.collison@linaro.org>
1690 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1692 2016-04-25 Michael Collison <michael.collison@linaro.org>
1694 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1695 mode is VQI to improve mixed mode vectorization.
1696 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1697 define_insn to match low half of signed vaddw.
1698 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1699 define_insn to match high half of signed vaddw.
1700 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1701 define_insn to match low half of unsigned vaddw.
1702 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1703 define_insn to match high half of unsigned vaddw.
1704 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1705 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1706 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1708 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1709 * config/arm/predicates.md (vect_par_constant_high): Support
1710 big endian and simplify by calling
1711 arm_simd_check_vect_par_cnst_half
1712 (vect_par_constant_low): Likewise.
1714 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1716 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1717 predicate for operand 2.
1719 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
1720 H.J. Lu <hongjiu.lu@intel.com>
1722 * config/i386/i386-protos.h (standard_sse_constant_p): Add
1723 machine_mode argument.
1724 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1725 constm1_rtx operands. For VOIDmode constants, get mode from
1726 pred_mode. Check mode size if the mode is supported by ABI.
1727 (standard_sse_constant_opcode): Do not use standard_constant_p.
1728 Strictly check ABI support for all-ones operands.
1729 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1730 immediates. Update calls to standard_sse_constant_p.
1731 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1732 (ix86_rtx_costs): Ditto.
1733 * config/i386/i386.md (*movxi_internal_avx512f): Use
1734 nonimmediate_or_sse_const_operand instead of vector_move_operand.
1735 Use (v,BC) alternative instead of (v,C). Use register_operand
1736 checks instead of MEM_P.
1737 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1738 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
1739 isa attribute. Use register_operand checks instead of MEM_P.
1740 (*movti_internal): Use nonimmediate_or_sse_const_operand for
1741 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
1742 alternative and corresponding sse2 isa attribute.
1743 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1744 to standard_sse_constant_p.
1745 (FP constant splitters): Ditto.
1746 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1748 * config/i386/predicates.md (constm1_operand): Remove.
1749 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1750 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1751 vector_all_ones_operand instead of constm1_operand.
1753 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1755 * print-rtl.c (print_rtx_insn_vec): New function.
1756 * print-rtl.h: New prototype.
1757 * store-motion.c (struct st_expr): Make avail_stores a vector.
1758 (st_expr_entry): Adjust.
1759 (free_st_expr_entry): Likewise.
1760 (print_store_motion_mems): Likewise.
1761 (find_moveable_store): Likewise.
1762 (compute_store_table): Likewise.
1763 (delete_store): Likewise.
1764 (build_store_vectors): Likewise.
1766 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1768 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1770 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1772 * vec.h (vec_safe_contains): New function.
1773 (vec::contains): Likewise.
1774 (vec::begin): Likewise.
1775 (vec::end): Likewise.
1777 2016-04-23 Jakub Jelinek <jakub@redhat.com>
1780 * cfgexpand.c (expand_stack_vars): Fix typo.
1782 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1784 * system.h (list, map, set, vector): Include conditionally.
1785 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1786 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1787 * ipa-icf.c (INCLUDE_LIST): Define.
1788 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1789 * config/sh/sh.c (INCLUDE_VECTOR): Define.
1790 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1791 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1792 * cp/logic.cc (INCLUDE_LIST): Define.
1793 * fortran/trans-common.c (INCLUDE_MAP): Define.
1795 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1797 * auto-profile.c: Remove <string.h> include.
1798 * ipa-icf-gimple.c: Remove <list> include.
1799 * diagnostic.c: Remove <new> include.
1800 * genmatch.c: Likewise.
1801 * pretty-print.c: Likewise.
1802 * toplev.c: Likewise
1803 * c/c-objc-common.c: Likewise.
1804 * cp/error.c: Likewise.
1805 * fortran/error.c: Likewise.
1807 2016-04-22 Richard Biener <rguenther@suse.de>
1809 * lto-streamer-in.c (input_ssa_names): Do not allocate
1810 GIMPLE_NOP for all SSA names.
1811 * lto-streamer-out.c (output_ssa_names): Do not output
1812 SSA names that should have been released.
1814 2016-04-22 Richard Biener <rguenther@suse.de>
1816 PR tree-optimization/70740
1817 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1820 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1823 * config/i386/predicates.md (call_insn_operand): Replace
1824 sibcall_memory_operand with memory_operand.
1826 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
1828 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1829 has_single_use() tests.
1830 (register_edge_assert_for_1): Likewise.
1831 (find_assert_locations_1): Check the liveness bitmap instead of
1832 checking has_single_use().
1834 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
1837 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1838 Extract AVX-512BW constraint from AVX.
1840 2016-04-21 Richard Biener <rguenther@suse.de>
1842 PR tree-optimization/70725
1843 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1844 for phi_convertible_by_degenerating_args.
1845 (predicate_all_scalar_phis): Handle single-argument PHIs.
1847 2016-04-21 Richard Biener <rguenther@suse.de>
1850 * fold-const.c (fold_comparison): Return properly typed
1853 2016-04-21 Bin Cheng <bin.cheng@arm.com>
1855 PR tree-optimization/70715
1856 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1857 after expanding BASE using expand_simple_operations.
1859 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1861 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1862 New transformations.
1864 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1866 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1868 2016-04-20 Jan Hubicka <jh@suse.cz>
1870 * ipa-inline.c (can_inline_edge_p): Pass caller info to
1871 ultiimate_alias_target.
1872 (update_callee_keys): Likewise.
1873 (lookup_recursive_calls): Likewise.
1874 (speculation_useful_p): Likewise.
1876 2016-04-20 Jan Hubicka <jh@suse.cz>
1879 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1880 (set_nothrow_flag_1): ... this; handle interposition correctly;
1881 recurse on aliases and thunks.
1882 (cgraph_node::set_nothrow_flag): New.
1883 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1884 functions compiled with non-call exceptions that binds to current
1886 (propagate_nothrow): Be safe WRT interposition.
1887 * cgraph.h (set_nothrow_flag): Update prototype.
1889 2016-04-18 Jan Hubicka <jh@suse.cz>
1891 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1892 max_loop_iterations_int.
1893 (tree_unswitch_outer_loop): Likewise.
1895 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1897 PR tree-optimization/69489
1898 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1899 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1900 Revise dump message.
1901 (if_convertible_bb_p): Remove check on edge count of basic block's
1904 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1906 PR tree-optimization/56625
1907 PR tree-optimization/69489
1908 * tree-data-ref.h (DR_INNERMOST): New macro.
1909 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1910 hashing struct innermost_loop_behavior.
1911 (ref_DR_map): Remove.
1912 (innermost_DR_map): New map.
1913 (baseref_DR_map): Revise comment.
1914 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1915 to innermost_DR_map accroding to its innermost loop behavior.
1916 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1917 to its innermost loop behavior.
1918 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1919 Add initialization for innermost_DR_map. Record memory reference
1920 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1921 have innermost loop behavior.
1922 (if_convertible_loop_p): Remove release for ref_DR_map. Release
1925 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
1927 * config/i386/i386.md (*lea<mode>_general_1): Rename from
1928 *lea_general_1. Use explicit SWI12 mode interator.
1929 (*lea<mode>_general_2): Rename from *lea_general_2.
1930 Use explicit SWI12 mode interator.
1931 (*lea<mode>_general_3): Rename from *lea_general_3.
1932 Use explicit SWI12 mode interator.
1933 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1934 Use explicit SWI12 mode interator.
1935 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1936 Use explicit SWI48 mode interator.
1938 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1940 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1941 Short-cut unaligned load and store cases. Handle all integer
1943 (ix86_expand_vector_move_misalign): Short-cut unaligned load
1944 and store cases. Call ix86_avx256_split_vector_move_misalign
1945 directly without checking mode class.
1947 2016-04-20 Andrew Pinski <apinski@cavium.com>
1948 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1951 * config/aarch64/aarch64.md (sibcall): Force call
1952 address to be DImode for ILP32.
1953 (sibcall_value): Likewise.
1955 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1957 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1959 2016-04-20 Richard Biener <rguenther@suse.de>
1961 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1962 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1963 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1964 (maybe_push_res_to_seq): Adjust.
1965 * gimple-fold.c (maybe_build_generic_op): Likewise.
1967 2016-04-20 Marek Polacek <polacek@redhat.com>
1969 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1972 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
1974 * config/i386/sse.md (vec_unpacks_lo_hi): Always
1975 use kmovw to support AVX512F target.
1977 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1979 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1981 2016-04-20 Marek Polacek <polacek@redhat.com>
1983 PR tree-optimization/70725
1984 * tree-if-conv.c (is_false_predicate): New function.
1985 (predicate_mem_writes): Use it.
1987 2016-04-20 Richard Biener <rguenther@suse.de>
1989 PR tree-optimization/70726
1990 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1991 shift amounts from a pattern stmt operand.
1993 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1996 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1997 stack_restore_from_fpr pattern when restoring r15.
1998 (s390_optimize_prologue): Strip away the memory barrier in the
1999 parallel when trying to get rid of restore insns.
2000 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
2001 definition for loading the stack pointer from an FPR. Compared to
2002 the normal move insn this pattern includes a full memory barrier.
2004 2016-04-19 Jakub Jelinek <jakub@redhat.com>
2007 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
2008 implicitly linear or lastprivate iterator on the outer context.
2010 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
2012 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
2014 * config/i386/i386.md (ssememalign): Removed.
2015 * config/i386/sse.md: Remove ssememalign attribute from patterns.
2017 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
2020 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
2021 const short * to __builtin_ia32_loaddquhi512_mask.
2022 (_mm512_maskz_loadu_epi16): Likewise.
2023 (_mm512_mask_storeu_epi16): Pass short * to
2024 __builtin_ia32_storedquhi512_mask.
2025 (_mm512_mask_loadu_epi8): Pass const char * to
2026 __builtin_ia32_loaddquqi512_mask.
2027 (_mm512_maskz_loadu_epi8): Likewise.
2028 (_mm512_mask_storeu_epi8): Pass char * to
2029 __builtin_ia32_storedquqi512_mask.
2030 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
2031 const double * to __builtin_ia32_loadupd512_mask.
2032 (_mm512_mask_loadu_pd): Likewise.
2033 (_mm512_maskz_loadu_pd): Likewise.
2034 (_mm512_storeu_pd): Pass double * to
2035 __builtin_ia32_storeupd512_mask.
2036 (_mm512_mask_storeu_pd): Likewise.
2037 (_mm512_loadu_ps): Pass const float * to
2038 __builtin_ia32_loadups512_mask.
2039 (_mm512_mask_loadu_ps): Likewise.
2040 (_mm512_maskz_loadu_ps): Likewise.
2041 (_mm512_storeu_ps): Pass float * to
2042 __builtin_ia32_storeups512_mask.
2043 (_mm512_mask_storeu_ps): Likewise.
2044 (_mm512_mask_loadu_epi64): Pass const long long * to
2045 __builtin_ia32_loaddqudi512_mask.
2046 (_mm512_maskz_loadu_epi64): Likewise.
2047 (_mm512_mask_storeu_epi64): Pass long long *
2048 to __builtin_ia32_storedqudi512_mask.
2049 (_mm512_loadu_si512): Pass const int * to
2050 __builtin_ia32_loaddqusi512_mask.
2051 (_mm512_mask_loadu_epi32): Likewise.
2052 (_mm512_maskz_loadu_epi32): Likewise.
2053 (_mm512_storeu_si512): Pass int * to
2054 __builtin_ia32_storedqusi512_mask.
2055 (_mm512_mask_storeu_epi32): Likewise.
2056 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
2057 char * to __builtin_ia32_storedquqi256_mask.
2058 (_mm_mask_storeu_epi8): Likewise.
2059 (_mm256_mask_loadu_epi16): Pass const short * to
2060 __builtin_ia32_loaddquhi256_mask.
2061 (_mm256_maskz_loadu_epi16): Likewise.
2062 (_mm_mask_loadu_epi16): Pass const short * to
2063 __builtin_ia32_loaddquhi128_mask.
2064 (_mm_maskz_loadu_epi16): Likewise.
2065 (_mm256_mask_loadu_epi8): Pass const char * to
2066 __builtin_ia32_loaddquqi256_mask.
2067 (_mm256_maskz_loadu_epi8): Likewise.
2068 (_mm_mask_loadu_epi8): Pass const char * to
2069 __builtin_ia32_loaddquqi128_mask.
2070 (_mm_maskz_loadu_epi8): Likewise.
2071 (_mm256_mask_storeu_epi16): Pass short * to.
2072 __builtin_ia32_storedquhi256_mask.
2073 (_mm_mask_storeu_epi16): Pass short * to.
2074 __builtin_ia32_storedquhi128_mask.
2075 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
2076 const double * to __builtin_ia32_loadupd256_mask.
2077 (_mm256_maskz_loadu_pd): Likewise.
2078 (_mm_mask_loadu_pd): Pass onst double * to
2079 __builtin_ia32_loadupd128_mask.
2080 (_mm_maskz_loadu_pd): Likewise.
2081 (_mm256_mask_storeu_pd): Pass double * to
2082 __builtin_ia32_storeupd256_mask.
2083 (_mm_mask_storeu_pd): Pass double * to
2084 __builtin_ia32_storeupd128_mask.
2085 (_mm256_mask_loadu_ps): Pass const float * to
2086 __builtin_ia32_loadups256_mask.
2087 (_mm256_maskz_loadu_ps): Likewise.
2088 (_mm_mask_loadu_ps): Pass const float * to
2089 __builtin_ia32_loadups128_mask.
2090 (_mm_maskz_loadu_ps): Likewise.
2091 (_mm256_mask_storeu_ps): Pass float * to
2092 __builtin_ia32_storeups256_mask.
2093 (_mm_mask_storeu_ps): ass float * to
2094 __builtin_ia32_storeups128_mask.
2095 (_mm256_mask_loadu_epi64): Pass const long long * to
2096 __builtin_ia32_loaddqudi256_mask.
2097 (_mm256_maskz_loadu_epi64): Likewise.
2098 (_mm_mask_loadu_epi64): Pass const long long * to
2099 __builtin_ia32_loaddqudi128_mask.
2100 (_mm_maskz_loadu_epi64): Likewise.
2101 (_mm256_mask_storeu_epi64): Pass long long * to
2102 __builtin_ia32_storedqudi256_mask.
2103 (_mm_mask_storeu_epi64): Pass long long * to
2104 __builtin_ia32_storedqudi128_mask.
2105 (_mm256_mask_loadu_epi32): Pass const int * to
2106 __builtin_ia32_loaddqusi256_mask.
2107 (_mm256_maskz_loadu_epi32): Likewise.
2108 (_mm_mask_loadu_epi32): Pass const int * to
2109 __builtin_ia32_loaddqusi128_mask.
2110 (_mm_maskz_loadu_epi32): Likewise.
2111 (_mm256_mask_storeu_epi32): Pass int * to
2112 __builtin_ia32_storedqusi256_mask.
2113 (_mm_mask_storeu_epi32): Pass int * to
2114 __builtin_ia32_storedqusi128_mask.
2115 * config/i386/i386-builtin-types.def (PCSHORT): New.
2117 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
2118 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
2119 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
2120 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
2121 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
2122 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
2123 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
2124 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
2125 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
2126 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
2127 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
2128 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
2129 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
2130 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
2131 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
2132 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
2133 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
2134 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
2135 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
2136 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
2137 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
2138 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
2139 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
2140 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
2141 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
2142 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
2143 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
2144 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
2145 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
2146 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
2147 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
2148 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
2149 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
2150 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
2151 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
2152 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
2153 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
2154 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
2155 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
2156 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
2157 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
2158 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
2159 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
2160 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
2161 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
2162 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
2163 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
2164 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
2165 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
2167 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
2168 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
2170 (ix86_expand_vector_move_misalign): Likewise.
2171 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
2172 to scalar function prototype for unaligned load/store builtins.
2173 (ix86_expand_special_args_builtin): Updated.
2174 * config/i386/sse.md (UNSPEC_LOADU): Removed.
2175 (UNSPEC_STOREU): Likewise.
2176 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
2177 (VI_ULOADSTORE_F_AVX512VL): Likewise.
2178 (ssescalarsize): Handle V4TI, V2TI and V1TI.
2179 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2180 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2181 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
2182 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
2183 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
2184 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
2185 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
2186 (<avx512>_storedqu<mode>_mask): Likewise.
2187 (*sse4_2_pcmpestr_unaligned): Likewise.
2188 (*sse4_2_pcmpistr_unaligned): Likewise.
2189 (*mov<mode>_internal): Renamed to ...
2190 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
2191 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
2192 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
2193 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
2195 2016-04-19 Richard Biener <rguenther@suse.de>
2197 PR tree-optimization/70171
2198 * tree-ssa-phiprop.c: Include stor-layout.h.
2199 (phiprop_insert_phi): Handle the aggregate copy case.
2200 (propagate_with_phi): Likewise.
2202 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
2204 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
2205 instead of simplify_gen_subreg (... , 0).
2206 (ix86_delegitimize_address): Ditto.
2207 (ix86_split_divmod): Ditto.
2208 (ix86_split_copysign_const): Ditto.
2209 (ix86_split_copysign_var): Ditto.
2210 (ix86_expand_args_builtin): Ditto.
2211 (ix86_expand_round_builtin): Ditto.
2212 (ix86_expand_special_args_builtin): Ditto.
2213 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
2214 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
2215 (udivmodqi4): Ditto.
2216 (absneg splitters): Ditto.
2217 (*jcc_bt<mode>_1): Ditto.
2219 2016-04-19 Richard Biener <rguenther@suse.de>
2221 PR tree-optimization/70724
2222 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
2223 restoring out from ...
2224 (free_scc_vn): ... here.
2225 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
2226 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
2228 (pass_fre::execute): Restore SSA info.
2230 2016-04-19 Richard Biener <rguenther@suse.de>
2232 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
2233 * gimple-walk.c (walk_gimple_op): Initialize it.
2234 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
2235 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
2236 remapping SSA names of defs.
2237 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
2240 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
2243 * lra-constraints.c (equiv_substition_p): New.
2244 (process_alt_operands): Use it.
2245 (swap_operands): Swap it.
2246 (curr_insn_transform): Update it.
2248 2016-04-18 Michael Matz <matz@suse.de>
2250 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
2251 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
2252 * tree-core.h (tree_type_common.align): Use bit-field.
2253 (tree_type_common.spare): New.
2254 (tree_decl_common.off_align): Make smaller.
2255 (tree_decl_common.align): Use bit-field.
2257 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
2258 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
2259 (scan_sharing_clauses): Ditto.
2260 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2261 (omp_finish_file): Ditto.
2262 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
2263 (layout_decl): Ditto.
2264 (relayout_decl): Ditto.
2265 (finalize_record_size): Use SET_TYPE_ALIGN.
2266 (finalize_type_size): Ditto.
2267 (finish_builtin_struct): Ditto.
2268 (layout_type): Ditto.
2269 (initialize_sizetypes): Ditto.
2270 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
2271 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
2272 (lookup_field_for_decl): Use SET_DECL_ALIGN.
2273 (get_chain_field): Ditto.
2274 (get_trampoline_type): Ditto.
2275 (get_nl_goto_field): Ditto.
2276 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2278 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
2279 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
2280 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2281 (build_qualified_type): Use SET_TYPE_ALIGN.
2282 (build_aligned_type, build_range_type_1): Ditto.
2283 (build_atomic_base): Ditto.
2284 (build_common_tree_nodes): Ditto.
2285 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
2286 (expand_one_stack_var_at): Ditto.
2287 * coverage.c (build_var): Use SET_DECL_ALIGN.
2288 * except.c (init_eh): Ditto.
2289 * function.c (assign_parm_setup_block): Ditto.
2290 * symtab.c (increase_alignment_1): Ditto.
2291 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
2292 * tree-vect-stmts.c (ensure_base_align): Ditto.
2293 * varasm.c (align_variable): Ditto.
2294 (assemble_variable): Ditto.
2295 (build_constant_desc): Ditto.
2296 (output_constant_def_contents): Ditto.
2298 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
2299 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
2300 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
2301 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
2302 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
2304 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
2307 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
2308 replace %vmovsd with "%vmovq".
2309 (vec_concatv2df): Likewise.
2311 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
2313 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
2314 (*vec_extractv2si_0): Ditto.
2315 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
2316 (zero_extended_scalar_load_operand splitters): Ditto.
2317 (vec_extract splitters): Ditto.
2318 (*vec_extractv4si_0_zext): Ditto.
2319 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
2321 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
2322 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
2323 (*sse4_1_extractps): Use lowpart_subreg.
2325 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2327 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2329 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2330 Mention Solaris 11 packaging changes.
2331 Update gas and gld requirements.
2332 Remove reference to pre-Solaris 10 bug.
2333 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2335 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2338 2016-04-17 Jan Hubicka <jh@suse.cz>
2340 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2341 max_loop_iterations_int.
2343 2016-04-18 Richard Biener <rguenther@suse.de>
2345 PR tree-optimization/43434
2346 * tree-ssa-structalias.c (struct vls_data): New.
2347 (visit_loadstore): Handle all pointer-based accesses.
2348 (compute_dependence_clique): Compute a bitmap of restrict tags
2349 assigned bases and pass it to visit_loadstore.
2351 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
2354 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2355 armv8.1-a and armv8.1-a+crc.
2357 2016-04-18 Richard Biener <rguenther@suse.de>
2359 PR tree-optimization/70701
2360 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2361 references after translating through a memcpy.
2363 2016-04-18 Richard Biener <rguenther@suse.de>
2365 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2366 (compute_antic): ... here. For partial antic use regular
2367 postorder and scrap iteration.
2368 (compute_partial_antic_aux): Remove unused return value.
2369 (init_pre): Do not allocate postorder.
2370 (fini_pre): Do not free postorder.
2372 2016-04-18 Richard Biener <rguenther@suse.de>
2375 * expmed.c (extract_bit_field_1): Remove broken case
2376 using a wider MODE_INT mode.
2378 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
2380 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2381 unless compiling with at least GCC-4.8.
2383 2016-04-17 Jan Hubicka <jh@suse.cz>
2386 * graphite.c (graphite_finalize): Update call to
2387 tree_estimate_probability.
2388 * predict.h (tree_estimate_probability): Update prototype.
2390 2016-04-17 Jan Hubicka <jh@suse.cz>
2392 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2393 (tree_estimate_probability): Likewise.
2394 (pass_profile::execute): Update.
2395 (report_predictor_hitrates): New function.
2396 * profile.c (compute_branch_probabilities): Use it.
2397 * predict.h (report_predictor_hitrates): Declare.
2399 2016-04-17 Jan Hubicka <jh@suse.cz>
2402 * cgraph.h (cgraph_node::set_const_flag,
2403 cgraph_node::set_pure_flag): Update prototype to return bool;
2405 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2406 of interposable symbol are interposable, too.
2407 (cgraph_set_const_flag_1): Rename to ...
2408 (set_const_flag_1): ... this one; change to self recursive function
2409 instead of call_for_symbol_thunks_and_aliases. Handle correctly
2410 clearnig the flag in all variants and also virtual thunks of const
2411 functions are pure; track if any change was done.
2412 (cgraph_node::set_const_flag): Update.
2413 (struct set_pure_flag_info): New struct.
2414 (cgraph_set_pure_flag_1): Rename to ...
2415 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2416 rather than pointer encoded flags; track if any changes was done;
2417 handle correctly clearning flag and setting flag of aliases already
2419 (cgraph_node::set_pure_flag): Update.
2420 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2422 2016-04-17 Tom de Vries <tom@codesourcery.com>
2425 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2428 2016-04-17 Tom de Vries <tom@codesourcery.com>
2430 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2431 '{}<> ' as escape-for-record.
2433 2016-04-17 Tom de Vries <tom@codesourcery.com>
2435 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2438 2016-04-17 Tom de Vries <tom@codesourcery.com>
2441 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2442 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2443 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2444 * passes.c (finish_optimization_passes): Only call
2445 finish_graph_dump_file if dfi->graph_dump_initialized.
2446 (execute_function_dump, pass_init_dump_file): Use
2447 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2449 2016-04-17 Tom de Vries <tom@codesourcery.com>
2451 PR tree-optimization/70256
2452 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2453 (debug_varmap): New function.
2455 2016-04-17 Tom de Vries <tom@codesourcery.com>
2458 * passes.c (pass_manager::register_pass): Propagate pflags.
2460 2016-04-17 Tom de Vries <tom@codesourcery.com>
2463 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2464 * passes.c (pass_manager::pass_manager): Declare and init p_start in
2465 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
2466 check if it's equal to p_start.
2467 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2469 2016-04-15 Jan Hubicka <jh@suse.cz>
2472 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2473 function does not bind to current def.
2474 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2475 handle conservatively calls to functions that does not need to bind
2477 (check_call): Update call of worse_state.
2478 (ignore_edge_for_nothrow): Update.
2479 (ignore_edge_for_pure_const): Likewise.
2480 (propagate_pure_const): Update calls to worse_state.
2481 (skip_function_for_local_pure_const): Reformat comments.
2483 2016-04-15 Jan Hubicka <jh@suse.cz>
2486 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2487 (cgraph_node::function_symbol): Likewise.
2488 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2489 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2490 (symtab_node::ultimate_alias_target): Add REF parameter.
2491 (symtab_node::binds_to_current_def_p): Declare.
2492 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2493 (cgraph_node::function_symbol): Likewise.
2494 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2495 (cgraph_node::get_availability): Likewise.
2496 (cgraph_edge::binds_to_current_def_p): New inline function.
2497 (varpool_node::get_availability): Add REF parameter.
2498 (varpool_node::ultimate_alias_target): Likewise.
2499 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2500 (symtab_node::binds_to_current_def_p): Likewise.
2501 * varpool.c (varpool_node::get_availability): Likewise.
2503 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2506 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2507 Fix mode size check.
2509 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2511 * BASE-VER: Set to 7.0.0.
2513 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2515 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2517 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2519 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2520 architecture revisions.
2522 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2524 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2525 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2526 * config/i386/i386.md (stack decrement to push peepholes): Guard
2527 with !x86_using_red_zone ().
2529 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2532 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2533 to dump_generic_node.
2534 (NIY): Pass also flags to do_niy.
2536 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2538 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2539 (simd_clone_vector_of_formal_parm_types)
2540 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2541 (simd_clone_mangle, simd_clone_create)
2542 (simd_clone_adjust_return_type, create_tmp_simd_array)
2543 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2544 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2545 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2546 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2547 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2548 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2549 * omp-simd-clone.c: ... this new file.
2550 (simd_clone_vector_of_formal_parm_types): Make it static.
2551 * Makefile.in (OBJS): Add omp-simd-clone.o.
2553 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2556 * config/i386/sse.md: Use proper memory operand modifiers.
2559 2016-04-15 Richard Biener <rguenther@suse.de>
2560 Alan Modra <amodra@gmail.com>
2562 PR tree-optimization/70130
2563 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2564 when alignment stays not the same and no not use the realign
2567 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2570 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2571 direct move handlers for KFmode. Change TFmode handlers test from
2572 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2574 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2577 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2578 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2579 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2580 * tree-ssa-live.c (remove_unused_scope_block_p): When
2581 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2582 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2583 block_ultimate_origin is FUNCTION_DECL.
2584 (remove_unused_locals): If current_function_decl is
2585 polymorphic_ctor_dtor_p, pass initial true to
2586 remove_unused_scope_block_p' is_ctor_dtor_block.
2588 2016-04-14 Martin Sebor <msebor@redhat.com>
2593 * doc/extend.texi (Variable Length): Revert.
2595 2016-04-14 Marek Polacek <polacek@redhat.com>
2596 Jan Hubicka <hubicka@ucw.cz>
2599 * tree.c (verify_type): Disable the canonical type of main variant
2602 2016-04-14 Jason Merrill <jason@redhat.com>
2604 * cfgexpand.c, expr.c: Revert previous change.
2606 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2609 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2610 when building a mem ref for the incoming reduction variable.
2612 2016-04-14 Richard Biener <rguenther@suse.de>
2614 PR tree-optimization/70614
2615 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2616 loop if the evolution dropped to chrec_dont_know.
2617 (interpret_condition_phi): Likewise.
2619 2016-04-14 Richard Biener <rguenther@suse.de>
2621 PR tree-optimization/70623
2622 * tree-ssa-pre.c (changed_blocks): Make global ...
2623 (compute_antic): ... local here. Move and fix worklist
2624 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2625 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2626 worklist handling, dump when ANTIC_IN changed.
2627 (compute_partial_antic_aux): Remove worklist handling.
2628 (init_pre): Do not compute post dominators. Add a comment about
2629 the CFG order chosen.
2630 (fini_pre): Do not free post dominators.
2632 2016-04-13 Martin Sebor <msebor@redhat.com>
2637 * doc/extend.texi (Variable Length): Document C++ specifics.
2639 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2642 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2643 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2644 eh edges have been purged.
2647 * tree-sra.c (create_access_replacement,
2648 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2650 * tree-pretty-print.c (dump_fancy_name): New function.
2651 (dump_decl_name, dump_generic_node): Use it.
2653 2016-04-13 Jason Merrill <jason@redhat.com>
2655 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2656 * expr.c (expand_expr_real_1): Likewise.
2658 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2660 * config/i386/i386.md (kunpckhi): Swap operands.
2661 (kunpcksi): Likewise.
2662 (kunpckdi): Likewise.
2663 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2664 (vec_pack_trunc_<mode>): Likewise.
2666 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2669 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2672 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2673 gimplification turns some element into non-constant.
2676 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2677 * explow.c (convert_memory_address_addr_space_1): No longer static,
2678 add NO_EMIT argument and don't call convert_modes if true, pass
2679 it down recursively, remove break after return.
2680 (convert_memory_address_addr_space): Adjust caller.
2681 * simplify-rtx.c (simplify_unary_operation_1): Call
2682 convert_memory_address_addr_space_1 instead of convert_memory_address,
2683 if it returns NULL, don't simplify.
2685 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2688 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2690 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2692 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2693 Bump the upper SIMDLEN limits, so that if the return type or
2694 characteristic type if the return type is void can be passed in
2695 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2698 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2701 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2702 Do not use "=" constraint on an input constraint.
2703 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2704 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2705 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2706 generates (neg (abs ...)) instead of (abs ...).
2708 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2710 PR rtl-optimization/70596
2711 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2712 just invalidate LRA data and reset them. Adjust dump wording.
2714 2016-04-12 Martin Liska <mliska@suse.cz>
2717 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2719 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2721 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2722 max_loop_iterations_int.
2723 (tree_unswitch_outer_loop): Likewise.
2724 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2725 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2727 2016-04-12 Tom de Vries <tom@codesourcery.com>
2729 PR tree-optimization/68756
2730 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2731 instead of new_name.
2733 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2735 PR tree-optimization/70602
2736 * tree-sra.c (generate_subtree_copies): Don't write anything into
2737 constant pool decls.
2739 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2740 regardless whether there are depend clauses or not.
2742 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2745 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2746 target attribute and pragma from changing the -mfloat128
2747 and -mfloat128-hardware options.
2749 * doc/extend.texi (Additional Floating Types): Document PowerPC
2750 __float128 restrictions.
2752 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2755 * config/aarch64/driver-aarch64.c
2756 (aarch64_get_extension_string_for_isa_flags): New.
2757 (arch_extension): Rename to...
2758 (aarch64_arch_extension): ...This.
2759 (ext_to_feat_string): Rename to...
2760 (aarch64_extensions): ...This.
2761 (aarch64_core_data): Keep track of architecture extension flags.
2762 (cpu_data): Rename to...
2763 (aarch64_cpu_data): ...This.
2764 (aarch64_arch_driver_info): Keep track of architecture extension
2766 (get_arch_name_from_id): Rename to...
2767 (get_arch_from_id): ...This, change return type.
2768 (host_detect_local_cpu): Update and reformat for renames, handle
2769 extensions through common infrastructure.
2771 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2774 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2775 track of a canonical flag name.
2776 (all_extensions): Likewise.
2777 (arch_to_arch_name): Also track extension flags enabled by the arch.
2778 (all_architectures): Likewise.
2779 (aarch64_parse_extension): Move to here.
2780 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2782 (aarch64_rewrite_selected_cpu): Update for above change.
2783 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2784 are handled, such that the single explicit value enabled by an
2785 extension is kept seperate from the implicit values it also enables.
2786 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2788 (aarch64_parse_extension): New.
2789 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2790 here to config/aarch64/aarch64-protos.h.
2791 (aarch64_parse_extension): Move from here to
2792 common/config/aarch64/aarch64-common.c.
2793 (aarch64_option_print): Update.
2794 (aarch64_declare_function_name): Likewise.
2795 (aarch64_start_file): Likewise.
2796 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2797 the canonical flag for extensions.
2798 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2801 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2803 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2806 2016-04-09 Tom de Vries <tom@codesourcery.com>
2808 PR tree-optimization/68953
2809 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2810 first to last subscript.
2812 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2814 PR tree-optimization/70586
2815 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2818 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2822 PR tree-optimization/70373
2826 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2827 clauses for acc parallel reductions as necessary. Error on those
2829 * omp-low.c (scan_sharing_clauses): Don't install variables which
2830 are used in acc parallel reductions.
2831 (lower_rec_input_clauses): Remove dead code.
2832 (lower_oacc_reductions): Add support for reference reductions.
2833 (lower_reduction_clauses): Remove dead code.
2834 (lower_omp_target): Don't remap variables appearing in acc parallel
2836 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2838 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2841 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2842 with multiple SSA_NAME defs, force the outputs other than first
2843 to be live before calling live_track_process_def on each output.
2845 PR rtl-optimization/70574
2846 * fwprop.c (forward_propagate_and_simplify): Don't add
2847 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2848 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2849 paradoxical subregs within *loc.
2851 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2853 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2854 -ftree-parallelize-loops={0,1}.
2855 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2856 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2857 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2858 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2859 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2861 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2864 * asan.c (instrument_derefs): If we get unknown location, extract it
2866 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2868 2016-04-08 Tom de Vries <tom@codesourcery.com>
2870 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2871 implicit firstprivate clause.
2873 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2876 * config/arm/thumb2.md (tst + branch-> lsls + branch
2877 peephole below *orsi_not_shiftsi_si): Require that condition
2878 register is dead after the peephole.
2879 (second peephole after the above): Likewise.
2881 2016-04-08 Alan Modra <amodra@gmail.com>
2884 * builtins.c (fold_builtin_classify): For IBM extended precision,
2885 look at just the high-order double to test for NaN.
2886 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2887 test just the high double for Inf but both doubles for subnormal
2890 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2892 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2893 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2894 node->simdclone->mask_mode != VOIDmode masks.
2895 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2896 earlier, use it instead of node->simdclone.
2897 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2898 Set clonei->mask_mode.
2900 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2903 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2904 Pass it through to cp_parser_already_scoped_statement.
2905 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2906 it through to cp_parser_statement.
2907 (cp_parser_statement): Pass IF_P through to
2908 cp_parser_iteration_statement.
2909 (cp_parser_pragma): Adjust call to
2910 cp_parser_iteration_statement.
2912 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2915 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2916 resolve a future -Wparentheses warning.
2917 * omp-low.c (scan_sharing_clauses): Likewise.
2918 * tree-parloops.c (eliminate_local_variables): Likewise.
2920 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2922 PR rtl-optimization/70398
2923 * lra-constraints.c (process_address_1): Check zero scale and code
2924 for reloading with zero scale.
2926 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2928 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2929 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2931 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2933 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2934 Add support for AVX512F clones, include them by default for
2935 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2936 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2940 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2941 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2942 firstprivate clauses.
2943 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2944 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2945 (lower_omp_target): Set TREE_NO_WARNING for
2946 non-addressable possibly uninitialized vars which are copied into
2947 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2949 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
2951 * config/pa/predicates.md (integer_store_memory_operand): Accept
2952 REG+D operands with a large offset when reload_in_progress is true.
2953 (floating_point_store_memory_operand): Likewise.
2955 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2958 * match.pd (nested int casts): Limit to GIMPLE.
2960 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
2963 * ipa-devirt.c (maybe_record_node): Fix comment; use
2964 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2966 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2968 PR rtl-optimization/70542
2969 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2970 if there are any uses other than insn or debug insns.
2972 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
2973 Jakub Jelinek <jakub@redhat.com>
2975 PR tree-optimization/70509
2976 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2977 Shift HOST_WIDE_INT_1U instead of 1.
2979 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
2981 PR tree-optimization/70509
2982 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2983 of the vector base type for index.
2985 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
2988 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2990 2016-04-05 Richard Biener <rguenther@suse.de>
2992 PR tree-optimization/70526
2993 * tree-sra.c (build_ref_for_offset): Use prev_base to
2994 extract the alias pointer type.
2996 2016-04-05 Richard Biener <rguenther@suse.de>
2998 * dse.c (struct store_info): Remove alias_set member.
2999 (struct read_info_type): Likewise.
3000 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
3001 spill_deleted, clear_alias_set_lookup): Remove.
3002 (get_group_info): Remove dead base == NULL_RTX case.
3003 (dse_step0): Remove initialization of removed variables.
3004 (delete_dead_store_insn): Reomve alias set dumping.
3005 (free_read_records): Remove alias_set handling.
3006 (canon_address): Remove alias_set_out parameter.
3007 (record_store): Remove spill_alias_set, it's always zero.
3008 (check_mem_read_rtx): Likewise.
3009 (dse_step2): Rename from ...
3010 (dse_step2_nospill): ... this. Adjust.
3011 (scan_stores): Rename from ...
3012 (scan_stores_nospill): ... this.
3013 (scan_reads): Rename from ...
3014 (scan_reads_nospill): ... this.
3015 (scan_stores_spill, scan_reads_spill): Remove.
3016 (dse_step3_scan): Remove for_spills argument which is always false.
3017 (dse_step3): Likewise.
3018 (dse_step5): Rename from ...
3019 (dse_step5_nospill): ... this. Remove alias_set handling.
3020 (rest_of_handle_dse): Adjust.
3022 2016-04-05 Jakub Jelinek <jakub@redhat.com>
3025 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
3026 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
3027 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
3028 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
3030 2016-04-05 Richard Biener <rguenther@suse.de>
3033 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
3034 non-register type temporaries into SSA.
3036 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
3039 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
3040 calls when sanitizing.
3041 (possible_polymorphic_call_target_p): Fix formatting.
3043 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
3044 Jakub Jelinek <jakub@redhat.com>
3047 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
3048 to ensure a call statement is compatible with a built-in's
3050 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
3053 2016-04-04 Richard Biener <rguenther@suse.de>
3055 PR rtl-optimization/70484
3056 * rtl.h (canon_output_dependence): Declare.
3057 * alias.c (canon_output_dependence): New function.
3058 * dse.c (record_store): Use canon_output_dependence rather
3059 than canon_true_dependence.
3061 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
3064 * cgraph.h (symtab_node::copy_visibility_from): New function.
3065 * symtab.c (symtab_node::copy_visibility_from): New function.
3066 * ipa-visibility.c (optimize_weakref): New function.
3067 (function_and_variable_visibility): Use it.
3069 2016-04-04 Martin Liska <mliska@suse.cz>
3072 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
3073 value that is really in range handled by SBR instruction.
3074 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
3075 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
3076 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
3078 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
3082 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
3083 set, but not for SP_REG operands.
3085 2016-04-02 Martin Sebor <msebor@redhat.com>
3088 * fold-const.c (maybe_nonzero_address): New function.
3089 (fold_comparison): Call it. Fold equality and relational
3090 expressions involving null pointers.
3091 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
3093 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
3095 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
3096 the "Y" constraint (scalar FP 0.0 immediate).
3098 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
3099 Add the "const_double" to the list of operand constraints.
3101 2016-04-01 Jakub Jelinek <jakub@redhat.com>
3103 PR rtl-optimization/70467
3104 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
3105 If low word of the last operand is 0, just emit addition/subtraction
3108 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3111 * config/s390/s390.c (s390_expand_insv): Check for everything
3112 constant instead of just VOIDmode stuff.
3114 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
3117 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
3119 2016-04-01 Nathan Sidwell <nathan@acm.org>
3121 * tree.def (TRY_CATCH_EXPR): Correct documentation.
3123 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
3125 PR rtl-optimization/70461
3126 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
3129 2016-03-31 Martin Liska <mliska@suse.cz>
3132 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
3133 a tree value or an immediate integer value to a buffer
3134 that is eventually copied to a BRIG section.
3135 (emit_immediate_operand): Call the function here.
3136 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
3137 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
3138 of class' fields that are removed.
3139 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
3140 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
3141 m_brig_repr_size fields.
3143 2016-03-31 Martin Liska <mliska@suse.cz>
3146 * hsa-gen.c (hsa_function_representation::update_dominance): New
3148 (convert_addr_to_flat_segment): Likewise.
3149 (gen_hsa_memory_set): New alignment argument.
3150 (gen_hsa_ctor_assignment): Likewise.
3151 (gen_hsa_insns_for_single_assignment): Provide alignment
3152 to gen_hsa_ctor_assignment.
3153 (gen_hsa_insns_for_direct_call): Add new argument.
3154 (expand_lhs_of_string_op): New function.
3155 (expand_string_operation_builtin): Likewise.
3156 (expand_memory_copy): New function.
3157 (expand_memory_set): New function.
3158 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
3159 (convert_switch_statements): Change signature.
3160 (generate_hsa): Use a return value of the function.
3161 (pass_gen_hsail::execute): Do not call
3162 convert_switch_statements here.
3163 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
3164 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
3165 (hsa_function_representation::update_dominance): New function.
3167 2016-03-31 Martin Liska <mliska@suse.cz>
3170 * hsa-brig.c (emit_directive_variable): Emit alignment
3171 according to hsa_symbol::m_align.
3172 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
3173 (dump_hsa_symbol): Dump alignment of HSA symbols.
3174 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
3175 (gen_hsa_addr_with_align): New function.
3176 (hsa_bitmemref_alignment): Use newly added function.
3177 (gen_hsa_insns_for_load): Likewise.
3178 (gen_hsa_insns_for_store): Likewise.
3179 (gen_hsa_memory_copy): New argument added.
3180 (gen_hsa_insns_for_single_assignment): Respect
3181 alignment for assignments processed via gen_hsa_memory_copy.
3182 (gen_hsa_insns_for_direct_call): Likewise.
3183 (gen_hsa_insns_for_return): Likewise.
3184 (gen_function_def_parameters): Set default alignment.
3185 * hsa.c (hsa_object_alignment): New function.
3186 (hsa_byte_alignment): Pasted function.
3187 * hsa.h (hsa_symbol::m_align): New field.
3189 2016-03-31 Bin Cheng <bin.cheng@arm.com>
3191 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
3192 scratch field for goto case.
3194 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
3196 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
3198 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
3201 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
3202 (scalar_chain::convert_insn): Call convert_op for reg
3203 moves to handle undefined registers.
3205 2016-03-31 Nathan Sidwell <nathan@acm.org>
3208 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
3209 Assert we don't want to move backwards.
3211 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
3214 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
3216 2016-03-31 Jakub Jelinek <jakub@redhat.com>
3218 PR rtl-optimization/70460
3219 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
3220 with operand from REG_LABEL_OPERAND, instead substitute
3221 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
3222 Don't do anything for REG_NON_LOCAL_GOTO jumps.
3224 2016-03-31 Martin Liska <mliska@suse.cz>
3226 * passes.c (execute_one_pass): Do not call
3227 todo_after for a discarded function.
3229 2016-03-31 Bin Cheng <bin.cheng@arm.com>
3231 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
3232 (no_cost, infinite_cost): Initialize the new field.
3233 (get_computation_cost_at): Record setup cost.
3234 (determine_use_iv_cost_address): Skip cost computation for sub
3235 uses if we can estimate it without losing accuracy.
3237 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
3239 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
3241 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3242 max_loop_iterations_int.
3243 (tree_unswitch_outer_loop): Likewise.
3244 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3245 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3247 2016-03-30 Richard Biener <rguenther@suse.de>
3250 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
3252 2016-03-30 Jakub Jelinek <jakub@redhat.com>
3255 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
3256 in gen_blendm expander.
3258 2016-03-30 Nick Clifton <nickc@redhat.com>
3261 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
3262 case where we are already provided with an SImode SUBREG.
3264 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
3267 * config/i386/i386.c (ix86_expand_epilogue): Properly check
3268 conflict between DRAP register and __builtin_eh_return.
3270 2016-03-30 Michael Matz <matz@suse.de>
3271 Richard Biener <rguenther@suse.de>
3274 * ipa-polymorphic-call.c (struct type_change_info): Change
3275 speculative to an unsigned allowing to limit the work we do.
3276 (csftc_abort_walking_p): New inline function..
3277 (check_stmt_for_type_change): Limit the number of may-defs
3278 skipped for speculative devirtualization to
3279 max-speculative-devirt-maydefs.
3280 * params.def (max-speculative-devirt-maydefs): New param.
3281 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
3283 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
3286 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
3289 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
3291 PR tree-optimization/59124
3292 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
3293 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
3295 2016-03-29 Jeff Law <law@redhat.com>
3297 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
3299 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3301 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3304 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3306 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3307 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3308 gcrt0.o if linking dynamically.
3310 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3313 * ipa-devirt.c (methods_equal_p): New function.
3314 (compare_virtual_tables): Use it.
3315 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3316 * cgraphclones.c (clone_function_name_1): Use
3317 symbol_table::symbol_suffix_separator.
3318 * coverage.c (build_var): Likewise.
3319 * symtab.c (symbol_table::symbol_suffix_separator): New.
3321 2016-03-29 Jakub Jelinek <jakub@redhat.com>
3323 PR rtl-optimization/70429
3324 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3325 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3326 mode != result_mode.
3329 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3331 PR tree-optimization/70405
3332 * ssa-iterators.h (num_imm_uses): Add missing braces.
3334 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
3336 PR rtl-optimization/68695
3337 * ira-color.c (allocno_copy_cost_saving): New.
3338 (improve_allocation): Use it.
3340 2016-03-29 Richard Henderson <rth@redhat.com>
3343 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3345 2016-03-29 Richard Biener <rguenther@suse.de>
3348 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3349 use alignment returned by get_pointer_alignment_1 if it is
3350 bigger than BITS_PER_UNIT.
3351 * builtins.c (get_pointer_alignment_1): Do not return true
3352 for alignment extracted from SSA info.
3354 2016-03-28 James Bowman <james.bowman@ftdichip.com>
3356 * config/ft32/ft32.opt (mnodiv): New.
3357 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3358 * doc/invoke.texi (FT32 Options -mnodiv): New.
3360 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
3363 * config/i386/i386.md (define_split, andn): Fix modes.
3365 2016-03-26 Richard Biener <rguenther@suse.de>
3366 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3369 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3371 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3372 as 2nd argument to cl_optimization_restore().
3374 2016-03-25 Richard Henderson <rth@redhat.com>
3377 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3378 * config/aarch64/aarch64-protos.h: Declare it.
3379 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3381 2016-03-25 Alan Modra <amodra@gmail.com>
3384 * config/rs6000/constraints.md (j): Simplify.
3385 * config/rs6000/predicates.md (easy_fp_constant): Exclude
3387 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3388 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3389 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3390 in all constraint alternatives.
3391 (movtd_64bit_nodm): Delete "j" constraint alternative.
3393 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3395 * tree-ssa-propagate.c: Enhance docs for
3396 SSA_PROP_NOT_INTERESTING.
3398 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3400 * doc/extend.texi: Fix typo in documentation to pure attribute.
3402 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
3405 * config/pa/pa.md (bswapdi2): Use a scratch register.
3407 2016-03-24 Richard Henderson <rth@redhat.com>
3410 * fold-const.c (extract_muldiv_1): Correct test for multiplication
3413 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
3415 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3416 using ix86_expand_binary_operator instead of gen_andsi3.
3418 2016-03-24 Richard Biener <rguenther@suse.de>
3420 PR tree-optimization/70396
3421 * tree-vect-stmts.c (vectorizable_comparison): Use
3422 get_vectype_for_scalar_type.
3424 2016-03-24 Richard Biener <rguenther@suse.de>
3427 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3428 with register bases.
3430 2016-03-24 Richard Biener <rguenther@suse.de>
3432 PR tree-optimization/70372
3433 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3434 build_all_ones_cst to also handle vector types correctly.
3436 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3439 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3442 2016-03-23 Marek Polacek <polacek@redhat.com>
3445 * doc/invoke.texi: Document -Wignored-attributes.
3447 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3449 PR tree-optimization/69042
3450 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3451 parameter from 30 to 40.
3453 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3455 PR tree-optimization/69042
3456 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3457 for use with constant offset stripped in base.
3459 2016-03-23 Richard Biener <rguenther@suse.de>
3462 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3463 mode compatibility check.
3464 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3466 2016-03-23 Jeff Law <law@redhat.com>
3468 PR tree-optimization/64058
3469 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3471 (struct ssa_conflicts): Move up earlier in the file.
3472 (conflicts_, var_map_): New static variables.
3473 (initialize_conflict_count): New function to initialize the
3474 CONFLICT_COUNT field for each conflict pair.
3475 (compare_pairs): Lazily initialize the conflict count and use it
3476 as the first tie-breaker.
3477 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3478 and wipe conflicts_ and map_ around the call to qsort. Remove
3479 special case for 2 coalesce pairs.
3480 * bitmap.c (bitmap_count_unique_bits): New function.
3481 (bitmap_count_bits_in_word): New function, extracted from
3483 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3484 * bitmap.h (bitmap_count_unique_bits): Declare it.
3486 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3489 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3490 transparent alias chain for decl assembler name.
3491 * config/sol2.c (solaris_assemble_visibility): Likewise.
3493 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3495 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3497 (v10_fdivs): Likewise.
3498 (v10_fdivd): Likewise.
3500 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3503 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3504 to not call fclose twice on file.
3506 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3508 PR tree-optimization/70354
3509 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3510 oprnd0 is wider than oprnd1 and there is a cast from the wider
3511 type to oprnd1, mask it with the mask of the narrower type.
3514 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3515 Optimize TARGET_STV splitters, if high or low word of last argument
3518 2016-03-22 Jeff Law <law@redhat.com>
3521 tree-ssa-threadbackward.c
3522 (fsm_find_control_statement_thread_paths): Correctly distinguish
3523 between old style jump threads vs FSM jump threads.
3525 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3528 * config/i386/i386.c (scalar_chain::convert_op): Support
3529 uninitialized register usage case.
3531 2016-03-22 Richard Biener <rguenther@suse.de>
3534 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3536 (capture::gen_transform): ... to change behavior when substituting
3537 a condition into cond or not-cond expr context.
3538 (dt_simplify::gen_1): Adjust.
3539 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3540 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3541 last change and instead change to
3542 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3543 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3545 2016-03-22 Anthony Green <green@moxielogic.com>
3547 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3548 issue for moxiebox targets.
3549 (CC1PLUS_SPEC): Ditto.
3551 2016-03-22 Richard Biener <rguenther@suse.de>
3554 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3557 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3559 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3561 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3564 * config/i386/i386.c (def_builtin): Handle
3565 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3567 (const struct builtin_description bdesc_special_args[]):
3568 Remove duplicate ISA bits.
3570 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3573 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3574 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3575 in a way that works also for AVX512BW.
3578 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3579 instead of source if operands[1] is xmm16 and above and
3580 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3581 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3584 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3585 on assign if (*from_p) is a comparison, set it to
3586 TREE_NO_WARNING (*from_p).
3588 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3591 * lra.c (restore_scratches): Ignore deleted insns.
3593 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3594 Jakub Jelinek <jakub@redhat.com>
3596 PR tree-optimization/70317
3597 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3600 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3603 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3604 of ix86_expand_move.
3606 (movti): Use general_operand for operand 1 predicate.
3608 2016-03-21 Martin Liska <mliska@suse.cz>
3610 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3612 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3614 2016-03-21 Martin Liska <mliska@suse.cz>
3617 * ipa-icf.c (sem_function::parse): Skip static
3618 constructors and destructors.
3620 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3623 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3624 function-like macro, peek following token(s) if it is followed
3625 by CPP_OPEN_PAREN token with optional padding in between, and
3626 if not, don't treat it like a macro.
3628 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3629 Alexander Monakov <amonakov@ispras.ru>
3631 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3632 for the stabs debug format.
3634 2016-03-21 Richard Biener <rguenther@suse.de>
3636 PR tree-optimization/70310
3637 * tree-vect-generic.c (expand_vector_condition): Fold the built
3640 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3643 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3644 Block third alternative for AVX-512VL target,
3646 2016-03-21 Martin Liska <mliska@suse.cz>
3649 * hsa-brig.c (emit_function_directives): Mark unemitted
3650 global variables for emission.
3651 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3652 (get_symbol_for_decl): Likewise.
3653 * hsa.h (struct hsa_symbol): New flag.
3655 2016-03-21 Richard Biener <rguenther@suse.de>
3657 PR tree-optimization/70288
3658 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3659 we do not estimate unsimplified all-constant conditionals or
3660 switches as optimized away.
3662 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3664 PR rtl-optimization/69102
3665 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3666 when we have a readonly dependency context.
3668 2016-03-18 Jeff Law <law@redhat.com>
3670 PR rtl-optimization/70263
3671 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3672 (update_equiv_regs): When trying to move a store to after the insn
3673 that sets the source of the store, make sure the store occurs after
3674 the insn that sets the source of the store. When successful note
3675 the REG_EQUIV note created in the dump file.
3677 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3678 Bernd Schmidt <bschmidt@redhat.com>
3680 * doc/extend.texi: Document more potential problems with basic asms.
3682 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3684 PR rtl-optimization/70278
3685 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3688 2016-03-18 Jason Merrill <jason@redhat.com>
3690 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3692 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3694 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3695 values to 128b regs.
3697 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3699 PR tree-optimization/70252
3700 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3701 boolean vector has a proper number of elements.
3702 (supportable_narrowing_operation): Likewise.
3704 2016-03-18 Tom de Vries <tom@codesourcery.com>
3707 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3709 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3711 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3712 instead of replace_rtx for DEBUG_INSNs.
3714 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3716 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3717 load type reservations.
3719 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3722 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3723 define_constraint for "Q" and "T" constraints.
3725 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3727 Tweak the pipeline model for Exynos M1
3729 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3732 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3735 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3736 where one or both locations aren't within a line_map.
3738 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3741 * opts.c (finish_options): Don't set flag_pie to the default if
3742 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3745 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3747 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3748 true as ALL_REGS argument to replace_rtx.
3750 2016-03-17 Richard Biener <rguenther@suse.de>
3753 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3756 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3759 * rtl.h (replace_rtx): Add ALL_REGS argument.
3760 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3761 equality and assert mode is the same, instead of just rtx pointer
3763 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3764 true as ALL_REGS argument to replace_rtx.
3766 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3768 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3769 for boolean vector with vector mode only.
3770 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3772 2016-03-17 Nick Clifton <nickc@redhat.com>
3775 * config/rx/rx.c (rx_print_integer): Print negative constants in
3778 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3781 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3783 2016-03-16 Richard Henderson <rth@redhat.com>
3784 Richard Biener <rguenth@suse.de>
3789 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3790 first operand as is_gimple_condexpr.
3795 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3796 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3797 Do not gimplify the result.
3798 (do_unop): Adjust call to tree_vec_extract.
3799 (do_binop): Likewise.
3800 (do_compare): Likewise.
3801 (do_plus_minus): Likewise.
3802 (do_negate): Likewise.
3803 (expand_vector_condition): Likewise.
3804 (do_cond): Likewise.
3806 2016-03-16 Richard Henderson <rth@redhat.com>
3809 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3810 (aarch64_classify_address): Use it.
3811 (aarch64_legitimize_address): Force all subexpressions of PLUS
3812 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3814 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3815 Richard Biener <rguenth@suse.de>
3818 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3819 return to even if only REGNO is equal, and assert
3822 2016-03-11 Jeff Law <law@redhat.com>
3824 PR rtl-optimization/70224
3825 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3827 2016-03-16 Richard Henderson <rth@redhat.com>
3830 * function.h (struct function): Add has_forced_label_in_static.
3831 * gimplify.c (force_labels_r): Set it.
3832 * lto-streamer-in.c (input_struct_function_base): Read it.
3833 * lto-streamer-out.c (output_struct_function_base): Write it.
3834 * tree-inline.c (has_label_address_in_static_1): Remove.
3835 (copy_forbidden): Remove fndecl parameter; test
3836 has_forced_label_in_static.
3837 (inline_forbidden_p): Update call to copy_forbidden.
3838 (tree_versionable_function_p): Likewise.
3839 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3840 (chkp_versioning): Likewise.
3841 * tree-inline.h (copy_forbidden): Update decl.
3843 2016-03-16 Marek Polacek <polacek@redhat.com>
3846 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3847 function being thunked if the result type doesn't have fixed size.
3848 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3849 doesn't have fixed size.
3851 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3853 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3854 reporting malformed loop nest.
3856 2016-03-16 Tom de Vries <tom@codesourcery.com>
3859 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3860 nodes.length () == 1 test to before first nodes[0] access.
3862 2016-03-16 Tom de Vries <tom@codesourcery.com>
3864 PR tree-optimization/68715
3865 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3868 2016-03-16 Tom de Vries <tom@codesourcery.com>
3870 PR tree-optimization/68809
3871 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3874 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3875 Sandra Loosemore <sandra@codesourcery.com>
3877 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3878 on leaf attribute. Mention ELF interposition problems.
3880 2016-03-16 Alan Modra <amodra@gmail.com>
3882 PR rtl-optimization/69195
3883 PR rtl-optimization/47992
3884 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3887 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3890 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3892 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3894 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3896 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3898 PR rtl-optimization/70222
3899 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3900 optimization if mode is different from result_mode, queue up masking
3901 of the result in outer_op. Formatting fix.
3904 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3907 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3909 PR rtl-optimization/69032
3910 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3911 looping backwards over basic block insns.
3913 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3916 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3917 to non-speculative when propagating trap bits.
3919 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3921 PR rtl-optimization/63384
3922 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3925 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3928 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3929 factored out from ...
3930 (sched_analyze_insn): ... here.
3931 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3932 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3933 get_implicit_reg_pending_clobbers in it.
3934 (setup_id_reg_sets): Use setup_id_implicit_regs.
3935 (deps_init_id): Ditto.
3937 2016-03-15 Tom de Vries <tom@codesourcery.com>
3940 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3942 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3943 execute_function_dump.
3944 (execute_one_pass): Don't dump function if it will be dumped after ipa
3947 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3949 * genrecog.c (match_pattern_2): If pred is NULL don't call
3950 safe_predicate_mode on it.
3952 2016-03-14 Jakub Jelinek <jakub@redhat.com>
3955 * lra-constraints.c (delete_move_and_clobber): Change assertion
3956 to also allow dregno == 0.
3958 2016-03-14 Richard Henderson <rth@redhat.com>
3961 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3962 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3963 (reassociate_bb): Use optimize_vec_cond_expr; avoid
3964 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3967 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
3970 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3972 (lra_create_live_ranges_1): initialize hard register biggest_mode to
3974 * lra-constraints.c (split_reg): For hard regs, try to find the
3975 biggest single-register mode used in the function.
3977 2016-03-14 Richard Biener <rguenther@suse.de>
3979 PR tree-optimization/56365
3980 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3981 constants to compare against.
3983 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
3986 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3987 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3988 (define_split for the GPR case): Use int_reg_operand instead of
3989 gpc_reg_operand for the output.
3991 2016-03-14 Tom de Vries <tom@codesourcery.com>
3993 PR tree-optimization/70045
3994 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3995 create_empty_if_region_on_edge argument.
3997 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
3999 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
4000 (STACK_CHECK_PROTECT): Likewise.
4001 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
4002 (STACK_CHECK_PROTECT): Likewise.
4003 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
4004 (STACK_CHECK_PROTECT): Likewise.
4005 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
4006 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4007 (STACK_CHECK_PROTECT): Likewise.
4009 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
4011 PR rtl-optimization/69307
4012 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
4013 registers in modes that span more than one register.
4015 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
4018 * lra-constraints.c (delete_move_and_clobber): New.
4019 (remove_inheritance_pseudos): Use it.
4021 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
4024 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
4025 the libcall is LCT_THROW.
4026 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
4027 for the checking routine.
4029 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
4032 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
4033 optimization if we have direct move.
4034 (roundu32<mode>2_fprs): Likewise.
4036 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
4039 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
4041 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
4042 Arguments swapped. All callers changed. Take reg_renumber into
4043 account, and Calculate and compare register ranges for hard regs.
4045 2016-03-11 Jeff Law <law@redhat.com>
4047 PR tree-optimization/70190
4048 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4049 Handle cases where we can not extract the taken edge, even though we
4050 found a constant value.
4052 PR tree-optimization/64058
4053 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
4054 (num_coalesce_pairs): Move up earlier in file.
4055 (find_coalesce_pair): Initialize the INDEX field for each pair
4057 (compare_pairs): No longer sort on the elements in each pair.
4058 Instead break ties with the index of the coalesce pair.
4060 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4063 * config/aarch64/aarch64-protos.h
4064 (aarch64_save_restore_target_globals): New prototype.
4065 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
4066 Call the above when popping pragma.
4067 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
4069 (aarch64_set_current_function): Rewrite using the above.
4071 2016-03-11 Jakub Jelinek <jakub@redhat.com>
4073 PR tree-optimization/70177
4074 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
4075 (extract_ops_from_tree): ... this. In the 2 argument
4076 overload remove _1 suffix.
4077 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
4078 (extract_ops_from_tree): ... this.
4079 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
4081 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
4082 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
4083 extract_ops_from_tree instead of 2 operand one.
4085 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
4087 PR tree-optimization/70013
4088 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
4089 for constant-pool entries.
4091 2016-03-11 Jakub Jelinek <jakub@redhat.com>
4093 PR rtl-optimization/70174
4094 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
4095 followed by gen_lowpart on force_reg instead of just gen_lowpart.
4097 PR tree-optimization/70169
4098 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
4099 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
4102 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
4103 Jakub Jelinek <jakub@redhat.com>
4106 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
4107 of uninitialized values.
4109 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4111 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
4113 ("*trunctddd2"): New pattern definition.
4114 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
4117 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4119 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
4120 definitions for BFP and DFP rounding modes.
4121 ("fixuns_truncdddi2", "fixuns_trunctddi2")
4122 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
4123 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
4124 ("fix_trunctf<mode>2"): Use the new constants instead of magic
4127 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4129 * config/s390/constraints.md: Adjust comment.
4130 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
4131 s390_decompose_addrstyle_without_index.
4132 * config/s390/predicates.md (shift_count_or_setmem_operand):
4133 Rename to setmem_operand.
4134 * config/s390/s390-protos.h
4135 (s390_decompose_shift_count): Rename to
4136 s390_decompose_addrstyle_without_index.
4137 * config/s390/s390.c (s390_decompose_shift_count)
4138 (s390_mem_constraint, print_shift_count_operand)
4139 (print_operand_address, print_operand): Rename
4140 s390_decompose_shift_count to
4141 s390_decompose_addrstyle_without_index and rename
4142 print_shift_count_operand to print_addrstyle_operand troughout the
4144 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
4145 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
4146 Rename shift_count_or_setmem_operand to setmem_operand.
4147 * config/s390/vx-builtins.md ("vec_insert<mode>")
4148 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
4151 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
4154 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4155 Handle overlapping retval and newval.
4157 2016-03-10 Nick Clifton <nickc@redhat.com>
4160 * config/aarch64/aarch64.c
4161 (aarch64_override_options_after_change_1): When forcing
4162 flag_omit_frame_pointer to be true, use a special value that can
4163 be detected if this function is called again, thus preventing
4164 flag_omit_leaf_frame_pointer from being forced to be false.
4166 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4168 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4169 Set x_flag_omit_leaf_frame_pointer when handling
4170 -momit-leaf-frame-pointer.
4172 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4175 * cgraph.c (cgraph_node::dump): Dump split_part and
4176 indirect_call_target.
4177 * cgraph.h (cgraph_node): Add indirect_call_target flag.
4178 * ipa.c (has_addr_references_p): Cleanup.
4179 (is_indirect_call_target_p): New.
4180 (walk_polymorphic_call_targets): Do not mark virtuals that may be
4181 called indirectly as local.
4182 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
4184 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4187 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4188 on cxa_pure_virtual.
4190 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4193 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
4195 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
4198 * tree.c (need_assembler_name_p): Only record main variant type names.
4200 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
4203 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
4204 Always define to 0 or 1.
4205 (TARGET_FIX_ERR_A53_843419): New macro.
4206 * config/aarch64/aarch64-elf-raw.h
4207 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
4208 * config/aarch64/aarch64-linux.h: Likewise.
4209 * config/aarch64/aarch64.c
4210 (aarch64_override_options_after_change_1): Do not default
4211 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
4213 (aarch64_attributes): Handle fix-cortex-a53-843419.
4214 (aarch64_can_inline_p): Likewise.
4215 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
4217 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
4218 Jakub Jelinek <jakub@redhat.com>
4220 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
4221 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
4222 DECL_COMMONS if flag_unconstrained_commons is set.
4223 * tree-dfa.c (get_ref_base_and_extent): Likewise.
4224 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
4225 (funconstrained-commons): Document.
4227 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
4229 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
4230 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
4232 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
4234 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
4235 has a proper number of elements.
4237 2016-03-10 Alan Modra <amodra@gmail.com>
4239 PR rtl-optimization/69195
4240 PR rtl-optimization/47992
4241 * ira.c (recorded_label_ref): Delete.
4242 (update_equiv_regs): Return void.
4243 (indirect_jump_optimize): New function.
4244 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
4245 before regstat_compute_ri. Don't rebuild_jump_labels here.
4246 Delete update_regstat.
4248 2016-03-10 Richard Biener <rguenther@suse.de>
4250 PR tree-optimization/70128
4251 * tree-ssa-structalias.c (set_uids_in_ptset): Set
4252 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
4254 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4256 PR tree-optimization/70152
4257 * tree-sra.c (replace_removed_params_ssa_names): Copy over
4258 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
4261 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
4262 instead of gen_sse2_loadlpd.
4263 * config/i386/sse.md (*vec_concatv2df): Rename to...
4264 (vec_concatv2df): ... this.
4266 PR tree-optimization/70127
4267 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
4269 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4273 * diagnostic-show-locus.c (compatible_locations_p): New function.
4274 (layout::layout): Sanitize ranges using compatible_locations_p.
4276 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4280 * diagnostic-show-locus.c (layout_range::layout_range): Replace
4281 location_range param with three const expanded_locations * and a
4283 (layout::layout): Replace call to
4284 rich_location::lazily_expand_location with get_expanded_location.
4285 Extract the range and perform location expansion here, passing
4286 the results to the layout_range ctor.
4287 * diagnostic.c (source_range::debug): Delete.
4288 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
4289 of rich_location::get_expanded_location.
4290 * gcc-rich-location.c (get_range_for_expr): Delete.
4291 (gcc_rich_location::add_expr): Reimplement to avoid the
4292 rich_location::add_range overload that took a location_range,
4293 passing a location_t instead.
4295 2016-03-09 Richard Biener <rguenther@suse.de>
4296 Jakub Jelinek <jakub@redhat.com>
4298 PR tree-optimization/70138
4299 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4300 Also skip vect_double_reduction_def.
4302 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4305 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4306 if the operand is "m".
4308 2016-03-09 Nathan Sidwell <nathan@acm.org>
4310 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4312 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4314 * config/i386/i386.c (processor_target_table): Fix cost table
4315 intialization order for znver1.
4317 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4319 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4320 - becuase -> because.
4321 * ipa-reference.c (ignore_module_statics): Likewise.
4322 * cgraph.c (cgraph_node::get_body): Likewise.
4323 * ipa-inline.c (early_inliner): Likewise.
4324 * ipa-devirt.c (types_same_for_odr): Likewise.
4325 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4326 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4328 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4330 * tree-ssa-math-opts.c: Fix typo in comment.
4332 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4335 * config/i386/i386.c (scalar_chain::make_vector_copies,
4336 scalar_chain::convert_reg): Call end_sequence in between
4337 get_insns and emit_conversion_insns rather than after both
4340 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
4343 * config/i386/i386.h (machine_function): Add
4344 pc_thunk_call_expanded flag.
4345 (ix86_pc_thunk_call_expanded): New define.
4346 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4347 (*set_got): Rename insn pattern from set_got.
4348 (*set_got_labelled): Rename inst pattern from set_got_labelled.
4349 * config/i386/i386.c (ix86_compute_frame_layout): Use
4350 ix86_pc_thunk_call_expanded to prevent red-zone.
4352 2016-03-07 Martin Jambor <mjambor@suse.cz>
4354 * hsa.h (hsa_get_ctor_statements): Declare.
4355 (hsa_get_dtor_statements): Likewise.
4356 (hsa_get_kernel_dispatch_type): Likewise.
4357 * hsa.c (hsa_get_ctor_statements): New function.
4358 (hsa_get_dtor_statements): Likewise.
4359 (hsa_get_kernel_dispatch_type): Likewise.
4360 * hsa-brig.c (hsa_cdtor_statements): Removed.
4361 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4362 hsa_get_dtor_statements.
4363 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4364 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4366 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4368 * config/arm/arm-cores.def (cortex-r8): New.
4369 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4370 * config/arm/arm-tune.md: Likewise.
4371 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4373 2016-03-07 Martin Sebor <msebor@redhat.com>
4375 PR rtl-optimization/19705
4376 * doc/invoke.texi (Options That Control Optimization): Clarify
4377 -fno-branch-count-reg.
4379 2016-02-26 Richard Biener <rguenther@suse.de>
4380 Jeff Law <law@redhat.com>
4382 PR tree-optimization/69740
4383 * cfghooks.c (remove_edge): Request loop fixups if we delete
4384 an edge that might turn an irreducible loop into a natural
4386 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4387 Move after definition of loops_state_clear.
4389 2016-03-07 Bin Cheng <bin.cheng@arm.com>
4391 PR rtl-optimization/69052
4392 * rtlanal.c (commutative_operand_precedence): Set higher precedence
4395 2016-03-07 Tom de Vries <tom@codesourcery.com>
4397 PR tree-optimization/70116
4398 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4399 is_tm_ending stmts and ubsan/asan internal functions.
4400 (find_duplicate): Use it. Don't test is_tm_ending here.
4402 2016-03-07 Richard Biener <rguenther@suse.de>
4404 PR tree-optimization/70115
4405 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4406 (propagate_constants_for_unrolling): Use replace_uses_by.
4408 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
4411 * omp-low.c (struct oacc_loop): Add ifns.
4412 (new_oacc_loop_raw): Initialize it.
4413 (finish_oacc_loop): Clear mask & flags if no ifns.
4414 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4415 (oacc_loop_xform_loop): Add ifns arg & adjust.
4416 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4418 2016-03-07 Richard Henderson <rth@redhat.com>
4421 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4422 (insert_value_copy_on_edge): Likewise.
4424 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4426 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4428 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4431 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4433 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4435 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4437 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4439 Fix sseimul type attribute.
4440 * config/i386/znver1.md
4441 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4442 znver1_sseimul_avx256_load) : Fix the type attribute.
4443 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4444 pipe usage and latency.
4446 2016-03-05 Jakub Jelinek <jakub@redhat.com>
4449 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4450 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4453 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4456 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4458 PR rtl-optimization/69941
4459 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4460 the reg share its mode.
4462 2016-03-04 Jeff Law <law@redhat.com>
4464 PR tree-optimization/69196
4465 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4466 If the both SSA_NAMEs are anonymous, then consider them unassociated
4467 and include the PHI in the statement count.
4469 2016-03-05 Tom de Vries <tom@codesourcery.com>
4471 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4472 construct in oacc routine. Check for oacc region in oacc routine.
4474 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4477 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4478 2016-02-22 changes, instead don't recurse if RECUR is already true.
4479 Don't change *dynamic_check if RECUR. Adjust recursive caller
4480 to pass true to the new argument.
4481 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4484 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4485 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4487 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4489 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4491 PR rtl-optimization/57676
4492 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4495 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4497 * tree-vect-patterns.c (search_type_for_mask): Handle
4498 comparison of booleans.
4500 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4502 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4506 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4507 all other ops that have dw_val_class_die_ref operands,
4508 and DW_OP_GNU_entry_value.
4510 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4512 PR rtl-optimization/69904
4513 * config/arm/arm.c (arm_cannot_copy_insn_p):
4514 Return true for load-exclusive instructions.
4516 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4519 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4520 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4521 the pattern no matter if it is used just by non-pattern, pattern
4523 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4524 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4525 oprnd1 def_stmt is in pattern, don't look through it.
4527 2016-03-03 Marek Polacek <polacek@redhat.com>
4530 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4532 2016-03-03 Martin Liska <mliska@suse.cz>
4534 PR tree-optimization/70043
4535 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4536 previous statement if we see a debug statement.
4538 2016-03-03 Richard Biener <rguenther@suse.de>
4540 PR tree-optimization/55936
4541 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4542 parameter and guard unsafe equivalence use.
4543 (vrp_evaluate_conditional_warnv_with_ops): Always use
4544 safe equivalences but not via the quadratic compare_names
4547 2016-03-03 Michael Collison <michael.collison@linaro.org>
4550 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4551 for operand 1 to s_register_operand. Change predicate for operand
4552 2 to arm_not_immediate_operand.
4554 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4556 * doc/tm.texi: Regenerated.
4558 2016-03-02 Richard Henderson <rth@redhat.com>
4561 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4562 simplification when all args are positive non-fixed registers.
4564 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4566 * target.def (lra_p): Specify that new ports should use LRA.
4568 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4571 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4572 gimplify_type_sizes the type they refer to.
4573 (omp_notice_variable): Handle reference vars to VLAs.
4574 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4575 reference to VLA decls in the second pass instead of first pass.
4577 2016-03-02 Tom de Vries <tom@codesourcery.com>
4579 PR tree-optimization/68659
4580 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4581 new_expr == NULL_TREE.
4582 (get_new_name): Handle ADDR_EXPR.
4584 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4586 PR rtl-optimization/69052
4587 * loop-invariant.c (canonicalize_address): New function.
4588 (inv_can_prop_to_addr_use): Check validity of address expression
4589 which is canonicalized by above function.
4591 2016-03-02 Alan Modra <amodra@gmail.com>
4594 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4597 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4600 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4601 (*movhi_internal): Put mask moves from and to memory separately
4602 from moves from/to GPRs.
4604 2016-03-02 Richard Biener <rguenther@suse.de>
4606 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4607 GENERIC expressions in GIMPLE.
4609 2016-03-02 Richard Biener <rguenther@suse.de>
4611 * config/i386/i386.c (type_natural_mode): Fix typo.
4613 2016-03-02 Nick Clifton <nickc@redhat.com>
4615 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4617 2016-03-02 Richard Biener <rguenther@suse.de>
4618 Uros Bizjak <ubizjak@gmail.com>
4621 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4623 2016-03-02 Richard Biener <rguenther@suse.de>
4626 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4628 2016-03-02 Marek Polacek <polacek@redhat.com>
4631 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4632 "is promoted to" warning.
4634 2016-03-01 DJ Delorie <dj@redhat.com>
4636 * config.gcc: Deprecate mep-*.
4638 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4641 * lra-constraints.c (regno_val_use_in): New.
4642 (match_reload): Use it instead of regno_use_in.
4644 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4646 PR rtl-optimization/70007
4647 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4648 references present in REG_EQUAL notes attached to non-SET patterns.
4650 2016-03-01 Jeff Law <law@redhat.com>
4652 PR tree-optimization/69196
4653 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4654 Appropriately clamp the number of statements to copy when the
4655 thread path does not traverse a loop backedge.
4657 PR tree-optimization/69196
4658 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4659 Do count some PHIs in the thread path against the insn count. Decrease
4660 final statement count by one as the control statement in the last
4661 block will get removed. Remove special cased code for handling PHIs
4664 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4667 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4668 asm dialect alternatives to explicit GOTPCREL calls.
4670 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4673 * ira.c (do_reload): Issue warning for generic stack checking here...
4674 * reload1.c (reload): ...instead of here and streamline it.
4676 2016-03-01 Nick Clifton <nickc@redhat.com>
4678 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4680 2016-03-01 Richard Biener <rguenther@suse.de>
4682 PR tree-optimization/69983
4683 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4684 types and fall back to operand_equal_p.
4686 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4689 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4691 * config/s390/constraints.md ("jm8"): New constraint.
4692 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4694 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4696 ("*setmem_long<setmem_and>"): New pattern.
4697 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4699 ("*setmem_long_31z<setmem_and>"): New pattern.
4700 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4701 New substitution rules with the required attributes.
4704 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4707 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4709 * gensupport.c (process_substs_on_one_elem): Split loop to
4710 complete mark_operands_used_in_match_dup on all expressions in the
4712 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4713 and remove function.
4715 2016-03-01 Richard Biener <rguenther@suse.de>
4718 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4719 vector BIT_FIELD_REF extract.
4721 2016-03-01 Richard Biener <rguenther@suse.de>
4723 PR tree-optimization/69994
4724 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4726 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4728 PR tree-optimization/69956
4729 * tree-vect-stmts.c (supportable_widening_operation): Support
4730 multi-step conversion of boolean vectors.
4731 (supportable_narrowing_operation): Likewise.
4733 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4735 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4738 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4740 * config/s390/subst.md (DSI_VI): New mode iterator.
4741 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4742 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4743 the insn definition.
4744 ("*vec_set<mode>"): Change predicate and add alternative to
4745 support only either register or const_int operands as element
4747 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4749 ("vec_extract<mode>"): New expander.
4750 ("*vec_extract<mode>"): New insn definition supporting reg and
4751 const_int element selectors.
4752 ("*vec_extract<mode>_plus"): New insn definition supporting
4753 reg+const_int element selectors.
4754 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4755 following expander+insn definition.
4756 ("<vec_shifts_name><mode>3"): New expander.
4757 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4759 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4761 * config/s390/s390.md ("*tabort_1"): Change predicate to
4762 nonmemory_operand. Add a second alternative to cover
4763 register as well as const int operands.
4764 ("*tabort_1_plus"): New pattern definition.
4766 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4768 * config/s390/s390.md ("*ashrdi3_cc_31")
4769 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4770 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4771 Merge insn definitions into ...
4772 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4773 New pattern definition.
4774 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4775 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4776 ("*ashr<mode>3_and"): Merge insn definitions into ...
4777 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4778 New pattern definition.
4779 * config/s390/subst.md ("addr_style_op_cc_subst")
4780 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4781 substitutions patterns plus attributes.
4782 Add ashiftrt to SUBST iterator.
4784 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4786 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4787 op2 to nonmemory_operand.
4788 ("*<shift>di3_31", "*<shift>di3_31_and"):
4789 Merge into single pattern definition ...
4790 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4791 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4792 pattern definition ...
4793 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4794 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4797 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4799 * config/s390/predicates.md (const_int_6bitset_operand): New
4801 * config/s390/s390.md: Include subst.md.
4802 ("rotl<mode>3"): New expander.
4803 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4805 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4806 * config/s390/subst.md: New file.
4808 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4810 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4811 Remove RRR type. It doesn't really exist.
4812 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4814 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4815 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4816 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4817 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4818 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4819 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4820 `enabled' attribute.
4822 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4824 * gensupport.c (process_substs_on_one_elem): Split loop to
4825 complete mark_operands_used_in_match_dup on all expressions in the
4827 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4828 and remove function.
4830 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4833 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4834 (CEIL_NWORDS): ...this. Use CEIL macro.
4835 (compute_fp_layout): Adjust to above renaming.
4836 (function_arg_union_value): Likewise.
4837 (sparc_arg_partial_bytes): Likewise.
4838 (sparc_function_arg_advance): Likewise.
4840 2016-02-29 Jeff Law <law@redhat.com>
4842 PR tree-optimization/70005
4843 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4844 where an object with a boolean range is compared against a value
4847 PR tree-optimization/69999
4848 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4849 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4852 2016-02-29 Richard Biener <rguenther@suse.de>
4854 PR tree-optimization/69994
4855 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4856 (get_unary_op): Look through nop conversions.
4857 (ops_equal_values_p): New function, look for equality diregarding
4859 (eliminate_plus_minus_pair): Use ops_equal_values_p
4860 (repropagate_negates): Do not use get_unary_op here.
4862 2016-02-29 Martin Liska <mliska@suse.cz>
4864 * system.h: Poison ENABLE_CHECKING macro.
4866 2016-02-29 Martin Liska <mliska@suse.cz>
4868 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4869 is presented in dump flags.
4870 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4871 (hsa_regalloc): Likewise.
4873 2016-02-19 Richard Biener <rguenther@suse.de>
4875 PR tree-optimization/69980
4876 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4877 permutation of those we need to keep.
4879 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4882 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4883 (NWORDS_UP): ...this
4884 (init_cumulative_args): Minor tweaks.
4885 (sparc_promote_function_mode): Likewise.
4886 (scan_record_type): Delete.
4887 (traverse_record_type): New function template.
4888 (classify_data_t): New structure type.
4889 (classify_registers): New inline function.
4890 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4891 exhausted. Instantiate traverse_record_type on classify_registers and
4892 deal with the case of a structure passed in slot #15 with no FP field
4894 (assign_data_t): New structure type.
4895 (compute_int_layout): New static function.
4896 (compute_fp_layout): Likewise.
4897 (count_registers): New inline function.
4898 (assign_int_registers): New static function.
4899 (assign_fp_registers): Likewise.
4900 (assign_registers): New inline function.
4901 (function_arg_record_value_1): Delete.
4902 (function_arg_record_value_2): Likewise.
4903 (function_arg_record_value_3): Likewise.
4904 (function_arg_record_value): Adjust to above changes. Instantiate
4905 traverse_record_type on count_registers to first count the number of
4906 registers to be used and then on assign_registers to assign them.
4907 (function_arg_union_value): Adjust to above renaming.
4908 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4909 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4910 case of a structure passed in slot #15
4911 (sparc_function_arg_advance): Likewise.
4912 (function_arg_padding): Minor tweak.
4914 2016-02-29 Richard Biener <rguenther@suse.de>
4916 PR tree-optimization/69720
4917 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4918 the adjustment_def path for possibly vectorized defs.
4919 (vect_create_epilog_for_reduction): Handle vectorized initial
4922 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4924 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4926 2016-02-27 Jeff Law <law@redhat.com>
4929 2016-02-26 Richard Biener <rguenther@suse.de>
4930 Jeff Law <law@redhat.com>
4932 PR tree-optimization/69740
4933 * cfghooks.c (remove_edge): Request loop fixups if we delete
4934 an edge that might turn an irreducible loop into a natural
4937 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4939 PR rtl-optimization/69896
4940 * tree-vect-generic.c (get_compute_type): Avoid single element
4943 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4945 Rename the AArch64 tuning option and related functions to enable the
4946 Newton series for the reciprocal square root to reflect its
4947 approximative characteristic.
4949 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4950 function to "aarch64_emit_approx_rsqrt".
4951 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4952 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4953 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4954 (xgene1_tunings): Likewise.
4955 (use_rsqrt_p): Likewise.
4956 (aarch64_emit_swrsqrt): Use new function name.
4957 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4958 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4959 text explaining this option.
4960 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4962 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4965 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4966 complain about -mallow-movmisalign without -mvsx if
4967 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4969 2016-02-26 Joel Sherrill <joel@rtems.org>
4971 * config.gcc: Add x86_64-*-rtems*.
4972 * gcc/config/i386/rtems-64.h: New file.
4974 2016-02-26 Joel Sherrill <joel@rtems.org>
4976 * config.gcc: Add aarch64-*-rtems*.
4977 * gcc/config/aarch64/rtems.h: New file.
4979 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
4982 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4983 shift amount using %h. Add comment.
4985 2016-02-26 Richard Biener <rguenther@suse.de>
4986 Jeff Law <law@redhat.com>
4988 PR tree-optimization/69740
4989 * cfghooks.c (remove_edge): Request loop fixups if we delete
4990 an edge that might turn an irreducible loop into a natural
4993 2016-02-26 Martin Jambor <mjambor@suse.cz>
4996 * tree-sra.c (sra_modify_assign): Do not remove loads of
4997 uninitialized aggregates to SSA_NAMEs.
4999 2016-02-26 Richard Henderson <rth@redhat.com>
5002 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
5003 pseudo in case the target rtx matches the source of the left
5006 2016-02-26 Martin Jambor <mjambor@suse.cz>
5009 * hsa.h (hsa_type_packed_p): Declare.
5010 * hsa.c (hsa_type_packed_p): New function.
5011 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
5013 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
5014 * hsa-brig.c (emit_basic_insn): Likewise.
5016 2016-02-26 Martin Jambor <mjambor@suse.cz>
5019 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
5021 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
5023 2016-02-26 Martin Jambor <mjambor@suse.cz>
5025 * hsa.h (is_a_helper): New overload for hsa_op_immed for
5026 hsa_op_with_type operands.
5027 (hsa_unsigned_type_for_type): Declare.
5028 * hsa.c (hsa_unsigned_type_for_type): New function.
5029 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
5030 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
5031 the finalizer. Do not emit extra move.
5033 2016-02-26 Martin Jambor <mjambor@suse.cz>
5035 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
5036 atomic operations in private segment.
5038 2016-02-26 Martin Jambor <mjambor@suse.cz>
5040 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
5041 statements to wi->info. Also disallow omp simd constructs.
5042 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
5043 for not gridifying. Dump special string for omp_for.
5045 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5048 * config/aarch64/aarch64.c (aarch64_set_current_function):
5049 Save/restore target globals when switching to
5050 target_option_default_node.
5052 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5055 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
5056 Return 0 if !SHIFT_COUNT_TRUNCATED.
5058 2016-02-26 Jakub Jelinek <jakub@redhat.com>
5059 Eric Botcazou <ebotcazou@adacore.com>
5061 PR rtl-optimization/69891
5062 * dse.c (scan_insn): If we can't figure out memset arguments
5063 or they are non-constant, call clear_rhs_from_active_local_stores.
5065 2016-02-26 Martin Liska <mliska@suse.cz>
5067 * doc/extend.texi: Mention clog10, clog10f an clog10l
5068 in Builtins section.
5070 2016-02-26 Martin Liska <mliska@suse.cz>
5072 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
5074 (resolve_args_picking_1): Likewise.
5075 * dwarf2out.h (struct GTY): Likewise.
5077 2016-02-26 Martin Liska <mliska@suse.cz>
5079 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
5081 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
5083 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
5084 Martin Liska <mliska@suse.cz>
5086 * doc/install.texi: Mention --enable-valgrind-annotations.
5088 2016-02-26 Richard Biener <rguenther@suse.de>
5090 PR tree-optimization/69551
5091 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
5092 looking through aliases adjust DECL_PT_UID to refer to the
5093 ultimate alias target.
5095 2016-02-25 Martin Liska <mliska@suse.cz>
5098 * alloc-pool.c (after_memory_report): New variable.
5099 * alloc-pool.h (base_pool_allocator ::release): Do not use
5100 the infrastructure if after_memory_report.
5101 * toplev.c (toplev::main): Mark after memory report.
5103 2016-02-25 Richard Biener <rguenther@suse.de>
5105 PR tree-optimization/48795
5106 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
5108 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
5111 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
5112 offloading is enabled and -fopenacc or -fopenmp is specified.
5113 (CRTOFFLOADEND): Likewise.
5114 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
5115 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
5116 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
5117 (offload_objects_file_name): New static var.
5118 (tool_cleanup): Remove offload_objects_file_name file.
5119 (find_offloadbeginend): Replace with ...
5120 (find_crtoffloadtable): ... this.
5121 (run_gcc): Remove offload_argc and offload_argv.
5122 Get offload_objects_file_name from -foffload-objects=... option.
5123 Read names of object files with offload from this file, pass them to
5124 compile_images_for_offload_targets. Don't call find_offloadbeginend and
5125 don't pass offloadbegin and offloadend to the linker. Don't pass
5126 offload non-LTO files to the linker, because now they're not claimed.
5128 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
5131 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5132 on builtin_unreachable.
5134 2016-02-25 Jakub Jelinek <jakub@redhat.com>
5136 PR rtl-optimization/69896
5137 * regcprop.c: Include cfgrtl.h.
5138 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
5139 than remembered mode, either delete it (if noop_move_p), or
5140 treat like copy_p but not noop_p instruction.
5142 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5145 * dwarf2out.c (gen_variable_die): Work around buggy LTO
5146 - allow NULL decl for Fortran DW_TAG_common_block variables.
5148 2016-02-24 Jason Merrill <jason@redhat.com>
5150 * common.opt (flifetime-dse): Add -flifetime-dse=1.
5152 2016-02-24 Richard Biener <rguenther@suse.de>
5153 Jakub Jelinek <jakub@redhat.com>
5156 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
5157 conditionally executed ops to well-defined overflow behavior.
5159 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5162 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
5165 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5167 PR rtl-optimization/69886
5168 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
5169 argument. Use it when checking validity of set instructions.
5170 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
5171 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
5173 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
5174 * store-motion.c (find_moveable_store): Update
5175 can_assign_to_reg_without_clobbers_p callsite.
5177 2016-02-24 Richard Biener <rguenther@suse.de>
5180 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
5182 (record_nonwrapping_iv): Do not fall back to the low/high bound
5183 for non-constant IV bases if the stmt is not always executed.
5185 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5187 * config/arm/arm-cores.def (cortex-a32): New entry.
5188 * config/arm/arm-tables.opt: Regenerate.
5189 * config/arm/arm-tune.md: Regenerate.
5190 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
5191 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
5192 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
5193 for -mcpu and -mtune.
5195 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5198 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
5199 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
5200 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
5201 (atomic_loaddi_1): Delete.
5202 (atomic_loaddi): Rewrite expander using the above changes.
5204 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5207 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
5210 2016-02-24 Jakub Jelinek <jakub@redhat.com>
5211 Richard Biener <rguenth@suse.de>
5214 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
5215 set_mem_attributes if tem is SSA_NAME which got expanded
5218 2016-02-24 Richard Biener <rguenther@suse.de>
5220 PR tree-optimization/69907
5221 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
5222 end of permutations for BB vectorization.
5224 2016-02-24 Christian Bruel <christian.bruel@st.com>
5226 * config/arm/arm-c.c (arm_option_override): Initialize
5227 target_option_current_node.
5228 * config/arm/arm.c (arm_pragma_target_parse): Replace
5229 build_target_option_node call by target_option_current_node.
5230 Set target_option_current_node.
5233 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
5236 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
5237 define_insn_and_split to define_insn.
5238 (zero_extendqi<mode>2_dot2): Same.
5239 (extendqi<mode>2_dot): Same.
5240 (extendqi<mode>2_dot2): Same.
5242 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5244 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
5245 and add bypass for AES{D,E} and AESMC pairs.
5246 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
5249 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5251 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
5252 series for reciprocal square root in Exynos M1.
5254 2016-02-23 Martin Sebor <msebor@redhat.com>
5257 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
5258 __builtin_alloca_with_align.
5260 2016-02-23 Richard Henderson <rth@redhat.com>
5262 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
5263 (ix86_register_pragmas): Remove __seg_tls.
5264 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
5265 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
5266 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
5267 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
5268 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
5269 * doc/extend.texi (__seg_tls): Remove item.
5271 2016-02-23 Richard Biener <rguenther@suse.de>
5273 * alloc-pool.h (struct allocation_object): Make id member
5274 conditional on CHECKING_P again.
5275 (get_instance): Adjust.
5276 (base_pool_allocator): Likewise.
5278 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5280 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
5281 (parallelize_loops): In OpenACC kernels mode, set n_threads to
5283 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
5285 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5287 2016-02-23 Richard Biener <rguenther@suse.de>
5289 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
5290 * bitmap.h (struct bitmap_usage): Likewise.
5291 (bitmap_move): Declare.
5292 * bitmap.c (register_overhead): Take size_t argument.
5293 (bitmap_move): New function.
5294 * df-problems.c (df_rd_transfer_function): Use bitmap_move
5295 to properly account overhead.
5296 * tree.c (free_node): Use tree_size.
5298 2016-02-23 Jakub Jelinek <jakub@redhat.com>
5301 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5302 when inverting comparison.
5305 * common.opt (Wunreachable-code): Add Warning flag.
5307 2016-02-23 Mark Wielaard <mjw@redhat.com>
5308 Jakub Jelinek <jakub@redhat.com>
5311 * cgraphunit.c (check_global_declaration): Check main_input_filename
5312 and DECL_SOURCE_FILE are not NULL.
5314 2016-02-23 Martin Jambor <mjambor@suse.cz>
5316 PR tree-optimization/69666
5317 * tree-sra.c (sra_modify_assign): Do not attempt to create
5318 default_def replacements for unscalarizable regions.
5320 2016-02-20 Mark Wielaard <mjw@redhat.com>
5323 * cgraphunit.c (check_global_declaration): Check level of
5324 warn_unused_const_variable and main_input_filename.
5325 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5326 (-Wunused-variable): For C implies -Wunused-const-variable=1.
5327 (-Wunused-const-variable): Explain levels 1 and 2.
5329 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5332 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5333 identical arguments. Formatting and spelling fixes.
5336 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5341 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5342 and m68k-devices.def.
5343 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5344 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5346 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5348 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5349 and HImode registers.
5351 2016-02-22 Richard Biener <rguenther@suse.de>
5353 PR tree-optimization/69882
5354 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5355 preserve permutations present because of gaps.
5356 (vect_supported_load_permutation_p): Always continue checking
5357 permutations after vect_attempt_slp_rearrange_stmts.
5359 2016-02-22 Bin Cheng <bin.cheng@arm.com>
5361 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5362 min_profitable_estimate, rather than min_profitable_iters.
5364 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5367 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5368 SImode for last match_operand.
5370 2016-02-22 Martin Liska <mliska@suse.cz>
5372 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5373 return bitsize - 1 as the return value.
5375 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5379 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5380 Handle negative shift counts.
5381 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5382 force_reg on the shift constant.
5383 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
5384 (lshrsi3_d): Handle negative shift counts.
5386 2016-02-22 Richard Biener <rguenther@suse.de>
5387 Tom de Vries <tom@codesourcery.com>
5389 * graph.c: Include dumpfile.h.
5390 (print_graph_cfg): Split into three overloads.
5391 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5393 2016-02-22 Tom de Vries <tom@codesourcery.com>
5395 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5398 2016-02-22 Richard Biener <rguenther@suse.de>
5401 * ipa-inline-transform.c (inline_call): When not updating
5402 overall summaries adjust self size by the growth estimate.
5403 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5404 hash-set, do not update overall summaries here. Renamed from ...
5405 (inline_to_all_callers): ... this which is now wrapping the
5406 above and performing delayed overall summary update.
5407 (early_inline_small_functions): Delay updating of the overall
5410 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
5412 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5415 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5418 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5419 :%* in %:gt() argument.
5420 (greater_than_spec_func): Adjust for expecting only numbers,
5421 if there are more than two numbers, compare the last two.
5423 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
5425 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5426 -Wnarrowing with -std.
5428 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5431 * expr.c (store_field): Don't use bit-field path if exp is
5432 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5433 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5434 and the assignment can be performed by bitwise copy. Formatting
5438 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5439 call copy_reg_eh_region_note_forward on before and/or after sequences
5440 and remove note from insn if it no longer can throw.
5443 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5446 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5448 * config/s390/vector.md: Add missing commutative operand markers
5449 to the patterns which qualify for one.
5450 * config/s390/vx-builtins.md: Likewise.
5452 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5454 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5455 types to mode iterators.
5456 (vec_double): ... and mode attribute.
5457 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5459 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5461 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5462 Change the predicate of op2 from nonimmediate to general and let
5463 reload fix it if necessary.
5465 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5467 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5469 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5471 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5474 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5476 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5477 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5478 * config/s390/s390.md ("movstr<P:mode>"): Call
5479 s390_expand_vec_movstr.
5481 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5483 * config/s390/s390.md: Add missing output modifier for operand 1
5484 to print it as address properly.
5486 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5488 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5489 * config/s390/2964.md: New file.
5490 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5491 of insn grouping attributes depending on the CPU level.
5492 (s390_get_unit_mask): New function.
5493 (s390_sched_score): Remove the OOO from the scheduling macros.
5494 Add loop to calculate a score for the instruction mix.
5495 (s390_sched_reorder): Likewise plus improve debug output.
5496 (s390_sched_variable_issue): Rename macros as above. Calculate
5497 the unit distances after actually scheduling an insn. Improve
5499 (s390_sched_init): Clear last_scheduled_unit_distance array.
5500 * config/s390/s390.md: Include 2964.md.
5502 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5505 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5506 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5507 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5508 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5509 *avx512f_<code>v8div16qi2_mask_1): New insns.
5511 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5514 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5517 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5518 earlyclobber from target. Use wF constraint for fused memory
5520 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5522 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5523 Martin Liska <mliska@suse.cz>
5526 * cfgexpand.c (asan_sanitize_stack_p): New function.
5527 (partition_stack_vars): Use the function.
5528 (expand_stack_vars): Likewise.
5529 (defer_stack_allocation): Likewise.
5530 (expand_used_vars): Likewise.
5532 2016-02-18 Richard Biener <rguenther@suse.de>
5535 * fold-const.c (operand_equal_p): Properly compare offsets for
5536 IMAGPART_EXPR and ARRAY_REF.
5538 2016-02-18 Nick Clifton <nickc@redhat.com>
5542 * config/arm/arm.c (arm_option_override_internal): Disable
5543 interworking if the target does not support thumb instructions.
5544 (arm_reload_in_hi): Handle the case where a register to register
5545 move needs reloading because there is no simple pattern to handle
5547 (arm_reload_out_hi): Likewise.
5549 2016-02-18 Richard Biener <rguenther@suse.de>
5552 * match.pd: Don't use fold_binary or fold_unary for folding
5555 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5558 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5559 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5560 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5561 warn on gimple_no_warning_p statements.
5563 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5565 * doc/extend.texi (C++ Attributes): Correct description of
5566 warn_unused type attribute.
5568 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5570 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5571 correct instruction.
5573 2016-02-17 Richard Biener <rguenther@suse.de>
5575 PR rtl-optimization/69609
5576 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5577 (find_traces_1_round): When ending a trace update cached priority
5579 (bb_to_key): Use cached priority when available.
5580 (copy_bb): Initialize cached priority.
5581 (reorder_basic_blocks_software_trace_cache): Likewise.
5583 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5586 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5588 (aarch64_comparison_operator): Break overly long line into two.
5589 (aarch64_comparison_operation): Likewise.
5590 * config/aarch64/aarch64.md (cstorecc4): Use
5591 aarch64_comparison_operator_mode instead of
5592 aarch64_comparison_operator.
5593 (cstore<mode>4): Likewise.
5594 (aarch64_cstore<mode>): Likewise.
5595 (*cstoresi_insn_uxtw): Likewise.
5596 (cstore<mode>_neg): Likewise.
5597 (*cstoresi_neg_uxtw): Likewise.
5599 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5602 * config/arm/predicates.md (arm_comparison_operator_mode):
5604 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5605 instead of arm_comparison_operator.
5606 (*mov_negscc): Likewise.
5607 (*mov_notscc): Likewise.
5608 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5609 (*thumb2_mov_negscc): Likewise.
5610 (*thumb2_mov_negscc_strict_it): Likewise.
5611 (*thumb2_mov_notscc): Likewise.
5612 (*thumb2_mov_notscc_strict_it): Likewise.
5614 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5616 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5619 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5621 * config/visium/visium.c (machine_libfunc_index): New enum.
5622 (machine_libfuncs): New structure.
5623 (visium_libfuncs): New static variable.
5624 (TARGET_INIT_LIBFUNCS): Define to...
5625 (visium_init_libfuncs): ...this. New function.
5626 (expand_block_move_4): Use the appropriate libfunc.
5627 (expand_block_move_2): Likewise.
5628 (expand_block_move_1): Likewise.
5629 (expand_block_set_4): Likewise.
5630 (expand_block_set_2): Likewise.
5631 (expand_block_set_1): Likewise.
5632 (visium_trampoline_init): Likewise.
5634 2016-02-17 Nick Clifton <nickc@redhat.com>
5636 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5637 TI's devices.csv file as of March 2016.
5639 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5642 * opts-global.c (handle_common_deferred_options): Introduce and
5643 initialize two global variables to remember command-line options
5644 specifying a stack-limiting register.
5645 * opts.h: Add extern declarations of the two new global variables.
5646 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5647 variable based on the values of the two new global variables.
5649 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5652 * common.opt (Wnonnull-compare): New warning.
5653 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5654 of arguments against NULL.
5655 (-Wnonnull-compare): Document.
5656 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5657 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5658 * passes.def (pass_warn_nonnull_compare): Add.
5659 * gimple-ssa-nonnull-compare.c: New file.
5661 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5663 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5664 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5666 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5668 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5669 reciprocal sqrt for -mlow-precision-recip-sqrt.
5671 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5672 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5674 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5675 always use lane loads to construct non-constant vectors.
5677 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5679 * config/aarch64/aarch64.md
5680 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5681 constraints for operand 3.
5682 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5684 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5685 Richard Biener <rguenther@suse.de>
5687 PR tree-optimization/69820
5688 * tree-vect-patterns.c (type_conversion_p): Return false if
5689 *orig_type is unsigned single precision or boolean.
5690 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5693 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5695 PR rtl-optimization/69764
5696 PR rtl-optimization/69771
5697 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5698 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5700 2016-02-16 Richard Biener <rguenther@suse.de>
5702 PR tree-optimization/69776
5703 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5705 (indirect_refs_may_alias_p): Likewise.
5706 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5707 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5708 according to tbaa_p.
5709 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5710 (optimize_stmt): For redundant store discovery do not allow tbaa.
5712 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5714 PR tree-optimization/69714
5715 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5716 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5718 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5720 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5721 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5722 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5723 * config/arc/arc.c (arc_init): Check FPU options.
5724 (get_arc_condition_code): Handle new CC_FPU* modes.
5725 (arc_select_cc_mode): Likewise.
5726 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5727 register pair only. Allow access for ARCv2 accumulator.
5728 (gen_compare_reg): Whenever we have FPU support use FPU compare
5730 (arc_reorg): Don't generate brcc insns when FPU compare
5731 instructions are involved.
5732 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5733 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5734 floating point emulation.
5735 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5736 (REVERSE_CONDITION): Add new CC_FPU* modes.
5737 (TARGET_FP_SP_BASE): Define.
5738 (TARGET_FP_DP_BASE): Likewise.
5739 (TARGET_FP_SP_FUSED): Likewise.
5740 (TARGET_FP_DP_FUSED): Likewise.
5741 (TARGET_FP_SP_CONV): Likewise.
5742 (TARGET_FP_DP_CONV): Likewise.
5743 (TARGET_FP_SP_SQRT): Likewise.
5744 (TARGET_FP_DP_SQRT): Likewise.
5745 (TARGET_FP_DP_AX): Likewise.
5746 * config/arc/arc.md (ARCV2_ACC): New constant.
5747 (type): New fpu type attribute.
5748 (SDF): Conditional iterator.
5749 (cstore<mode>, cbranch<mode>): Change expand condition.
5750 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5751 handles FPU/FPX cases as well.
5752 * config/arc/arc.opt (mfpu): New option.
5753 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5755 (adddf3, muldf3, subdf3): Removed.
5756 * config/arc/predicates.md (proper_comparison_operator): Recognize
5758 * config/arc/fpu.md: New file.
5759 * doc/invoke.texi (ARC Options): Document mfpu option.
5761 2016-02-16 Richard Biener <rguenther@suse.de>
5763 PR rtl-optimization/69291
5764 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5765 noce_operand_ok check.
5767 2016-02-16 Tom de Vries <tom@codesourcery.com>
5770 * omp-low.c (simd_clone_create): Remove call to
5771 symtab->call_cgraph_insertion_hooks.
5773 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5775 PR tree-optimization/69802
5776 * tree-ssa-reassoc.c (update_range_test): If op is
5777 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5778 op == 1 test of precision 1 integral op, otherwise handle
5779 that case as op itself. Fix up formatting.
5780 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5783 2016-02-16 Richard Biener <rguenther@suse.de>
5785 PR tree-optimization/69586
5786 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5787 types for conversion sources.
5789 2016-02-16 Richard Biener <rguenther@suse.de>
5792 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5793 mask OEP_ADDRESS_OF.
5795 2016-02-16 Alan Modra <amodra@gmail.com>
5798 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5799 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5800 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5802 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5803 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5804 (p8_fmrgow_<mode>): Likewise.
5805 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5807 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5808 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5809 to use movdi_internal64. Remove op0_di.
5810 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5812 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5814 Add support for the FCCMP insn types
5816 * config/aarch64/aarch64.md (fccmp): Change insn type.
5818 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5819 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5820 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5821 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5822 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5823 * config/arm/types.md (fccmps): Add new insn type.
5826 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5828 * alias.c (get_alias_set): Fix a typo in comment.
5830 2016-02-15 Richard Biener <rguenther@suse.de>
5832 PR tree-optimization/69595
5833 * match.pd: Complete range test simplification to true.
5835 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5837 PR rtl-optimization/69648
5838 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5839 pic_offset_table_rtx.
5841 PR rtl-optimization/69752
5842 * ira.c (update_equiv_regs): When looking for more than a single SET,
5843 also take other side effects into account.
5845 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5847 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5848 for z900+ CPUs in 31-bit mode.
5850 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5852 * common/config/s390/s390-common.c (s390_supports_split_stack):
5854 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5855 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5856 * config/s390/s390.c (struct machine_function): New field
5857 split_stack_varargs_pointer.
5858 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5859 in s390_emit_prologue.
5860 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5862 (morestack_ref): New global.
5863 (SPLIT_STACK_AVAILABLE): New macro.
5864 (s390_expand_split_stack_prologue): New function.
5865 (s390_live_on_entry): New function.
5866 (s390_va_start): Use split-stack vararg pointer if appropriate.
5867 (s390_asm_file_end): Emit the split-stack note sections.
5868 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5869 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5870 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5871 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5872 (split_stack_prologue): New expand.
5873 (split_stack_space_check): New expand.
5874 (split_stack_data): New insn.
5875 (split_stack_call): New expand.
5876 (split_stack_call_*): New insn.
5877 (split_stack_cond_call): New expand.
5878 (split_stack_cond_call_*): New insn.
5880 2016-02-15 Richard Biener <rguenther@suse.de>
5882 PR tree-optimization/69783
5883 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5884 Add trivially correct cases.
5886 2016-02-15 Tom de Vries <tom@codesourcery.com>
5889 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5891 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5893 2016-02-15 Richard Biener <rguenther@suse.de>
5895 PR tree-optimization/69776
5896 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5897 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5898 indicate whether we can use TBAA to disambiguate against stores.
5899 Use alias-set zero if not.
5900 (visit_reference_op_store): Do not use TBAA when looking up
5902 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5903 (eliminate_dom_walker::before_dom_children): But not when looking
5904 up redundant stores.
5906 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5908 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5910 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5912 * config/i386/znver1.md
5913 (znver1_pop, znver1_pop_mem,
5914 znver1_load_imov_double_store,
5915 znver1_load_imov_direct_store,
5916 znver1_load_imov_direct_load,
5917 znver1_load_imov_double_load): Add new.
5918 (znver1_insn, znver1_insn_load): Add icmov type.
5920 znver1_sseavx_fma_load,
5922 znver1_avx256_fma_load): Fix pipe usage.
5924 2016-02-14 Alan Modra <amodra@gmail.com>
5927 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5928 with an invalid hard reg, reload just the reg not the entire
5929 pre/post-inc/dec address expression.
5931 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5934 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5935 fixed R1_REG scratch reg.
5936 (sibcall_value_pcrel_fdpic): Likewise.
5938 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5942 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5944 2016-02-12 Walter Lee <walt@tilera.com>
5946 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5947 * config/tilegx/t-tilegx: Likewise.
5949 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5952 * diagnostic-show-locus.c (struct line_span): New struct.
5953 (layout::get_first_line): Delete.
5954 (layout::get_last_line): Delete.
5955 (layout::get_num_line_spans): New member function.
5956 (layout::get_line_span): Likewise.
5957 (layout::print_heading_for_line_span_index_p): Likewise.
5958 (layout::get_expanded_location): Likewise.
5959 (layout::calculate_line_spans): Likewise.
5960 (layout::m_first_line): Delete.
5961 (layout::m_last_line): Delete.
5962 (layout::m_line_spans): New field.
5963 (layout::layout): Update comment. Replace m_first_line and
5964 m_last_line with m_line_spans, replacing their initialization
5965 with a call to calculate_line_spans.
5966 (diagnostic_show_locus): When printing source lines and
5967 annotations, rather than looping over a single span
5968 of lines, instead loop over each line_span within
5969 the layout, with an inner loop over the lines within them.
5970 Call the context's start_span callback when changing line spans.
5971 * diagnostic.c (diagnostic_initialize): Initialize start_span.
5972 (diagnostic_build_prefix): Break out the building of the location
5973 part of the string into...
5974 (diagnostic_get_location_text): ...this new function, rewriting
5975 it from nested ternary expressions to a sequence of "if"
5977 (default_diagnostic_start_span_fn): New function.
5978 * diagnostic.h (diagnostic_start_span_fn): New typedef.
5979 (diagnostic_context::start_span): New field.
5980 (default_diagnostic_start_span_fn): New prototype.
5982 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5985 * gcc.c (driver::finalize): Fix cleanup of "specs".
5987 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5991 * gcc.c (driver::driver): Initialize m_option_suggestions.
5992 (driver::~driver): Clean up m_option_suggestions.
5993 (suggest_option): Convert to...
5994 (driver::suggest_option): ...this, and split out into
5995 driver::build_option_suggestions and find_closest_string.
5996 (driver::build_option_suggestions): New function, from
5997 first half of suggest_option. Special-case
5998 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5999 the sanitizer_opts array. For options of enum types, add the
6000 various enum values to the candidate strings.
6001 (driver::handle_unrecognized_options): Remove "const".
6002 * gcc.h (driver::handle_unrecognized_options): Likewise.
6003 (driver::build_option_suggestions): New decl.
6004 (driver::suggest_option): New decl.
6005 (driver::m_option_suggestions): New field.
6006 * opts-common.c (add_misspelling_candidates): New function.
6007 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
6008 and make non-static.
6009 * opts.h (sanitizer_opts): New array decl.
6010 (add_misspelling_candidates): New function decl.
6011 * spellcheck.c (find_closest_string): New function.
6012 * spellcheck.h (find_closest_string): New function decl.
6014 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6016 PR rtl-optimization/69764
6017 PR rtl-optimization/69771
6018 * optabs.c (expand_binop_directly): For shift_optab_p, force
6019 convert_modes with VOIDmode if xop1 has VOIDmode.
6021 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
6024 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
6025 to correctly determine instrumentation thunks.
6027 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6030 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
6031 type by reference, force lhs on the call.
6034 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
6035 Compute retval and retbnd early in all cases if split_part_return_p
6036 and return_bb is not EXIT. Remove all clobber stmts and reset
6037 all debug stmts that refer to SSA_NAMEs defined in split part,
6038 except if it is retval, in that case replace the old retval with the
6039 lhs of the call to the split part.
6041 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6044 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6047 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6048 whose result is used in PHI.
6049 (maybe_optimize_range_tests): Likewise.
6050 (final_range_test_p): Likweise.
6052 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
6055 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6056 whose result is used in PHI.
6057 (maybe_optimize_range_tests): Likewise.
6058 (final_range_test_p): Likweise.
6060 2016-02-12 Jakub Jelinek <jakub@redhat.com>
6062 * cgraph.c: Spelling fixes - behaviour -> behavior and
6063 neighbour -> neighbor.
6064 * target.def: Likewise.
6065 * sel-sched.c: Likewise.
6066 * config/mips/mips.c: Likewise.
6067 * config/arc/arc.md: Likewise.
6068 * config/arm/cortex-a57.md: Likewise.
6069 * config/arm/arm.c: Likewise.
6070 * config/arm/neon.md: Likewise.
6071 * config/arm/arm-c.c: Likewise.
6072 * config/vms/vms-c.c: Likewise.
6073 * config/s390/s390.c: Likewise.
6074 * config/i386/znver1.md: Likewise.
6075 * config/i386/i386.c: Likewise.
6076 * config/ia64/hpux-unix2003.h: Likewise.
6077 * config/msp430/msp430.md: Likewise.
6078 * config/rx/rx.c: Likewise.
6079 * config/rx/rx.md: Likewise.
6080 * config/aarch64/aarch64-simd.md: Likewise.
6081 * config/aarch64/aarch64.c: Likewise.
6082 * config/nvptx/nvptx.c: Likewise.
6083 * config/bfin/bfin.c: Likewise.
6084 * config/cris/cris.opt: Likewise.
6085 * config/rs6000/rs6000.c: Likewise.
6086 * target.h: Likewise.
6087 * spellcheck.c: Likewise.
6088 * ira-build.c: Likewise.
6089 * tree-inline.c: Likewise.
6090 * builtins.c: Likewise.
6091 * lra-constraints.c: Likewise.
6092 * explow.c: Likewise.
6093 * hwint.h: Likewise.
6094 * targhooks.c: Likewise.
6095 * tree-vect-data-refs.c: Likewise.
6097 * doc/tm.texi: Likewise.
6098 * doc/extend.texi: Likewise.
6099 * doc/install.texi: Likewise.
6100 * doc/md.texi: Likewise.
6101 * tree-ssa-tail-merge.c: Likewise.
6102 * sched-int.h: Likewise.
6103 * match.pd: Likewise.
6104 * sched-ebb.c: Likewise.
6105 * target.def (omit_struct_return_reg): Likewise.
6106 * gimple-ssa-isolate-paths.c: Likewise.
6107 (find_implicit_erroneous_behaviour): Renamed to...
6108 (find_implicit_erroneous_behavior): ... this.
6109 (find_explicit_erroneous_behaviour): Renamed to...
6110 (find_explicit_erroneous_behavior): ... this.
6111 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
6113 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
6115 PR rtl-optimization/64682
6116 PR rtl-optimization/69567
6117 PR rtl-optimization/69737
6118 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
6119 in I2 as well, just lose it.
6121 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6123 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
6125 (aarch64_last_printed_tune_string): Likewise.
6126 (aarch64_declare_function_name): Only output .arch assembler
6127 directive if it will be different from the previously output
6128 directive. Same for .tune comment but only if -dA is set.
6129 (aarch64_start_file): New function.
6130 (TARGET_ASM_FILE_START): Define.
6132 2016-02-11 David Malcolm <dmalcolm@redhat.com>
6135 * Makefile.in (PLUGIN_HEADERS): Add params.list.
6137 2016-02-11 Jakub Jelinek <jakub@redhat.com>
6140 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
6141 -Wmaybe-uninitialized warning.
6143 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
6146 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
6148 2016-02-11 Richard Biener <rguenther@suse.de>
6150 PR rtl-optimization/69291
6151 * ifcvt.c (noce_try_store_flag_constants): Do not allow
6152 subexpressions affected by changing the result.
6154 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
6157 * lra-constraints.c (curr_insn_transform): Find in/out operands
6158 for secondary memory moves. Update dups.
6160 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
6162 PR tree-optimization/69652
6163 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
6164 to nested loop, did source re-formatting, skip debug statements,
6165 add check on statement with volatile operand, remove dead scalar
6168 2016-02-10 Jakub Jelinek <jakub@redhat.com>
6169 Patrick Palka <ppalka@gcc.gnu.org>
6173 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
6174 calls if the return type is TREE_ADDRESSABLE.
6175 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
6176 * ipa-split.c (split_function): Fix doubled "we" in comment.
6177 Use void return type for the split part even if
6178 !split_point->split_part_set_retval.
6180 2016-02-10 Bin Cheng <bin.cheng@arm.com>
6182 PR tree-optimization/68021
6183 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
6184 when computing the value of biv cand by itself.
6186 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
6188 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
6189 (cortexa57_tunings): Likewise.
6190 (cortexa72_tunings): Likewise.
6191 (arch_macro_fusion_pair_p): Add support for AES fusion.
6192 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
6193 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6194 Allow virtual registers before reload so early scheduling works.
6195 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
6196 correct latency and pipeline.
6197 (cortex_a57_crypto_complex): Likewise.
6198 (cortex_a57_crypto_xor): Likewise.
6199 (define_bypass): Add AES bypass.
6201 2016-02-10 Richard Biener <rguenther@suse.de>
6203 PR tree-optimization/69726
6204 * passes.def: Add DCE pass before late uninit.
6205 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
6206 really fixup if-conversions job.
6208 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
6210 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
6211 (arm_cortex_a57_tune): Likewise.
6212 (aarch_macro_fusion_pair_p): Add support for AES fusion.
6213 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
6215 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
6217 * timevar.def (TV_PHASE_DBGINFO): Delete.
6218 (TV_PHASE_CHECK_DBGINFO): Likewise.
6219 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
6221 2016-02-10 Richard Biener <rguenther@suse.de>
6223 PR tree-optimization/69719
6224 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6225 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
6227 2016-02-09 Andrew Pinski <apinski@cavium.com>
6230 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
6231 get_vcond_mask_icode returns false.
6233 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
6236 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
6237 an ADDIS that adds a pointer to a large constant that sets the
6238 upper16 bits with a load operation.
6240 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6243 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
6245 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
6247 (vzipq_s16): Likewise.
6248 (vzipq_s32): Likewise.
6249 (vzipq_f32): Likewise.
6250 (vzipq_u8): Likewise.
6251 (vzipq_u16): Likewise.
6252 (vzipq_u32): Likewise.
6253 (vzipq_p8): Likewise.
6254 (vzipq_p16): Likewise.
6256 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6259 * config/arm/arm.c (neon_endian_lane_map): New function.
6260 (neon_vector_pair_endian_lane_map): New function.
6261 (arm_evpc_neon_vuzp): Allow for big endian lane order.
6262 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
6264 (vuzpq_s16): Likewise.
6265 (vuzpq_s32): Likewise.
6266 (vuzpq_f32): Likewise.
6267 (vuzpq_u8): Likewise.
6268 (vuzpq_u16): Likewise.
6269 (vuzpq_u32): Likewise.
6270 (vuzpq_p8): Likewise.
6271 (vuzpq_p16): Likewise.
6273 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
6276 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
6279 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
6281 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
6282 truncate const_int operand 1 to QImode.
6284 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
6286 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
6287 corresponding to an abnormal edge.
6289 2016-02-09 Tom de Vries <tom@codesourcery.com>
6291 PR tree-optimization/69599
6292 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
6294 (find_func_aliases_for_builtin_call, find_func_clobbers)
6295 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
6298 2016-02-09 Richard Biener <rguenther@suse.de>
6300 PR tree-optimization/69715
6301 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6302 LHS on calls as non-rewritable.
6304 2016-02-09 Tom de Vries <tom@codesourcery.com>
6307 * lto-wrapper.c (append_diag_options): New function.
6308 (compile_offload_image): Call append_diag_options.
6310 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
6313 * doc/extend.texi (Flag Output Operands): Correct sectioning.
6314 Minor copy-edit to fix verb tenses.
6316 2016-02-08 Jakub Jelinek <jakub@redhat.com>
6318 PR tree-optimization/69209
6319 * ipa-split.c (split_function): If split part is not
6320 returning retval, retval has gimple type but is not
6321 gimple value, force it into a SSA_NAME first.
6323 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
6325 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6328 2016-02-08 Jason Merrill <jason@redhat.com>
6331 * convert.c (convert_to_integer_1): Check dofold on truncation
6333 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6334 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6335 Rename from *_nofold.
6336 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6337 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6339 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6342 * tree.c (build_common_tree_nodes): Remove short_double argument.
6343 All callers changed.
6344 * tree.h (build_common_tree_nodes): Adjust declaration.
6345 * doc/invoke.texi (-fshort-double): Remove documentation.
6346 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6347 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6348 * lto-wrapper.c (merge_and_complain, append_compiler_options)
6349 (append_linker_options): Don't handle OPT_fshort_double.
6351 PR rtl-optimization/68730
6352 * lra-remat.c (insn_to_cand_activation): New static variable.
6353 (lra_remat): Allocate and free it.
6354 (create_cand): New arg activation. Initialize a field in
6355 insn_to_cand_activation if it is nonnull.
6356 (create_cands): Pass the activation insn to create_cand when making
6357 a candidate involving an output reload. Reorganize code a little.
6358 (do_remat): Keep track of active status of candidates in a separate
6361 2016-02-08 Richard Biener <rguenther@suse.de>
6363 PR tree-optimization/69719
6364 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6365 Properly use absolute of the difference of the two offsets to
6366 compare or adjust the segment length.
6368 2016-02-08 Richard Biener <rguenther@suse.de>
6369 Jeff Law <law@redhat.com>
6372 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6373 types for anonymous SSA names.
6375 2016-02-08 Richard Biener <rguenther@suse.de>
6377 PR rtl-optimization/69274
6378 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6380 2016-02-08 Jeff Law <law@redhat.com>
6382 PR tree-optimization/65917
6383 * tree-ssa-dom.c (record_temporary_equivalences): Record both
6384 equivalences from if (x == y) style conditionals.
6385 (loop_depth_of_name): Remove.
6386 (record_equality): Remove loop depth check.
6387 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6388 (const_and_copies::record_const_or_copy_raw): New member function.
6389 * tree-ssa-scopedtables.c
6390 (const_and_copies::record_const_or_copy_raw): New, factored out of
6391 (const_and_copies::record_const_or_copy): Call new member function.
6393 2016-02-05 Jeff Law <law@redhat.com>
6395 PR tree-optimization/68541
6396 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6397 (count_stmts_in_block): New function.
6398 (poor_ifcvt_candidate_code): Likewise.
6399 (is_feasible_trace): Add some heuristics to determine when path
6400 splitting is profitable.
6401 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6402 is a diamond with a single exit.
6404 2016-02-05 Martin Sebor <msebor@redhat.com>
6407 * doc/invoke.texi: Update -Wplacement-new to take an optional
6410 2016-02-06 Richard Henderson <rth@redhat.com>
6413 * tree.c (tree_nop_conversion_p): Do not strip casts into or
6414 out of non-standard address spaces.
6416 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6418 PR rtl-optimization/69691
6419 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6421 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
6423 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6424 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6425 (*ieee128_mfvsrd_64bit): Likewise.
6426 (*ieee128_mfvsrd_32bit): Likewise.
6428 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6432 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6434 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6435 instrumented_version.
6437 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
6439 * doc/invoke.texi (Optimize Options): In table of --param options
6440 rename second occurrence of tracer-min-branch-ratio to
6441 tracer-min-branch-probability, rename
6442 tracer-min-branch-ratio-feedback to
6443 tracer-min-branch-probability-feedback and clarify description,
6444 rename sched-spec-state-edge-prob-cutoff to
6445 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6446 to selsched-insns-to-rename, rename lto-minpartition to
6447 lto-min-partition, delete reorder-blocks-duplicate and
6448 reorder-blocks-duplicate-feedback.
6450 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6452 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6455 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6457 * doc/extend.texi: S/390: Correct some typos.
6459 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6461 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6463 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6466 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6467 (s390_register_info_gprtofpr): Use new macros above.
6468 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6470 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6471 its name. Adjust restore and save gpr ranges.
6472 (s390_register_info_set_ranges): New function.
6473 (s390_register_info): Use new macros above. Call
6474 s390_register_info_set_ranges.
6475 (s390_optimize_register_info): Likewise.
6476 (s390_hard_regno_rename_ok): Use new macros.
6477 (s390_hard_regno_scratch_ok): Likewise.
6478 (s390_emit_epilogue): Likewise.
6479 (s390_can_use_return_insn): Likewise.
6480 (s390_optimize_prologue): Likewise.
6481 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6483 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6486 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6488 (ix86_option_override_internal): Disable TARGET_STV even for
6489 -m{incoming,preferred}-stack-boundary=3.
6491 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6493 * config.gcc: Mark deprecated rtems targets as obsolete.
6495 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6497 PR rtl-optimization/64682
6498 PR rtl-optimization/69567
6499 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6500 before I2 only if the register is both used and set in I2.
6502 2016-02-04 DJ Delorie <dj@redhat.com>
6504 * config/msp430/msp430.c (msp430_start_function): Add function type.
6506 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6509 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6511 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6513 PR rtl-optimization/69577
6515 2015-10-29 Richard Henderson <rth@redhat.com>
6519 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6520 sse check to the exact conditions of PR 67609.
6522 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6525 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6526 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6527 not allowed into the traditional Altivec registers.
6528 (movtd_64bit_nodm): Likewise.
6529 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6531 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6533 * config/aarch64/cortex-a57-fma-steering.c
6534 (aarch64_register_fma_steering): Remove "static" from arguments
6537 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6540 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6543 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6545 * doc/invoke.texi: Delete -mno-fma4.
6547 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6549 PR rtl-optimization/69577
6550 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6551 (find_subregs_of_mode): Update accordingly. Iterate over partial
6554 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6556 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6557 * config/arm/arm.c (neon_reinterpret): Remove.
6558 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6559 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6560 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6561 vreinterpretti): Remove.
6562 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6563 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6564 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6565 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6566 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6567 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6568 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6569 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6570 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6571 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6572 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6573 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6574 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6575 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6576 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6577 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6578 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6579 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6580 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6581 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6582 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6583 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6584 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6585 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6586 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6587 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6588 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6589 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6590 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6591 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6592 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6593 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6594 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6595 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6596 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6597 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6598 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6599 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6600 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6601 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6602 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6603 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6604 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6605 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6606 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6607 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6608 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6609 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6610 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6611 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6612 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6613 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6614 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6615 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6616 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6617 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6618 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6619 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6620 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6621 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6622 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6623 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6624 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6625 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6626 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6627 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6628 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6629 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6630 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6631 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6632 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6633 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6634 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6635 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6636 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6637 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6638 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6639 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6640 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6641 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6642 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6643 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6644 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6645 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6646 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6647 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6648 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6649 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6650 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6651 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6652 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6653 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6654 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6655 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6656 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6657 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6658 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6659 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6660 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6661 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6662 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6663 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6664 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6666 2016-02-04 Martin Liska <mliska@suse.cz>
6669 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6670 that are gimple_store_p.
6671 (maybe_instrument_call): Likewise.
6673 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6675 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6676 register scaling out of memory reference and comment why.
6678 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6682 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6683 folding the source of a SET.
6685 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6689 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6690 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6692 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6696 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6699 2016-02-04 Christian Bruel <christian.bruel@st.com>
6701 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6702 * config/arm/arm.c (arm_set_current_function): Likewise.
6704 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6705 Ilya Enkovich <enkovich.gnu@gmail.com>
6706 H.J. Lu <hongjiu.lu@intel.com>
6709 * config/i386/i386.c (convert_scalars_to_vector): Remove
6710 stack alignment fixes.
6711 (ix86_option_override_internal): Disable TARGET_STV if stack
6712 might not be aligned enough.
6713 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6715 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6717 * gcc/config/i386/x86-tune.def: Disable default prefetching
6720 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6721 Vladimir Makarov <vmakarov@redhat.com>
6724 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6725 in validating fused toc addresses.
6727 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6730 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6731 range->m_caret fields if range->m_show_caret_p is false.
6734 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6735 Force oldval into register if it does not satisfy reg_or_short_operand
6736 predicate. Fix up formatting.
6738 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6739 Alexandre Oliva <aoliva@redhat.com>
6742 * lra-constraints.c (simplify_operand_subreg): Check additionally
6743 address validity after potential reloading.
6744 (process_address_1): Check insns validity. In case of failure do
6747 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6750 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6753 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6755 * wide-int.cc (canonize_uhwi): New function.
6756 (wi::divmod_internal): Use it.
6758 2016-02-02 James Norris <jnorris@codesourcery.com
6760 * gimplify.c (omp_notice_variable): Add usage check.
6762 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6764 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6765 like LE, GE, LT, GT when emitting relational operator.
6767 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6769 * ira-costs.c (find_costs_and_classes): Add extra argument.
6770 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6771 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6772 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6773 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6774 Add best_class parameter, and return it if not ALL_REGS.
6775 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6777 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6780 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6782 * config/aarch64/aarch64.c
6783 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6784 (aarch64_ira_change_pseudo_allocno_class): New function.
6786 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6789 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6791 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6793 * config/avr/avr.c (avr_option_override): Set
6794 PARAM_ALLOW_STORE_DATA_RACES to 1.
6796 2016-02-02 Richard Biener <rguenther@suse.de>
6798 PR tree-optimization/69595
6799 * match.pd: Add range test simplifications to true/false.
6801 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6803 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6804 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6807 2016-02-02 Richard Biener <rguenther@suse.de>
6809 PR tree-optimization/69606
6810 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6811 info on the result before moving a stmt.
6813 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6816 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6817 branch with vector comparison.
6818 * config/i386/sse.md (VI48_AVX): New mode iterator.
6819 (define_expand "cbranch<mode>4): Add support for conditional branch
6820 with vector comparison.
6821 * tree-vect-loop.c (optimize_mask_stores): New function.
6822 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6823 has_mask_store field of vect_info.
6824 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6825 vectorized loops having masked stores after vec_info destroy.
6826 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6827 correspondent macros.
6828 (optimize_mask_stores): Add prototype.
6830 2016-02-02 Alan Modra <amodra@gmail.com>
6833 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6836 2016-02-02 Alan Modra <amodra@gmail.com>
6839 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6840 whenever toc_label_name used.
6841 (rs6000_file_start): Don't set up toc section here,
6842 (rs6000_output_function_epilogue): do so here instead,
6843 (rs6000_xcoff_file_start): and here.
6844 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6845 (load_toc_aix_di): Likewise.
6847 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6849 PR rtl-optimization/69592
6850 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6851 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6852 (num_sign_bit_copies_binary_arith_p): New inline function.
6853 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6855 2016-02-01 Jeff Law <law@redhat.com>
6857 PR tree-optimization/69580
6858 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6859 * tree-ssa-threadbackward.c
6860 (fsm_find_control_statement_thread_paths): Do not try to walk
6861 through large PHI nodes.
6863 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6865 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6866 when count is incremented above limit, don't analyze further
6869 * omp-low.c (oacc_parse_default_dims): Avoid
6870 -Wsign-compare warning, make sure value fits into int
6871 rather than just unsigned int.
6873 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6875 PR tree-optimization/67921
6876 * fold-const.c (split_tree): New parameters. Convert pointer
6877 type variable part to proper type before negating.
6878 (fold_binary_loc): Pass new arguments to split_tree.
6880 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6882 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6883 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6884 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6885 * doc/tm.texti: Rebuilt.
6886 * doc/invoke.texi (fopenacc-dim): Document.
6887 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6888 (append_compiler_options): Likewise.
6889 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6890 (oacc_parse_default_dims): New.
6891 (oacc_validate_dims): Add USED arg. Select non-unity default when
6893 (oacc_loop_fixed_partitions): Return mask of used partitions.
6894 (oacc_loop_auto_partitions): Emit dump info.
6895 (oacc_loop_partition): Return mask of used partitions.
6896 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6897 loop partitioning and validation calls.
6899 2016-02-01 Richard Biener <rguenther@suse.de>
6902 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6904 2016-02-01 Richard Biener <rguenther@suse.de>
6906 PR tree-optimization/69574
6907 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6908 of asserting return chrec_dont_know.
6910 2016-02-01 Martin Liska <mliska@suse.cz>
6912 * mem-stats-traits.h: Add copyright header.
6913 * mem-stats.h: Likewise.
6915 2016-02-01 Richard Biener <rguenther@suse.de>
6917 PR tree-optimization/69579
6918 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6919 Do not propagate through abnormal PHI results.
6921 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6923 * postreload.c (reload_cse_simplify): Remove dead code.
6925 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6927 PR rtl-optimization/69570
6928 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6929 if there is more than one set, not if there is a single set.
6931 2016-02-01 Richard Henderson <rth@redhat.com>
6934 * combine.c (make_compound_operation): When looking through a
6935 subreg, make sure to re-extend to the width of the outer mode.
6937 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6939 PR tree-optimization/69546
6940 * wide-int.cc (wi::divmod_internal): For unsigned division
6941 where both operands fit into uhwi, if o1 is 1 and o0 has
6942 msb set, if divident_prec is larger than bits per hwi,
6943 clear another quotient word and return 2 instead of 1.
6944 Similarly for remainder with msb in HWI set, if dividend_prec
6945 is larger than bits per hwi.
6947 2016-01-29 Martin Jambor <mjambor@suse.cz>
6949 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6950 Use short lowercase names.
6951 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
6952 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6953 acq_rel one. Protect warning agains segfaults if
6954 get_memory_order_name returns NULL.
6955 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6956 with release semantics. Do not warn if get_memory_order already did.
6957 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6958 semantics. Fix check for relaxed or acquire semantics. Do not warn
6959 if get_memory_order already did.
6961 2016-01-29 Sebastian Pop <s.pop@samsung.com>
6963 * doc/install.texi: Document that isl-0.16 is supported.
6965 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
6968 * config/i386/constraints.md (Bm): Describe as special memory
6970 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6971 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6972 * genpreds.c (struct constraint_data): Add is_special_memory.
6973 (have_special_memory_constraints, special_memory_start): New
6975 (special_memory_end): Ditto.
6976 (add_constraint): Add new arg is_special_memory. Add code to
6977 process its true value. Update have_special_memory_constraints.
6978 (process_define_constraint): Pass the new arg.
6979 (process_define_register_constraint): Ditto.
6980 (choose_enum_order): Process special memory.
6981 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6982 function insn_extra_special_memory_constraint.
6983 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6984 * gensupport.c (process_rtx): Process
6985 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6986 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6987 * ira-lives.c (single_reg_class): Use
6988 insn_extra_special_memory_constraint.
6989 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6990 * lra-constraints.c (process_alt_operands): Ditto.
6991 (curr_insn_transform): Use insn_extra_special_memory_constraint.
6992 * recog.c (asm_operand_ok, preprocess_constraints): Process
6994 * reload.c (find_reloads): Ditto.
6995 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6996 * stmt.c (parse_input_constraint): Use
6997 insn_extra_special_memory_constraint.
6999 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
7002 * lra-splill.c (lra_final_code_change): Revert r229087 by
7003 removing all sub-registers.
7005 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
7008 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
7010 2016-01-29 Jakub Jelinek <jakub@redhat.com>
7013 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
7014 SSE1, copy target into the temporary reg first before recursing
7017 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
7019 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
7022 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
7024 * ginclude/stdarg.h: Test __cplusplus instead of
7025 __GXX_EXPERIMENTAL_CXX0X__.
7027 2016-01-29 Richard Biener <rguenther@suse.de>
7029 PR tree-optimization/69547
7030 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
7031 Do not mark clobbers necessary.
7032 (mark_all_reaching_defs_necessary_1): Likewise.
7034 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7036 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
7037 declaration name with %qs and print it in both error messages.
7038 Also fix indentation.
7040 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
7043 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
7044 trailing blank line from error message.
7046 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
7049 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
7052 2016-01-29 Richard Biener <rguenther@suse.de>
7055 * match.pd: Allow all integral types when simplifying a
7056 widening or sign-changing conversion.
7058 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7060 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
7061 back to setting codegen_error to fail codegen.
7063 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
7066 * config/i386/constraints.md (C): Only accept constant zero operand.
7067 (BC): New constraint.
7068 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
7069 instead of C constraint.
7070 * doc/md.texi (Machine Constraints): Update description
7073 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
7076 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
7078 2016-01-28 Jakub Jelinek <jakub@redhat.com>
7081 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
7084 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
7086 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
7087 branches if using guessed profile.
7089 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
7091 * graphite-optimize-isl.c (optimize_isl): Fix dump.
7093 2016-01-28 Richard Henderson <rth@redhat.com>
7096 * config/aarch64/aarch64-modes.def (CC_Cmode): New
7097 * config/aarch64/aarch64-protos.h: Update.
7098 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
7099 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
7100 (aarch64_get_condition_code_1): Handle CC_Cmode.
7101 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
7102 (*add<mode>3_compareC_cconly_imm): New.
7103 (*add<mode>3_compareC_cconly): New.
7104 (*add<mode>3_compareC_imm): New.
7105 (add<mode>3_compareC): New.
7106 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
7107 to be first. Use aarch64_carry_operation.
7108 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
7109 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
7110 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
7111 (subti3): Use subdi3_compare1.
7112 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
7113 (sub<mode>3_compare1): New.
7114 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
7115 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
7116 (*subsi3_carryin_uxtw): Likewise.
7117 (*ngc<mode>, *ngcsi_uxtw): Likewise.
7118 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
7119 * config/aarch64/iterators.md (DWI): New.
7120 * config/aarch64/predicates.md (aarch64_carry_operation): New.
7121 (aarch64_borrow_operation): New.
7123 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7125 * graphite-optimize-isl.c (optimize_isl): Print a different debug
7126 message when isl does not return a valid schedule.
7128 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7130 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7131 Remove comments from class declarations: they are already in the code
7134 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7136 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
7138 (ternary_op_to_tree): Same.
7139 (unary_op_to_tree): Same.
7140 (nary_op_to_tree): Same.
7141 (gcc_expression_from_isl_expr_op): Same.
7142 (gcc_expression_from_isl_expression): Same.
7143 (graphite_create_new_loop): Same.
7144 (graphite_create_new_loop_guard): Same.
7145 (build_iv_mapping): Same.
7146 (graphite_create_new_guard): Same.
7147 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
7148 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
7150 2016-01-28 Sebastian Pop <s.pop@samsung.com>
7152 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
7153 instead of setting codegen_error to fail codegen.
7155 2016-01-28 Jason Merrill <jason@redhat.com>
7157 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
7159 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7161 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7162 Remove CONST_INT_P check in CCMP cost calculation.
7164 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7166 * config/aarch64/aarch64.c (generic_vector_cost):
7167 Set vec_permute_cost.
7168 (cortexa57_vector_cost): Likewise.
7169 (exynosm1_vector_cost): Likewise.
7170 (xgene1_vector_cost): Likewise.
7171 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
7172 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
7173 Add vec_permute_cost entry.
7175 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
7177 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
7179 (add<mode>3_compare0): Likewise.
7180 (addsi3_compare0_uxtw): Likewise.
7181 (add<mode>3nr_compare0): Likewise.
7182 (compare_neg<mode>): Likewise.
7183 (<optab><mode>3): Likewise.
7185 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
7187 * tree-vect-stmts.c (vectorizable_comparison): Add
7188 NULL check for vectype.
7190 2016-01-28 Richard Biener <rguenther@suse.de>
7192 PR tree-optimization/69466
7193 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7194 Account for PHIs we couldn't duplicate.
7196 2016-01-28 Martin Liska <mliska@suse.cz>
7199 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
7200 instead of ENABLE_VALGRIND_CHECKING.
7202 2016-01-27 Richard Henderson <rth@redhat.com>
7205 * lra-remat.c (subreg_regs): New.
7206 (dump_candidates_and_remat_bb_data): Dump it.
7207 (operand_to_remat): Reject if operand in subreg_regs.
7208 (set_bb_regs): Collect subreg_regs.
7209 (lra_remat): Init and free subreg_regs. Compute
7210 calculate_local_reg_remat_bb_data before create_cands.
7212 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
7215 * config/i386/i386.c (ix86_update_stack_boundary): Don't
7216 change stack_alignment_needed for __tls_get_addr call.
7218 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
7220 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
7222 2016-01-27 Jeff Law <law@redhat.com>
7224 PR tree-optimization/68398
7225 PR tree-optimization/69196
7226 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
7227 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
7228 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7229 Only count PHIs in the last block in the path. The others will
7230 const/copy propagate away. Add heuristic to allow more irreducible
7231 subloops to be created when it is likely profitable to do so.
7233 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7234 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
7235 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
7237 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7240 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
7241 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
7242 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
7243 * tree-streamer-in.c: Include asan.h.
7244 (streamer_get_builtin_tree): For builtins in sanitizer
7245 range call initialize_sanitizer_builtins and retry.
7247 2016-01-27 Ian Lance Taylor <iant@google.com>
7249 * common.opt (fkeep-gc-roots-live): New undocumented option.
7250 * tree-ssa-loop-ivopts.c (add_candidate_1): If
7251 -fkeep-gc-roots-live, skip pointers.
7252 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
7255 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
7258 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
7259 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
7261 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
7264 * configure.ac: NetBSD provides SSP in its C library.
7265 * configure: Updated.
7267 2016-01-27 Richard Biener <rguenther@suse.de>
7269 PR tree-optimization/69166
7270 * tree-vect-loop.c (vect_is_simple_reduction): Always check
7271 reduction code for commutativity / associativity.
7273 2016-01-27 Martin Jambor <mjambor@suse.cz>
7275 PR tree-optimization/69355
7276 * tree-sra.c (analyze_access_subtree): Correct hole detection when
7277 total_scalarization fails.
7279 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
7281 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
7284 2016-01-27 Christian Bruel <christian.bruel@st.com>
7287 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
7288 Move arm_reset_previous_fndecl and set_target_option_current_node in
7289 the conditional part. Call save_restore_target_globals.
7290 * config/arm/arm.c (arm_set_current_function):
7291 Refactor to better support #pragma target and attribute mix.
7292 Call save_restore_target_globals.
7293 * config/arm/arm-protos.h (save_restore_target_globals): New function.
7295 2016-01-27 Martin Liska <mliska@suse.cz>
7297 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
7298 reference for an HSA kernel and its host function.
7300 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7302 PR tree-optimization/69399
7303 * wide-int.h (wi::lrshift): For larger precisions, only
7304 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7306 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
7308 * config/arc/predicates.md (proper_comparison_operator): Reject
7309 constant-constant comparison.
7311 2016-01-26 Tom de Vries <tom@codesourcery.com>
7313 PR tree-optimization/69110
7314 * tree-data-ref.c (initialize_data_dependence_relation): Handle
7315 DR_NUM_DIMENSIONS == 0.
7317 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7318 Sebastian Pop <s.pop@samsung.com>
7320 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7321 isl_ast_op_cond and isl_ast_op_select.
7322 (gcc_expression_from_isl_expr_op): Same.
7324 2016-01-26 Jason Merrill <jason@redhat.com>
7327 * tree.c (recompute_constructor_flags): Split out from
7329 (verify_constructor_flags): New.
7330 * tree.h: Declare them.
7332 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
7334 PR rtl-optimization/69217
7335 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7336 are no TYPE_FIELDS set for the record type.
7338 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7341 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7342 toc_label_name unconditionally.
7343 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7344 SYMBOL_REF string. Use toc_label_name instead of constructing
7346 (rs6000_elf_declare_function_name): Use toc_label_name instead of
7347 constructing LCTOC1.
7349 2016-01-26 Martin Sebor <msebor@redhat.com>
7352 * doc/extend.texi (Common Type Attributes): Move text that talks about
7353 attribute packed from attribute aligned to the section discussing
7354 the former attribute for clarity.
7356 2016-01-26 Richard Henderson <rth@redhat.com>
7359 * trans-mem.c (tm_region_init): Mark entry block as visited.
7361 2016-01-26 David Malcolm <dmalcolm@redhat.com>
7364 * diagnostic-show-locus.c (layout::print_source_line): Replace
7365 call to pp_newline with call to layout::print_newline.
7366 (layout::print_annotation_line): Likewise.
7367 (layout::move_to_column): Likewise.
7368 (layout::print_any_fixits): After printing any fixits, print a
7369 trailing newline, if necessary.
7370 (layout::print_newline): New method, resetting any colorization
7372 (diagnostic_show_locus): Move the pp_newline to before the
7373 early bailout. Remove dummy block enclosing the layout instance.
7374 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7375 of pp_newline_and_flush with pp_flush.
7376 (diagnostic_append_note): Delete use of pp_newline.
7377 (diagnostic_append_note_at_rich_loc): Delete.
7378 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7379 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7380 when newline characters are added to the buffer.
7382 2016-01-26 Michael Matz <matz@suse.de>
7384 * configure.ac (ac_cv_std_swap_in_utility): New test.
7385 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7386 * configure: Regenerate.
7387 * config.in: Regenerate.
7389 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
7391 * config/arc/arc.md (cstoresi4): Force operand into register.
7392 (arcset<code>): Fix predicate.
7393 (arcsetltu): Likewise.
7394 (arcsetgeu): Likewise.
7395 (arcsethi): Likewise.
7396 (arcsetls): Likewise.
7398 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7400 PR tree-optimization/69483
7401 * gimple-fold.c (canonicalize_constructor_val): Return NULL
7402 if base has error_mark_node type.
7404 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
7407 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7408 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7410 (vget_lane_f16): Handle big-endian.
7411 (vgetq_lane_f16): Likewise.
7412 (vset_lane_f16): Likewise.
7413 (vsetq_lane_f16): Likewise.
7414 * config/arm/iterators.md (VQXMOV): Add V8HF.
7415 (VDQ): Add V4HF and V8HF.
7416 (V_reg): Handle V4HF and V8HF.
7417 (Is_float_mode): Likewise.
7418 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7419 neon_vdup_nv8hf): New patterns.
7420 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7421 Use VD_LANE iterator.
7422 (neon_vld1_dup<mode>): Use VQ2 iterator.
7424 2016-01-26 Nathan Sidwell <nathan@acm.org>
7426 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7427 (set_oacc_fn_attrib): Add IS_KERNEL arg.
7428 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7429 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7430 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7431 (oacc_validate_dims): Add LEVEL arg, don't return level.
7432 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7434 (execute_oacc_device_lower): Adjust, add more dump output.
7435 * tree-ssa-loop.c (gate_oacc_kernels): Use
7436 oacc_fn_attrib_kernels_p.
7437 * tree-parloops.c (create_parallel_loop): Adjust
7438 set_oacc_fn_attrib call.
7440 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7443 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7444 (append_compiler_options): Handle -fcilkplus.
7445 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7447 2016-01-26 Nick Clifton <nickc@redhat.com>
7450 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7451 been marked as DECL_ONE_ONLY but we do not the means to make it
7452 so, then do not allow it to bind locally.
7454 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7457 * opts.h (parse_sanitizer_options): New prototype.
7458 * opts.c (sanitizer_opts): New array.
7459 (parse_sanitizer_options): New function.
7460 (common_handle_option): Use parse_sanitizer_options.
7462 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7465 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7466 alignment adjustment to ...
7467 (ix86_update_stack_boundary): Here. Don't over-align stack for
7469 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7470 if __tls_get_addr is called.
7472 2016-01-26 Christian Bruel <christian.bruel@st.com>
7474 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7476 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7478 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7480 2016-01-26 Richard Biener <rguenther@suse.de>
7483 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7485 2016-01-26 Richard Biener <rguenther@suse.de>
7487 PR tree-optimization/69452
7488 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7489 (move_computations_dom_walker::before_dom_children): Rename
7491 (move_computations_worker): This.
7492 (move_computations): Perform an RPO rather than a DOM walk.
7494 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7497 * combine.c (combine_instructions): For REG_EQUAL note with
7498 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7499 to the underlying register.
7500 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7501 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7503 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7506 * config/aarch64/aarch64-builtins.c
7507 (aarch64_init_simd_builtin_types): Do not set structural
7508 equality to __Poly{8,16,64,128}_t types.
7510 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7512 PR tree-optimization/69400
7513 * wide-int.cc (wi_pack): Take the precision as argument and
7514 perform canonicalization here rather than in the callers.
7515 Use the main loop to handle all full-width HWIs. Add a
7516 zero HWI if in_len isn't a full result.
7517 (wi::divmod_internal): Update accordingly.
7518 (wi::mul_internal): Likewise. Simplify.
7520 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7521 Sebastian Pop <s.pop@samsung.com>
7523 * graphite-poly.c (apply_poly_transforms): Simplify.
7524 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7525 (print_isl_map): Same.
7526 (print_isl_union_map): Same.
7527 (print_isl_schedule): New.
7528 (debug_isl_schedule): New.
7529 * graphite-dependences.c (scop_get_reads): Do not call
7530 isl_union_map_add_map that is undocumented isl functionality.
7531 (scop_get_must_writes): Same.
7532 (scop_get_may_writes): Same.
7533 (scop_get_original_schedule): Remove.
7534 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7535 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7536 (compute_deps): Remove.
7537 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7538 (debug_schedule_ast): New.
7539 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7540 set_separate_option.
7541 (graphite_regenerate_ast_isl): Add dump.
7542 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7543 from scop->transformed_schedule.
7544 (graphite_regenerate_ast_isl): Add more dump.
7545 * graphite-optimize-isl.c (optimize_isl): Set
7546 scop->transformed_schedule. Check whether schedules are equal.
7547 (apply_poly_transforms): Move here.
7548 * graphite-poly.c (apply_poly_transforms): ... from here.
7549 (free_poly_bb): Static.
7550 (free_scop): Static.
7551 (pbb_number_of_iterations_at_time): Remove.
7552 (print_isl_ast): New.
7553 (debug_isl_ast): New.
7554 (debug_scop_pbb): New.
7555 * graphite-scop-detection.c (print_edge): Move.
7557 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7558 (build_scop_scattering): Remove.
7559 (create_pw_aff_from_tree): Assert instead of bailing out.
7560 (add_condition_to_pbb): Remove unused code, do not fail.
7561 (add_conditions_to_domain): Same.
7562 (add_conditions_to_constraints): Remove.
7563 (build_scop_context): New.
7564 (add_iter_domain_dimension): New.
7565 (build_iteration_domains): Initialize pbb->iterators.
7566 Call add_conditions_to_domain.
7569 (index_outermost_in_loop): New.
7570 (index_pbb_in_loop): New.
7571 (outermost_pbb_in): New.
7572 (add_in_sequence): New.
7573 (add_outer_projection): New.
7574 (outer_projection_mupa): New.
7575 (add_loop_schedule): New.
7576 (build_schedule_pbb): New.
7577 (build_schedule_loop): New.
7578 (embed_in_surrounding_loops): New.
7579 (build_schedule_loop_nest): New.
7580 (build_original_schedule): New.
7581 (build_poly_scop): Call build_original_schedule.
7582 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7583 (free_poly_dr): Remove.
7584 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7585 (free_poly_bb): Remove.
7586 (debug_loop_vec): Remove.
7587 (print_isl_ast): Declare.
7588 (debug_isl_ast): Declare.
7589 (scop_do_interchange): Remove.
7590 (scop_do_strip_mine): Remove.
7591 (scop_do_block): Remove.
7592 (flatten_all_loops): Remove.
7593 (optimize_isl): Remove.
7594 (pbb_number_of_iterations_at_time): Remove.
7595 (debug_scop_pbb): Declare.
7596 (print_schedule_ast): Declare.
7597 (debug_schedule_ast): Declare.
7598 (struct scop): Remove schedule. Add original_schedule,
7599 transformed_schedule.
7600 (free_gimple_poly_bb): Remove.
7601 (print_generated_program): Remove.
7602 (debug_generated_program): Remove.
7603 (unify_scattering_dimensions): Remove.
7604 * sese.c (print_edge): ... here.
7605 (print_sese): ... here.
7606 (debug_edge): ... here.
7607 (debug_sese): ... here.
7608 * sese.h (print_edge): Declare.
7609 (print_sese): Declare.
7610 (dump_edge): Declare.
7611 (dump_sese): Declare.
7613 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7614 Sebastian Pop <s.pop@samsung.com>
7616 * Makefile.in: Set ISLVER in site.exp.
7618 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7620 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7621 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7622 through DECL_VALUE_EXPR for expansion.
7624 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7626 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7627 the frame info after reload completed.
7629 2016-01-25 Jeff Law <law@redhat.com>
7631 PR tree-optimization/69196
7632 PR tree-optimization/68398
7633 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7634 tree-ssa-threadupdate.c.
7635 (determine_bb_domination_status): Prototype
7636 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7637 (determine_bb_domination_status): No longer static.
7638 (valid_jump_thread_path): Remove code to detect characteristics
7639 of the jump thread path not associated with correctness.
7640 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7641 Correct test for thread path length. Count PHIs for real operands as
7642 statements that need to be copied. Do not count ASSERT_EXPRs.
7643 Look at all the blocks in the thread path. Compute and selectively
7644 filter thread paths based on threading through the latch, threading
7645 a multiway branch or crossing a multiway branch.
7647 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7649 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7650 decl with __attribute__ ((unused)) annotation.
7652 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7655 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7656 of operands is compatible with a statement vectype.
7658 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7660 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7661 improve wording for mixed storage order support.
7663 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7665 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7666 (vcvt_u64_f64): Likewise.
7667 (vcvta_s64_f64): Likewise.
7668 (vcvta_u64_f64): Likewise.
7669 (vcvtm_s64_f64): Likewise.
7670 (vcvtm_u64_f64): Likewise.
7671 (vcvtn_s64_f64): Likewise.
7672 (vcvtn_u64_f64): Likewise.
7673 (vcvtp_s64_f64): Likewise.
7674 (vcvtp_u64_f64): Likewise.
7676 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7678 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7679 (arc_init): Check validity mll64 option.
7680 (arc_save_restore): Use double load/store instruction.
7681 (arc_expand_movmem): Likewise.
7682 (arc_split_move): Don't split if we have double load/store
7683 instructions. Returns a boolean.
7684 (arc_process_double_reg_moves): Change function to return boolean
7685 instead of a sequence of instructions.
7686 (arc_dwarf_register_span): New function.
7687 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7688 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7689 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7690 (*movdf_insn): Likewise.
7691 * config/arc/arc.opt (mll64): New option.
7692 * config/arc/predicates.md (even_register_operand): New predicate.
7693 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7695 2016-01-25 Richard Biener <rguenther@suse.de>
7698 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7699 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7701 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7703 2016-01-25 Richard Biener <rguenther@suse.de>
7705 PR tree-optimization/69376
7706 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7708 (VN_INFO_ANTI_RANGE_P): New inline.
7709 (VN_INFO_RANGE_TYPE): Likewise.
7710 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7711 SSA_NAME_ANTI_RANGE_P.
7712 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7713 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7714 Properly query VN_INFO_RANGE_TYPE.
7716 2016-01-25 Nick Clifton <nickc@redhat.com>
7719 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7721 2016-01-23 Tom de Vries <tom@codesourcery.com>
7723 PR tree-optimization/69426
7724 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7727 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7729 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7730 "the the" with "the" in the comments.
7731 * ipa-devirt.c (build_type_inheritance_graph,
7732 update_type_inheritance_graph): Likewise.
7733 * tree.c (build_function_type_list_1): Likewise.
7734 * cfgloopmanip.c (scale_loop_profile): Likewise.
7735 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7736 * gimple-ssa-split-paths.c
7737 (find_block_to_duplicate_for_splitting_paths): Likewise.
7738 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7739 * expr.c (convert_move): Likewise.
7740 * var-tracking.c (vt_stack_adjustments): Likewise.
7741 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7742 * tree-vrp.c (test_for_singularity): Likewise.
7744 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7745 directly instead of building a temporary tree.
7748 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7749 remove <algorithm> include.
7751 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7754 * config/i386/i386.c: Include dojump.h.
7755 (expand_small_movmem_or_setmem,
7756 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7758 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7759 if dynamic_check != -1.
7761 2016-01-21 Jeff Law <law@redhat.com>
7764 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7765 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7766 into dominated_by_p.
7767 (cprop_into_successor_phis): Avoid unnecessary tests.
7769 2016-01-22 Richard Henderson <rth@redhat.com>
7772 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7773 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7775 2016-01-22 Michael Matz <matz@suse.de>
7777 * system.h (string, algorithm): Include only conditionally.
7778 (new): Include always under C++.
7779 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7780 * final.c (toplevel): Ditto.
7781 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7782 * genconditions.c (write_header): Make gencondmd.c define
7784 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7786 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7787 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7789 2016-01-22 Christian Bruel <christian.bruel@st.com>
7792 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7794 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7797 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7798 define_insn_and_split. Ensure operands[1] and operands[0] do not
7799 get assigned the same register.
7801 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7803 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7805 2016-01-22 Christian Bruel <christian.bruel@st.com>
7807 * config/arm/arm-c.c (arm_pragma_target_parse):
7808 Remove warn_builtin_macro_redefined overwrite.
7810 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7812 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7813 flag_non_call_exceptions compatibility.
7815 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7818 * dwarf2out.c (add_child_die_after): New function.
7819 (dwarf_qual_info_t): New type.
7820 (dwarf_qual_info): New variable.
7821 (qualified_die_p): New function.
7822 (modified_type_die): For -fdebug-types-section, ensure
7823 canonical order of qualifiers. Put qualified DIEs adjacent
7824 to the corresponding non-qualified type DIE and search there
7825 for existing qualified DIEs.
7827 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7829 * doc/extend.texi (scalar_storage_order type attribute): Document
7830 restriction on type punning and aliasing, and remove future tense.
7832 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7835 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7838 2016-01-21 Jeff Law <law@redhat.com>
7841 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7842 useless call to record_temporary_equivalences.
7843 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7844 allocate 10 slots in the bb_path vector and let it grow as needed.
7845 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7848 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7850 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7852 * configure: Regenerate.
7854 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7856 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7857 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7859 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7862 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7863 drop EXPAND_INITIALIZER.
7864 * rtl.h (contains_symbolic_reference_p): Declare.
7865 * rtlanal.c (contains_symbolic_reference_p): New function.
7866 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7867 a subtraction into a NOT if symbolic constants are involved.
7869 2016-01-21 Anton Blanchard <anton@samba.org>
7870 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7873 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7875 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7878 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7880 * config/microblaze/microblaze.c
7881 (get_branch_target): New.
7882 (insert_wic_for_ilb_runout): New.
7884 (microblaze_machine_dependent_reorg): New.
7885 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7886 * config/microblaze/microblaze.md
7887 (UNSPEC_IPREFETCH): Define.
7888 (iprefetch): New pattern
7889 * config/microblaze/microblaze.opt
7890 (mxl-prefetch): New flag.
7892 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7894 * config/microblaze/microblaze.h
7895 (FIXED_REGISTERS): Update in macro.
7896 (CALL_USED_REGISTERS): Update in macro.
7898 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7900 PR rtl-optimization/68920
7901 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7904 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7906 PR rtl-optimization/68990
7907 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7908 pseudo instead of inheritance ones.
7910 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7911 Nick Clifton <nickc@redhat.com>
7915 * config/mips/mips.c (mips_compute_frame_info): Initialise
7916 args_size and hard_frame_pointer_offset fields of the frame
7917 structure before calling mips_global_pointer.
7919 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7921 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7923 * configure: Regenerate.
7925 2016-01-21 Richard Biener <rguenther@suse.de>
7927 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7929 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7931 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7932 to actually emit the .size directive.
7934 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7935 Jakub Jelinek <jakub@redhat.com>
7939 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7940 args array size by one to avoid buffer overflow.
7942 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7944 * config/s390/s390.md (pool_section_start): Use switch_to_section
7945 to select proper read-only data section instead of hardcoding
7947 (pool_section_end): Use switch_to_section to match the above.
7949 2016-01-21 Richard Biener <rguenther@suse.de>
7951 PR tree-optimization/69378
7952 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7953 (set_ssa_val_to): Use it for dominance checks taking into
7954 account not executable edges.
7956 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7959 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7960 for bitsize instead of GET_MODE_PRECISION (mode).
7962 2016-01-20 Martin Sebor <msebor@redhat.com>
7965 * extend.texi (__sync Builtins): Clarify the semantics of
7966 __sync_fetch_and_OP built-ins on pointers.
7967 (__atomic Builtins): Same.
7969 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7970 Sebastian Pop <s.pop@samsung.com>
7972 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7973 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7974 (is_valid_rename): Same.
7975 (translate_isl_ast_to_gimple::get_rename): Same.
7976 (translate_isl_ast_to_gimple::rename_all_uses): Same.
7977 (translate_isl_ast_to_gimple::rename_uses): Same.
7978 (get_new_name): Check for close_phi nodes.
7979 (copy_loop_phi_args): Use phi_node_kind.
7980 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7981 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7983 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7984 Sebastian Pop <s.pop@samsung.com>
7986 Revert commit r229783.
7987 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7988 Remove use of parameter_rename_map.
7990 (copy_internal_parameters): Remove.
7991 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7992 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7993 (free_sese_info): Do not free parameter_rename_map.
7994 (set_rename): Do not use parameter_rename_map.
7995 (rename_uses): Update call to set_rename.
7996 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7997 * sese.h (parameter_rename_map_t): Remove.
7998 (struct sese_info_t): Remove field parameter_rename_map.
8000 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8001 Sebastian Pop <s.pop@samsung.com>
8003 * graphite-isl-ast-to-gimple.c: Fix comment.
8004 * graphite-scop-detection.c (defined_in_loop_p): New.
8005 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
8006 names defined in loop.
8008 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8009 Sebastian Pop <s.pop@samsung.com>
8011 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8012 Discard unstructured if-then-else regions.
8014 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8015 Sebastian Pop <s.pop@samsung.com>
8017 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
8018 (cleanup_loop_iter_dom): Remove.
8019 (build_loop_iteration_domains): Remove.
8020 (build_scop_context): Remove.
8021 (build_scop_iteration_domain): Remove.
8022 (add_loop_constraints): New.
8023 (build_iteration_domains): New.
8024 (build_poly_scop): Call build_iteration_domains.
8026 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8027 Sebastian Pop <s.pop@samsung.com>
8029 * graphite-scop-detection.c
8030 (scop_detection::harmful_loop_in_region): Free dom and loops.
8031 (scop_detection::loop_body_is_valid_scop): Free bbs.
8033 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8034 Sebastian Pop <s.pop@samsung.com>
8036 * graphite-scop-detection.c (record_loop_in_sese): New.
8037 (gather_bbs::before_dom_children): Call record_loop_in_sese.
8038 (build_scops): Remove call to build_sese_loop_nests.
8039 * sese.c (sese_record_loop): Remove.
8040 (build_sese_loop_nests): Remove.
8041 (new_sese_info): Remove region->loops.
8042 (free_sese_info): Same.
8043 * sese.h (sese_contains_loop): Same.
8044 (build_sese_loop_nests): Remove.
8045 (sese_contains_loop): Remove.
8047 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8048 Sebastian Pop <s.pop@samsung.com>
8050 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
8051 loop_is_valid_in_scop.
8052 (scop_detection::harmful_stmt_in_region): Renamed
8053 harmful_loop_in_region.
8054 Call loop_is_valid_in_scop.
8056 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8057 Sebastian Pop <s.pop@samsung.com>
8059 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
8062 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8063 Sebastian Pop <s.pop@samsung.com>
8065 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
8066 * graphite.h (struct poly_bb): Remove field is_reduction.
8067 (PBB_IS_REDUCTION): Remove.
8069 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
8070 Sebastian Pop <s.pop@samsung.com>
8072 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
8073 (add_pdr_constraints): Same.
8074 (scop_get_reads): Same.
8075 (scop_get_must_writes): Same.
8076 (scop_get_may_writes): Same.
8077 (scop_get_original_schedule): Same.
8078 (extend_schedule): Same.
8079 (apply_schedule_on_deps): Same.
8080 (carries_deps): Same.
8081 (compute_deps): Same.
8082 (scop_get_dependences): Same.
8083 * graphite-isl-ast-to-gimple.c
8084 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
8085 * graphite-optimize-isl.c (get_schedule_for_band): Same.
8086 (get_schedule_for_band_list): Same.
8087 (get_schedule_map): Same.
8088 (apply_schedule_map_to_scop): Same.
8089 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8090 (build_loop_iteration_domains): Same.
8091 (add_condition_to_pbb): Same.
8092 (add_param_constraints): Same.
8093 (pdr_add_memory_accesses): Same.
8094 (pdr_add_data_dimensions): Same.
8096 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
8098 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
8101 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
8103 * common.opt (feliminate-dwarf2-dups): Replace references to
8104 "DWARF 2" with just "DWARF".
8105 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
8106 * doc/extend.texi: Likewise.
8107 * doc/cpp.texi: Likewise.
8108 * doc/invoke.texi: Likewise.
8109 (Option Summary): Add -gdwarf to list of Debugging Options.
8110 (Debugging Options): Document -gdwarf.
8111 * doc/contrib.texi: Spell "DWARF" like that.
8113 2016-01-21 Jakub Jelinek <jakub@redhat.com>
8115 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
8116 warning. Fix up formatting.
8119 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
8120 attempt to mark memory input operand addressable and
8121 call prepare_gimple_addressable in that case. Don't adjust
8122 input_location for diagnostics, use error_at instead.
8124 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
8126 * config/rs6000/ppc-auxv.h: New file.
8127 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
8129 (cpu_supports): Likewise.
8130 * config/rs6000/rs6000.c: include "ppc-auxv.h".
8131 (cpu_is_info): New variable.
8132 (cpu_supports_info): Likewise.
8133 (tcb_verification_symbol): Likewise.
8134 (cpu_builtin_p): Likewise.
8135 (cpu_expand_builtin): New function.
8136 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
8137 (rs6000_init_builtins): Likewise.
8138 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
8139 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
8140 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
8141 * configure: Regenerate.
8142 * config.in: Likewise.
8143 * doc/extend.texi (PowerPC Built-in Functions): Document
8144 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
8146 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
8149 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
8151 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
8154 2016-01-20 Richard Henderson <rth@redhat.com>
8160 * tree.c (tm_define_builtin): New.
8161 (find_tm_vector_type): New.
8162 (build_tm_vector_builtins): New.
8163 (build_common_builtin_nodes): Call it.
8165 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
8167 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
8168 (arm_fp_ok): Likewise.
8170 (arm_crypto): Likewise.
8172 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
8173 Richard Biener <rguenther@suse.de>
8175 PR tree-optimization/69328
8176 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
8177 vectors have same number of elements.
8178 (vectorizable_condition): Fix masked version recognition.
8180 2016-01-20 Richard Biener <rguenther@suse.de>
8182 PR tree-optimization/69345
8183 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
8184 (VN_INFO_PTR_INFO): Likewise.
8185 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
8186 info when it is equal between non-dominating SSA names.
8187 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8188 Make sure to look at original SSA infos.
8190 2016-01-20 Jeff Law <law@redhat.com>
8193 * config/m68k/predicates.md (pow2_m1_operand): New predicate
8195 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
8196 (pc_or_label_operand): New predicate.
8197 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
8198 tests for small integers that are 2^n - 1.
8200 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
8202 * doc/invoke.texi (Options Summary): Add '.' after @xref.
8204 2016-01-19 Jeff Law <law@redhat.com>
8207 * tree-ssa-threadbackwards.c
8208 (fsm_find_control_statement_thread_paths): Do not try to lookup
8209 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
8211 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
8213 * doc/lto.texi: Remove text that says only Gold has linker plugin
8216 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
8218 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
8219 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
8220 the DIE accordingly.
8221 (modified_type_die): Add REVERSE parameter and pass it recursively,
8222 as well as to base_type_die. Adjust presence check accordingly.
8223 (base_type_for_mode): Adjust call to modified_type_die.
8224 (add_type_attribute): Add REVERSE parameter and pass it to
8226 (generic_parameter_die): Adjust call to add_type_attribute.
8227 (add_scalar_info): Likewise.
8228 (add_subscript_info): Likewise.
8229 (gen_array_type_die): Likewise.
8230 (gen_descr_array_type_die): Likewise.
8231 (gen_entry_point_die): Likewise.
8232 (gen_enumeration_type_die): Likewise.
8233 (gen_formal_parameter_die): Likewise.
8234 (gen_subprogram_die): Likewise.
8235 (gen_variable_die ): Likewise.
8236 (gen_const_die): Likewise.
8237 (gen_field_die): Likewise.
8238 (gen_pointer_type_die): Likewise.
8239 (gen_reference_type_die): Likewise.
8240 (gen_ptr_to_mbr_type_die): Likewise.
8241 (gen_inheritance_die): Likewise.
8242 (gen_subroutine_type_die): Likewise.
8243 (gen_typedef_die): Likewise.
8244 (force_type_die): Adjust call to modified_type_die.
8246 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
8248 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
8249 flow throughout the file. Fix broken link to Objective-C 2.0
8251 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
8254 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8256 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
8258 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8261 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
8262 (maybe_record_node): Record cxa_pure_virtual as the only possible
8263 target if there are not ohter candidates.
8264 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
8266 2016-01-19 Richard Biener <rguenther@suse.de>
8268 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
8269 (get_memory_order): Likewise.
8271 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
8273 * tree-vect-stmts.c (vectorizable_store): Check
8276 2016-01-19 David Malcolm <dmalcolm@redhat.com>
8279 * gcc.c (driver::decode_argv): Add call to
8280 init_opts_obstack before init_options_struct.
8281 * opts.c (init_opts_obstack): Remove idempotency.
8282 (init_options_struct): Replace call to init_opts_obstack
8283 with a gcc_assert to verify that it has already been called.
8284 * toplev.c (toplev::main): Add call to init_opts_obstack before
8285 calls to init_options_struct.
8286 (toplev::finalize): Move cleanup of opts_obstack next to
8287 cleanup of save_decoded_options, clearing the latter, and
8288 save_decoded_options_count.
8290 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8293 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
8294 attribute to unconditional. Remove %? from output template.
8296 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8297 Jiong Wang <jiong.wang@arm.com>
8299 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
8300 generated from different expand order.
8302 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8304 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8305 Add support for CCMP costing.
8307 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8309 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8310 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8311 (fccmpe<mode>): Likewise.
8312 (fcmp): Rename to fcmp and globalize pattern.
8314 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8315 (aarch64_gen_ccmp_next): Add FP support.
8317 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8319 * target.def (gen_ccmp_first): Update documentation.
8320 (gen_ccmp_next): Likewise.
8321 * doc/tm.texi (gen_ccmp_first): Update documentation.
8322 (gen_ccmp_next): Likewise.
8323 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8324 expand_ccmp_expr_1. Improve comments.
8325 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8326 (ccmp_ior<mode>): Remove pattern.
8327 (cmp<mode>): Remove expand.
8328 (cmp): Globalize pattern.
8329 (cstorecc4): Use cc_register.
8330 (mov<mode>cc): Remove ccmp_cc_register check.
8331 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8332 Simplify after removal of CC_DNE/* modes.
8333 (aarch64_ccmp_mode_to_code): Remove.
8334 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
8335 In 'k' case use integer as condition.
8336 (aarch64_nzcv_codes): Remove inverted cases.
8337 (aarch64_code_to_ccmode): Remove.
8338 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
8339 comparison with CC register to be used in folowing CCMP/branch/CSEL.
8340 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8341 pattern. Return the comparison with CC register. Invert conditions
8343 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8344 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8346 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8348 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8349 instrumented_version.
8351 2016-01-19 Richard Biener <rguenther@suse.de>
8353 PR tree-optimization/69336
8354 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8355 handled components with get_ref_base_and_extent.
8356 (equal_mem_array_ref_p): Adjust.
8358 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8361 * shrink-wrap.c: Include valtrack.h.
8362 (move_insn_for_shrink_wrap): Add DEBUG argument. If
8363 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8364 in between insn and where it will be moved to. Call
8365 dead_debug_insert_temp.
8366 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
8367 first and dead_debug_local_finish at the end.
8368 For uses and defs bitmap, handle all regs in between REGNO and
8369 END_REGNO, not just the first one.
8371 2016-01-19 Richard Biener <rguenther@suse.de>
8373 PR tree-optimization/69352
8374 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8375 (equal_mem_array_ref_p): Constrain size and max size properly.
8376 Compare the reverse flag.
8378 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
8380 * ira.c (ira): Update regstat data if we deleted insns.
8382 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8384 PR rtl-optimization/68955
8385 PR rtl-optimization/64557
8386 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8387 here. Fix up formatting.
8388 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8390 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8393 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8394 assume that the node has body.
8395 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8398 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8400 * lto-streamer-out.c (lto_output): Do not stream instrumentation
8403 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8405 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8406 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8408 2016-01-19 Martin Jambor <mjambor@suse.cz>
8409 Martin Liska <mliska@suse.cz>
8410 Michael Matz <matz@suse.de>
8412 * Makefile.in (OBJS): Add new source files.
8413 (GTFILES): Add hsa.c.
8414 * common.opt (disable_hsa): New variable.
8415 (-Whsa): New warning.
8416 * config.in (ENABLE_HSA): New.
8417 * configure.ac: Treat hsa differently from other accelerators.
8418 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8420 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8421 * doc/install.texi (Configuration): Document --with-hsa-runtime,
8422 --with-hsa-runtime-include, --with-hsa-runtime-lib and
8424 * doc/invoke.texi (-Whsa): Document.
8425 (hsa-gen-debug-stores): Likewise.
8426 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8427 to invoke offload compiler for hsa acclerator.
8428 * opts.c (common_handle_option): Determine whether HSA offloading
8429 should be performed.
8430 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8431 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8432 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8433 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8434 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8435 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8436 GF_OMP_FOR_KIND_GRID_LOOP.
8437 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8438 (pp_gimple_stmt_1): Likewise.
8439 * gimple-walk.c (walk_gimple_stmt): Likewise.
8440 * gimple.c (gimple_build_omp_grid_body): New function.
8441 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8442 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8443 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8444 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8445 GF_OMP_TEAMS_GRID_PHONY.
8446 (gimple_statement_omp_single_layout): Updated comments.
8447 (gimple_build_omp_grid_body): New function.
8448 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8449 (gimple_omp_for_grid_phony): New function.
8450 (gimple_omp_for_set_grid_phony): Likewise.
8451 (gimple_omp_parallel_grid_phony): Likewise.
8452 (gimple_omp_parallel_set_grid_phony): Likewise.
8453 (gimple_omp_teams_grid_phony): Likewise.
8454 (gimple_omp_teams_set_grid_phony): Likewise.
8455 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8456 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8457 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8458 (BUILT_IN_GOMP_TARGET): Updated type.
8459 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8460 (adjust_for_condition): New function.
8461 (get_omp_for_step_from_incr): Likewise.
8462 (extract_omp_for_data): Moved parts to adjust_for_condition and
8463 get_omp_for_step_from_incr.
8464 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8465 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8466 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8467 (scan_omp_parallel): Do not create child functions for phony
8469 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8470 (scan_omp_1_op): Checking assert we are not remapping to
8471 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8472 (parallel_needs_hsa_kernel_p): New function.
8473 (expand_parallel_call): Register apprpriate parallel child
8474 functions as HSA kernels.
8475 (grid_launch_attributes_trees): New type.
8476 (grid_attr_trees): New variable.
8477 (grid_create_kernel_launch_attr_types): New function.
8478 (grid_insert_store_range_dim): Likewise.
8479 (grid_get_kernel_launch_attributes): Likewise.
8480 (get_target_argument_identifier_1): Likewise.
8481 (get_target_argument_identifier): Likewise.
8482 (get_target_argument_value): Likewise.
8483 (push_target_argument_according_to_value): Likewise.
8484 (get_target_arguments): Likewise.
8485 (expand_omp_target): Call get_target_arguments instead of looking
8486 up for teams and thread limit.
8487 (grid_expand_omp_for_loop): New function.
8488 (grid_arg_decl_map): New type.
8489 (grid_remap_kernel_arg_accesses): New function.
8490 (grid_expand_target_kernel_body): New function.
8491 (expand_omp): Call it.
8492 (lower_omp_for): Do not emit phony constructs.
8493 (lower_omp_taskreg): Do not emit phony constructs but create for them
8494 a temporary variable receiver_decl.
8495 (lower_omp_taskreg): Do not emit phony constructs.
8496 (lower_omp_teams): Likewise.
8497 (lower_omp_grid_body): New function.
8498 (lower_omp_1): Call it.
8499 (grid_reg_assignment_to_local_var_p): New function.
8500 (grid_seq_only_contains_local_assignments): Likewise.
8501 (grid_find_single_omp_among_assignments_1): Likewise.
8502 (grid_find_single_omp_among_assignments): Likewise.
8503 (grid_find_ungridifiable_statement): Likewise.
8504 (grid_target_follows_gridifiable_pattern): Likewise.
8505 (grid_remap_prebody_decls): Likewise.
8506 (grid_copy_leading_local_assignments): Likewise.
8507 (grid_process_kernel_body_copy): Likewise.
8508 (grid_attempt_target_gridification): Likewise.
8509 (grid_gridify_all_targets_stmt): Likewise.
8510 (grid_gridify_all_targets): Likewise.
8511 (execute_lower_omp): Call grid_gridify_all_targets.
8512 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8513 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8514 (tree_omp_clause): Added union field dimension.
8515 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8516 * tree.c (omp_clause_num_ops): Added number of arguments of
8517 OMP_CLAUSE__GRIDDIM_.
8518 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8519 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8520 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8521 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8522 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8523 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8524 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8525 * tree-pass.h (make_pass_gen_hsail): Declare.
8526 (make_pass_ipa_hsa): Likewise.
8527 * ipa-hsa.c: New file.
8528 * lto-section-in.c (lto_section_name): Add hsa section name.
8529 * lto-streamer.h (lto_section_type): Add hsa section.
8530 * timevar.def (TV_IPA_HSA): New.
8531 * hsa-brig-format.h: New file.
8532 * hsa-brig.c: New file.
8533 * hsa-dump.c: Likewise.
8534 * hsa-gen.c: Likewise.
8537 * toplev.c (compile_file): Call hsa_output_brig.
8538 * hsa-regalloc.c: New file.
8540 2016-01-18 Jeff Law <law@redhat.com>
8542 PR tree-optimization/69320
8543 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8544 ranged object, do nothing if the RHS constant is not [0..1].
8545 (optimize_stmt): Comparing a boolean ranged object against a
8546 constant outside [0..1] results in a compile-time constant.
8548 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8551 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8553 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8554 (Option Summary): Update to reflect new section and moved options.
8555 (C++ Dialect Options): Move -fstats to new section.
8556 (Debugging Options): Move all dump, statistics, and other GCC
8557 developer options to new section. Rewrite section introduction
8558 and re-order remaining options to put the more basic ones first.
8559 (Optimization Options): Move -fira-verbose and -flto-report* to
8561 (Developer Options): New section incorporating moved options.
8562 * doc/cppopts.texi (-dM): Update cross-reference.
8564 2016-01-18 Richard Henderson <rth@redhat.com>
8567 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8568 operands to pseudo only if CSE is expected. Split long immediate
8569 operands only after reload, and for the stack pointer.
8570 (*add<GPI>3_pluslong): Remove.
8571 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8572 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8573 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8574 (*add<GPI>3 peepholes): New.
8575 (*add<GPI>3 splitters): New.
8576 * config/aarch64/constraints.md (Upl): New.
8577 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8579 2016-01-18 Richard Biener <rguenther@suse.de>
8581 PR tree-optimization/69297
8582 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8584 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8586 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8589 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8590 of mixind vector and scalar types.
8591 (fold_relational_const): Add handling of vector
8592 comparison with boolean result.
8593 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8594 comparison of vector operands with boolean result for EQ/NE only.
8595 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8596 (verify_gimple_cond): Likewise.
8597 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8600 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8602 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8605 2016-01-18 Richard Biener <rguenther@suse.de>
8608 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8610 2016-01-18 Tom de Vries <tom@codesourcery.com>
8612 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8614 2016-01-18 Tom de Vries <tom@codesourcery.com>
8616 * omp-low.c (set_oacc_fn_attrib): Make extern.
8617 * omp-low.h (set_oacc_fn_attrib): Declare.
8618 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8619 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8620 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8621 Add and handle function parameter oacc_kernels_p.
8622 (find_reduc_addr, get_omp_data_i_param): New function.
8623 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8624 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8625 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8626 Calculate dominance info. Skip loops that are not in a kernels region
8627 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8628 (pass_parallelize_loops::execute): Call parallelize_loops with
8629 oacc_kernels_p argument.
8630 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8631 New member function.
8632 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8633 * passes.def: Add argument to pass_parallelize_loops instantation.
8635 2016-01-18 Tom de Vries <tom@codesourcery.com>
8637 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8638 pass_parallelize_loops to be run outside the loop pipeline.
8640 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8642 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8643 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8645 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8648 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8649 using get_ref_base_and_extent.
8650 (equal_mem_array_ref_p): New.
8651 (hashable_expr_equal_p): Add call to previous.
8653 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8656 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8657 (sra_initialize): Allocate disqualified_constants.
8658 (sra_deinitialize): Free disqualified_constants.
8659 (disqualify_candidate): Update disqualified_constants when appropriate.
8660 (create_access): Scan for constant-pool entries as we go along.
8661 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8662 (maybe_add_sra_candidate): Allow constant-pool entries.
8663 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8664 (initialize_constant_pool_replacements): New.
8665 (sra_modify_assign): Avoid mangling assignments created by previous,
8666 and don't generate writes into constant pool.
8667 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8669 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8671 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8673 (scalar_chain::convert_op): Likewise.
8674 * config/i386/i386.md (*andndi3_doubleword): New.
8676 2016-01-18 Richard Biener <rguenther@suse.de>
8678 PR tree-optimization/69170
8679 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8680 building a vector from scalar results of a pattern stmt.
8682 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8684 * haifa-sched.c (autopref_multipass_init): Work around
8685 -Wmaybe-uninitialized warning.
8687 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8689 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8690 against the constant 0.
8692 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8694 PR tree-optimization/68799
8695 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8696 look up phi candidates in the statement-candidate map.
8697 (phi_add_costs): Likewise.
8698 (record_phi_increments): Likewise.
8699 (phi_incr_cost): Likewise.
8700 (ncd_with_phi): Likewise.
8701 (all_phi_incrs_profitable): Likewise.
8703 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8705 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8706 -Wmaybe-uninitialized warning.
8708 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8710 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8711 (Option Summary): Update to reflect new section and moved options.
8712 (C++ Dialect Options): Move -fvtable-verify and related options.
8713 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8714 and profiling-related options.
8715 (Optimization Options): Move profile generation options and
8716 -fstack-protector and related options.
8717 (Instrumentation Options): New section incorporating moved options.
8718 (Code Generation Options): Move -finstrument-functions and
8719 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8721 2016-01-16 Tom de Vries <tom@codesourcery.com>
8723 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8725 2016-01-16 Tom de Vries <tom@codesourcery.com>
8727 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8729 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8731 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8732 that checks whether the table is already empty. Rename the
8733 original implementation to...
8734 (hash_table::empty_slot): ...this new private function.
8736 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8739 * diagnostic-show-locus.c (layout::print_source_line): Move x
8740 offset of line until after call to
8741 get_line_width_without_trailing_whitespace.
8743 2016-01-15 Jeff Law <law@redhat.com>
8745 PR tree-optimization/69270
8746 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8747 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8748 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8749 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8750 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8751 ssa_name_has_boolean_range and constant_boolean_node.
8753 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8755 PR rtl-optimization/69030
8756 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8758 (spill_pseudos): Delete debug insn for dead pseudo.
8759 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8761 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8763 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8765 (TYPES_UNOPUS): Likewise.
8766 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8767 builtin type, from UNOP to UNOPUS.
8768 (lbtruncuv4sf): Likewise.
8769 (lbtruncuv2df): Likewise.
8770 (lrounduv2sf): Likewise.
8771 (lrounduv4sf): Likewise.
8772 (lrounduv2df): Likewise.
8773 (lroundusf): Likewise.
8774 (lroundusf): Likewise.
8775 (lceiluv2sf): Likewise.
8776 (lceiluv4sf): Likewise.
8777 (lceiluv2df): Likewise.
8778 (lceilusf): Likewise.
8779 (lceiludf): Likewise.
8780 (lflooruv2sf): Likewise.
8781 (lflooruv4sf): Likewise.
8782 (lflooruv2df): Likewise.
8783 (lfloorusf): Likewise.
8784 (lfloorudf): Likewise.
8785 (lfrintnuv2sf): Likewise.
8786 (lfrintnuv4sf): Likewise.
8787 (lfrintnuv2df): Likewise.
8788 (lfrintnusf): Likewise.
8789 (lfrintnudf): Likewise.
8790 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8792 (vcvtq_u32_f32): Likewise.
8793 (vcvtq_u64_f64): Likewise.
8794 (vcvta_u32_f32): Likewise.
8795 (vcvtaq_u32_f32): Likewise.
8796 (vcvtaq_u64_f64): Likewise.
8797 (vcvtm_u32_f32): Likewise.
8798 (vcvtmq_u32_f32): Likewise.
8799 (vcvtmq_u64_f64): Likewise.
8800 (vcvtn_u32_f32): Likwise.
8801 (vcvtnq_u32_f32): Likewise.
8802 (vcvtnq_u64_f64): Likewise.
8803 (vcvtp_u32_f32): Likewise.
8804 (vcvtpq_u32_f32): Likewise.
8805 (vcvtpq_u64_f64): Likewise.
8806 (vcvtmd_u64_f64): Likewise.
8807 (vcvtms_u32_f32): Likewise.
8808 (vcvtad_u64_f64): Likewise.
8809 (vcvtas_u32_f32): Likewise.
8810 (vcvtnd_u64_f64): Likewise.
8811 (vcvtns_u32_f32): Likewise.
8812 (vcvtpd_u64_f64): Likewise.
8813 (vcvtps_u32_f32): Likewise.
8815 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8817 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8818 CSEL of zero_extended registers.
8820 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8822 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8823 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8825 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8827 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8828 false when argument string is not found in the attributes table
8831 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8834 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8835 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8836 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8839 2016-01-15 Richard Biener <rguenther@suse.de>
8841 PR tree-optimization/66856
8842 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8843 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8844 (vect_create_new_slp_node): Increment stmt reference count.
8845 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8846 an SLP tree before swapping operands.
8847 (vect_build_slp_tree): Likewise.
8848 (destroy_bb_vec_info): Free stmt info after SLP instances.
8849 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8850 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8851 (STMT_VINFO_NUM_SLP_USES): New macro.
8853 2016-01-15 Richard Biener <rguenther@suse.de>
8856 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8857 (add_linkage_name): ... here.
8858 (gen_typedef_die): Use add_linkage_name_raw instead of
8859 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8862 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8864 * gimplify.c (oacc_default_clause): Decode reference and pointer
8865 types for both kernels and parallel regions.
8867 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8870 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8872 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8874 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8875 (convert_scalars_to_vector): Likewise.
8877 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8879 * doc/extend.texi (Type Traits): Fix grammar.
8881 2016-01-15 Martin Jambor <mjambor@suse.cz>
8883 * tree-inline.c (remap_decl): Use existing dclarations if
8884 remapping a type and prevent_decl_creation_for_types.
8885 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8886 decls first. Do real remapping with
8887 prevent_decl_creation_for_types set.
8888 * tree-inline.h (copy_body_data): New field
8889 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8892 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8894 * config/s390/s390.opt (mmvcle): More verbose help text.
8896 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8898 * config/s390/s390.opt: Add period to -mzvector option text.
8900 2016-01-15 Richard Biener <rguenther@suse.de>
8902 PR tree-optimization/68961
8903 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8904 of invariants in stores again.
8906 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8908 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8910 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8912 * config/i386/i386.c (ix86_expand_branch): Don't split
8913 DI mode xor instruction to SI mode.
8915 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8918 * ipa-icf.c (sem_function::merge): Virtual functions may become
8919 reachable even if they address is not taken and there are no
8922 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8924 * lto-streamer-out.c (subtract_estimated_size): New function.
8925 (get_symbol_initial_value): Use it.
8927 2016-01-15 Christian Bruel <christian.bruel@st.com>
8930 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8931 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8932 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8933 use add_builtin_function_ext_scope instead of add_builtin_function.
8934 (neon_set_p, neon_crypto_set_p): Remove.
8935 (arm_init_builtins): Always call arm_init_neon_builtins and
8936 arm_init_crypto_builtins.
8937 (arm_expand_builtin): Check that builtins are allowed for the arch.
8938 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8939 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8940 arm_init_neon_builtins call.
8942 2016-01-15 Richard Biener <rguenther@suse.de>
8944 PR tree-optimization/69117
8945 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8946 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8947 of the leader conservatively.
8948 (free_scc_vn): Restore original SSA name infos.
8950 2016-01-14 Jeff Law <law@redhat.com>
8952 PR tree-optimization/69270
8953 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8954 single bit of precision, verify it's also unsigned.
8955 (record_edge_info): Use constant_boolean_node rather than fold_convert
8956 to convert boolean_true/boolean_false to the right type.
8958 2016-01-14 Richard Henderson <rth@redhat.com>
8961 * loop-doloop.c (record_reg_sets): New.
8962 (doloop_optimize): Reject the transform if the sequence
8963 clobbers registers live at the end of the loop block.
8964 (doloop_optimize_loops): Enable df_live if needed.
8966 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8968 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8969 * gcc/config/rs6000/rs6000.c: Likewise.
8970 * gcc/config/rs6000/rs6000.h: Likewise.
8971 * gcc/config/rs6000/rs6000.md: Likewise.
8972 * gcc/doc/extend.texi: Likewsie.
8974 2016-01-14 Jeff Law <law@redhat.com>
8976 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8979 2016-01-14 Richard Henderson <rth@redhat.com>
8983 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8984 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8985 instead of builtin_decl_declared_p to test for declaration.
8987 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
8989 * doc/loop.texi (Loop Analysis and Representation): Document
8990 loop_depth function.
8992 2016-01-14 Tom de Vries <tom@codesourcery.com>
8994 PR tree-optimization/68773
8995 * omp-low.c (expand_omp_target): Don't set force_output.
8996 * varpool.c (varpool_node::get_create): Same.
8997 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8998 offload_funcs with force_output.
9000 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9003 * lra-eliminations.c (move_plus_up): Don't change anything if either
9004 the outer or inner subreg mode is not MODE_INT.
9005 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
9006 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
9008 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
9010 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
9011 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
9012 reduc_uplus_@var{m}): Remove.
9013 * expr.c (expand_expr_real_2): Remove expansion path for
9014 reduc_[us](min|max|plus) optabs.
9015 * optabs-tree.c (scalar_reduc_to_vector): Remove.
9016 * optabs-tree.h (scalar_reduc_to_vector): Remove.
9017 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
9018 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
9019 * tree-vect-loop.c (vectorizable_reduction): Remove test for
9020 reduc_[us](min|max|plus) optabs.
9022 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
9024 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
9025 (reduc_plus_scal_v2sf): New.
9026 (reduc_smax_v2sf): Rename to...
9027 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
9028 (reduc_smin_v2sf): Rename to...
9029 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
9031 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
9033 * alias.c (compare_base_symbol_refs): New function.
9034 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
9037 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9040 PR tree-optimization/69155
9041 * tree-complex.c: Include cfganal.h.
9042 (phis_to_revisit): New variable.
9043 (extract_component): Add phiarg_p argument. Assert that returned
9044 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
9045 (update_phi_components): Partly rewrite to use loop over real/imag
9046 components instead of code duplication. If extract_component returns
9047 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
9048 create_tmp_reg into the PHI node instead, and mention the phi triplet
9050 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
9051 in phis_to_revisit at the end.
9053 2016-01-14 Richard Biener <rguenther@suse.de>
9055 PR tree-optimization/68060
9056 * tree-vect-loop.c (vect_is_simple_reduction): Check the
9057 outer loop reduction is only used in the inner loop before
9058 detecting a double reduction.
9060 2016-01-14 Jakub Jelinek <jakub@redhat.com>
9063 * combine.c (expand_field_assignment): Punt if compute_mode is
9064 unsupported scalar mode.
9066 2016-01-14 Richard Biener <rguenther@suse.de>
9068 PR tree-optimization/66856
9069 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
9070 SLP node only if it built successfully.
9071 (vect_analyze_slp_instance): Adjust.
9073 2016-01-14 Jeff Law <law@redhat.com>
9075 PR tree-optimization/69270
9076 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
9077 (record_edge_info): Use it. Convert boolean_{true,false}_node
9080 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
9083 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
9084 use block_ultimate_origin
9085 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
9087 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
9089 * doc/invoke.texi (Submodel Options): Rename section to
9090 "Machine-Dependent Options" to better reflect its content.
9091 Rewrite introductory text to remove archaic CPU names.
9094 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
9096 * doc/invoke.texi (Code Gen Options): Move section up in file,
9097 before target-specific options. Update menu and option summary
9098 to reflect the new section ordering.
9100 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
9102 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
9103 (C++ Dialect Options): Add cross-reference to -std option.
9104 * doc/standards.texi (C++ Language): Document C++14 support.
9106 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
9108 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
9109 for pack/unpack functions for __ibm128.
9110 (PACK_IF): Likewise.
9111 (UNPACK_IF): Likewise.
9113 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9114 support for __ibm128 pack/unpack functions.
9115 (rs6000_invalid_builtin): Likewise.
9116 (rs6000_init_builtins): Likewise.
9117 (rs6000_opt_masks): Likewise.
9119 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
9120 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
9122 (RS6000_BTM_COMMON): Likewise.
9124 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
9125 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
9126 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
9127 128-bit floating point. Add support for the double values to be
9128 in Altivec registers for TF/IF packing and unpacking, but restrict
9129 TD packing sub-fields to be FPR registers. Don't allow overlapped
9130 register support for packing. Allow pack inputs to be memory
9131 locations. Don't build generator functions for unpack<mode>_dm
9132 and unpack<mode>_nodm.
9133 (unpack<mode>_dm): Likewise.
9134 (unpack<mode>_nodm): Likewise.
9135 (pack<mode>): Likewise.
9137 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
9138 built-in functions to pack/unpack explicit __ibm128 values.
9139 (__builtin_unpack_ibm128): Likewise.
9141 * doc/extend.texi (PowerPC Built-in Functions): Document
9142 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
9144 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
9147 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
9148 Add new arg loc and pass it down as context.
9149 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
9150 to the location to use for the warning.
9151 (check_function_arguments): New arg loc. All callers changed. Pass
9152 it to check_function_nonnull.
9153 * c-common.h (check_function_arguments): Adjust declaration.
9155 2016-01-13 Jakub Jelinek <jakub@redhat.com>
9157 PR tree-optimization/69156
9158 * gimple.c (validate_type): Removed.
9159 (gimple_builtin_call_types_compatible_p): Use
9160 useless_type_conversion_p instead of validate_type.
9161 * value-prof.c (gimple_stringop_fixed_value): Fold
9162 icall_size to correct type.
9164 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
9166 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
9169 2016-01-13 Richard Henderson <rth@redhat.com>
9172 * target.def (builtin_tm_load, builtin_tm_store): Remove.
9173 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
9174 (ix86_builtin_tm_store): Remove.
9175 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9176 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9177 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9178 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9179 * doc/tm.texi: Rebuild.
9181 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
9182 (BUILT_IN_TM_MEMCPY_RTWN): New.
9183 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
9184 fallback from vector to integer helpers.
9185 (build_tm_load): Handle vector types directly, instead of
9187 (build_tm_store): Likewise.
9188 (expand_assign_tm): Prepare for register types not handled by
9189 the above. Copy them to memory and use memcpy.
9190 * tree.c (tm_define_builtin): New.
9191 (find_tm_vector_type): New.
9192 (build_tm_vector_builtins): New.
9193 (build_common_builtin_nodes): Call it.
9195 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
9197 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
9198 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
9200 2016-01-13 Tom de Vries <tom@codesourcery.com>
9202 PR tree-optimization/69169
9203 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
9204 handled_struct_type param.
9205 (create_variable_info_for, intra_create_variable_infos): Call
9206 create_variable_info_for_1 with extra arg.
9208 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
9210 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
9211 and "armv8.1-a+crc" entries.
9213 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
9216 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
9217 Change first operand predicate from register_or_constm1_operand
9218 to register_operand.
9219 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
9220 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
9221 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
9222 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
9223 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
9224 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
9225 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
9226 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
9227 comparison with constm1_rtx from vec_prefetch_gen part.
9229 2016-01-13 Richard Biener <rguenther@suse.de>
9231 PR tree-optimization/69013
9232 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
9233 Exchange assert for a test.
9235 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
9238 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
9240 2016-01-13 Richard Biener <rguenther@suse.de>
9242 PR tree-optimization/69242
9243 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
9244 assert with a check.
9246 2016-01-13 Richard Biener <rguenther@suse.de>
9248 PR tree-optimization/69186
9249 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9250 Properly guard vect_update_misalignment_for_peel call.
9252 2016-01-12 Jeff Law <law@redhat.com>
9254 PR tree-optimization/pr67755
9255 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
9256 "need_profile_correction".
9257 (thread_block_1): Initialize new field to false by default. If we
9258 have multiple thread paths through a common joiner to different
9259 final targets, then set new field to true.
9260 (compute_path_counts): Only do count adjustment when it's really
9263 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9265 * doc/invoke.texi (Spec Files): Move section down in file, past
9266 all command-line option descriptions.
9268 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9271 * doc/gty.texi: Remove documentation of mark_hook.
9272 * gengtype.c (struct write_types_data): Remove code to support
9273 mark_hook attribute.
9274 (walk_type): Likewise.
9275 (write_func_for_structure): Likewise.
9277 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9279 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
9280 Directory Options, and -specs= to Overall Options.
9281 (Overall Options): Adjust similarly. Reorder to group related
9282 options together. Make -specs= cross-reference the spec file details.
9283 (Directory Options): Adjust similarly.
9285 2016-01-12 Jeff Law <law@redhat.com>
9287 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
9289 2016-01-12 Olivier Hainque <hainque@adacore.com>
9291 * gcc.c (spec_undefvar_allowed): New global.
9292 (process_command): Set to true when running for --version or --help,
9294 (getenv_spec_function): When the variable is not defined, use the
9295 variable name as the variable value if we're allowed not to issue
9298 2016-01-12 Bin Cheng <bin.cheng@arm.com>
9300 PR tree-optimization/68911
9301 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9302 information computed for expression "init + nit * step".
9304 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9306 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
9307 about name of GCC executable. Remove deleted node from menu.
9308 (Directory Options) <-B>: Remove cross-reference to deleted node.
9309 (Target Options): Delete section.
9311 2016-01-12 Christian Bruel <christian.bruel@st.com>
9314 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9315 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9317 2016-01-12 Jakub Jelinek <jakub@redhat.com>
9320 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9321 aligned_mem is properly set for AVX512-VL floating point masked
9325 * ifcvt.c (cond_exec_process_if_block): When removing the last
9326 insn from then_bb, remove also any possible barriers that follow it.
9328 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
9332 * config/i386/iamcu.h (SIZE_TYPE): New macro.
9333 (PTRDIFF_TYPE): Likewise.
9334 (WCHAR_TYPE): Likewise.
9335 (WCHAR_TYPE_SIZE): Likewise.
9336 (STDINT_LONG32): Likewise.
9338 2016-01-12 Richard Biener <rguenther@suse.de>
9340 PR tree-optimization/69053
9341 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9342 convert initial value for cond reductions.
9344 2016-01-12 Richard Biener <rguenther@suse.de>
9346 PR tree-optimization/69007
9347 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9348 widen_sum after dot_prod and sad.
9350 2016-01-12 Richard Biener <rguenther@suse.de>
9352 PR tree-optimization/69168
9353 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9354 pattern stmt SLP type.
9355 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9356 end up unused so cope with that case.
9358 2016-01-12 Richard Biener <rguenther@suse.de>
9360 PR tree-optimization/69157
9361 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9362 stmts def type only during analyze phase.
9363 (vectorizable_call): Likewise.
9364 (vectorizable_simd_clone_call): Likewise.
9365 (vectorizable_conversion): Likewise.
9366 (vectorizable_assignment): Likewise.
9367 (vectorizable_shift): Likewise.
9368 (vectorizable_operation): Likewise.
9369 (vectorizable_store): Likewise.
9370 (vectorizable_load): Likewise.
9372 2016-01-12 Richard Biener <rguenther@suse.de>
9374 PR tree-optimization/69174
9375 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9377 (vectorizable_load): Properly compute the number of loads needed
9378 for permuted strided SLP loads and do not spuriously assign
9379 to SLP_TREE_VEC_STMTS.
9381 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
9383 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9384 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9385 (MD_EXEC_PREFIX): Remove.
9386 (MD_STARTFILE_PREFIX) Removee.
9387 (FILE_NAME_ABSOLUTE_P): Remove.
9388 (CPP_SPEC): Do not read macros from sys/version.h.
9389 (LINK_COMMAND_SPEC): Remove.
9390 (LOCAL_INCLUDE_DIR): Remove.
9391 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9392 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9393 (POST_LINK_SPEC): Define to invoke stubify after linker
9394 (LIBSTDCXX): Remove define
9395 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9396 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9397 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9398 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9399 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9400 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9401 (i386_djgpp_asm_named_section): Add propotype of new procedure
9403 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9404 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9405 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9406 in config/i386/djgpp.h).
9407 (STANDARD_STARTFILE_PREFIX_2): Define identical to
9408 STANDARD_STARTFILE_PREFIX_1.
9409 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9410 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9411 installation errors.
9412 (MAX_OFILE_ALIGNMENT): Define to 128.
9413 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9415 * config/i386/djgpp.c: New file. Add implementation of
9416 i386_djgpp_asm_named_section.
9418 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9420 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9421 Add rule for building djgpp.o.
9423 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9425 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9426 (rtx_is_swappable_p): Reductions are swappable.
9427 (insn_is_swappable_p): V2DF reductions are swappable.
9429 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
9431 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9432 reloads for other unsupported memory operands.
9434 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9435 Jim Wilson <jim.wilson@linaro.org>
9438 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9439 copy_to_mode_reg instead of force_reg.
9441 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9444 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9445 TARGET_80387 is true.
9447 2016-01-11 Jakub Jelinek <jakub@redhat.com>
9450 * lra-eliminations.c (move_plus_up): Only move plus up
9451 if subreg of the constant can be simplified into constant
9452 and use the simplified subreg of the constant instead of
9453 the original constant.
9455 * fold-const.c (fold_convertible_p): Don't return true
9456 for conversion of VECTOR_TYPE to same sized integral type.
9457 (fold_convert_loc): Fix up formatting. Fold conversion of
9458 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9459 instead of NOP_EXPR.
9461 PR tree-optimization/69214
9462 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9463 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9466 PR tree-optimization/69207
9467 * tree-vect-slp.c (vect_get_constant_vectors): For
9468 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9469 fold_convertible_p to vector_type's element type, and always
9470 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9472 2016-01-11 Richard Biener <rguenther@suse.de>
9474 PR tree-optimization/69173
9475 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9476 fixup the cycle if all stmts are in a pattern.
9478 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9481 * alias.c (base_alias_check): Move check for addresses with
9482 alignment ANDs before the call for compare_base_decls.
9483 (memrefs_conflict_p): Return -1 for different decls
9484 that went through alignment adjustments.
9486 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9488 PR rtl-optimization/68796
9489 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9490 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9491 and QImode comparisons against zero with CC_NZmode.
9492 * config/aarch64/iterators.md (short_mask): New mode_attr.
9494 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9496 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9497 (<avx512>_store<mode>_mask): Likewise.
9499 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9500 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9502 PR rtl-optimization/68841
9503 * ifcvt.c (struct noce_if_info): Add orig_x field.
9504 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9505 Don't record conflicts on to_rename if it's present.
9506 Allow memory destinations in sets.
9507 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9508 blocks, passing orig_x to the checks.
9509 (noce_process_if_block): Set if_info->orig_x appropriately.
9511 2016-01-11 Tom de Vries <tom@codesourcery.com>
9513 PR tree-optimization/69069
9514 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9516 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9518 PR rtl-optimization/68920
9519 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9520 of conditional moves for RTL if-conversion to 1 for
9521 TARGET_ONE_IF_CONV_INSN.
9522 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9523 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9524 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9525 parameter to restirct number of conditional moves for
9527 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9528 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9531 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9534 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9535 onepart vars. Fix typo in comment. Fix reversed condition in
9537 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9540 * var-tracking.c (dump_onepart_variable_differences): New.
9541 (dataflow_set_different): If a detailed dump is requested,
9542 delay early returns and dump differences between onepart
9543 variables present before and after, and added variables.
9545 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9548 * expr.c (expand_expr_real_1): For boolean vector constants
9549 with a scalar mode use const_scalar_mask_from_tree.
9550 (const_scalar_mask_from_tree): New.
9551 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9552 assigned to a mask type to handle constants.
9554 2016-01-11 Martin Jambor <mjambor@suse.cz>
9557 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9558 useless parameters if we cannot change function signature.
9560 2016-01-11 Martin Jambor <mjambor@suse.cz>
9563 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9566 2016-01-11 Tom de Vries <tom@codesourcery.com>
9568 PR tree-optimization/69109
9569 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9572 2016-01-11 Tom de Vries <tom@codesourcery.com>
9574 PR tree-optimization/69108
9575 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9576 res is not used in a phi.
9578 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9581 * common.opt (frandom-seed): Fix parameter name.
9582 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9584 2016-01-11 Tom de Vries <tom@codesourcery.com>
9586 PR tree-optimization/69058
9587 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9590 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9592 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9593 (mcode-density): Likewise.
9595 2016-01-10 Tom de Vries <tom@codesourcery.com>
9597 PR tree-optimization/69062
9598 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9599 (parallelize_loops): Don't paralelize loop that has phi with address
9602 2016-01-10 Tom de Vries <tom@codesourcery.com>
9604 PR tree-optimization/69039
9605 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9608 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9611 * match.pd: Require target has function_c99_misc before doing
9612 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9614 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9616 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9618 * configure: Regenerate.
9620 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9623 PR tree-optimization/69097
9624 * fold-const.h (expr_not_equal_to): New prototype.
9625 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9626 (expr_not_equal_to): New function.
9627 * match.pd (X % -Y is the same as X % Y): Don't optimize
9628 unless X is known not to be equal to minimum or Y is known
9629 not to be equal to -1.
9630 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9631 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9632 (simplify_stmt_using_ranges): Adjust caller.
9633 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9634 substitute_and_fold.
9636 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9638 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9641 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9643 PR tree-optimization/69167
9644 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9645 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9647 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9649 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9650 Richard Biener <rguenther@suse.de>
9652 PR tree-optimization/68707
9653 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9654 instances that can be handled via vect_load_lanes.
9656 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9658 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9659 if we can't determine address equivalence.
9660 * alias.c (compare_base_decl): Update for changed return value of
9661 symtab_node::equal_address_to.
9663 2016-01-08 Jason Merrill <jason@redhat.com>
9667 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9668 * expr.c (store_field): Not here.
9669 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9670 call with TREE_ADDRESSABLE type.
9671 * tree-cfg.c (verify_gimple_call): Adjust.
9673 2016-01-08 Olivier Hainque <hainque@adacore.com>
9675 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9678 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9680 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9681 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9682 (reduc_smin_v2sf): Rename to...
9683 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9684 (reduc_splus_v2sf): Rename to...
9685 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9687 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9689 PR tree-optimization/69162
9690 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9691 valist argument in another argument.
9692 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9693 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9694 to determine the va_list type, build a MEM_REF instead of
9695 build_fold_indirect_ref.
9697 PR tree-optimization/69172
9698 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9701 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9703 PR tree-optimization/67781
9704 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9705 and cmpnop in two steps: first the ones not accessed in original
9706 gimple expression in a endian independent way and then the ones not
9707 accessed in the final result in an endian-specific way.
9709 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9711 PR tree-optimization/69083
9712 * tree-vect-slp.c (vect_get_constant_vectors): For
9713 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9714 element type. If op is fold_convertible_p to vector_type's element
9715 type, use NOP_EXPR instead of VCE.
9717 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9719 PR rtl-optimization/67778
9720 PR rtl-optimization/68634
9721 PR rtl-optimization/68909
9722 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9723 block from the stack until done with it. Remove a superfluous
9724 bitmap set. Remove a superfluous bitmap test.
9726 2016-01-07 Martin Sebor <msebor@redhat.com>
9729 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9730 constraint on the type of arguments.
9732 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9734 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9735 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9736 unaligned_access on the gcc_options set.
9737 * config/arm/arm.c (arm_option_override_internal): Use
9738 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9740 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9743 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9744 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9746 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9749 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9752 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9753 depending on frame_pointer_needed before remaining integer and SSE
9754 registers are saved.
9756 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9759 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9761 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9764 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9765 Use the "xBm" constraint.
9766 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9768 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9769 (sse_cvtsi2ssq<round_name>): Likewise.
9770 (sse_cvtss2si<round_name>): Likewise.
9771 (sse_cvtss2siq<round_name>): Likewise.
9772 (sse2_cvtsi2sdq<round_name>): Likewise.
9773 (sse2_cvtsd2si<round_name>): Likewise.
9774 (sse2_cvtsd2siq<round_name>): Likewise.
9775 * config/i386/subst.md (round_nimm_scalar_predicate): New
9778 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9781 * varasm.c (make_decl_rtl): Mark invalid register vars as
9784 PR rtl-optimization/66206
9785 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9786 All callers changed.
9788 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9790 PR tree-optimization/69141
9791 * tree-ssa-pre.c: Include langhooks.h.
9792 (eliminate_dom_walker::before_dom_children): Use
9793 lang_hooks.decl_printable_name instead of
9794 cgraph_node::get ()->name ().
9797 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9798 it and DECL_ALIGN too.
9800 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9802 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9804 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9807 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9808 depending on frame_pointer_needed before remaining integer and SSE
9809 registers are saved.
9811 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9813 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9814 mode iterator with VSX_M2.
9815 (*p9_vecstore_<mode>): Likewise.
9816 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9817 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9818 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9819 (define_split for VSX_LE128 stores): Likewise.
9820 (define_peephole2 for TImode LE swaps): Likewise.
9821 (define_split for VSX_LE128 post-reload stores): Likewise.
9823 2016-01-06 Marek Polacek <polacek@redhat.com>
9826 * convert.c (convert_to_integer_1): Adjust call to
9827 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9828 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9829 EXPR instead of ARG.
9830 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9832 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9835 * doc/extend.texi (RL78 Variable Attributes): New section.
9837 2016-01-05 Marek Polacek <polacek@redhat.com>
9840 * builtins.c (get_memmodel): Use expansion point location rather than
9841 the input location. Call warning_at rather than warning.
9842 (expand_builtin_atomic_compare_exchange): Likewise.
9843 (expand_builtin_atomic_load): Likewise.
9844 (expand_builtin_atomic_store): Likewise.
9845 (expand_builtin_atomic_clear): Likewise.
9847 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9850 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9851 Replace nonimmediate_operand with vector_operand.
9852 * config/i386/predicates.md (vector_operand): New predicate.
9853 (general_vector_operand): Replace nonimmediate_operand with
9855 * config/i386/sse.md: Replace nonimmediate_operand with
9856 vector_operand and m constraint with Bm constraint on SSE
9857 patterns with 16-byte memory operand.
9858 * config/i386/subst.md (round_nimm_predicate): Replace
9859 nonimmediate_operand with vector_operand.
9860 (round_saeonly_nimm_predicate): Likewise.
9861 (round_saeonly_nimm_scalar_predicate): New.
9863 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9866 * config/i386/constraints.md (Bm): New constraint.
9867 * config/i386/predicates.md (vector_memory_operand): New
9869 * config/i386/sse.md: Replace xm with xBm in plusminus and
9872 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9875 * doc/extend.texi (V850 Function Attributes): New section.
9876 (V850 Variable Attributes): New section.
9878 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9881 * doc/extend.texi (MicroBlaze Function Attributes): Document
9882 interrupt_handler and fast_interrupt attributes.
9884 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9887 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9888 for local symbolic operands.
9889 * config/ia64/predicates.md (local_symbolic_operand64): New
9892 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9894 PR rtl-optimization/68651
9895 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9898 2016-01-05 Nathan Sidwell <nathan@acm.org>
9900 * alias.c (compare_base_decls): Use symtab_node::get.
9902 2016-01-05 Nick Clifton <nickc@redhat.com>
9905 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9906 secondary_reload_info structure.
9909 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9910 decls if weak support is available.
9912 2016-01-04 Martin Sebor <msebor@redhat.com>
9914 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9916 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9918 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9919 OPTION_MASK_P9_DFORM.
9921 * config/rs6000/constraints.md (wo constraint): New constraint for
9924 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9926 (rs6000_init_hard_regno_mode_ok): Likewise.
9928 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9931 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9932 expanders not to have constraints. Add support for ISA 3.0 xxperm
9933 instruction. Add support for fusing xxlor with xxperm.
9934 (altivec_vperm_<mode>_internal): Likewise.
9935 (altivec_vperm_v8hiv16qi): Likewise.
9936 (altivec_vperm_<mode>v16q): Likewise.
9937 (altivec_vperm_<mode>_uns): Likewise.
9938 (vperm_v8hiv4si): Likewise.
9939 (vperm_v16qiv8hi): Likewise.
9941 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9943 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9945 Update copyright years.
9947 * gcc.c (process_command): Update copyright notice dates.
9948 * gcov-dump.c (print_version): Ditto.
9949 * gcov.c (print_version): Ditto.
9950 * gcov-tool.c (print_version): Ditto.
9951 * gengtype.c (create_file): Ditto.
9952 * doc/cpp.texi: Bump @copying's copyright year.
9953 * doc/cppinternals.texi: Ditto.
9954 * doc/gcc.texi: Ditto.
9955 * doc/gccint.texi: Ditto.
9956 * doc/gcov.texi: Ditto.
9957 * doc/install.texi: Ditto.
9958 * doc/invoke.texi: Ditto.
9960 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9962 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9963 modes larger than TImode as TImode if NEON is not enabled.
9965 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9968 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9969 mode for %f0-%f31 only if TARGET_FPU.
9971 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9974 * config/sparc/sparc.c (scan_record_type): Take into account subfields
9975 to compute the PACKED_P predicate.
9976 (function_arg_record_value): Minor tweaks.
9978 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9980 * doc/install.texi (--with-multilib-list): Describe the meaning of the
9981 option for arm*-*-* targets.
9983 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
9985 * doc/extend.texi (Common Function Attributes): Move docs for
9986 MSP430-specific attributes to....
9987 (MSP430 Function Attributes): ...here. Delete the redundant
9988 entries and copy-edit the remaining text.
9989 (MSP430 Variable Attributes): Use uniform format for index
9990 entries and add a cross-reference to the corresponding function
9993 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
9995 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9997 (x86 Options): Likewise.
9999 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
10003 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
10004 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
10005 to corresponding attribute.
10007 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
10009 * doc/extend.texi (Common Function Attributes) <noplt>: Move
10010 to correct alphabetization of table. Copy-edit and correct
10012 <stack_protect>: Likewise.
10013 <target_clones>: Likewise.
10015 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
10016 Correct punctuation.
10017 (Code Gen Options) <-fno-plt>: Copy-edit.
10019 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
10022 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
10023 SI values. Explicitly convert SI to DI and vice-versa.
10025 2016-01-01 Jakub Jelinek <jakub@redhat.com>
10027 PR tree-optimization/69070
10028 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
10029 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
10032 * ubsan.c (ubsan_instrument_float_cast): Call
10033 initialize_sanitizer_builtins.
10036 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
10038 Copyright (C) 2016 Free Software Foundation, Inc.
10040 Copying and distribution of this file, with or without modification,
10041 are permitted in any medium without royalty provided the copyright
10042 notice and this notice are preserved.