1 2016-05-02 Jakub Jelinek <jakub@redhat.com>
3 PR rtl-optimization/70467
4 * cse.c (cse_insn): Handle no-op MEM moves after folding.
6 PR rtl-optimization/70467
7 * ipa-pure-const.c (check_call): Handle internal calls even in
8 ipa mode like in local mode.
10 2016-05-02 Bernd Edlinger <bernd.edlinger@hotmail.de>
12 * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
14 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
16 * match.pd (X u< X, X u> X): New transformations.
18 2016-05-02 Marc Glisse <marc.glisse@inria.fr>
20 * flag-types.h (enum warn_strict_overflow_code): Move ...
21 * coretypes.h: ... here.
22 * fold-const.h (fold_overflow_warning): Declare.
23 * fold-const.c (fold_overflow_warning): Make non-static.
24 (fold_comparison): Move the transformation of X +- C1 CMP C2
25 into X CMP C2 -+ C1 ...
27 * gimple-fold.c (fold_stmt_1): Protect with
28 fold_defer_overflow_warnings.
30 2016-05-02 Nathan Sidwell <nathan@codesourcery.com>
32 * omp-low.c (struct oacc_loop): Add 'inner' field.
33 (new_oacc_loop_raw): Initialize it to zero.
34 (oacc_loop_fixed_partitions): Initialize it.
35 (oacc_loop_auto_partitions): Partition outermost loop to outermost
36 available partitioning.
38 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
40 * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
42 (umulsidi3): Likewise.
43 (indirect_jump): Fix jump instruction assembly patterns.
45 2016-05-02 Thomas Schwinge <thomas@codesourcery.com>
48 * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
49 (nvptx_function_value): Assert non-NULL cfun.
51 2016-05-02 Eric Botcazou <ebotcazou@adacore.com>
53 PR rtl-optimization/70886
54 * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
56 * cselib.h (rtx_equal_for_cselib_1): Declare.
57 (rtx_equal_for_cselib_p: New inline function.
58 * cselib.c (rtx_equal_for_cselib_p): Delete.
59 (rtx_equal_for_cselib_1): Make public.
61 2016-05-02 Uros Bizjak <ubizjak@gmail.com>
63 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
64 (register_mixssei387nonimm_operand): Remove predicate.
65 * config/i386/i386.md (*fop_<mode>_comm): Merge from
66 *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387. Disable unsupported
67 alternatives using "enabled" attribute. Also check X87_ENABLE_ARITH
68 for TARGET_MIX_SSE_I387 alternatives.
69 (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
70 Disable unsupported alternatives using "enabled" attribute. Use
71 nonimm_ssenomem_operand as operand 1 predicate. Also check
72 X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
73 * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
74 (register_mixssei387nonimm_operand): Remove predicate.
76 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
78 * tree.c (cst_and_fits_in_hwi): Simplify.
80 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
82 * tree.h (wi::to_wide): New function.
83 * expr.c (expand_expr_real_1): Use wi::to_wide.
84 * fold-const.c (int_const_binop_1): Likewise.
85 (extract_muldiv_1): Likewise.
87 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
89 * wide-int.h: Update offset_int and widest_int documentation.
90 (WI_SIGNED_SHIFT_RESULT): New macro.
91 (wi::binary_shift): Define signed_shift_result_type for
92 shifts on offset_int- and widest_int-like types.
93 (generic_wide_int): Support <<= and >>= if << and >> are supported.
94 * tree.h (int_bit_position): Use shift operators instead of wi::
96 * alias.c (adjust_offset_for_component_ref): Likewise.
97 * expr.c (get_inner_reference): Likewise.
98 * fold-const.c (fold_comparison): Likewise.
99 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
100 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
101 * tree-dfa.c (get_ref_base_and_extent): Likewise.
102 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
103 (stmt_kills_ref_p): Likewise.
104 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
105 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
106 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
107 (ao_ref_init_from_vn_reference): Likewise.
109 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
111 * wide-int.h: Update offset_int and widest_int documentation.
112 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
113 (wi::binary_traits): Allow ordered comparisons between offset_int and
114 offset_int, between widest_int and widest_int, and between either
115 of these types and basic C types.
116 (operator <, <=, >, >=): Define for the same combinations.
117 * tree.h (tree_int_cst_lt): Use comparison operators instead
119 (tree_int_cst_le): Likewise.
120 * gimple-fold.c (fold_array_ctor_reference): Likewise.
121 (fold_nonarray_ctor_reference): Likewise.
122 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
123 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
124 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
125 * tree-sra.c (completely_scalarize): Likewise.
126 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
127 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
128 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
129 (check_for_binary_op_overflow): Likewise.
130 (search_for_addr_array): Likewise.
131 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
133 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
135 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
136 (arc_save_restore): Likewise.
137 (arc_dwarf_register_span): Likewise.
138 (arc_output_pic_addr_const): Initialize suffix variable.
140 2016-05-02 Martin Liska <mliska@suse.cz>
142 * symbol-summary.h (function_summary::function_summary):
143 Remove checking assert for all cgraph nodes.
144 (function_summary::get): Check summary_uid.
145 (symtab_insertion): Check summary_uid.
147 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
149 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
150 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
152 (arc_dwarf_register_span): Remove enum keyword.
153 (compact_memory_operand_p): New function.
154 * config/arc/arc.h (reg_class): Add code density register classes.
155 (REG_CLASS_NAMES): Likewise.
156 (REG_CLASS_CONTENTS): Likewise.
157 * config/arc/arc.md (*movqi_insn): Add code density instructions.
158 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
159 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
160 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
161 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
163 (h, Rcd, Rsd, Rzd): New register constraints.
164 (T): Use compact_memory_operand_p function.
165 * config/arc/predicates.md (compact_load_memory_operand): Remove.
167 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
169 * config/sh/sh.md (*negnegt, *movtt): Remove.
171 2016-05-02 Marek Polacek <polacek@redhat.com>
172 Tom de Vries <tom@codesourcery.com>
174 PR tree-optimization/70700
175 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
176 bigger than FIRST_REF_NODE.
178 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
181 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
183 (prepare_cbranch_operands): Don't use scratch register. Assume that
184 function is used when pseudos can be created.
185 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
186 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
187 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
188 define_expand. Allow it only when pseudos can be created.
189 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
191 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
193 * config/i386/constraints.md (BC): Only allow -1 operands.
194 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
195 Add "enabled" attribute. Update XI mode attribute calculation.
196 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
197 (*movoi_internal_avx): Update XI mode attribute calculation.
198 (*movti_internal): Ditto.
200 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
202 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
203 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
205 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
207 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
208 statement on instruction code. Remove trailing spaces.
209 (altivec_expand_stv_builtin): Likewise.
211 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
213 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
214 (TARGET_FPU_DOUBLE): Simplify.
215 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
216 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
217 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
218 with 'TARGET_FPU_DOUBLE'.
219 * config/sh/sh.md: Likewise.
221 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
223 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
224 SH_DIV_STR_FOR_SIZE): Remove.
225 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
226 SH_DIV_STR_FOR_SIZE): Remove.
228 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
230 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
231 logical_reg_operand): Delete.
232 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
233 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
234 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
235 match_operand and match_test.
236 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
237 variables on their first use. Return bool values.
238 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
239 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
240 arith_reg_operand for input operand. Remove empty constraints.
242 (*xorsi3_compact): Rename to xorsi3.
243 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
244 (*zero_extend<mode>si2_disp_mem): Update comment.
247 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
249 * config/sh/t-sh: Remove SH5 support.
250 * config.gcc: Likewise.
251 * configure: Likewise.
253 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
255 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
257 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
259 * config/sh/sh.c (register_sh_passes, sh_option_override,
260 sh_print_operand, prepare_move_operands,
261 sh_can_follow_jump): Remove TARGET_SH1 checks.
262 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
263 PROMOTE_MODE): Likewise.
264 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
267 2016-04-30 Alan Modra <amodra@gmail.com>
269 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
270 restoring when fixed_reg_p, but allow out-of-line or stmw save.
271 Check for user regs later to avoid unnecessary looping over regs.
272 Merge user reg check with non-saved reg check. Don't force
273 inline VR restore when static chain used.
274 (rs6000_frame_related): Omit eh_frame info for user regs when
276 (fixed_regs_p): Delete.
278 2016-04-30 Alan Modra <amodra@gmail.com>
280 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
281 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
284 2016-04-30 Alan Modra <amodra@gmail.com>
287 * config/rs6000/rs6000.c (fixed_reg_p): New function.
288 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
291 2016-04-30 Alan Modra <amodra@gmail.com>
293 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
294 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
295 flag_pic test for Darwin.
297 2016-04-30 Alan Modra <amodra@gmail.com>
299 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
301 (REG_FREQ_CALLS_CROSSED): Delete.
302 (REG_N_THROWING_CALLS_CROSSED): Delete.
303 * regstat.c (regstat_bb_compute_ri): Don't calculate
304 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
305 (dump_reg_info): Don't print call cross frequency.
306 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
307 and REG_N_THROWING_CALLS_CROSSED.
309 2016-04-30 Alan Modra <amodra@gmail.com>
311 * regs.h (struct reg_info_t): Delete live_length.
312 (REG_LIVE_LENGTH): Delete macro.
313 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
314 local_live, local_processed and local_live_last_luid params.
315 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
317 (regstat_compute_ri): Adjust for above. Don't set
319 (dump_reg_info): Don't print live length.
320 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
321 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
322 Localize loop_depth var.
324 2016-04-30 Alan Modra <amodra@gmail.com>
326 * ira.c (enum valid_equiv): New.
327 (validate_equiv_mem): Return enum.
328 (update_equiv_mem): Create replacement in more cases.
329 (add_store_equivs): Update validate_equiv_mem call.
331 2016-04-30 Alan Modra <amodra@gmail.com>
333 * ira.c (combine_and_move_insns): Rather than scanning insns,
334 use DF infrastucture to find use and def insns.
336 2016-04-30 Alan Modra <amodra@gmail.com>
338 ira.c (combine_and_move_insns): Move invariant conditions..
339 (ira.c): ..to here. Call combine_and_move_insns before
340 add_store_equivs. Call grow_reg_equivs later. Allocate
341 req_equiv later using max_reg_num() rather than global max_regno.
342 (contains_replace_regs): Delete.
343 (add_store_equivs): Remove contains_replace_regs test.
345 2016-04-30 Alan Modra <amodra@gmail.com>
347 * ira.c (struct equiv_mem_data): New.
348 (equiv_mem, equiv_mem_modified): Delete static vars.
349 (validate_equiv_mem_from_store): Use "data" param to communicate..
350 (validate_equiv_mem): ..from here.
352 2016-04-30 Alan Modra <amodra@gmail.com>
354 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
356 (update_reg_equivs): ..here. Move allocation and freeing of
357 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
358 end_alias_analysis to..
361 2016-04-30 Alan Modra <amodra@gmail.com>
363 * ira.c (pdx_subregs): Delete.
364 (struct equivalence): Add pdx_subregs field.
365 (set_paradoxical_subreg): Remove pdx_subregs param. Update
367 (update_equiv_regs): Don't create or free pdx_subregs. Update
370 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
372 * config/rs6000/altivec.h: Change definitions of vec_xl and
374 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
375 (LD_ELEMREV_V2DI): New.
376 (LD_ELEMREV_V4SF): New.
377 (LD_ELEMREV_V4SI): New.
378 (LD_ELEMREV_V8HI): New.
379 (LD_ELEMREV_V16QI): New.
380 (ST_ELEMREV_V2DF): New.
381 (ST_ELEMREV_V2DI): New.
382 (ST_ELEMREV_V4SF): New.
383 (ST_ELEMREV_V4SI): New.
384 (ST_ELEMREV_V8HI): New.
385 (ST_ELEMREV_V16QI): New.
388 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
389 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
390 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
391 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
392 (altivec_expand_builtin): Add handling for
393 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
394 (rs6000_invalid_builtin): Add error-checking for
395 RS6000_BTM_P9_VECTOR.
396 (altivec_init_builtins): Define builtins used to implement vec_xl
398 (rs6000_builtin_mask_names): Define power9-vector.
399 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
400 (RS6000_BTM_P9_VECTOR): Define.
401 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
402 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
403 (vsx_ld_elemrev_v2df): Likewise.
404 (vsx_ld_elemrev_v4sf): Likewise.
405 (vsx_ld_elemrev_v4si): Likewise.
406 (vsx_ld_elemrev_v8hi): Likewise.
407 (vsx_ld_elemrev_v16qi): Likewise.
408 (vsx_st_elemrev_v2df): Likewise.
409 (vsx_st_elemrev_v2di): Likewise.
410 (vsx_st_elemrev_v4sf): Likewise.
411 (vsx_st_elemrev_v4si): Likewise.
412 (vsx_st_elemrev_v8hi): Likewise.
413 (vsx_st_elemrev_v16qi): Likewise.
414 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
417 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
419 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
421 (simplify_control_stmt_condition_1): ... here. Recurse into
422 BIT_AND_EXPRs and BIT_IOR_EXPRs.
424 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
427 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
428 (zero_extendqi<mode>2_dot): Revert earlier conversion from
429 define_insn_and_split to define_insn.
430 (zero_extendqi<mode>2_dot2): Same.
431 (extendqi<mode>2_dot): Same.
432 (extendqi<mode>2_dot2): Same.
434 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
436 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
437 (probe_stack): New expander.
438 (probe_stack_<mode>): New insn pattern.
440 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
442 * config/i386/i386.md
443 (operations with memory inputs setting flags peephole2):
444 Remove uneeded REG_P checks. Cleanup pattern generation.
446 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
448 * tree-vect-loop.c (vect_transform_loop): Fix
449 nb_iterations_upper_bound computation for vectorized loop.
451 2016-04-29 Marek Polacek <polacek@redhat.com>
452 Jakub Jelinek <jakub@redhat.com>
455 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
456 TARGET_EXPR_SLOT as a base.
458 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
460 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
461 with 'rCm2' constraints to limit possible immediate size.
462 (*load_zeroextendqisi_update): Likewise.
463 (*load_signextendqisi_update): Likewise.
464 (*loadhi_update): Likewise.
465 (*load_zeroextendhisi_update): Likewise.
466 (*load_signextendhisi_update): Likewise.
467 (*loadsi_update): Likewise.
468 (*loadsf_update): Likewise.
470 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
472 * config/i386/predicates.md (constm1_operand): Fix comparison.
474 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
476 * testsuite/gcc.target/arc/ieee_eq.c: New test.
478 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
480 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
481 remaining SH5 related settings.
482 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
483 shmedia_prepare_call_address): Delete.
484 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
485 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
486 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
487 UNSUPPORTED_SH2A): Remove m5 checks.
488 (sh_divide_strategy_e): Remove SH5 division strategies.
489 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
490 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
492 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
494 * config/s390/s390.c (s390_rtx_costs): Update documentation.
496 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
498 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
499 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
501 * config/s390/vector.md ("mov<mode>"): Likewise.
503 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
505 * config/s390/constraints.md ("U", "W"): Invoke
506 s390_mem_constraint with "ZR" and "ZT".
507 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
508 addresses when using LRA. Accept also short displacements for S
509 and T constraints. Do not check for long displacement target for
511 (s390_mem_constraint): Remove handling of U and W constraints.
512 * config/s390/s390.md (various patterns): Remove the short
513 displacement constraints (Q and R) if a long displacement
514 constraint is present. Add longdisp as required CPU capability.
515 * config/s390/vector.md: Likewise.
516 * config/s390/vx-builtins.md: Likewise.
518 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
521 * reload1.c (reload): Call finish_spills before
522 restarting reload loop. Skip select_reload_regs
523 if update_eliminables_and_spill returns true.
525 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
527 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
528 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
529 (umulhisi3_imm): Update predicates and constraint letters.
530 (umulhisi3_reg): Declare instruction as commutative.
531 * config/arc/constraints.md (J12, J16): New constraints.
532 * config/arc/predicates.md (short_unsigned_const_operand): New
534 (arc_short_operand): Likewise.
535 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
537 2016-04-29 Richard Biener <rguenther@suse.de>
539 PR tree-optimization/13962
540 PR tree-optimization/65686
541 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
542 * tree-ssa-alias.c (ptrs_compare_unequal): New function
543 using PTA to compare pointers.
544 * match.pd: Add pattern for pointer equality compare simplification
545 using ptrs_compare_unequal.
547 2016-04-29 Richard Biener <rguenther@suse.de>
549 * stor-layout.c (layout_type): Do not build a pointer-to-element
552 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
554 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
555 Use SWI mode iterator. Use general_reg_operand predicate.
556 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
557 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
560 2016-04-29 Jakub Jelinek <jakub@redhat.com>
563 * fold-const.c (operand_equal_p): Don't verify hash value equality
565 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
568 2016-04-28 Jakub Jelinek <jakub@redhat.com>
571 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
572 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
573 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
574 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
575 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
577 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
579 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
580 to info. Don't initialize separate fields to 0. Clean up
583 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
585 * config/i386/i386.md (peephole2s for operations with memory inputs):
586 Use SWI mode iterator.
587 (peephole2s for operations with memory outputs): Ditto.
588 Do not check for stack checking probe.
590 (probe_stack): Remove expander.
592 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
593 Andrew Burgess <andrew.burgess@embecosm.com>
595 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
598 2016-04-28 Jason Merrill <jason@redhat.com>
600 * gdbinit.in: Skip line-map.h.
602 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
603 Andrew Burgess <andrew.burgess@embecosm.com>
605 * config/arc/arc.c (arc_conditional_register_usage): Take
606 TARGET_RRQ_CLASS into account.
607 (arc_print_operand): Support printing 'p' and 's' operands.
608 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
610 (TARGET_RRQ_CLASS): Define.
611 (IS_POWEROF2_OR_0_P): Define.
612 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
614 (*tst_movb): New define_insn.
615 (*tst): Avoid recognition if it could prevent '*tst_movb'
616 combination; replace c/CnL with c/Chs alternative.
617 (*tst_bitfield_tst): New define_insn.
618 (*tst_bitfield_asr): New define_insn.
619 (*tst_bitfield): New define_insn.
620 (andsi3_i): Add Rrq variant.
621 (extzv): New define_expand.
622 (insv): New define_expand.
623 (*insv_i): New define_insn.
624 (*movb): New define_insn.
625 (*movb_signed): New define_insn.
626 (*movb_high): New define_insn.
627 (*movb_high_signed): New define_insn.
628 (*movb_high_signed + 1): New define_split pattern.
629 (*mrgb): New define_insn.
630 (*mrgb + 1): New define_peephole2 pattern.
631 (*mrgb + 2): New define_peephole2 pattern.
632 * config/arc/arc.opt (mbitops): New option for nps400, uses
633 TARGET_NPS_BITOPS_DEFAULT.
634 * config/arc/constraints.md (q): Make register class conditional.
635 (Rrq): New register constraint.
636 (Chs): New constraint.
637 (Clo): New constraint.
638 (Chi): New constraint.
639 (Cbf): New constraint.
640 (Cbn): New constraint.
641 (C18): New constraint.
642 (Cbi): New constraint.
644 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
646 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
648 (bitmap_intersection_of_preds): Ditto.
649 (bitmap_union_of_succs): Ditto.
650 (bitmap_union_of_preds): Ditto.
651 * sbitmap.c (do_popcount): Delete.
652 (BITMAP_DEBUGGING): Delete.
653 (sbitmap_verify_popcount): Delete.
654 (sbitmap_alloc): Don't initialize the popcount field.
655 (sbitmap_alloc_with_popcount): Delete.
656 (sbitmap_resize): Don't resize the popcount array.
657 (sbitmap_vector_alloc): Don't initialize the popcount field.
658 (bitmap_copy): Don't copy the popcount array.
659 (bitmap_clear): Don't clear the popcount array.
660 (bitmap_clear): Delete the popcount array handling.
661 (bitmap_ior_and_compl): Delete the popcount assert.
663 (bitmap_and_compl): Ditto.
664 (bitmap_and): Delete the popcount array handling.
667 (bitmap_or_and): Delete the popcount assert.
668 (bitmap_and_or): Ditto.
669 (popcount_table): Delete.
670 (sbitmap_elt_popcount): Delete.
671 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
672 (bitmap_set_bit): Delete the popcount assert.
673 (bitmap_clear_bit): Ditto.
674 (sbitmap_free): Don't free the popcount array.
675 (sbitmap_alloc_with_popcount): Delete declaration.
676 (sbitmap_popcount): Ditto.
678 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
679 Andrew Burgess <andrew.burgess@embecosm.com>
681 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
682 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
683 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
684 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
685 * config/arc/arc.opt (mcmem): New option.
686 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
687 supply length for r/m alternative.
688 (*extendqisi2_ac): Likewise.
689 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
691 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
692 (movhi_insn): Likewise.
693 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
694 (*zero_extendqihi2_i): Add r/Ucm alternative.
695 (*zero_extendqisi2_ac): Likewise.
696 (*zero_extendhisi2_i): Likewise.
697 * config/arc/constraints.md (Uex): New memory constraint.
698 (Ucm): New define_constraint.
699 * config/arc/predicates.md (long_immediate_loadstore_operand):
700 Return 0 for MEM with cmem_address address.
701 (cmem_address_0): New predicates.
702 (cmem_address_1): Likewise.
703 (cmem_address_2): Likewise.
704 (cmem_address): Likewise.
706 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
708 * config/rs6000/rs6000.c (machine_function): Rename
709 insn_chain_scanned_p to spe_insn_chain_scanned_p.
710 (rs6000_stack_info): Adjust.
712 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
713 Andrew Burgess <andrew.burgess@embecosm.com>
715 * config/arc/constraints.md (Usd): Convert to define_constraint.
719 2016-04-28 Jakub Jelinek <jakub@redhat.com>
722 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
723 Add new peephole2 where the first insn is *mov<mode>_or instead of
726 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
728 * tracer.c (bb_seen): Make static.
730 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
732 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
733 support, setup defaults.
734 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
735 * config/arc/arc.c (arc_init): Add NPS400 support.
736 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
737 (TARGET_ARC700): NPS400 is also an ARC700.
738 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
740 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
743 * config/nds32/nds32.md (casesi): Don't access the operands array
746 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
748 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
749 (or $-1,reg peephole2): Ditto.
750 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
752 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
754 * doc/extend.texi (Common Function Attributes) [optimize]:
755 Discourage use of the optimize attribute.
757 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
759 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
760 special case builtin.
761 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
762 ALTIVEC_BUILTIN_VEC_ADDE.
763 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
764 support for ALTIVEC_BUILTIN_VEC_ADDE.
765 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
766 for __builtin_vec_adde.
768 2016-04-28 Jakub Jelinek <jakub@redhat.com>
770 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
771 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
773 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
776 * doc/sourcebuild.texi (Effective-Target Keywords, Other
777 attributes): Document cilkplus_runtime.
779 2016-04-28 Martin Jambor <mjambor@suse.cz>
781 * tree-cfg.c (verify_expr): Verify that local declarations belong to
782 this function. Call verify_expr on MEM_REFs and bases of other
785 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
787 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
788 for WORD_REGISTER_OPERATIONS to runtime check.
790 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
792 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
794 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
796 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
797 big-endian compilation.
798 * config/arc/arc.md (addf3): Likewise.
802 2016-04-28 Richard Biener <rguenther@suse.de>
804 PR tree-optimization/70840
805 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
806 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
807 Mark x * pow(x,c) -> pow(x,c+1) commutative.
808 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
810 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
812 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
813 and explain why in a comment.
815 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
817 * config/arc/arc.md (cpu_facility): Add fpx variant.
818 (subdf3): Prohibit use reverse sub when assist operations option
820 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
821 instructions only when FPX is enabled.
822 * testsuite/gcc.target/arc/trsub.c: New test.
824 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
826 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
827 mult_operator when calculating "type" attribute.
828 (*fop_<mode>_1_i387): Ditto.
829 (*fop_xf_1_i387): Ditto.
830 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
831 Use std::swap to swap operands. Use RTL expressions to generate
834 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
835 Joern Rennecke <joern.rennecke@embecosm.com>
837 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
839 (emit_pic_move): Remove.
840 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
841 * config/arc/arc.c (emit_pic_move): Removed.
842 (TARGET_HAVE_TLS): Define.
843 (arc_conditional_register_usage): Test for arc_tp_regno.
844 (arc_print_operand, arc_print_operand_address): Handle TLS
846 (arc_needs_pcl_p): New function.
847 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
848 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
849 (arc_raw_symbolic_reference_mentioned_p): Likewise.
850 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
851 (arc_legitimize_tls_address): Likewise.
852 (DTPOFF_ZERO_SYM): Define.
853 (arc_legitimize_pic_address): Make it static, handle TLS cases.
854 (arc_output_pic_addr_const): Print TLS unspecs.
855 (prepare_pic_move): New function, replaces emit_pic_move.
856 (arc_legitimate_constant_p): Handle TLS unspecs.
857 (arc_legitimate_address_p): Likewise.
858 (arc_rewrite_small_data_p): Use assert for TLS constants.
859 (prepare_move_operands): Use prepare_pic_move.
860 (arc_legitimize_address): Legitimize tls addresses.
861 (arc_epilogue_uses): Check for arc_tp_regno.
862 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
863 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
865 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
867 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
868 %(arc_tls_extra_start_spec).
869 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
870 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
872 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
873 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
874 (UNSPEC_TLS_OFF): Add.
876 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
877 (get_thread_pointersi): New patterns.
878 * config/arc/arc.opt (mtp-regno): New option.
879 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
880 (move_dest_operand): Likewise.
881 * configure: Regenerate.
882 * configure.ac: Add arc*-*-* case to test for tls.
883 * doc/invoke.texi (ARC options): Document mtp-regno.
885 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
887 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
888 the new ARC HS SIMD instructions.
889 (arc_preferred_simd_mode): New function.
890 (arc_autovectorize_vector_sizes): Likewise.
891 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
892 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
893 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
894 (arc_init_builtins): Add new SIMD builtin types.
895 (arc_split_move): Handle 64 bit vector moves.
896 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
897 (TARGET_PLUS_QMACW): Define.
898 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
899 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
900 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
901 (VSUBADD4H): New builtins.
902 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
903 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
905 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
906 Matthias Klose <doko@debian.org>
908 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
910 2016-04-28 Richard Biener <rguenther@suse.de>
913 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
916 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
918 * common/config/sh/sh-common.c: Remove SH5 support.
919 * config/sh/constraints.md: Likewise.
920 * config/sh/config/sh/elf.h: Likewise.
921 * config/sh/linux.h: Likewise.
922 * config/sh/netbsd-elf.h: Likewise.
923 * config/sh/predicates.md: Likewise.
924 * config/sh/sh-c.c: Likewise.
925 * config/sh/sh-protos.h: Likewise.
926 * config/sh/sh.c: Likewise.
927 * config/sh/sh.h: Likewise.
928 * config/sh/sh.md: Likewise.
929 * config/sh/sh.opt: Likewise.
930 * config/sh/sync.md: Likewise.
931 * config/sh/sh64.h: Delete.
932 * config/sh/shmedia.h: Likewise.
933 * config/sh/shmedia.md: Likewise.
934 * config/sh/sshmedia.h: Likewise.
935 * config/sh/t-netbsd-sh5-64: Likewise.
936 * config/sh/t-sh64: Likewise.
937 * config/sh/ushmedia.h: Likewise.
939 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
941 * config/i386/i386.md (sign_extend to memory peephole2s): Use
942 general_reg_operand instead of register_operand predicate.
944 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
946 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
948 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
950 * match.pd (A - B > A, A + B < A): New transformations.
952 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
954 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
955 which defaults to true. Emit an outer pair of parentheses only if
956 EMIT_PARENS. When continuing a chain of && or || (or & or |),
957 don't emit parentheses for the right-hand operand.
959 2016-04-27 Jeff Law <law@redhat.com>
961 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
963 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
965 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
966 (altivec_lvx_<mode>_internal): Document.
967 (altivec_lvx_<mode>_2op): New define_insn.
968 (altivec_lvx_<mode>_1op): Likewise.
969 (altivec_lvx_<mode>_2op_si): Likewise.
970 (altivec_lvx_<mode>_1op_si): Likewise.
971 (altivec_stvx_<mode>): Remove.
972 (altivec_stvx_<mode>_internal): Document.
973 (altivec_stvx_<mode>_2op): New define_insn.
974 (altivec_stvx_<mode>_1op): Likewise.
975 (altivec_stvx_<mode>_2op_si): Likewise.
976 (altivec_stvx_<mode>_1op_si): Likewise.
977 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
978 Expand vec_ld and vec_st during parsing.
979 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
981 (altivec_expand_stvx_be): Likewise.
982 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
983 address-masking behavior in RTL.
984 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
985 address-masking behavior in RTL.
986 (altivec_expand_builtin): Change builtin code arguments for calls
987 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
988 (insn_is_swappable_p): Avoid incorrect swap optimization in the
989 presence of lvx/stvx patterns.
990 (alignment_with_canonical_addr): New function.
991 (alignment_mask): Likewise.
992 (find_alignment_op): Likewise.
993 (recombine_lvx_pattern): Likewise.
994 (recombine_stvx_pattern): Likewise.
995 (recombine_lvx_stvx_patterns): Likewise.
996 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
997 stvx patterns from expand.
998 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
1000 (vector_altivec_store_<mode>): Likewise.
1002 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
1004 * config/aarch64/aarch64.md
1005 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
1006 remove the "fp" attributes.
1007 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
1008 add the "simd" attributes.
1009 (*movdf_aarch64): Likewise.
1010 (*movtf_aarch64): Remove the "fp" attributes.
1011 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
1012 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
1014 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1016 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
1017 rtx to rtx_code_label *.
1018 * rtl.h (maybe_set_first_label_num): Likewise.
1020 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1022 * df-core.c (df_add_problem): Make the problem param be const.
1023 (df_remove_problem): Make local "problem" be const.
1024 * df-problems.c (problem_RD): Make const.
1025 (problem_LR): Likewise.
1026 (problem_LIVE): Likewise.
1027 (problem_MIR): Likewise.
1028 (problem_CHAIN): Likewise.
1029 (problem_WORD_LR): Likewise.
1030 (problem_NOTE): Likewise.
1031 (problem_MD): Likewise.
1032 * df-scan.c (problem_SCAN): Likewise.
1033 * df.h (struct df_problem): Make field "dependent_problem" be
1035 (struct dataflow): Likewise for field "problem".
1036 (df_add_problem): Make param const.
1038 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1040 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
1041 inter-unit moves to/from vector registers are enabled. Do not disable
1044 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1046 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
1047 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
1049 (enum df_problem_id): ...this new enum.
1050 (struct df_problem): Convert field "id" from "int" to
1053 2016-04-27 David Malcolm <dmalcolm@redhat.com>
1055 * rtl.def: Update comment for "things in the instruction chain" to
1056 reflect the removal of the leading "i" field for INSN_UID in
1057 r210360. Fix bogus apostrophe.
1059 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
1061 * config/i386/i386.md
1062 (lea arith with mem operand + setcc peephole2): Set operator mode.
1064 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
1067 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
1068 (dimode_scalar_to_vector_candidate_p): This.
1069 (timode_scalar_to_vector_candidate_p): New function.
1070 (scalar_to_vector_candidate_p): Likewise.
1071 (timode_check_non_convertible_regs): Likewise.
1072 (timode_remove_non_convertible_regs): Likewise.
1073 (remove_non_convertible_regs): Likewise.
1074 (remove_non_convertible_regs): Renamed to ...
1075 (dimode_remove_non_convertible_regs): This.
1076 (scalar_chain::~scalar_chain): Make it virtual.
1077 (scalar_chain::compute_convert_gain): Make it pure virtual.
1078 (scalar_chain::mark_dual_mode_def): Likewise.
1079 (scalar_chain::convert_insn): Likewise.
1080 (scalar_chain::convert_registers): Likewise.
1081 (scalar_chain::add_to_queue): Make it protected.
1082 (scalar_chain::emit_conversion_insns): Likewise.
1083 (scalar_chain::replace_with_subreg): Likewise.
1084 (scalar_chain::replace_with_subreg_in_insn): Likewise.
1085 (scalar_chain::convert_op): Likewise.
1086 (scalar_chain::convert_reg): Likewise.
1087 (scalar_chain::make_vector_copies): Likewise.
1088 (scalar_chain::convert_registers): New pure virtual function.
1089 (class dimode_scalar_chain): New class.
1090 (class timode_scalar_chain): Likewise.
1091 (scalar_chain::mark_dual_mode_def): Renamed to ...
1092 (dimode_scalar_chain::mark_dual_mode_def): This.
1093 (timode_scalar_chain::mark_dual_mode_def): New function.
1094 (timode_scalar_chain::convert_insn): Likewise.
1095 (dimode_scalar_chain::convert_registers): Likewise.
1096 (scalar_chain::compute_convert_gain): Renamed to ...
1097 (dimode_scalar_chain::compute_convert_gain): This.
1098 (scalar_chain::replace_with_subreg): Renamed to ...
1099 (dimode_scalar_chain::replace_with_subreg): This.
1100 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1101 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1102 (scalar_chain::make_vector_copies): Renamed to ...
1103 (dimode_scalar_chain::make_vector_copies): This.
1104 (scalar_chain::convert_reg): Renamed to ...
1105 (dimode_scalar_chain::convert_reg ): This.
1106 (scalar_chain::convert_op): Renamed to ...
1107 (dimode_scalar_chain::convert_op): This.
1108 (scalar_chain::convert_insn): Renamed to ...
1109 (dimode_scalar_chain::convert_insn): This.
1110 (scalar_chain::convert): Call convert_registers.
1111 (convert_scalars_to_vector): Change to scalar_chain pointer to
1112 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1113 in 32-bit mode. Delete scalar_chain pointer. Call
1114 free_dominance_info in 64-bit mode.
1115 (pass_stv::gate): Remove TARGET_64BIT check.
1116 (ix86_option_override): Put the 64-bit STV pass before the CSE
1119 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1121 * dwarf2out.h (struct dw_loc_descr_node): Remove the
1122 dw_loc_frame_offset field.
1123 * dwarf2out.c (new_loc_descr): Likewise.
1124 (resolve_args_picking_1): Turn the VISITED hash set into a
1125 FRAME_OFFSET hash map. Use it to associate a frame offset to
1126 visited nodes. Remove uses of the CHECKING_P macro.
1127 (resolve_args_picking): Update call to resolve_args_picking_1.
1129 2016-04-27 Martin Liska <mliska@suse.cz>
1131 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1132 (free_loop_data): Release vuses of groups.
1134 2016-04-27 Bin Cheng <bin.cheng@arm.com>
1136 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1137 instead of redundant use_id and boolean have_use_for.
1138 (struct iv_use): Change sub_id into group_id. Remove field next.
1139 Move fields: related_cands, n_map_members, cost_map and selected
1141 (struct iv_group): ... here. New structure.
1142 (struct iv_common_cand): Use structure declaration directly.
1143 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1144 (MAX_CONSIDERED_USES): Rename macro to ...
1145 (MAX_CONSIDERED_GROUPS): ... here.
1146 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1147 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1148 (dump_uses): Rename to ...
1149 (dump_groups): ... here. Update all uses.
1150 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1151 (find_induction_variables): Refactor format of dump information.
1152 (record_sub_use): Delete.
1153 (record_use): Update all uses.
1154 (record_group): New function.
1155 (record_group_use, find_interesting_uses_op): Call above functions.
1157 (find_interesting_uses_cond): Ditto.
1158 (group_compare_offset): New function.
1159 (split_all_small_groups): Rename to ...
1160 (split_small_address_groups_p): ... here. Update all uses.
1161 (split_address_groups): Update all uses.
1162 (find_interesting_uses): Refactor format of dump information.
1163 (add_candidate_1): Update all uses. Remove redundant check on iv,
1165 (add_candidate, record_common_cand): Remove redundant assert.
1166 (add_iv_candidate_for_biv): Update use.
1167 (add_iv_candidate_derived_from_uses): Update all uses.
1168 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1169 (alloc_use_cost_map): Ditto.
1170 (set_use_iv_cost, get_use_iv_cost): Rename to ...
1171 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
1172 (determine_use_iv_cost_generic): Ditto.
1173 (determine_group_iv_cost_generic): Ditto.
1174 (determine_use_iv_cost_address): Ditto.
1175 (determine_group_iv_cost_address): Ditto.
1176 (determine_use_iv_cost_condition): Ditto.
1177 (determine_group_iv_cost_cond): Ditto.
1178 (determine_use_iv_cost): Ditto.
1179 (determine_group_iv_cost): Ditto.
1180 (set_autoinc_for_original_candidates): Update all uses.
1181 (find_iv_candidates): Update all uses. Refactor dump information.
1182 (determine_use_iv_costs): Ditto.
1183 (determine_iv_costs): Ditto.
1184 (iv_ca_cand_for_use): Rename to ...
1185 (iv_ca_cand_for_group): ... here. Update all uses.
1186 (iv_ca_add_use, iv_ca_add_group): Ditto.
1187 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1188 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1189 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1190 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1191 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1192 (create_new_iv, adjust_iv_update_pos): Ditto.
1193 (rewrite_use_address): Delete.
1194 (rewrite_use_address_1): Rename to ...
1195 (rewrite_use_address): ... here.
1196 (rewrite_use_compare): Update all uses.
1197 (rewrite_use): Delete.
1198 (rewrite_uses): Rename to ...
1199 (rewrite_groups): ... here. Update all uses.
1200 (remove_unused_ivs, free_loop_data): Update all uses.
1201 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1203 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1205 * rtlanal.c (nonzero_bits1): Convert preprocessor check
1206 for WORD_REGISTER_OPERATIONS to runtime check.
1208 2016-04-27 Richard Biener <rguenther@suse.de>
1211 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1212 aggregate_value_p to determine if a function result is
1213 returned by reference.
1214 (ipa_pta_execute): Functions having their address taken are
1215 not automatically nonlocal.
1217 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1220 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1221 * fold-const.c (operand_equal_p): If flag_checking and
1222 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1223 and if it returns non-zero, assert iterative_hash_expr on both
1226 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1228 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1230 2016-04-27 Nick Clifton <nickc@redhat.com>
1233 * varasm.c (merge_weak): Generate an error if an attempt is made
1234 to convert a non-weak static function into a weak, public function.
1236 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1238 * params.def (MAX_PARTITION_SIZE): New param.
1239 * doc/invoke.texi: Document lto-max-partition.
1241 2016-04-27 Richard Biener <rguenther@suse.de>
1244 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1245 function cummulating used_from_other_partition, externally_visible
1246 and force_output from aliases.
1247 (refered_from_nonlocal_var): Likewise.
1248 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1249 node flags properly.
1251 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1253 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1254 (-Wmemset-elt-size): New item.
1256 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
1259 * stor-layout.h (internal_reference_types): Delete.
1260 * stor-layout.c (reference_types_internal): Likewise.
1261 (internal_reference_types): Likewise.
1262 (layout_type) <REFERENCE_TYPE>: Adjust.
1264 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1267 * tree.h (inchash::add_expr): Add FLAGS argument.
1268 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
1269 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
1270 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1271 Formatting fix. Adjust recursive calls. For tcc_comparison,
1272 if swap_tree_comparison (code) is smaller than code, hash that
1273 and arguments in the other order. Hash CONVERT_EXPR the same
1274 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1275 of ADDR_EXPR of decl as the decl itself. Add or remove
1276 OEP_ADDRESS_OF from recursive flags as needed. For
1277 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1278 operands commutatively and only the third one normally.
1279 For internal CALL_EXPR hash in CALL_EXPR_IFN.
1281 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1283 * config/rtems.h (LIB_SPEC): Add -latomic.
1285 2016-04-27 Joel Sherrill <joel@rtems.org>
1287 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1288 xilink.ld and flags not relevant to RTEMS.
1290 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1292 * toplev.c (backend_init_target): Avoid calling init_reload when using
1295 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1297 * reorg.c (try_merge_delay_insns): Declare i and j inside the
1298 for loops rather than one for the whole function.
1300 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1302 * match.pd (X + CST CMP X): New transformation.
1304 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1306 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1307 * fold-const.c (fold_binary_loc): Remove 2 transformations
1308 superseded by match.pd.
1309 * match.pd (x+x -> x*2): Generalize to integers.
1311 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
1313 * config/i386/i386.md (operation on memory peephole): Duplicate an
1314 existing peephole and adapt it to match lea rather than an operation
1317 PR rtl-optimization/57193
1318 * opts.c (default_options_table): Add OPT_frename_registers at -O2
1320 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1322 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1324 * tree-if-conv.c (any_pred_load_store): New static variable.
1325 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
1326 any_pred_load_store instead of and_mask_load_store.
1327 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1328 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1329 (combine_blocks, tree_if_conversion): Ditto.
1331 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1333 PR tree-optimization/70771
1334 PR tree-optimization/70775
1335 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1336 virtual PHI nodes. Delete parameter.
1337 (if_convertible_loop_p_1): Delete argument to above function.
1338 (predicate_all_scalar_phis): Delete code handling single-argument
1340 (tree_if_conversion): Mark and update virtual SSA.
1342 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1345 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1346 (x86_elf_aligned_common): Rename to ...
1347 (x86_elf_aligned_decl_common): ... this.
1348 Add decl arg. Switch to .lbss for largecomm object. Use
1349 LARGECOMM_SECTION_ASM_OP.
1350 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1352 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1353 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1355 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1356 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1358 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1361 * config/i386/i386.c (SECTION_LARGE): Define.
1362 (x86_64_elf_select_section): Set it for large data/bss sections.
1363 Only clear SECTION_WRITE for .lrodata.
1364 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1366 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1367 * varasm.c (default_elf_asm_named_section): Grow flagchars.
1368 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1370 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1371 * doc/tm.texi: Regenerate.
1373 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1376 * configure.ac (--enable-checking): Document extra flag, for
1377 non-release builds default to --enable-checking=yes,extra.
1378 If misc checking and extra checking, define CHECKING_P to 2 instead
1380 * common.opt (fchecking=): Add.
1381 * doc/invoke.texi (-fchecking=): Document.
1382 * doc/install.texi: Document --enable-checking changes.
1383 * configure: Regenerated.
1384 * config.in: Regenerated.
1386 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1388 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1389 attribute instead of which_alternative.
1390 * config/i386/sse.md (*mov<mode>_internal): Ditto.
1391 Use EXT_REX_SSE_REG_P where appropriate.
1393 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1395 * config/i386/predicates.md (const0_operand): Do not match
1396 const_wide_int code.
1397 (const1_operand): Ditto.
1399 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1401 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1402 for SSE constm1 operands and TARGET_AVX512VL.
1403 (*movti_internal): Ditto.
1404 (*mov<mode>_or): Use constm1_operand predicate.
1405 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1406 for SSE vector_all_ones operands and TARGET_AVX512VL.
1407 * config/i386/predicates.md (constm1_operand): New predicate.
1408 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1409 emission of constant -1 load.
1411 2016-04-25 Jason Merrill <jason@redhat.com>
1413 * gdbinit.in: Skip is-a.h.
1415 * attribs.c (register_scoped_attributes): Fix logic.
1416 * attribs.h: Declare register_scoped_attributes.
1418 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1420 * config/rs6000/rs6000-builtin.def: Correct pasto error for
1421 stxvd2x and stxvw4x built-in functions.
1423 2016-04-25 DJ Delorie <dj@redhat.com>
1425 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1426 (ashrhi3): Likewise.
1427 (lshrhi3): Likewise.
1429 2016-04-25 Richard Biener <rguenther@suse.de>
1431 PR tree-optimization/70780
1432 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1434 (compute_antic): Mark blocks with abnormal preds as visited as
1435 they have a final empty antic-in solution already.
1437 2016-04-25 Michael Collison <michael.collison@linaro.org>
1439 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1441 2016-04-25 Michael Collison <michael.collison@linaro.org>
1443 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1444 mode is VQI to improve mixed mode vectorization.
1445 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1446 define_insn to match low half of signed vaddw.
1447 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1448 define_insn to match high half of signed vaddw.
1449 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1450 define_insn to match low half of unsigned vaddw.
1451 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1452 define_insn to match high half of unsigned vaddw.
1453 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1454 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1455 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1457 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1458 * config/arm/predicates.md (vect_par_constant_high): Support
1459 big endian and simplify by calling
1460 arm_simd_check_vect_par_cnst_half
1461 (vect_par_constant_low): Likewise.
1463 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1465 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1466 predicate for operand 2.
1468 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
1469 H.J. Lu <hongjiu.lu@intel.com>
1471 * config/i386/i386-protos.h (standard_sse_constant_p): Add
1472 machine_mode argument.
1473 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1474 constm1_rtx operands. For VOIDmode constants, get mode from
1475 pred_mode. Check mode size if the mode is supported by ABI.
1476 (standard_sse_constant_opcode): Do not use standard_constant_p.
1477 Strictly check ABI support for all-ones operands.
1478 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1479 immediates. Update calls to standard_sse_constant_p.
1480 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1481 (ix86_rtx_costs): Ditto.
1482 * config/i386/i386.md (*movxi_internal_avx512f): Use
1483 nonimmediate_or_sse_const_operand instead of vector_move_operand.
1484 Use (v,BC) alternative instead of (v,C). Use register_operand
1485 checks instead of MEM_P.
1486 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1487 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
1488 isa attribute. Use register_operand checks instead of MEM_P.
1489 (*movti_internal): Use nonimmediate_or_sse_const_operand for
1490 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
1491 alternative and corresponding sse2 isa attribute.
1492 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1493 to standard_sse_constant_p.
1494 (FP constant splitters): Ditto.
1495 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1497 * config/i386/predicates.md (constm1_operand): Remove.
1498 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1499 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1500 vector_all_ones_operand instead of constm1_operand.
1502 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1504 * print-rtl.c (print_rtx_insn_vec): New function.
1505 * print-rtl.h: New prototype.
1506 * store-motion.c (struct st_expr): Make avail_stores a vector.
1507 (st_expr_entry): Adjust.
1508 (free_st_expr_entry): Likewise.
1509 (print_store_motion_mems): Likewise.
1510 (find_moveable_store): Likewise.
1511 (compute_store_table): Likewise.
1512 (delete_store): Likewise.
1513 (build_store_vectors): Likewise.
1515 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1517 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1519 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1521 * vec.h (vec_safe_contains): New function.
1522 (vec::contains): Likewise.
1523 (vec::begin): Likewise.
1524 (vec::end): Likewise.
1526 2016-04-23 Jakub Jelinek <jakub@redhat.com>
1529 * cfgexpand.c (expand_stack_vars): Fix typo.
1531 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1533 * system.h (list, map, set, vector): Include conditionally.
1534 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1535 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1536 * ipa-icf.c (INCLUDE_LIST): Define.
1537 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1538 * config/sh/sh.c (INCLUDE_VECTOR): Define.
1539 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1540 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1541 * cp/logic.cc (INCLUDE_LIST): Define.
1542 * fortran/trans-common.c (INCLUDE_MAP): Define.
1544 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1546 * auto-profile.c: Remove <string.h> include.
1547 * ipa-icf-gimple.c: Remove <list> include.
1548 * diagnostic.c: Remove <new> include.
1549 * genmatch.c: Likewise.
1550 * pretty-print.c: Likewise.
1551 * toplev.c: Likewise
1552 * c/c-objc-common.c: Likewise.
1553 * cp/error.c: Likewise.
1554 * fortran/error.c: Likewise.
1556 2016-04-22 Richard Biener <rguenther@suse.de>
1558 * lto-streamer-in.c (input_ssa_names): Do not allocate
1559 GIMPLE_NOP for all SSA names.
1560 * lto-streamer-out.c (output_ssa_names): Do not output
1561 SSA names that should have been released.
1563 2016-04-22 Richard Biener <rguenther@suse.de>
1565 PR tree-optimization/70740
1566 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1569 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1572 * config/i386/predicates.md (call_insn_operand): Replace
1573 sibcall_memory_operand with memory_operand.
1575 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
1577 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1578 has_single_use() tests.
1579 (register_edge_assert_for_1): Likewise.
1580 (find_assert_locations_1): Check the liveness bitmap instead of
1581 checking has_single_use().
1583 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
1586 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1587 Extract AVX-512BW constraint from AVX.
1589 2016-04-21 Richard Biener <rguenther@suse.de>
1591 PR tree-optimization/70725
1592 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1593 for phi_convertible_by_degenerating_args.
1594 (predicate_all_scalar_phis): Handle single-argument PHIs.
1596 2016-04-21 Richard Biener <rguenther@suse.de>
1599 * fold-const.c (fold_comparison): Return properly typed
1602 2016-04-21 Bin Cheng <bin.cheng@arm.com>
1604 PR tree-optimization/70715
1605 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1606 after expanding BASE using expand_simple_operations.
1608 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1610 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1611 New transformations.
1613 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1615 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1617 2016-04-20 Jan Hubicka <jh@suse.cz>
1619 * ipa-inline.c (can_inline_edge_p): Pass caller info to
1620 ultiimate_alias_target.
1621 (update_callee_keys): Likewise.
1622 (lookup_recursive_calls): Likewise.
1623 (speculation_useful_p): Likewise.
1625 2016-04-20 Jan Hubicka <jh@suse.cz>
1628 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1629 (set_nothrow_flag_1): ... this; handle interposition correctly;
1630 recurse on aliases and thunks.
1631 (cgraph_node::set_nothrow_flag): New.
1632 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1633 functions compiled with non-call exceptions that binds to current
1635 (propagate_nothrow): Be safe WRT interposition.
1636 * cgraph.h (set_nothrow_flag): Update prototype.
1638 2016-04-18 Jan Hubicka <jh@suse.cz>
1640 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1641 max_loop_iterations_int.
1642 (tree_unswitch_outer_loop): Likewise.
1644 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1646 PR tree-optimization/69489
1647 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1648 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1649 Revise dump message.
1650 (if_convertible_bb_p): Remove check on edge count of basic block's
1653 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1655 PR tree-optimization/56625
1656 PR tree-optimization/69489
1657 * tree-data-ref.h (DR_INNERMOST): New macro.
1658 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1659 hashing struct innermost_loop_behavior.
1660 (ref_DR_map): Remove.
1661 (innermost_DR_map): New map.
1662 (baseref_DR_map): Revise comment.
1663 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1664 to innermost_DR_map accroding to its innermost loop behavior.
1665 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1666 to its innermost loop behavior.
1667 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1668 Add initialization for innermost_DR_map. Record memory reference
1669 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1670 have innermost loop behavior.
1671 (if_convertible_loop_p): Remove release for ref_DR_map. Release
1674 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
1676 * config/i386/i386.md (*lea<mode>_general_1): Rename from
1677 *lea_general_1. Use explicit SWI12 mode interator.
1678 (*lea<mode>_general_2): Rename from *lea_general_2.
1679 Use explicit SWI12 mode interator.
1680 (*lea<mode>_general_3): Rename from *lea_general_3.
1681 Use explicit SWI12 mode interator.
1682 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1683 Use explicit SWI12 mode interator.
1684 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1685 Use explicit SWI48 mode interator.
1687 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1689 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1690 Short-cut unaligned load and store cases. Handle all integer
1692 (ix86_expand_vector_move_misalign): Short-cut unaligned load
1693 and store cases. Call ix86_avx256_split_vector_move_misalign
1694 directly without checking mode class.
1696 2016-04-20 Andrew Pinski <apinski@cavium.com>
1697 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1700 * config/aarch64/aarch64.md (sibcall): Force call
1701 address to be DImode for ILP32.
1702 (sibcall_value): Likewise.
1704 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1706 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1708 2016-04-20 Richard Biener <rguenther@suse.de>
1710 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1711 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1712 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1713 (maybe_push_res_to_seq): Adjust.
1714 * gimple-fold.c (maybe_build_generic_op): Likewise.
1716 2016-04-20 Marek Polacek <polacek@redhat.com>
1718 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1721 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
1723 * config/i386/sse.md (vec_unpacks_lo_hi): Always
1724 use kmovw to support AVX512F target.
1726 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1728 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1730 2016-04-20 Marek Polacek <polacek@redhat.com>
1732 PR tree-optimization/70725
1733 * tree-if-conv.c (is_false_predicate): New function.
1734 (predicate_mem_writes): Use it.
1736 2016-04-20 Richard Biener <rguenther@suse.de>
1738 PR tree-optimization/70726
1739 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1740 shift amounts from a pattern stmt operand.
1742 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1745 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1746 stack_restore_from_fpr pattern when restoring r15.
1747 (s390_optimize_prologue): Strip away the memory barrier in the
1748 parallel when trying to get rid of restore insns.
1749 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1750 definition for loading the stack pointer from an FPR. Compared to
1751 the normal move insn this pattern includes a full memory barrier.
1753 2016-04-19 Jakub Jelinek <jakub@redhat.com>
1756 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1757 implicitly linear or lastprivate iterator on the outer context.
1759 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1761 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1763 * config/i386/i386.md (ssememalign): Removed.
1764 * config/i386/sse.md: Remove ssememalign attribute from patterns.
1766 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1769 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1770 const short * to __builtin_ia32_loaddquhi512_mask.
1771 (_mm512_maskz_loadu_epi16): Likewise.
1772 (_mm512_mask_storeu_epi16): Pass short * to
1773 __builtin_ia32_storedquhi512_mask.
1774 (_mm512_mask_loadu_epi8): Pass const char * to
1775 __builtin_ia32_loaddquqi512_mask.
1776 (_mm512_maskz_loadu_epi8): Likewise.
1777 (_mm512_mask_storeu_epi8): Pass char * to
1778 __builtin_ia32_storedquqi512_mask.
1779 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1780 const double * to __builtin_ia32_loadupd512_mask.
1781 (_mm512_mask_loadu_pd): Likewise.
1782 (_mm512_maskz_loadu_pd): Likewise.
1783 (_mm512_storeu_pd): Pass double * to
1784 __builtin_ia32_storeupd512_mask.
1785 (_mm512_mask_storeu_pd): Likewise.
1786 (_mm512_loadu_ps): Pass const float * to
1787 __builtin_ia32_loadups512_mask.
1788 (_mm512_mask_loadu_ps): Likewise.
1789 (_mm512_maskz_loadu_ps): Likewise.
1790 (_mm512_storeu_ps): Pass float * to
1791 __builtin_ia32_storeups512_mask.
1792 (_mm512_mask_storeu_ps): Likewise.
1793 (_mm512_mask_loadu_epi64): Pass const long long * to
1794 __builtin_ia32_loaddqudi512_mask.
1795 (_mm512_maskz_loadu_epi64): Likewise.
1796 (_mm512_mask_storeu_epi64): Pass long long *
1797 to __builtin_ia32_storedqudi512_mask.
1798 (_mm512_loadu_si512): Pass const int * to
1799 __builtin_ia32_loaddqusi512_mask.
1800 (_mm512_mask_loadu_epi32): Likewise.
1801 (_mm512_maskz_loadu_epi32): Likewise.
1802 (_mm512_storeu_si512): Pass int * to
1803 __builtin_ia32_storedqusi512_mask.
1804 (_mm512_mask_storeu_epi32): Likewise.
1805 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1806 char * to __builtin_ia32_storedquqi256_mask.
1807 (_mm_mask_storeu_epi8): Likewise.
1808 (_mm256_mask_loadu_epi16): Pass const short * to
1809 __builtin_ia32_loaddquhi256_mask.
1810 (_mm256_maskz_loadu_epi16): Likewise.
1811 (_mm_mask_loadu_epi16): Pass const short * to
1812 __builtin_ia32_loaddquhi128_mask.
1813 (_mm_maskz_loadu_epi16): Likewise.
1814 (_mm256_mask_loadu_epi8): Pass const char * to
1815 __builtin_ia32_loaddquqi256_mask.
1816 (_mm256_maskz_loadu_epi8): Likewise.
1817 (_mm_mask_loadu_epi8): Pass const char * to
1818 __builtin_ia32_loaddquqi128_mask.
1819 (_mm_maskz_loadu_epi8): Likewise.
1820 (_mm256_mask_storeu_epi16): Pass short * to.
1821 __builtin_ia32_storedquhi256_mask.
1822 (_mm_mask_storeu_epi16): Pass short * to.
1823 __builtin_ia32_storedquhi128_mask.
1824 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1825 const double * to __builtin_ia32_loadupd256_mask.
1826 (_mm256_maskz_loadu_pd): Likewise.
1827 (_mm_mask_loadu_pd): Pass onst double * to
1828 __builtin_ia32_loadupd128_mask.
1829 (_mm_maskz_loadu_pd): Likewise.
1830 (_mm256_mask_storeu_pd): Pass double * to
1831 __builtin_ia32_storeupd256_mask.
1832 (_mm_mask_storeu_pd): Pass double * to
1833 __builtin_ia32_storeupd128_mask.
1834 (_mm256_mask_loadu_ps): Pass const float * to
1835 __builtin_ia32_loadups256_mask.
1836 (_mm256_maskz_loadu_ps): Likewise.
1837 (_mm_mask_loadu_ps): Pass const float * to
1838 __builtin_ia32_loadups128_mask.
1839 (_mm_maskz_loadu_ps): Likewise.
1840 (_mm256_mask_storeu_ps): Pass float * to
1841 __builtin_ia32_storeups256_mask.
1842 (_mm_mask_storeu_ps): ass float * to
1843 __builtin_ia32_storeups128_mask.
1844 (_mm256_mask_loadu_epi64): Pass const long long * to
1845 __builtin_ia32_loaddqudi256_mask.
1846 (_mm256_maskz_loadu_epi64): Likewise.
1847 (_mm_mask_loadu_epi64): Pass const long long * to
1848 __builtin_ia32_loaddqudi128_mask.
1849 (_mm_maskz_loadu_epi64): Likewise.
1850 (_mm256_mask_storeu_epi64): Pass long long * to
1851 __builtin_ia32_storedqudi256_mask.
1852 (_mm_mask_storeu_epi64): Pass long long * to
1853 __builtin_ia32_storedqudi128_mask.
1854 (_mm256_mask_loadu_epi32): Pass const int * to
1855 __builtin_ia32_loaddqusi256_mask.
1856 (_mm256_maskz_loadu_epi32): Likewise.
1857 (_mm_mask_loadu_epi32): Pass const int * to
1858 __builtin_ia32_loaddqusi128_mask.
1859 (_mm_maskz_loadu_epi32): Likewise.
1860 (_mm256_mask_storeu_epi32): Pass int * to
1861 __builtin_ia32_storedqusi256_mask.
1862 (_mm_mask_storeu_epi32): Pass int * to
1863 __builtin_ia32_storedqusi128_mask.
1864 * config/i386/i386-builtin-types.def (PCSHORT): New.
1866 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1867 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1868 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1869 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1870 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1871 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1872 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1873 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1874 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1875 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1876 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1877 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1878 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1879 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1880 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1881 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1882 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1883 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1884 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1885 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1886 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1887 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1888 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1889 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1890 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1891 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1892 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1893 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1894 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1895 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1896 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1897 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1898 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1899 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1900 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1901 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1902 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1903 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1904 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1905 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1906 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1907 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1908 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1909 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1910 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1911 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1912 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1913 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1914 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1916 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1917 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1919 (ix86_expand_vector_move_misalign): Likewise.
1920 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1921 to scalar function prototype for unaligned load/store builtins.
1922 (ix86_expand_special_args_builtin): Updated.
1923 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1924 (UNSPEC_STOREU): Likewise.
1925 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1926 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1927 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1928 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1929 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1930 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1931 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1932 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1933 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1934 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1935 (<avx512>_storedqu<mode>_mask): Likewise.
1936 (*sse4_2_pcmpestr_unaligned): Likewise.
1937 (*sse4_2_pcmpistr_unaligned): Likewise.
1938 (*mov<mode>_internal): Renamed to ...
1939 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1940 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1941 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1942 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1944 2016-04-19 Richard Biener <rguenther@suse.de>
1946 PR tree-optimization/70171
1947 * tree-ssa-phiprop.c: Include stor-layout.h.
1948 (phiprop_insert_phi): Handle the aggregate copy case.
1949 (propagate_with_phi): Likewise.
1951 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1953 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1954 instead of simplify_gen_subreg (... , 0).
1955 (ix86_delegitimize_address): Ditto.
1956 (ix86_split_divmod): Ditto.
1957 (ix86_split_copysign_const): Ditto.
1958 (ix86_split_copysign_var): Ditto.
1959 (ix86_expand_args_builtin): Ditto.
1960 (ix86_expand_round_builtin): Ditto.
1961 (ix86_expand_special_args_builtin): Ditto.
1962 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1963 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1964 (udivmodqi4): Ditto.
1965 (absneg splitters): Ditto.
1966 (*jcc_bt<mode>_1): Ditto.
1968 2016-04-19 Richard Biener <rguenther@suse.de>
1970 PR tree-optimization/70724
1971 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1972 restoring out from ...
1973 (free_scc_vn): ... here.
1974 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1975 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1977 (pass_fre::execute): Restore SSA info.
1979 2016-04-19 Richard Biener <rguenther@suse.de>
1981 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1982 * gimple-walk.c (walk_gimple_op): Initialize it.
1983 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1984 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1985 remapping SSA names of defs.
1986 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1989 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1992 * lra-constraints.c (equiv_substition_p): New.
1993 (process_alt_operands): Use it.
1994 (swap_operands): Swap it.
1995 (curr_insn_transform): Update it.
1997 2016-04-18 Michael Matz <matz@suse.de>
1999 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
2000 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
2001 * tree-core.h (tree_type_common.align): Use bit-field.
2002 (tree_type_common.spare): New.
2003 (tree_decl_common.off_align): Make smaller.
2004 (tree_decl_common.align): Use bit-field.
2006 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
2007 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
2008 (scan_sharing_clauses): Ditto.
2009 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2010 (omp_finish_file): Ditto.
2011 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
2012 (layout_decl): Ditto.
2013 (relayout_decl): Ditto.
2014 (finalize_record_size): Use SET_TYPE_ALIGN.
2015 (finalize_type_size): Ditto.
2016 (finish_builtin_struct): Ditto.
2017 (layout_type): Ditto.
2018 (initialize_sizetypes): Ditto.
2019 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
2020 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
2021 (lookup_field_for_decl): Use SET_DECL_ALIGN.
2022 (get_chain_field): Ditto.
2023 (get_trampoline_type): Ditto.
2024 (get_nl_goto_field): Ditto.
2025 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2027 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
2028 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
2029 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2030 (build_qualified_type): Use SET_TYPE_ALIGN.
2031 (build_aligned_type, build_range_type_1): Ditto.
2032 (build_atomic_base): Ditto.
2033 (build_common_tree_nodes): Ditto.
2034 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
2035 (expand_one_stack_var_at): Ditto.
2036 * coverage.c (build_var): Use SET_DECL_ALIGN.
2037 * except.c (init_eh): Ditto.
2038 * function.c (assign_parm_setup_block): Ditto.
2039 * symtab.c (increase_alignment_1): Ditto.
2040 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
2041 * tree-vect-stmts.c (ensure_base_align): Ditto.
2042 * varasm.c (align_variable): Ditto.
2043 (assemble_variable): Ditto.
2044 (build_constant_desc): Ditto.
2045 (output_constant_def_contents): Ditto.
2047 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
2048 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
2049 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
2050 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
2051 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
2053 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
2056 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
2057 replace %vmovsd with "%vmovq".
2058 (vec_concatv2df): Likewise.
2060 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
2062 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
2063 (*vec_extractv2si_0): Ditto.
2064 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
2065 (zero_extended_scalar_load_operand splitters): Ditto.
2066 (vec_extract splitters): Ditto.
2067 (*vec_extractv4si_0_zext): Ditto.
2068 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
2070 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
2071 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
2072 (*sse4_1_extractps): Use lowpart_subreg.
2074 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2076 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2078 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2079 Mention Solaris 11 packaging changes.
2080 Update gas and gld requirements.
2081 Remove reference to pre-Solaris 10 bug.
2082 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2084 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2087 2016-04-17 Jan Hubicka <jh@suse.cz>
2089 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2090 max_loop_iterations_int.
2092 2016-04-18 Richard Biener <rguenther@suse.de>
2094 PR tree-optimization/43434
2095 * tree-ssa-structalias.c (struct vls_data): New.
2096 (visit_loadstore): Handle all pointer-based accesses.
2097 (compute_dependence_clique): Compute a bitmap of restrict tags
2098 assigned bases and pass it to visit_loadstore.
2100 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
2103 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2104 armv8.1-a and armv8.1-a+crc.
2106 2016-04-18 Richard Biener <rguenther@suse.de>
2108 PR tree-optimization/70701
2109 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2110 references after translating through a memcpy.
2112 2016-04-18 Richard Biener <rguenther@suse.de>
2114 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2115 (compute_antic): ... here. For partial antic use regular
2116 postorder and scrap iteration.
2117 (compute_partial_antic_aux): Remove unused return value.
2118 (init_pre): Do not allocate postorder.
2119 (fini_pre): Do not free postorder.
2121 2016-04-18 Richard Biener <rguenther@suse.de>
2124 * expmed.c (extract_bit_field_1): Remove broken case
2125 using a wider MODE_INT mode.
2127 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
2129 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2130 unless compiling with at least GCC-4.8.
2132 2016-04-17 Jan Hubicka <jh@suse.cz>
2135 * graphite.c (graphite_finalize): Update call to
2136 tree_estimate_probability.
2137 * predict.h (tree_estimate_probability): Update prototype.
2139 2016-04-17 Jan Hubicka <jh@suse.cz>
2141 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2142 (tree_estimate_probability): Likewise.
2143 (pass_profile::execute): Update.
2144 (report_predictor_hitrates): New function.
2145 * profile.c (compute_branch_probabilities): Use it.
2146 * predict.h (report_predictor_hitrates): Declare.
2148 2016-04-17 Jan Hubicka <jh@suse.cz>
2151 * cgraph.h (cgraph_node::set_const_flag,
2152 cgraph_node::set_pure_flag): Update prototype to return bool;
2154 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2155 of interposable symbol are interposable, too.
2156 (cgraph_set_const_flag_1): Rename to ...
2157 (set_const_flag_1): ... this one; change to self recursive function
2158 instead of call_for_symbol_thunks_and_aliases. Handle correctly
2159 clearnig the flag in all variants and also virtual thunks of const
2160 functions are pure; track if any change was done.
2161 (cgraph_node::set_const_flag): Update.
2162 (struct set_pure_flag_info): New struct.
2163 (cgraph_set_pure_flag_1): Rename to ...
2164 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2165 rather than pointer encoded flags; track if any changes was done;
2166 handle correctly clearning flag and setting flag of aliases already
2168 (cgraph_node::set_pure_flag): Update.
2169 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2171 2016-04-17 Tom de Vries <tom@codesourcery.com>
2174 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2177 2016-04-17 Tom de Vries <tom@codesourcery.com>
2179 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2180 '{}<> ' as escape-for-record.
2182 2016-04-17 Tom de Vries <tom@codesourcery.com>
2184 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2187 2016-04-17 Tom de Vries <tom@codesourcery.com>
2190 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2191 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2192 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2193 * passes.c (finish_optimization_passes): Only call
2194 finish_graph_dump_file if dfi->graph_dump_initialized.
2195 (execute_function_dump, pass_init_dump_file): Use
2196 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2198 2016-04-17 Tom de Vries <tom@codesourcery.com>
2200 PR tree-optimization/70256
2201 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2202 (debug_varmap): New function.
2204 2016-04-17 Tom de Vries <tom@codesourcery.com>
2207 * passes.c (pass_manager::register_pass): Propagate pflags.
2209 2016-04-17 Tom de Vries <tom@codesourcery.com>
2212 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2213 * passes.c (pass_manager::pass_manager): Declare and init p_start in
2214 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
2215 check if it's equal to p_start.
2216 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2218 2016-04-15 Jan Hubicka <jh@suse.cz>
2221 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2222 function does not bind to current def.
2223 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2224 handle conservatively calls to functions that does not need to bind
2226 (check_call): Update call of worse_state.
2227 (ignore_edge_for_nothrow): Update.
2228 (ignore_edge_for_pure_const): Likewise.
2229 (propagate_pure_const): Update calls to worse_state.
2230 (skip_function_for_local_pure_const): Reformat comments.
2232 2016-04-15 Jan Hubicka <jh@suse.cz>
2235 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2236 (cgraph_node::function_symbol): Likewise.
2237 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2238 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2239 (symtab_node::ultimate_alias_target): Add REF parameter.
2240 (symtab_node::binds_to_current_def_p): Declare.
2241 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2242 (cgraph_node::function_symbol): Likewise.
2243 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2244 (cgraph_node::get_availability): Likewise.
2245 (cgraph_edge::binds_to_current_def_p): New inline function.
2246 (varpool_node::get_availability): Add REF parameter.
2247 (varpool_node::ultimate_alias_target): Likewise.
2248 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2249 (symtab_node::binds_to_current_def_p): Likewise.
2250 * varpool.c (varpool_node::get_availability): Likewise.
2252 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2255 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2256 Fix mode size check.
2258 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2260 * BASE-VER: Set to 7.0.0.
2262 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2264 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2266 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2268 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2269 architecture revisions.
2271 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2273 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2274 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2275 * config/i386/i386.md (stack decrement to push peepholes): Guard
2276 with !x86_using_red_zone ().
2278 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2281 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2282 to dump_generic_node.
2283 (NIY): Pass also flags to do_niy.
2285 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2287 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2288 (simd_clone_vector_of_formal_parm_types)
2289 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2290 (simd_clone_mangle, simd_clone_create)
2291 (simd_clone_adjust_return_type, create_tmp_simd_array)
2292 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2293 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2294 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2295 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2296 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2297 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2298 * omp-simd-clone.c: ... this new file.
2299 (simd_clone_vector_of_formal_parm_types): Make it static.
2300 * Makefile.in (OBJS): Add omp-simd-clone.o.
2302 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2305 * config/i386/sse.md: Use proper memory operand modifiers.
2308 2016-04-15 Richard Biener <rguenther@suse.de>
2309 Alan Modra <amodra@gmail.com>
2311 PR tree-optimization/70130
2312 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2313 when alignment stays not the same and no not use the realign
2316 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2319 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2320 direct move handlers for KFmode. Change TFmode handlers test from
2321 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2323 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2326 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2327 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2328 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2329 * tree-ssa-live.c (remove_unused_scope_block_p): When
2330 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2331 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2332 block_ultimate_origin is FUNCTION_DECL.
2333 (remove_unused_locals): If current_function_decl is
2334 polymorphic_ctor_dtor_p, pass initial true to
2335 remove_unused_scope_block_p' is_ctor_dtor_block.
2337 2016-04-14 Martin Sebor <msebor@redhat.com>
2342 * doc/extend.texi (Variable Length): Revert.
2344 2016-04-14 Marek Polacek <polacek@redhat.com>
2345 Jan Hubicka <hubicka@ucw.cz>
2348 * tree.c (verify_type): Disable the canonical type of main variant
2351 2016-04-14 Jason Merrill <jason@redhat.com>
2353 * cfgexpand.c, expr.c: Revert previous change.
2355 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2358 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2359 when building a mem ref for the incoming reduction variable.
2361 2016-04-14 Richard Biener <rguenther@suse.de>
2363 PR tree-optimization/70614
2364 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2365 loop if the evolution dropped to chrec_dont_know.
2366 (interpret_condition_phi): Likewise.
2368 2016-04-14 Richard Biener <rguenther@suse.de>
2370 PR tree-optimization/70623
2371 * tree-ssa-pre.c (changed_blocks): Make global ...
2372 (compute_antic): ... local here. Move and fix worklist
2373 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2374 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2375 worklist handling, dump when ANTIC_IN changed.
2376 (compute_partial_antic_aux): Remove worklist handling.
2377 (init_pre): Do not compute post dominators. Add a comment about
2378 the CFG order chosen.
2379 (fini_pre): Do not free post dominators.
2381 2016-04-13 Martin Sebor <msebor@redhat.com>
2386 * doc/extend.texi (Variable Length): Document C++ specifics.
2388 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2391 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2392 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2393 eh edges have been purged.
2396 * tree-sra.c (create_access_replacement,
2397 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2399 * tree-pretty-print.c (dump_fancy_name): New function.
2400 (dump_decl_name, dump_generic_node): Use it.
2402 2016-04-13 Jason Merrill <jason@redhat.com>
2404 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2405 * expr.c (expand_expr_real_1): Likewise.
2407 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2409 * config/i386/i386.md (kunpckhi): Swap operands.
2410 (kunpcksi): Likewise.
2411 (kunpckdi): Likewise.
2412 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2413 (vec_pack_trunc_<mode>): Likewise.
2415 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2418 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2421 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2422 gimplification turns some element into non-constant.
2425 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2426 * explow.c (convert_memory_address_addr_space_1): No longer static,
2427 add NO_EMIT argument and don't call convert_modes if true, pass
2428 it down recursively, remove break after return.
2429 (convert_memory_address_addr_space): Adjust caller.
2430 * simplify-rtx.c (simplify_unary_operation_1): Call
2431 convert_memory_address_addr_space_1 instead of convert_memory_address,
2432 if it returns NULL, don't simplify.
2434 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2437 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2439 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2441 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2442 Bump the upper SIMDLEN limits, so that if the return type or
2443 characteristic type if the return type is void can be passed in
2444 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2447 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2450 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2451 Do not use "=" constraint on an input constraint.
2452 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2453 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2454 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2455 generates (neg (abs ...)) instead of (abs ...).
2457 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2459 PR rtl-optimization/70596
2460 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2461 just invalidate LRA data and reset them. Adjust dump wording.
2463 2016-04-12 Martin Liska <mliska@suse.cz>
2466 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2468 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2470 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2471 max_loop_iterations_int.
2472 (tree_unswitch_outer_loop): Likewise.
2473 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2474 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2476 2016-04-12 Tom de Vries <tom@codesourcery.com>
2478 PR tree-optimization/68756
2479 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2480 instead of new_name.
2482 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2484 PR tree-optimization/70602
2485 * tree-sra.c (generate_subtree_copies): Don't write anything into
2486 constant pool decls.
2488 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2489 regardless whether there are depend clauses or not.
2491 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2494 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2495 target attribute and pragma from changing the -mfloat128
2496 and -mfloat128-hardware options.
2498 * doc/extend.texi (Additional Floating Types): Document PowerPC
2499 __float128 restrictions.
2501 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2504 * config/aarch64/driver-aarch64.c
2505 (aarch64_get_extension_string_for_isa_flags): New.
2506 (arch_extension): Rename to...
2507 (aarch64_arch_extension): ...This.
2508 (ext_to_feat_string): Rename to...
2509 (aarch64_extensions): ...This.
2510 (aarch64_core_data): Keep track of architecture extension flags.
2511 (cpu_data): Rename to...
2512 (aarch64_cpu_data): ...This.
2513 (aarch64_arch_driver_info): Keep track of architecture extension
2515 (get_arch_name_from_id): Rename to...
2516 (get_arch_from_id): ...This, change return type.
2517 (host_detect_local_cpu): Update and reformat for renames, handle
2518 extensions through common infrastructure.
2520 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2523 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2524 track of a canonical flag name.
2525 (all_extensions): Likewise.
2526 (arch_to_arch_name): Also track extension flags enabled by the arch.
2527 (all_architectures): Likewise.
2528 (aarch64_parse_extension): Move to here.
2529 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2531 (aarch64_rewrite_selected_cpu): Update for above change.
2532 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2533 are handled, such that the single explicit value enabled by an
2534 extension is kept seperate from the implicit values it also enables.
2535 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2537 (aarch64_parse_extension): New.
2538 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2539 here to config/aarch64/aarch64-protos.h.
2540 (aarch64_parse_extension): Move from here to
2541 common/config/aarch64/aarch64-common.c.
2542 (aarch64_option_print): Update.
2543 (aarch64_declare_function_name): Likewise.
2544 (aarch64_start_file): Likewise.
2545 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2546 the canonical flag for extensions.
2547 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2550 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2552 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2555 2016-04-09 Tom de Vries <tom@codesourcery.com>
2557 PR tree-optimization/68953
2558 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2559 first to last subscript.
2561 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2563 PR tree-optimization/70586
2564 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2567 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2571 PR tree-optimization/70373
2575 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2576 clauses for acc parallel reductions as necessary. Error on those
2578 * omp-low.c (scan_sharing_clauses): Don't install variables which
2579 are used in acc parallel reductions.
2580 (lower_rec_input_clauses): Remove dead code.
2581 (lower_oacc_reductions): Add support for reference reductions.
2582 (lower_reduction_clauses): Remove dead code.
2583 (lower_omp_target): Don't remap variables appearing in acc parallel
2585 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2587 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2590 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2591 with multiple SSA_NAME defs, force the outputs other than first
2592 to be live before calling live_track_process_def on each output.
2594 PR rtl-optimization/70574
2595 * fwprop.c (forward_propagate_and_simplify): Don't add
2596 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2597 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2598 paradoxical subregs within *loc.
2600 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2602 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2603 -ftree-parallelize-loops={0,1}.
2604 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2605 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2606 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2607 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2608 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2610 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2613 * asan.c (instrument_derefs): If we get unknown location, extract it
2615 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2617 2016-04-08 Tom de Vries <tom@codesourcery.com>
2619 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2620 implicit firstprivate clause.
2622 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2625 * config/arm/thumb2.md (tst + branch-> lsls + branch
2626 peephole below *orsi_not_shiftsi_si): Require that condition
2627 register is dead after the peephole.
2628 (second peephole after the above): Likewise.
2630 2016-04-08 Alan Modra <amodra@gmail.com>
2633 * builtins.c (fold_builtin_classify): For IBM extended precision,
2634 look at just the high-order double to test for NaN.
2635 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2636 test just the high double for Inf but both doubles for subnormal
2639 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2641 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2642 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2643 node->simdclone->mask_mode != VOIDmode masks.
2644 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2645 earlier, use it instead of node->simdclone.
2646 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2647 Set clonei->mask_mode.
2649 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2652 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2653 Pass it through to cp_parser_already_scoped_statement.
2654 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2655 it through to cp_parser_statement.
2656 (cp_parser_statement): Pass IF_P through to
2657 cp_parser_iteration_statement.
2658 (cp_parser_pragma): Adjust call to
2659 cp_parser_iteration_statement.
2661 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2664 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2665 resolve a future -Wparentheses warning.
2666 * omp-low.c (scan_sharing_clauses): Likewise.
2667 * tree-parloops.c (eliminate_local_variables): Likewise.
2669 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2671 PR rtl-optimization/70398
2672 * lra-constraints.c (process_address_1): Check zero scale and code
2673 for reloading with zero scale.
2675 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2677 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2678 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2680 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2682 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2683 Add support for AVX512F clones, include them by default for
2684 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2685 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2689 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2690 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2691 firstprivate clauses.
2692 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2693 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2694 (lower_omp_target): Set TREE_NO_WARNING for
2695 non-addressable possibly uninitialized vars which are copied into
2696 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2698 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
2700 * config/pa/predicates.md (integer_store_memory_operand): Accept
2701 REG+D operands with a large offset when reload_in_progress is true.
2702 (floating_point_store_memory_operand): Likewise.
2704 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2707 * match.pd (nested int casts): Limit to GIMPLE.
2709 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
2712 * ipa-devirt.c (maybe_record_node): Fix comment; use
2713 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2715 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2717 PR rtl-optimization/70542
2718 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2719 if there are any uses other than insn or debug insns.
2721 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
2722 Jakub Jelinek <jakub@redhat.com>
2724 PR tree-optimization/70509
2725 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2726 Shift HOST_WIDE_INT_1U instead of 1.
2728 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
2730 PR tree-optimization/70509
2731 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2732 of the vector base type for index.
2734 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
2737 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2739 2016-04-05 Richard Biener <rguenther@suse.de>
2741 PR tree-optimization/70526
2742 * tree-sra.c (build_ref_for_offset): Use prev_base to
2743 extract the alias pointer type.
2745 2016-04-05 Richard Biener <rguenther@suse.de>
2747 * dse.c (struct store_info): Remove alias_set member.
2748 (struct read_info_type): Likewise.
2749 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2750 spill_deleted, clear_alias_set_lookup): Remove.
2751 (get_group_info): Remove dead base == NULL_RTX case.
2752 (dse_step0): Remove initialization of removed variables.
2753 (delete_dead_store_insn): Reomve alias set dumping.
2754 (free_read_records): Remove alias_set handling.
2755 (canon_address): Remove alias_set_out parameter.
2756 (record_store): Remove spill_alias_set, it's always zero.
2757 (check_mem_read_rtx): Likewise.
2758 (dse_step2): Rename from ...
2759 (dse_step2_nospill): ... this. Adjust.
2760 (scan_stores): Rename from ...
2761 (scan_stores_nospill): ... this.
2762 (scan_reads): Rename from ...
2763 (scan_reads_nospill): ... this.
2764 (scan_stores_spill, scan_reads_spill): Remove.
2765 (dse_step3_scan): Remove for_spills argument which is always false.
2766 (dse_step3): Likewise.
2767 (dse_step5): Rename from ...
2768 (dse_step5_nospill): ... this. Remove alias_set handling.
2769 (rest_of_handle_dse): Adjust.
2771 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2774 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2775 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2776 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2777 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2779 2016-04-05 Richard Biener <rguenther@suse.de>
2782 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2783 non-register type temporaries into SSA.
2785 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
2788 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2789 calls when sanitizing.
2790 (possible_polymorphic_call_target_p): Fix formatting.
2792 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2793 Jakub Jelinek <jakub@redhat.com>
2796 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2797 to ensure a call statement is compatible with a built-in's
2799 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2802 2016-04-04 Richard Biener <rguenther@suse.de>
2804 PR rtl-optimization/70484
2805 * rtl.h (canon_output_dependence): Declare.
2806 * alias.c (canon_output_dependence): New function.
2807 * dse.c (record_store): Use canon_output_dependence rather
2808 than canon_true_dependence.
2810 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2813 * cgraph.h (symtab_node::copy_visibility_from): New function.
2814 * symtab.c (symtab_node::copy_visibility_from): New function.
2815 * ipa-visibility.c (optimize_weakref): New function.
2816 (function_and_variable_visibility): Use it.
2818 2016-04-04 Martin Liska <mliska@suse.cz>
2821 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2822 value that is really in range handled by SBR instruction.
2823 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2824 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2825 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2827 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
2831 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2832 set, but not for SP_REG operands.
2834 2016-04-02 Martin Sebor <msebor@redhat.com>
2837 * fold-const.c (maybe_nonzero_address): New function.
2838 (fold_comparison): Call it. Fold equality and relational
2839 expressions involving null pointers.
2840 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2842 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
2844 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2845 the "Y" constraint (scalar FP 0.0 immediate).
2847 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2848 Add the "const_double" to the list of operand constraints.
2850 2016-04-01 Jakub Jelinek <jakub@redhat.com>
2852 PR rtl-optimization/70467
2853 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2854 If low word of the last operand is 0, just emit addition/subtraction
2857 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2860 * config/s390/s390.c (s390_expand_insv): Check for everything
2861 constant instead of just VOIDmode stuff.
2863 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2866 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2868 2016-04-01 Nathan Sidwell <nathan@acm.org>
2870 * tree.def (TRY_CATCH_EXPR): Correct documentation.
2872 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
2874 PR rtl-optimization/70461
2875 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2878 2016-03-31 Martin Liska <mliska@suse.cz>
2881 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2882 a tree value or an immediate integer value to a buffer
2883 that is eventually copied to a BRIG section.
2884 (emit_immediate_operand): Call the function here.
2885 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2886 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2887 of class' fields that are removed.
2888 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2889 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2890 m_brig_repr_size fields.
2892 2016-03-31 Martin Liska <mliska@suse.cz>
2895 * hsa-gen.c (hsa_function_representation::update_dominance): New
2897 (convert_addr_to_flat_segment): Likewise.
2898 (gen_hsa_memory_set): New alignment argument.
2899 (gen_hsa_ctor_assignment): Likewise.
2900 (gen_hsa_insns_for_single_assignment): Provide alignment
2901 to gen_hsa_ctor_assignment.
2902 (gen_hsa_insns_for_direct_call): Add new argument.
2903 (expand_lhs_of_string_op): New function.
2904 (expand_string_operation_builtin): Likewise.
2905 (expand_memory_copy): New function.
2906 (expand_memory_set): New function.
2907 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2908 (convert_switch_statements): Change signature.
2909 (generate_hsa): Use a return value of the function.
2910 (pass_gen_hsail::execute): Do not call
2911 convert_switch_statements here.
2912 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2913 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2914 (hsa_function_representation::update_dominance): New function.
2916 2016-03-31 Martin Liska <mliska@suse.cz>
2919 * hsa-brig.c (emit_directive_variable): Emit alignment
2920 according to hsa_symbol::m_align.
2921 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2922 (dump_hsa_symbol): Dump alignment of HSA symbols.
2923 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2924 (gen_hsa_addr_with_align): New function.
2925 (hsa_bitmemref_alignment): Use newly added function.
2926 (gen_hsa_insns_for_load): Likewise.
2927 (gen_hsa_insns_for_store): Likewise.
2928 (gen_hsa_memory_copy): New argument added.
2929 (gen_hsa_insns_for_single_assignment): Respect
2930 alignment for assignments processed via gen_hsa_memory_copy.
2931 (gen_hsa_insns_for_direct_call): Likewise.
2932 (gen_hsa_insns_for_return): Likewise.
2933 (gen_function_def_parameters): Set default alignment.
2934 * hsa.c (hsa_object_alignment): New function.
2935 (hsa_byte_alignment): Pasted function.
2936 * hsa.h (hsa_symbol::m_align): New field.
2938 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2940 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2941 scratch field for goto case.
2943 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2945 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2947 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2950 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2951 (scalar_chain::convert_insn): Call convert_op for reg
2952 moves to handle undefined registers.
2954 2016-03-31 Nathan Sidwell <nathan@acm.org>
2957 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2958 Assert we don't want to move backwards.
2960 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2963 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2965 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2967 PR rtl-optimization/70460
2968 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2969 with operand from REG_LABEL_OPERAND, instead substitute
2970 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2971 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2973 2016-03-31 Martin Liska <mliska@suse.cz>
2975 * passes.c (execute_one_pass): Do not call
2976 todo_after for a discarded function.
2978 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2980 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2981 (no_cost, infinite_cost): Initialize the new field.
2982 (get_computation_cost_at): Record setup cost.
2983 (determine_use_iv_cost_address): Skip cost computation for sub
2984 uses if we can estimate it without losing accuracy.
2986 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2988 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2990 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2991 max_loop_iterations_int.
2992 (tree_unswitch_outer_loop): Likewise.
2993 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2994 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2996 2016-03-30 Richard Biener <rguenther@suse.de>
2999 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
3001 2016-03-30 Jakub Jelinek <jakub@redhat.com>
3004 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
3005 in gen_blendm expander.
3007 2016-03-30 Nick Clifton <nickc@redhat.com>
3010 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
3011 case where we are already provided with an SImode SUBREG.
3013 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
3016 * config/i386/i386.c (ix86_expand_epilogue): Properly check
3017 conflict between DRAP register and __builtin_eh_return.
3019 2016-03-30 Michael Matz <matz@suse.de>
3020 Richard Biener <rguenther@suse.de>
3023 * ipa-polymorphic-call.c (struct type_change_info): Change
3024 speculative to an unsigned allowing to limit the work we do.
3025 (csftc_abort_walking_p): New inline function..
3026 (check_stmt_for_type_change): Limit the number of may-defs
3027 skipped for speculative devirtualization to
3028 max-speculative-devirt-maydefs.
3029 * params.def (max-speculative-devirt-maydefs): New param.
3030 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
3032 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
3035 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
3038 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
3040 PR tree-optimization/59124
3041 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
3042 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
3044 2016-03-29 Jeff Law <law@redhat.com>
3046 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
3048 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3050 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3053 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
3055 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3056 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3057 gcrt0.o if linking dynamically.
3059 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3062 * ipa-devirt.c (methods_equal_p): New function.
3063 (compare_virtual_tables): Use it.
3064 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3065 * cgraphclones.c (clone_function_name_1): Use
3066 symbol_table::symbol_suffix_separator.
3067 * coverage.c (build_var): Likewise.
3068 * symtab.c (symbol_table::symbol_suffix_separator): New.
3070 2016-03-29 Jakub Jelinek <jakub@redhat.com>
3072 PR rtl-optimization/70429
3073 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3074 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3075 mode != result_mode.
3078 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3080 PR tree-optimization/70405
3081 * ssa-iterators.h (num_imm_uses): Add missing braces.
3083 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
3085 PR rtl-optimization/68695
3086 * ira-color.c (allocno_copy_cost_saving): New.
3087 (improve_allocation): Use it.
3089 2016-03-29 Richard Henderson <rth@redhat.com>
3092 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3094 2016-03-29 Richard Biener <rguenther@suse.de>
3097 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3098 use alignment returned by get_pointer_alignment_1 if it is
3099 bigger than BITS_PER_UNIT.
3100 * builtins.c (get_pointer_alignment_1): Do not return true
3101 for alignment extracted from SSA info.
3103 2016-03-28 James Bowman <james.bowman@ftdichip.com>
3105 * config/ft32/ft32.opt (mnodiv): New.
3106 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3107 * doc/invoke.texi (FT32 Options -mnodiv): New.
3109 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
3112 * config/i386/i386.md (define_split, andn): Fix modes.
3114 2016-03-26 Richard Biener <rguenther@suse.de>
3115 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3118 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3120 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3121 as 2nd argument to cl_optimization_restore().
3123 2016-03-25 Richard Henderson <rth@redhat.com>
3126 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3127 * config/aarch64/aarch64-protos.h: Declare it.
3128 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3130 2016-03-25 Alan Modra <amodra@gmail.com>
3133 * config/rs6000/constraints.md (j): Simplify.
3134 * config/rs6000/predicates.md (easy_fp_constant): Exclude
3136 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3137 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3138 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3139 in all constraint alternatives.
3140 (movtd_64bit_nodm): Delete "j" constraint alternative.
3142 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3144 * tree-ssa-propagate.c: Enhance docs for
3145 SSA_PROP_NOT_INTERESTING.
3147 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3149 * doc/extend.texi: Fix typo in documentation to pure attribute.
3151 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
3154 * config/pa/pa.md (bswapdi2): Use a scratch register.
3156 2016-03-24 Richard Henderson <rth@redhat.com>
3159 * fold-const.c (extract_muldiv_1): Correct test for multiplication
3162 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
3164 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3165 using ix86_expand_binary_operator instead of gen_andsi3.
3167 2016-03-24 Richard Biener <rguenther@suse.de>
3169 PR tree-optimization/70396
3170 * tree-vect-stmts.c (vectorizable_comparison): Use
3171 get_vectype_for_scalar_type.
3173 2016-03-24 Richard Biener <rguenther@suse.de>
3176 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3177 with register bases.
3179 2016-03-24 Richard Biener <rguenther@suse.de>
3181 PR tree-optimization/70372
3182 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3183 build_all_ones_cst to also handle vector types correctly.
3185 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3188 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3191 2016-03-23 Marek Polacek <polacek@redhat.com>
3194 * doc/invoke.texi: Document -Wignored-attributes.
3196 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3198 PR tree-optimization/69042
3199 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3200 parameter from 30 to 40.
3202 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3204 PR tree-optimization/69042
3205 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3206 for use with constant offset stripped in base.
3208 2016-03-23 Richard Biener <rguenther@suse.de>
3211 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3212 mode compatibility check.
3213 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3215 2016-03-23 Jeff Law <law@redhat.com>
3217 PR tree-optimization/64058
3218 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3220 (struct ssa_conflicts): Move up earlier in the file.
3221 (conflicts_, var_map_): New static variables.
3222 (initialize_conflict_count): New function to initialize the
3223 CONFLICT_COUNT field for each conflict pair.
3224 (compare_pairs): Lazily initialize the conflict count and use it
3225 as the first tie-breaker.
3226 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3227 and wipe conflicts_ and map_ around the call to qsort. Remove
3228 special case for 2 coalesce pairs.
3229 * bitmap.c (bitmap_count_unique_bits): New function.
3230 (bitmap_count_bits_in_word): New function, extracted from
3232 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3233 * bitmap.h (bitmap_count_unique_bits): Declare it.
3235 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3238 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3239 transparent alias chain for decl assembler name.
3240 * config/sol2.c (solaris_assemble_visibility): Likewise.
3242 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3244 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3246 (v10_fdivs): Likewise.
3247 (v10_fdivd): Likewise.
3249 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3252 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3253 to not call fclose twice on file.
3255 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3257 PR tree-optimization/70354
3258 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3259 oprnd0 is wider than oprnd1 and there is a cast from the wider
3260 type to oprnd1, mask it with the mask of the narrower type.
3263 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3264 Optimize TARGET_STV splitters, if high or low word of last argument
3267 2016-03-22 Jeff Law <law@redhat.com>
3270 tree-ssa-threadbackward.c
3271 (fsm_find_control_statement_thread_paths): Correctly distinguish
3272 between old style jump threads vs FSM jump threads.
3274 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3277 * config/i386/i386.c (scalar_chain::convert_op): Support
3278 uninitialized register usage case.
3280 2016-03-22 Richard Biener <rguenther@suse.de>
3283 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3285 (capture::gen_transform): ... to change behavior when substituting
3286 a condition into cond or not-cond expr context.
3287 (dt_simplify::gen_1): Adjust.
3288 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3289 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3290 last change and instead change to
3291 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3292 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3294 2016-03-22 Anthony Green <green@moxielogic.com>
3296 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3297 issue for moxiebox targets.
3298 (CC1PLUS_SPEC): Ditto.
3300 2016-03-22 Richard Biener <rguenther@suse.de>
3303 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3306 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3308 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3310 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3313 * config/i386/i386.c (def_builtin): Handle
3314 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3316 (const struct builtin_description bdesc_special_args[]):
3317 Remove duplicate ISA bits.
3319 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3322 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3323 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3324 in a way that works also for AVX512BW.
3327 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3328 instead of source if operands[1] is xmm16 and above and
3329 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3330 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3333 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3334 on assign if (*from_p) is a comparison, set it to
3335 TREE_NO_WARNING (*from_p).
3337 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3340 * lra.c (restore_scratches): Ignore deleted insns.
3342 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3343 Jakub Jelinek <jakub@redhat.com>
3345 PR tree-optimization/70317
3346 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3349 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3352 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3353 of ix86_expand_move.
3355 (movti): Use general_operand for operand 1 predicate.
3357 2016-03-21 Martin Liska <mliska@suse.cz>
3359 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3361 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3363 2016-03-21 Martin Liska <mliska@suse.cz>
3366 * ipa-icf.c (sem_function::parse): Skip static
3367 constructors and destructors.
3369 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3372 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3373 function-like macro, peek following token(s) if it is followed
3374 by CPP_OPEN_PAREN token with optional padding in between, and
3375 if not, don't treat it like a macro.
3377 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3378 Alexander Monakov <amonakov@ispras.ru>
3380 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3381 for the stabs debug format.
3383 2016-03-21 Richard Biener <rguenther@suse.de>
3385 PR tree-optimization/70310
3386 * tree-vect-generic.c (expand_vector_condition): Fold the built
3389 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3392 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3393 Block third alternative for AVX-512VL target,
3395 2016-03-21 Martin Liska <mliska@suse.cz>
3398 * hsa-brig.c (emit_function_directives): Mark unemitted
3399 global variables for emission.
3400 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3401 (get_symbol_for_decl): Likewise.
3402 * hsa.h (struct hsa_symbol): New flag.
3404 2016-03-21 Richard Biener <rguenther@suse.de>
3406 PR tree-optimization/70288
3407 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3408 we do not estimate unsimplified all-constant conditionals or
3409 switches as optimized away.
3411 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3413 PR rtl-optimization/69102
3414 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3415 when we have a readonly dependency context.
3417 2016-03-18 Jeff Law <law@redhat.com>
3419 PR rtl-optimization/70263
3420 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3421 (update_equiv_regs): When trying to move a store to after the insn
3422 that sets the source of the store, make sure the store occurs after
3423 the insn that sets the source of the store. When successful note
3424 the REG_EQUIV note created in the dump file.
3426 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3427 Bernd Schmidt <bschmidt@redhat.com>
3429 * doc/extend.texi: Document more potential problems with basic asms.
3431 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3433 PR rtl-optimization/70278
3434 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3437 2016-03-18 Jason Merrill <jason@redhat.com>
3439 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3441 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3443 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3444 values to 128b regs.
3446 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3448 PR tree-optimization/70252
3449 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3450 boolean vector has a proper number of elements.
3451 (supportable_narrowing_operation): Likewise.
3453 2016-03-18 Tom de Vries <tom@codesourcery.com>
3456 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3458 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3460 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3461 instead of replace_rtx for DEBUG_INSNs.
3463 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3465 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3466 load type reservations.
3468 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3471 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3472 define_constraint for "Q" and "T" constraints.
3474 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3476 Tweak the pipeline model for Exynos M1
3478 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3481 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3484 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3485 where one or both locations aren't within a line_map.
3487 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3490 * opts.c (finish_options): Don't set flag_pie to the default if
3491 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3494 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3496 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3497 true as ALL_REGS argument to replace_rtx.
3499 2016-03-17 Richard Biener <rguenther@suse.de>
3502 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3505 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3508 * rtl.h (replace_rtx): Add ALL_REGS argument.
3509 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3510 equality and assert mode is the same, instead of just rtx pointer
3512 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3513 true as ALL_REGS argument to replace_rtx.
3515 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3517 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3518 for boolean vector with vector mode only.
3519 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3521 2016-03-17 Nick Clifton <nickc@redhat.com>
3524 * config/rx/rx.c (rx_print_integer): Print negative constants in
3527 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3530 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3532 2016-03-16 Richard Henderson <rth@redhat.com>
3533 Richard Biener <rguenth@suse.de>
3538 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3539 first operand as is_gimple_condexpr.
3544 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3545 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3546 Do not gimplify the result.
3547 (do_unop): Adjust call to tree_vec_extract.
3548 (do_binop): Likewise.
3549 (do_compare): Likewise.
3550 (do_plus_minus): Likewise.
3551 (do_negate): Likewise.
3552 (expand_vector_condition): Likewise.
3553 (do_cond): Likewise.
3555 2016-03-16 Richard Henderson <rth@redhat.com>
3558 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3559 (aarch64_classify_address): Use it.
3560 (aarch64_legitimize_address): Force all subexpressions of PLUS
3561 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3563 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3564 Richard Biener <rguenth@suse.de>
3567 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3568 return to even if only REGNO is equal, and assert
3571 2016-03-11 Jeff Law <law@redhat.com>
3573 PR rtl-optimization/70224
3574 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3576 2016-03-16 Richard Henderson <rth@redhat.com>
3579 * function.h (struct function): Add has_forced_label_in_static.
3580 * gimplify.c (force_labels_r): Set it.
3581 * lto-streamer-in.c (input_struct_function_base): Read it.
3582 * lto-streamer-out.c (output_struct_function_base): Write it.
3583 * tree-inline.c (has_label_address_in_static_1): Remove.
3584 (copy_forbidden): Remove fndecl parameter; test
3585 has_forced_label_in_static.
3586 (inline_forbidden_p): Update call to copy_forbidden.
3587 (tree_versionable_function_p): Likewise.
3588 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3589 (chkp_versioning): Likewise.
3590 * tree-inline.h (copy_forbidden): Update decl.
3592 2016-03-16 Marek Polacek <polacek@redhat.com>
3595 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3596 function being thunked if the result type doesn't have fixed size.
3597 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3598 doesn't have fixed size.
3600 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3602 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3603 reporting malformed loop nest.
3605 2016-03-16 Tom de Vries <tom@codesourcery.com>
3608 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3609 nodes.length () == 1 test to before first nodes[0] access.
3611 2016-03-16 Tom de Vries <tom@codesourcery.com>
3613 PR tree-optimization/68715
3614 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3617 2016-03-16 Tom de Vries <tom@codesourcery.com>
3619 PR tree-optimization/68809
3620 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3623 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3624 Sandra Loosemore <sandra@codesourcery.com>
3626 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3627 on leaf attribute. Mention ELF interposition problems.
3629 2016-03-16 Alan Modra <amodra@gmail.com>
3631 PR rtl-optimization/69195
3632 PR rtl-optimization/47992
3633 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3636 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3639 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3641 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3643 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3645 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3647 PR rtl-optimization/70222
3648 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3649 optimization if mode is different from result_mode, queue up masking
3650 of the result in outer_op. Formatting fix.
3653 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3656 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3658 PR rtl-optimization/69032
3659 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3660 looping backwards over basic block insns.
3662 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3665 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3666 to non-speculative when propagating trap bits.
3668 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3670 PR rtl-optimization/63384
3671 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3674 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3677 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3678 factored out from ...
3679 (sched_analyze_insn): ... here.
3680 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3681 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3682 get_implicit_reg_pending_clobbers in it.
3683 (setup_id_reg_sets): Use setup_id_implicit_regs.
3684 (deps_init_id): Ditto.
3686 2016-03-15 Tom de Vries <tom@codesourcery.com>
3689 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3691 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3692 execute_function_dump.
3693 (execute_one_pass): Don't dump function if it will be dumped after ipa
3696 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3698 * genrecog.c (match_pattern_2): If pred is NULL don't call
3699 safe_predicate_mode on it.
3701 2016-03-14 Jakub Jelinek <jakub@redhat.com>
3704 * lra-constraints.c (delete_move_and_clobber): Change assertion
3705 to also allow dregno == 0.
3707 2016-03-14 Richard Henderson <rth@redhat.com>
3710 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3711 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3712 (reassociate_bb): Use optimize_vec_cond_expr; avoid
3713 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3716 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
3719 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3721 (lra_create_live_ranges_1): initialize hard register biggest_mode to
3723 * lra-constraints.c (split_reg): For hard regs, try to find the
3724 biggest single-register mode used in the function.
3726 2016-03-14 Richard Biener <rguenther@suse.de>
3728 PR tree-optimization/56365
3729 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3730 constants to compare against.
3732 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
3735 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3736 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3737 (define_split for the GPR case): Use int_reg_operand instead of
3738 gpc_reg_operand for the output.
3740 2016-03-14 Tom de Vries <tom@codesourcery.com>
3742 PR tree-optimization/70045
3743 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3744 create_empty_if_region_on_edge argument.
3746 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
3748 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3749 (STACK_CHECK_PROTECT): Likewise.
3750 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3751 (STACK_CHECK_PROTECT): Likewise.
3752 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3753 (STACK_CHECK_PROTECT): Likewise.
3754 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3755 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3756 (STACK_CHECK_PROTECT): Likewise.
3758 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
3760 PR rtl-optimization/69307
3761 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3762 registers in modes that span more than one register.
3764 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
3767 * lra-constraints.c (delete_move_and_clobber): New.
3768 (remove_inheritance_pseudos): Use it.
3770 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
3773 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3774 the libcall is LCT_THROW.
3775 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3776 for the checking routine.
3778 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3781 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3782 optimization if we have direct move.
3783 (roundu32<mode>2_fprs): Likewise.
3785 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
3788 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3790 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3791 Arguments swapped. All callers changed. Take reg_renumber into
3792 account, and Calculate and compare register ranges for hard regs.
3794 2016-03-11 Jeff Law <law@redhat.com>
3796 PR tree-optimization/70190
3797 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3798 Handle cases where we can not extract the taken edge, even though we
3799 found a constant value.
3801 PR tree-optimization/64058
3802 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3803 (num_coalesce_pairs): Move up earlier in file.
3804 (find_coalesce_pair): Initialize the INDEX field for each pair
3806 (compare_pairs): No longer sort on the elements in each pair.
3807 Instead break ties with the index of the coalesce pair.
3809 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3812 * config/aarch64/aarch64-protos.h
3813 (aarch64_save_restore_target_globals): New prototype.
3814 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3815 Call the above when popping pragma.
3816 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3818 (aarch64_set_current_function): Rewrite using the above.
3820 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3822 PR tree-optimization/70177
3823 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3824 (extract_ops_from_tree): ... this. In the 2 argument
3825 overload remove _1 suffix.
3826 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3827 (extract_ops_from_tree): ... this.
3828 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3830 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3831 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3832 extract_ops_from_tree instead of 2 operand one.
3834 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
3836 PR tree-optimization/70013
3837 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3838 for constant-pool entries.
3840 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3842 PR rtl-optimization/70174
3843 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3844 followed by gen_lowpart on force_reg instead of just gen_lowpart.
3846 PR tree-optimization/70169
3847 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3848 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
3851 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3852 Jakub Jelinek <jakub@redhat.com>
3855 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3856 of uninitialized values.
3858 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3860 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3862 ("*trunctddd2"): New pattern definition.
3863 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3866 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3868 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3869 definitions for BFP and DFP rounding modes.
3870 ("fixuns_truncdddi2", "fixuns_trunctddi2")
3871 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3872 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3873 ("fix_trunctf<mode>2"): Use the new constants instead of magic
3876 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3878 * config/s390/constraints.md: Adjust comment.
3879 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
3880 s390_decompose_addrstyle_without_index.
3881 * config/s390/predicates.md (shift_count_or_setmem_operand):
3882 Rename to setmem_operand.
3883 * config/s390/s390-protos.h
3884 (s390_decompose_shift_count): Rename to
3885 s390_decompose_addrstyle_without_index.
3886 * config/s390/s390.c (s390_decompose_shift_count)
3887 (s390_mem_constraint, print_shift_count_operand)
3888 (print_operand_address, print_operand): Rename
3889 s390_decompose_shift_count to
3890 s390_decompose_addrstyle_without_index and rename
3891 print_shift_count_operand to print_addrstyle_operand troughout the
3893 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3894 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3895 Rename shift_count_or_setmem_operand to setmem_operand.
3896 * config/s390/vx-builtins.md ("vec_insert<mode>")
3897 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3900 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3903 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3904 Handle overlapping retval and newval.
3906 2016-03-10 Nick Clifton <nickc@redhat.com>
3909 * config/aarch64/aarch64.c
3910 (aarch64_override_options_after_change_1): When forcing
3911 flag_omit_frame_pointer to be true, use a special value that can
3912 be detected if this function is called again, thus preventing
3913 flag_omit_leaf_frame_pointer from being forced to be false.
3915 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3917 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3918 Set x_flag_omit_leaf_frame_pointer when handling
3919 -momit-leaf-frame-pointer.
3921 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3924 * cgraph.c (cgraph_node::dump): Dump split_part and
3925 indirect_call_target.
3926 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3927 * ipa.c (has_addr_references_p): Cleanup.
3928 (is_indirect_call_target_p): New.
3929 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3930 called indirectly as local.
3931 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3933 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3936 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3937 on cxa_pure_virtual.
3939 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3942 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3944 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3947 * tree.c (need_assembler_name_p): Only record main variant type names.
3949 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3952 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3953 Always define to 0 or 1.
3954 (TARGET_FIX_ERR_A53_843419): New macro.
3955 * config/aarch64/aarch64-elf-raw.h
3956 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3957 * config/aarch64/aarch64-linux.h: Likewise.
3958 * config/aarch64/aarch64.c
3959 (aarch64_override_options_after_change_1): Do not default
3960 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3962 (aarch64_attributes): Handle fix-cortex-a53-843419.
3963 (aarch64_can_inline_p): Likewise.
3964 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3966 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3967 Jakub Jelinek <jakub@redhat.com>
3969 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3970 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3971 DECL_COMMONS if flag_unconstrained_commons is set.
3972 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3973 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3974 (funconstrained-commons): Document.
3976 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3978 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3979 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3981 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3983 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3984 has a proper number of elements.
3986 2016-03-10 Alan Modra <amodra@gmail.com>
3988 PR rtl-optimization/69195
3989 PR rtl-optimization/47992
3990 * ira.c (recorded_label_ref): Delete.
3991 (update_equiv_regs): Return void.
3992 (indirect_jump_optimize): New function.
3993 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3994 before regstat_compute_ri. Don't rebuild_jump_labels here.
3995 Delete update_regstat.
3997 2016-03-10 Richard Biener <rguenther@suse.de>
3999 PR tree-optimization/70128
4000 * tree-ssa-structalias.c (set_uids_in_ptset): Set
4001 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
4003 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4005 PR tree-optimization/70152
4006 * tree-sra.c (replace_removed_params_ssa_names): Copy over
4007 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
4010 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
4011 instead of gen_sse2_loadlpd.
4012 * config/i386/sse.md (*vec_concatv2df): Rename to...
4013 (vec_concatv2df): ... this.
4015 PR tree-optimization/70127
4016 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
4018 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4022 * diagnostic-show-locus.c (compatible_locations_p): New function.
4023 (layout::layout): Sanitize ranges using compatible_locations_p.
4025 2016-03-09 David Malcolm <dmalcolm@redhat.com>
4029 * diagnostic-show-locus.c (layout_range::layout_range): Replace
4030 location_range param with three const expanded_locations * and a
4032 (layout::layout): Replace call to
4033 rich_location::lazily_expand_location with get_expanded_location.
4034 Extract the range and perform location expansion here, passing
4035 the results to the layout_range ctor.
4036 * diagnostic.c (source_range::debug): Delete.
4037 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
4038 of rich_location::get_expanded_location.
4039 * gcc-rich-location.c (get_range_for_expr): Delete.
4040 (gcc_rich_location::add_expr): Reimplement to avoid the
4041 rich_location::add_range overload that took a location_range,
4042 passing a location_t instead.
4044 2016-03-09 Richard Biener <rguenther@suse.de>
4045 Jakub Jelinek <jakub@redhat.com>
4047 PR tree-optimization/70138
4048 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4049 Also skip vect_double_reduction_def.
4051 2016-03-09 Jakub Jelinek <jakub@redhat.com>
4054 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4055 if the operand is "m".
4057 2016-03-09 Nathan Sidwell <nathan@acm.org>
4059 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4061 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
4063 * config/i386/i386.c (processor_target_table): Fix cost table
4064 intialization order for znver1.
4066 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4068 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4069 - becuase -> because.
4070 * ipa-reference.c (ignore_module_statics): Likewise.
4071 * cgraph.c (cgraph_node::get_body): Likewise.
4072 * ipa-inline.c (early_inliner): Likewise.
4073 * ipa-devirt.c (types_same_for_odr): Likewise.
4074 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4075 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4077 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4079 * tree-ssa-math-opts.c: Fix typo in comment.
4081 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4084 * config/i386/i386.c (scalar_chain::make_vector_copies,
4085 scalar_chain::convert_reg): Call end_sequence in between
4086 get_insns and emit_conversion_insns rather than after both
4089 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
4092 * config/i386/i386.h (machine_function): Add
4093 pc_thunk_call_expanded flag.
4094 (ix86_pc_thunk_call_expanded): New define.
4095 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4096 (*set_got): Rename insn pattern from set_got.
4097 (*set_got_labelled): Rename inst pattern from set_got_labelled.
4098 * config/i386/i386.c (ix86_compute_frame_layout): Use
4099 ix86_pc_thunk_call_expanded to prevent red-zone.
4101 2016-03-07 Martin Jambor <mjambor@suse.cz>
4103 * hsa.h (hsa_get_ctor_statements): Declare.
4104 (hsa_get_dtor_statements): Likewise.
4105 (hsa_get_kernel_dispatch_type): Likewise.
4106 * hsa.c (hsa_get_ctor_statements): New function.
4107 (hsa_get_dtor_statements): Likewise.
4108 (hsa_get_kernel_dispatch_type): Likewise.
4109 * hsa-brig.c (hsa_cdtor_statements): Removed.
4110 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4111 hsa_get_dtor_statements.
4112 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4113 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4115 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4117 * config/arm/arm-cores.def (cortex-r8): New.
4118 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4119 * config/arm/arm-tune.md: Likewise.
4120 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4122 2016-03-07 Martin Sebor <msebor@redhat.com>
4124 PR rtl-optimization/19705
4125 * doc/invoke.texi (Options That Control Optimization): Clarify
4126 -fno-branch-count-reg.
4128 2016-02-26 Richard Biener <rguenther@suse.de>
4129 Jeff Law <law@redhat.com>
4131 PR tree-optimization/69740
4132 * cfghooks.c (remove_edge): Request loop fixups if we delete
4133 an edge that might turn an irreducible loop into a natural
4135 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4136 Move after definition of loops_state_clear.
4138 2016-03-07 Bin Cheng <bin.cheng@arm.com>
4140 PR rtl-optimization/69052
4141 * rtlanal.c (commutative_operand_precedence): Set higher precedence
4144 2016-03-07 Tom de Vries <tom@codesourcery.com>
4146 PR tree-optimization/70116
4147 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4148 is_tm_ending stmts and ubsan/asan internal functions.
4149 (find_duplicate): Use it. Don't test is_tm_ending here.
4151 2016-03-07 Richard Biener <rguenther@suse.de>
4153 PR tree-optimization/70115
4154 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4155 (propagate_constants_for_unrolling): Use replace_uses_by.
4157 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
4160 * omp-low.c (struct oacc_loop): Add ifns.
4161 (new_oacc_loop_raw): Initialize it.
4162 (finish_oacc_loop): Clear mask & flags if no ifns.
4163 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4164 (oacc_loop_xform_loop): Add ifns arg & adjust.
4165 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4167 2016-03-07 Richard Henderson <rth@redhat.com>
4170 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4171 (insert_value_copy_on_edge): Likewise.
4173 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4175 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4177 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4180 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4182 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4184 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4186 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4188 Fix sseimul type attribute.
4189 * config/i386/znver1.md
4190 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4191 znver1_sseimul_avx256_load) : Fix the type attribute.
4192 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4193 pipe usage and latency.
4195 2016-03-05 Jakub Jelinek <jakub@redhat.com>
4198 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4199 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4202 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4205 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4207 PR rtl-optimization/69941
4208 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4209 the reg share its mode.
4211 2016-03-04 Jeff Law <law@redhat.com>
4213 PR tree-optimization/69196
4214 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4215 If the both SSA_NAMEs are anonymous, then consider them unassociated
4216 and include the PHI in the statement count.
4218 2016-03-05 Tom de Vries <tom@codesourcery.com>
4220 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4221 construct in oacc routine. Check for oacc region in oacc routine.
4223 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4226 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4227 2016-02-22 changes, instead don't recurse if RECUR is already true.
4228 Don't change *dynamic_check if RECUR. Adjust recursive caller
4229 to pass true to the new argument.
4230 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4233 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4234 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4236 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4238 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4240 PR rtl-optimization/57676
4241 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4244 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4246 * tree-vect-patterns.c (search_type_for_mask): Handle
4247 comparison of booleans.
4249 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4251 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4255 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4256 all other ops that have dw_val_class_die_ref operands,
4257 and DW_OP_GNU_entry_value.
4259 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4261 PR rtl-optimization/69904
4262 * config/arm/arm.c (arm_cannot_copy_insn_p):
4263 Return true for load-exclusive instructions.
4265 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4268 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4269 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4270 the pattern no matter if it is used just by non-pattern, pattern
4272 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4273 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4274 oprnd1 def_stmt is in pattern, don't look through it.
4276 2016-03-03 Marek Polacek <polacek@redhat.com>
4279 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4281 2016-03-03 Martin Liska <mliska@suse.cz>
4283 PR tree-optimization/70043
4284 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4285 previous statement if we see a debug statement.
4287 2016-03-03 Richard Biener <rguenther@suse.de>
4289 PR tree-optimization/55936
4290 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4291 parameter and guard unsafe equivalence use.
4292 (vrp_evaluate_conditional_warnv_with_ops): Always use
4293 safe equivalences but not via the quadratic compare_names
4296 2016-03-03 Michael Collison <michael.collison@linaro.org>
4299 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4300 for operand 1 to s_register_operand. Change predicate for operand
4301 2 to arm_not_immediate_operand.
4303 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4305 * doc/tm.texi: Regenerated.
4307 2016-03-02 Richard Henderson <rth@redhat.com>
4310 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4311 simplification when all args are positive non-fixed registers.
4313 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4315 * target.def (lra_p): Specify that new ports should use LRA.
4317 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4320 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4321 gimplify_type_sizes the type they refer to.
4322 (omp_notice_variable): Handle reference vars to VLAs.
4323 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4324 reference to VLA decls in the second pass instead of first pass.
4326 2016-03-02 Tom de Vries <tom@codesourcery.com>
4328 PR tree-optimization/68659
4329 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4330 new_expr == NULL_TREE.
4331 (get_new_name): Handle ADDR_EXPR.
4333 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4335 PR rtl-optimization/69052
4336 * loop-invariant.c (canonicalize_address): New function.
4337 (inv_can_prop_to_addr_use): Check validity of address expression
4338 which is canonicalized by above function.
4340 2016-03-02 Alan Modra <amodra@gmail.com>
4343 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4346 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4349 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4350 (*movhi_internal): Put mask moves from and to memory separately
4351 from moves from/to GPRs.
4353 2016-03-02 Richard Biener <rguenther@suse.de>
4355 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4356 GENERIC expressions in GIMPLE.
4358 2016-03-02 Richard Biener <rguenther@suse.de>
4360 * config/i386/i386.c (type_natural_mode): Fix typo.
4362 2016-03-02 Nick Clifton <nickc@redhat.com>
4364 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4366 2016-03-02 Richard Biener <rguenther@suse.de>
4367 Uros Bizjak <ubizjak@gmail.com>
4370 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4372 2016-03-02 Richard Biener <rguenther@suse.de>
4375 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4377 2016-03-02 Marek Polacek <polacek@redhat.com>
4380 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4381 "is promoted to" warning.
4383 2016-03-01 DJ Delorie <dj@redhat.com>
4385 * config.gcc: Deprecate mep-*.
4387 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4390 * lra-constraints.c (regno_val_use_in): New.
4391 (match_reload): Use it instead of regno_use_in.
4393 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4395 PR rtl-optimization/70007
4396 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4397 references present in REG_EQUAL notes attached to non-SET patterns.
4399 2016-03-01 Jeff Law <law@redhat.com>
4401 PR tree-optimization/69196
4402 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4403 Appropriately clamp the number of statements to copy when the
4404 thread path does not traverse a loop backedge.
4406 PR tree-optimization/69196
4407 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4408 Do count some PHIs in the thread path against the insn count. Decrease
4409 final statement count by one as the control statement in the last
4410 block will get removed. Remove special cased code for handling PHIs
4413 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4416 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4417 asm dialect alternatives to explicit GOTPCREL calls.
4419 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4422 * ira.c (do_reload): Issue warning for generic stack checking here...
4423 * reload1.c (reload): ...instead of here and streamline it.
4425 2016-03-01 Nick Clifton <nickc@redhat.com>
4427 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4429 2016-03-01 Richard Biener <rguenther@suse.de>
4431 PR tree-optimization/69983
4432 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4433 types and fall back to operand_equal_p.
4435 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4438 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4440 * config/s390/constraints.md ("jm8"): New constraint.
4441 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4443 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4445 ("*setmem_long<setmem_and>"): New pattern.
4446 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4448 ("*setmem_long_31z<setmem_and>"): New pattern.
4449 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4450 New substitution rules with the required attributes.
4453 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4456 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4458 * gensupport.c (process_substs_on_one_elem): Split loop to
4459 complete mark_operands_used_in_match_dup on all expressions in the
4461 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4462 and remove function.
4464 2016-03-01 Richard Biener <rguenther@suse.de>
4467 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4468 vector BIT_FIELD_REF extract.
4470 2016-03-01 Richard Biener <rguenther@suse.de>
4472 PR tree-optimization/69994
4473 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4475 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4477 PR tree-optimization/69956
4478 * tree-vect-stmts.c (supportable_widening_operation): Support
4479 multi-step conversion of boolean vectors.
4480 (supportable_narrowing_operation): Likewise.
4482 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4484 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4487 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4489 * config/s390/subst.md (DSI_VI): New mode iterator.
4490 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4491 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4492 the insn definition.
4493 ("*vec_set<mode>"): Change predicate and add alternative to
4494 support only either register or const_int operands as element
4496 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4498 ("vec_extract<mode>"): New expander.
4499 ("*vec_extract<mode>"): New insn definition supporting reg and
4500 const_int element selectors.
4501 ("*vec_extract<mode>_plus"): New insn definition supporting
4502 reg+const_int element selectors.
4503 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4504 following expander+insn definition.
4505 ("<vec_shifts_name><mode>3"): New expander.
4506 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4508 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4510 * config/s390/s390.md ("*tabort_1"): Change predicate to
4511 nonmemory_operand. Add a second alternative to cover
4512 register as well as const int operands.
4513 ("*tabort_1_plus"): New pattern definition.
4515 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4517 * config/s390/s390.md ("*ashrdi3_cc_31")
4518 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4519 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4520 Merge insn definitions into ...
4521 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4522 New pattern definition.
4523 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4524 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4525 ("*ashr<mode>3_and"): Merge insn definitions into ...
4526 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4527 New pattern definition.
4528 * config/s390/subst.md ("addr_style_op_cc_subst")
4529 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4530 substitutions patterns plus attributes.
4531 Add ashiftrt to SUBST iterator.
4533 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4535 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4536 op2 to nonmemory_operand.
4537 ("*<shift>di3_31", "*<shift>di3_31_and"):
4538 Merge into single pattern definition ...
4539 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4540 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4541 pattern definition ...
4542 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4543 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4546 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4548 * config/s390/predicates.md (const_int_6bitset_operand): New
4550 * config/s390/s390.md: Include subst.md.
4551 ("rotl<mode>3"): New expander.
4552 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4554 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4555 * config/s390/subst.md: New file.
4557 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4559 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4560 Remove RRR type. It doesn't really exist.
4561 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4563 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4564 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4565 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4566 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4567 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4568 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4569 `enabled' attribute.
4571 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4573 * gensupport.c (process_substs_on_one_elem): Split loop to
4574 complete mark_operands_used_in_match_dup on all expressions in the
4576 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4577 and remove function.
4579 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4582 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4583 (CEIL_NWORDS): ...this. Use CEIL macro.
4584 (compute_fp_layout): Adjust to above renaming.
4585 (function_arg_union_value): Likewise.
4586 (sparc_arg_partial_bytes): Likewise.
4587 (sparc_function_arg_advance): Likewise.
4589 2016-02-29 Jeff Law <law@redhat.com>
4591 PR tree-optimization/70005
4592 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4593 where an object with a boolean range is compared against a value
4596 PR tree-optimization/69999
4597 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4598 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4601 2016-02-29 Richard Biener <rguenther@suse.de>
4603 PR tree-optimization/69994
4604 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4605 (get_unary_op): Look through nop conversions.
4606 (ops_equal_values_p): New function, look for equality diregarding
4608 (eliminate_plus_minus_pair): Use ops_equal_values_p
4609 (repropagate_negates): Do not use get_unary_op here.
4611 2016-02-29 Martin Liska <mliska@suse.cz>
4613 * system.h: Poison ENABLE_CHECKING macro.
4615 2016-02-29 Martin Liska <mliska@suse.cz>
4617 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4618 is presented in dump flags.
4619 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4620 (hsa_regalloc): Likewise.
4622 2016-02-19 Richard Biener <rguenther@suse.de>
4624 PR tree-optimization/69980
4625 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4626 permutation of those we need to keep.
4628 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4631 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4632 (NWORDS_UP): ...this
4633 (init_cumulative_args): Minor tweaks.
4634 (sparc_promote_function_mode): Likewise.
4635 (scan_record_type): Delete.
4636 (traverse_record_type): New function template.
4637 (classify_data_t): New structure type.
4638 (classify_registers): New inline function.
4639 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4640 exhausted. Instantiate traverse_record_type on classify_registers and
4641 deal with the case of a structure passed in slot #15 with no FP field
4643 (assign_data_t): New structure type.
4644 (compute_int_layout): New static function.
4645 (compute_fp_layout): Likewise.
4646 (count_registers): New inline function.
4647 (assign_int_registers): New static function.
4648 (assign_fp_registers): Likewise.
4649 (assign_registers): New inline function.
4650 (function_arg_record_value_1): Delete.
4651 (function_arg_record_value_2): Likewise.
4652 (function_arg_record_value_3): Likewise.
4653 (function_arg_record_value): Adjust to above changes. Instantiate
4654 traverse_record_type on count_registers to first count the number of
4655 registers to be used and then on assign_registers to assign them.
4656 (function_arg_union_value): Adjust to above renaming.
4657 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4658 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4659 case of a structure passed in slot #15
4660 (sparc_function_arg_advance): Likewise.
4661 (function_arg_padding): Minor tweak.
4663 2016-02-29 Richard Biener <rguenther@suse.de>
4665 PR tree-optimization/69720
4666 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4667 the adjustment_def path for possibly vectorized defs.
4668 (vect_create_epilog_for_reduction): Handle vectorized initial
4671 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4673 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4675 2016-02-27 Jeff Law <law@redhat.com>
4678 2016-02-26 Richard Biener <rguenther@suse.de>
4679 Jeff Law <law@redhat.com>
4681 PR tree-optimization/69740
4682 * cfghooks.c (remove_edge): Request loop fixups if we delete
4683 an edge that might turn an irreducible loop into a natural
4686 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4688 PR rtl-optimization/69896
4689 * tree-vect-generic.c (get_compute_type): Avoid single element
4692 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4694 Rename the AArch64 tuning option and related functions to enable the
4695 Newton series for the reciprocal square root to reflect its
4696 approximative characteristic.
4698 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4699 function to "aarch64_emit_approx_rsqrt".
4700 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4701 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4702 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4703 (xgene1_tunings): Likewise.
4704 (use_rsqrt_p): Likewise.
4705 (aarch64_emit_swrsqrt): Use new function name.
4706 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4707 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4708 text explaining this option.
4709 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4711 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4714 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4715 complain about -mallow-movmisalign without -mvsx if
4716 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4718 2016-02-26 Joel Sherrill <joel@rtems.org>
4720 * config.gcc: Add x86_64-*-rtems*.
4721 * gcc/config/i386/rtems-64.h: New file.
4723 2016-02-26 Joel Sherrill <joel@rtems.org>
4725 * config.gcc: Add aarch64-*-rtems*.
4726 * gcc/config/aarch64/rtems.h: New file.
4728 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
4731 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4732 shift amount using %h. Add comment.
4734 2016-02-26 Richard Biener <rguenther@suse.de>
4735 Jeff Law <law@redhat.com>
4737 PR tree-optimization/69740
4738 * cfghooks.c (remove_edge): Request loop fixups if we delete
4739 an edge that might turn an irreducible loop into a natural
4742 2016-02-26 Martin Jambor <mjambor@suse.cz>
4745 * tree-sra.c (sra_modify_assign): Do not remove loads of
4746 uninitialized aggregates to SSA_NAMEs.
4748 2016-02-26 Richard Henderson <rth@redhat.com>
4751 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4752 pseudo in case the target rtx matches the source of the left
4755 2016-02-26 Martin Jambor <mjambor@suse.cz>
4758 * hsa.h (hsa_type_packed_p): Declare.
4759 * hsa.c (hsa_type_packed_p): New function.
4760 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4762 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4763 * hsa-brig.c (emit_basic_insn): Likewise.
4765 2016-02-26 Martin Jambor <mjambor@suse.cz>
4768 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4770 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4772 2016-02-26 Martin Jambor <mjambor@suse.cz>
4774 * hsa.h (is_a_helper): New overload for hsa_op_immed for
4775 hsa_op_with_type operands.
4776 (hsa_unsigned_type_for_type): Declare.
4777 * hsa.c (hsa_unsigned_type_for_type): New function.
4778 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4779 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4780 the finalizer. Do not emit extra move.
4782 2016-02-26 Martin Jambor <mjambor@suse.cz>
4784 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4785 atomic operations in private segment.
4787 2016-02-26 Martin Jambor <mjambor@suse.cz>
4789 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4790 statements to wi->info. Also disallow omp simd constructs.
4791 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4792 for not gridifying. Dump special string for omp_for.
4794 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4797 * config/aarch64/aarch64.c (aarch64_set_current_function):
4798 Save/restore target globals when switching to
4799 target_option_default_node.
4801 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4804 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4805 Return 0 if !SHIFT_COUNT_TRUNCATED.
4807 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4808 Eric Botcazou <ebotcazou@adacore.com>
4810 PR rtl-optimization/69891
4811 * dse.c (scan_insn): If we can't figure out memset arguments
4812 or they are non-constant, call clear_rhs_from_active_local_stores.
4814 2016-02-26 Martin Liska <mliska@suse.cz>
4816 * doc/extend.texi: Mention clog10, clog10f an clog10l
4817 in Builtins section.
4819 2016-02-26 Martin Liska <mliska@suse.cz>
4821 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4823 (resolve_args_picking_1): Likewise.
4824 * dwarf2out.h (struct GTY): Likewise.
4826 2016-02-26 Martin Liska <mliska@suse.cz>
4828 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4830 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4832 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
4833 Martin Liska <mliska@suse.cz>
4835 * doc/install.texi: Mention --enable-valgrind-annotations.
4837 2016-02-26 Richard Biener <rguenther@suse.de>
4839 PR tree-optimization/69551
4840 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4841 looking through aliases adjust DECL_PT_UID to refer to the
4842 ultimate alias target.
4844 2016-02-25 Martin Liska <mliska@suse.cz>
4847 * alloc-pool.c (after_memory_report): New variable.
4848 * alloc-pool.h (base_pool_allocator ::release): Do not use
4849 the infrastructure if after_memory_report.
4850 * toplev.c (toplev::main): Mark after memory report.
4852 2016-02-25 Richard Biener <rguenther@suse.de>
4854 PR tree-optimization/48795
4855 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4857 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4860 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
4861 offloading is enabled and -fopenacc or -fopenmp is specified.
4862 (CRTOFFLOADEND): Likewise.
4863 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4864 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4865 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4866 (offload_objects_file_name): New static var.
4867 (tool_cleanup): Remove offload_objects_file_name file.
4868 (find_offloadbeginend): Replace with ...
4869 (find_crtoffloadtable): ... this.
4870 (run_gcc): Remove offload_argc and offload_argv.
4871 Get offload_objects_file_name from -foffload-objects=... option.
4872 Read names of object files with offload from this file, pass them to
4873 compile_images_for_offload_targets. Don't call find_offloadbeginend and
4874 don't pass offloadbegin and offloadend to the linker. Don't pass
4875 offload non-LTO files to the linker, because now they're not claimed.
4877 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
4880 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4881 on builtin_unreachable.
4883 2016-02-25 Jakub Jelinek <jakub@redhat.com>
4885 PR rtl-optimization/69896
4886 * regcprop.c: Include cfgrtl.h.
4887 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4888 than remembered mode, either delete it (if noop_move_p), or
4889 treat like copy_p but not noop_p instruction.
4891 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4894 * dwarf2out.c (gen_variable_die): Work around buggy LTO
4895 - allow NULL decl for Fortran DW_TAG_common_block variables.
4897 2016-02-24 Jason Merrill <jason@redhat.com>
4899 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4901 2016-02-24 Richard Biener <rguenther@suse.de>
4902 Jakub Jelinek <jakub@redhat.com>
4905 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4906 conditionally executed ops to well-defined overflow behavior.
4908 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4911 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4914 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4916 PR rtl-optimization/69886
4917 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4918 argument. Use it when checking validity of set instructions.
4919 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4920 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4922 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4923 * store-motion.c (find_moveable_store): Update
4924 can_assign_to_reg_without_clobbers_p callsite.
4926 2016-02-24 Richard Biener <rguenther@suse.de>
4929 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4931 (record_nonwrapping_iv): Do not fall back to the low/high bound
4932 for non-constant IV bases if the stmt is not always executed.
4934 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4936 * config/arm/arm-cores.def (cortex-a32): New entry.
4937 * config/arm/arm-tables.opt: Regenerate.
4938 * config/arm/arm-tune.md: Regenerate.
4939 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4940 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4941 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4942 for -mcpu and -mtune.
4944 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4947 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4948 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4949 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4950 (atomic_loaddi_1): Delete.
4951 (atomic_loaddi): Rewrite expander using the above changes.
4953 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4956 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4959 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4960 Richard Biener <rguenth@suse.de>
4963 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4964 set_mem_attributes if tem is SSA_NAME which got expanded
4967 2016-02-24 Richard Biener <rguenther@suse.de>
4969 PR tree-optimization/69907
4970 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4971 end of permutations for BB vectorization.
4973 2016-02-24 Christian Bruel <christian.bruel@st.com>
4975 * config/arm/arm-c.c (arm_option_override): Initialize
4976 target_option_current_node.
4977 * config/arm/arm.c (arm_pragma_target_parse): Replace
4978 build_target_option_node call by target_option_current_node.
4979 Set target_option_current_node.
4982 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4985 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4986 define_insn_and_split to define_insn.
4987 (zero_extendqi<mode>2_dot2): Same.
4988 (extendqi<mode>2_dot): Same.
4989 (extendqi<mode>2_dot2): Same.
4991 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4993 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4994 and add bypass for AES{D,E} and AESMC pairs.
4995 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4998 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
5000 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
5001 series for reciprocal square root in Exynos M1.
5003 2016-02-23 Martin Sebor <msebor@redhat.com>
5006 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
5007 __builtin_alloca_with_align.
5009 2016-02-23 Richard Henderson <rth@redhat.com>
5011 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
5012 (ix86_register_pragmas): Remove __seg_tls.
5013 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
5014 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
5015 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
5016 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
5017 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
5018 * doc/extend.texi (__seg_tls): Remove item.
5020 2016-02-23 Richard Biener <rguenther@suse.de>
5022 * alloc-pool.h (struct allocation_object): Make id member
5023 conditional on CHECKING_P again.
5024 (get_instance): Adjust.
5025 (base_pool_allocator): Likewise.
5027 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
5029 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
5030 (parallelize_loops): In OpenACC kernels mode, set n_threads to
5032 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
5034 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5036 2016-02-23 Richard Biener <rguenther@suse.de>
5038 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
5039 * bitmap.h (struct bitmap_usage): Likewise.
5040 (bitmap_move): Declare.
5041 * bitmap.c (register_overhead): Take size_t argument.
5042 (bitmap_move): New function.
5043 * df-problems.c (df_rd_transfer_function): Use bitmap_move
5044 to properly account overhead.
5045 * tree.c (free_node): Use tree_size.
5047 2016-02-23 Jakub Jelinek <jakub@redhat.com>
5050 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5051 when inverting comparison.
5054 * common.opt (Wunreachable-code): Add Warning flag.
5056 2016-02-23 Mark Wielaard <mjw@redhat.com>
5057 Jakub Jelinek <jakub@redhat.com>
5060 * cgraphunit.c (check_global_declaration): Check main_input_filename
5061 and DECL_SOURCE_FILE are not NULL.
5063 2016-02-23 Martin Jambor <mjambor@suse.cz>
5065 PR tree-optimization/69666
5066 * tree-sra.c (sra_modify_assign): Do not attempt to create
5067 default_def replacements for unscalarizable regions.
5069 2016-02-20 Mark Wielaard <mjw@redhat.com>
5072 * cgraphunit.c (check_global_declaration): Check level of
5073 warn_unused_const_variable and main_input_filename.
5074 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5075 (-Wunused-variable): For C implies -Wunused-const-variable=1.
5076 (-Wunused-const-variable): Explain levels 1 and 2.
5078 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5081 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5082 identical arguments. Formatting and spelling fixes.
5085 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5090 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5091 and m68k-devices.def.
5092 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5093 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5095 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5097 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5098 and HImode registers.
5100 2016-02-22 Richard Biener <rguenther@suse.de>
5102 PR tree-optimization/69882
5103 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5104 preserve permutations present because of gaps.
5105 (vect_supported_load_permutation_p): Always continue checking
5106 permutations after vect_attempt_slp_rearrange_stmts.
5108 2016-02-22 Bin Cheng <bin.cheng@arm.com>
5110 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5111 min_profitable_estimate, rather than min_profitable_iters.
5113 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5116 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5117 SImode for last match_operand.
5119 2016-02-22 Martin Liska <mliska@suse.cz>
5121 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5122 return bitsize - 1 as the return value.
5124 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5128 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5129 Handle negative shift counts.
5130 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5131 force_reg on the shift constant.
5132 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
5133 (lshrsi3_d): Handle negative shift counts.
5135 2016-02-22 Richard Biener <rguenther@suse.de>
5136 Tom de Vries <tom@codesourcery.com>
5138 * graph.c: Include dumpfile.h.
5139 (print_graph_cfg): Split into three overloads.
5140 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5142 2016-02-22 Tom de Vries <tom@codesourcery.com>
5144 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5147 2016-02-22 Richard Biener <rguenther@suse.de>
5150 * ipa-inline-transform.c (inline_call): When not updating
5151 overall summaries adjust self size by the growth estimate.
5152 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5153 hash-set, do not update overall summaries here. Renamed from ...
5154 (inline_to_all_callers): ... this which is now wrapping the
5155 above and performing delayed overall summary update.
5156 (early_inline_small_functions): Delay updating of the overall
5159 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
5161 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5164 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5167 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5168 :%* in %:gt() argument.
5169 (greater_than_spec_func): Adjust for expecting only numbers,
5170 if there are more than two numbers, compare the last two.
5172 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
5174 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5175 -Wnarrowing with -std.
5177 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5180 * expr.c (store_field): Don't use bit-field path if exp is
5181 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5182 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5183 and the assignment can be performed by bitwise copy. Formatting
5187 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5188 call copy_reg_eh_region_note_forward on before and/or after sequences
5189 and remove note from insn if it no longer can throw.
5192 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5195 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5197 * config/s390/vector.md: Add missing commutative operand markers
5198 to the patterns which qualify for one.
5199 * config/s390/vx-builtins.md: Likewise.
5201 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5203 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5204 types to mode iterators.
5205 (vec_double): ... and mode attribute.
5206 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5208 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5210 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5211 Change the predicate of op2 from nonimmediate to general and let
5212 reload fix it if necessary.
5214 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5216 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5218 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5220 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5223 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5225 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5226 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5227 * config/s390/s390.md ("movstr<P:mode>"): Call
5228 s390_expand_vec_movstr.
5230 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5232 * config/s390/s390.md: Add missing output modifier for operand 1
5233 to print it as address properly.
5235 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5237 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5238 * config/s390/2964.md: New file.
5239 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5240 of insn grouping attributes depending on the CPU level.
5241 (s390_get_unit_mask): New function.
5242 (s390_sched_score): Remove the OOO from the scheduling macros.
5243 Add loop to calculate a score for the instruction mix.
5244 (s390_sched_reorder): Likewise plus improve debug output.
5245 (s390_sched_variable_issue): Rename macros as above. Calculate
5246 the unit distances after actually scheduling an insn. Improve
5248 (s390_sched_init): Clear last_scheduled_unit_distance array.
5249 * config/s390/s390.md: Include 2964.md.
5251 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5254 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5255 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5256 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5257 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5258 *avx512f_<code>v8div16qi2_mask_1): New insns.
5260 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5263 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5266 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5267 earlyclobber from target. Use wF constraint for fused memory
5269 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5271 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5272 Martin Liska <mliska@suse.cz>
5275 * cfgexpand.c (asan_sanitize_stack_p): New function.
5276 (partition_stack_vars): Use the function.
5277 (expand_stack_vars): Likewise.
5278 (defer_stack_allocation): Likewise.
5279 (expand_used_vars): Likewise.
5281 2016-02-18 Richard Biener <rguenther@suse.de>
5284 * fold-const.c (operand_equal_p): Properly compare offsets for
5285 IMAGPART_EXPR and ARRAY_REF.
5287 2016-02-18 Nick Clifton <nickc@redhat.com>
5291 * config/arm/arm.c (arm_option_override_internal): Disable
5292 interworking if the target does not support thumb instructions.
5293 (arm_reload_in_hi): Handle the case where a register to register
5294 move needs reloading because there is no simple pattern to handle
5296 (arm_reload_out_hi): Likewise.
5298 2016-02-18 Richard Biener <rguenther@suse.de>
5301 * match.pd: Don't use fold_binary or fold_unary for folding
5304 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5307 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5308 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5309 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5310 warn on gimple_no_warning_p statements.
5312 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5314 * doc/extend.texi (C++ Attributes): Correct description of
5315 warn_unused type attribute.
5317 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5319 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5320 correct instruction.
5322 2016-02-17 Richard Biener <rguenther@suse.de>
5324 PR rtl-optimization/69609
5325 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5326 (find_traces_1_round): When ending a trace update cached priority
5328 (bb_to_key): Use cached priority when available.
5329 (copy_bb): Initialize cached priority.
5330 (reorder_basic_blocks_software_trace_cache): Likewise.
5332 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5335 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5337 (aarch64_comparison_operator): Break overly long line into two.
5338 (aarch64_comparison_operation): Likewise.
5339 * config/aarch64/aarch64.md (cstorecc4): Use
5340 aarch64_comparison_operator_mode instead of
5341 aarch64_comparison_operator.
5342 (cstore<mode>4): Likewise.
5343 (aarch64_cstore<mode>): Likewise.
5344 (*cstoresi_insn_uxtw): Likewise.
5345 (cstore<mode>_neg): Likewise.
5346 (*cstoresi_neg_uxtw): Likewise.
5348 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5351 * config/arm/predicates.md (arm_comparison_operator_mode):
5353 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5354 instead of arm_comparison_operator.
5355 (*mov_negscc): Likewise.
5356 (*mov_notscc): Likewise.
5357 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5358 (*thumb2_mov_negscc): Likewise.
5359 (*thumb2_mov_negscc_strict_it): Likewise.
5360 (*thumb2_mov_notscc): Likewise.
5361 (*thumb2_mov_notscc_strict_it): Likewise.
5363 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5365 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5368 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5370 * config/visium/visium.c (machine_libfunc_index): New enum.
5371 (machine_libfuncs): New structure.
5372 (visium_libfuncs): New static variable.
5373 (TARGET_INIT_LIBFUNCS): Define to...
5374 (visium_init_libfuncs): ...this. New function.
5375 (expand_block_move_4): Use the appropriate libfunc.
5376 (expand_block_move_2): Likewise.
5377 (expand_block_move_1): Likewise.
5378 (expand_block_set_4): Likewise.
5379 (expand_block_set_2): Likewise.
5380 (expand_block_set_1): Likewise.
5381 (visium_trampoline_init): Likewise.
5383 2016-02-17 Nick Clifton <nickc@redhat.com>
5385 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5386 TI's devices.csv file as of March 2016.
5388 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5391 * opts-global.c (handle_common_deferred_options): Introduce and
5392 initialize two global variables to remember command-line options
5393 specifying a stack-limiting register.
5394 * opts.h: Add extern declarations of the two new global variables.
5395 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5396 variable based on the values of the two new global variables.
5398 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5401 * common.opt (Wnonnull-compare): New warning.
5402 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5403 of arguments against NULL.
5404 (-Wnonnull-compare): Document.
5405 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5406 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5407 * passes.def (pass_warn_nonnull_compare): Add.
5408 * gimple-ssa-nonnull-compare.c: New file.
5410 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5412 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5413 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5415 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5417 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5418 reciprocal sqrt for -mlow-precision-recip-sqrt.
5420 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5421 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5423 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5424 always use lane loads to construct non-constant vectors.
5426 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5428 * config/aarch64/aarch64.md
5429 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5430 constraints for operand 3.
5431 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5433 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5434 Richard Biener <rguenther@suse.de>
5436 PR tree-optimization/69820
5437 * tree-vect-patterns.c (type_conversion_p): Return false if
5438 *orig_type is unsigned single precision or boolean.
5439 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5442 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5444 PR rtl-optimization/69764
5445 PR rtl-optimization/69771
5446 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5447 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5449 2016-02-16 Richard Biener <rguenther@suse.de>
5451 PR tree-optimization/69776
5452 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5454 (indirect_refs_may_alias_p): Likewise.
5455 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5456 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5457 according to tbaa_p.
5458 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5459 (optimize_stmt): For redundant store discovery do not allow tbaa.
5461 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5463 PR tree-optimization/69714
5464 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5465 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5467 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5469 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5470 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5471 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5472 * config/arc/arc.c (arc_init): Check FPU options.
5473 (get_arc_condition_code): Handle new CC_FPU* modes.
5474 (arc_select_cc_mode): Likewise.
5475 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5476 register pair only. Allow access for ARCv2 accumulator.
5477 (gen_compare_reg): Whenever we have FPU support use FPU compare
5479 (arc_reorg): Don't generate brcc insns when FPU compare
5480 instructions are involved.
5481 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5482 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5483 floating point emulation.
5484 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5485 (REVERSE_CONDITION): Add new CC_FPU* modes.
5486 (TARGET_FP_SP_BASE): Define.
5487 (TARGET_FP_DP_BASE): Likewise.
5488 (TARGET_FP_SP_FUSED): Likewise.
5489 (TARGET_FP_DP_FUSED): Likewise.
5490 (TARGET_FP_SP_CONV): Likewise.
5491 (TARGET_FP_DP_CONV): Likewise.
5492 (TARGET_FP_SP_SQRT): Likewise.
5493 (TARGET_FP_DP_SQRT): Likewise.
5494 (TARGET_FP_DP_AX): Likewise.
5495 * config/arc/arc.md (ARCV2_ACC): New constant.
5496 (type): New fpu type attribute.
5497 (SDF): Conditional iterator.
5498 (cstore<mode>, cbranch<mode>): Change expand condition.
5499 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5500 handles FPU/FPX cases as well.
5501 * config/arc/arc.opt (mfpu): New option.
5502 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5504 (adddf3, muldf3, subdf3): Removed.
5505 * config/arc/predicates.md (proper_comparison_operator): Recognize
5507 * config/arc/fpu.md: New file.
5508 * doc/invoke.texi (ARC Options): Document mfpu option.
5510 2016-02-16 Richard Biener <rguenther@suse.de>
5512 PR rtl-optimization/69291
5513 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5514 noce_operand_ok check.
5516 2016-02-16 Tom de Vries <tom@codesourcery.com>
5519 * omp-low.c (simd_clone_create): Remove call to
5520 symtab->call_cgraph_insertion_hooks.
5522 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5524 PR tree-optimization/69802
5525 * tree-ssa-reassoc.c (update_range_test): If op is
5526 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5527 op == 1 test of precision 1 integral op, otherwise handle
5528 that case as op itself. Fix up formatting.
5529 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5532 2016-02-16 Richard Biener <rguenther@suse.de>
5534 PR tree-optimization/69586
5535 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5536 types for conversion sources.
5538 2016-02-16 Richard Biener <rguenther@suse.de>
5541 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5542 mask OEP_ADDRESS_OF.
5544 2016-02-16 Alan Modra <amodra@gmail.com>
5547 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5548 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5549 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5551 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5552 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5553 (p8_fmrgow_<mode>): Likewise.
5554 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5556 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5557 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5558 to use movdi_internal64. Remove op0_di.
5559 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5561 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5563 Add support for the FCCMP insn types
5565 * config/aarch64/aarch64.md (fccmp): Change insn type.
5567 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5568 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5569 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5570 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5571 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5572 * config/arm/types.md (fccmps): Add new insn type.
5575 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5577 * alias.c (get_alias_set): Fix a typo in comment.
5579 2016-02-15 Richard Biener <rguenther@suse.de>
5581 PR tree-optimization/69595
5582 * match.pd: Complete range test simplification to true.
5584 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5586 PR rtl-optimization/69648
5587 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5588 pic_offset_table_rtx.
5590 PR rtl-optimization/69752
5591 * ira.c (update_equiv_regs): When looking for more than a single SET,
5592 also take other side effects into account.
5594 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5596 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5597 for z900+ CPUs in 31-bit mode.
5599 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5601 * common/config/s390/s390-common.c (s390_supports_split_stack):
5603 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5604 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5605 * config/s390/s390.c (struct machine_function): New field
5606 split_stack_varargs_pointer.
5607 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5608 in s390_emit_prologue.
5609 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5611 (morestack_ref): New global.
5612 (SPLIT_STACK_AVAILABLE): New macro.
5613 (s390_expand_split_stack_prologue): New function.
5614 (s390_live_on_entry): New function.
5615 (s390_va_start): Use split-stack vararg pointer if appropriate.
5616 (s390_asm_file_end): Emit the split-stack note sections.
5617 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5618 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5619 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5620 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5621 (split_stack_prologue): New expand.
5622 (split_stack_space_check): New expand.
5623 (split_stack_data): New insn.
5624 (split_stack_call): New expand.
5625 (split_stack_call_*): New insn.
5626 (split_stack_cond_call): New expand.
5627 (split_stack_cond_call_*): New insn.
5629 2016-02-15 Richard Biener <rguenther@suse.de>
5631 PR tree-optimization/69783
5632 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5633 Add trivially correct cases.
5635 2016-02-15 Tom de Vries <tom@codesourcery.com>
5638 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5640 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5642 2016-02-15 Richard Biener <rguenther@suse.de>
5644 PR tree-optimization/69776
5645 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5646 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5647 indicate whether we can use TBAA to disambiguate against stores.
5648 Use alias-set zero if not.
5649 (visit_reference_op_store): Do not use TBAA when looking up
5651 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5652 (eliminate_dom_walker::before_dom_children): But not when looking
5653 up redundant stores.
5655 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5657 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5659 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5661 * config/i386/znver1.md
5662 (znver1_pop, znver1_pop_mem,
5663 znver1_load_imov_double_store,
5664 znver1_load_imov_direct_store,
5665 znver1_load_imov_direct_load,
5666 znver1_load_imov_double_load): Add new.
5667 (znver1_insn, znver1_insn_load): Add icmov type.
5669 znver1_sseavx_fma_load,
5671 znver1_avx256_fma_load): Fix pipe usage.
5673 2016-02-14 Alan Modra <amodra@gmail.com>
5676 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5677 with an invalid hard reg, reload just the reg not the entire
5678 pre/post-inc/dec address expression.
5680 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5683 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5684 fixed R1_REG scratch reg.
5685 (sibcall_value_pcrel_fdpic): Likewise.
5687 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5691 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5693 2016-02-12 Walter Lee <walt@tilera.com>
5695 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5696 * config/tilegx/t-tilegx: Likewise.
5698 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5701 * diagnostic-show-locus.c (struct line_span): New struct.
5702 (layout::get_first_line): Delete.
5703 (layout::get_last_line): Delete.
5704 (layout::get_num_line_spans): New member function.
5705 (layout::get_line_span): Likewise.
5706 (layout::print_heading_for_line_span_index_p): Likewise.
5707 (layout::get_expanded_location): Likewise.
5708 (layout::calculate_line_spans): Likewise.
5709 (layout::m_first_line): Delete.
5710 (layout::m_last_line): Delete.
5711 (layout::m_line_spans): New field.
5712 (layout::layout): Update comment. Replace m_first_line and
5713 m_last_line with m_line_spans, replacing their initialization
5714 with a call to calculate_line_spans.
5715 (diagnostic_show_locus): When printing source lines and
5716 annotations, rather than looping over a single span
5717 of lines, instead loop over each line_span within
5718 the layout, with an inner loop over the lines within them.
5719 Call the context's start_span callback when changing line spans.
5720 * diagnostic.c (diagnostic_initialize): Initialize start_span.
5721 (diagnostic_build_prefix): Break out the building of the location
5722 part of the string into...
5723 (diagnostic_get_location_text): ...this new function, rewriting
5724 it from nested ternary expressions to a sequence of "if"
5726 (default_diagnostic_start_span_fn): New function.
5727 * diagnostic.h (diagnostic_start_span_fn): New typedef.
5728 (diagnostic_context::start_span): New field.
5729 (default_diagnostic_start_span_fn): New prototype.
5731 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5734 * gcc.c (driver::finalize): Fix cleanup of "specs".
5736 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5740 * gcc.c (driver::driver): Initialize m_option_suggestions.
5741 (driver::~driver): Clean up m_option_suggestions.
5742 (suggest_option): Convert to...
5743 (driver::suggest_option): ...this, and split out into
5744 driver::build_option_suggestions and find_closest_string.
5745 (driver::build_option_suggestions): New function, from
5746 first half of suggest_option. Special-case
5747 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5748 the sanitizer_opts array. For options of enum types, add the
5749 various enum values to the candidate strings.
5750 (driver::handle_unrecognized_options): Remove "const".
5751 * gcc.h (driver::handle_unrecognized_options): Likewise.
5752 (driver::build_option_suggestions): New decl.
5753 (driver::suggest_option): New decl.
5754 (driver::m_option_suggestions): New field.
5755 * opts-common.c (add_misspelling_candidates): New function.
5756 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5757 and make non-static.
5758 * opts.h (sanitizer_opts): New array decl.
5759 (add_misspelling_candidates): New function decl.
5760 * spellcheck.c (find_closest_string): New function.
5761 * spellcheck.h (find_closest_string): New function decl.
5763 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5765 PR rtl-optimization/69764
5766 PR rtl-optimization/69771
5767 * optabs.c (expand_binop_directly): For shift_optab_p, force
5768 convert_modes with VOIDmode if xop1 has VOIDmode.
5770 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5773 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5774 to correctly determine instrumentation thunks.
5776 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5779 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5780 type by reference, force lhs on the call.
5783 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5784 Compute retval and retbnd early in all cases if split_part_return_p
5785 and return_bb is not EXIT. Remove all clobber stmts and reset
5786 all debug stmts that refer to SSA_NAMEs defined in split part,
5787 except if it is retval, in that case replace the old retval with the
5788 lhs of the call to the split part.
5790 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5793 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5796 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5797 whose result is used in PHI.
5798 (maybe_optimize_range_tests): Likewise.
5799 (final_range_test_p): Likweise.
5801 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5804 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5805 whose result is used in PHI.
5806 (maybe_optimize_range_tests): Likewise.
5807 (final_range_test_p): Likweise.
5809 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5811 * cgraph.c: Spelling fixes - behaviour -> behavior and
5812 neighbour -> neighbor.
5813 * target.def: Likewise.
5814 * sel-sched.c: Likewise.
5815 * config/mips/mips.c: Likewise.
5816 * config/arc/arc.md: Likewise.
5817 * config/arm/cortex-a57.md: Likewise.
5818 * config/arm/arm.c: Likewise.
5819 * config/arm/neon.md: Likewise.
5820 * config/arm/arm-c.c: Likewise.
5821 * config/vms/vms-c.c: Likewise.
5822 * config/s390/s390.c: Likewise.
5823 * config/i386/znver1.md: Likewise.
5824 * config/i386/i386.c: Likewise.
5825 * config/ia64/hpux-unix2003.h: Likewise.
5826 * config/msp430/msp430.md: Likewise.
5827 * config/rx/rx.c: Likewise.
5828 * config/rx/rx.md: Likewise.
5829 * config/aarch64/aarch64-simd.md: Likewise.
5830 * config/aarch64/aarch64.c: Likewise.
5831 * config/nvptx/nvptx.c: Likewise.
5832 * config/bfin/bfin.c: Likewise.
5833 * config/cris/cris.opt: Likewise.
5834 * config/rs6000/rs6000.c: Likewise.
5835 * target.h: Likewise.
5836 * spellcheck.c: Likewise.
5837 * ira-build.c: Likewise.
5838 * tree-inline.c: Likewise.
5839 * builtins.c: Likewise.
5840 * lra-constraints.c: Likewise.
5841 * explow.c: Likewise.
5842 * hwint.h: Likewise.
5843 * targhooks.c: Likewise.
5844 * tree-vect-data-refs.c: Likewise.
5846 * doc/tm.texi: Likewise.
5847 * doc/extend.texi: Likewise.
5848 * doc/install.texi: Likewise.
5849 * doc/md.texi: Likewise.
5850 * tree-ssa-tail-merge.c: Likewise.
5851 * sched-int.h: Likewise.
5852 * match.pd: Likewise.
5853 * sched-ebb.c: Likewise.
5854 * target.def (omit_struct_return_reg): Likewise.
5855 * gimple-ssa-isolate-paths.c: Likewise.
5856 (find_implicit_erroneous_behaviour): Renamed to...
5857 (find_implicit_erroneous_behavior): ... this.
5858 (find_explicit_erroneous_behaviour): Renamed to...
5859 (find_explicit_erroneous_behavior): ... this.
5860 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5862 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
5864 PR rtl-optimization/64682
5865 PR rtl-optimization/69567
5866 PR rtl-optimization/69737
5867 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5868 in I2 as well, just lose it.
5870 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5872 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5874 (aarch64_last_printed_tune_string): Likewise.
5875 (aarch64_declare_function_name): Only output .arch assembler
5876 directive if it will be different from the previously output
5877 directive. Same for .tune comment but only if -dA is set.
5878 (aarch64_start_file): New function.
5879 (TARGET_ASM_FILE_START): Define.
5881 2016-02-11 David Malcolm <dmalcolm@redhat.com>
5884 * Makefile.in (PLUGIN_HEADERS): Add params.list.
5886 2016-02-11 Jakub Jelinek <jakub@redhat.com>
5889 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5890 -Wmaybe-uninitialized warning.
5892 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
5895 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5897 2016-02-11 Richard Biener <rguenther@suse.de>
5899 PR rtl-optimization/69291
5900 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5901 subexpressions affected by changing the result.
5903 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5906 * lra-constraints.c (curr_insn_transform): Find in/out operands
5907 for secondary memory moves. Update dups.
5909 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5911 PR tree-optimization/69652
5912 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5913 to nested loop, did source re-formatting, skip debug statements,
5914 add check on statement with volatile operand, remove dead scalar
5917 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5918 Patrick Palka <ppalka@gcc.gnu.org>
5922 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5923 calls if the return type is TREE_ADDRESSABLE.
5924 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5925 * ipa-split.c (split_function): Fix doubled "we" in comment.
5926 Use void return type for the split part even if
5927 !split_point->split_part_set_retval.
5929 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5931 PR tree-optimization/68021
5932 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5933 when computing the value of biv cand by itself.
5935 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5937 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5938 (cortexa57_tunings): Likewise.
5939 (cortexa72_tunings): Likewise.
5940 (arch_macro_fusion_pair_p): Add support for AES fusion.
5941 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5942 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5943 Allow virtual registers before reload so early scheduling works.
5944 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5945 correct latency and pipeline.
5946 (cortex_a57_crypto_complex): Likewise.
5947 (cortex_a57_crypto_xor): Likewise.
5948 (define_bypass): Add AES bypass.
5950 2016-02-10 Richard Biener <rguenther@suse.de>
5952 PR tree-optimization/69726
5953 * passes.def: Add DCE pass before late uninit.
5954 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5955 really fixup if-conversions job.
5957 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5959 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5960 (arm_cortex_a57_tune): Likewise.
5961 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5962 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5964 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5966 * timevar.def (TV_PHASE_DBGINFO): Delete.
5967 (TV_PHASE_CHECK_DBGINFO): Likewise.
5968 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5970 2016-02-10 Richard Biener <rguenther@suse.de>
5972 PR tree-optimization/69719
5973 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5974 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5976 2016-02-09 Andrew Pinski <apinski@cavium.com>
5979 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5980 get_vcond_mask_icode returns false.
5982 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5985 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5986 an ADDIS that adds a pointer to a large constant that sets the
5987 upper16 bits with a load operation.
5989 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5992 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5994 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5996 (vzipq_s16): Likewise.
5997 (vzipq_s32): Likewise.
5998 (vzipq_f32): Likewise.
5999 (vzipq_u8): Likewise.
6000 (vzipq_u16): Likewise.
6001 (vzipq_u32): Likewise.
6002 (vzipq_p8): Likewise.
6003 (vzipq_p16): Likewise.
6005 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
6008 * config/arm/arm.c (neon_endian_lane_map): New function.
6009 (neon_vector_pair_endian_lane_map): New function.
6010 (arm_evpc_neon_vuzp): Allow for big endian lane order.
6011 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
6013 (vuzpq_s16): Likewise.
6014 (vuzpq_s32): Likewise.
6015 (vuzpq_f32): Likewise.
6016 (vuzpq_u8): Likewise.
6017 (vuzpq_u16): Likewise.
6018 (vuzpq_u32): Likewise.
6019 (vuzpq_p8): Likewise.
6020 (vuzpq_p16): Likewise.
6022 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
6025 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
6028 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
6030 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
6031 truncate const_int operand 1 to QImode.
6033 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
6035 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
6036 corresponding to an abnormal edge.
6038 2016-02-09 Tom de Vries <tom@codesourcery.com>
6040 PR tree-optimization/69599
6041 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
6043 (find_func_aliases_for_builtin_call, find_func_clobbers)
6044 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
6047 2016-02-09 Richard Biener <rguenther@suse.de>
6049 PR tree-optimization/69715
6050 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6051 LHS on calls as non-rewritable.
6053 2016-02-09 Tom de Vries <tom@codesourcery.com>
6056 * lto-wrapper.c (append_diag_options): New function.
6057 (compile_offload_image): Call append_diag_options.
6059 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
6062 * doc/extend.texi (Flag Output Operands): Correct sectioning.
6063 Minor copy-edit to fix verb tenses.
6065 2016-02-08 Jakub Jelinek <jakub@redhat.com>
6067 PR tree-optimization/69209
6068 * ipa-split.c (split_function): If split part is not
6069 returning retval, retval has gimple type but is not
6070 gimple value, force it into a SSA_NAME first.
6072 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
6074 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6077 2016-02-08 Jason Merrill <jason@redhat.com>
6080 * convert.c (convert_to_integer_1): Check dofold on truncation
6082 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6083 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6084 Rename from *_nofold.
6085 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6086 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6088 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6091 * tree.c (build_common_tree_nodes): Remove short_double argument.
6092 All callers changed.
6093 * tree.h (build_common_tree_nodes): Adjust declaration.
6094 * doc/invoke.texi (-fshort-double): Remove documentation.
6095 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6096 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6097 * lto-wrapper.c (merge_and_complain, append_compiler_options)
6098 (append_linker_options): Don't handle OPT_fshort_double.
6100 PR rtl-optimization/68730
6101 * lra-remat.c (insn_to_cand_activation): New static variable.
6102 (lra_remat): Allocate and free it.
6103 (create_cand): New arg activation. Initialize a field in
6104 insn_to_cand_activation if it is nonnull.
6105 (create_cands): Pass the activation insn to create_cand when making
6106 a candidate involving an output reload. Reorganize code a little.
6107 (do_remat): Keep track of active status of candidates in a separate
6110 2016-02-08 Richard Biener <rguenther@suse.de>
6112 PR tree-optimization/69719
6113 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6114 Properly use absolute of the difference of the two offsets to
6115 compare or adjust the segment length.
6117 2016-02-08 Richard Biener <rguenther@suse.de>
6118 Jeff Law <law@redhat.com>
6121 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6122 types for anonymous SSA names.
6124 2016-02-08 Richard Biener <rguenther@suse.de>
6126 PR rtl-optimization/69274
6127 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6129 2016-02-08 Jeff Law <law@redhat.com>
6131 PR tree-optimization/65917
6132 * tree-ssa-dom.c (record_temporary_equivalences): Record both
6133 equivalences from if (x == y) style conditionals.
6134 (loop_depth_of_name): Remove.
6135 (record_equality): Remove loop depth check.
6136 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6137 (const_and_copies::record_const_or_copy_raw): New member function.
6138 * tree-ssa-scopedtables.c
6139 (const_and_copies::record_const_or_copy_raw): New, factored out of
6140 (const_and_copies::record_const_or_copy): Call new member function.
6142 2016-02-05 Jeff Law <law@redhat.com>
6144 PR tree-optimization/68541
6145 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6146 (count_stmts_in_block): New function.
6147 (poor_ifcvt_candidate_code): Likewise.
6148 (is_feasible_trace): Add some heuristics to determine when path
6149 splitting is profitable.
6150 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6151 is a diamond with a single exit.
6153 2016-02-05 Martin Sebor <msebor@redhat.com>
6156 * doc/invoke.texi: Update -Wplacement-new to take an optional
6159 2016-02-06 Richard Henderson <rth@redhat.com>
6162 * tree.c (tree_nop_conversion_p): Do not strip casts into or
6163 out of non-standard address spaces.
6165 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6167 PR rtl-optimization/69691
6168 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6170 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
6172 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6173 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6174 (*ieee128_mfvsrd_64bit): Likewise.
6175 (*ieee128_mfvsrd_32bit): Likewise.
6177 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6181 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6183 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6184 instrumented_version.
6186 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
6188 * doc/invoke.texi (Optimize Options): In table of --param options
6189 rename second occurrence of tracer-min-branch-ratio to
6190 tracer-min-branch-probability, rename
6191 tracer-min-branch-ratio-feedback to
6192 tracer-min-branch-probability-feedback and clarify description,
6193 rename sched-spec-state-edge-prob-cutoff to
6194 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6195 to selsched-insns-to-rename, rename lto-minpartition to
6196 lto-min-partition, delete reorder-blocks-duplicate and
6197 reorder-blocks-duplicate-feedback.
6199 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6201 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6204 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6206 * doc/extend.texi: S/390: Correct some typos.
6208 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6210 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6212 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6215 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6216 (s390_register_info_gprtofpr): Use new macros above.
6217 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6219 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6220 its name. Adjust restore and save gpr ranges.
6221 (s390_register_info_set_ranges): New function.
6222 (s390_register_info): Use new macros above. Call
6223 s390_register_info_set_ranges.
6224 (s390_optimize_register_info): Likewise.
6225 (s390_hard_regno_rename_ok): Use new macros.
6226 (s390_hard_regno_scratch_ok): Likewise.
6227 (s390_emit_epilogue): Likewise.
6228 (s390_can_use_return_insn): Likewise.
6229 (s390_optimize_prologue): Likewise.
6230 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6232 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6235 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6237 (ix86_option_override_internal): Disable TARGET_STV even for
6238 -m{incoming,preferred}-stack-boundary=3.
6240 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6242 * config.gcc: Mark deprecated rtems targets as obsolete.
6244 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6246 PR rtl-optimization/64682
6247 PR rtl-optimization/69567
6248 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6249 before I2 only if the register is both used and set in I2.
6251 2016-02-04 DJ Delorie <dj@redhat.com>
6253 * config/msp430/msp430.c (msp430_start_function): Add function type.
6255 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6258 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6260 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6262 PR rtl-optimization/69577
6264 2015-10-29 Richard Henderson <rth@redhat.com>
6268 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6269 sse check to the exact conditions of PR 67609.
6271 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6274 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6275 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6276 not allowed into the traditional Altivec registers.
6277 (movtd_64bit_nodm): Likewise.
6278 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6280 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6282 * config/aarch64/cortex-a57-fma-steering.c
6283 (aarch64_register_fma_steering): Remove "static" from arguments
6286 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6289 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6292 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6294 * doc/invoke.texi: Delete -mno-fma4.
6296 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6298 PR rtl-optimization/69577
6299 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6300 (find_subregs_of_mode): Update accordingly. Iterate over partial
6303 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6305 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6306 * config/arm/arm.c (neon_reinterpret): Remove.
6307 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6308 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6309 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6310 vreinterpretti): Remove.
6311 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6312 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6313 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6314 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6315 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6316 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6317 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6318 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6319 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6320 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6321 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6322 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6323 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6324 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6325 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6326 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6327 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6328 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6329 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6330 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6331 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6332 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6333 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6334 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6335 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6336 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6337 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6338 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6339 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6340 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6341 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6342 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6343 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6344 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6345 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6346 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6347 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6348 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6349 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6350 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6351 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6352 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6353 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6354 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6355 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6356 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6357 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6358 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6359 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6360 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6361 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6362 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6363 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6364 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6365 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6366 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6367 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6368 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6369 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6370 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6371 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6372 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6373 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6374 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6375 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6376 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6377 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6378 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6379 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6380 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6381 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6382 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6383 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6384 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6385 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6386 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6387 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6388 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6389 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6390 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6391 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6392 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6393 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6394 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6395 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6396 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6397 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6398 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6399 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6400 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6401 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6402 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6403 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6404 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6405 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6406 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6407 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6408 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6409 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6410 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6411 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6412 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6413 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6415 2016-02-04 Martin Liska <mliska@suse.cz>
6418 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6419 that are gimple_store_p.
6420 (maybe_instrument_call): Likewise.
6422 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6424 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6425 register scaling out of memory reference and comment why.
6427 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6431 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6432 folding the source of a SET.
6434 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6438 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6439 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6441 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6445 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6448 2016-02-04 Christian Bruel <christian.bruel@st.com>
6450 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6451 * config/arm/arm.c (arm_set_current_function): Likewise.
6453 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6454 Ilya Enkovich <enkovich.gnu@gmail.com>
6455 H.J. Lu <hongjiu.lu@intel.com>
6458 * config/i386/i386.c (convert_scalars_to_vector): Remove
6459 stack alignment fixes.
6460 (ix86_option_override_internal): Disable TARGET_STV if stack
6461 might not be aligned enough.
6462 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6464 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6466 * gcc/config/i386/x86-tune.def: Disable default prefetching
6469 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6470 Vladimir Makarov <vmakarov@redhat.com>
6473 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6474 in validating fused toc addresses.
6476 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6479 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6480 range->m_caret fields if range->m_show_caret_p is false.
6483 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6484 Force oldval into register if it does not satisfy reg_or_short_operand
6485 predicate. Fix up formatting.
6487 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6488 Alexandre Oliva <aoliva@redhat.com>
6491 * lra-constraints.c (simplify_operand_subreg): Check additionally
6492 address validity after potential reloading.
6493 (process_address_1): Check insns validity. In case of failure do
6496 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6499 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6502 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6504 * wide-int.cc (canonize_uhwi): New function.
6505 (wi::divmod_internal): Use it.
6507 2016-02-02 James Norris <jnorris@codesourcery.com
6509 * gimplify.c (omp_notice_variable): Add usage check.
6511 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6513 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6514 like LE, GE, LT, GT when emitting relational operator.
6516 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6518 * ira-costs.c (find_costs_and_classes): Add extra argument.
6519 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6520 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6521 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6522 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6523 Add best_class parameter, and return it if not ALL_REGS.
6524 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6526 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6529 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6531 * config/aarch64/aarch64.c
6532 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6533 (aarch64_ira_change_pseudo_allocno_class): New function.
6535 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6538 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6540 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6542 * config/avr/avr.c (avr_option_override): Set
6543 PARAM_ALLOW_STORE_DATA_RACES to 1.
6545 2016-02-02 Richard Biener <rguenther@suse.de>
6547 PR tree-optimization/69595
6548 * match.pd: Add range test simplifications to true/false.
6550 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6552 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6553 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6556 2016-02-02 Richard Biener <rguenther@suse.de>
6558 PR tree-optimization/69606
6559 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6560 info on the result before moving a stmt.
6562 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6565 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6566 branch with vector comparison.
6567 * config/i386/sse.md (VI48_AVX): New mode iterator.
6568 (define_expand "cbranch<mode>4): Add support for conditional branch
6569 with vector comparison.
6570 * tree-vect-loop.c (optimize_mask_stores): New function.
6571 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6572 has_mask_store field of vect_info.
6573 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6574 vectorized loops having masked stores after vec_info destroy.
6575 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6576 correspondent macros.
6577 (optimize_mask_stores): Add prototype.
6579 2016-02-02 Alan Modra <amodra@gmail.com>
6582 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6585 2016-02-02 Alan Modra <amodra@gmail.com>
6588 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6589 whenever toc_label_name used.
6590 (rs6000_file_start): Don't set up toc section here,
6591 (rs6000_output_function_epilogue): do so here instead,
6592 (rs6000_xcoff_file_start): and here.
6593 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6594 (load_toc_aix_di): Likewise.
6596 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6598 PR rtl-optimization/69592
6599 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6600 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6601 (num_sign_bit_copies_binary_arith_p): New inline function.
6602 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6604 2016-02-01 Jeff Law <law@redhat.com>
6606 PR tree-optimization/69580
6607 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6608 * tree-ssa-threadbackward.c
6609 (fsm_find_control_statement_thread_paths): Do not try to walk
6610 through large PHI nodes.
6612 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6614 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6615 when count is incremented above limit, don't analyze further
6618 * omp-low.c (oacc_parse_default_dims): Avoid
6619 -Wsign-compare warning, make sure value fits into int
6620 rather than just unsigned int.
6622 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6624 PR tree-optimization/67921
6625 * fold-const.c (split_tree): New parameters. Convert pointer
6626 type variable part to proper type before negating.
6627 (fold_binary_loc): Pass new arguments to split_tree.
6629 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6631 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6632 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6633 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6634 * doc/tm.texti: Rebuilt.
6635 * doc/invoke.texi (fopenacc-dim): Document.
6636 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6637 (append_compiler_options): Likewise.
6638 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6639 (oacc_parse_default_dims): New.
6640 (oacc_validate_dims): Add USED arg. Select non-unity default when
6642 (oacc_loop_fixed_partitions): Return mask of used partitions.
6643 (oacc_loop_auto_partitions): Emit dump info.
6644 (oacc_loop_partition): Return mask of used partitions.
6645 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6646 loop partitioning and validation calls.
6648 2016-02-01 Richard Biener <rguenther@suse.de>
6651 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6653 2016-02-01 Richard Biener <rguenther@suse.de>
6655 PR tree-optimization/69574
6656 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6657 of asserting return chrec_dont_know.
6659 2016-02-01 Martin Liska <mliska@suse.cz>
6661 * mem-stats-traits.h: Add copyright header.
6662 * mem-stats.h: Likewise.
6664 2016-02-01 Richard Biener <rguenther@suse.de>
6666 PR tree-optimization/69579
6667 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6668 Do not propagate through abnormal PHI results.
6670 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6672 * postreload.c (reload_cse_simplify): Remove dead code.
6674 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6676 PR rtl-optimization/69570
6677 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6678 if there is more than one set, not if there is a single set.
6680 2016-02-01 Richard Henderson <rth@redhat.com>
6683 * combine.c (make_compound_operation): When looking through a
6684 subreg, make sure to re-extend to the width of the outer mode.
6686 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6688 PR tree-optimization/69546
6689 * wide-int.cc (wi::divmod_internal): For unsigned division
6690 where both operands fit into uhwi, if o1 is 1 and o0 has
6691 msb set, if divident_prec is larger than bits per hwi,
6692 clear another quotient word and return 2 instead of 1.
6693 Similarly for remainder with msb in HWI set, if dividend_prec
6694 is larger than bits per hwi.
6696 2016-01-29 Martin Jambor <mjambor@suse.cz>
6698 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6699 Use short lowercase names.
6700 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
6701 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6702 acq_rel one. Protect warning agains segfaults if
6703 get_memory_order_name returns NULL.
6704 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6705 with release semantics. Do not warn if get_memory_order already did.
6706 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6707 semantics. Fix check for relaxed or acquire semantics. Do not warn
6708 if get_memory_order already did.
6710 2016-01-29 Sebastian Pop <s.pop@samsung.com>
6712 * doc/install.texi: Document that isl-0.16 is supported.
6714 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
6717 * config/i386/constraints.md (Bm): Describe as special memory
6719 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6720 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6721 * genpreds.c (struct constraint_data): Add is_special_memory.
6722 (have_special_memory_constraints, special_memory_start): New
6724 (special_memory_end): Ditto.
6725 (add_constraint): Add new arg is_special_memory. Add code to
6726 process its true value. Update have_special_memory_constraints.
6727 (process_define_constraint): Pass the new arg.
6728 (process_define_register_constraint): Ditto.
6729 (choose_enum_order): Process special memory.
6730 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6731 function insn_extra_special_memory_constraint.
6732 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6733 * gensupport.c (process_rtx): Process
6734 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6735 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6736 * ira-lives.c (single_reg_class): Use
6737 insn_extra_special_memory_constraint.
6738 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6739 * lra-constraints.c (process_alt_operands): Ditto.
6740 (curr_insn_transform): Use insn_extra_special_memory_constraint.
6741 * recog.c (asm_operand_ok, preprocess_constraints): Process
6743 * reload.c (find_reloads): Ditto.
6744 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6745 * stmt.c (parse_input_constraint): Use
6746 insn_extra_special_memory_constraint.
6748 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6751 * lra-splill.c (lra_final_code_change): Revert r229087 by
6752 removing all sub-registers.
6754 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
6757 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6759 2016-01-29 Jakub Jelinek <jakub@redhat.com>
6762 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6763 SSE1, copy target into the temporary reg first before recursing
6766 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6768 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6771 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6773 * ginclude/stdarg.h: Test __cplusplus instead of
6774 __GXX_EXPERIMENTAL_CXX0X__.
6776 2016-01-29 Richard Biener <rguenther@suse.de>
6778 PR tree-optimization/69547
6779 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6780 Do not mark clobbers necessary.
6781 (mark_all_reaching_defs_necessary_1): Likewise.
6783 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6785 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6786 declaration name with %qs and print it in both error messages.
6787 Also fix indentation.
6789 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6792 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6793 trailing blank line from error message.
6795 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6798 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6801 2016-01-29 Richard Biener <rguenther@suse.de>
6804 * match.pd: Allow all integral types when simplifying a
6805 widening or sign-changing conversion.
6807 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6809 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6810 back to setting codegen_error to fail codegen.
6812 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
6815 * config/i386/constraints.md (C): Only accept constant zero operand.
6816 (BC): New constraint.
6817 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6818 instead of C constraint.
6819 * doc/md.texi (Machine Constraints): Update description
6822 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
6825 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6827 2016-01-28 Jakub Jelinek <jakub@redhat.com>
6830 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6833 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
6835 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6836 branches if using guessed profile.
6838 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
6840 * graphite-optimize-isl.c (optimize_isl): Fix dump.
6842 2016-01-28 Richard Henderson <rth@redhat.com>
6845 * config/aarch64/aarch64-modes.def (CC_Cmode): New
6846 * config/aarch64/aarch64-protos.h: Update.
6847 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6848 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6849 (aarch64_get_condition_code_1): Handle CC_Cmode.
6850 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6851 (*add<mode>3_compareC_cconly_imm): New.
6852 (*add<mode>3_compareC_cconly): New.
6853 (*add<mode>3_compareC_imm): New.
6854 (add<mode>3_compareC): New.
6855 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6856 to be first. Use aarch64_carry_operation.
6857 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6858 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6859 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6860 (subti3): Use subdi3_compare1.
6861 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6862 (sub<mode>3_compare1): New.
6863 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6864 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6865 (*subsi3_carryin_uxtw): Likewise.
6866 (*ngc<mode>, *ngcsi_uxtw): Likewise.
6867 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6868 * config/aarch64/iterators.md (DWI): New.
6869 * config/aarch64/predicates.md (aarch64_carry_operation): New.
6870 (aarch64_borrow_operation): New.
6872 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6874 * graphite-optimize-isl.c (optimize_isl): Print a different debug
6875 message when isl does not return a valid schedule.
6877 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6879 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6880 Remove comments from class declarations: they are already in the code
6883 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6885 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6887 (ternary_op_to_tree): Same.
6888 (unary_op_to_tree): Same.
6889 (nary_op_to_tree): Same.
6890 (gcc_expression_from_isl_expr_op): Same.
6891 (gcc_expression_from_isl_expression): Same.
6892 (graphite_create_new_loop): Same.
6893 (graphite_create_new_loop_guard): Same.
6894 (build_iv_mapping): Same.
6895 (graphite_create_new_guard): Same.
6896 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6897 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6899 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6901 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6902 instead of setting codegen_error to fail codegen.
6904 2016-01-28 Jason Merrill <jason@redhat.com>
6906 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6908 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6910 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6911 Remove CONST_INT_P check in CCMP cost calculation.
6913 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6915 * config/aarch64/aarch64.c (generic_vector_cost):
6916 Set vec_permute_cost.
6917 (cortexa57_vector_cost): Likewise.
6918 (exynosm1_vector_cost): Likewise.
6919 (xgene1_vector_cost): Likewise.
6920 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6921 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6922 Add vec_permute_cost entry.
6924 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6926 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6928 (add<mode>3_compare0): Likewise.
6929 (addsi3_compare0_uxtw): Likewise.
6930 (add<mode>3nr_compare0): Likewise.
6931 (compare_neg<mode>): Likewise.
6932 (<optab><mode>3): Likewise.
6934 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6936 * tree-vect-stmts.c (vectorizable_comparison): Add
6937 NULL check for vectype.
6939 2016-01-28 Richard Biener <rguenther@suse.de>
6941 PR tree-optimization/69466
6942 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6943 Account for PHIs we couldn't duplicate.
6945 2016-01-28 Martin Liska <mliska@suse.cz>
6948 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6949 instead of ENABLE_VALGRIND_CHECKING.
6951 2016-01-27 Richard Henderson <rth@redhat.com>
6954 * lra-remat.c (subreg_regs): New.
6955 (dump_candidates_and_remat_bb_data): Dump it.
6956 (operand_to_remat): Reject if operand in subreg_regs.
6957 (set_bb_regs): Collect subreg_regs.
6958 (lra_remat): Init and free subreg_regs. Compute
6959 calculate_local_reg_remat_bb_data before create_cands.
6961 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6964 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6965 change stack_alignment_needed for __tls_get_addr call.
6967 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6969 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6971 2016-01-27 Jeff Law <law@redhat.com>
6973 PR tree-optimization/68398
6974 PR tree-optimization/69196
6975 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6976 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6977 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6978 Only count PHIs in the last block in the path. The others will
6979 const/copy propagate away. Add heuristic to allow more irreducible
6980 subloops to be created when it is likely profitable to do so.
6982 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6983 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6984 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6986 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6989 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6990 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6991 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6992 * tree-streamer-in.c: Include asan.h.
6993 (streamer_get_builtin_tree): For builtins in sanitizer
6994 range call initialize_sanitizer_builtins and retry.
6996 2016-01-27 Ian Lance Taylor <iant@google.com>
6998 * common.opt (fkeep-gc-roots-live): New undocumented option.
6999 * tree-ssa-loop-ivopts.c (add_candidate_1): If
7000 -fkeep-gc-roots-live, skip pointers.
7001 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
7004 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
7007 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
7008 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
7010 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
7013 * configure.ac: NetBSD provides SSP in its C library.
7014 * configure: Updated.
7016 2016-01-27 Richard Biener <rguenther@suse.de>
7018 PR tree-optimization/69166
7019 * tree-vect-loop.c (vect_is_simple_reduction): Always check
7020 reduction code for commutativity / associativity.
7022 2016-01-27 Martin Jambor <mjambor@suse.cz>
7024 PR tree-optimization/69355
7025 * tree-sra.c (analyze_access_subtree): Correct hole detection when
7026 total_scalarization fails.
7028 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
7030 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
7033 2016-01-27 Christian Bruel <christian.bruel@st.com>
7036 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
7037 Move arm_reset_previous_fndecl and set_target_option_current_node in
7038 the conditional part. Call save_restore_target_globals.
7039 * config/arm/arm.c (arm_set_current_function):
7040 Refactor to better support #pragma target and attribute mix.
7041 Call save_restore_target_globals.
7042 * config/arm/arm-protos.h (save_restore_target_globals): New function.
7044 2016-01-27 Martin Liska <mliska@suse.cz>
7046 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
7047 reference for an HSA kernel and its host function.
7049 2016-01-27 Jakub Jelinek <jakub@redhat.com>
7051 PR tree-optimization/69399
7052 * wide-int.h (wi::lrshift): For larger precisions, only
7053 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7055 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
7057 * config/arc/predicates.md (proper_comparison_operator): Reject
7058 constant-constant comparison.
7060 2016-01-26 Tom de Vries <tom@codesourcery.com>
7062 PR tree-optimization/69110
7063 * tree-data-ref.c (initialize_data_dependence_relation): Handle
7064 DR_NUM_DIMENSIONS == 0.
7066 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
7067 Sebastian Pop <s.pop@samsung.com>
7069 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7070 isl_ast_op_cond and isl_ast_op_select.
7071 (gcc_expression_from_isl_expr_op): Same.
7073 2016-01-26 Jason Merrill <jason@redhat.com>
7076 * tree.c (recompute_constructor_flags): Split out from
7078 (verify_constructor_flags): New.
7079 * tree.h: Declare them.
7081 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
7083 PR rtl-optimization/69217
7084 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7085 are no TYPE_FIELDS set for the record type.
7087 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7090 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7091 toc_label_name unconditionally.
7092 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7093 SYMBOL_REF string. Use toc_label_name instead of constructing
7095 (rs6000_elf_declare_function_name): Use toc_label_name instead of
7096 constructing LCTOC1.
7098 2016-01-26 Martin Sebor <msebor@redhat.com>
7101 * doc/extend.texi (Common Type Attributes): Move text that talks about
7102 attribute packed from attribute aligned to the section discussing
7103 the former attribute for clarity.
7105 2016-01-26 Richard Henderson <rth@redhat.com>
7108 * trans-mem.c (tm_region_init): Mark entry block as visited.
7110 2016-01-26 David Malcolm <dmalcolm@redhat.com>
7113 * diagnostic-show-locus.c (layout::print_source_line): Replace
7114 call to pp_newline with call to layout::print_newline.
7115 (layout::print_annotation_line): Likewise.
7116 (layout::move_to_column): Likewise.
7117 (layout::print_any_fixits): After printing any fixits, print a
7118 trailing newline, if necessary.
7119 (layout::print_newline): New method, resetting any colorization
7121 (diagnostic_show_locus): Move the pp_newline to before the
7122 early bailout. Remove dummy block enclosing the layout instance.
7123 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7124 of pp_newline_and_flush with pp_flush.
7125 (diagnostic_append_note): Delete use of pp_newline.
7126 (diagnostic_append_note_at_rich_loc): Delete.
7127 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7128 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7129 when newline characters are added to the buffer.
7131 2016-01-26 Michael Matz <matz@suse.de>
7133 * configure.ac (ac_cv_std_swap_in_utility): New test.
7134 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7135 * configure: Regenerate.
7136 * config.in: Regenerate.
7138 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
7140 * config/arc/arc.md (cstoresi4): Force operand into register.
7141 (arcset<code>): Fix predicate.
7142 (arcsetltu): Likewise.
7143 (arcsetgeu): Likewise.
7144 (arcsethi): Likewise.
7145 (arcsetls): Likewise.
7147 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7149 PR tree-optimization/69483
7150 * gimple-fold.c (canonicalize_constructor_val): Return NULL
7151 if base has error_mark_node type.
7153 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
7156 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7157 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7159 (vget_lane_f16): Handle big-endian.
7160 (vgetq_lane_f16): Likewise.
7161 (vset_lane_f16): Likewise.
7162 (vsetq_lane_f16): Likewise.
7163 * config/arm/iterators.md (VQXMOV): Add V8HF.
7164 (VDQ): Add V4HF and V8HF.
7165 (V_reg): Handle V4HF and V8HF.
7166 (Is_float_mode): Likewise.
7167 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7168 neon_vdup_nv8hf): New patterns.
7169 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7170 Use VD_LANE iterator.
7171 (neon_vld1_dup<mode>): Use VQ2 iterator.
7173 2016-01-26 Nathan Sidwell <nathan@acm.org>
7175 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7176 (set_oacc_fn_attrib): Add IS_KERNEL arg.
7177 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7178 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7179 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7180 (oacc_validate_dims): Add LEVEL arg, don't return level.
7181 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7183 (execute_oacc_device_lower): Adjust, add more dump output.
7184 * tree-ssa-loop.c (gate_oacc_kernels): Use
7185 oacc_fn_attrib_kernels_p.
7186 * tree-parloops.c (create_parallel_loop): Adjust
7187 set_oacc_fn_attrib call.
7189 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7192 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7193 (append_compiler_options): Handle -fcilkplus.
7194 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7196 2016-01-26 Nick Clifton <nickc@redhat.com>
7199 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7200 been marked as DECL_ONE_ONLY but we do not the means to make it
7201 so, then do not allow it to bind locally.
7203 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7206 * opts.h (parse_sanitizer_options): New prototype.
7207 * opts.c (sanitizer_opts): New array.
7208 (parse_sanitizer_options): New function.
7209 (common_handle_option): Use parse_sanitizer_options.
7211 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7214 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7215 alignment adjustment to ...
7216 (ix86_update_stack_boundary): Here. Don't over-align stack for
7218 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7219 if __tls_get_addr is called.
7221 2016-01-26 Christian Bruel <christian.bruel@st.com>
7223 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7225 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7227 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7229 2016-01-26 Richard Biener <rguenther@suse.de>
7232 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7234 2016-01-26 Richard Biener <rguenther@suse.de>
7236 PR tree-optimization/69452
7237 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7238 (move_computations_dom_walker::before_dom_children): Rename
7240 (move_computations_worker): This.
7241 (move_computations): Perform an RPO rather than a DOM walk.
7243 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7246 * combine.c (combine_instructions): For REG_EQUAL note with
7247 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7248 to the underlying register.
7249 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7250 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7252 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7255 * config/aarch64/aarch64-builtins.c
7256 (aarch64_init_simd_builtin_types): Do not set structural
7257 equality to __Poly{8,16,64,128}_t types.
7259 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7261 PR tree-optimization/69400
7262 * wide-int.cc (wi_pack): Take the precision as argument and
7263 perform canonicalization here rather than in the callers.
7264 Use the main loop to handle all full-width HWIs. Add a
7265 zero HWI if in_len isn't a full result.
7266 (wi::divmod_internal): Update accordingly.
7267 (wi::mul_internal): Likewise. Simplify.
7269 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7270 Sebastian Pop <s.pop@samsung.com>
7272 * graphite-poly.c (apply_poly_transforms): Simplify.
7273 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7274 (print_isl_map): Same.
7275 (print_isl_union_map): Same.
7276 (print_isl_schedule): New.
7277 (debug_isl_schedule): New.
7278 * graphite-dependences.c (scop_get_reads): Do not call
7279 isl_union_map_add_map that is undocumented isl functionality.
7280 (scop_get_must_writes): Same.
7281 (scop_get_may_writes): Same.
7282 (scop_get_original_schedule): Remove.
7283 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7284 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7285 (compute_deps): Remove.
7286 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7287 (debug_schedule_ast): New.
7288 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7289 set_separate_option.
7290 (graphite_regenerate_ast_isl): Add dump.
7291 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7292 from scop->transformed_schedule.
7293 (graphite_regenerate_ast_isl): Add more dump.
7294 * graphite-optimize-isl.c (optimize_isl): Set
7295 scop->transformed_schedule. Check whether schedules are equal.
7296 (apply_poly_transforms): Move here.
7297 * graphite-poly.c (apply_poly_transforms): ... from here.
7298 (free_poly_bb): Static.
7299 (free_scop): Static.
7300 (pbb_number_of_iterations_at_time): Remove.
7301 (print_isl_ast): New.
7302 (debug_isl_ast): New.
7303 (debug_scop_pbb): New.
7304 * graphite-scop-detection.c (print_edge): Move.
7306 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7307 (build_scop_scattering): Remove.
7308 (create_pw_aff_from_tree): Assert instead of bailing out.
7309 (add_condition_to_pbb): Remove unused code, do not fail.
7310 (add_conditions_to_domain): Same.
7311 (add_conditions_to_constraints): Remove.
7312 (build_scop_context): New.
7313 (add_iter_domain_dimension): New.
7314 (build_iteration_domains): Initialize pbb->iterators.
7315 Call add_conditions_to_domain.
7318 (index_outermost_in_loop): New.
7319 (index_pbb_in_loop): New.
7320 (outermost_pbb_in): New.
7321 (add_in_sequence): New.
7322 (add_outer_projection): New.
7323 (outer_projection_mupa): New.
7324 (add_loop_schedule): New.
7325 (build_schedule_pbb): New.
7326 (build_schedule_loop): New.
7327 (embed_in_surrounding_loops): New.
7328 (build_schedule_loop_nest): New.
7329 (build_original_schedule): New.
7330 (build_poly_scop): Call build_original_schedule.
7331 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7332 (free_poly_dr): Remove.
7333 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7334 (free_poly_bb): Remove.
7335 (debug_loop_vec): Remove.
7336 (print_isl_ast): Declare.
7337 (debug_isl_ast): Declare.
7338 (scop_do_interchange): Remove.
7339 (scop_do_strip_mine): Remove.
7340 (scop_do_block): Remove.
7341 (flatten_all_loops): Remove.
7342 (optimize_isl): Remove.
7343 (pbb_number_of_iterations_at_time): Remove.
7344 (debug_scop_pbb): Declare.
7345 (print_schedule_ast): Declare.
7346 (debug_schedule_ast): Declare.
7347 (struct scop): Remove schedule. Add original_schedule,
7348 transformed_schedule.
7349 (free_gimple_poly_bb): Remove.
7350 (print_generated_program): Remove.
7351 (debug_generated_program): Remove.
7352 (unify_scattering_dimensions): Remove.
7353 * sese.c (print_edge): ... here.
7354 (print_sese): ... here.
7355 (debug_edge): ... here.
7356 (debug_sese): ... here.
7357 * sese.h (print_edge): Declare.
7358 (print_sese): Declare.
7359 (dump_edge): Declare.
7360 (dump_sese): Declare.
7362 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7363 Sebastian Pop <s.pop@samsung.com>
7365 * Makefile.in: Set ISLVER in site.exp.
7367 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7369 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7370 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7371 through DECL_VALUE_EXPR for expansion.
7373 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7375 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7376 the frame info after reload completed.
7378 2016-01-25 Jeff Law <law@redhat.com>
7380 PR tree-optimization/69196
7381 PR tree-optimization/68398
7382 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7383 tree-ssa-threadupdate.c.
7384 (determine_bb_domination_status): Prototype
7385 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7386 (determine_bb_domination_status): No longer static.
7387 (valid_jump_thread_path): Remove code to detect characteristics
7388 of the jump thread path not associated with correctness.
7389 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7390 Correct test for thread path length. Count PHIs for real operands as
7391 statements that need to be copied. Do not count ASSERT_EXPRs.
7392 Look at all the blocks in the thread path. Compute and selectively
7393 filter thread paths based on threading through the latch, threading
7394 a multiway branch or crossing a multiway branch.
7396 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7398 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7399 decl with __attribute__ ((unused)) annotation.
7401 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7404 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7405 of operands is compatible with a statement vectype.
7407 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7409 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7410 improve wording for mixed storage order support.
7412 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7414 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7415 (vcvt_u64_f64): Likewise.
7416 (vcvta_s64_f64): Likewise.
7417 (vcvta_u64_f64): Likewise.
7418 (vcvtm_s64_f64): Likewise.
7419 (vcvtm_u64_f64): Likewise.
7420 (vcvtn_s64_f64): Likewise.
7421 (vcvtn_u64_f64): Likewise.
7422 (vcvtp_s64_f64): Likewise.
7423 (vcvtp_u64_f64): Likewise.
7425 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7427 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7428 (arc_init): Check validity mll64 option.
7429 (arc_save_restore): Use double load/store instruction.
7430 (arc_expand_movmem): Likewise.
7431 (arc_split_move): Don't split if we have double load/store
7432 instructions. Returns a boolean.
7433 (arc_process_double_reg_moves): Change function to return boolean
7434 instead of a sequence of instructions.
7435 (arc_dwarf_register_span): New function.
7436 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7437 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7438 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7439 (*movdf_insn): Likewise.
7440 * config/arc/arc.opt (mll64): New option.
7441 * config/arc/predicates.md (even_register_operand): New predicate.
7442 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7444 2016-01-25 Richard Biener <rguenther@suse.de>
7447 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7448 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7450 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7452 2016-01-25 Richard Biener <rguenther@suse.de>
7454 PR tree-optimization/69376
7455 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7457 (VN_INFO_ANTI_RANGE_P): New inline.
7458 (VN_INFO_RANGE_TYPE): Likewise.
7459 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7460 SSA_NAME_ANTI_RANGE_P.
7461 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7462 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7463 Properly query VN_INFO_RANGE_TYPE.
7465 2016-01-25 Nick Clifton <nickc@redhat.com>
7468 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7470 2016-01-23 Tom de Vries <tom@codesourcery.com>
7472 PR tree-optimization/69426
7473 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7476 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7478 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7479 "the the" with "the" in the comments.
7480 * ipa-devirt.c (build_type_inheritance_graph,
7481 update_type_inheritance_graph): Likewise.
7482 * tree.c (build_function_type_list_1): Likewise.
7483 * cfgloopmanip.c (scale_loop_profile): Likewise.
7484 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7485 * gimple-ssa-split-paths.c
7486 (find_block_to_duplicate_for_splitting_paths): Likewise.
7487 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7488 * expr.c (convert_move): Likewise.
7489 * var-tracking.c (vt_stack_adjustments): Likewise.
7490 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7491 * tree-vrp.c (test_for_singularity): Likewise.
7493 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7494 directly instead of building a temporary tree.
7497 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7498 remove <algorithm> include.
7500 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7503 * config/i386/i386.c: Include dojump.h.
7504 (expand_small_movmem_or_setmem,
7505 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7507 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7508 if dynamic_check != -1.
7510 2016-01-21 Jeff Law <law@redhat.com>
7513 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7514 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7515 into dominated_by_p.
7516 (cprop_into_successor_phis): Avoid unnecessary tests.
7518 2016-01-22 Richard Henderson <rth@redhat.com>
7521 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7522 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7524 2016-01-22 Michael Matz <matz@suse.de>
7526 * system.h (string, algorithm): Include only conditionally.
7527 (new): Include always under C++.
7528 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7529 * final.c (toplevel): Ditto.
7530 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7531 * genconditions.c (write_header): Make gencondmd.c define
7533 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7535 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7536 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7538 2016-01-22 Christian Bruel <christian.bruel@st.com>
7541 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7543 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7546 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7547 define_insn_and_split. Ensure operands[1] and operands[0] do not
7548 get assigned the same register.
7550 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7552 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7554 2016-01-22 Christian Bruel <christian.bruel@st.com>
7556 * config/arm/arm-c.c (arm_pragma_target_parse):
7557 Remove warn_builtin_macro_redefined overwrite.
7559 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7561 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7562 flag_non_call_exceptions compatibility.
7564 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7567 * dwarf2out.c (add_child_die_after): New function.
7568 (dwarf_qual_info_t): New type.
7569 (dwarf_qual_info): New variable.
7570 (qualified_die_p): New function.
7571 (modified_type_die): For -fdebug-types-section, ensure
7572 canonical order of qualifiers. Put qualified DIEs adjacent
7573 to the corresponding non-qualified type DIE and search there
7574 for existing qualified DIEs.
7576 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7578 * doc/extend.texi (scalar_storage_order type attribute): Document
7579 restriction on type punning and aliasing, and remove future tense.
7581 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7584 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7587 2016-01-21 Jeff Law <law@redhat.com>
7590 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7591 useless call to record_temporary_equivalences.
7592 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7593 allocate 10 slots in the bb_path vector and let it grow as needed.
7594 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7597 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7599 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7601 * configure: Regenerate.
7603 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7605 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7606 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7608 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7611 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7612 drop EXPAND_INITIALIZER.
7613 * rtl.h (contains_symbolic_reference_p): Declare.
7614 * rtlanal.c (contains_symbolic_reference_p): New function.
7615 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7616 a subtraction into a NOT if symbolic constants are involved.
7618 2016-01-21 Anton Blanchard <anton@samba.org>
7619 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7622 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7624 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7627 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7629 * config/microblaze/microblaze.c
7630 (get_branch_target): New.
7631 (insert_wic_for_ilb_runout): New.
7633 (microblaze_machine_dependent_reorg): New.
7634 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7635 * config/microblaze/microblaze.md
7636 (UNSPEC_IPREFETCH): Define.
7637 (iprefetch): New pattern
7638 * config/microblaze/microblaze.opt
7639 (mxl-prefetch): New flag.
7641 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7643 * config/microblaze/microblaze.h
7644 (FIXED_REGISTERS): Update in macro.
7645 (CALL_USED_REGISTERS): Update in macro.
7647 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7649 PR rtl-optimization/68920
7650 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7653 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7655 PR rtl-optimization/68990
7656 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7657 pseudo instead of inheritance ones.
7659 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7660 Nick Clifton <nickc@redhat.com>
7664 * config/mips/mips.c (mips_compute_frame_info): Initialise
7665 args_size and hard_frame_pointer_offset fields of the frame
7666 structure before calling mips_global_pointer.
7668 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7670 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7672 * configure: Regenerate.
7674 2016-01-21 Richard Biener <rguenther@suse.de>
7676 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7678 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7680 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7681 to actually emit the .size directive.
7683 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7684 Jakub Jelinek <jakub@redhat.com>
7688 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7689 args array size by one to avoid buffer overflow.
7691 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7693 * config/s390/s390.md (pool_section_start): Use switch_to_section
7694 to select proper read-only data section instead of hardcoding
7696 (pool_section_end): Use switch_to_section to match the above.
7698 2016-01-21 Richard Biener <rguenther@suse.de>
7700 PR tree-optimization/69378
7701 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7702 (set_ssa_val_to): Use it for dominance checks taking into
7703 account not executable edges.
7705 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7708 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7709 for bitsize instead of GET_MODE_PRECISION (mode).
7711 2016-01-20 Martin Sebor <msebor@redhat.com>
7714 * extend.texi (__sync Builtins): Clarify the semantics of
7715 __sync_fetch_and_OP built-ins on pointers.
7716 (__atomic Builtins): Same.
7718 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7719 Sebastian Pop <s.pop@samsung.com>
7721 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7722 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7723 (is_valid_rename): Same.
7724 (translate_isl_ast_to_gimple::get_rename): Same.
7725 (translate_isl_ast_to_gimple::rename_all_uses): Same.
7726 (translate_isl_ast_to_gimple::rename_uses): Same.
7727 (get_new_name): Check for close_phi nodes.
7728 (copy_loop_phi_args): Use phi_node_kind.
7729 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7730 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7732 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7733 Sebastian Pop <s.pop@samsung.com>
7735 Revert commit r229783.
7736 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7737 Remove use of parameter_rename_map.
7739 (copy_internal_parameters): Remove.
7740 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7741 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7742 (free_sese_info): Do not free parameter_rename_map.
7743 (set_rename): Do not use parameter_rename_map.
7744 (rename_uses): Update call to set_rename.
7745 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7746 * sese.h (parameter_rename_map_t): Remove.
7747 (struct sese_info_t): Remove field parameter_rename_map.
7749 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7750 Sebastian Pop <s.pop@samsung.com>
7752 * graphite-isl-ast-to-gimple.c: Fix comment.
7753 * graphite-scop-detection.c (defined_in_loop_p): New.
7754 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7755 names defined in loop.
7757 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7758 Sebastian Pop <s.pop@samsung.com>
7760 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7761 Discard unstructured if-then-else regions.
7763 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7764 Sebastian Pop <s.pop@samsung.com>
7766 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7767 (cleanup_loop_iter_dom): Remove.
7768 (build_loop_iteration_domains): Remove.
7769 (build_scop_context): Remove.
7770 (build_scop_iteration_domain): Remove.
7771 (add_loop_constraints): New.
7772 (build_iteration_domains): New.
7773 (build_poly_scop): Call build_iteration_domains.
7775 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7776 Sebastian Pop <s.pop@samsung.com>
7778 * graphite-scop-detection.c
7779 (scop_detection::harmful_loop_in_region): Free dom and loops.
7780 (scop_detection::loop_body_is_valid_scop): Free bbs.
7782 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7783 Sebastian Pop <s.pop@samsung.com>
7785 * graphite-scop-detection.c (record_loop_in_sese): New.
7786 (gather_bbs::before_dom_children): Call record_loop_in_sese.
7787 (build_scops): Remove call to build_sese_loop_nests.
7788 * sese.c (sese_record_loop): Remove.
7789 (build_sese_loop_nests): Remove.
7790 (new_sese_info): Remove region->loops.
7791 (free_sese_info): Same.
7792 * sese.h (sese_contains_loop): Same.
7793 (build_sese_loop_nests): Remove.
7794 (sese_contains_loop): Remove.
7796 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7797 Sebastian Pop <s.pop@samsung.com>
7799 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7800 loop_is_valid_in_scop.
7801 (scop_detection::harmful_stmt_in_region): Renamed
7802 harmful_loop_in_region.
7803 Call loop_is_valid_in_scop.
7805 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7806 Sebastian Pop <s.pop@samsung.com>
7808 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7811 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7812 Sebastian Pop <s.pop@samsung.com>
7814 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7815 * graphite.h (struct poly_bb): Remove field is_reduction.
7816 (PBB_IS_REDUCTION): Remove.
7818 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7819 Sebastian Pop <s.pop@samsung.com>
7821 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7822 (add_pdr_constraints): Same.
7823 (scop_get_reads): Same.
7824 (scop_get_must_writes): Same.
7825 (scop_get_may_writes): Same.
7826 (scop_get_original_schedule): Same.
7827 (extend_schedule): Same.
7828 (apply_schedule_on_deps): Same.
7829 (carries_deps): Same.
7830 (compute_deps): Same.
7831 (scop_get_dependences): Same.
7832 * graphite-isl-ast-to-gimple.c
7833 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7834 * graphite-optimize-isl.c (get_schedule_for_band): Same.
7835 (get_schedule_for_band_list): Same.
7836 (get_schedule_map): Same.
7837 (apply_schedule_map_to_scop): Same.
7838 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7839 (build_loop_iteration_domains): Same.
7840 (add_condition_to_pbb): Same.
7841 (add_param_constraints): Same.
7842 (pdr_add_memory_accesses): Same.
7843 (pdr_add_data_dimensions): Same.
7845 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7847 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7850 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7852 * common.opt (feliminate-dwarf2-dups): Replace references to
7853 "DWARF 2" with just "DWARF".
7854 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7855 * doc/extend.texi: Likewise.
7856 * doc/cpp.texi: Likewise.
7857 * doc/invoke.texi: Likewise.
7858 (Option Summary): Add -gdwarf to list of Debugging Options.
7859 (Debugging Options): Document -gdwarf.
7860 * doc/contrib.texi: Spell "DWARF" like that.
7862 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7864 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7865 warning. Fix up formatting.
7868 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7869 attempt to mark memory input operand addressable and
7870 call prepare_gimple_addressable in that case. Don't adjust
7871 input_location for diagnostics, use error_at instead.
7873 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
7875 * config/rs6000/ppc-auxv.h: New file.
7876 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7878 (cpu_supports): Likewise.
7879 * config/rs6000/rs6000.c: include "ppc-auxv.h".
7880 (cpu_is_info): New variable.
7881 (cpu_supports_info): Likewise.
7882 (tcb_verification_symbol): Likewise.
7883 (cpu_builtin_p): Likewise.
7884 (cpu_expand_builtin): New function.
7885 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7886 (rs6000_init_builtins): Likewise.
7887 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7888 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7889 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7890 * configure: Regenerate.
7891 * config.in: Likewise.
7892 * doc/extend.texi (PowerPC Built-in Functions): Document
7893 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7895 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
7898 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7900 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7903 2016-01-20 Richard Henderson <rth@redhat.com>
7909 * tree.c (tm_define_builtin): New.
7910 (find_tm_vector_type): New.
7911 (build_tm_vector_builtins): New.
7912 (build_common_builtin_nodes): Call it.
7914 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7916 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7917 (arm_fp_ok): Likewise.
7919 (arm_crypto): Likewise.
7921 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7922 Richard Biener <rguenther@suse.de>
7924 PR tree-optimization/69328
7925 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7926 vectors have same number of elements.
7927 (vectorizable_condition): Fix masked version recognition.
7929 2016-01-20 Richard Biener <rguenther@suse.de>
7931 PR tree-optimization/69345
7932 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7933 (VN_INFO_PTR_INFO): Likewise.
7934 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7935 info when it is equal between non-dominating SSA names.
7936 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7937 Make sure to look at original SSA infos.
7939 2016-01-20 Jeff Law <law@redhat.com>
7942 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7944 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7945 (pc_or_label_operand): New predicate.
7946 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7947 tests for small integers that are 2^n - 1.
7949 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7951 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7953 2016-01-19 Jeff Law <law@redhat.com>
7956 * tree-ssa-threadbackwards.c
7957 (fsm_find_control_statement_thread_paths): Do not try to lookup
7958 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7960 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7962 * doc/lto.texi: Remove text that says only Gold has linker plugin
7965 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7967 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7968 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7969 the DIE accordingly.
7970 (modified_type_die): Add REVERSE parameter and pass it recursively,
7971 as well as to base_type_die. Adjust presence check accordingly.
7972 (base_type_for_mode): Adjust call to modified_type_die.
7973 (add_type_attribute): Add REVERSE parameter and pass it to
7975 (generic_parameter_die): Adjust call to add_type_attribute.
7976 (add_scalar_info): Likewise.
7977 (add_subscript_info): Likewise.
7978 (gen_array_type_die): Likewise.
7979 (gen_descr_array_type_die): Likewise.
7980 (gen_entry_point_die): Likewise.
7981 (gen_enumeration_type_die): Likewise.
7982 (gen_formal_parameter_die): Likewise.
7983 (gen_subprogram_die): Likewise.
7984 (gen_variable_die ): Likewise.
7985 (gen_const_die): Likewise.
7986 (gen_field_die): Likewise.
7987 (gen_pointer_type_die): Likewise.
7988 (gen_reference_type_die): Likewise.
7989 (gen_ptr_to_mbr_type_die): Likewise.
7990 (gen_inheritance_die): Likewise.
7991 (gen_subroutine_type_die): Likewise.
7992 (gen_typedef_die): Likewise.
7993 (force_type_die): Adjust call to modified_type_die.
7995 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7997 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7998 flow throughout the file. Fix broken link to Objective-C 2.0
8000 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
8003 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8005 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
8007 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8010 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
8011 (maybe_record_node): Record cxa_pure_virtual as the only possible
8012 target if there are not ohter candidates.
8013 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
8015 2016-01-19 Richard Biener <rguenther@suse.de>
8017 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
8018 (get_memory_order): Likewise.
8020 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
8022 * tree-vect-stmts.c (vectorizable_store): Check
8025 2016-01-19 David Malcolm <dmalcolm@redhat.com>
8028 * gcc.c (driver::decode_argv): Add call to
8029 init_opts_obstack before init_options_struct.
8030 * opts.c (init_opts_obstack): Remove idempotency.
8031 (init_options_struct): Replace call to init_opts_obstack
8032 with a gcc_assert to verify that it has already been called.
8033 * toplev.c (toplev::main): Add call to init_opts_obstack before
8034 calls to init_options_struct.
8035 (toplev::finalize): Move cleanup of opts_obstack next to
8036 cleanup of save_decoded_options, clearing the latter, and
8037 save_decoded_options_count.
8039 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8042 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
8043 attribute to unconditional. Remove %? from output template.
8045 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8046 Jiong Wang <jiong.wang@arm.com>
8048 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
8049 generated from different expand order.
8051 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8053 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8054 Add support for CCMP costing.
8056 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8058 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8059 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8060 (fccmpe<mode>): Likewise.
8061 (fcmp): Rename to fcmp and globalize pattern.
8063 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8064 (aarch64_gen_ccmp_next): Add FP support.
8066 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
8068 * target.def (gen_ccmp_first): Update documentation.
8069 (gen_ccmp_next): Likewise.
8070 * doc/tm.texi (gen_ccmp_first): Update documentation.
8071 (gen_ccmp_next): Likewise.
8072 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8073 expand_ccmp_expr_1. Improve comments.
8074 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8075 (ccmp_ior<mode>): Remove pattern.
8076 (cmp<mode>): Remove expand.
8077 (cmp): Globalize pattern.
8078 (cstorecc4): Use cc_register.
8079 (mov<mode>cc): Remove ccmp_cc_register check.
8080 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8081 Simplify after removal of CC_DNE/* modes.
8082 (aarch64_ccmp_mode_to_code): Remove.
8083 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
8084 In 'k' case use integer as condition.
8085 (aarch64_nzcv_codes): Remove inverted cases.
8086 (aarch64_code_to_ccmode): Remove.
8087 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
8088 comparison with CC register to be used in folowing CCMP/branch/CSEL.
8089 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8090 pattern. Return the comparison with CC register. Invert conditions
8092 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8093 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8095 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8097 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8098 instrumented_version.
8100 2016-01-19 Richard Biener <rguenther@suse.de>
8102 PR tree-optimization/69336
8103 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8104 handled components with get_ref_base_and_extent.
8105 (equal_mem_array_ref_p): Adjust.
8107 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8110 * shrink-wrap.c: Include valtrack.h.
8111 (move_insn_for_shrink_wrap): Add DEBUG argument. If
8112 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8113 in between insn and where it will be moved to. Call
8114 dead_debug_insert_temp.
8115 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
8116 first and dead_debug_local_finish at the end.
8117 For uses and defs bitmap, handle all regs in between REGNO and
8118 END_REGNO, not just the first one.
8120 2016-01-19 Richard Biener <rguenther@suse.de>
8122 PR tree-optimization/69352
8123 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8124 (equal_mem_array_ref_p): Constrain size and max size properly.
8125 Compare the reverse flag.
8127 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
8129 * ira.c (ira): Update regstat data if we deleted insns.
8131 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8133 PR rtl-optimization/68955
8134 PR rtl-optimization/64557
8135 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8136 here. Fix up formatting.
8137 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8139 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8142 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8143 assume that the node has body.
8144 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8147 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8149 * lto-streamer-out.c (lto_output): Do not stream instrumentation
8152 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8154 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8155 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8157 2016-01-19 Martin Jambor <mjambor@suse.cz>
8158 Martin Liska <mliska@suse.cz>
8159 Michael Matz <matz@suse.de>
8161 * Makefile.in (OBJS): Add new source files.
8162 (GTFILES): Add hsa.c.
8163 * common.opt (disable_hsa): New variable.
8164 (-Whsa): New warning.
8165 * config.in (ENABLE_HSA): New.
8166 * configure.ac: Treat hsa differently from other accelerators.
8167 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8169 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8170 * doc/install.texi (Configuration): Document --with-hsa-runtime,
8171 --with-hsa-runtime-include, --with-hsa-runtime-lib and
8173 * doc/invoke.texi (-Whsa): Document.
8174 (hsa-gen-debug-stores): Likewise.
8175 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8176 to invoke offload compiler for hsa acclerator.
8177 * opts.c (common_handle_option): Determine whether HSA offloading
8178 should be performed.
8179 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8180 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8181 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8182 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8183 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8184 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8185 GF_OMP_FOR_KIND_GRID_LOOP.
8186 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8187 (pp_gimple_stmt_1): Likewise.
8188 * gimple-walk.c (walk_gimple_stmt): Likewise.
8189 * gimple.c (gimple_build_omp_grid_body): New function.
8190 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8191 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8192 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8193 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8194 GF_OMP_TEAMS_GRID_PHONY.
8195 (gimple_statement_omp_single_layout): Updated comments.
8196 (gimple_build_omp_grid_body): New function.
8197 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8198 (gimple_omp_for_grid_phony): New function.
8199 (gimple_omp_for_set_grid_phony): Likewise.
8200 (gimple_omp_parallel_grid_phony): Likewise.
8201 (gimple_omp_parallel_set_grid_phony): Likewise.
8202 (gimple_omp_teams_grid_phony): Likewise.
8203 (gimple_omp_teams_set_grid_phony): Likewise.
8204 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8205 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8206 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8207 (BUILT_IN_GOMP_TARGET): Updated type.
8208 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8209 (adjust_for_condition): New function.
8210 (get_omp_for_step_from_incr): Likewise.
8211 (extract_omp_for_data): Moved parts to adjust_for_condition and
8212 get_omp_for_step_from_incr.
8213 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8214 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8215 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8216 (scan_omp_parallel): Do not create child functions for phony
8218 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8219 (scan_omp_1_op): Checking assert we are not remapping to
8220 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8221 (parallel_needs_hsa_kernel_p): New function.
8222 (expand_parallel_call): Register apprpriate parallel child
8223 functions as HSA kernels.
8224 (grid_launch_attributes_trees): New type.
8225 (grid_attr_trees): New variable.
8226 (grid_create_kernel_launch_attr_types): New function.
8227 (grid_insert_store_range_dim): Likewise.
8228 (grid_get_kernel_launch_attributes): Likewise.
8229 (get_target_argument_identifier_1): Likewise.
8230 (get_target_argument_identifier): Likewise.
8231 (get_target_argument_value): Likewise.
8232 (push_target_argument_according_to_value): Likewise.
8233 (get_target_arguments): Likewise.
8234 (expand_omp_target): Call get_target_arguments instead of looking
8235 up for teams and thread limit.
8236 (grid_expand_omp_for_loop): New function.
8237 (grid_arg_decl_map): New type.
8238 (grid_remap_kernel_arg_accesses): New function.
8239 (grid_expand_target_kernel_body): New function.
8240 (expand_omp): Call it.
8241 (lower_omp_for): Do not emit phony constructs.
8242 (lower_omp_taskreg): Do not emit phony constructs but create for them
8243 a temporary variable receiver_decl.
8244 (lower_omp_taskreg): Do not emit phony constructs.
8245 (lower_omp_teams): Likewise.
8246 (lower_omp_grid_body): New function.
8247 (lower_omp_1): Call it.
8248 (grid_reg_assignment_to_local_var_p): New function.
8249 (grid_seq_only_contains_local_assignments): Likewise.
8250 (grid_find_single_omp_among_assignments_1): Likewise.
8251 (grid_find_single_omp_among_assignments): Likewise.
8252 (grid_find_ungridifiable_statement): Likewise.
8253 (grid_target_follows_gridifiable_pattern): Likewise.
8254 (grid_remap_prebody_decls): Likewise.
8255 (grid_copy_leading_local_assignments): Likewise.
8256 (grid_process_kernel_body_copy): Likewise.
8257 (grid_attempt_target_gridification): Likewise.
8258 (grid_gridify_all_targets_stmt): Likewise.
8259 (grid_gridify_all_targets): Likewise.
8260 (execute_lower_omp): Call grid_gridify_all_targets.
8261 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8262 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8263 (tree_omp_clause): Added union field dimension.
8264 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8265 * tree.c (omp_clause_num_ops): Added number of arguments of
8266 OMP_CLAUSE__GRIDDIM_.
8267 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8268 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8269 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8270 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8271 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8272 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8273 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8274 * tree-pass.h (make_pass_gen_hsail): Declare.
8275 (make_pass_ipa_hsa): Likewise.
8276 * ipa-hsa.c: New file.
8277 * lto-section-in.c (lto_section_name): Add hsa section name.
8278 * lto-streamer.h (lto_section_type): Add hsa section.
8279 * timevar.def (TV_IPA_HSA): New.
8280 * hsa-brig-format.h: New file.
8281 * hsa-brig.c: New file.
8282 * hsa-dump.c: Likewise.
8283 * hsa-gen.c: Likewise.
8286 * toplev.c (compile_file): Call hsa_output_brig.
8287 * hsa-regalloc.c: New file.
8289 2016-01-18 Jeff Law <law@redhat.com>
8291 PR tree-optimization/69320
8292 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8293 ranged object, do nothing if the RHS constant is not [0..1].
8294 (optimize_stmt): Comparing a boolean ranged object against a
8295 constant outside [0..1] results in a compile-time constant.
8297 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8300 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8302 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8303 (Option Summary): Update to reflect new section and moved options.
8304 (C++ Dialect Options): Move -fstats to new section.
8305 (Debugging Options): Move all dump, statistics, and other GCC
8306 developer options to new section. Rewrite section introduction
8307 and re-order remaining options to put the more basic ones first.
8308 (Optimization Options): Move -fira-verbose and -flto-report* to
8310 (Developer Options): New section incorporating moved options.
8311 * doc/cppopts.texi (-dM): Update cross-reference.
8313 2016-01-18 Richard Henderson <rth@redhat.com>
8316 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8317 operands to pseudo only if CSE is expected. Split long immediate
8318 operands only after reload, and for the stack pointer.
8319 (*add<GPI>3_pluslong): Remove.
8320 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8321 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8322 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8323 (*add<GPI>3 peepholes): New.
8324 (*add<GPI>3 splitters): New.
8325 * config/aarch64/constraints.md (Upl): New.
8326 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8328 2016-01-18 Richard Biener <rguenther@suse.de>
8330 PR tree-optimization/69297
8331 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8333 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8335 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8338 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8339 of mixind vector and scalar types.
8340 (fold_relational_const): Add handling of vector
8341 comparison with boolean result.
8342 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8343 comparison of vector operands with boolean result for EQ/NE only.
8344 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8345 (verify_gimple_cond): Likewise.
8346 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8349 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8351 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8354 2016-01-18 Richard Biener <rguenther@suse.de>
8357 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8359 2016-01-18 Tom de Vries <tom@codesourcery.com>
8361 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8363 2016-01-18 Tom de Vries <tom@codesourcery.com>
8365 * omp-low.c (set_oacc_fn_attrib): Make extern.
8366 * omp-low.h (set_oacc_fn_attrib): Declare.
8367 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8368 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8369 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8370 Add and handle function parameter oacc_kernels_p.
8371 (find_reduc_addr, get_omp_data_i_param): New function.
8372 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8373 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8374 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8375 Calculate dominance info. Skip loops that are not in a kernels region
8376 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8377 (pass_parallelize_loops::execute): Call parallelize_loops with
8378 oacc_kernels_p argument.
8379 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8380 New member function.
8381 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8382 * passes.def: Add argument to pass_parallelize_loops instantation.
8384 2016-01-18 Tom de Vries <tom@codesourcery.com>
8386 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8387 pass_parallelize_loops to be run outside the loop pipeline.
8389 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8391 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8392 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8394 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8397 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8398 using get_ref_base_and_extent.
8399 (equal_mem_array_ref_p): New.
8400 (hashable_expr_equal_p): Add call to previous.
8402 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8405 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8406 (sra_initialize): Allocate disqualified_constants.
8407 (sra_deinitialize): Free disqualified_constants.
8408 (disqualify_candidate): Update disqualified_constants when appropriate.
8409 (create_access): Scan for constant-pool entries as we go along.
8410 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8411 (maybe_add_sra_candidate): Allow constant-pool entries.
8412 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8413 (initialize_constant_pool_replacements): New.
8414 (sra_modify_assign): Avoid mangling assignments created by previous,
8415 and don't generate writes into constant pool.
8416 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8418 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8420 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8422 (scalar_chain::convert_op): Likewise.
8423 * config/i386/i386.md (*andndi3_doubleword): New.
8425 2016-01-18 Richard Biener <rguenther@suse.de>
8427 PR tree-optimization/69170
8428 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8429 building a vector from scalar results of a pattern stmt.
8431 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8433 * haifa-sched.c (autopref_multipass_init): Work around
8434 -Wmaybe-uninitialized warning.
8436 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8438 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8439 against the constant 0.
8441 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8443 PR tree-optimization/68799
8444 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8445 look up phi candidates in the statement-candidate map.
8446 (phi_add_costs): Likewise.
8447 (record_phi_increments): Likewise.
8448 (phi_incr_cost): Likewise.
8449 (ncd_with_phi): Likewise.
8450 (all_phi_incrs_profitable): Likewise.
8452 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8454 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8455 -Wmaybe-uninitialized warning.
8457 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8459 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8460 (Option Summary): Update to reflect new section and moved options.
8461 (C++ Dialect Options): Move -fvtable-verify and related options.
8462 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8463 and profiling-related options.
8464 (Optimization Options): Move profile generation options and
8465 -fstack-protector and related options.
8466 (Instrumentation Options): New section incorporating moved options.
8467 (Code Generation Options): Move -finstrument-functions and
8468 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8470 2016-01-16 Tom de Vries <tom@codesourcery.com>
8472 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8474 2016-01-16 Tom de Vries <tom@codesourcery.com>
8476 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8478 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8480 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8481 that checks whether the table is already empty. Rename the
8482 original implementation to...
8483 (hash_table::empty_slot): ...this new private function.
8485 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8488 * diagnostic-show-locus.c (layout::print_source_line): Move x
8489 offset of line until after call to
8490 get_line_width_without_trailing_whitespace.
8492 2016-01-15 Jeff Law <law@redhat.com>
8494 PR tree-optimization/69270
8495 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8496 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8497 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8498 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8499 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8500 ssa_name_has_boolean_range and constant_boolean_node.
8502 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8504 PR rtl-optimization/69030
8505 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8507 (spill_pseudos): Delete debug insn for dead pseudo.
8508 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8510 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8512 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8514 (TYPES_UNOPUS): Likewise.
8515 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8516 builtin type, from UNOP to UNOPUS.
8517 (lbtruncuv4sf): Likewise.
8518 (lbtruncuv2df): Likewise.
8519 (lrounduv2sf): Likewise.
8520 (lrounduv4sf): Likewise.
8521 (lrounduv2df): Likewise.
8522 (lroundusf): Likewise.
8523 (lroundusf): Likewise.
8524 (lceiluv2sf): Likewise.
8525 (lceiluv4sf): Likewise.
8526 (lceiluv2df): Likewise.
8527 (lceilusf): Likewise.
8528 (lceiludf): Likewise.
8529 (lflooruv2sf): Likewise.
8530 (lflooruv4sf): Likewise.
8531 (lflooruv2df): Likewise.
8532 (lfloorusf): Likewise.
8533 (lfloorudf): Likewise.
8534 (lfrintnuv2sf): Likewise.
8535 (lfrintnuv4sf): Likewise.
8536 (lfrintnuv2df): Likewise.
8537 (lfrintnusf): Likewise.
8538 (lfrintnudf): Likewise.
8539 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8541 (vcvtq_u32_f32): Likewise.
8542 (vcvtq_u64_f64): Likewise.
8543 (vcvta_u32_f32): Likewise.
8544 (vcvtaq_u32_f32): Likewise.
8545 (vcvtaq_u64_f64): Likewise.
8546 (vcvtm_u32_f32): Likewise.
8547 (vcvtmq_u32_f32): Likewise.
8548 (vcvtmq_u64_f64): Likewise.
8549 (vcvtn_u32_f32): Likwise.
8550 (vcvtnq_u32_f32): Likewise.
8551 (vcvtnq_u64_f64): Likewise.
8552 (vcvtp_u32_f32): Likewise.
8553 (vcvtpq_u32_f32): Likewise.
8554 (vcvtpq_u64_f64): Likewise.
8555 (vcvtmd_u64_f64): Likewise.
8556 (vcvtms_u32_f32): Likewise.
8557 (vcvtad_u64_f64): Likewise.
8558 (vcvtas_u32_f32): Likewise.
8559 (vcvtnd_u64_f64): Likewise.
8560 (vcvtns_u32_f32): Likewise.
8561 (vcvtpd_u64_f64): Likewise.
8562 (vcvtps_u32_f32): Likewise.
8564 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8566 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8567 CSEL of zero_extended registers.
8569 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8571 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8572 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8574 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8576 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8577 false when argument string is not found in the attributes table
8580 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8583 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8584 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8585 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8588 2016-01-15 Richard Biener <rguenther@suse.de>
8590 PR tree-optimization/66856
8591 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8592 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8593 (vect_create_new_slp_node): Increment stmt reference count.
8594 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8595 an SLP tree before swapping operands.
8596 (vect_build_slp_tree): Likewise.
8597 (destroy_bb_vec_info): Free stmt info after SLP instances.
8598 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8599 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8600 (STMT_VINFO_NUM_SLP_USES): New macro.
8602 2016-01-15 Richard Biener <rguenther@suse.de>
8605 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8606 (add_linkage_name): ... here.
8607 (gen_typedef_die): Use add_linkage_name_raw instead of
8608 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8611 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8613 * gimplify.c (oacc_default_clause): Decode reference and pointer
8614 types for both kernels and parallel regions.
8616 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8619 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8621 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8623 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8624 (convert_scalars_to_vector): Likewise.
8626 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8628 * doc/extend.texi (Type Traits): Fix grammar.
8630 2016-01-15 Martin Jambor <mjambor@suse.cz>
8632 * tree-inline.c (remap_decl): Use existing dclarations if
8633 remapping a type and prevent_decl_creation_for_types.
8634 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8635 decls first. Do real remapping with
8636 prevent_decl_creation_for_types set.
8637 * tree-inline.h (copy_body_data): New field
8638 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8641 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8643 * config/s390/s390.opt (mmvcle): More verbose help text.
8645 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8647 * config/s390/s390.opt: Add period to -mzvector option text.
8649 2016-01-15 Richard Biener <rguenther@suse.de>
8651 PR tree-optimization/68961
8652 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8653 of invariants in stores again.
8655 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8657 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8659 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8661 * config/i386/i386.c (ix86_expand_branch): Don't split
8662 DI mode xor instruction to SI mode.
8664 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8667 * ipa-icf.c (sem_function::merge): Virtual functions may become
8668 reachable even if they address is not taken and there are no
8671 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8673 * lto-streamer-out.c (subtract_estimated_size): New function.
8674 (get_symbol_initial_value): Use it.
8676 2016-01-15 Christian Bruel <christian.bruel@st.com>
8679 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8680 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8681 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8682 use add_builtin_function_ext_scope instead of add_builtin_function.
8683 (neon_set_p, neon_crypto_set_p): Remove.
8684 (arm_init_builtins): Always call arm_init_neon_builtins and
8685 arm_init_crypto_builtins.
8686 (arm_expand_builtin): Check that builtins are allowed for the arch.
8687 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8688 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8689 arm_init_neon_builtins call.
8691 2016-01-15 Richard Biener <rguenther@suse.de>
8693 PR tree-optimization/69117
8694 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8695 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8696 of the leader conservatively.
8697 (free_scc_vn): Restore original SSA name infos.
8699 2016-01-14 Jeff Law <law@redhat.com>
8701 PR tree-optimization/69270
8702 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8703 single bit of precision, verify it's also unsigned.
8704 (record_edge_info): Use constant_boolean_node rather than fold_convert
8705 to convert boolean_true/boolean_false to the right type.
8707 2016-01-14 Richard Henderson <rth@redhat.com>
8710 * loop-doloop.c (record_reg_sets): New.
8711 (doloop_optimize): Reject the transform if the sequence
8712 clobbers registers live at the end of the loop block.
8713 (doloop_optimize_loops): Enable df_live if needed.
8715 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8717 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8718 * gcc/config/rs6000/rs6000.c: Likewise.
8719 * gcc/config/rs6000/rs6000.h: Likewise.
8720 * gcc/config/rs6000/rs6000.md: Likewise.
8721 * gcc/doc/extend.texi: Likewsie.
8723 2016-01-14 Jeff Law <law@redhat.com>
8725 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8728 2016-01-14 Richard Henderson <rth@redhat.com>
8732 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8733 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8734 instead of builtin_decl_declared_p to test for declaration.
8736 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
8738 * doc/loop.texi (Loop Analysis and Representation): Document
8739 loop_depth function.
8741 2016-01-14 Tom de Vries <tom@codesourcery.com>
8743 PR tree-optimization/68773
8744 * omp-low.c (expand_omp_target): Don't set force_output.
8745 * varpool.c (varpool_node::get_create): Same.
8746 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8747 offload_funcs with force_output.
8749 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8752 * lra-eliminations.c (move_plus_up): Don't change anything if either
8753 the outer or inner subreg mode is not MODE_INT.
8754 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8755 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8757 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8759 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8760 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8761 reduc_uplus_@var{m}): Remove.
8762 * expr.c (expand_expr_real_2): Remove expansion path for
8763 reduc_[us](min|max|plus) optabs.
8764 * optabs-tree.c (scalar_reduc_to_vector): Remove.
8765 * optabs-tree.h (scalar_reduc_to_vector): Remove.
8766 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8767 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8768 * tree-vect-loop.c (vectorizable_reduction): Remove test for
8769 reduc_[us](min|max|plus) optabs.
8771 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8773 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8774 (reduc_plus_scal_v2sf): New.
8775 (reduc_smax_v2sf): Rename to...
8776 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8777 (reduc_smin_v2sf): Rename to...
8778 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8780 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
8782 * alias.c (compare_base_symbol_refs): New function.
8783 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8786 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8789 PR tree-optimization/69155
8790 * tree-complex.c: Include cfganal.h.
8791 (phis_to_revisit): New variable.
8792 (extract_component): Add phiarg_p argument. Assert that returned
8793 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8794 (update_phi_components): Partly rewrite to use loop over real/imag
8795 components instead of code duplication. If extract_component returns
8796 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8797 create_tmp_reg into the PHI node instead, and mention the phi triplet
8799 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
8800 in phis_to_revisit at the end.
8802 2016-01-14 Richard Biener <rguenther@suse.de>
8804 PR tree-optimization/68060
8805 * tree-vect-loop.c (vect_is_simple_reduction): Check the
8806 outer loop reduction is only used in the inner loop before
8807 detecting a double reduction.
8809 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8812 * combine.c (expand_field_assignment): Punt if compute_mode is
8813 unsupported scalar mode.
8815 2016-01-14 Richard Biener <rguenther@suse.de>
8817 PR tree-optimization/66856
8818 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8819 SLP node only if it built successfully.
8820 (vect_analyze_slp_instance): Adjust.
8822 2016-01-14 Jeff Law <law@redhat.com>
8824 PR tree-optimization/69270
8825 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8826 (record_edge_info): Use it. Convert boolean_{true,false}_node
8829 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
8832 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8833 use block_ultimate_origin
8834 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8836 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8838 * doc/invoke.texi (Submodel Options): Rename section to
8839 "Machine-Dependent Options" to better reflect its content.
8840 Rewrite introductory text to remove archaic CPU names.
8843 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8845 * doc/invoke.texi (Code Gen Options): Move section up in file,
8846 before target-specific options. Update menu and option summary
8847 to reflect the new section ordering.
8849 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8851 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8852 (C++ Dialect Options): Add cross-reference to -std option.
8853 * doc/standards.texi (C++ Language): Document C++14 support.
8855 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8857 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8858 for pack/unpack functions for __ibm128.
8859 (PACK_IF): Likewise.
8860 (UNPACK_IF): Likewise.
8862 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8863 support for __ibm128 pack/unpack functions.
8864 (rs6000_invalid_builtin): Likewise.
8865 (rs6000_init_builtins): Likewise.
8866 (rs6000_opt_masks): Likewise.
8868 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8869 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8871 (RS6000_BTM_COMMON): Likewise.
8873 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8874 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8875 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8876 128-bit floating point. Add support for the double values to be
8877 in Altivec registers for TF/IF packing and unpacking, but restrict
8878 TD packing sub-fields to be FPR registers. Don't allow overlapped
8879 register support for packing. Allow pack inputs to be memory
8880 locations. Don't build generator functions for unpack<mode>_dm
8881 and unpack<mode>_nodm.
8882 (unpack<mode>_dm): Likewise.
8883 (unpack<mode>_nodm): Likewise.
8884 (pack<mode>): Likewise.
8886 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8887 built-in functions to pack/unpack explicit __ibm128 values.
8888 (__builtin_unpack_ibm128): Likewise.
8890 * doc/extend.texi (PowerPC Built-in Functions): Document
8891 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8893 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
8896 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8897 Add new arg loc and pass it down as context.
8898 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8899 to the location to use for the warning.
8900 (check_function_arguments): New arg loc. All callers changed. Pass
8901 it to check_function_nonnull.
8902 * c-common.h (check_function_arguments): Adjust declaration.
8904 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8906 PR tree-optimization/69156
8907 * gimple.c (validate_type): Removed.
8908 (gimple_builtin_call_types_compatible_p): Use
8909 useless_type_conversion_p instead of validate_type.
8910 * value-prof.c (gimple_stringop_fixed_value): Fold
8911 icall_size to correct type.
8913 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8915 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8918 2016-01-13 Richard Henderson <rth@redhat.com>
8921 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8922 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8923 (ix86_builtin_tm_store): Remove.
8924 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8925 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8926 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8927 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8928 * doc/tm.texi: Rebuild.
8930 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8931 (BUILT_IN_TM_MEMCPY_RTWN): New.
8932 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8933 fallback from vector to integer helpers.
8934 (build_tm_load): Handle vector types directly, instead of
8936 (build_tm_store): Likewise.
8937 (expand_assign_tm): Prepare for register types not handled by
8938 the above. Copy them to memory and use memcpy.
8939 * tree.c (tm_define_builtin): New.
8940 (find_tm_vector_type): New.
8941 (build_tm_vector_builtins): New.
8942 (build_common_builtin_nodes): Call it.
8944 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8946 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8947 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8949 2016-01-13 Tom de Vries <tom@codesourcery.com>
8951 PR tree-optimization/69169
8952 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8953 handled_struct_type param.
8954 (create_variable_info_for, intra_create_variable_infos): Call
8955 create_variable_info_for_1 with extra arg.
8957 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8959 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8960 and "armv8.1-a+crc" entries.
8962 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8965 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8966 Change first operand predicate from register_or_constm1_operand
8967 to register_operand.
8968 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8969 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8970 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8971 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8972 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8973 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8974 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8975 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8976 comparison with constm1_rtx from vec_prefetch_gen part.
8978 2016-01-13 Richard Biener <rguenther@suse.de>
8980 PR tree-optimization/69013
8981 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8982 Exchange assert for a test.
8984 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8987 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8989 2016-01-13 Richard Biener <rguenther@suse.de>
8991 PR tree-optimization/69242
8992 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8993 assert with a check.
8995 2016-01-13 Richard Biener <rguenther@suse.de>
8997 PR tree-optimization/69186
8998 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8999 Properly guard vect_update_misalignment_for_peel call.
9001 2016-01-12 Jeff Law <law@redhat.com>
9003 PR tree-optimization/pr67755
9004 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
9005 "need_profile_correction".
9006 (thread_block_1): Initialize new field to false by default. If we
9007 have multiple thread paths through a common joiner to different
9008 final targets, then set new field to true.
9009 (compute_path_counts): Only do count adjustment when it's really
9012 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9014 * doc/invoke.texi (Spec Files): Move section down in file, past
9015 all command-line option descriptions.
9017 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
9020 * doc/gty.texi: Remove documentation of mark_hook.
9021 * gengtype.c (struct write_types_data): Remove code to support
9022 mark_hook attribute.
9023 (walk_type): Likewise.
9024 (write_func_for_structure): Likewise.
9026 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9028 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
9029 Directory Options, and -specs= to Overall Options.
9030 (Overall Options): Adjust similarly. Reorder to group related
9031 options together. Make -specs= cross-reference the spec file details.
9032 (Directory Options): Adjust similarly.
9034 2016-01-12 Jeff Law <law@redhat.com>
9036 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
9038 2016-01-12 Olivier Hainque <hainque@adacore.com>
9040 * gcc.c (spec_undefvar_allowed): New global.
9041 (process_command): Set to true when running for --version or --help,
9043 (getenv_spec_function): When the variable is not defined, use the
9044 variable name as the variable value if we're allowed not to issue
9047 2016-01-12 Bin Cheng <bin.cheng@arm.com>
9049 PR tree-optimization/68911
9050 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9051 information computed for expression "init + nit * step".
9053 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
9055 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
9056 about name of GCC executable. Remove deleted node from menu.
9057 (Directory Options) <-B>: Remove cross-reference to deleted node.
9058 (Target Options): Delete section.
9060 2016-01-12 Christian Bruel <christian.bruel@st.com>
9063 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9064 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9066 2016-01-12 Jakub Jelinek <jakub@redhat.com>
9069 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9070 aligned_mem is properly set for AVX512-VL floating point masked
9074 * ifcvt.c (cond_exec_process_if_block): When removing the last
9075 insn from then_bb, remove also any possible barriers that follow it.
9077 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
9081 * config/i386/iamcu.h (SIZE_TYPE): New macro.
9082 (PTRDIFF_TYPE): Likewise.
9083 (WCHAR_TYPE): Likewise.
9084 (WCHAR_TYPE_SIZE): Likewise.
9085 (STDINT_LONG32): Likewise.
9087 2016-01-12 Richard Biener <rguenther@suse.de>
9089 PR tree-optimization/69053
9090 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9091 convert initial value for cond reductions.
9093 2016-01-12 Richard Biener <rguenther@suse.de>
9095 PR tree-optimization/69007
9096 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9097 widen_sum after dot_prod and sad.
9099 2016-01-12 Richard Biener <rguenther@suse.de>
9101 PR tree-optimization/69168
9102 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9103 pattern stmt SLP type.
9104 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9105 end up unused so cope with that case.
9107 2016-01-12 Richard Biener <rguenther@suse.de>
9109 PR tree-optimization/69157
9110 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9111 stmts def type only during analyze phase.
9112 (vectorizable_call): Likewise.
9113 (vectorizable_simd_clone_call): Likewise.
9114 (vectorizable_conversion): Likewise.
9115 (vectorizable_assignment): Likewise.
9116 (vectorizable_shift): Likewise.
9117 (vectorizable_operation): Likewise.
9118 (vectorizable_store): Likewise.
9119 (vectorizable_load): Likewise.
9121 2016-01-12 Richard Biener <rguenther@suse.de>
9123 PR tree-optimization/69174
9124 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9126 (vectorizable_load): Properly compute the number of loads needed
9127 for permuted strided SLP loads and do not spuriously assign
9128 to SLP_TREE_VEC_STMTS.
9130 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
9132 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9133 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9134 (MD_EXEC_PREFIX): Remove.
9135 (MD_STARTFILE_PREFIX) Removee.
9136 (FILE_NAME_ABSOLUTE_P): Remove.
9137 (CPP_SPEC): Do not read macros from sys/version.h.
9138 (LINK_COMMAND_SPEC): Remove.
9139 (LOCAL_INCLUDE_DIR): Remove.
9140 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9141 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9142 (POST_LINK_SPEC): Define to invoke stubify after linker
9143 (LIBSTDCXX): Remove define
9144 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9145 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9146 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9147 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9148 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9149 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9150 (i386_djgpp_asm_named_section): Add propotype of new procedure
9152 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9153 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9154 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9155 in config/i386/djgpp.h).
9156 (STANDARD_STARTFILE_PREFIX_2): Define identical to
9157 STANDARD_STARTFILE_PREFIX_1.
9158 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9159 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9160 installation errors.
9161 (MAX_OFILE_ALIGNMENT): Define to 128.
9162 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9164 * config/i386/djgpp.c: New file. Add implementation of
9165 i386_djgpp_asm_named_section.
9167 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9169 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9170 Add rule for building djgpp.o.
9172 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9174 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9175 (rtx_is_swappable_p): Reductions are swappable.
9176 (insn_is_swappable_p): V2DF reductions are swappable.
9178 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
9180 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9181 reloads for other unsupported memory operands.
9183 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9184 Jim Wilson <jim.wilson@linaro.org>
9187 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9188 copy_to_mode_reg instead of force_reg.
9190 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9193 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9194 TARGET_80387 is true.
9196 2016-01-11 Jakub Jelinek <jakub@redhat.com>
9199 * lra-eliminations.c (move_plus_up): Only move plus up
9200 if subreg of the constant can be simplified into constant
9201 and use the simplified subreg of the constant instead of
9202 the original constant.
9204 * fold-const.c (fold_convertible_p): Don't return true
9205 for conversion of VECTOR_TYPE to same sized integral type.
9206 (fold_convert_loc): Fix up formatting. Fold conversion of
9207 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9208 instead of NOP_EXPR.
9210 PR tree-optimization/69214
9211 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9212 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9215 PR tree-optimization/69207
9216 * tree-vect-slp.c (vect_get_constant_vectors): For
9217 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9218 fold_convertible_p to vector_type's element type, and always
9219 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9221 2016-01-11 Richard Biener <rguenther@suse.de>
9223 PR tree-optimization/69173
9224 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9225 fixup the cycle if all stmts are in a pattern.
9227 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9230 * alias.c (base_alias_check): Move check for addresses with
9231 alignment ANDs before the call for compare_base_decls.
9232 (memrefs_conflict_p): Return -1 for different decls
9233 that went through alignment adjustments.
9235 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9237 PR rtl-optimization/68796
9238 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9239 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9240 and QImode comparisons against zero with CC_NZmode.
9241 * config/aarch64/iterators.md (short_mask): New mode_attr.
9243 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9245 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9246 (<avx512>_store<mode>_mask): Likewise.
9248 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9249 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9251 PR rtl-optimization/68841
9252 * ifcvt.c (struct noce_if_info): Add orig_x field.
9253 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9254 Don't record conflicts on to_rename if it's present.
9255 Allow memory destinations in sets.
9256 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9257 blocks, passing orig_x to the checks.
9258 (noce_process_if_block): Set if_info->orig_x appropriately.
9260 2016-01-11 Tom de Vries <tom@codesourcery.com>
9262 PR tree-optimization/69069
9263 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9265 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9267 PR rtl-optimization/68920
9268 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9269 of conditional moves for RTL if-conversion to 1 for
9270 TARGET_ONE_IF_CONV_INSN.
9271 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9272 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9273 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9274 parameter to restirct number of conditional moves for
9276 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9277 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9280 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9283 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9284 onepart vars. Fix typo in comment. Fix reversed condition in
9286 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9289 * var-tracking.c (dump_onepart_variable_differences): New.
9290 (dataflow_set_different): If a detailed dump is requested,
9291 delay early returns and dump differences between onepart
9292 variables present before and after, and added variables.
9294 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9297 * expr.c (expand_expr_real_1): For boolean vector constants
9298 with a scalar mode use const_scalar_mask_from_tree.
9299 (const_scalar_mask_from_tree): New.
9300 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9301 assigned to a mask type to handle constants.
9303 2016-01-11 Martin Jambor <mjambor@suse.cz>
9306 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9307 useless parameters if we cannot change function signature.
9309 2016-01-11 Martin Jambor <mjambor@suse.cz>
9312 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9315 2016-01-11 Tom de Vries <tom@codesourcery.com>
9317 PR tree-optimization/69109
9318 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9321 2016-01-11 Tom de Vries <tom@codesourcery.com>
9323 PR tree-optimization/69108
9324 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9325 res is not used in a phi.
9327 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9330 * common.opt (frandom-seed): Fix parameter name.
9331 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9333 2016-01-11 Tom de Vries <tom@codesourcery.com>
9335 PR tree-optimization/69058
9336 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9339 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9341 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9342 (mcode-density): Likewise.
9344 2016-01-10 Tom de Vries <tom@codesourcery.com>
9346 PR tree-optimization/69062
9347 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9348 (parallelize_loops): Don't paralelize loop that has phi with address
9351 2016-01-10 Tom de Vries <tom@codesourcery.com>
9353 PR tree-optimization/69039
9354 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9357 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9360 * match.pd: Require target has function_c99_misc before doing
9361 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9363 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9365 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9367 * configure: Regenerate.
9369 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9372 PR tree-optimization/69097
9373 * fold-const.h (expr_not_equal_to): New prototype.
9374 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9375 (expr_not_equal_to): New function.
9376 * match.pd (X % -Y is the same as X % Y): Don't optimize
9377 unless X is known not to be equal to minimum or Y is known
9378 not to be equal to -1.
9379 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9380 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9381 (simplify_stmt_using_ranges): Adjust caller.
9382 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9383 substitute_and_fold.
9385 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9387 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9390 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9392 PR tree-optimization/69167
9393 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9394 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9396 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9398 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9399 Richard Biener <rguenther@suse.de>
9401 PR tree-optimization/68707
9402 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9403 instances that can be handled via vect_load_lanes.
9405 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9407 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9408 if we can't determine address equivalence.
9409 * alias.c (compare_base_decl): Update for changed return value of
9410 symtab_node::equal_address_to.
9412 2016-01-08 Jason Merrill <jason@redhat.com>
9416 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9417 * expr.c (store_field): Not here.
9418 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9419 call with TREE_ADDRESSABLE type.
9420 * tree-cfg.c (verify_gimple_call): Adjust.
9422 2016-01-08 Olivier Hainque <hainque@adacore.com>
9424 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9427 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9429 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9430 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9431 (reduc_smin_v2sf): Rename to...
9432 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9433 (reduc_splus_v2sf): Rename to...
9434 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9436 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9438 PR tree-optimization/69162
9439 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9440 valist argument in another argument.
9441 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9442 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9443 to determine the va_list type, build a MEM_REF instead of
9444 build_fold_indirect_ref.
9446 PR tree-optimization/69172
9447 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9450 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9452 PR tree-optimization/67781
9453 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9454 and cmpnop in two steps: first the ones not accessed in original
9455 gimple expression in a endian independent way and then the ones not
9456 accessed in the final result in an endian-specific way.
9458 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9460 PR tree-optimization/69083
9461 * tree-vect-slp.c (vect_get_constant_vectors): For
9462 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9463 element type. If op is fold_convertible_p to vector_type's element
9464 type, use NOP_EXPR instead of VCE.
9466 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9468 PR rtl-optimization/67778
9469 PR rtl-optimization/68634
9470 PR rtl-optimization/68909
9471 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9472 block from the stack until done with it. Remove a superfluous
9473 bitmap set. Remove a superfluous bitmap test.
9475 2016-01-07 Martin Sebor <msebor@redhat.com>
9478 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9479 constraint on the type of arguments.
9481 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9483 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9484 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9485 unaligned_access on the gcc_options set.
9486 * config/arm/arm.c (arm_option_override_internal): Use
9487 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9489 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9492 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9493 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9495 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9498 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9501 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9502 depending on frame_pointer_needed before remaining integer and SSE
9503 registers are saved.
9505 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9508 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9510 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9513 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9514 Use the "xBm" constraint.
9515 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9517 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9518 (sse_cvtsi2ssq<round_name>): Likewise.
9519 (sse_cvtss2si<round_name>): Likewise.
9520 (sse_cvtss2siq<round_name>): Likewise.
9521 (sse2_cvtsi2sdq<round_name>): Likewise.
9522 (sse2_cvtsd2si<round_name>): Likewise.
9523 (sse2_cvtsd2siq<round_name>): Likewise.
9524 * config/i386/subst.md (round_nimm_scalar_predicate): New
9527 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9530 * varasm.c (make_decl_rtl): Mark invalid register vars as
9533 PR rtl-optimization/66206
9534 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9535 All callers changed.
9537 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9539 PR tree-optimization/69141
9540 * tree-ssa-pre.c: Include langhooks.h.
9541 (eliminate_dom_walker::before_dom_children): Use
9542 lang_hooks.decl_printable_name instead of
9543 cgraph_node::get ()->name ().
9546 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9547 it and DECL_ALIGN too.
9549 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9551 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9553 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9556 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9557 depending on frame_pointer_needed before remaining integer and SSE
9558 registers are saved.
9560 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9562 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9563 mode iterator with VSX_M2.
9564 (*p9_vecstore_<mode>): Likewise.
9565 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9566 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9567 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9568 (define_split for VSX_LE128 stores): Likewise.
9569 (define_peephole2 for TImode LE swaps): Likewise.
9570 (define_split for VSX_LE128 post-reload stores): Likewise.
9572 2016-01-06 Marek Polacek <polacek@redhat.com>
9575 * convert.c (convert_to_integer_1): Adjust call to
9576 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9577 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9578 EXPR instead of ARG.
9579 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9581 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9584 * doc/extend.texi (RL78 Variable Attributes): New section.
9586 2016-01-05 Marek Polacek <polacek@redhat.com>
9589 * builtins.c (get_memmodel): Use expansion point location rather than
9590 the input location. Call warning_at rather than warning.
9591 (expand_builtin_atomic_compare_exchange): Likewise.
9592 (expand_builtin_atomic_load): Likewise.
9593 (expand_builtin_atomic_store): Likewise.
9594 (expand_builtin_atomic_clear): Likewise.
9596 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9599 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9600 Replace nonimmediate_operand with vector_operand.
9601 * config/i386/predicates.md (vector_operand): New predicate.
9602 (general_vector_operand): Replace nonimmediate_operand with
9604 * config/i386/sse.md: Replace nonimmediate_operand with
9605 vector_operand and m constraint with Bm constraint on SSE
9606 patterns with 16-byte memory operand.
9607 * config/i386/subst.md (round_nimm_predicate): Replace
9608 nonimmediate_operand with vector_operand.
9609 (round_saeonly_nimm_predicate): Likewise.
9610 (round_saeonly_nimm_scalar_predicate): New.
9612 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9615 * config/i386/constraints.md (Bm): New constraint.
9616 * config/i386/predicates.md (vector_memory_operand): New
9618 * config/i386/sse.md: Replace xm with xBm in plusminus and
9621 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9624 * doc/extend.texi (V850 Function Attributes): New section.
9625 (V850 Variable Attributes): New section.
9627 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9630 * doc/extend.texi (MicroBlaze Function Attributes): Document
9631 interrupt_handler and fast_interrupt attributes.
9633 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9636 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9637 for local symbolic operands.
9638 * config/ia64/predicates.md (local_symbolic_operand64): New
9641 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9643 PR rtl-optimization/68651
9644 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9647 2016-01-05 Nathan Sidwell <nathan@acm.org>
9649 * alias.c (compare_base_decls): Use symtab_node::get.
9651 2016-01-05 Nick Clifton <nickc@redhat.com>
9654 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9655 secondary_reload_info structure.
9658 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9659 decls if weak support is available.
9661 2016-01-04 Martin Sebor <msebor@redhat.com>
9663 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9665 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9667 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9668 OPTION_MASK_P9_DFORM.
9670 * config/rs6000/constraints.md (wo constraint): New constraint for
9673 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9675 (rs6000_init_hard_regno_mode_ok): Likewise.
9677 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9680 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9681 expanders not to have constraints. Add support for ISA 3.0 xxperm
9682 instruction. Add support for fusing xxlor with xxperm.
9683 (altivec_vperm_<mode>_internal): Likewise.
9684 (altivec_vperm_v8hiv16qi): Likewise.
9685 (altivec_vperm_<mode>v16q): Likewise.
9686 (altivec_vperm_<mode>_uns): Likewise.
9687 (vperm_v8hiv4si): Likewise.
9688 (vperm_v16qiv8hi): Likewise.
9690 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9692 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9694 Update copyright years.
9696 * gcc.c (process_command): Update copyright notice dates.
9697 * gcov-dump.c (print_version): Ditto.
9698 * gcov.c (print_version): Ditto.
9699 * gcov-tool.c (print_version): Ditto.
9700 * gengtype.c (create_file): Ditto.
9701 * doc/cpp.texi: Bump @copying's copyright year.
9702 * doc/cppinternals.texi: Ditto.
9703 * doc/gcc.texi: Ditto.
9704 * doc/gccint.texi: Ditto.
9705 * doc/gcov.texi: Ditto.
9706 * doc/install.texi: Ditto.
9707 * doc/invoke.texi: Ditto.
9709 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9711 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9712 modes larger than TImode as TImode if NEON is not enabled.
9714 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9717 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9718 mode for %f0-%f31 only if TARGET_FPU.
9720 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9723 * config/sparc/sparc.c (scan_record_type): Take into account subfields
9724 to compute the PACKED_P predicate.
9725 (function_arg_record_value): Minor tweaks.
9727 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9729 * doc/install.texi (--with-multilib-list): Describe the meaning of the
9730 option for arm*-*-* targets.
9732 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
9734 * doc/extend.texi (Common Function Attributes): Move docs for
9735 MSP430-specific attributes to....
9736 (MSP430 Function Attributes): ...here. Delete the redundant
9737 entries and copy-edit the remaining text.
9738 (MSP430 Variable Attributes): Use uniform format for index
9739 entries and add a cross-reference to the corresponding function
9742 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
9744 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9746 (x86 Options): Likewise.
9748 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9752 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9753 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9754 to corresponding attribute.
9756 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9758 * doc/extend.texi (Common Function Attributes) <noplt>: Move
9759 to correct alphabetization of table. Copy-edit and correct
9761 <stack_protect>: Likewise.
9762 <target_clones>: Likewise.
9764 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9765 Correct punctuation.
9766 (Code Gen Options) <-fno-plt>: Copy-edit.
9768 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9771 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9772 SI values. Explicitly convert SI to DI and vice-versa.
9774 2016-01-01 Jakub Jelinek <jakub@redhat.com>
9776 PR tree-optimization/69070
9777 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9778 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9781 * ubsan.c (ubsan_instrument_float_cast): Call
9782 initialize_sanitizer_builtins.
9785 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9787 Copyright (C) 2016 Free Software Foundation, Inc.
9789 Copying and distribution of this file, with or without modification,
9790 are permitted in any medium without royalty provided the copyright
9791 notice and this notice are preserved.