1 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
3 * tree.c (cst_and_fits_in_hwi): Simplify.
5 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
7 * tree.h (wi::to_wide): New function.
8 * expr.c (expand_expr_real_1): Use wi::to_wide.
9 * fold-const.c (int_const_binop_1): Likewise.
10 (extract_muldiv_1): Likewise.
12 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
14 * wide-int.h: Update offset_int and widest_int documentation.
15 (WI_SIGNED_SHIFT_RESULT): New macro.
16 (wi::binary_shift): Define signed_shift_result_type for
17 shifts on offset_int- and widest_int-like types.
18 (generic_wide_int): Support <<= and >>= if << and >> are supported.
19 * tree.h (int_bit_position): Use shift operators instead of wi::
21 * alias.c (adjust_offset_for_component_ref): Likewise.
22 * expr.c (get_inner_reference): Likewise.
23 * fold-const.c (fold_comparison): Likewise.
24 * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
25 * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
26 * tree-dfa.c (get_ref_base_and_extent): Likewise.
27 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
28 (stmt_kills_ref_p): Likewise.
29 * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
30 * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
31 * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
32 (ao_ref_init_from_vn_reference): Likewise.
34 2016-05-02 Richard Sandiford <richard.sandiford@arm.com>
36 * wide-int.h: Update offset_int and widest_int documentation.
37 (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
38 (wi::binary_traits): Allow ordered comparisons between offset_int and
39 offset_int, between widest_int and widest_int, and between either
40 of these types and basic C types.
41 (operator <, <=, >, >=): Define for the same combinations.
42 * tree.h (tree_int_cst_lt): Use comparison operators instead
44 (tree_int_cst_le): Likewise.
45 * gimple-fold.c (fold_array_ctor_reference): Likewise.
46 (fold_nonarray_ctor_reference): Likewise.
47 * gimple-ssa-strength-reduction.c (record_increment): Likewise.
48 * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
49 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
50 * tree-sra.c (completely_scalarize): Likewise.
51 * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
52 * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
53 * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
54 (check_for_binary_op_overflow): Likewise.
55 (search_for_addr_array): Likewise.
56 * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
58 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
60 * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
61 (arc_save_restore): Likewise.
62 (arc_dwarf_register_span): Likewise.
63 (arc_output_pic_addr_const): Initialize suffix variable.
65 2016-05-02 Martin Liska <mliska@suse.cz>
67 * symbol-summary.h (function_summary::function_summary):
68 Remove checking assert for all cgraph nodes.
69 (function_summary::get): Check summary_uid.
70 (symtab_insertion): Check summary_uid.
72 2016-05-02 Claudiu Zissulescu <claziss@synopsys.com>
74 * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
75 * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
77 (arc_dwarf_register_span): Remove enum keyword.
78 (compact_memory_operand_p): New function.
79 * config/arc/arc.h (reg_class): Add code density register classes.
80 (REG_CLASS_NAMES): Likewise.
81 (REG_CLASS_CONTENTS): Likewise.
82 * config/arc/arc.md (*movqi_insn): Add code density instructions.
83 (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
84 (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
85 (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
86 * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
88 (h, Rcd, Rsd, Rzd): New register constraints.
89 (T): Use compact_memory_operand_p function.
90 * config/arc/predicates.md (compact_load_memory_operand): Remove.
92 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
94 * config/sh/sh.md (*negnegt, *movtt): Remove.
96 2016-05-02 Marek Polacek <polacek@redhat.com>
97 Tom de Vries <tom@codesourcery.com>
99 PR tree-optimization/70700
100 * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
101 bigger than FIRST_REF_NODE.
103 2016-05-02 Oleg Endo <olegendo@gcc.gnu.org>
106 * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
108 (prepare_cbranch_operands): Don't use scratch register. Assume that
109 function is used when pseudos can be created.
110 (expand_cbranchdi4): Likewise. Remove unused TARGET_CMPEQDI_T paths.
111 * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
112 (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
113 define_expand. Allow it only when pseudos can be created.
114 * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
116 2016-05-01 Uros Bizjak <ubizjak@gmail.com>
118 * config/i386/constraints.md (BC): Only allow -1 operands.
119 * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
120 Add "enabled" attribute. Update XI mode attribute calculation.
121 * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
122 (*movoi_internal_avx): Update XI mode attribute calculation.
123 (*movti_internal): Ditto.
125 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
127 * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
128 cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
130 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
132 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
133 statement on instruction code. Remove trailing spaces.
134 (altivec_expand_stv_builtin): Likewise.
136 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
138 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
139 (TARGET_FPU_DOUBLE): Simplify.
140 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
141 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
142 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
143 with 'TARGET_FPU_DOUBLE'.
144 * config/sh/sh.md: Likewise.
146 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
148 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
149 SH_DIV_STR_FOR_SIZE): Remove.
150 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
151 SH_DIV_STR_FOR_SIZE): Remove.
153 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
155 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
156 logical_reg_operand): Delete.
157 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
158 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
159 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
160 match_operand and match_test.
161 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
162 variables on their first use. Return bool values.
163 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
164 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
165 arith_reg_operand for input operand. Remove empty constraints.
167 (*xorsi3_compact): Rename to xorsi3.
168 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
169 (*zero_extend<mode>si2_disp_mem): Update comment.
172 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
174 * config/sh/t-sh: Remove SH5 support.
175 * config.gcc: Likewise.
176 * configure: Likewise.
178 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
180 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
182 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
184 * config/sh/sh.c (register_sh_passes, sh_option_override,
185 sh_print_operand, prepare_move_operands,
186 sh_can_follow_jump): Remove TARGET_SH1 checks.
187 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
188 PROMOTE_MODE): Likewise.
189 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
192 2016-04-30 Alan Modra <amodra@gmail.com>
194 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
195 restoring when fixed_reg_p, but allow out-of-line or stmw save.
196 Check for user regs later to avoid unnecessary looping over regs.
197 Merge user reg check with non-saved reg check. Don't force
198 inline VR restore when static chain used.
199 (rs6000_frame_related): Omit eh_frame info for user regs when
201 (fixed_regs_p): Delete.
203 2016-04-30 Alan Modra <amodra@gmail.com>
205 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
206 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
209 2016-04-30 Alan Modra <amodra@gmail.com>
212 * config/rs6000/rs6000.c (fixed_reg_p): New function.
213 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
216 2016-04-30 Alan Modra <amodra@gmail.com>
218 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
219 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
220 flag_pic test for Darwin.
222 2016-04-30 Alan Modra <amodra@gmail.com>
224 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
226 (REG_FREQ_CALLS_CROSSED): Delete.
227 (REG_N_THROWING_CALLS_CROSSED): Delete.
228 * regstat.c (regstat_bb_compute_ri): Don't calculate
229 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
230 (dump_reg_info): Don't print call cross frequency.
231 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
232 and REG_N_THROWING_CALLS_CROSSED.
234 2016-04-30 Alan Modra <amodra@gmail.com>
236 * regs.h (struct reg_info_t): Delete live_length.
237 (REG_LIVE_LENGTH): Delete macro.
238 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
239 local_live, local_processed and local_live_last_luid params.
240 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
242 (regstat_compute_ri): Adjust for above. Don't set
244 (dump_reg_info): Don't print live length.
245 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
246 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
247 Localize loop_depth var.
249 2016-04-30 Alan Modra <amodra@gmail.com>
251 * ira.c (enum valid_equiv): New.
252 (validate_equiv_mem): Return enum.
253 (update_equiv_mem): Create replacement in more cases.
254 (add_store_equivs): Update validate_equiv_mem call.
256 2016-04-30 Alan Modra <amodra@gmail.com>
258 * ira.c (combine_and_move_insns): Rather than scanning insns,
259 use DF infrastucture to find use and def insns.
261 2016-04-30 Alan Modra <amodra@gmail.com>
263 ira.c (combine_and_move_insns): Move invariant conditions..
264 (ira.c): ..to here. Call combine_and_move_insns before
265 add_store_equivs. Call grow_reg_equivs later. Allocate
266 req_equiv later using max_reg_num() rather than global max_regno.
267 (contains_replace_regs): Delete.
268 (add_store_equivs): Remove contains_replace_regs test.
270 2016-04-30 Alan Modra <amodra@gmail.com>
272 * ira.c (struct equiv_mem_data): New.
273 (equiv_mem, equiv_mem_modified): Delete static vars.
274 (validate_equiv_mem_from_store): Use "data" param to communicate..
275 (validate_equiv_mem): ..from here.
277 2016-04-30 Alan Modra <amodra@gmail.com>
279 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
281 (update_reg_equivs): ..here. Move allocation and freeing of
282 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
283 end_alias_analysis to..
286 2016-04-30 Alan Modra <amodra@gmail.com>
288 * ira.c (pdx_subregs): Delete.
289 (struct equivalence): Add pdx_subregs field.
290 (set_paradoxical_subreg): Remove pdx_subregs param. Update
292 (update_equiv_regs): Don't create or free pdx_subregs. Update
295 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
297 * config/rs6000/altivec.h: Change definitions of vec_xl and
299 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
300 (LD_ELEMREV_V2DI): New.
301 (LD_ELEMREV_V4SF): New.
302 (LD_ELEMREV_V4SI): New.
303 (LD_ELEMREV_V8HI): New.
304 (LD_ELEMREV_V16QI): New.
305 (ST_ELEMREV_V2DF): New.
306 (ST_ELEMREV_V2DI): New.
307 (ST_ELEMREV_V4SF): New.
308 (ST_ELEMREV_V4SI): New.
309 (ST_ELEMREV_V8HI): New.
310 (ST_ELEMREV_V16QI): New.
313 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
314 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
315 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
316 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
317 (altivec_expand_builtin): Add handling for
318 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
319 (rs6000_invalid_builtin): Add error-checking for
320 RS6000_BTM_P9_VECTOR.
321 (altivec_init_builtins): Define builtins used to implement vec_xl
323 (rs6000_builtin_mask_names): Define power9-vector.
324 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
325 (RS6000_BTM_P9_VECTOR): Define.
326 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
327 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
328 (vsx_ld_elemrev_v2df): Likewise.
329 (vsx_ld_elemrev_v4sf): Likewise.
330 (vsx_ld_elemrev_v4si): Likewise.
331 (vsx_ld_elemrev_v8hi): Likewise.
332 (vsx_ld_elemrev_v16qi): Likewise.
333 (vsx_st_elemrev_v2df): Likewise.
334 (vsx_st_elemrev_v2di): Likewise.
335 (vsx_st_elemrev_v4sf): Likewise.
336 (vsx_st_elemrev_v4si): Likewise.
337 (vsx_st_elemrev_v8hi): Likewise.
338 (vsx_st_elemrev_v16qi): Likewise.
339 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
342 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
344 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
346 (simplify_control_stmt_condition_1): ... here. Recurse into
347 BIT_AND_EXPRs and BIT_IOR_EXPRs.
349 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
352 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
353 (zero_extendqi<mode>2_dot): Revert earlier conversion from
354 define_insn_and_split to define_insn.
355 (zero_extendqi<mode>2_dot2): Same.
356 (extendqi<mode>2_dot): Same.
357 (extendqi<mode>2_dot2): Same.
359 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
361 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
362 (probe_stack): New expander.
363 (probe_stack_<mode>): New insn pattern.
365 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
367 * config/i386/i386.md
368 (operations with memory inputs setting flags peephole2):
369 Remove uneeded REG_P checks. Cleanup pattern generation.
371 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
373 * tree-vect-loop.c (vect_transform_loop): Fix
374 nb_iterations_upper_bound computation for vectorized loop.
376 2016-04-29 Marek Polacek <polacek@redhat.com>
377 Jakub Jelinek <jakub@redhat.com>
380 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
381 TARGET_EXPR_SLOT as a base.
383 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
385 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
386 with 'rCm2' constraints to limit possible immediate size.
387 (*load_zeroextendqisi_update): Likewise.
388 (*load_signextendqisi_update): Likewise.
389 (*loadhi_update): Likewise.
390 (*load_zeroextendhisi_update): Likewise.
391 (*load_signextendhisi_update): Likewise.
392 (*loadsi_update): Likewise.
393 (*loadsf_update): Likewise.
395 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
397 * config/i386/predicates.md (constm1_operand): Fix comparison.
399 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
401 * testsuite/gcc.target/arc/ieee_eq.c: New test.
403 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
405 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
406 remaining SH5 related settings.
407 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
408 shmedia_prepare_call_address): Delete.
409 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
410 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
411 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
412 UNSUPPORTED_SH2A): Remove m5 checks.
413 (sh_divide_strategy_e): Remove SH5 division strategies.
414 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
415 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
417 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
419 * config/s390/s390.c (s390_rtx_costs): Update documentation.
421 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
423 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
424 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
426 * config/s390/vector.md ("mov<mode>"): Likewise.
428 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
430 * config/s390/constraints.md ("U", "W"): Invoke
431 s390_mem_constraint with "ZR" and "ZT".
432 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
433 addresses when using LRA. Accept also short displacements for S
434 and T constraints. Do not check for long displacement target for
436 (s390_mem_constraint): Remove handling of U and W constraints.
437 * config/s390/s390.md (various patterns): Remove the short
438 displacement constraints (Q and R) if a long displacement
439 constraint is present. Add longdisp as required CPU capability.
440 * config/s390/vector.md: Likewise.
441 * config/s390/vx-builtins.md: Likewise.
443 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
446 * reload1.c (reload): Call finish_spills before
447 restarting reload loop. Skip select_reload_regs
448 if update_eliminables_and_spill returns true.
450 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
452 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
453 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
454 (umulhisi3_imm): Update predicates and constraint letters.
455 (umulhisi3_reg): Declare instruction as commutative.
456 * config/arc/constraints.md (J12, J16): New constraints.
457 * config/arc/predicates.md (short_unsigned_const_operand): New
459 (arc_short_operand): Likewise.
460 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
462 2016-04-29 Richard Biener <rguenther@suse.de>
464 PR tree-optimization/13962
465 PR tree-optimization/65686
466 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
467 * tree-ssa-alias.c (ptrs_compare_unequal): New function
468 using PTA to compare pointers.
469 * match.pd: Add pattern for pointer equality compare simplification
470 using ptrs_compare_unequal.
472 2016-04-29 Richard Biener <rguenther@suse.de>
474 * stor-layout.c (layout_type): Do not build a pointer-to-element
477 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
479 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
480 Use SWI mode iterator. Use general_reg_operand predicate.
481 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
482 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
485 2016-04-29 Jakub Jelinek <jakub@redhat.com>
488 * fold-const.c (operand_equal_p): Don't verify hash value equality
490 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
493 2016-04-28 Jakub Jelinek <jakub@redhat.com>
496 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
497 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
498 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
499 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
500 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
502 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
504 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
505 to info. Don't initialize separate fields to 0. Clean up
508 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
510 * config/i386/i386.md (peephole2s for operations with memory inputs):
511 Use SWI mode iterator.
512 (peephole2s for operations with memory outputs): Ditto.
513 Do not check for stack checking probe.
515 (probe_stack): Remove expander.
517 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
518 Andrew Burgess <andrew.burgess@embecosm.com>
520 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
523 2016-04-28 Jason Merrill <jason@redhat.com>
525 * gdbinit.in: Skip line-map.h.
527 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
528 Andrew Burgess <andrew.burgess@embecosm.com>
530 * config/arc/arc.c (arc_conditional_register_usage): Take
531 TARGET_RRQ_CLASS into account.
532 (arc_print_operand): Support printing 'p' and 's' operands.
533 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
535 (TARGET_RRQ_CLASS): Define.
536 (IS_POWEROF2_OR_0_P): Define.
537 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
539 (*tst_movb): New define_insn.
540 (*tst): Avoid recognition if it could prevent '*tst_movb'
541 combination; replace c/CnL with c/Chs alternative.
542 (*tst_bitfield_tst): New define_insn.
543 (*tst_bitfield_asr): New define_insn.
544 (*tst_bitfield): New define_insn.
545 (andsi3_i): Add Rrq variant.
546 (extzv): New define_expand.
547 (insv): New define_expand.
548 (*insv_i): New define_insn.
549 (*movb): New define_insn.
550 (*movb_signed): New define_insn.
551 (*movb_high): New define_insn.
552 (*movb_high_signed): New define_insn.
553 (*movb_high_signed + 1): New define_split pattern.
554 (*mrgb): New define_insn.
555 (*mrgb + 1): New define_peephole2 pattern.
556 (*mrgb + 2): New define_peephole2 pattern.
557 * config/arc/arc.opt (mbitops): New option for nps400, uses
558 TARGET_NPS_BITOPS_DEFAULT.
559 * config/arc/constraints.md (q): Make register class conditional.
560 (Rrq): New register constraint.
561 (Chs): New constraint.
562 (Clo): New constraint.
563 (Chi): New constraint.
564 (Cbf): New constraint.
565 (Cbn): New constraint.
566 (C18): New constraint.
567 (Cbi): New constraint.
569 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
571 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
573 (bitmap_intersection_of_preds): Ditto.
574 (bitmap_union_of_succs): Ditto.
575 (bitmap_union_of_preds): Ditto.
576 * sbitmap.c (do_popcount): Delete.
577 (BITMAP_DEBUGGING): Delete.
578 (sbitmap_verify_popcount): Delete.
579 (sbitmap_alloc): Don't initialize the popcount field.
580 (sbitmap_alloc_with_popcount): Delete.
581 (sbitmap_resize): Don't resize the popcount array.
582 (sbitmap_vector_alloc): Don't initialize the popcount field.
583 (bitmap_copy): Don't copy the popcount array.
584 (bitmap_clear): Don't clear the popcount array.
585 (bitmap_clear): Delete the popcount array handling.
586 (bitmap_ior_and_compl): Delete the popcount assert.
588 (bitmap_and_compl): Ditto.
589 (bitmap_and): Delete the popcount array handling.
592 (bitmap_or_and): Delete the popcount assert.
593 (bitmap_and_or): Ditto.
594 (popcount_table): Delete.
595 (sbitmap_elt_popcount): Delete.
596 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
597 (bitmap_set_bit): Delete the popcount assert.
598 (bitmap_clear_bit): Ditto.
599 (sbitmap_free): Don't free the popcount array.
600 (sbitmap_alloc_with_popcount): Delete declaration.
601 (sbitmap_popcount): Ditto.
603 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
604 Andrew Burgess <andrew.burgess@embecosm.com>
606 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
607 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
608 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
609 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
610 * config/arc/arc.opt (mcmem): New option.
611 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
612 supply length for r/m alternative.
613 (*extendqisi2_ac): Likewise.
614 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
616 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
617 (movhi_insn): Likewise.
618 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
619 (*zero_extendqihi2_i): Add r/Ucm alternative.
620 (*zero_extendqisi2_ac): Likewise.
621 (*zero_extendhisi2_i): Likewise.
622 * config/arc/constraints.md (Uex): New memory constraint.
623 (Ucm): New define_constraint.
624 * config/arc/predicates.md (long_immediate_loadstore_operand):
625 Return 0 for MEM with cmem_address address.
626 (cmem_address_0): New predicates.
627 (cmem_address_1): Likewise.
628 (cmem_address_2): Likewise.
629 (cmem_address): Likewise.
631 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
633 * config/rs6000/rs6000.c (machine_function): Rename
634 insn_chain_scanned_p to spe_insn_chain_scanned_p.
635 (rs6000_stack_info): Adjust.
637 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
638 Andrew Burgess <andrew.burgess@embecosm.com>
640 * config/arc/constraints.md (Usd): Convert to define_constraint.
644 2016-04-28 Jakub Jelinek <jakub@redhat.com>
647 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
648 Add new peephole2 where the first insn is *mov<mode>_or instead of
651 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
653 * tracer.c (bb_seen): Make static.
655 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
657 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
658 support, setup defaults.
659 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
660 * config/arc/arc.c (arc_init): Add NPS400 support.
661 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
662 (TARGET_ARC700): NPS400 is also an ARC700.
663 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
665 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
668 * config/nds32/nds32.md (casesi): Don't access the operands array
671 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
673 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
674 (or $-1,reg peephole2): Ditto.
675 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
677 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
679 * doc/extend.texi (Common Function Attributes) [optimize]:
680 Discourage use of the optimize attribute.
682 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
684 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
685 special case builtin.
686 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
687 ALTIVEC_BUILTIN_VEC_ADDE.
688 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
689 support for ALTIVEC_BUILTIN_VEC_ADDE.
690 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
691 for __builtin_vec_adde.
693 2016-04-28 Jakub Jelinek <jakub@redhat.com>
695 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
696 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
698 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
701 * doc/sourcebuild.texi (Effective-Target Keywords, Other
702 attributes): Document cilkplus_runtime.
704 2016-04-28 Martin Jambor <mjambor@suse.cz>
706 * tree-cfg.c (verify_expr): Verify that local declarations belong to
707 this function. Call verify_expr on MEM_REFs and bases of other
710 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
712 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
713 for WORD_REGISTER_OPERATIONS to runtime check.
715 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
717 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
719 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
721 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
722 big-endian compilation.
723 * config/arc/arc.md (addf3): Likewise.
727 2016-04-28 Richard Biener <rguenther@suse.de>
729 PR tree-optimization/70840
730 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
731 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
732 Mark x * pow(x,c) -> pow(x,c+1) commutative.
733 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
735 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
737 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
738 and explain why in a comment.
740 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
742 * config/arc/arc.md (cpu_facility): Add fpx variant.
743 (subdf3): Prohibit use reverse sub when assist operations option
745 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
746 instructions only when FPX is enabled.
747 * testsuite/gcc.target/arc/trsub.c: New test.
749 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
751 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
752 mult_operator when calculating "type" attribute.
753 (*fop_<mode>_1_i387): Ditto.
754 (*fop_xf_1_i387): Ditto.
755 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
756 Use std::swap to swap operands. Use RTL expressions to generate
759 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
760 Joern Rennecke <joern.rennecke@embecosm.com>
762 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
764 (emit_pic_move): Remove.
765 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
766 * config/arc/arc.c (emit_pic_move): Removed.
767 (TARGET_HAVE_TLS): Define.
768 (arc_conditional_register_usage): Test for arc_tp_regno.
769 (arc_print_operand, arc_print_operand_address): Handle TLS
771 (arc_needs_pcl_p): New function.
772 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
773 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
774 (arc_raw_symbolic_reference_mentioned_p): Likewise.
775 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
776 (arc_legitimize_tls_address): Likewise.
777 (DTPOFF_ZERO_SYM): Define.
778 (arc_legitimize_pic_address): Make it static, handle TLS cases.
779 (arc_output_pic_addr_const): Print TLS unspecs.
780 (prepare_pic_move): New function, replaces emit_pic_move.
781 (arc_legitimate_constant_p): Handle TLS unspecs.
782 (arc_legitimate_address_p): Likewise.
783 (arc_rewrite_small_data_p): Use assert for TLS constants.
784 (prepare_move_operands): Use prepare_pic_move.
785 (arc_legitimize_address): Legitimize tls addresses.
786 (arc_epilogue_uses): Check for arc_tp_regno.
787 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
788 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
790 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
792 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
793 %(arc_tls_extra_start_spec).
794 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
795 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
797 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
798 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
799 (UNSPEC_TLS_OFF): Add.
801 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
802 (get_thread_pointersi): New patterns.
803 * config/arc/arc.opt (mtp-regno): New option.
804 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
805 (move_dest_operand): Likewise.
806 * configure: Regenerate.
807 * configure.ac: Add arc*-*-* case to test for tls.
808 * doc/invoke.texi (ARC options): Document mtp-regno.
810 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
812 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
813 the new ARC HS SIMD instructions.
814 (arc_preferred_simd_mode): New function.
815 (arc_autovectorize_vector_sizes): Likewise.
816 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
817 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
818 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
819 (arc_init_builtins): Add new SIMD builtin types.
820 (arc_split_move): Handle 64 bit vector moves.
821 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
822 (TARGET_PLUS_QMACW): Define.
823 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
824 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
825 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
826 (VSUBADD4H): New builtins.
827 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
828 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
830 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
831 Matthias Klose <doko@debian.org>
833 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
835 2016-04-28 Richard Biener <rguenther@suse.de>
838 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
841 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
843 * common/config/sh/sh-common.c: Remove SH5 support.
844 * config/sh/constraints.md: Likewise.
845 * config/sh/config/sh/elf.h: Likewise.
846 * config/sh/linux.h: Likewise.
847 * config/sh/netbsd-elf.h: Likewise.
848 * config/sh/predicates.md: Likewise.
849 * config/sh/sh-c.c: Likewise.
850 * config/sh/sh-protos.h: Likewise.
851 * config/sh/sh.c: Likewise.
852 * config/sh/sh.h: Likewise.
853 * config/sh/sh.md: Likewise.
854 * config/sh/sh.opt: Likewise.
855 * config/sh/sync.md: Likewise.
856 * config/sh/sh64.h: Delete.
857 * config/sh/shmedia.h: Likewise.
858 * config/sh/shmedia.md: Likewise.
859 * config/sh/sshmedia.h: Likewise.
860 * config/sh/t-netbsd-sh5-64: Likewise.
861 * config/sh/t-sh64: Likewise.
862 * config/sh/ushmedia.h: Likewise.
864 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
866 * config/i386/i386.md (sign_extend to memory peephole2s): Use
867 general_reg_operand instead of register_operand predicate.
869 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
871 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
873 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
875 * match.pd (A - B > A, A + B < A): New transformations.
877 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
879 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
880 which defaults to true. Emit an outer pair of parentheses only if
881 EMIT_PARENS. When continuing a chain of && or || (or & or |),
882 don't emit parentheses for the right-hand operand.
884 2016-04-27 Jeff Law <law@redhat.com>
886 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
888 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
890 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
891 (altivec_lvx_<mode>_internal): Document.
892 (altivec_lvx_<mode>_2op): New define_insn.
893 (altivec_lvx_<mode>_1op): Likewise.
894 (altivec_lvx_<mode>_2op_si): Likewise.
895 (altivec_lvx_<mode>_1op_si): Likewise.
896 (altivec_stvx_<mode>): Remove.
897 (altivec_stvx_<mode>_internal): Document.
898 (altivec_stvx_<mode>_2op): New define_insn.
899 (altivec_stvx_<mode>_1op): Likewise.
900 (altivec_stvx_<mode>_2op_si): Likewise.
901 (altivec_stvx_<mode>_1op_si): Likewise.
902 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
903 Expand vec_ld and vec_st during parsing.
904 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
906 (altivec_expand_stvx_be): Likewise.
907 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
908 address-masking behavior in RTL.
909 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
910 address-masking behavior in RTL.
911 (altivec_expand_builtin): Change builtin code arguments for calls
912 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
913 (insn_is_swappable_p): Avoid incorrect swap optimization in the
914 presence of lvx/stvx patterns.
915 (alignment_with_canonical_addr): New function.
916 (alignment_mask): Likewise.
917 (find_alignment_op): Likewise.
918 (recombine_lvx_pattern): Likewise.
919 (recombine_stvx_pattern): Likewise.
920 (recombine_lvx_stvx_patterns): Likewise.
921 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
922 stvx patterns from expand.
923 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
925 (vector_altivec_store_<mode>): Likewise.
927 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
929 * config/aarch64/aarch64.md
930 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
931 remove the "fp" attributes.
932 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
933 add the "simd" attributes.
934 (*movdf_aarch64): Likewise.
935 (*movtf_aarch64): Remove the "fp" attributes.
936 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
937 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
939 2016-04-27 David Malcolm <dmalcolm@redhat.com>
941 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
942 rtx to rtx_code_label *.
943 * rtl.h (maybe_set_first_label_num): Likewise.
945 2016-04-27 David Malcolm <dmalcolm@redhat.com>
947 * df-core.c (df_add_problem): Make the problem param be const.
948 (df_remove_problem): Make local "problem" be const.
949 * df-problems.c (problem_RD): Make const.
950 (problem_LR): Likewise.
951 (problem_LIVE): Likewise.
952 (problem_MIR): Likewise.
953 (problem_CHAIN): Likewise.
954 (problem_WORD_LR): Likewise.
955 (problem_NOTE): Likewise.
956 (problem_MD): Likewise.
957 * df-scan.c (problem_SCAN): Likewise.
958 * df.h (struct df_problem): Make field "dependent_problem" be
960 (struct dataflow): Likewise for field "problem".
961 (df_add_problem): Make param const.
963 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
965 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
966 inter-unit moves to/from vector registers are enabled. Do not disable
969 2016-04-27 David Malcolm <dmalcolm@redhat.com>
971 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
972 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
974 (enum df_problem_id): ...this new enum.
975 (struct df_problem): Convert field "id" from "int" to
978 2016-04-27 David Malcolm <dmalcolm@redhat.com>
980 * rtl.def: Update comment for "things in the instruction chain" to
981 reflect the removal of the leading "i" field for INSN_UID in
982 r210360. Fix bogus apostrophe.
984 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
986 * config/i386/i386.md
987 (lea arith with mem operand + setcc peephole2): Set operator mode.
989 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
992 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
993 (dimode_scalar_to_vector_candidate_p): This.
994 (timode_scalar_to_vector_candidate_p): New function.
995 (scalar_to_vector_candidate_p): Likewise.
996 (timode_check_non_convertible_regs): Likewise.
997 (timode_remove_non_convertible_regs): Likewise.
998 (remove_non_convertible_regs): Likewise.
999 (remove_non_convertible_regs): Renamed to ...
1000 (dimode_remove_non_convertible_regs): This.
1001 (scalar_chain::~scalar_chain): Make it virtual.
1002 (scalar_chain::compute_convert_gain): Make it pure virtual.
1003 (scalar_chain::mark_dual_mode_def): Likewise.
1004 (scalar_chain::convert_insn): Likewise.
1005 (scalar_chain::convert_registers): Likewise.
1006 (scalar_chain::add_to_queue): Make it protected.
1007 (scalar_chain::emit_conversion_insns): Likewise.
1008 (scalar_chain::replace_with_subreg): Likewise.
1009 (scalar_chain::replace_with_subreg_in_insn): Likewise.
1010 (scalar_chain::convert_op): Likewise.
1011 (scalar_chain::convert_reg): Likewise.
1012 (scalar_chain::make_vector_copies): Likewise.
1013 (scalar_chain::convert_registers): New pure virtual function.
1014 (class dimode_scalar_chain): New class.
1015 (class timode_scalar_chain): Likewise.
1016 (scalar_chain::mark_dual_mode_def): Renamed to ...
1017 (dimode_scalar_chain::mark_dual_mode_def): This.
1018 (timode_scalar_chain::mark_dual_mode_def): New function.
1019 (timode_scalar_chain::convert_insn): Likewise.
1020 (dimode_scalar_chain::convert_registers): Likewise.
1021 (scalar_chain::compute_convert_gain): Renamed to ...
1022 (dimode_scalar_chain::compute_convert_gain): This.
1023 (scalar_chain::replace_with_subreg): Renamed to ...
1024 (dimode_scalar_chain::replace_with_subreg): This.
1025 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1026 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1027 (scalar_chain::make_vector_copies): Renamed to ...
1028 (dimode_scalar_chain::make_vector_copies): This.
1029 (scalar_chain::convert_reg): Renamed to ...
1030 (dimode_scalar_chain::convert_reg ): This.
1031 (scalar_chain::convert_op): Renamed to ...
1032 (dimode_scalar_chain::convert_op): This.
1033 (scalar_chain::convert_insn): Renamed to ...
1034 (dimode_scalar_chain::convert_insn): This.
1035 (scalar_chain::convert): Call convert_registers.
1036 (convert_scalars_to_vector): Change to scalar_chain pointer to
1037 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1038 in 32-bit mode. Delete scalar_chain pointer. Call
1039 free_dominance_info in 64-bit mode.
1040 (pass_stv::gate): Remove TARGET_64BIT check.
1041 (ix86_option_override): Put the 64-bit STV pass before the CSE
1044 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
1046 * dwarf2out.h (struct dw_loc_descr_node): Remove the
1047 dw_loc_frame_offset field.
1048 * dwarf2out.c (new_loc_descr): Likewise.
1049 (resolve_args_picking_1): Turn the VISITED hash set into a
1050 FRAME_OFFSET hash map. Use it to associate a frame offset to
1051 visited nodes. Remove uses of the CHECKING_P macro.
1052 (resolve_args_picking): Update call to resolve_args_picking_1.
1054 2016-04-27 Martin Liska <mliska@suse.cz>
1056 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1057 (free_loop_data): Release vuses of groups.
1059 2016-04-27 Bin Cheng <bin.cheng@arm.com>
1061 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1062 instead of redundant use_id and boolean have_use_for.
1063 (struct iv_use): Change sub_id into group_id. Remove field next.
1064 Move fields: related_cands, n_map_members, cost_map and selected
1066 (struct iv_group): ... here. New structure.
1067 (struct iv_common_cand): Use structure declaration directly.
1068 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1069 (MAX_CONSIDERED_USES): Rename macro to ...
1070 (MAX_CONSIDERED_GROUPS): ... here.
1071 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1072 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1073 (dump_uses): Rename to ...
1074 (dump_groups): ... here. Update all uses.
1075 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1076 (find_induction_variables): Refactor format of dump information.
1077 (record_sub_use): Delete.
1078 (record_use): Update all uses.
1079 (record_group): New function.
1080 (record_group_use, find_interesting_uses_op): Call above functions.
1082 (find_interesting_uses_cond): Ditto.
1083 (group_compare_offset): New function.
1084 (split_all_small_groups): Rename to ...
1085 (split_small_address_groups_p): ... here. Update all uses.
1086 (split_address_groups): Update all uses.
1087 (find_interesting_uses): Refactor format of dump information.
1088 (add_candidate_1): Update all uses. Remove redundant check on iv,
1090 (add_candidate, record_common_cand): Remove redundant assert.
1091 (add_iv_candidate_for_biv): Update use.
1092 (add_iv_candidate_derived_from_uses): Update all uses.
1093 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1094 (alloc_use_cost_map): Ditto.
1095 (set_use_iv_cost, get_use_iv_cost): Rename to ...
1096 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
1097 (determine_use_iv_cost_generic): Ditto.
1098 (determine_group_iv_cost_generic): Ditto.
1099 (determine_use_iv_cost_address): Ditto.
1100 (determine_group_iv_cost_address): Ditto.
1101 (determine_use_iv_cost_condition): Ditto.
1102 (determine_group_iv_cost_cond): Ditto.
1103 (determine_use_iv_cost): Ditto.
1104 (determine_group_iv_cost): Ditto.
1105 (set_autoinc_for_original_candidates): Update all uses.
1106 (find_iv_candidates): Update all uses. Refactor dump information.
1107 (determine_use_iv_costs): Ditto.
1108 (determine_iv_costs): Ditto.
1109 (iv_ca_cand_for_use): Rename to ...
1110 (iv_ca_cand_for_group): ... here. Update all uses.
1111 (iv_ca_add_use, iv_ca_add_group): Ditto.
1112 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1113 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1114 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1115 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1116 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1117 (create_new_iv, adjust_iv_update_pos): Ditto.
1118 (rewrite_use_address): Delete.
1119 (rewrite_use_address_1): Rename to ...
1120 (rewrite_use_address): ... here.
1121 (rewrite_use_compare): Update all uses.
1122 (rewrite_use): Delete.
1123 (rewrite_uses): Rename to ...
1124 (rewrite_groups): ... here. Update all uses.
1125 (remove_unused_ivs, free_loop_data): Update all uses.
1126 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1128 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1130 * rtlanal.c (nonzero_bits1): Convert preprocessor check
1131 for WORD_REGISTER_OPERATIONS to runtime check.
1133 2016-04-27 Richard Biener <rguenther@suse.de>
1136 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1137 aggregate_value_p to determine if a function result is
1138 returned by reference.
1139 (ipa_pta_execute): Functions having their address taken are
1140 not automatically nonlocal.
1142 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1145 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1146 * fold-const.c (operand_equal_p): If flag_checking and
1147 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1148 and if it returns non-zero, assert iterative_hash_expr on both
1151 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1153 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1155 2016-04-27 Nick Clifton <nickc@redhat.com>
1158 * varasm.c (merge_weak): Generate an error if an attempt is made
1159 to convert a non-weak static function into a weak, public function.
1161 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1163 * params.def (MAX_PARTITION_SIZE): New param.
1164 * doc/invoke.texi: Document lto-max-partition.
1166 2016-04-27 Richard Biener <rguenther@suse.de>
1169 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1170 function cummulating used_from_other_partition, externally_visible
1171 and force_output from aliases.
1172 (refered_from_nonlocal_var): Likewise.
1173 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1174 node flags properly.
1176 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1178 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1179 (-Wmemset-elt-size): New item.
1181 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
1184 * stor-layout.h (internal_reference_types): Delete.
1185 * stor-layout.c (reference_types_internal): Likewise.
1186 (internal_reference_types): Likewise.
1187 (layout_type) <REFERENCE_TYPE>: Adjust.
1189 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1192 * tree.h (inchash::add_expr): Add FLAGS argument.
1193 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
1194 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
1195 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1196 Formatting fix. Adjust recursive calls. For tcc_comparison,
1197 if swap_tree_comparison (code) is smaller than code, hash that
1198 and arguments in the other order. Hash CONVERT_EXPR the same
1199 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1200 of ADDR_EXPR of decl as the decl itself. Add or remove
1201 OEP_ADDRESS_OF from recursive flags as needed. For
1202 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1203 operands commutatively and only the third one normally.
1204 For internal CALL_EXPR hash in CALL_EXPR_IFN.
1206 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1208 * config/rtems.h (LIB_SPEC): Add -latomic.
1210 2016-04-27 Joel Sherrill <joel@rtems.org>
1212 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1213 xilink.ld and flags not relevant to RTEMS.
1215 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1217 * toplev.c (backend_init_target): Avoid calling init_reload when using
1220 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1222 * reorg.c (try_merge_delay_insns): Declare i and j inside the
1223 for loops rather than one for the whole function.
1225 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1227 * match.pd (X + CST CMP X): New transformation.
1229 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1231 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1232 * fold-const.c (fold_binary_loc): Remove 2 transformations
1233 superseded by match.pd.
1234 * match.pd (x+x -> x*2): Generalize to integers.
1236 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
1238 * config/i386/i386.md (operation on memory peephole): Duplicate an
1239 existing peephole and adapt it to match lea rather than an operation
1242 PR rtl-optimization/57193
1243 * opts.c (default_options_table): Add OPT_frename_registers at -O2
1245 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1247 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1249 * tree-if-conv.c (any_pred_load_store): New static variable.
1250 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
1251 any_pred_load_store instead of and_mask_load_store.
1252 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1253 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1254 (combine_blocks, tree_if_conversion): Ditto.
1256 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1258 PR tree-optimization/70771
1259 PR tree-optimization/70775
1260 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1261 virtual PHI nodes. Delete parameter.
1262 (if_convertible_loop_p_1): Delete argument to above function.
1263 (predicate_all_scalar_phis): Delete code handling single-argument
1265 (tree_if_conversion): Mark and update virtual SSA.
1267 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1270 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1271 (x86_elf_aligned_common): Rename to ...
1272 (x86_elf_aligned_decl_common): ... this.
1273 Add decl arg. Switch to .lbss for largecomm object. Use
1274 LARGECOMM_SECTION_ASM_OP.
1275 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1277 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1278 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1280 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1281 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1283 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1286 * config/i386/i386.c (SECTION_LARGE): Define.
1287 (x86_64_elf_select_section): Set it for large data/bss sections.
1288 Only clear SECTION_WRITE for .lrodata.
1289 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1291 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1292 * varasm.c (default_elf_asm_named_section): Grow flagchars.
1293 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1295 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1296 * doc/tm.texi: Regenerate.
1298 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1301 * configure.ac (--enable-checking): Document extra flag, for
1302 non-release builds default to --enable-checking=yes,extra.
1303 If misc checking and extra checking, define CHECKING_P to 2 instead
1305 * common.opt (fchecking=): Add.
1306 * doc/invoke.texi (-fchecking=): Document.
1307 * doc/install.texi: Document --enable-checking changes.
1308 * configure: Regenerated.
1309 * config.in: Regenerated.
1311 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1313 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1314 attribute instead of which_alternative.
1315 * config/i386/sse.md (*mov<mode>_internal): Ditto.
1316 Use EXT_REX_SSE_REG_P where appropriate.
1318 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1320 * config/i386/predicates.md (const0_operand): Do not match
1321 const_wide_int code.
1322 (const1_operand): Ditto.
1324 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1326 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1327 for SSE constm1 operands and TARGET_AVX512VL.
1328 (*movti_internal): Ditto.
1329 (*mov<mode>_or): Use constm1_operand predicate.
1330 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1331 for SSE vector_all_ones operands and TARGET_AVX512VL.
1332 * config/i386/predicates.md (constm1_operand): New predicate.
1333 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1334 emission of constant -1 load.
1336 2016-04-25 Jason Merrill <jason@redhat.com>
1338 * gdbinit.in: Skip is-a.h.
1340 * attribs.c (register_scoped_attributes): Fix logic.
1341 * attribs.h: Declare register_scoped_attributes.
1343 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1345 * config/rs6000/rs6000-builtin.def: Correct pasto error for
1346 stxvd2x and stxvw4x built-in functions.
1348 2016-04-25 DJ Delorie <dj@redhat.com>
1350 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1351 (ashrhi3): Likewise.
1352 (lshrhi3): Likewise.
1354 2016-04-25 Richard Biener <rguenther@suse.de>
1356 PR tree-optimization/70780
1357 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1359 (compute_antic): Mark blocks with abnormal preds as visited as
1360 they have a final empty antic-in solution already.
1362 2016-04-25 Michael Collison <michael.collison@linaro.org>
1364 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1366 2016-04-25 Michael Collison <michael.collison@linaro.org>
1368 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1369 mode is VQI to improve mixed mode vectorization.
1370 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1371 define_insn to match low half of signed vaddw.
1372 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1373 define_insn to match high half of signed vaddw.
1374 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1375 define_insn to match low half of unsigned vaddw.
1376 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1377 define_insn to match high half of unsigned vaddw.
1378 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1379 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1380 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1382 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1383 * config/arm/predicates.md (vect_par_constant_high): Support
1384 big endian and simplify by calling
1385 arm_simd_check_vect_par_cnst_half
1386 (vect_par_constant_low): Likewise.
1388 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1390 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1391 predicate for operand 2.
1393 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
1394 H.J. Lu <hongjiu.lu@intel.com>
1396 * config/i386/i386-protos.h (standard_sse_constant_p): Add
1397 machine_mode argument.
1398 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1399 constm1_rtx operands. For VOIDmode constants, get mode from
1400 pred_mode. Check mode size if the mode is supported by ABI.
1401 (standard_sse_constant_opcode): Do not use standard_constant_p.
1402 Strictly check ABI support for all-ones operands.
1403 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1404 immediates. Update calls to standard_sse_constant_p.
1405 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1406 (ix86_rtx_costs): Ditto.
1407 * config/i386/i386.md (*movxi_internal_avx512f): Use
1408 nonimmediate_or_sse_const_operand instead of vector_move_operand.
1409 Use (v,BC) alternative instead of (v,C). Use register_operand
1410 checks instead of MEM_P.
1411 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1412 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
1413 isa attribute. Use register_operand checks instead of MEM_P.
1414 (*movti_internal): Use nonimmediate_or_sse_const_operand for
1415 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
1416 alternative and corresponding sse2 isa attribute.
1417 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1418 to standard_sse_constant_p.
1419 (FP constant splitters): Ditto.
1420 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1422 * config/i386/predicates.md (constm1_operand): Remove.
1423 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1424 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1425 vector_all_ones_operand instead of constm1_operand.
1427 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1429 * print-rtl.c (print_rtx_insn_vec): New function.
1430 * print-rtl.h: New prototype.
1431 * store-motion.c (struct st_expr): Make avail_stores a vector.
1432 (st_expr_entry): Adjust.
1433 (free_st_expr_entry): Likewise.
1434 (print_store_motion_mems): Likewise.
1435 (find_moveable_store): Likewise.
1436 (compute_store_table): Likewise.
1437 (delete_store): Likewise.
1438 (build_store_vectors): Likewise.
1440 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1442 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1444 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1446 * vec.h (vec_safe_contains): New function.
1447 (vec::contains): Likewise.
1448 (vec::begin): Likewise.
1449 (vec::end): Likewise.
1451 2016-04-23 Jakub Jelinek <jakub@redhat.com>
1454 * cfgexpand.c (expand_stack_vars): Fix typo.
1456 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1458 * system.h (list, map, set, vector): Include conditionally.
1459 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1460 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1461 * ipa-icf.c (INCLUDE_LIST): Define.
1462 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1463 * config/sh/sh.c (INCLUDE_VECTOR): Define.
1464 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1465 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1466 * cp/logic.cc (INCLUDE_LIST): Define.
1467 * fortran/trans-common.c (INCLUDE_MAP): Define.
1469 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1471 * auto-profile.c: Remove <string.h> include.
1472 * ipa-icf-gimple.c: Remove <list> include.
1473 * diagnostic.c: Remove <new> include.
1474 * genmatch.c: Likewise.
1475 * pretty-print.c: Likewise.
1476 * toplev.c: Likewise
1477 * c/c-objc-common.c: Likewise.
1478 * cp/error.c: Likewise.
1479 * fortran/error.c: Likewise.
1481 2016-04-22 Richard Biener <rguenther@suse.de>
1483 * lto-streamer-in.c (input_ssa_names): Do not allocate
1484 GIMPLE_NOP for all SSA names.
1485 * lto-streamer-out.c (output_ssa_names): Do not output
1486 SSA names that should have been released.
1488 2016-04-22 Richard Biener <rguenther@suse.de>
1490 PR tree-optimization/70740
1491 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1494 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1497 * config/i386/predicates.md (call_insn_operand): Replace
1498 sibcall_memory_operand with memory_operand.
1500 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
1502 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1503 has_single_use() tests.
1504 (register_edge_assert_for_1): Likewise.
1505 (find_assert_locations_1): Check the liveness bitmap instead of
1506 checking has_single_use().
1508 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
1511 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1512 Extract AVX-512BW constraint from AVX.
1514 2016-04-21 Richard Biener <rguenther@suse.de>
1516 PR tree-optimization/70725
1517 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1518 for phi_convertible_by_degenerating_args.
1519 (predicate_all_scalar_phis): Handle single-argument PHIs.
1521 2016-04-21 Richard Biener <rguenther@suse.de>
1524 * fold-const.c (fold_comparison): Return properly typed
1527 2016-04-21 Bin Cheng <bin.cheng@arm.com>
1529 PR tree-optimization/70715
1530 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1531 after expanding BASE using expand_simple_operations.
1533 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1535 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1536 New transformations.
1538 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1540 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1542 2016-04-20 Jan Hubicka <jh@suse.cz>
1544 * ipa-inline.c (can_inline_edge_p): Pass caller info to
1545 ultiimate_alias_target.
1546 (update_callee_keys): Likewise.
1547 (lookup_recursive_calls): Likewise.
1548 (speculation_useful_p): Likewise.
1550 2016-04-20 Jan Hubicka <jh@suse.cz>
1553 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1554 (set_nothrow_flag_1): ... this; handle interposition correctly;
1555 recurse on aliases and thunks.
1556 (cgraph_node::set_nothrow_flag): New.
1557 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1558 functions compiled with non-call exceptions that binds to current
1560 (propagate_nothrow): Be safe WRT interposition.
1561 * cgraph.h (set_nothrow_flag): Update prototype.
1563 2016-04-18 Jan Hubicka <jh@suse.cz>
1565 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1566 max_loop_iterations_int.
1567 (tree_unswitch_outer_loop): Likewise.
1569 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1571 PR tree-optimization/69489
1572 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1573 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1574 Revise dump message.
1575 (if_convertible_bb_p): Remove check on edge count of basic block's
1578 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1580 PR tree-optimization/56625
1581 PR tree-optimization/69489
1582 * tree-data-ref.h (DR_INNERMOST): New macro.
1583 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1584 hashing struct innermost_loop_behavior.
1585 (ref_DR_map): Remove.
1586 (innermost_DR_map): New map.
1587 (baseref_DR_map): Revise comment.
1588 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1589 to innermost_DR_map accroding to its innermost loop behavior.
1590 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1591 to its innermost loop behavior.
1592 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1593 Add initialization for innermost_DR_map. Record memory reference
1594 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1595 have innermost loop behavior.
1596 (if_convertible_loop_p): Remove release for ref_DR_map. Release
1599 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
1601 * config/i386/i386.md (*lea<mode>_general_1): Rename from
1602 *lea_general_1. Use explicit SWI12 mode interator.
1603 (*lea<mode>_general_2): Rename from *lea_general_2.
1604 Use explicit SWI12 mode interator.
1605 (*lea<mode>_general_3): Rename from *lea_general_3.
1606 Use explicit SWI12 mode interator.
1607 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1608 Use explicit SWI12 mode interator.
1609 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1610 Use explicit SWI48 mode interator.
1612 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1614 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1615 Short-cut unaligned load and store cases. Handle all integer
1617 (ix86_expand_vector_move_misalign): Short-cut unaligned load
1618 and store cases. Call ix86_avx256_split_vector_move_misalign
1619 directly without checking mode class.
1621 2016-04-20 Andrew Pinski <apinski@cavium.com>
1622 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1625 * config/aarch64/aarch64.md (sibcall): Force call
1626 address to be DImode for ILP32.
1627 (sibcall_value): Likewise.
1629 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1631 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1633 2016-04-20 Richard Biener <rguenther@suse.de>
1635 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1636 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1637 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1638 (maybe_push_res_to_seq): Adjust.
1639 * gimple-fold.c (maybe_build_generic_op): Likewise.
1641 2016-04-20 Marek Polacek <polacek@redhat.com>
1643 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1646 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
1648 * config/i386/sse.md (vec_unpacks_lo_hi): Always
1649 use kmovw to support AVX512F target.
1651 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1653 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1655 2016-04-20 Marek Polacek <polacek@redhat.com>
1657 PR tree-optimization/70725
1658 * tree-if-conv.c (is_false_predicate): New function.
1659 (predicate_mem_writes): Use it.
1661 2016-04-20 Richard Biener <rguenther@suse.de>
1663 PR tree-optimization/70726
1664 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1665 shift amounts from a pattern stmt operand.
1667 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1670 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1671 stack_restore_from_fpr pattern when restoring r15.
1672 (s390_optimize_prologue): Strip away the memory barrier in the
1673 parallel when trying to get rid of restore insns.
1674 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1675 definition for loading the stack pointer from an FPR. Compared to
1676 the normal move insn this pattern includes a full memory barrier.
1678 2016-04-19 Jakub Jelinek <jakub@redhat.com>
1681 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1682 implicitly linear or lastprivate iterator on the outer context.
1684 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1686 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1688 * config/i386/i386.md (ssememalign): Removed.
1689 * config/i386/sse.md: Remove ssememalign attribute from patterns.
1691 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1694 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1695 const short * to __builtin_ia32_loaddquhi512_mask.
1696 (_mm512_maskz_loadu_epi16): Likewise.
1697 (_mm512_mask_storeu_epi16): Pass short * to
1698 __builtin_ia32_storedquhi512_mask.
1699 (_mm512_mask_loadu_epi8): Pass const char * to
1700 __builtin_ia32_loaddquqi512_mask.
1701 (_mm512_maskz_loadu_epi8): Likewise.
1702 (_mm512_mask_storeu_epi8): Pass char * to
1703 __builtin_ia32_storedquqi512_mask.
1704 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1705 const double * to __builtin_ia32_loadupd512_mask.
1706 (_mm512_mask_loadu_pd): Likewise.
1707 (_mm512_maskz_loadu_pd): Likewise.
1708 (_mm512_storeu_pd): Pass double * to
1709 __builtin_ia32_storeupd512_mask.
1710 (_mm512_mask_storeu_pd): Likewise.
1711 (_mm512_loadu_ps): Pass const float * to
1712 __builtin_ia32_loadups512_mask.
1713 (_mm512_mask_loadu_ps): Likewise.
1714 (_mm512_maskz_loadu_ps): Likewise.
1715 (_mm512_storeu_ps): Pass float * to
1716 __builtin_ia32_storeups512_mask.
1717 (_mm512_mask_storeu_ps): Likewise.
1718 (_mm512_mask_loadu_epi64): Pass const long long * to
1719 __builtin_ia32_loaddqudi512_mask.
1720 (_mm512_maskz_loadu_epi64): Likewise.
1721 (_mm512_mask_storeu_epi64): Pass long long *
1722 to __builtin_ia32_storedqudi512_mask.
1723 (_mm512_loadu_si512): Pass const int * to
1724 __builtin_ia32_loaddqusi512_mask.
1725 (_mm512_mask_loadu_epi32): Likewise.
1726 (_mm512_maskz_loadu_epi32): Likewise.
1727 (_mm512_storeu_si512): Pass int * to
1728 __builtin_ia32_storedqusi512_mask.
1729 (_mm512_mask_storeu_epi32): Likewise.
1730 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1731 char * to __builtin_ia32_storedquqi256_mask.
1732 (_mm_mask_storeu_epi8): Likewise.
1733 (_mm256_mask_loadu_epi16): Pass const short * to
1734 __builtin_ia32_loaddquhi256_mask.
1735 (_mm256_maskz_loadu_epi16): Likewise.
1736 (_mm_mask_loadu_epi16): Pass const short * to
1737 __builtin_ia32_loaddquhi128_mask.
1738 (_mm_maskz_loadu_epi16): Likewise.
1739 (_mm256_mask_loadu_epi8): Pass const char * to
1740 __builtin_ia32_loaddquqi256_mask.
1741 (_mm256_maskz_loadu_epi8): Likewise.
1742 (_mm_mask_loadu_epi8): Pass const char * to
1743 __builtin_ia32_loaddquqi128_mask.
1744 (_mm_maskz_loadu_epi8): Likewise.
1745 (_mm256_mask_storeu_epi16): Pass short * to.
1746 __builtin_ia32_storedquhi256_mask.
1747 (_mm_mask_storeu_epi16): Pass short * to.
1748 __builtin_ia32_storedquhi128_mask.
1749 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1750 const double * to __builtin_ia32_loadupd256_mask.
1751 (_mm256_maskz_loadu_pd): Likewise.
1752 (_mm_mask_loadu_pd): Pass onst double * to
1753 __builtin_ia32_loadupd128_mask.
1754 (_mm_maskz_loadu_pd): Likewise.
1755 (_mm256_mask_storeu_pd): Pass double * to
1756 __builtin_ia32_storeupd256_mask.
1757 (_mm_mask_storeu_pd): Pass double * to
1758 __builtin_ia32_storeupd128_mask.
1759 (_mm256_mask_loadu_ps): Pass const float * to
1760 __builtin_ia32_loadups256_mask.
1761 (_mm256_maskz_loadu_ps): Likewise.
1762 (_mm_mask_loadu_ps): Pass const float * to
1763 __builtin_ia32_loadups128_mask.
1764 (_mm_maskz_loadu_ps): Likewise.
1765 (_mm256_mask_storeu_ps): Pass float * to
1766 __builtin_ia32_storeups256_mask.
1767 (_mm_mask_storeu_ps): ass float * to
1768 __builtin_ia32_storeups128_mask.
1769 (_mm256_mask_loadu_epi64): Pass const long long * to
1770 __builtin_ia32_loaddqudi256_mask.
1771 (_mm256_maskz_loadu_epi64): Likewise.
1772 (_mm_mask_loadu_epi64): Pass const long long * to
1773 __builtin_ia32_loaddqudi128_mask.
1774 (_mm_maskz_loadu_epi64): Likewise.
1775 (_mm256_mask_storeu_epi64): Pass long long * to
1776 __builtin_ia32_storedqudi256_mask.
1777 (_mm_mask_storeu_epi64): Pass long long * to
1778 __builtin_ia32_storedqudi128_mask.
1779 (_mm256_mask_loadu_epi32): Pass const int * to
1780 __builtin_ia32_loaddqusi256_mask.
1781 (_mm256_maskz_loadu_epi32): Likewise.
1782 (_mm_mask_loadu_epi32): Pass const int * to
1783 __builtin_ia32_loaddqusi128_mask.
1784 (_mm_maskz_loadu_epi32): Likewise.
1785 (_mm256_mask_storeu_epi32): Pass int * to
1786 __builtin_ia32_storedqusi256_mask.
1787 (_mm_mask_storeu_epi32): Pass int * to
1788 __builtin_ia32_storedqusi128_mask.
1789 * config/i386/i386-builtin-types.def (PCSHORT): New.
1791 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1792 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1793 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1794 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1795 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1796 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1797 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1798 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1799 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1800 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1801 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1802 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1803 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1804 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1805 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1806 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1807 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1808 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1809 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1810 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1811 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1812 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1813 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1814 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1815 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1816 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1817 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1818 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1819 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1820 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1821 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1822 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1823 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1824 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1825 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1826 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1827 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1828 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1829 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1830 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1831 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1832 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1833 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1834 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1835 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1836 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1837 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1838 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1839 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1841 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1842 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1844 (ix86_expand_vector_move_misalign): Likewise.
1845 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1846 to scalar function prototype for unaligned load/store builtins.
1847 (ix86_expand_special_args_builtin): Updated.
1848 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1849 (UNSPEC_STOREU): Likewise.
1850 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1851 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1852 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1853 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1854 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1855 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1856 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1857 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1858 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1859 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1860 (<avx512>_storedqu<mode>_mask): Likewise.
1861 (*sse4_2_pcmpestr_unaligned): Likewise.
1862 (*sse4_2_pcmpistr_unaligned): Likewise.
1863 (*mov<mode>_internal): Renamed to ...
1864 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1865 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1866 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1867 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1869 2016-04-19 Richard Biener <rguenther@suse.de>
1871 PR tree-optimization/70171
1872 * tree-ssa-phiprop.c: Include stor-layout.h.
1873 (phiprop_insert_phi): Handle the aggregate copy case.
1874 (propagate_with_phi): Likewise.
1876 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1878 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1879 instead of simplify_gen_subreg (... , 0).
1880 (ix86_delegitimize_address): Ditto.
1881 (ix86_split_divmod): Ditto.
1882 (ix86_split_copysign_const): Ditto.
1883 (ix86_split_copysign_var): Ditto.
1884 (ix86_expand_args_builtin): Ditto.
1885 (ix86_expand_round_builtin): Ditto.
1886 (ix86_expand_special_args_builtin): Ditto.
1887 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1888 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1889 (udivmodqi4): Ditto.
1890 (absneg splitters): Ditto.
1891 (*jcc_bt<mode>_1): Ditto.
1893 2016-04-19 Richard Biener <rguenther@suse.de>
1895 PR tree-optimization/70724
1896 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1897 restoring out from ...
1898 (free_scc_vn): ... here.
1899 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1900 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1902 (pass_fre::execute): Restore SSA info.
1904 2016-04-19 Richard Biener <rguenther@suse.de>
1906 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1907 * gimple-walk.c (walk_gimple_op): Initialize it.
1908 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1909 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1910 remapping SSA names of defs.
1911 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1914 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1917 * lra-constraints.c (equiv_substition_p): New.
1918 (process_alt_operands): Use it.
1919 (swap_operands): Swap it.
1920 (curr_insn_transform): Update it.
1922 2016-04-18 Michael Matz <matz@suse.de>
1924 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1925 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1926 * tree-core.h (tree_type_common.align): Use bit-field.
1927 (tree_type_common.spare): New.
1928 (tree_decl_common.off_align): Make smaller.
1929 (tree_decl_common.align): Use bit-field.
1931 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1932 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1933 (scan_sharing_clauses): Ditto.
1934 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1935 (omp_finish_file): Ditto.
1936 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1937 (layout_decl): Ditto.
1938 (relayout_decl): Ditto.
1939 (finalize_record_size): Use SET_TYPE_ALIGN.
1940 (finalize_type_size): Ditto.
1941 (finish_builtin_struct): Ditto.
1942 (layout_type): Ditto.
1943 (initialize_sizetypes): Ditto.
1944 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1945 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1946 (lookup_field_for_decl): Use SET_DECL_ALIGN.
1947 (get_chain_field): Ditto.
1948 (get_trampoline_type): Ditto.
1949 (get_nl_goto_field): Ditto.
1950 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1952 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1953 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1954 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1955 (build_qualified_type): Use SET_TYPE_ALIGN.
1956 (build_aligned_type, build_range_type_1): Ditto.
1957 (build_atomic_base): Ditto.
1958 (build_common_tree_nodes): Ditto.
1959 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1960 (expand_one_stack_var_at): Ditto.
1961 * coverage.c (build_var): Use SET_DECL_ALIGN.
1962 * except.c (init_eh): Ditto.
1963 * function.c (assign_parm_setup_block): Ditto.
1964 * symtab.c (increase_alignment_1): Ditto.
1965 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1966 * tree-vect-stmts.c (ensure_base_align): Ditto.
1967 * varasm.c (align_variable): Ditto.
1968 (assemble_variable): Ditto.
1969 (build_constant_desc): Ditto.
1970 (output_constant_def_contents): Ditto.
1972 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1973 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1974 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1975 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1976 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1978 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
1981 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1982 replace %vmovsd with "%vmovq".
1983 (vec_concatv2df): Likewise.
1985 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
1987 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1988 (*vec_extractv2si_0): Ditto.
1989 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1990 (zero_extended_scalar_load_operand splitters): Ditto.
1991 (vec_extract splitters): Ditto.
1992 (*vec_extractv4si_0_zext): Ditto.
1993 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1995 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1996 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1997 (*sse4_1_extractps): Use lowpart_subreg.
1999 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2001 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2003 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2004 Mention Solaris 11 packaging changes.
2005 Update gas and gld requirements.
2006 Remove reference to pre-Solaris 10 bug.
2007 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2009 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2012 2016-04-17 Jan Hubicka <jh@suse.cz>
2014 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2015 max_loop_iterations_int.
2017 2016-04-18 Richard Biener <rguenther@suse.de>
2019 PR tree-optimization/43434
2020 * tree-ssa-structalias.c (struct vls_data): New.
2021 (visit_loadstore): Handle all pointer-based accesses.
2022 (compute_dependence_clique): Compute a bitmap of restrict tags
2023 assigned bases and pass it to visit_loadstore.
2025 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
2028 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2029 armv8.1-a and armv8.1-a+crc.
2031 2016-04-18 Richard Biener <rguenther@suse.de>
2033 PR tree-optimization/70701
2034 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2035 references after translating through a memcpy.
2037 2016-04-18 Richard Biener <rguenther@suse.de>
2039 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2040 (compute_antic): ... here. For partial antic use regular
2041 postorder and scrap iteration.
2042 (compute_partial_antic_aux): Remove unused return value.
2043 (init_pre): Do not allocate postorder.
2044 (fini_pre): Do not free postorder.
2046 2016-04-18 Richard Biener <rguenther@suse.de>
2049 * expmed.c (extract_bit_field_1): Remove broken case
2050 using a wider MODE_INT mode.
2052 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
2054 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2055 unless compiling with at least GCC-4.8.
2057 2016-04-17 Jan Hubicka <jh@suse.cz>
2060 * graphite.c (graphite_finalize): Update call to
2061 tree_estimate_probability.
2062 * predict.h (tree_estimate_probability): Update prototype.
2064 2016-04-17 Jan Hubicka <jh@suse.cz>
2066 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2067 (tree_estimate_probability): Likewise.
2068 (pass_profile::execute): Update.
2069 (report_predictor_hitrates): New function.
2070 * profile.c (compute_branch_probabilities): Use it.
2071 * predict.h (report_predictor_hitrates): Declare.
2073 2016-04-17 Jan Hubicka <jh@suse.cz>
2076 * cgraph.h (cgraph_node::set_const_flag,
2077 cgraph_node::set_pure_flag): Update prototype to return bool;
2079 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2080 of interposable symbol are interposable, too.
2081 (cgraph_set_const_flag_1): Rename to ...
2082 (set_const_flag_1): ... this one; change to self recursive function
2083 instead of call_for_symbol_thunks_and_aliases. Handle correctly
2084 clearnig the flag in all variants and also virtual thunks of const
2085 functions are pure; track if any change was done.
2086 (cgraph_node::set_const_flag): Update.
2087 (struct set_pure_flag_info): New struct.
2088 (cgraph_set_pure_flag_1): Rename to ...
2089 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2090 rather than pointer encoded flags; track if any changes was done;
2091 handle correctly clearning flag and setting flag of aliases already
2093 (cgraph_node::set_pure_flag): Update.
2094 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2096 2016-04-17 Tom de Vries <tom@codesourcery.com>
2099 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2102 2016-04-17 Tom de Vries <tom@codesourcery.com>
2104 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2105 '{}<> ' as escape-for-record.
2107 2016-04-17 Tom de Vries <tom@codesourcery.com>
2109 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2112 2016-04-17 Tom de Vries <tom@codesourcery.com>
2115 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2116 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2117 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2118 * passes.c (finish_optimization_passes): Only call
2119 finish_graph_dump_file if dfi->graph_dump_initialized.
2120 (execute_function_dump, pass_init_dump_file): Use
2121 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2123 2016-04-17 Tom de Vries <tom@codesourcery.com>
2125 PR tree-optimization/70256
2126 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2127 (debug_varmap): New function.
2129 2016-04-17 Tom de Vries <tom@codesourcery.com>
2132 * passes.c (pass_manager::register_pass): Propagate pflags.
2134 2016-04-17 Tom de Vries <tom@codesourcery.com>
2137 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2138 * passes.c (pass_manager::pass_manager): Declare and init p_start in
2139 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
2140 check if it's equal to p_start.
2141 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2143 2016-04-15 Jan Hubicka <jh@suse.cz>
2146 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2147 function does not bind to current def.
2148 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2149 handle conservatively calls to functions that does not need to bind
2151 (check_call): Update call of worse_state.
2152 (ignore_edge_for_nothrow): Update.
2153 (ignore_edge_for_pure_const): Likewise.
2154 (propagate_pure_const): Update calls to worse_state.
2155 (skip_function_for_local_pure_const): Reformat comments.
2157 2016-04-15 Jan Hubicka <jh@suse.cz>
2160 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2161 (cgraph_node::function_symbol): Likewise.
2162 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2163 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2164 (symtab_node::ultimate_alias_target): Add REF parameter.
2165 (symtab_node::binds_to_current_def_p): Declare.
2166 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2167 (cgraph_node::function_symbol): Likewise.
2168 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2169 (cgraph_node::get_availability): Likewise.
2170 (cgraph_edge::binds_to_current_def_p): New inline function.
2171 (varpool_node::get_availability): Add REF parameter.
2172 (varpool_node::ultimate_alias_target): Likewise.
2173 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2174 (symtab_node::binds_to_current_def_p): Likewise.
2175 * varpool.c (varpool_node::get_availability): Likewise.
2177 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2180 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2181 Fix mode size check.
2183 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2185 * BASE-VER: Set to 7.0.0.
2187 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2189 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2191 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2193 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2194 architecture revisions.
2196 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2198 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2199 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2200 * config/i386/i386.md (stack decrement to push peepholes): Guard
2201 with !x86_using_red_zone ().
2203 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2206 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2207 to dump_generic_node.
2208 (NIY): Pass also flags to do_niy.
2210 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2212 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2213 (simd_clone_vector_of_formal_parm_types)
2214 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2215 (simd_clone_mangle, simd_clone_create)
2216 (simd_clone_adjust_return_type, create_tmp_simd_array)
2217 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2218 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2219 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2220 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2221 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2222 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2223 * omp-simd-clone.c: ... this new file.
2224 (simd_clone_vector_of_formal_parm_types): Make it static.
2225 * Makefile.in (OBJS): Add omp-simd-clone.o.
2227 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2230 * config/i386/sse.md: Use proper memory operand modifiers.
2233 2016-04-15 Richard Biener <rguenther@suse.de>
2234 Alan Modra <amodra@gmail.com>
2236 PR tree-optimization/70130
2237 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2238 when alignment stays not the same and no not use the realign
2241 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2244 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2245 direct move handlers for KFmode. Change TFmode handlers test from
2246 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2248 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2251 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2252 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2253 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2254 * tree-ssa-live.c (remove_unused_scope_block_p): When
2255 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2256 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2257 block_ultimate_origin is FUNCTION_DECL.
2258 (remove_unused_locals): If current_function_decl is
2259 polymorphic_ctor_dtor_p, pass initial true to
2260 remove_unused_scope_block_p' is_ctor_dtor_block.
2262 2016-04-14 Martin Sebor <msebor@redhat.com>
2267 * doc/extend.texi (Variable Length): Revert.
2269 2016-04-14 Marek Polacek <polacek@redhat.com>
2270 Jan Hubicka <hubicka@ucw.cz>
2273 * tree.c (verify_type): Disable the canonical type of main variant
2276 2016-04-14 Jason Merrill <jason@redhat.com>
2278 * cfgexpand.c, expr.c: Revert previous change.
2280 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2283 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2284 when building a mem ref for the incoming reduction variable.
2286 2016-04-14 Richard Biener <rguenther@suse.de>
2288 PR tree-optimization/70614
2289 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2290 loop if the evolution dropped to chrec_dont_know.
2291 (interpret_condition_phi): Likewise.
2293 2016-04-14 Richard Biener <rguenther@suse.de>
2295 PR tree-optimization/70623
2296 * tree-ssa-pre.c (changed_blocks): Make global ...
2297 (compute_antic): ... local here. Move and fix worklist
2298 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2299 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2300 worklist handling, dump when ANTIC_IN changed.
2301 (compute_partial_antic_aux): Remove worklist handling.
2302 (init_pre): Do not compute post dominators. Add a comment about
2303 the CFG order chosen.
2304 (fini_pre): Do not free post dominators.
2306 2016-04-13 Martin Sebor <msebor@redhat.com>
2311 * doc/extend.texi (Variable Length): Document C++ specifics.
2313 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2316 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2317 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2318 eh edges have been purged.
2321 * tree-sra.c (create_access_replacement,
2322 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2324 * tree-pretty-print.c (dump_fancy_name): New function.
2325 (dump_decl_name, dump_generic_node): Use it.
2327 2016-04-13 Jason Merrill <jason@redhat.com>
2329 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2330 * expr.c (expand_expr_real_1): Likewise.
2332 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2334 * config/i386/i386.md (kunpckhi): Swap operands.
2335 (kunpcksi): Likewise.
2336 (kunpckdi): Likewise.
2337 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2338 (vec_pack_trunc_<mode>): Likewise.
2340 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2343 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2346 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2347 gimplification turns some element into non-constant.
2350 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2351 * explow.c (convert_memory_address_addr_space_1): No longer static,
2352 add NO_EMIT argument and don't call convert_modes if true, pass
2353 it down recursively, remove break after return.
2354 (convert_memory_address_addr_space): Adjust caller.
2355 * simplify-rtx.c (simplify_unary_operation_1): Call
2356 convert_memory_address_addr_space_1 instead of convert_memory_address,
2357 if it returns NULL, don't simplify.
2359 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2362 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2364 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2366 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2367 Bump the upper SIMDLEN limits, so that if the return type or
2368 characteristic type if the return type is void can be passed in
2369 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2372 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2375 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2376 Do not use "=" constraint on an input constraint.
2377 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2378 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2379 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2380 generates (neg (abs ...)) instead of (abs ...).
2382 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2384 PR rtl-optimization/70596
2385 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2386 just invalidate LRA data and reset them. Adjust dump wording.
2388 2016-04-12 Martin Liska <mliska@suse.cz>
2391 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2393 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2395 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2396 max_loop_iterations_int.
2397 (tree_unswitch_outer_loop): Likewise.
2398 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2399 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2401 2016-04-12 Tom de Vries <tom@codesourcery.com>
2403 PR tree-optimization/68756
2404 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2405 instead of new_name.
2407 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2409 PR tree-optimization/70602
2410 * tree-sra.c (generate_subtree_copies): Don't write anything into
2411 constant pool decls.
2413 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2414 regardless whether there are depend clauses or not.
2416 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2419 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2420 target attribute and pragma from changing the -mfloat128
2421 and -mfloat128-hardware options.
2423 * doc/extend.texi (Additional Floating Types): Document PowerPC
2424 __float128 restrictions.
2426 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2429 * config/aarch64/driver-aarch64.c
2430 (aarch64_get_extension_string_for_isa_flags): New.
2431 (arch_extension): Rename to...
2432 (aarch64_arch_extension): ...This.
2433 (ext_to_feat_string): Rename to...
2434 (aarch64_extensions): ...This.
2435 (aarch64_core_data): Keep track of architecture extension flags.
2436 (cpu_data): Rename to...
2437 (aarch64_cpu_data): ...This.
2438 (aarch64_arch_driver_info): Keep track of architecture extension
2440 (get_arch_name_from_id): Rename to...
2441 (get_arch_from_id): ...This, change return type.
2442 (host_detect_local_cpu): Update and reformat for renames, handle
2443 extensions through common infrastructure.
2445 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2448 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2449 track of a canonical flag name.
2450 (all_extensions): Likewise.
2451 (arch_to_arch_name): Also track extension flags enabled by the arch.
2452 (all_architectures): Likewise.
2453 (aarch64_parse_extension): Move to here.
2454 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2456 (aarch64_rewrite_selected_cpu): Update for above change.
2457 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2458 are handled, such that the single explicit value enabled by an
2459 extension is kept seperate from the implicit values it also enables.
2460 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2462 (aarch64_parse_extension): New.
2463 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2464 here to config/aarch64/aarch64-protos.h.
2465 (aarch64_parse_extension): Move from here to
2466 common/config/aarch64/aarch64-common.c.
2467 (aarch64_option_print): Update.
2468 (aarch64_declare_function_name): Likewise.
2469 (aarch64_start_file): Likewise.
2470 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2471 the canonical flag for extensions.
2472 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2475 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2477 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2480 2016-04-09 Tom de Vries <tom@codesourcery.com>
2482 PR tree-optimization/68953
2483 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2484 first to last subscript.
2486 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2488 PR tree-optimization/70586
2489 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2492 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2496 PR tree-optimization/70373
2500 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2501 clauses for acc parallel reductions as necessary. Error on those
2503 * omp-low.c (scan_sharing_clauses): Don't install variables which
2504 are used in acc parallel reductions.
2505 (lower_rec_input_clauses): Remove dead code.
2506 (lower_oacc_reductions): Add support for reference reductions.
2507 (lower_reduction_clauses): Remove dead code.
2508 (lower_omp_target): Don't remap variables appearing in acc parallel
2510 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2512 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2515 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2516 with multiple SSA_NAME defs, force the outputs other than first
2517 to be live before calling live_track_process_def on each output.
2519 PR rtl-optimization/70574
2520 * fwprop.c (forward_propagate_and_simplify): Don't add
2521 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2522 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2523 paradoxical subregs within *loc.
2525 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2527 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2528 -ftree-parallelize-loops={0,1}.
2529 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2530 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2531 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2532 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2533 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2535 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2538 * asan.c (instrument_derefs): If we get unknown location, extract it
2540 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2542 2016-04-08 Tom de Vries <tom@codesourcery.com>
2544 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2545 implicit firstprivate clause.
2547 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2550 * config/arm/thumb2.md (tst + branch-> lsls + branch
2551 peephole below *orsi_not_shiftsi_si): Require that condition
2552 register is dead after the peephole.
2553 (second peephole after the above): Likewise.
2555 2016-04-08 Alan Modra <amodra@gmail.com>
2558 * builtins.c (fold_builtin_classify): For IBM extended precision,
2559 look at just the high-order double to test for NaN.
2560 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2561 test just the high double for Inf but both doubles for subnormal
2564 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2566 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2567 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2568 node->simdclone->mask_mode != VOIDmode masks.
2569 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2570 earlier, use it instead of node->simdclone.
2571 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2572 Set clonei->mask_mode.
2574 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2577 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2578 Pass it through to cp_parser_already_scoped_statement.
2579 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2580 it through to cp_parser_statement.
2581 (cp_parser_statement): Pass IF_P through to
2582 cp_parser_iteration_statement.
2583 (cp_parser_pragma): Adjust call to
2584 cp_parser_iteration_statement.
2586 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2589 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2590 resolve a future -Wparentheses warning.
2591 * omp-low.c (scan_sharing_clauses): Likewise.
2592 * tree-parloops.c (eliminate_local_variables): Likewise.
2594 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2596 PR rtl-optimization/70398
2597 * lra-constraints.c (process_address_1): Check zero scale and code
2598 for reloading with zero scale.
2600 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2602 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2603 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2605 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2607 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2608 Add support for AVX512F clones, include them by default for
2609 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2610 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2614 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2615 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2616 firstprivate clauses.
2617 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2618 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2619 (lower_omp_target): Set TREE_NO_WARNING for
2620 non-addressable possibly uninitialized vars which are copied into
2621 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2623 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
2625 * config/pa/predicates.md (integer_store_memory_operand): Accept
2626 REG+D operands with a large offset when reload_in_progress is true.
2627 (floating_point_store_memory_operand): Likewise.
2629 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2632 * match.pd (nested int casts): Limit to GIMPLE.
2634 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
2637 * ipa-devirt.c (maybe_record_node): Fix comment; use
2638 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2640 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2642 PR rtl-optimization/70542
2643 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2644 if there are any uses other than insn or debug insns.
2646 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
2647 Jakub Jelinek <jakub@redhat.com>
2649 PR tree-optimization/70509
2650 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2651 Shift HOST_WIDE_INT_1U instead of 1.
2653 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
2655 PR tree-optimization/70509
2656 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2657 of the vector base type for index.
2659 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
2662 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2664 2016-04-05 Richard Biener <rguenther@suse.de>
2666 PR tree-optimization/70526
2667 * tree-sra.c (build_ref_for_offset): Use prev_base to
2668 extract the alias pointer type.
2670 2016-04-05 Richard Biener <rguenther@suse.de>
2672 * dse.c (struct store_info): Remove alias_set member.
2673 (struct read_info_type): Likewise.
2674 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2675 spill_deleted, clear_alias_set_lookup): Remove.
2676 (get_group_info): Remove dead base == NULL_RTX case.
2677 (dse_step0): Remove initialization of removed variables.
2678 (delete_dead_store_insn): Reomve alias set dumping.
2679 (free_read_records): Remove alias_set handling.
2680 (canon_address): Remove alias_set_out parameter.
2681 (record_store): Remove spill_alias_set, it's always zero.
2682 (check_mem_read_rtx): Likewise.
2683 (dse_step2): Rename from ...
2684 (dse_step2_nospill): ... this. Adjust.
2685 (scan_stores): Rename from ...
2686 (scan_stores_nospill): ... this.
2687 (scan_reads): Rename from ...
2688 (scan_reads_nospill): ... this.
2689 (scan_stores_spill, scan_reads_spill): Remove.
2690 (dse_step3_scan): Remove for_spills argument which is always false.
2691 (dse_step3): Likewise.
2692 (dse_step5): Rename from ...
2693 (dse_step5_nospill): ... this. Remove alias_set handling.
2694 (rest_of_handle_dse): Adjust.
2696 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2699 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2700 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2701 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2702 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2704 2016-04-05 Richard Biener <rguenther@suse.de>
2707 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2708 non-register type temporaries into SSA.
2710 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
2713 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2714 calls when sanitizing.
2715 (possible_polymorphic_call_target_p): Fix formatting.
2717 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2718 Jakub Jelinek <jakub@redhat.com>
2721 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2722 to ensure a call statement is compatible with a built-in's
2724 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2727 2016-04-04 Richard Biener <rguenther@suse.de>
2729 PR rtl-optimization/70484
2730 * rtl.h (canon_output_dependence): Declare.
2731 * alias.c (canon_output_dependence): New function.
2732 * dse.c (record_store): Use canon_output_dependence rather
2733 than canon_true_dependence.
2735 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2738 * cgraph.h (symtab_node::copy_visibility_from): New function.
2739 * symtab.c (symtab_node::copy_visibility_from): New function.
2740 * ipa-visibility.c (optimize_weakref): New function.
2741 (function_and_variable_visibility): Use it.
2743 2016-04-04 Martin Liska <mliska@suse.cz>
2746 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2747 value that is really in range handled by SBR instruction.
2748 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2749 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2750 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2752 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
2756 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2757 set, but not for SP_REG operands.
2759 2016-04-02 Martin Sebor <msebor@redhat.com>
2762 * fold-const.c (maybe_nonzero_address): New function.
2763 (fold_comparison): Call it. Fold equality and relational
2764 expressions involving null pointers.
2765 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2767 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
2769 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2770 the "Y" constraint (scalar FP 0.0 immediate).
2772 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2773 Add the "const_double" to the list of operand constraints.
2775 2016-04-01 Jakub Jelinek <jakub@redhat.com>
2777 PR rtl-optimization/70467
2778 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2779 If low word of the last operand is 0, just emit addition/subtraction
2782 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2785 * config/s390/s390.c (s390_expand_insv): Check for everything
2786 constant instead of just VOIDmode stuff.
2788 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2791 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2793 2016-04-01 Nathan Sidwell <nathan@acm.org>
2795 * tree.def (TRY_CATCH_EXPR): Correct documentation.
2797 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
2799 PR rtl-optimization/70461
2800 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2803 2016-03-31 Martin Liska <mliska@suse.cz>
2806 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2807 a tree value or an immediate integer value to a buffer
2808 that is eventually copied to a BRIG section.
2809 (emit_immediate_operand): Call the function here.
2810 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2811 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2812 of class' fields that are removed.
2813 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2814 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2815 m_brig_repr_size fields.
2817 2016-03-31 Martin Liska <mliska@suse.cz>
2820 * hsa-gen.c (hsa_function_representation::update_dominance): New
2822 (convert_addr_to_flat_segment): Likewise.
2823 (gen_hsa_memory_set): New alignment argument.
2824 (gen_hsa_ctor_assignment): Likewise.
2825 (gen_hsa_insns_for_single_assignment): Provide alignment
2826 to gen_hsa_ctor_assignment.
2827 (gen_hsa_insns_for_direct_call): Add new argument.
2828 (expand_lhs_of_string_op): New function.
2829 (expand_string_operation_builtin): Likewise.
2830 (expand_memory_copy): New function.
2831 (expand_memory_set): New function.
2832 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2833 (convert_switch_statements): Change signature.
2834 (generate_hsa): Use a return value of the function.
2835 (pass_gen_hsail::execute): Do not call
2836 convert_switch_statements here.
2837 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2838 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2839 (hsa_function_representation::update_dominance): New function.
2841 2016-03-31 Martin Liska <mliska@suse.cz>
2844 * hsa-brig.c (emit_directive_variable): Emit alignment
2845 according to hsa_symbol::m_align.
2846 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2847 (dump_hsa_symbol): Dump alignment of HSA symbols.
2848 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2849 (gen_hsa_addr_with_align): New function.
2850 (hsa_bitmemref_alignment): Use newly added function.
2851 (gen_hsa_insns_for_load): Likewise.
2852 (gen_hsa_insns_for_store): Likewise.
2853 (gen_hsa_memory_copy): New argument added.
2854 (gen_hsa_insns_for_single_assignment): Respect
2855 alignment for assignments processed via gen_hsa_memory_copy.
2856 (gen_hsa_insns_for_direct_call): Likewise.
2857 (gen_hsa_insns_for_return): Likewise.
2858 (gen_function_def_parameters): Set default alignment.
2859 * hsa.c (hsa_object_alignment): New function.
2860 (hsa_byte_alignment): Pasted function.
2861 * hsa.h (hsa_symbol::m_align): New field.
2863 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2865 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2866 scratch field for goto case.
2868 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2870 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2872 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2875 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2876 (scalar_chain::convert_insn): Call convert_op for reg
2877 moves to handle undefined registers.
2879 2016-03-31 Nathan Sidwell <nathan@acm.org>
2882 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2883 Assert we don't want to move backwards.
2885 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2888 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2890 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2892 PR rtl-optimization/70460
2893 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2894 with operand from REG_LABEL_OPERAND, instead substitute
2895 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2896 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2898 2016-03-31 Martin Liska <mliska@suse.cz>
2900 * passes.c (execute_one_pass): Do not call
2901 todo_after for a discarded function.
2903 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2905 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2906 (no_cost, infinite_cost): Initialize the new field.
2907 (get_computation_cost_at): Record setup cost.
2908 (determine_use_iv_cost_address): Skip cost computation for sub
2909 uses if we can estimate it without losing accuracy.
2911 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2913 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2915 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2916 max_loop_iterations_int.
2917 (tree_unswitch_outer_loop): Likewise.
2918 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2919 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2921 2016-03-30 Richard Biener <rguenther@suse.de>
2924 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2926 2016-03-30 Jakub Jelinek <jakub@redhat.com>
2929 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2930 in gen_blendm expander.
2932 2016-03-30 Nick Clifton <nickc@redhat.com>
2935 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2936 case where we are already provided with an SImode SUBREG.
2938 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
2941 * config/i386/i386.c (ix86_expand_epilogue): Properly check
2942 conflict between DRAP register and __builtin_eh_return.
2944 2016-03-30 Michael Matz <matz@suse.de>
2945 Richard Biener <rguenther@suse.de>
2948 * ipa-polymorphic-call.c (struct type_change_info): Change
2949 speculative to an unsigned allowing to limit the work we do.
2950 (csftc_abort_walking_p): New inline function..
2951 (check_stmt_for_type_change): Limit the number of may-defs
2952 skipped for speculative devirtualization to
2953 max-speculative-devirt-maydefs.
2954 * params.def (max-speculative-devirt-maydefs): New param.
2955 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2957 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
2960 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2963 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
2965 PR tree-optimization/59124
2966 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2967 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2969 2016-03-29 Jeff Law <law@redhat.com>
2971 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2973 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2975 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2978 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2980 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2981 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2982 gcrt0.o if linking dynamically.
2984 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2987 * ipa-devirt.c (methods_equal_p): New function.
2988 (compare_virtual_tables): Use it.
2989 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2990 * cgraphclones.c (clone_function_name_1): Use
2991 symbol_table::symbol_suffix_separator.
2992 * coverage.c (build_var): Likewise.
2993 * symtab.c (symbol_table::symbol_suffix_separator): New.
2995 2016-03-29 Jakub Jelinek <jakub@redhat.com>
2997 PR rtl-optimization/70429
2998 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2999 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3000 mode != result_mode.
3003 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3005 PR tree-optimization/70405
3006 * ssa-iterators.h (num_imm_uses): Add missing braces.
3008 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
3010 PR rtl-optimization/68695
3011 * ira-color.c (allocno_copy_cost_saving): New.
3012 (improve_allocation): Use it.
3014 2016-03-29 Richard Henderson <rth@redhat.com>
3017 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3019 2016-03-29 Richard Biener <rguenther@suse.de>
3022 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3023 use alignment returned by get_pointer_alignment_1 if it is
3024 bigger than BITS_PER_UNIT.
3025 * builtins.c (get_pointer_alignment_1): Do not return true
3026 for alignment extracted from SSA info.
3028 2016-03-28 James Bowman <james.bowman@ftdichip.com>
3030 * config/ft32/ft32.opt (mnodiv): New.
3031 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3032 * doc/invoke.texi (FT32 Options -mnodiv): New.
3034 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
3037 * config/i386/i386.md (define_split, andn): Fix modes.
3039 2016-03-26 Richard Biener <rguenther@suse.de>
3040 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
3043 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3045 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3046 as 2nd argument to cl_optimization_restore().
3048 2016-03-25 Richard Henderson <rth@redhat.com>
3051 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3052 * config/aarch64/aarch64-protos.h: Declare it.
3053 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3055 2016-03-25 Alan Modra <amodra@gmail.com>
3058 * config/rs6000/constraints.md (j): Simplify.
3059 * config/rs6000/predicates.md (easy_fp_constant): Exclude
3061 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3062 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3063 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3064 in all constraint alternatives.
3065 (movtd_64bit_nodm): Delete "j" constraint alternative.
3067 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3069 * tree-ssa-propagate.c: Enhance docs for
3070 SSA_PROP_NOT_INTERESTING.
3072 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
3074 * doc/extend.texi: Fix typo in documentation to pure attribute.
3076 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
3079 * config/pa/pa.md (bswapdi2): Use a scratch register.
3081 2016-03-24 Richard Henderson <rth@redhat.com>
3084 * fold-const.c (extract_muldiv_1): Correct test for multiplication
3087 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
3089 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3090 using ix86_expand_binary_operator instead of gen_andsi3.
3092 2016-03-24 Richard Biener <rguenther@suse.de>
3094 PR tree-optimization/70396
3095 * tree-vect-stmts.c (vectorizable_comparison): Use
3096 get_vectype_for_scalar_type.
3098 2016-03-24 Richard Biener <rguenther@suse.de>
3101 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3102 with register bases.
3104 2016-03-24 Richard Biener <rguenther@suse.de>
3106 PR tree-optimization/70372
3107 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3108 build_all_ones_cst to also handle vector types correctly.
3110 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
3113 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3116 2016-03-23 Marek Polacek <polacek@redhat.com>
3119 * doc/invoke.texi: Document -Wignored-attributes.
3121 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3123 PR tree-optimization/69042
3124 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3125 parameter from 30 to 40.
3127 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3129 PR tree-optimization/69042
3130 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3131 for use with constant offset stripped in base.
3133 2016-03-23 Richard Biener <rguenther@suse.de>
3136 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3137 mode compatibility check.
3138 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3140 2016-03-23 Jeff Law <law@redhat.com>
3142 PR tree-optimization/64058
3143 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3145 (struct ssa_conflicts): Move up earlier in the file.
3146 (conflicts_, var_map_): New static variables.
3147 (initialize_conflict_count): New function to initialize the
3148 CONFLICT_COUNT field for each conflict pair.
3149 (compare_pairs): Lazily initialize the conflict count and use it
3150 as the first tie-breaker.
3151 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3152 and wipe conflicts_ and map_ around the call to qsort. Remove
3153 special case for 2 coalesce pairs.
3154 * bitmap.c (bitmap_count_unique_bits): New function.
3155 (bitmap_count_bits_in_word): New function, extracted from
3157 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3158 * bitmap.h (bitmap_count_unique_bits): Declare it.
3160 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3163 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3164 transparent alias chain for decl assembler name.
3165 * config/sol2.c (solaris_assemble_visibility): Likewise.
3167 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3169 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3171 (v10_fdivs): Likewise.
3172 (v10_fdivd): Likewise.
3174 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3177 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3178 to not call fclose twice on file.
3180 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3182 PR tree-optimization/70354
3183 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3184 oprnd0 is wider than oprnd1 and there is a cast from the wider
3185 type to oprnd1, mask it with the mask of the narrower type.
3188 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3189 Optimize TARGET_STV splitters, if high or low word of last argument
3192 2016-03-22 Jeff Law <law@redhat.com>
3195 tree-ssa-threadbackward.c
3196 (fsm_find_control_statement_thread_paths): Correctly distinguish
3197 between old style jump threads vs FSM jump threads.
3199 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3202 * config/i386/i386.c (scalar_chain::convert_op): Support
3203 uninitialized register usage case.
3205 2016-03-22 Richard Biener <rguenther@suse.de>
3208 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3210 (capture::gen_transform): ... to change behavior when substituting
3211 a condition into cond or not-cond expr context.
3212 (dt_simplify::gen_1): Adjust.
3213 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3214 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3215 last change and instead change to
3216 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3217 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3219 2016-03-22 Anthony Green <green@moxielogic.com>
3221 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3222 issue for moxiebox targets.
3223 (CC1PLUS_SPEC): Ditto.
3225 2016-03-22 Richard Biener <rguenther@suse.de>
3228 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3231 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3233 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3235 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3238 * config/i386/i386.c (def_builtin): Handle
3239 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3241 (const struct builtin_description bdesc_special_args[]):
3242 Remove duplicate ISA bits.
3244 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3247 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3248 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3249 in a way that works also for AVX512BW.
3252 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3253 instead of source if operands[1] is xmm16 and above and
3254 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3255 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3258 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3259 on assign if (*from_p) is a comparison, set it to
3260 TREE_NO_WARNING (*from_p).
3262 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3265 * lra.c (restore_scratches): Ignore deleted insns.
3267 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3268 Jakub Jelinek <jakub@redhat.com>
3270 PR tree-optimization/70317
3271 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3274 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3277 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3278 of ix86_expand_move.
3280 (movti): Use general_operand for operand 1 predicate.
3282 2016-03-21 Martin Liska <mliska@suse.cz>
3284 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3286 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3288 2016-03-21 Martin Liska <mliska@suse.cz>
3291 * ipa-icf.c (sem_function::parse): Skip static
3292 constructors and destructors.
3294 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3297 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3298 function-like macro, peek following token(s) if it is followed
3299 by CPP_OPEN_PAREN token with optional padding in between, and
3300 if not, don't treat it like a macro.
3302 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3303 Alexander Monakov <amonakov@ispras.ru>
3305 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3306 for the stabs debug format.
3308 2016-03-21 Richard Biener <rguenther@suse.de>
3310 PR tree-optimization/70310
3311 * tree-vect-generic.c (expand_vector_condition): Fold the built
3314 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3317 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3318 Block third alternative for AVX-512VL target,
3320 2016-03-21 Martin Liska <mliska@suse.cz>
3323 * hsa-brig.c (emit_function_directives): Mark unemitted
3324 global variables for emission.
3325 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3326 (get_symbol_for_decl): Likewise.
3327 * hsa.h (struct hsa_symbol): New flag.
3329 2016-03-21 Richard Biener <rguenther@suse.de>
3331 PR tree-optimization/70288
3332 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3333 we do not estimate unsimplified all-constant conditionals or
3334 switches as optimized away.
3336 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3338 PR rtl-optimization/69102
3339 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3340 when we have a readonly dependency context.
3342 2016-03-18 Jeff Law <law@redhat.com>
3344 PR rtl-optimization/70263
3345 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3346 (update_equiv_regs): When trying to move a store to after the insn
3347 that sets the source of the store, make sure the store occurs after
3348 the insn that sets the source of the store. When successful note
3349 the REG_EQUIV note created in the dump file.
3351 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3352 Bernd Schmidt <bschmidt@redhat.com>
3354 * doc/extend.texi: Document more potential problems with basic asms.
3356 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3358 PR rtl-optimization/70278
3359 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3362 2016-03-18 Jason Merrill <jason@redhat.com>
3364 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3366 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3368 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3369 values to 128b regs.
3371 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3373 PR tree-optimization/70252
3374 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3375 boolean vector has a proper number of elements.
3376 (supportable_narrowing_operation): Likewise.
3378 2016-03-18 Tom de Vries <tom@codesourcery.com>
3381 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3383 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3385 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3386 instead of replace_rtx for DEBUG_INSNs.
3388 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3390 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3391 load type reservations.
3393 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3396 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3397 define_constraint for "Q" and "T" constraints.
3399 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3401 Tweak the pipeline model for Exynos M1
3403 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3406 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3409 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3410 where one or both locations aren't within a line_map.
3412 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3415 * opts.c (finish_options): Don't set flag_pie to the default if
3416 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3419 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3421 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3422 true as ALL_REGS argument to replace_rtx.
3424 2016-03-17 Richard Biener <rguenther@suse.de>
3427 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3430 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3433 * rtl.h (replace_rtx): Add ALL_REGS argument.
3434 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3435 equality and assert mode is the same, instead of just rtx pointer
3437 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3438 true as ALL_REGS argument to replace_rtx.
3440 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3442 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3443 for boolean vector with vector mode only.
3444 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3446 2016-03-17 Nick Clifton <nickc@redhat.com>
3449 * config/rx/rx.c (rx_print_integer): Print negative constants in
3452 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3455 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3457 2016-03-16 Richard Henderson <rth@redhat.com>
3458 Richard Biener <rguenth@suse.de>
3463 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3464 first operand as is_gimple_condexpr.
3469 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3470 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3471 Do not gimplify the result.
3472 (do_unop): Adjust call to tree_vec_extract.
3473 (do_binop): Likewise.
3474 (do_compare): Likewise.
3475 (do_plus_minus): Likewise.
3476 (do_negate): Likewise.
3477 (expand_vector_condition): Likewise.
3478 (do_cond): Likewise.
3480 2016-03-16 Richard Henderson <rth@redhat.com>
3483 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3484 (aarch64_classify_address): Use it.
3485 (aarch64_legitimize_address): Force all subexpressions of PLUS
3486 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3488 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3489 Richard Biener <rguenth@suse.de>
3492 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3493 return to even if only REGNO is equal, and assert
3496 2016-03-11 Jeff Law <law@redhat.com>
3498 PR rtl-optimization/70224
3499 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3501 2016-03-16 Richard Henderson <rth@redhat.com>
3504 * function.h (struct function): Add has_forced_label_in_static.
3505 * gimplify.c (force_labels_r): Set it.
3506 * lto-streamer-in.c (input_struct_function_base): Read it.
3507 * lto-streamer-out.c (output_struct_function_base): Write it.
3508 * tree-inline.c (has_label_address_in_static_1): Remove.
3509 (copy_forbidden): Remove fndecl parameter; test
3510 has_forced_label_in_static.
3511 (inline_forbidden_p): Update call to copy_forbidden.
3512 (tree_versionable_function_p): Likewise.
3513 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3514 (chkp_versioning): Likewise.
3515 * tree-inline.h (copy_forbidden): Update decl.
3517 2016-03-16 Marek Polacek <polacek@redhat.com>
3520 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3521 function being thunked if the result type doesn't have fixed size.
3522 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3523 doesn't have fixed size.
3525 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3527 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3528 reporting malformed loop nest.
3530 2016-03-16 Tom de Vries <tom@codesourcery.com>
3533 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3534 nodes.length () == 1 test to before first nodes[0] access.
3536 2016-03-16 Tom de Vries <tom@codesourcery.com>
3538 PR tree-optimization/68715
3539 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3542 2016-03-16 Tom de Vries <tom@codesourcery.com>
3544 PR tree-optimization/68809
3545 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3548 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3549 Sandra Loosemore <sandra@codesourcery.com>
3551 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3552 on leaf attribute. Mention ELF interposition problems.
3554 2016-03-16 Alan Modra <amodra@gmail.com>
3556 PR rtl-optimization/69195
3557 PR rtl-optimization/47992
3558 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3561 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3564 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3566 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3568 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3570 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3572 PR rtl-optimization/70222
3573 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3574 optimization if mode is different from result_mode, queue up masking
3575 of the result in outer_op. Formatting fix.
3578 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3581 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3583 PR rtl-optimization/69032
3584 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3585 looping backwards over basic block insns.
3587 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3590 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3591 to non-speculative when propagating trap bits.
3593 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3595 PR rtl-optimization/63384
3596 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3599 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3602 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3603 factored out from ...
3604 (sched_analyze_insn): ... here.
3605 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3606 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3607 get_implicit_reg_pending_clobbers in it.
3608 (setup_id_reg_sets): Use setup_id_implicit_regs.
3609 (deps_init_id): Ditto.
3611 2016-03-15 Tom de Vries <tom@codesourcery.com>
3614 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3616 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3617 execute_function_dump.
3618 (execute_one_pass): Don't dump function if it will be dumped after ipa
3621 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3623 * genrecog.c (match_pattern_2): If pred is NULL don't call
3624 safe_predicate_mode on it.
3626 2016-03-14 Jakub Jelinek <jakub@redhat.com>
3629 * lra-constraints.c (delete_move_and_clobber): Change assertion
3630 to also allow dregno == 0.
3632 2016-03-14 Richard Henderson <rth@redhat.com>
3635 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3636 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3637 (reassociate_bb): Use optimize_vec_cond_expr; avoid
3638 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3641 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
3644 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3646 (lra_create_live_ranges_1): initialize hard register biggest_mode to
3648 * lra-constraints.c (split_reg): For hard regs, try to find the
3649 biggest single-register mode used in the function.
3651 2016-03-14 Richard Biener <rguenther@suse.de>
3653 PR tree-optimization/56365
3654 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3655 constants to compare against.
3657 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
3660 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3661 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3662 (define_split for the GPR case): Use int_reg_operand instead of
3663 gpc_reg_operand for the output.
3665 2016-03-14 Tom de Vries <tom@codesourcery.com>
3667 PR tree-optimization/70045
3668 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3669 create_empty_if_region_on_edge argument.
3671 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
3673 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3674 (STACK_CHECK_PROTECT): Likewise.
3675 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3676 (STACK_CHECK_PROTECT): Likewise.
3677 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3678 (STACK_CHECK_PROTECT): Likewise.
3679 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3680 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3681 (STACK_CHECK_PROTECT): Likewise.
3683 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
3685 PR rtl-optimization/69307
3686 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3687 registers in modes that span more than one register.
3689 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
3692 * lra-constraints.c (delete_move_and_clobber): New.
3693 (remove_inheritance_pseudos): Use it.
3695 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
3698 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3699 the libcall is LCT_THROW.
3700 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3701 for the checking routine.
3703 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3706 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3707 optimization if we have direct move.
3708 (roundu32<mode>2_fprs): Likewise.
3710 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
3713 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3715 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3716 Arguments swapped. All callers changed. Take reg_renumber into
3717 account, and Calculate and compare register ranges for hard regs.
3719 2016-03-11 Jeff Law <law@redhat.com>
3721 PR tree-optimization/70190
3722 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3723 Handle cases where we can not extract the taken edge, even though we
3724 found a constant value.
3726 PR tree-optimization/64058
3727 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3728 (num_coalesce_pairs): Move up earlier in file.
3729 (find_coalesce_pair): Initialize the INDEX field for each pair
3731 (compare_pairs): No longer sort on the elements in each pair.
3732 Instead break ties with the index of the coalesce pair.
3734 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3737 * config/aarch64/aarch64-protos.h
3738 (aarch64_save_restore_target_globals): New prototype.
3739 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3740 Call the above when popping pragma.
3741 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3743 (aarch64_set_current_function): Rewrite using the above.
3745 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3747 PR tree-optimization/70177
3748 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3749 (extract_ops_from_tree): ... this. In the 2 argument
3750 overload remove _1 suffix.
3751 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3752 (extract_ops_from_tree): ... this.
3753 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3755 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3756 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3757 extract_ops_from_tree instead of 2 operand one.
3759 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
3761 PR tree-optimization/70013
3762 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3763 for constant-pool entries.
3765 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3767 PR rtl-optimization/70174
3768 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3769 followed by gen_lowpart on force_reg instead of just gen_lowpart.
3771 PR tree-optimization/70169
3772 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3773 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
3776 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3777 Jakub Jelinek <jakub@redhat.com>
3780 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3781 of uninitialized values.
3783 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3785 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3787 ("*trunctddd2"): New pattern definition.
3788 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3791 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3793 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3794 definitions for BFP and DFP rounding modes.
3795 ("fixuns_truncdddi2", "fixuns_trunctddi2")
3796 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3797 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3798 ("fix_trunctf<mode>2"): Use the new constants instead of magic
3801 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3803 * config/s390/constraints.md: Adjust comment.
3804 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
3805 s390_decompose_addrstyle_without_index.
3806 * config/s390/predicates.md (shift_count_or_setmem_operand):
3807 Rename to setmem_operand.
3808 * config/s390/s390-protos.h
3809 (s390_decompose_shift_count): Rename to
3810 s390_decompose_addrstyle_without_index.
3811 * config/s390/s390.c (s390_decompose_shift_count)
3812 (s390_mem_constraint, print_shift_count_operand)
3813 (print_operand_address, print_operand): Rename
3814 s390_decompose_shift_count to
3815 s390_decompose_addrstyle_without_index and rename
3816 print_shift_count_operand to print_addrstyle_operand troughout the
3818 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3819 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3820 Rename shift_count_or_setmem_operand to setmem_operand.
3821 * config/s390/vx-builtins.md ("vec_insert<mode>")
3822 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3825 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3828 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3829 Handle overlapping retval and newval.
3831 2016-03-10 Nick Clifton <nickc@redhat.com>
3834 * config/aarch64/aarch64.c
3835 (aarch64_override_options_after_change_1): When forcing
3836 flag_omit_frame_pointer to be true, use a special value that can
3837 be detected if this function is called again, thus preventing
3838 flag_omit_leaf_frame_pointer from being forced to be false.
3840 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3842 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3843 Set x_flag_omit_leaf_frame_pointer when handling
3844 -momit-leaf-frame-pointer.
3846 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3849 * cgraph.c (cgraph_node::dump): Dump split_part and
3850 indirect_call_target.
3851 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3852 * ipa.c (has_addr_references_p): Cleanup.
3853 (is_indirect_call_target_p): New.
3854 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3855 called indirectly as local.
3856 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3858 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3861 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3862 on cxa_pure_virtual.
3864 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3867 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3869 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3872 * tree.c (need_assembler_name_p): Only record main variant type names.
3874 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3877 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3878 Always define to 0 or 1.
3879 (TARGET_FIX_ERR_A53_843419): New macro.
3880 * config/aarch64/aarch64-elf-raw.h
3881 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3882 * config/aarch64/aarch64-linux.h: Likewise.
3883 * config/aarch64/aarch64.c
3884 (aarch64_override_options_after_change_1): Do not default
3885 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3887 (aarch64_attributes): Handle fix-cortex-a53-843419.
3888 (aarch64_can_inline_p): Likewise.
3889 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3891 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3892 Jakub Jelinek <jakub@redhat.com>
3894 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3895 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3896 DECL_COMMONS if flag_unconstrained_commons is set.
3897 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3898 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3899 (funconstrained-commons): Document.
3901 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3903 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3904 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3906 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3908 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3909 has a proper number of elements.
3911 2016-03-10 Alan Modra <amodra@gmail.com>
3913 PR rtl-optimization/69195
3914 PR rtl-optimization/47992
3915 * ira.c (recorded_label_ref): Delete.
3916 (update_equiv_regs): Return void.
3917 (indirect_jump_optimize): New function.
3918 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3919 before regstat_compute_ri. Don't rebuild_jump_labels here.
3920 Delete update_regstat.
3922 2016-03-10 Richard Biener <rguenther@suse.de>
3924 PR tree-optimization/70128
3925 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3926 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3928 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3930 PR tree-optimization/70152
3931 * tree-sra.c (replace_removed_params_ssa_names): Copy over
3932 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3935 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3936 instead of gen_sse2_loadlpd.
3937 * config/i386/sse.md (*vec_concatv2df): Rename to...
3938 (vec_concatv2df): ... this.
3940 PR tree-optimization/70127
3941 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3943 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3947 * diagnostic-show-locus.c (compatible_locations_p): New function.
3948 (layout::layout): Sanitize ranges using compatible_locations_p.
3950 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3954 * diagnostic-show-locus.c (layout_range::layout_range): Replace
3955 location_range param with three const expanded_locations * and a
3957 (layout::layout): Replace call to
3958 rich_location::lazily_expand_location with get_expanded_location.
3959 Extract the range and perform location expansion here, passing
3960 the results to the layout_range ctor.
3961 * diagnostic.c (source_range::debug): Delete.
3962 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3963 of rich_location::get_expanded_location.
3964 * gcc-rich-location.c (get_range_for_expr): Delete.
3965 (gcc_rich_location::add_expr): Reimplement to avoid the
3966 rich_location::add_range overload that took a location_range,
3967 passing a location_t instead.
3969 2016-03-09 Richard Biener <rguenther@suse.de>
3970 Jakub Jelinek <jakub@redhat.com>
3972 PR tree-optimization/70138
3973 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3974 Also skip vect_double_reduction_def.
3976 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3979 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3980 if the operand is "m".
3982 2016-03-09 Nathan Sidwell <nathan@acm.org>
3984 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3986 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3988 * config/i386/i386.c (processor_target_table): Fix cost table
3989 intialization order for znver1.
3991 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3993 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3994 - becuase -> because.
3995 * ipa-reference.c (ignore_module_statics): Likewise.
3996 * cgraph.c (cgraph_node::get_body): Likewise.
3997 * ipa-inline.c (early_inliner): Likewise.
3998 * ipa-devirt.c (types_same_for_odr): Likewise.
3999 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4000 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4002 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4004 * tree-ssa-math-opts.c: Fix typo in comment.
4006 2016-03-08 Jakub Jelinek <jakub@redhat.com>
4009 * config/i386/i386.c (scalar_chain::make_vector_copies,
4010 scalar_chain::convert_reg): Call end_sequence in between
4011 get_insns and emit_conversion_insns rather than after both
4014 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
4017 * config/i386/i386.h (machine_function): Add
4018 pc_thunk_call_expanded flag.
4019 (ix86_pc_thunk_call_expanded): New define.
4020 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4021 (*set_got): Rename insn pattern from set_got.
4022 (*set_got_labelled): Rename inst pattern from set_got_labelled.
4023 * config/i386/i386.c (ix86_compute_frame_layout): Use
4024 ix86_pc_thunk_call_expanded to prevent red-zone.
4026 2016-03-07 Martin Jambor <mjambor@suse.cz>
4028 * hsa.h (hsa_get_ctor_statements): Declare.
4029 (hsa_get_dtor_statements): Likewise.
4030 (hsa_get_kernel_dispatch_type): Likewise.
4031 * hsa.c (hsa_get_ctor_statements): New function.
4032 (hsa_get_dtor_statements): Likewise.
4033 (hsa_get_kernel_dispatch_type): Likewise.
4034 * hsa-brig.c (hsa_cdtor_statements): Removed.
4035 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4036 hsa_get_dtor_statements.
4037 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4038 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4040 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
4042 * config/arm/arm-cores.def (cortex-r8): New.
4043 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4044 * config/arm/arm-tune.md: Likewise.
4045 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4047 2016-03-07 Martin Sebor <msebor@redhat.com>
4049 PR rtl-optimization/19705
4050 * doc/invoke.texi (Options That Control Optimization): Clarify
4051 -fno-branch-count-reg.
4053 2016-02-26 Richard Biener <rguenther@suse.de>
4054 Jeff Law <law@redhat.com>
4056 PR tree-optimization/69740
4057 * cfghooks.c (remove_edge): Request loop fixups if we delete
4058 an edge that might turn an irreducible loop into a natural
4060 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4061 Move after definition of loops_state_clear.
4063 2016-03-07 Bin Cheng <bin.cheng@arm.com>
4065 PR rtl-optimization/69052
4066 * rtlanal.c (commutative_operand_precedence): Set higher precedence
4069 2016-03-07 Tom de Vries <tom@codesourcery.com>
4071 PR tree-optimization/70116
4072 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4073 is_tm_ending stmts and ubsan/asan internal functions.
4074 (find_duplicate): Use it. Don't test is_tm_ending here.
4076 2016-03-07 Richard Biener <rguenther@suse.de>
4078 PR tree-optimization/70115
4079 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4080 (propagate_constants_for_unrolling): Use replace_uses_by.
4082 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
4085 * omp-low.c (struct oacc_loop): Add ifns.
4086 (new_oacc_loop_raw): Initialize it.
4087 (finish_oacc_loop): Clear mask & flags if no ifns.
4088 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4089 (oacc_loop_xform_loop): Add ifns arg & adjust.
4090 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4092 2016-03-07 Richard Henderson <rth@redhat.com>
4095 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4096 (insert_value_copy_on_edge): Likewise.
4098 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4100 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4102 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
4105 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4107 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4109 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4111 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
4113 Fix sseimul type attribute.
4114 * config/i386/znver1.md
4115 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4116 znver1_sseimul_avx256_load) : Fix the type attribute.
4117 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4118 pipe usage and latency.
4120 2016-03-05 Jakub Jelinek <jakub@redhat.com>
4123 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4124 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4127 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4130 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4132 PR rtl-optimization/69941
4133 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4134 the reg share its mode.
4136 2016-03-04 Jeff Law <law@redhat.com>
4138 PR tree-optimization/69196
4139 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4140 If the both SSA_NAMEs are anonymous, then consider them unassociated
4141 and include the PHI in the statement count.
4143 2016-03-05 Tom de Vries <tom@codesourcery.com>
4145 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4146 construct in oacc routine. Check for oacc region in oacc routine.
4148 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4151 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4152 2016-02-22 changes, instead don't recurse if RECUR is already true.
4153 Don't change *dynamic_check if RECUR. Adjust recursive caller
4154 to pass true to the new argument.
4155 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4158 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4159 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4161 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4163 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4165 PR rtl-optimization/57676
4166 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4169 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4171 * tree-vect-patterns.c (search_type_for_mask): Handle
4172 comparison of booleans.
4174 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4176 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4180 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4181 all other ops that have dw_val_class_die_ref operands,
4182 and DW_OP_GNU_entry_value.
4184 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4186 PR rtl-optimization/69904
4187 * config/arm/arm.c (arm_cannot_copy_insn_p):
4188 Return true for load-exclusive instructions.
4190 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4193 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4194 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4195 the pattern no matter if it is used just by non-pattern, pattern
4197 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4198 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4199 oprnd1 def_stmt is in pattern, don't look through it.
4201 2016-03-03 Marek Polacek <polacek@redhat.com>
4204 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4206 2016-03-03 Martin Liska <mliska@suse.cz>
4208 PR tree-optimization/70043
4209 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4210 previous statement if we see a debug statement.
4212 2016-03-03 Richard Biener <rguenther@suse.de>
4214 PR tree-optimization/55936
4215 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4216 parameter and guard unsafe equivalence use.
4217 (vrp_evaluate_conditional_warnv_with_ops): Always use
4218 safe equivalences but not via the quadratic compare_names
4221 2016-03-03 Michael Collison <michael.collison@linaro.org>
4224 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4225 for operand 1 to s_register_operand. Change predicate for operand
4226 2 to arm_not_immediate_operand.
4228 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4230 * doc/tm.texi: Regenerated.
4232 2016-03-02 Richard Henderson <rth@redhat.com>
4235 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4236 simplification when all args are positive non-fixed registers.
4238 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4240 * target.def (lra_p): Specify that new ports should use LRA.
4242 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4245 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4246 gimplify_type_sizes the type they refer to.
4247 (omp_notice_variable): Handle reference vars to VLAs.
4248 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4249 reference to VLA decls in the second pass instead of first pass.
4251 2016-03-02 Tom de Vries <tom@codesourcery.com>
4253 PR tree-optimization/68659
4254 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4255 new_expr == NULL_TREE.
4256 (get_new_name): Handle ADDR_EXPR.
4258 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4260 PR rtl-optimization/69052
4261 * loop-invariant.c (canonicalize_address): New function.
4262 (inv_can_prop_to_addr_use): Check validity of address expression
4263 which is canonicalized by above function.
4265 2016-03-02 Alan Modra <amodra@gmail.com>
4268 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4271 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4274 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4275 (*movhi_internal): Put mask moves from and to memory separately
4276 from moves from/to GPRs.
4278 2016-03-02 Richard Biener <rguenther@suse.de>
4280 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4281 GENERIC expressions in GIMPLE.
4283 2016-03-02 Richard Biener <rguenther@suse.de>
4285 * config/i386/i386.c (type_natural_mode): Fix typo.
4287 2016-03-02 Nick Clifton <nickc@redhat.com>
4289 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4291 2016-03-02 Richard Biener <rguenther@suse.de>
4292 Uros Bizjak <ubizjak@gmail.com>
4295 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4297 2016-03-02 Richard Biener <rguenther@suse.de>
4300 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4302 2016-03-02 Marek Polacek <polacek@redhat.com>
4305 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4306 "is promoted to" warning.
4308 2016-03-01 DJ Delorie <dj@redhat.com>
4310 * config.gcc: Deprecate mep-*.
4312 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4315 * lra-constraints.c (regno_val_use_in): New.
4316 (match_reload): Use it instead of regno_use_in.
4318 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4320 PR rtl-optimization/70007
4321 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4322 references present in REG_EQUAL notes attached to non-SET patterns.
4324 2016-03-01 Jeff Law <law@redhat.com>
4326 PR tree-optimization/69196
4327 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4328 Appropriately clamp the number of statements to copy when the
4329 thread path does not traverse a loop backedge.
4331 PR tree-optimization/69196
4332 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4333 Do count some PHIs in the thread path against the insn count. Decrease
4334 final statement count by one as the control statement in the last
4335 block will get removed. Remove special cased code for handling PHIs
4338 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4341 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4342 asm dialect alternatives to explicit GOTPCREL calls.
4344 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4347 * ira.c (do_reload): Issue warning for generic stack checking here...
4348 * reload1.c (reload): ...instead of here and streamline it.
4350 2016-03-01 Nick Clifton <nickc@redhat.com>
4352 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4354 2016-03-01 Richard Biener <rguenther@suse.de>
4356 PR tree-optimization/69983
4357 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4358 types and fall back to operand_equal_p.
4360 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4363 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4365 * config/s390/constraints.md ("jm8"): New constraint.
4366 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4368 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4370 ("*setmem_long<setmem_and>"): New pattern.
4371 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4373 ("*setmem_long_31z<setmem_and>"): New pattern.
4374 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4375 New substitution rules with the required attributes.
4378 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4381 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4383 * gensupport.c (process_substs_on_one_elem): Split loop to
4384 complete mark_operands_used_in_match_dup on all expressions in the
4386 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4387 and remove function.
4389 2016-03-01 Richard Biener <rguenther@suse.de>
4392 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4393 vector BIT_FIELD_REF extract.
4395 2016-03-01 Richard Biener <rguenther@suse.de>
4397 PR tree-optimization/69994
4398 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4400 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4402 PR tree-optimization/69956
4403 * tree-vect-stmts.c (supportable_widening_operation): Support
4404 multi-step conversion of boolean vectors.
4405 (supportable_narrowing_operation): Likewise.
4407 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4409 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4412 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4414 * config/s390/subst.md (DSI_VI): New mode iterator.
4415 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4416 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4417 the insn definition.
4418 ("*vec_set<mode>"): Change predicate and add alternative to
4419 support only either register or const_int operands as element
4421 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4423 ("vec_extract<mode>"): New expander.
4424 ("*vec_extract<mode>"): New insn definition supporting reg and
4425 const_int element selectors.
4426 ("*vec_extract<mode>_plus"): New insn definition supporting
4427 reg+const_int element selectors.
4428 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4429 following expander+insn definition.
4430 ("<vec_shifts_name><mode>3"): New expander.
4431 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4433 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4435 * config/s390/s390.md ("*tabort_1"): Change predicate to
4436 nonmemory_operand. Add a second alternative to cover
4437 register as well as const int operands.
4438 ("*tabort_1_plus"): New pattern definition.
4440 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4442 * config/s390/s390.md ("*ashrdi3_cc_31")
4443 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4444 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4445 Merge insn definitions into ...
4446 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4447 New pattern definition.
4448 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4449 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4450 ("*ashr<mode>3_and"): Merge insn definitions into ...
4451 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4452 New pattern definition.
4453 * config/s390/subst.md ("addr_style_op_cc_subst")
4454 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4455 substitutions patterns plus attributes.
4456 Add ashiftrt to SUBST iterator.
4458 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4460 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4461 op2 to nonmemory_operand.
4462 ("*<shift>di3_31", "*<shift>di3_31_and"):
4463 Merge into single pattern definition ...
4464 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4465 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4466 pattern definition ...
4467 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4468 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4471 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4473 * config/s390/predicates.md (const_int_6bitset_operand): New
4475 * config/s390/s390.md: Include subst.md.
4476 ("rotl<mode>3"): New expander.
4477 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4479 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4480 * config/s390/subst.md: New file.
4482 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4484 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4485 Remove RRR type. It doesn't really exist.
4486 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4488 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4489 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4490 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4491 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4492 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4493 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4494 `enabled' attribute.
4496 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4498 * gensupport.c (process_substs_on_one_elem): Split loop to
4499 complete mark_operands_used_in_match_dup on all expressions in the
4501 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4502 and remove function.
4504 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4507 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4508 (CEIL_NWORDS): ...this. Use CEIL macro.
4509 (compute_fp_layout): Adjust to above renaming.
4510 (function_arg_union_value): Likewise.
4511 (sparc_arg_partial_bytes): Likewise.
4512 (sparc_function_arg_advance): Likewise.
4514 2016-02-29 Jeff Law <law@redhat.com>
4516 PR tree-optimization/70005
4517 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4518 where an object with a boolean range is compared against a value
4521 PR tree-optimization/69999
4522 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4523 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4526 2016-02-29 Richard Biener <rguenther@suse.de>
4528 PR tree-optimization/69994
4529 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4530 (get_unary_op): Look through nop conversions.
4531 (ops_equal_values_p): New function, look for equality diregarding
4533 (eliminate_plus_minus_pair): Use ops_equal_values_p
4534 (repropagate_negates): Do not use get_unary_op here.
4536 2016-02-29 Martin Liska <mliska@suse.cz>
4538 * system.h: Poison ENABLE_CHECKING macro.
4540 2016-02-29 Martin Liska <mliska@suse.cz>
4542 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4543 is presented in dump flags.
4544 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4545 (hsa_regalloc): Likewise.
4547 2016-02-19 Richard Biener <rguenther@suse.de>
4549 PR tree-optimization/69980
4550 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4551 permutation of those we need to keep.
4553 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4556 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4557 (NWORDS_UP): ...this
4558 (init_cumulative_args): Minor tweaks.
4559 (sparc_promote_function_mode): Likewise.
4560 (scan_record_type): Delete.
4561 (traverse_record_type): New function template.
4562 (classify_data_t): New structure type.
4563 (classify_registers): New inline function.
4564 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4565 exhausted. Instantiate traverse_record_type on classify_registers and
4566 deal with the case of a structure passed in slot #15 with no FP field
4568 (assign_data_t): New structure type.
4569 (compute_int_layout): New static function.
4570 (compute_fp_layout): Likewise.
4571 (count_registers): New inline function.
4572 (assign_int_registers): New static function.
4573 (assign_fp_registers): Likewise.
4574 (assign_registers): New inline function.
4575 (function_arg_record_value_1): Delete.
4576 (function_arg_record_value_2): Likewise.
4577 (function_arg_record_value_3): Likewise.
4578 (function_arg_record_value): Adjust to above changes. Instantiate
4579 traverse_record_type on count_registers to first count the number of
4580 registers to be used and then on assign_registers to assign them.
4581 (function_arg_union_value): Adjust to above renaming.
4582 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4583 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4584 case of a structure passed in slot #15
4585 (sparc_function_arg_advance): Likewise.
4586 (function_arg_padding): Minor tweak.
4588 2016-02-29 Richard Biener <rguenther@suse.de>
4590 PR tree-optimization/69720
4591 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4592 the adjustment_def path for possibly vectorized defs.
4593 (vect_create_epilog_for_reduction): Handle vectorized initial
4596 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4598 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4600 2016-02-27 Jeff Law <law@redhat.com>
4603 2016-02-26 Richard Biener <rguenther@suse.de>
4604 Jeff Law <law@redhat.com>
4606 PR tree-optimization/69740
4607 * cfghooks.c (remove_edge): Request loop fixups if we delete
4608 an edge that might turn an irreducible loop into a natural
4611 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4613 PR rtl-optimization/69896
4614 * tree-vect-generic.c (get_compute_type): Avoid single element
4617 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4619 Rename the AArch64 tuning option and related functions to enable the
4620 Newton series for the reciprocal square root to reflect its
4621 approximative characteristic.
4623 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4624 function to "aarch64_emit_approx_rsqrt".
4625 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4626 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4627 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4628 (xgene1_tunings): Likewise.
4629 (use_rsqrt_p): Likewise.
4630 (aarch64_emit_swrsqrt): Use new function name.
4631 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4632 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4633 text explaining this option.
4634 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4636 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4639 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4640 complain about -mallow-movmisalign without -mvsx if
4641 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4643 2016-02-26 Joel Sherrill <joel@rtems.org>
4645 * config.gcc: Add x86_64-*-rtems*.
4646 * gcc/config/i386/rtems-64.h: New file.
4648 2016-02-26 Joel Sherrill <joel@rtems.org>
4650 * config.gcc: Add aarch64-*-rtems*.
4651 * gcc/config/aarch64/rtems.h: New file.
4653 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
4656 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4657 shift amount using %h. Add comment.
4659 2016-02-26 Richard Biener <rguenther@suse.de>
4660 Jeff Law <law@redhat.com>
4662 PR tree-optimization/69740
4663 * cfghooks.c (remove_edge): Request loop fixups if we delete
4664 an edge that might turn an irreducible loop into a natural
4667 2016-02-26 Martin Jambor <mjambor@suse.cz>
4670 * tree-sra.c (sra_modify_assign): Do not remove loads of
4671 uninitialized aggregates to SSA_NAMEs.
4673 2016-02-26 Richard Henderson <rth@redhat.com>
4676 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4677 pseudo in case the target rtx matches the source of the left
4680 2016-02-26 Martin Jambor <mjambor@suse.cz>
4683 * hsa.h (hsa_type_packed_p): Declare.
4684 * hsa.c (hsa_type_packed_p): New function.
4685 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4687 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4688 * hsa-brig.c (emit_basic_insn): Likewise.
4690 2016-02-26 Martin Jambor <mjambor@suse.cz>
4693 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4695 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4697 2016-02-26 Martin Jambor <mjambor@suse.cz>
4699 * hsa.h (is_a_helper): New overload for hsa_op_immed for
4700 hsa_op_with_type operands.
4701 (hsa_unsigned_type_for_type): Declare.
4702 * hsa.c (hsa_unsigned_type_for_type): New function.
4703 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4704 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4705 the finalizer. Do not emit extra move.
4707 2016-02-26 Martin Jambor <mjambor@suse.cz>
4709 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4710 atomic operations in private segment.
4712 2016-02-26 Martin Jambor <mjambor@suse.cz>
4714 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4715 statements to wi->info. Also disallow omp simd constructs.
4716 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4717 for not gridifying. Dump special string for omp_for.
4719 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4722 * config/aarch64/aarch64.c (aarch64_set_current_function):
4723 Save/restore target globals when switching to
4724 target_option_default_node.
4726 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4729 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4730 Return 0 if !SHIFT_COUNT_TRUNCATED.
4732 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4733 Eric Botcazou <ebotcazou@adacore.com>
4735 PR rtl-optimization/69891
4736 * dse.c (scan_insn): If we can't figure out memset arguments
4737 or they are non-constant, call clear_rhs_from_active_local_stores.
4739 2016-02-26 Martin Liska <mliska@suse.cz>
4741 * doc/extend.texi: Mention clog10, clog10f an clog10l
4742 in Builtins section.
4744 2016-02-26 Martin Liska <mliska@suse.cz>
4746 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4748 (resolve_args_picking_1): Likewise.
4749 * dwarf2out.h (struct GTY): Likewise.
4751 2016-02-26 Martin Liska <mliska@suse.cz>
4753 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4755 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4757 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
4758 Martin Liska <mliska@suse.cz>
4760 * doc/install.texi: Mention --enable-valgrind-annotations.
4762 2016-02-26 Richard Biener <rguenther@suse.de>
4764 PR tree-optimization/69551
4765 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4766 looking through aliases adjust DECL_PT_UID to refer to the
4767 ultimate alias target.
4769 2016-02-25 Martin Liska <mliska@suse.cz>
4772 * alloc-pool.c (after_memory_report): New variable.
4773 * alloc-pool.h (base_pool_allocator ::release): Do not use
4774 the infrastructure if after_memory_report.
4775 * toplev.c (toplev::main): Mark after memory report.
4777 2016-02-25 Richard Biener <rguenther@suse.de>
4779 PR tree-optimization/48795
4780 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4782 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4785 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
4786 offloading is enabled and -fopenacc or -fopenmp is specified.
4787 (CRTOFFLOADEND): Likewise.
4788 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4789 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4790 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4791 (offload_objects_file_name): New static var.
4792 (tool_cleanup): Remove offload_objects_file_name file.
4793 (find_offloadbeginend): Replace with ...
4794 (find_crtoffloadtable): ... this.
4795 (run_gcc): Remove offload_argc and offload_argv.
4796 Get offload_objects_file_name from -foffload-objects=... option.
4797 Read names of object files with offload from this file, pass them to
4798 compile_images_for_offload_targets. Don't call find_offloadbeginend and
4799 don't pass offloadbegin and offloadend to the linker. Don't pass
4800 offload non-LTO files to the linker, because now they're not claimed.
4802 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
4805 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4806 on builtin_unreachable.
4808 2016-02-25 Jakub Jelinek <jakub@redhat.com>
4810 PR rtl-optimization/69896
4811 * regcprop.c: Include cfgrtl.h.
4812 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4813 than remembered mode, either delete it (if noop_move_p), or
4814 treat like copy_p but not noop_p instruction.
4816 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4819 * dwarf2out.c (gen_variable_die): Work around buggy LTO
4820 - allow NULL decl for Fortran DW_TAG_common_block variables.
4822 2016-02-24 Jason Merrill <jason@redhat.com>
4824 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4826 2016-02-24 Richard Biener <rguenther@suse.de>
4827 Jakub Jelinek <jakub@redhat.com>
4830 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4831 conditionally executed ops to well-defined overflow behavior.
4833 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4836 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4839 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4841 PR rtl-optimization/69886
4842 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4843 argument. Use it when checking validity of set instructions.
4844 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4845 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4847 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4848 * store-motion.c (find_moveable_store): Update
4849 can_assign_to_reg_without_clobbers_p callsite.
4851 2016-02-24 Richard Biener <rguenther@suse.de>
4854 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4856 (record_nonwrapping_iv): Do not fall back to the low/high bound
4857 for non-constant IV bases if the stmt is not always executed.
4859 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4861 * config/arm/arm-cores.def (cortex-a32): New entry.
4862 * config/arm/arm-tables.opt: Regenerate.
4863 * config/arm/arm-tune.md: Regenerate.
4864 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4865 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4866 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4867 for -mcpu and -mtune.
4869 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4872 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4873 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4874 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4875 (atomic_loaddi_1): Delete.
4876 (atomic_loaddi): Rewrite expander using the above changes.
4878 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4881 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4884 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4885 Richard Biener <rguenth@suse.de>
4888 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4889 set_mem_attributes if tem is SSA_NAME which got expanded
4892 2016-02-24 Richard Biener <rguenther@suse.de>
4894 PR tree-optimization/69907
4895 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4896 end of permutations for BB vectorization.
4898 2016-02-24 Christian Bruel <christian.bruel@st.com>
4900 * config/arm/arm-c.c (arm_option_override): Initialize
4901 target_option_current_node.
4902 * config/arm/arm.c (arm_pragma_target_parse): Replace
4903 build_target_option_node call by target_option_current_node.
4904 Set target_option_current_node.
4907 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4910 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4911 define_insn_and_split to define_insn.
4912 (zero_extendqi<mode>2_dot2): Same.
4913 (extendqi<mode>2_dot): Same.
4914 (extendqi<mode>2_dot2): Same.
4916 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4918 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4919 and add bypass for AES{D,E} and AESMC pairs.
4920 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4923 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4925 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4926 series for reciprocal square root in Exynos M1.
4928 2016-02-23 Martin Sebor <msebor@redhat.com>
4931 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4932 __builtin_alloca_with_align.
4934 2016-02-23 Richard Henderson <rth@redhat.com>
4936 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4937 (ix86_register_pragmas): Remove __seg_tls.
4938 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4939 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4940 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4941 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4942 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4943 * doc/extend.texi (__seg_tls): Remove item.
4945 2016-02-23 Richard Biener <rguenther@suse.de>
4947 * alloc-pool.h (struct allocation_object): Make id member
4948 conditional on CHECKING_P again.
4949 (get_instance): Adjust.
4950 (base_pool_allocator): Likewise.
4952 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4954 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4955 (parallelize_loops): In OpenACC kernels mode, set n_threads to
4957 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4959 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4961 2016-02-23 Richard Biener <rguenther@suse.de>
4963 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4964 * bitmap.h (struct bitmap_usage): Likewise.
4965 (bitmap_move): Declare.
4966 * bitmap.c (register_overhead): Take size_t argument.
4967 (bitmap_move): New function.
4968 * df-problems.c (df_rd_transfer_function): Use bitmap_move
4969 to properly account overhead.
4970 * tree.c (free_node): Use tree_size.
4972 2016-02-23 Jakub Jelinek <jakub@redhat.com>
4975 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4976 when inverting comparison.
4979 * common.opt (Wunreachable-code): Add Warning flag.
4981 2016-02-23 Mark Wielaard <mjw@redhat.com>
4982 Jakub Jelinek <jakub@redhat.com>
4985 * cgraphunit.c (check_global_declaration): Check main_input_filename
4986 and DECL_SOURCE_FILE are not NULL.
4988 2016-02-23 Martin Jambor <mjambor@suse.cz>
4990 PR tree-optimization/69666
4991 * tree-sra.c (sra_modify_assign): Do not attempt to create
4992 default_def replacements for unscalarizable regions.
4994 2016-02-20 Mark Wielaard <mjw@redhat.com>
4997 * cgraphunit.c (check_global_declaration): Check level of
4998 warn_unused_const_variable and main_input_filename.
4999 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5000 (-Wunused-variable): For C implies -Wunused-const-variable=1.
5001 (-Wunused-const-variable): Explain levels 1 and 2.
5003 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5006 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5007 identical arguments. Formatting and spelling fixes.
5010 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5015 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5016 and m68k-devices.def.
5017 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5018 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5020 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
5022 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5023 and HImode registers.
5025 2016-02-22 Richard Biener <rguenther@suse.de>
5027 PR tree-optimization/69882
5028 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5029 preserve permutations present because of gaps.
5030 (vect_supported_load_permutation_p): Always continue checking
5031 permutations after vect_attempt_slp_rearrange_stmts.
5033 2016-02-22 Bin Cheng <bin.cheng@arm.com>
5035 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5036 min_profitable_estimate, rather than min_profitable_iters.
5038 2016-02-22 Jakub Jelinek <jakub@redhat.com>
5041 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5042 SImode for last match_operand.
5044 2016-02-22 Martin Liska <mliska@suse.cz>
5046 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5047 return bitsize - 1 as the return value.
5049 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
5053 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5054 Handle negative shift counts.
5055 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5056 force_reg on the shift constant.
5057 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
5058 (lshrsi3_d): Handle negative shift counts.
5060 2016-02-22 Richard Biener <rguenther@suse.de>
5061 Tom de Vries <tom@codesourcery.com>
5063 * graph.c: Include dumpfile.h.
5064 (print_graph_cfg): Split into three overloads.
5065 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5067 2016-02-22 Tom de Vries <tom@codesourcery.com>
5069 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5072 2016-02-22 Richard Biener <rguenther@suse.de>
5075 * ipa-inline-transform.c (inline_call): When not updating
5076 overall summaries adjust self size by the growth estimate.
5077 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5078 hash-set, do not update overall summaries here. Renamed from ...
5079 (inline_to_all_callers): ... this which is now wrapping the
5080 above and performing delayed overall summary update.
5081 (early_inline_small_functions): Delay updating of the overall
5084 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
5086 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5089 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5092 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5093 :%* in %:gt() argument.
5094 (greater_than_spec_func): Adjust for expecting only numbers,
5095 if there are more than two numbers, compare the last two.
5097 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
5099 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5100 -Wnarrowing with -std.
5102 2016-02-19 Jakub Jelinek <jakub@redhat.com>
5105 * expr.c (store_field): Don't use bit-field path if exp is
5106 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5107 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5108 and the assignment can be performed by bitwise copy. Formatting
5112 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5113 call copy_reg_eh_region_note_forward on before and/or after sequences
5114 and remove note from insn if it no longer can throw.
5117 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5120 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5122 * config/s390/vector.md: Add missing commutative operand markers
5123 to the patterns which qualify for one.
5124 * config/s390/vx-builtins.md: Likewise.
5126 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5128 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5129 types to mode iterators.
5130 (vec_double): ... and mode attribute.
5131 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5133 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5135 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5136 Change the predicate of op2 from nonimmediate to general and let
5137 reload fix it if necessary.
5139 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5141 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5143 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5145 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5148 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5150 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5151 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5152 * config/s390/s390.md ("movstr<P:mode>"): Call
5153 s390_expand_vec_movstr.
5155 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5157 * config/s390/s390.md: Add missing output modifier for operand 1
5158 to print it as address properly.
5160 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5162 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5163 * config/s390/2964.md: New file.
5164 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5165 of insn grouping attributes depending on the CPU level.
5166 (s390_get_unit_mask): New function.
5167 (s390_sched_score): Remove the OOO from the scheduling macros.
5168 Add loop to calculate a score for the instruction mix.
5169 (s390_sched_reorder): Likewise plus improve debug output.
5170 (s390_sched_variable_issue): Rename macros as above. Calculate
5171 the unit distances after actually scheduling an insn. Improve
5173 (s390_sched_init): Clear last_scheduled_unit_distance array.
5174 * config/s390/s390.md: Include 2964.md.
5176 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5179 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5180 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5181 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5182 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5183 *avx512f_<code>v8div16qi2_mask_1): New insns.
5185 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5188 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5191 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5192 earlyclobber from target. Use wF constraint for fused memory
5194 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5196 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5197 Martin Liska <mliska@suse.cz>
5200 * cfgexpand.c (asan_sanitize_stack_p): New function.
5201 (partition_stack_vars): Use the function.
5202 (expand_stack_vars): Likewise.
5203 (defer_stack_allocation): Likewise.
5204 (expand_used_vars): Likewise.
5206 2016-02-18 Richard Biener <rguenther@suse.de>
5209 * fold-const.c (operand_equal_p): Properly compare offsets for
5210 IMAGPART_EXPR and ARRAY_REF.
5212 2016-02-18 Nick Clifton <nickc@redhat.com>
5216 * config/arm/arm.c (arm_option_override_internal): Disable
5217 interworking if the target does not support thumb instructions.
5218 (arm_reload_in_hi): Handle the case where a register to register
5219 move needs reloading because there is no simple pattern to handle
5221 (arm_reload_out_hi): Likewise.
5223 2016-02-18 Richard Biener <rguenther@suse.de>
5226 * match.pd: Don't use fold_binary or fold_unary for folding
5229 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5232 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5233 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5234 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5235 warn on gimple_no_warning_p statements.
5237 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5239 * doc/extend.texi (C++ Attributes): Correct description of
5240 warn_unused type attribute.
5242 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5244 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5245 correct instruction.
5247 2016-02-17 Richard Biener <rguenther@suse.de>
5249 PR rtl-optimization/69609
5250 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5251 (find_traces_1_round): When ending a trace update cached priority
5253 (bb_to_key): Use cached priority when available.
5254 (copy_bb): Initialize cached priority.
5255 (reorder_basic_blocks_software_trace_cache): Likewise.
5257 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5260 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5262 (aarch64_comparison_operator): Break overly long line into two.
5263 (aarch64_comparison_operation): Likewise.
5264 * config/aarch64/aarch64.md (cstorecc4): Use
5265 aarch64_comparison_operator_mode instead of
5266 aarch64_comparison_operator.
5267 (cstore<mode>4): Likewise.
5268 (aarch64_cstore<mode>): Likewise.
5269 (*cstoresi_insn_uxtw): Likewise.
5270 (cstore<mode>_neg): Likewise.
5271 (*cstoresi_neg_uxtw): Likewise.
5273 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5276 * config/arm/predicates.md (arm_comparison_operator_mode):
5278 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5279 instead of arm_comparison_operator.
5280 (*mov_negscc): Likewise.
5281 (*mov_notscc): Likewise.
5282 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5283 (*thumb2_mov_negscc): Likewise.
5284 (*thumb2_mov_negscc_strict_it): Likewise.
5285 (*thumb2_mov_notscc): Likewise.
5286 (*thumb2_mov_notscc_strict_it): Likewise.
5288 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5290 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5293 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5295 * config/visium/visium.c (machine_libfunc_index): New enum.
5296 (machine_libfuncs): New structure.
5297 (visium_libfuncs): New static variable.
5298 (TARGET_INIT_LIBFUNCS): Define to...
5299 (visium_init_libfuncs): ...this. New function.
5300 (expand_block_move_4): Use the appropriate libfunc.
5301 (expand_block_move_2): Likewise.
5302 (expand_block_move_1): Likewise.
5303 (expand_block_set_4): Likewise.
5304 (expand_block_set_2): Likewise.
5305 (expand_block_set_1): Likewise.
5306 (visium_trampoline_init): Likewise.
5308 2016-02-17 Nick Clifton <nickc@redhat.com>
5310 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5311 TI's devices.csv file as of March 2016.
5313 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5316 * opts-global.c (handle_common_deferred_options): Introduce and
5317 initialize two global variables to remember command-line options
5318 specifying a stack-limiting register.
5319 * opts.h: Add extern declarations of the two new global variables.
5320 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5321 variable based on the values of the two new global variables.
5323 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5326 * common.opt (Wnonnull-compare): New warning.
5327 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5328 of arguments against NULL.
5329 (-Wnonnull-compare): Document.
5330 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5331 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5332 * passes.def (pass_warn_nonnull_compare): Add.
5333 * gimple-ssa-nonnull-compare.c: New file.
5335 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5337 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5338 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5340 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5342 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5343 reciprocal sqrt for -mlow-precision-recip-sqrt.
5345 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5346 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5348 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5349 always use lane loads to construct non-constant vectors.
5351 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5353 * config/aarch64/aarch64.md
5354 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5355 constraints for operand 3.
5356 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5358 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5359 Richard Biener <rguenther@suse.de>
5361 PR tree-optimization/69820
5362 * tree-vect-patterns.c (type_conversion_p): Return false if
5363 *orig_type is unsigned single precision or boolean.
5364 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5367 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5369 PR rtl-optimization/69764
5370 PR rtl-optimization/69771
5371 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5372 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5374 2016-02-16 Richard Biener <rguenther@suse.de>
5376 PR tree-optimization/69776
5377 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5379 (indirect_refs_may_alias_p): Likewise.
5380 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5381 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5382 according to tbaa_p.
5383 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5384 (optimize_stmt): For redundant store discovery do not allow tbaa.
5386 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5388 PR tree-optimization/69714
5389 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5390 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5392 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5394 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5395 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5396 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5397 * config/arc/arc.c (arc_init): Check FPU options.
5398 (get_arc_condition_code): Handle new CC_FPU* modes.
5399 (arc_select_cc_mode): Likewise.
5400 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5401 register pair only. Allow access for ARCv2 accumulator.
5402 (gen_compare_reg): Whenever we have FPU support use FPU compare
5404 (arc_reorg): Don't generate brcc insns when FPU compare
5405 instructions are involved.
5406 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5407 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5408 floating point emulation.
5409 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5410 (REVERSE_CONDITION): Add new CC_FPU* modes.
5411 (TARGET_FP_SP_BASE): Define.
5412 (TARGET_FP_DP_BASE): Likewise.
5413 (TARGET_FP_SP_FUSED): Likewise.
5414 (TARGET_FP_DP_FUSED): Likewise.
5415 (TARGET_FP_SP_CONV): Likewise.
5416 (TARGET_FP_DP_CONV): Likewise.
5417 (TARGET_FP_SP_SQRT): Likewise.
5418 (TARGET_FP_DP_SQRT): Likewise.
5419 (TARGET_FP_DP_AX): Likewise.
5420 * config/arc/arc.md (ARCV2_ACC): New constant.
5421 (type): New fpu type attribute.
5422 (SDF): Conditional iterator.
5423 (cstore<mode>, cbranch<mode>): Change expand condition.
5424 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5425 handles FPU/FPX cases as well.
5426 * config/arc/arc.opt (mfpu): New option.
5427 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5429 (adddf3, muldf3, subdf3): Removed.
5430 * config/arc/predicates.md (proper_comparison_operator): Recognize
5432 * config/arc/fpu.md: New file.
5433 * doc/invoke.texi (ARC Options): Document mfpu option.
5435 2016-02-16 Richard Biener <rguenther@suse.de>
5437 PR rtl-optimization/69291
5438 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5439 noce_operand_ok check.
5441 2016-02-16 Tom de Vries <tom@codesourcery.com>
5444 * omp-low.c (simd_clone_create): Remove call to
5445 symtab->call_cgraph_insertion_hooks.
5447 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5449 PR tree-optimization/69802
5450 * tree-ssa-reassoc.c (update_range_test): If op is
5451 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5452 op == 1 test of precision 1 integral op, otherwise handle
5453 that case as op itself. Fix up formatting.
5454 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5457 2016-02-16 Richard Biener <rguenther@suse.de>
5459 PR tree-optimization/69586
5460 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5461 types for conversion sources.
5463 2016-02-16 Richard Biener <rguenther@suse.de>
5466 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5467 mask OEP_ADDRESS_OF.
5469 2016-02-16 Alan Modra <amodra@gmail.com>
5472 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5473 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5474 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5476 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5477 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5478 (p8_fmrgow_<mode>): Likewise.
5479 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5481 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5482 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5483 to use movdi_internal64. Remove op0_di.
5484 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5486 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5488 Add support for the FCCMP insn types
5490 * config/aarch64/aarch64.md (fccmp): Change insn type.
5492 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5493 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5494 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5495 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5496 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5497 * config/arm/types.md (fccmps): Add new insn type.
5500 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5502 * alias.c (get_alias_set): Fix a typo in comment.
5504 2016-02-15 Richard Biener <rguenther@suse.de>
5506 PR tree-optimization/69595
5507 * match.pd: Complete range test simplification to true.
5509 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5511 PR rtl-optimization/69648
5512 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5513 pic_offset_table_rtx.
5515 PR rtl-optimization/69752
5516 * ira.c (update_equiv_regs): When looking for more than a single SET,
5517 also take other side effects into account.
5519 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5521 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5522 for z900+ CPUs in 31-bit mode.
5524 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5526 * common/config/s390/s390-common.c (s390_supports_split_stack):
5528 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5529 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5530 * config/s390/s390.c (struct machine_function): New field
5531 split_stack_varargs_pointer.
5532 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5533 in s390_emit_prologue.
5534 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5536 (morestack_ref): New global.
5537 (SPLIT_STACK_AVAILABLE): New macro.
5538 (s390_expand_split_stack_prologue): New function.
5539 (s390_live_on_entry): New function.
5540 (s390_va_start): Use split-stack vararg pointer if appropriate.
5541 (s390_asm_file_end): Emit the split-stack note sections.
5542 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5543 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5544 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5545 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5546 (split_stack_prologue): New expand.
5547 (split_stack_space_check): New expand.
5548 (split_stack_data): New insn.
5549 (split_stack_call): New expand.
5550 (split_stack_call_*): New insn.
5551 (split_stack_cond_call): New expand.
5552 (split_stack_cond_call_*): New insn.
5554 2016-02-15 Richard Biener <rguenther@suse.de>
5556 PR tree-optimization/69783
5557 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5558 Add trivially correct cases.
5560 2016-02-15 Tom de Vries <tom@codesourcery.com>
5563 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5565 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5567 2016-02-15 Richard Biener <rguenther@suse.de>
5569 PR tree-optimization/69776
5570 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5571 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5572 indicate whether we can use TBAA to disambiguate against stores.
5573 Use alias-set zero if not.
5574 (visit_reference_op_store): Do not use TBAA when looking up
5576 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5577 (eliminate_dom_walker::before_dom_children): But not when looking
5578 up redundant stores.
5580 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5582 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5584 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5586 * config/i386/znver1.md
5587 (znver1_pop, znver1_pop_mem,
5588 znver1_load_imov_double_store,
5589 znver1_load_imov_direct_store,
5590 znver1_load_imov_direct_load,
5591 znver1_load_imov_double_load): Add new.
5592 (znver1_insn, znver1_insn_load): Add icmov type.
5594 znver1_sseavx_fma_load,
5596 znver1_avx256_fma_load): Fix pipe usage.
5598 2016-02-14 Alan Modra <amodra@gmail.com>
5601 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5602 with an invalid hard reg, reload just the reg not the entire
5603 pre/post-inc/dec address expression.
5605 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5608 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5609 fixed R1_REG scratch reg.
5610 (sibcall_value_pcrel_fdpic): Likewise.
5612 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5616 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5618 2016-02-12 Walter Lee <walt@tilera.com>
5620 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5621 * config/tilegx/t-tilegx: Likewise.
5623 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5626 * diagnostic-show-locus.c (struct line_span): New struct.
5627 (layout::get_first_line): Delete.
5628 (layout::get_last_line): Delete.
5629 (layout::get_num_line_spans): New member function.
5630 (layout::get_line_span): Likewise.
5631 (layout::print_heading_for_line_span_index_p): Likewise.
5632 (layout::get_expanded_location): Likewise.
5633 (layout::calculate_line_spans): Likewise.
5634 (layout::m_first_line): Delete.
5635 (layout::m_last_line): Delete.
5636 (layout::m_line_spans): New field.
5637 (layout::layout): Update comment. Replace m_first_line and
5638 m_last_line with m_line_spans, replacing their initialization
5639 with a call to calculate_line_spans.
5640 (diagnostic_show_locus): When printing source lines and
5641 annotations, rather than looping over a single span
5642 of lines, instead loop over each line_span within
5643 the layout, with an inner loop over the lines within them.
5644 Call the context's start_span callback when changing line spans.
5645 * diagnostic.c (diagnostic_initialize): Initialize start_span.
5646 (diagnostic_build_prefix): Break out the building of the location
5647 part of the string into...
5648 (diagnostic_get_location_text): ...this new function, rewriting
5649 it from nested ternary expressions to a sequence of "if"
5651 (default_diagnostic_start_span_fn): New function.
5652 * diagnostic.h (diagnostic_start_span_fn): New typedef.
5653 (diagnostic_context::start_span): New field.
5654 (default_diagnostic_start_span_fn): New prototype.
5656 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5659 * gcc.c (driver::finalize): Fix cleanup of "specs".
5661 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5665 * gcc.c (driver::driver): Initialize m_option_suggestions.
5666 (driver::~driver): Clean up m_option_suggestions.
5667 (suggest_option): Convert to...
5668 (driver::suggest_option): ...this, and split out into
5669 driver::build_option_suggestions and find_closest_string.
5670 (driver::build_option_suggestions): New function, from
5671 first half of suggest_option. Special-case
5672 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5673 the sanitizer_opts array. For options of enum types, add the
5674 various enum values to the candidate strings.
5675 (driver::handle_unrecognized_options): Remove "const".
5676 * gcc.h (driver::handle_unrecognized_options): Likewise.
5677 (driver::build_option_suggestions): New decl.
5678 (driver::suggest_option): New decl.
5679 (driver::m_option_suggestions): New field.
5680 * opts-common.c (add_misspelling_candidates): New function.
5681 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5682 and make non-static.
5683 * opts.h (sanitizer_opts): New array decl.
5684 (add_misspelling_candidates): New function decl.
5685 * spellcheck.c (find_closest_string): New function.
5686 * spellcheck.h (find_closest_string): New function decl.
5688 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5690 PR rtl-optimization/69764
5691 PR rtl-optimization/69771
5692 * optabs.c (expand_binop_directly): For shift_optab_p, force
5693 convert_modes with VOIDmode if xop1 has VOIDmode.
5695 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5698 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5699 to correctly determine instrumentation thunks.
5701 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5704 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5705 type by reference, force lhs on the call.
5708 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5709 Compute retval and retbnd early in all cases if split_part_return_p
5710 and return_bb is not EXIT. Remove all clobber stmts and reset
5711 all debug stmts that refer to SSA_NAMEs defined in split part,
5712 except if it is retval, in that case replace the old retval with the
5713 lhs of the call to the split part.
5715 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5718 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5721 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5722 whose result is used in PHI.
5723 (maybe_optimize_range_tests): Likewise.
5724 (final_range_test_p): Likweise.
5726 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5729 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5730 whose result is used in PHI.
5731 (maybe_optimize_range_tests): Likewise.
5732 (final_range_test_p): Likweise.
5734 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5736 * cgraph.c: Spelling fixes - behaviour -> behavior and
5737 neighbour -> neighbor.
5738 * target.def: Likewise.
5739 * sel-sched.c: Likewise.
5740 * config/mips/mips.c: Likewise.
5741 * config/arc/arc.md: Likewise.
5742 * config/arm/cortex-a57.md: Likewise.
5743 * config/arm/arm.c: Likewise.
5744 * config/arm/neon.md: Likewise.
5745 * config/arm/arm-c.c: Likewise.
5746 * config/vms/vms-c.c: Likewise.
5747 * config/s390/s390.c: Likewise.
5748 * config/i386/znver1.md: Likewise.
5749 * config/i386/i386.c: Likewise.
5750 * config/ia64/hpux-unix2003.h: Likewise.
5751 * config/msp430/msp430.md: Likewise.
5752 * config/rx/rx.c: Likewise.
5753 * config/rx/rx.md: Likewise.
5754 * config/aarch64/aarch64-simd.md: Likewise.
5755 * config/aarch64/aarch64.c: Likewise.
5756 * config/nvptx/nvptx.c: Likewise.
5757 * config/bfin/bfin.c: Likewise.
5758 * config/cris/cris.opt: Likewise.
5759 * config/rs6000/rs6000.c: Likewise.
5760 * target.h: Likewise.
5761 * spellcheck.c: Likewise.
5762 * ira-build.c: Likewise.
5763 * tree-inline.c: Likewise.
5764 * builtins.c: Likewise.
5765 * lra-constraints.c: Likewise.
5766 * explow.c: Likewise.
5767 * hwint.h: Likewise.
5768 * targhooks.c: Likewise.
5769 * tree-vect-data-refs.c: Likewise.
5771 * doc/tm.texi: Likewise.
5772 * doc/extend.texi: Likewise.
5773 * doc/install.texi: Likewise.
5774 * doc/md.texi: Likewise.
5775 * tree-ssa-tail-merge.c: Likewise.
5776 * sched-int.h: Likewise.
5777 * match.pd: Likewise.
5778 * sched-ebb.c: Likewise.
5779 * target.def (omit_struct_return_reg): Likewise.
5780 * gimple-ssa-isolate-paths.c: Likewise.
5781 (find_implicit_erroneous_behaviour): Renamed to...
5782 (find_implicit_erroneous_behavior): ... this.
5783 (find_explicit_erroneous_behaviour): Renamed to...
5784 (find_explicit_erroneous_behavior): ... this.
5785 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5787 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
5789 PR rtl-optimization/64682
5790 PR rtl-optimization/69567
5791 PR rtl-optimization/69737
5792 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5793 in I2 as well, just lose it.
5795 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5797 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5799 (aarch64_last_printed_tune_string): Likewise.
5800 (aarch64_declare_function_name): Only output .arch assembler
5801 directive if it will be different from the previously output
5802 directive. Same for .tune comment but only if -dA is set.
5803 (aarch64_start_file): New function.
5804 (TARGET_ASM_FILE_START): Define.
5806 2016-02-11 David Malcolm <dmalcolm@redhat.com>
5809 * Makefile.in (PLUGIN_HEADERS): Add params.list.
5811 2016-02-11 Jakub Jelinek <jakub@redhat.com>
5814 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5815 -Wmaybe-uninitialized warning.
5817 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
5820 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5822 2016-02-11 Richard Biener <rguenther@suse.de>
5824 PR rtl-optimization/69291
5825 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5826 subexpressions affected by changing the result.
5828 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5831 * lra-constraints.c (curr_insn_transform): Find in/out operands
5832 for secondary memory moves. Update dups.
5834 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5836 PR tree-optimization/69652
5837 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5838 to nested loop, did source re-formatting, skip debug statements,
5839 add check on statement with volatile operand, remove dead scalar
5842 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5843 Patrick Palka <ppalka@gcc.gnu.org>
5847 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5848 calls if the return type is TREE_ADDRESSABLE.
5849 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5850 * ipa-split.c (split_function): Fix doubled "we" in comment.
5851 Use void return type for the split part even if
5852 !split_point->split_part_set_retval.
5854 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5856 PR tree-optimization/68021
5857 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5858 when computing the value of biv cand by itself.
5860 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5862 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5863 (cortexa57_tunings): Likewise.
5864 (cortexa72_tunings): Likewise.
5865 (arch_macro_fusion_pair_p): Add support for AES fusion.
5866 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5867 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5868 Allow virtual registers before reload so early scheduling works.
5869 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5870 correct latency and pipeline.
5871 (cortex_a57_crypto_complex): Likewise.
5872 (cortex_a57_crypto_xor): Likewise.
5873 (define_bypass): Add AES bypass.
5875 2016-02-10 Richard Biener <rguenther@suse.de>
5877 PR tree-optimization/69726
5878 * passes.def: Add DCE pass before late uninit.
5879 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5880 really fixup if-conversions job.
5882 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5884 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5885 (arm_cortex_a57_tune): Likewise.
5886 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5887 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5889 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5891 * timevar.def (TV_PHASE_DBGINFO): Delete.
5892 (TV_PHASE_CHECK_DBGINFO): Likewise.
5893 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5895 2016-02-10 Richard Biener <rguenther@suse.de>
5897 PR tree-optimization/69719
5898 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5899 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5901 2016-02-09 Andrew Pinski <apinski@cavium.com>
5904 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5905 get_vcond_mask_icode returns false.
5907 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5910 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5911 an ADDIS that adds a pointer to a large constant that sets the
5912 upper16 bits with a load operation.
5914 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5917 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5919 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5921 (vzipq_s16): Likewise.
5922 (vzipq_s32): Likewise.
5923 (vzipq_f32): Likewise.
5924 (vzipq_u8): Likewise.
5925 (vzipq_u16): Likewise.
5926 (vzipq_u32): Likewise.
5927 (vzipq_p8): Likewise.
5928 (vzipq_p16): Likewise.
5930 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5933 * config/arm/arm.c (neon_endian_lane_map): New function.
5934 (neon_vector_pair_endian_lane_map): New function.
5935 (arm_evpc_neon_vuzp): Allow for big endian lane order.
5936 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5938 (vuzpq_s16): Likewise.
5939 (vuzpq_s32): Likewise.
5940 (vuzpq_f32): Likewise.
5941 (vuzpq_u8): Likewise.
5942 (vuzpq_u16): Likewise.
5943 (vuzpq_u32): Likewise.
5944 (vuzpq_p8): Likewise.
5945 (vuzpq_p16): Likewise.
5947 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
5950 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5953 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
5955 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5956 truncate const_int operand 1 to QImode.
5958 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
5960 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5961 corresponding to an abnormal edge.
5963 2016-02-09 Tom de Vries <tom@codesourcery.com>
5965 PR tree-optimization/69599
5966 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5968 (find_func_aliases_for_builtin_call, find_func_clobbers)
5969 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
5972 2016-02-09 Richard Biener <rguenther@suse.de>
5974 PR tree-optimization/69715
5975 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5976 LHS on calls as non-rewritable.
5978 2016-02-09 Tom de Vries <tom@codesourcery.com>
5981 * lto-wrapper.c (append_diag_options): New function.
5982 (compile_offload_image): Call append_diag_options.
5984 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
5987 * doc/extend.texi (Flag Output Operands): Correct sectioning.
5988 Minor copy-edit to fix verb tenses.
5990 2016-02-08 Jakub Jelinek <jakub@redhat.com>
5992 PR tree-optimization/69209
5993 * ipa-split.c (split_function): If split part is not
5994 returning retval, retval has gimple type but is not
5995 gimple value, force it into a SSA_NAME first.
5997 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
5999 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6002 2016-02-08 Jason Merrill <jason@redhat.com>
6005 * convert.c (convert_to_integer_1): Check dofold on truncation
6007 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6008 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6009 Rename from *_nofold.
6010 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6011 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6013 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
6016 * tree.c (build_common_tree_nodes): Remove short_double argument.
6017 All callers changed.
6018 * tree.h (build_common_tree_nodes): Adjust declaration.
6019 * doc/invoke.texi (-fshort-double): Remove documentation.
6020 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6021 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6022 * lto-wrapper.c (merge_and_complain, append_compiler_options)
6023 (append_linker_options): Don't handle OPT_fshort_double.
6025 PR rtl-optimization/68730
6026 * lra-remat.c (insn_to_cand_activation): New static variable.
6027 (lra_remat): Allocate and free it.
6028 (create_cand): New arg activation. Initialize a field in
6029 insn_to_cand_activation if it is nonnull.
6030 (create_cands): Pass the activation insn to create_cand when making
6031 a candidate involving an output reload. Reorganize code a little.
6032 (do_remat): Keep track of active status of candidates in a separate
6035 2016-02-08 Richard Biener <rguenther@suse.de>
6037 PR tree-optimization/69719
6038 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6039 Properly use absolute of the difference of the two offsets to
6040 compare or adjust the segment length.
6042 2016-02-08 Richard Biener <rguenther@suse.de>
6043 Jeff Law <law@redhat.com>
6046 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6047 types for anonymous SSA names.
6049 2016-02-08 Richard Biener <rguenther@suse.de>
6051 PR rtl-optimization/69274
6052 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6054 2016-02-08 Jeff Law <law@redhat.com>
6056 PR tree-optimization/65917
6057 * tree-ssa-dom.c (record_temporary_equivalences): Record both
6058 equivalences from if (x == y) style conditionals.
6059 (loop_depth_of_name): Remove.
6060 (record_equality): Remove loop depth check.
6061 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6062 (const_and_copies::record_const_or_copy_raw): New member function.
6063 * tree-ssa-scopedtables.c
6064 (const_and_copies::record_const_or_copy_raw): New, factored out of
6065 (const_and_copies::record_const_or_copy): Call new member function.
6067 2016-02-05 Jeff Law <law@redhat.com>
6069 PR tree-optimization/68541
6070 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6071 (count_stmts_in_block): New function.
6072 (poor_ifcvt_candidate_code): Likewise.
6073 (is_feasible_trace): Add some heuristics to determine when path
6074 splitting is profitable.
6075 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6076 is a diamond with a single exit.
6078 2016-02-05 Martin Sebor <msebor@redhat.com>
6081 * doc/invoke.texi: Update -Wplacement-new to take an optional
6084 2016-02-06 Richard Henderson <rth@redhat.com>
6087 * tree.c (tree_nop_conversion_p): Do not strip casts into or
6088 out of non-standard address spaces.
6090 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6092 PR rtl-optimization/69691
6093 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6095 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
6097 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6098 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6099 (*ieee128_mfvsrd_64bit): Likewise.
6100 (*ieee128_mfvsrd_32bit): Likewise.
6102 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
6106 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
6108 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6109 instrumented_version.
6111 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
6113 * doc/invoke.texi (Optimize Options): In table of --param options
6114 rename second occurrence of tracer-min-branch-ratio to
6115 tracer-min-branch-probability, rename
6116 tracer-min-branch-ratio-feedback to
6117 tracer-min-branch-probability-feedback and clarify description,
6118 rename sched-spec-state-edge-prob-cutoff to
6119 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6120 to selsched-insns-to-rename, rename lto-minpartition to
6121 lto-min-partition, delete reorder-blocks-duplicate and
6122 reorder-blocks-duplicate-feedback.
6124 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6126 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6129 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6131 * doc/extend.texi: S/390: Correct some typos.
6133 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6135 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6137 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6140 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6141 (s390_register_info_gprtofpr): Use new macros above.
6142 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6144 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6145 its name. Adjust restore and save gpr ranges.
6146 (s390_register_info_set_ranges): New function.
6147 (s390_register_info): Use new macros above. Call
6148 s390_register_info_set_ranges.
6149 (s390_optimize_register_info): Likewise.
6150 (s390_hard_regno_rename_ok): Use new macros.
6151 (s390_hard_regno_scratch_ok): Likewise.
6152 (s390_emit_epilogue): Likewise.
6153 (s390_can_use_return_insn): Likewise.
6154 (s390_optimize_prologue): Likewise.
6155 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6157 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6160 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6162 (ix86_option_override_internal): Disable TARGET_STV even for
6163 -m{incoming,preferred}-stack-boundary=3.
6165 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6167 * config.gcc: Mark deprecated rtems targets as obsolete.
6169 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6171 PR rtl-optimization/64682
6172 PR rtl-optimization/69567
6173 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6174 before I2 only if the register is both used and set in I2.
6176 2016-02-04 DJ Delorie <dj@redhat.com>
6178 * config/msp430/msp430.c (msp430_start_function): Add function type.
6180 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6183 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6185 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6187 PR rtl-optimization/69577
6189 2015-10-29 Richard Henderson <rth@redhat.com>
6193 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6194 sse check to the exact conditions of PR 67609.
6196 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6199 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6200 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6201 not allowed into the traditional Altivec registers.
6202 (movtd_64bit_nodm): Likewise.
6203 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6205 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6207 * config/aarch64/cortex-a57-fma-steering.c
6208 (aarch64_register_fma_steering): Remove "static" from arguments
6211 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6214 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6217 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6219 * doc/invoke.texi: Delete -mno-fma4.
6221 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6223 PR rtl-optimization/69577
6224 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6225 (find_subregs_of_mode): Update accordingly. Iterate over partial
6228 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6230 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6231 * config/arm/arm.c (neon_reinterpret): Remove.
6232 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6233 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6234 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6235 vreinterpretti): Remove.
6236 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6237 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6238 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6239 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6240 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6241 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6242 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6243 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6244 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6245 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6246 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6247 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6248 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6249 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6250 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6251 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6252 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6253 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6254 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6255 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6256 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6257 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6258 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6259 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6260 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6261 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6262 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6263 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6264 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6265 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6266 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6267 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6268 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6269 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6270 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6271 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6272 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6273 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6274 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6275 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6276 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6277 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6278 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6279 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6280 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6281 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6282 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6283 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6284 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6285 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6286 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6287 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6288 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6289 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6290 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6291 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6292 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6293 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6294 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6295 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6296 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6297 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6298 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6299 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6300 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6301 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6302 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6303 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6304 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6305 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6306 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6307 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6308 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6309 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6310 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6311 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6312 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6313 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6314 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6315 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6316 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6317 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6318 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6319 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6320 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6321 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6322 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6323 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6324 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6325 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6326 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6327 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6328 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6329 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6330 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6331 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6332 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6333 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6334 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6335 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6336 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6337 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6338 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6340 2016-02-04 Martin Liska <mliska@suse.cz>
6343 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6344 that are gimple_store_p.
6345 (maybe_instrument_call): Likewise.
6347 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6349 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6350 register scaling out of memory reference and comment why.
6352 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6356 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6357 folding the source of a SET.
6359 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6363 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6364 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6366 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6370 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6373 2016-02-04 Christian Bruel <christian.bruel@st.com>
6375 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6376 * config/arm/arm.c (arm_set_current_function): Likewise.
6378 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6379 Ilya Enkovich <enkovich.gnu@gmail.com>
6380 H.J. Lu <hongjiu.lu@intel.com>
6383 * config/i386/i386.c (convert_scalars_to_vector): Remove
6384 stack alignment fixes.
6385 (ix86_option_override_internal): Disable TARGET_STV if stack
6386 might not be aligned enough.
6387 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6389 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6391 * gcc/config/i386/x86-tune.def: Disable default prefetching
6394 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6395 Vladimir Makarov <vmakarov@redhat.com>
6398 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6399 in validating fused toc addresses.
6401 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6404 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6405 range->m_caret fields if range->m_show_caret_p is false.
6408 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6409 Force oldval into register if it does not satisfy reg_or_short_operand
6410 predicate. Fix up formatting.
6412 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6413 Alexandre Oliva <aoliva@redhat.com>
6416 * lra-constraints.c (simplify_operand_subreg): Check additionally
6417 address validity after potential reloading.
6418 (process_address_1): Check insns validity. In case of failure do
6421 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6424 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6427 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6429 * wide-int.cc (canonize_uhwi): New function.
6430 (wi::divmod_internal): Use it.
6432 2016-02-02 James Norris <jnorris@codesourcery.com
6434 * gimplify.c (omp_notice_variable): Add usage check.
6436 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6438 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6439 like LE, GE, LT, GT when emitting relational operator.
6441 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6443 * ira-costs.c (find_costs_and_classes): Add extra argument.
6444 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6445 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6446 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6447 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6448 Add best_class parameter, and return it if not ALL_REGS.
6449 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6451 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6454 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6456 * config/aarch64/aarch64.c
6457 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6458 (aarch64_ira_change_pseudo_allocno_class): New function.
6460 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6463 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6465 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6467 * config/avr/avr.c (avr_option_override): Set
6468 PARAM_ALLOW_STORE_DATA_RACES to 1.
6470 2016-02-02 Richard Biener <rguenther@suse.de>
6472 PR tree-optimization/69595
6473 * match.pd: Add range test simplifications to true/false.
6475 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6477 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6478 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6481 2016-02-02 Richard Biener <rguenther@suse.de>
6483 PR tree-optimization/69606
6484 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6485 info on the result before moving a stmt.
6487 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6490 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6491 branch with vector comparison.
6492 * config/i386/sse.md (VI48_AVX): New mode iterator.
6493 (define_expand "cbranch<mode>4): Add support for conditional branch
6494 with vector comparison.
6495 * tree-vect-loop.c (optimize_mask_stores): New function.
6496 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6497 has_mask_store field of vect_info.
6498 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6499 vectorized loops having masked stores after vec_info destroy.
6500 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6501 correspondent macros.
6502 (optimize_mask_stores): Add prototype.
6504 2016-02-02 Alan Modra <amodra@gmail.com>
6507 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6510 2016-02-02 Alan Modra <amodra@gmail.com>
6513 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6514 whenever toc_label_name used.
6515 (rs6000_file_start): Don't set up toc section here,
6516 (rs6000_output_function_epilogue): do so here instead,
6517 (rs6000_xcoff_file_start): and here.
6518 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6519 (load_toc_aix_di): Likewise.
6521 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6523 PR rtl-optimization/69592
6524 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6525 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6526 (num_sign_bit_copies_binary_arith_p): New inline function.
6527 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6529 2016-02-01 Jeff Law <law@redhat.com>
6531 PR tree-optimization/69580
6532 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6533 * tree-ssa-threadbackward.c
6534 (fsm_find_control_statement_thread_paths): Do not try to walk
6535 through large PHI nodes.
6537 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6539 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6540 when count is incremented above limit, don't analyze further
6543 * omp-low.c (oacc_parse_default_dims): Avoid
6544 -Wsign-compare warning, make sure value fits into int
6545 rather than just unsigned int.
6547 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6549 PR tree-optimization/67921
6550 * fold-const.c (split_tree): New parameters. Convert pointer
6551 type variable part to proper type before negating.
6552 (fold_binary_loc): Pass new arguments to split_tree.
6554 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6556 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6557 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6558 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6559 * doc/tm.texti: Rebuilt.
6560 * doc/invoke.texi (fopenacc-dim): Document.
6561 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6562 (append_compiler_options): Likewise.
6563 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6564 (oacc_parse_default_dims): New.
6565 (oacc_validate_dims): Add USED arg. Select non-unity default when
6567 (oacc_loop_fixed_partitions): Return mask of used partitions.
6568 (oacc_loop_auto_partitions): Emit dump info.
6569 (oacc_loop_partition): Return mask of used partitions.
6570 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6571 loop partitioning and validation calls.
6573 2016-02-01 Richard Biener <rguenther@suse.de>
6576 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6578 2016-02-01 Richard Biener <rguenther@suse.de>
6580 PR tree-optimization/69574
6581 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6582 of asserting return chrec_dont_know.
6584 2016-02-01 Martin Liska <mliska@suse.cz>
6586 * mem-stats-traits.h: Add copyright header.
6587 * mem-stats.h: Likewise.
6589 2016-02-01 Richard Biener <rguenther@suse.de>
6591 PR tree-optimization/69579
6592 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6593 Do not propagate through abnormal PHI results.
6595 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6597 * postreload.c (reload_cse_simplify): Remove dead code.
6599 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6601 PR rtl-optimization/69570
6602 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6603 if there is more than one set, not if there is a single set.
6605 2016-02-01 Richard Henderson <rth@redhat.com>
6608 * combine.c (make_compound_operation): When looking through a
6609 subreg, make sure to re-extend to the width of the outer mode.
6611 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6613 PR tree-optimization/69546
6614 * wide-int.cc (wi::divmod_internal): For unsigned division
6615 where both operands fit into uhwi, if o1 is 1 and o0 has
6616 msb set, if divident_prec is larger than bits per hwi,
6617 clear another quotient word and return 2 instead of 1.
6618 Similarly for remainder with msb in HWI set, if dividend_prec
6619 is larger than bits per hwi.
6621 2016-01-29 Martin Jambor <mjambor@suse.cz>
6623 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6624 Use short lowercase names.
6625 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
6626 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6627 acq_rel one. Protect warning agains segfaults if
6628 get_memory_order_name returns NULL.
6629 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6630 with release semantics. Do not warn if get_memory_order already did.
6631 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6632 semantics. Fix check for relaxed or acquire semantics. Do not warn
6633 if get_memory_order already did.
6635 2016-01-29 Sebastian Pop <s.pop@samsung.com>
6637 * doc/install.texi: Document that isl-0.16 is supported.
6639 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
6642 * config/i386/constraints.md (Bm): Describe as special memory
6644 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6645 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6646 * genpreds.c (struct constraint_data): Add is_special_memory.
6647 (have_special_memory_constraints, special_memory_start): New
6649 (special_memory_end): Ditto.
6650 (add_constraint): Add new arg is_special_memory. Add code to
6651 process its true value. Update have_special_memory_constraints.
6652 (process_define_constraint): Pass the new arg.
6653 (process_define_register_constraint): Ditto.
6654 (choose_enum_order): Process special memory.
6655 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6656 function insn_extra_special_memory_constraint.
6657 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6658 * gensupport.c (process_rtx): Process
6659 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6660 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6661 * ira-lives.c (single_reg_class): Use
6662 insn_extra_special_memory_constraint.
6663 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6664 * lra-constraints.c (process_alt_operands): Ditto.
6665 (curr_insn_transform): Use insn_extra_special_memory_constraint.
6666 * recog.c (asm_operand_ok, preprocess_constraints): Process
6668 * reload.c (find_reloads): Ditto.
6669 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6670 * stmt.c (parse_input_constraint): Use
6671 insn_extra_special_memory_constraint.
6673 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6676 * lra-splill.c (lra_final_code_change): Revert r229087 by
6677 removing all sub-registers.
6679 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
6682 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6684 2016-01-29 Jakub Jelinek <jakub@redhat.com>
6687 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6688 SSE1, copy target into the temporary reg first before recursing
6691 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6693 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6696 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6698 * ginclude/stdarg.h: Test __cplusplus instead of
6699 __GXX_EXPERIMENTAL_CXX0X__.
6701 2016-01-29 Richard Biener <rguenther@suse.de>
6703 PR tree-optimization/69547
6704 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6705 Do not mark clobbers necessary.
6706 (mark_all_reaching_defs_necessary_1): Likewise.
6708 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6710 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6711 declaration name with %qs and print it in both error messages.
6712 Also fix indentation.
6714 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6717 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6718 trailing blank line from error message.
6720 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6723 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6726 2016-01-29 Richard Biener <rguenther@suse.de>
6729 * match.pd: Allow all integral types when simplifying a
6730 widening or sign-changing conversion.
6732 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6734 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6735 back to setting codegen_error to fail codegen.
6737 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
6740 * config/i386/constraints.md (C): Only accept constant zero operand.
6741 (BC): New constraint.
6742 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6743 instead of C constraint.
6744 * doc/md.texi (Machine Constraints): Update description
6747 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
6750 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6752 2016-01-28 Jakub Jelinek <jakub@redhat.com>
6755 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6758 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
6760 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6761 branches if using guessed profile.
6763 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
6765 * graphite-optimize-isl.c (optimize_isl): Fix dump.
6767 2016-01-28 Richard Henderson <rth@redhat.com>
6770 * config/aarch64/aarch64-modes.def (CC_Cmode): New
6771 * config/aarch64/aarch64-protos.h: Update.
6772 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6773 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6774 (aarch64_get_condition_code_1): Handle CC_Cmode.
6775 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6776 (*add<mode>3_compareC_cconly_imm): New.
6777 (*add<mode>3_compareC_cconly): New.
6778 (*add<mode>3_compareC_imm): New.
6779 (add<mode>3_compareC): New.
6780 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6781 to be first. Use aarch64_carry_operation.
6782 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6783 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6784 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6785 (subti3): Use subdi3_compare1.
6786 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6787 (sub<mode>3_compare1): New.
6788 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6789 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6790 (*subsi3_carryin_uxtw): Likewise.
6791 (*ngc<mode>, *ngcsi_uxtw): Likewise.
6792 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6793 * config/aarch64/iterators.md (DWI): New.
6794 * config/aarch64/predicates.md (aarch64_carry_operation): New.
6795 (aarch64_borrow_operation): New.
6797 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6799 * graphite-optimize-isl.c (optimize_isl): Print a different debug
6800 message when isl does not return a valid schedule.
6802 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6804 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6805 Remove comments from class declarations: they are already in the code
6808 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6810 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6812 (ternary_op_to_tree): Same.
6813 (unary_op_to_tree): Same.
6814 (nary_op_to_tree): Same.
6815 (gcc_expression_from_isl_expr_op): Same.
6816 (gcc_expression_from_isl_expression): Same.
6817 (graphite_create_new_loop): Same.
6818 (graphite_create_new_loop_guard): Same.
6819 (build_iv_mapping): Same.
6820 (graphite_create_new_guard): Same.
6821 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6822 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6824 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6826 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6827 instead of setting codegen_error to fail codegen.
6829 2016-01-28 Jason Merrill <jason@redhat.com>
6831 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6833 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6835 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6836 Remove CONST_INT_P check in CCMP cost calculation.
6838 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6840 * config/aarch64/aarch64.c (generic_vector_cost):
6841 Set vec_permute_cost.
6842 (cortexa57_vector_cost): Likewise.
6843 (exynosm1_vector_cost): Likewise.
6844 (xgene1_vector_cost): Likewise.
6845 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6846 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6847 Add vec_permute_cost entry.
6849 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6851 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6853 (add<mode>3_compare0): Likewise.
6854 (addsi3_compare0_uxtw): Likewise.
6855 (add<mode>3nr_compare0): Likewise.
6856 (compare_neg<mode>): Likewise.
6857 (<optab><mode>3): Likewise.
6859 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6861 * tree-vect-stmts.c (vectorizable_comparison): Add
6862 NULL check for vectype.
6864 2016-01-28 Richard Biener <rguenther@suse.de>
6866 PR tree-optimization/69466
6867 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6868 Account for PHIs we couldn't duplicate.
6870 2016-01-28 Martin Liska <mliska@suse.cz>
6873 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6874 instead of ENABLE_VALGRIND_CHECKING.
6876 2016-01-27 Richard Henderson <rth@redhat.com>
6879 * lra-remat.c (subreg_regs): New.
6880 (dump_candidates_and_remat_bb_data): Dump it.
6881 (operand_to_remat): Reject if operand in subreg_regs.
6882 (set_bb_regs): Collect subreg_regs.
6883 (lra_remat): Init and free subreg_regs. Compute
6884 calculate_local_reg_remat_bb_data before create_cands.
6886 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6889 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6890 change stack_alignment_needed for __tls_get_addr call.
6892 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6894 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6896 2016-01-27 Jeff Law <law@redhat.com>
6898 PR tree-optimization/68398
6899 PR tree-optimization/69196
6900 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6901 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6902 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6903 Only count PHIs in the last block in the path. The others will
6904 const/copy propagate away. Add heuristic to allow more irreducible
6905 subloops to be created when it is likely profitable to do so.
6907 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6908 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6909 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6911 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6914 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6915 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6916 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6917 * tree-streamer-in.c: Include asan.h.
6918 (streamer_get_builtin_tree): For builtins in sanitizer
6919 range call initialize_sanitizer_builtins and retry.
6921 2016-01-27 Ian Lance Taylor <iant@google.com>
6923 * common.opt (fkeep-gc-roots-live): New undocumented option.
6924 * tree-ssa-loop-ivopts.c (add_candidate_1): If
6925 -fkeep-gc-roots-live, skip pointers.
6926 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6929 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
6932 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6933 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6935 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
6938 * configure.ac: NetBSD provides SSP in its C library.
6939 * configure: Updated.
6941 2016-01-27 Richard Biener <rguenther@suse.de>
6943 PR tree-optimization/69166
6944 * tree-vect-loop.c (vect_is_simple_reduction): Always check
6945 reduction code for commutativity / associativity.
6947 2016-01-27 Martin Jambor <mjambor@suse.cz>
6949 PR tree-optimization/69355
6950 * tree-sra.c (analyze_access_subtree): Correct hole detection when
6951 total_scalarization fails.
6953 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
6955 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6958 2016-01-27 Christian Bruel <christian.bruel@st.com>
6961 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6962 Move arm_reset_previous_fndecl and set_target_option_current_node in
6963 the conditional part. Call save_restore_target_globals.
6964 * config/arm/arm.c (arm_set_current_function):
6965 Refactor to better support #pragma target and attribute mix.
6966 Call save_restore_target_globals.
6967 * config/arm/arm-protos.h (save_restore_target_globals): New function.
6969 2016-01-27 Martin Liska <mliska@suse.cz>
6971 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6972 reference for an HSA kernel and its host function.
6974 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6976 PR tree-optimization/69399
6977 * wide-int.h (wi::lrshift): For larger precisions, only
6978 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6980 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
6982 * config/arc/predicates.md (proper_comparison_operator): Reject
6983 constant-constant comparison.
6985 2016-01-26 Tom de Vries <tom@codesourcery.com>
6987 PR tree-optimization/69110
6988 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6989 DR_NUM_DIMENSIONS == 0.
6991 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6992 Sebastian Pop <s.pop@samsung.com>
6994 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6995 isl_ast_op_cond and isl_ast_op_select.
6996 (gcc_expression_from_isl_expr_op): Same.
6998 2016-01-26 Jason Merrill <jason@redhat.com>
7001 * tree.c (recompute_constructor_flags): Split out from
7003 (verify_constructor_flags): New.
7004 * tree.h: Declare them.
7006 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
7008 PR rtl-optimization/69217
7009 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7010 are no TYPE_FIELDS set for the record type.
7012 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7015 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7016 toc_label_name unconditionally.
7017 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7018 SYMBOL_REF string. Use toc_label_name instead of constructing
7020 (rs6000_elf_declare_function_name): Use toc_label_name instead of
7021 constructing LCTOC1.
7023 2016-01-26 Martin Sebor <msebor@redhat.com>
7026 * doc/extend.texi (Common Type Attributes): Move text that talks about
7027 attribute packed from attribute aligned to the section discussing
7028 the former attribute for clarity.
7030 2016-01-26 Richard Henderson <rth@redhat.com>
7033 * trans-mem.c (tm_region_init): Mark entry block as visited.
7035 2016-01-26 David Malcolm <dmalcolm@redhat.com>
7038 * diagnostic-show-locus.c (layout::print_source_line): Replace
7039 call to pp_newline with call to layout::print_newline.
7040 (layout::print_annotation_line): Likewise.
7041 (layout::move_to_column): Likewise.
7042 (layout::print_any_fixits): After printing any fixits, print a
7043 trailing newline, if necessary.
7044 (layout::print_newline): New method, resetting any colorization
7046 (diagnostic_show_locus): Move the pp_newline to before the
7047 early bailout. Remove dummy block enclosing the layout instance.
7048 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7049 of pp_newline_and_flush with pp_flush.
7050 (diagnostic_append_note): Delete use of pp_newline.
7051 (diagnostic_append_note_at_rich_loc): Delete.
7052 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7053 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7054 when newline characters are added to the buffer.
7056 2016-01-26 Michael Matz <matz@suse.de>
7058 * configure.ac (ac_cv_std_swap_in_utility): New test.
7059 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7060 * configure: Regenerate.
7061 * config.in: Regenerate.
7063 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
7065 * config/arc/arc.md (cstoresi4): Force operand into register.
7066 (arcset<code>): Fix predicate.
7067 (arcsetltu): Likewise.
7068 (arcsetgeu): Likewise.
7069 (arcsethi): Likewise.
7070 (arcsetls): Likewise.
7072 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7074 PR tree-optimization/69483
7075 * gimple-fold.c (canonicalize_constructor_val): Return NULL
7076 if base has error_mark_node type.
7078 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
7081 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7082 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7084 (vget_lane_f16): Handle big-endian.
7085 (vgetq_lane_f16): Likewise.
7086 (vset_lane_f16): Likewise.
7087 (vsetq_lane_f16): Likewise.
7088 * config/arm/iterators.md (VQXMOV): Add V8HF.
7089 (VDQ): Add V4HF and V8HF.
7090 (V_reg): Handle V4HF and V8HF.
7091 (Is_float_mode): Likewise.
7092 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7093 neon_vdup_nv8hf): New patterns.
7094 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7095 Use VD_LANE iterator.
7096 (neon_vld1_dup<mode>): Use VQ2 iterator.
7098 2016-01-26 Nathan Sidwell <nathan@acm.org>
7100 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7101 (set_oacc_fn_attrib): Add IS_KERNEL arg.
7102 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7103 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7104 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7105 (oacc_validate_dims): Add LEVEL arg, don't return level.
7106 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7108 (execute_oacc_device_lower): Adjust, add more dump output.
7109 * tree-ssa-loop.c (gate_oacc_kernels): Use
7110 oacc_fn_attrib_kernels_p.
7111 * tree-parloops.c (create_parallel_loop): Adjust
7112 set_oacc_fn_attrib call.
7114 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7117 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7118 (append_compiler_options): Handle -fcilkplus.
7119 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7121 2016-01-26 Nick Clifton <nickc@redhat.com>
7124 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7125 been marked as DECL_ONE_ONLY but we do not the means to make it
7126 so, then do not allow it to bind locally.
7128 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7131 * opts.h (parse_sanitizer_options): New prototype.
7132 * opts.c (sanitizer_opts): New array.
7133 (parse_sanitizer_options): New function.
7134 (common_handle_option): Use parse_sanitizer_options.
7136 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7139 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7140 alignment adjustment to ...
7141 (ix86_update_stack_boundary): Here. Don't over-align stack for
7143 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7144 if __tls_get_addr is called.
7146 2016-01-26 Christian Bruel <christian.bruel@st.com>
7148 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7150 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7152 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7154 2016-01-26 Richard Biener <rguenther@suse.de>
7157 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7159 2016-01-26 Richard Biener <rguenther@suse.de>
7161 PR tree-optimization/69452
7162 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7163 (move_computations_dom_walker::before_dom_children): Rename
7165 (move_computations_worker): This.
7166 (move_computations): Perform an RPO rather than a DOM walk.
7168 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7171 * combine.c (combine_instructions): For REG_EQUAL note with
7172 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7173 to the underlying register.
7174 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7175 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7177 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7180 * config/aarch64/aarch64-builtins.c
7181 (aarch64_init_simd_builtin_types): Do not set structural
7182 equality to __Poly{8,16,64,128}_t types.
7184 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7186 PR tree-optimization/69400
7187 * wide-int.cc (wi_pack): Take the precision as argument and
7188 perform canonicalization here rather than in the callers.
7189 Use the main loop to handle all full-width HWIs. Add a
7190 zero HWI if in_len isn't a full result.
7191 (wi::divmod_internal): Update accordingly.
7192 (wi::mul_internal): Likewise. Simplify.
7194 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7195 Sebastian Pop <s.pop@samsung.com>
7197 * graphite-poly.c (apply_poly_transforms): Simplify.
7198 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7199 (print_isl_map): Same.
7200 (print_isl_union_map): Same.
7201 (print_isl_schedule): New.
7202 (debug_isl_schedule): New.
7203 * graphite-dependences.c (scop_get_reads): Do not call
7204 isl_union_map_add_map that is undocumented isl functionality.
7205 (scop_get_must_writes): Same.
7206 (scop_get_may_writes): Same.
7207 (scop_get_original_schedule): Remove.
7208 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7209 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7210 (compute_deps): Remove.
7211 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7212 (debug_schedule_ast): New.
7213 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7214 set_separate_option.
7215 (graphite_regenerate_ast_isl): Add dump.
7216 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7217 from scop->transformed_schedule.
7218 (graphite_regenerate_ast_isl): Add more dump.
7219 * graphite-optimize-isl.c (optimize_isl): Set
7220 scop->transformed_schedule. Check whether schedules are equal.
7221 (apply_poly_transforms): Move here.
7222 * graphite-poly.c (apply_poly_transforms): ... from here.
7223 (free_poly_bb): Static.
7224 (free_scop): Static.
7225 (pbb_number_of_iterations_at_time): Remove.
7226 (print_isl_ast): New.
7227 (debug_isl_ast): New.
7228 (debug_scop_pbb): New.
7229 * graphite-scop-detection.c (print_edge): Move.
7231 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7232 (build_scop_scattering): Remove.
7233 (create_pw_aff_from_tree): Assert instead of bailing out.
7234 (add_condition_to_pbb): Remove unused code, do not fail.
7235 (add_conditions_to_domain): Same.
7236 (add_conditions_to_constraints): Remove.
7237 (build_scop_context): New.
7238 (add_iter_domain_dimension): New.
7239 (build_iteration_domains): Initialize pbb->iterators.
7240 Call add_conditions_to_domain.
7243 (index_outermost_in_loop): New.
7244 (index_pbb_in_loop): New.
7245 (outermost_pbb_in): New.
7246 (add_in_sequence): New.
7247 (add_outer_projection): New.
7248 (outer_projection_mupa): New.
7249 (add_loop_schedule): New.
7250 (build_schedule_pbb): New.
7251 (build_schedule_loop): New.
7252 (embed_in_surrounding_loops): New.
7253 (build_schedule_loop_nest): New.
7254 (build_original_schedule): New.
7255 (build_poly_scop): Call build_original_schedule.
7256 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7257 (free_poly_dr): Remove.
7258 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7259 (free_poly_bb): Remove.
7260 (debug_loop_vec): Remove.
7261 (print_isl_ast): Declare.
7262 (debug_isl_ast): Declare.
7263 (scop_do_interchange): Remove.
7264 (scop_do_strip_mine): Remove.
7265 (scop_do_block): Remove.
7266 (flatten_all_loops): Remove.
7267 (optimize_isl): Remove.
7268 (pbb_number_of_iterations_at_time): Remove.
7269 (debug_scop_pbb): Declare.
7270 (print_schedule_ast): Declare.
7271 (debug_schedule_ast): Declare.
7272 (struct scop): Remove schedule. Add original_schedule,
7273 transformed_schedule.
7274 (free_gimple_poly_bb): Remove.
7275 (print_generated_program): Remove.
7276 (debug_generated_program): Remove.
7277 (unify_scattering_dimensions): Remove.
7278 * sese.c (print_edge): ... here.
7279 (print_sese): ... here.
7280 (debug_edge): ... here.
7281 (debug_sese): ... here.
7282 * sese.h (print_edge): Declare.
7283 (print_sese): Declare.
7284 (dump_edge): Declare.
7285 (dump_sese): Declare.
7287 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7288 Sebastian Pop <s.pop@samsung.com>
7290 * Makefile.in: Set ISLVER in site.exp.
7292 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7294 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7295 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7296 through DECL_VALUE_EXPR for expansion.
7298 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7300 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7301 the frame info after reload completed.
7303 2016-01-25 Jeff Law <law@redhat.com>
7305 PR tree-optimization/69196
7306 PR tree-optimization/68398
7307 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7308 tree-ssa-threadupdate.c.
7309 (determine_bb_domination_status): Prototype
7310 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7311 (determine_bb_domination_status): No longer static.
7312 (valid_jump_thread_path): Remove code to detect characteristics
7313 of the jump thread path not associated with correctness.
7314 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7315 Correct test for thread path length. Count PHIs for real operands as
7316 statements that need to be copied. Do not count ASSERT_EXPRs.
7317 Look at all the blocks in the thread path. Compute and selectively
7318 filter thread paths based on threading through the latch, threading
7319 a multiway branch or crossing a multiway branch.
7321 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7323 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7324 decl with __attribute__ ((unused)) annotation.
7326 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7329 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7330 of operands is compatible with a statement vectype.
7332 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7334 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7335 improve wording for mixed storage order support.
7337 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7339 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7340 (vcvt_u64_f64): Likewise.
7341 (vcvta_s64_f64): Likewise.
7342 (vcvta_u64_f64): Likewise.
7343 (vcvtm_s64_f64): Likewise.
7344 (vcvtm_u64_f64): Likewise.
7345 (vcvtn_s64_f64): Likewise.
7346 (vcvtn_u64_f64): Likewise.
7347 (vcvtp_s64_f64): Likewise.
7348 (vcvtp_u64_f64): Likewise.
7350 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7352 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7353 (arc_init): Check validity mll64 option.
7354 (arc_save_restore): Use double load/store instruction.
7355 (arc_expand_movmem): Likewise.
7356 (arc_split_move): Don't split if we have double load/store
7357 instructions. Returns a boolean.
7358 (arc_process_double_reg_moves): Change function to return boolean
7359 instead of a sequence of instructions.
7360 (arc_dwarf_register_span): New function.
7361 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7362 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7363 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7364 (*movdf_insn): Likewise.
7365 * config/arc/arc.opt (mll64): New option.
7366 * config/arc/predicates.md (even_register_operand): New predicate.
7367 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7369 2016-01-25 Richard Biener <rguenther@suse.de>
7372 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7373 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7375 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7377 2016-01-25 Richard Biener <rguenther@suse.de>
7379 PR tree-optimization/69376
7380 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7382 (VN_INFO_ANTI_RANGE_P): New inline.
7383 (VN_INFO_RANGE_TYPE): Likewise.
7384 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7385 SSA_NAME_ANTI_RANGE_P.
7386 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7387 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7388 Properly query VN_INFO_RANGE_TYPE.
7390 2016-01-25 Nick Clifton <nickc@redhat.com>
7393 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7395 2016-01-23 Tom de Vries <tom@codesourcery.com>
7397 PR tree-optimization/69426
7398 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7401 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7403 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7404 "the the" with "the" in the comments.
7405 * ipa-devirt.c (build_type_inheritance_graph,
7406 update_type_inheritance_graph): Likewise.
7407 * tree.c (build_function_type_list_1): Likewise.
7408 * cfgloopmanip.c (scale_loop_profile): Likewise.
7409 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7410 * gimple-ssa-split-paths.c
7411 (find_block_to_duplicate_for_splitting_paths): Likewise.
7412 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7413 * expr.c (convert_move): Likewise.
7414 * var-tracking.c (vt_stack_adjustments): Likewise.
7415 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7416 * tree-vrp.c (test_for_singularity): Likewise.
7418 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7419 directly instead of building a temporary tree.
7422 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7423 remove <algorithm> include.
7425 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7428 * config/i386/i386.c: Include dojump.h.
7429 (expand_small_movmem_or_setmem,
7430 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7432 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7433 if dynamic_check != -1.
7435 2016-01-21 Jeff Law <law@redhat.com>
7438 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7439 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7440 into dominated_by_p.
7441 (cprop_into_successor_phis): Avoid unnecessary tests.
7443 2016-01-22 Richard Henderson <rth@redhat.com>
7446 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7447 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7449 2016-01-22 Michael Matz <matz@suse.de>
7451 * system.h (string, algorithm): Include only conditionally.
7452 (new): Include always under C++.
7453 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7454 * final.c (toplevel): Ditto.
7455 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7456 * genconditions.c (write_header): Make gencondmd.c define
7458 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7460 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7461 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7463 2016-01-22 Christian Bruel <christian.bruel@st.com>
7466 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7468 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7471 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7472 define_insn_and_split. Ensure operands[1] and operands[0] do not
7473 get assigned the same register.
7475 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7477 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7479 2016-01-22 Christian Bruel <christian.bruel@st.com>
7481 * config/arm/arm-c.c (arm_pragma_target_parse):
7482 Remove warn_builtin_macro_redefined overwrite.
7484 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7486 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7487 flag_non_call_exceptions compatibility.
7489 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7492 * dwarf2out.c (add_child_die_after): New function.
7493 (dwarf_qual_info_t): New type.
7494 (dwarf_qual_info): New variable.
7495 (qualified_die_p): New function.
7496 (modified_type_die): For -fdebug-types-section, ensure
7497 canonical order of qualifiers. Put qualified DIEs adjacent
7498 to the corresponding non-qualified type DIE and search there
7499 for existing qualified DIEs.
7501 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7503 * doc/extend.texi (scalar_storage_order type attribute): Document
7504 restriction on type punning and aliasing, and remove future tense.
7506 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7509 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7512 2016-01-21 Jeff Law <law@redhat.com>
7515 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7516 useless call to record_temporary_equivalences.
7517 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7518 allocate 10 slots in the bb_path vector and let it grow as needed.
7519 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7522 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7524 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7526 * configure: Regenerate.
7528 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7530 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7531 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7533 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7536 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7537 drop EXPAND_INITIALIZER.
7538 * rtl.h (contains_symbolic_reference_p): Declare.
7539 * rtlanal.c (contains_symbolic_reference_p): New function.
7540 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7541 a subtraction into a NOT if symbolic constants are involved.
7543 2016-01-21 Anton Blanchard <anton@samba.org>
7544 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7547 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7549 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7552 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7554 * config/microblaze/microblaze.c
7555 (get_branch_target): New.
7556 (insert_wic_for_ilb_runout): New.
7558 (microblaze_machine_dependent_reorg): New.
7559 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7560 * config/microblaze/microblaze.md
7561 (UNSPEC_IPREFETCH): Define.
7562 (iprefetch): New pattern
7563 * config/microblaze/microblaze.opt
7564 (mxl-prefetch): New flag.
7566 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7568 * config/microblaze/microblaze.h
7569 (FIXED_REGISTERS): Update in macro.
7570 (CALL_USED_REGISTERS): Update in macro.
7572 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7574 PR rtl-optimization/68920
7575 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7578 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7580 PR rtl-optimization/68990
7581 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7582 pseudo instead of inheritance ones.
7584 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7585 Nick Clifton <nickc@redhat.com>
7589 * config/mips/mips.c (mips_compute_frame_info): Initialise
7590 args_size and hard_frame_pointer_offset fields of the frame
7591 structure before calling mips_global_pointer.
7593 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7595 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7597 * configure: Regenerate.
7599 2016-01-21 Richard Biener <rguenther@suse.de>
7601 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7603 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7605 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7606 to actually emit the .size directive.
7608 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7609 Jakub Jelinek <jakub@redhat.com>
7613 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7614 args array size by one to avoid buffer overflow.
7616 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7618 * config/s390/s390.md (pool_section_start): Use switch_to_section
7619 to select proper read-only data section instead of hardcoding
7621 (pool_section_end): Use switch_to_section to match the above.
7623 2016-01-21 Richard Biener <rguenther@suse.de>
7625 PR tree-optimization/69378
7626 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7627 (set_ssa_val_to): Use it for dominance checks taking into
7628 account not executable edges.
7630 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7633 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7634 for bitsize instead of GET_MODE_PRECISION (mode).
7636 2016-01-20 Martin Sebor <msebor@redhat.com>
7639 * extend.texi (__sync Builtins): Clarify the semantics of
7640 __sync_fetch_and_OP built-ins on pointers.
7641 (__atomic Builtins): Same.
7643 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7644 Sebastian Pop <s.pop@samsung.com>
7646 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7647 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7648 (is_valid_rename): Same.
7649 (translate_isl_ast_to_gimple::get_rename): Same.
7650 (translate_isl_ast_to_gimple::rename_all_uses): Same.
7651 (translate_isl_ast_to_gimple::rename_uses): Same.
7652 (get_new_name): Check for close_phi nodes.
7653 (copy_loop_phi_args): Use phi_node_kind.
7654 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7655 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7657 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7658 Sebastian Pop <s.pop@samsung.com>
7660 Revert commit r229783.
7661 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7662 Remove use of parameter_rename_map.
7664 (copy_internal_parameters): Remove.
7665 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7666 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7667 (free_sese_info): Do not free parameter_rename_map.
7668 (set_rename): Do not use parameter_rename_map.
7669 (rename_uses): Update call to set_rename.
7670 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7671 * sese.h (parameter_rename_map_t): Remove.
7672 (struct sese_info_t): Remove field parameter_rename_map.
7674 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7675 Sebastian Pop <s.pop@samsung.com>
7677 * graphite-isl-ast-to-gimple.c: Fix comment.
7678 * graphite-scop-detection.c (defined_in_loop_p): New.
7679 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7680 names defined in loop.
7682 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7683 Sebastian Pop <s.pop@samsung.com>
7685 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7686 Discard unstructured if-then-else regions.
7688 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7689 Sebastian Pop <s.pop@samsung.com>
7691 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7692 (cleanup_loop_iter_dom): Remove.
7693 (build_loop_iteration_domains): Remove.
7694 (build_scop_context): Remove.
7695 (build_scop_iteration_domain): Remove.
7696 (add_loop_constraints): New.
7697 (build_iteration_domains): New.
7698 (build_poly_scop): Call build_iteration_domains.
7700 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7701 Sebastian Pop <s.pop@samsung.com>
7703 * graphite-scop-detection.c
7704 (scop_detection::harmful_loop_in_region): Free dom and loops.
7705 (scop_detection::loop_body_is_valid_scop): Free bbs.
7707 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7708 Sebastian Pop <s.pop@samsung.com>
7710 * graphite-scop-detection.c (record_loop_in_sese): New.
7711 (gather_bbs::before_dom_children): Call record_loop_in_sese.
7712 (build_scops): Remove call to build_sese_loop_nests.
7713 * sese.c (sese_record_loop): Remove.
7714 (build_sese_loop_nests): Remove.
7715 (new_sese_info): Remove region->loops.
7716 (free_sese_info): Same.
7717 * sese.h (sese_contains_loop): Same.
7718 (build_sese_loop_nests): Remove.
7719 (sese_contains_loop): Remove.
7721 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7722 Sebastian Pop <s.pop@samsung.com>
7724 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7725 loop_is_valid_in_scop.
7726 (scop_detection::harmful_stmt_in_region): Renamed
7727 harmful_loop_in_region.
7728 Call loop_is_valid_in_scop.
7730 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7731 Sebastian Pop <s.pop@samsung.com>
7733 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7736 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7737 Sebastian Pop <s.pop@samsung.com>
7739 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7740 * graphite.h (struct poly_bb): Remove field is_reduction.
7741 (PBB_IS_REDUCTION): Remove.
7743 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7744 Sebastian Pop <s.pop@samsung.com>
7746 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7747 (add_pdr_constraints): Same.
7748 (scop_get_reads): Same.
7749 (scop_get_must_writes): Same.
7750 (scop_get_may_writes): Same.
7751 (scop_get_original_schedule): Same.
7752 (extend_schedule): Same.
7753 (apply_schedule_on_deps): Same.
7754 (carries_deps): Same.
7755 (compute_deps): Same.
7756 (scop_get_dependences): Same.
7757 * graphite-isl-ast-to-gimple.c
7758 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7759 * graphite-optimize-isl.c (get_schedule_for_band): Same.
7760 (get_schedule_for_band_list): Same.
7761 (get_schedule_map): Same.
7762 (apply_schedule_map_to_scop): Same.
7763 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7764 (build_loop_iteration_domains): Same.
7765 (add_condition_to_pbb): Same.
7766 (add_param_constraints): Same.
7767 (pdr_add_memory_accesses): Same.
7768 (pdr_add_data_dimensions): Same.
7770 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7772 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7775 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7777 * common.opt (feliminate-dwarf2-dups): Replace references to
7778 "DWARF 2" with just "DWARF".
7779 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7780 * doc/extend.texi: Likewise.
7781 * doc/cpp.texi: Likewise.
7782 * doc/invoke.texi: Likewise.
7783 (Option Summary): Add -gdwarf to list of Debugging Options.
7784 (Debugging Options): Document -gdwarf.
7785 * doc/contrib.texi: Spell "DWARF" like that.
7787 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7789 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7790 warning. Fix up formatting.
7793 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7794 attempt to mark memory input operand addressable and
7795 call prepare_gimple_addressable in that case. Don't adjust
7796 input_location for diagnostics, use error_at instead.
7798 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
7800 * config/rs6000/ppc-auxv.h: New file.
7801 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7803 (cpu_supports): Likewise.
7804 * config/rs6000/rs6000.c: include "ppc-auxv.h".
7805 (cpu_is_info): New variable.
7806 (cpu_supports_info): Likewise.
7807 (tcb_verification_symbol): Likewise.
7808 (cpu_builtin_p): Likewise.
7809 (cpu_expand_builtin): New function.
7810 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7811 (rs6000_init_builtins): Likewise.
7812 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7813 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7814 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7815 * configure: Regenerate.
7816 * config.in: Likewise.
7817 * doc/extend.texi (PowerPC Built-in Functions): Document
7818 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7820 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
7823 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7825 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7828 2016-01-20 Richard Henderson <rth@redhat.com>
7834 * tree.c (tm_define_builtin): New.
7835 (find_tm_vector_type): New.
7836 (build_tm_vector_builtins): New.
7837 (build_common_builtin_nodes): Call it.
7839 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7841 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7842 (arm_fp_ok): Likewise.
7844 (arm_crypto): Likewise.
7846 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7847 Richard Biener <rguenther@suse.de>
7849 PR tree-optimization/69328
7850 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7851 vectors have same number of elements.
7852 (vectorizable_condition): Fix masked version recognition.
7854 2016-01-20 Richard Biener <rguenther@suse.de>
7856 PR tree-optimization/69345
7857 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7858 (VN_INFO_PTR_INFO): Likewise.
7859 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7860 info when it is equal between non-dominating SSA names.
7861 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7862 Make sure to look at original SSA infos.
7864 2016-01-20 Jeff Law <law@redhat.com>
7867 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7869 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7870 (pc_or_label_operand): New predicate.
7871 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7872 tests for small integers that are 2^n - 1.
7874 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7876 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7878 2016-01-19 Jeff Law <law@redhat.com>
7881 * tree-ssa-threadbackwards.c
7882 (fsm_find_control_statement_thread_paths): Do not try to lookup
7883 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7885 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7887 * doc/lto.texi: Remove text that says only Gold has linker plugin
7890 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7892 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7893 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7894 the DIE accordingly.
7895 (modified_type_die): Add REVERSE parameter and pass it recursively,
7896 as well as to base_type_die. Adjust presence check accordingly.
7897 (base_type_for_mode): Adjust call to modified_type_die.
7898 (add_type_attribute): Add REVERSE parameter and pass it to
7900 (generic_parameter_die): Adjust call to add_type_attribute.
7901 (add_scalar_info): Likewise.
7902 (add_subscript_info): Likewise.
7903 (gen_array_type_die): Likewise.
7904 (gen_descr_array_type_die): Likewise.
7905 (gen_entry_point_die): Likewise.
7906 (gen_enumeration_type_die): Likewise.
7907 (gen_formal_parameter_die): Likewise.
7908 (gen_subprogram_die): Likewise.
7909 (gen_variable_die ): Likewise.
7910 (gen_const_die): Likewise.
7911 (gen_field_die): Likewise.
7912 (gen_pointer_type_die): Likewise.
7913 (gen_reference_type_die): Likewise.
7914 (gen_ptr_to_mbr_type_die): Likewise.
7915 (gen_inheritance_die): Likewise.
7916 (gen_subroutine_type_die): Likewise.
7917 (gen_typedef_die): Likewise.
7918 (force_type_die): Adjust call to modified_type_die.
7920 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7922 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7923 flow throughout the file. Fix broken link to Objective-C 2.0
7925 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7928 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7930 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7932 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7935 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7936 (maybe_record_node): Record cxa_pure_virtual as the only possible
7937 target if there are not ohter candidates.
7938 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7940 2016-01-19 Richard Biener <rguenther@suse.de>
7942 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7943 (get_memory_order): Likewise.
7945 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
7947 * tree-vect-stmts.c (vectorizable_store): Check
7950 2016-01-19 David Malcolm <dmalcolm@redhat.com>
7953 * gcc.c (driver::decode_argv): Add call to
7954 init_opts_obstack before init_options_struct.
7955 * opts.c (init_opts_obstack): Remove idempotency.
7956 (init_options_struct): Replace call to init_opts_obstack
7957 with a gcc_assert to verify that it has already been called.
7958 * toplev.c (toplev::main): Add call to init_opts_obstack before
7959 calls to init_options_struct.
7960 (toplev::finalize): Move cleanup of opts_obstack next to
7961 cleanup of save_decoded_options, clearing the latter, and
7962 save_decoded_options_count.
7964 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7967 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7968 attribute to unconditional. Remove %? from output template.
7970 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7971 Jiong Wang <jiong.wang@arm.com>
7973 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7974 generated from different expand order.
7976 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7978 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7979 Add support for CCMP costing.
7981 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7983 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7984 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7985 (fccmpe<mode>): Likewise.
7986 (fcmp): Rename to fcmp and globalize pattern.
7988 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7989 (aarch64_gen_ccmp_next): Add FP support.
7991 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7993 * target.def (gen_ccmp_first): Update documentation.
7994 (gen_ccmp_next): Likewise.
7995 * doc/tm.texi (gen_ccmp_first): Update documentation.
7996 (gen_ccmp_next): Likewise.
7997 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7998 expand_ccmp_expr_1. Improve comments.
7999 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8000 (ccmp_ior<mode>): Remove pattern.
8001 (cmp<mode>): Remove expand.
8002 (cmp): Globalize pattern.
8003 (cstorecc4): Use cc_register.
8004 (mov<mode>cc): Remove ccmp_cc_register check.
8005 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8006 Simplify after removal of CC_DNE/* modes.
8007 (aarch64_ccmp_mode_to_code): Remove.
8008 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
8009 In 'k' case use integer as condition.
8010 (aarch64_nzcv_codes): Remove inverted cases.
8011 (aarch64_code_to_ccmode): Remove.
8012 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
8013 comparison with CC register to be used in folowing CCMP/branch/CSEL.
8014 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8015 pattern. Return the comparison with CC register. Invert conditions
8017 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8018 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8020 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8022 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8023 instrumented_version.
8025 2016-01-19 Richard Biener <rguenther@suse.de>
8027 PR tree-optimization/69336
8028 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8029 handled components with get_ref_base_and_extent.
8030 (equal_mem_array_ref_p): Adjust.
8032 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8035 * shrink-wrap.c: Include valtrack.h.
8036 (move_insn_for_shrink_wrap): Add DEBUG argument. If
8037 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8038 in between insn and where it will be moved to. Call
8039 dead_debug_insert_temp.
8040 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
8041 first and dead_debug_local_finish at the end.
8042 For uses and defs bitmap, handle all regs in between REGNO and
8043 END_REGNO, not just the first one.
8045 2016-01-19 Richard Biener <rguenther@suse.de>
8047 PR tree-optimization/69352
8048 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8049 (equal_mem_array_ref_p): Constrain size and max size properly.
8050 Compare the reverse flag.
8052 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
8054 * ira.c (ira): Update regstat data if we deleted insns.
8056 2016-01-19 Jakub Jelinek <jakub@redhat.com>
8058 PR rtl-optimization/68955
8059 PR rtl-optimization/64557
8060 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8061 here. Fix up formatting.
8062 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8064 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8067 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8068 assume that the node has body.
8069 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8072 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8074 * lto-streamer-out.c (lto_output): Do not stream instrumentation
8077 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
8079 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8080 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8082 2016-01-19 Martin Jambor <mjambor@suse.cz>
8083 Martin Liska <mliska@suse.cz>
8084 Michael Matz <matz@suse.de>
8086 * Makefile.in (OBJS): Add new source files.
8087 (GTFILES): Add hsa.c.
8088 * common.opt (disable_hsa): New variable.
8089 (-Whsa): New warning.
8090 * config.in (ENABLE_HSA): New.
8091 * configure.ac: Treat hsa differently from other accelerators.
8092 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8094 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8095 * doc/install.texi (Configuration): Document --with-hsa-runtime,
8096 --with-hsa-runtime-include, --with-hsa-runtime-lib and
8098 * doc/invoke.texi (-Whsa): Document.
8099 (hsa-gen-debug-stores): Likewise.
8100 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8101 to invoke offload compiler for hsa acclerator.
8102 * opts.c (common_handle_option): Determine whether HSA offloading
8103 should be performed.
8104 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8105 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8106 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8107 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8108 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8109 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8110 GF_OMP_FOR_KIND_GRID_LOOP.
8111 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8112 (pp_gimple_stmt_1): Likewise.
8113 * gimple-walk.c (walk_gimple_stmt): Likewise.
8114 * gimple.c (gimple_build_omp_grid_body): New function.
8115 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8116 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8117 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8118 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8119 GF_OMP_TEAMS_GRID_PHONY.
8120 (gimple_statement_omp_single_layout): Updated comments.
8121 (gimple_build_omp_grid_body): New function.
8122 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8123 (gimple_omp_for_grid_phony): New function.
8124 (gimple_omp_for_set_grid_phony): Likewise.
8125 (gimple_omp_parallel_grid_phony): Likewise.
8126 (gimple_omp_parallel_set_grid_phony): Likewise.
8127 (gimple_omp_teams_grid_phony): Likewise.
8128 (gimple_omp_teams_set_grid_phony): Likewise.
8129 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8130 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8131 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8132 (BUILT_IN_GOMP_TARGET): Updated type.
8133 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8134 (adjust_for_condition): New function.
8135 (get_omp_for_step_from_incr): Likewise.
8136 (extract_omp_for_data): Moved parts to adjust_for_condition and
8137 get_omp_for_step_from_incr.
8138 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8139 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8140 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8141 (scan_omp_parallel): Do not create child functions for phony
8143 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8144 (scan_omp_1_op): Checking assert we are not remapping to
8145 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8146 (parallel_needs_hsa_kernel_p): New function.
8147 (expand_parallel_call): Register apprpriate parallel child
8148 functions as HSA kernels.
8149 (grid_launch_attributes_trees): New type.
8150 (grid_attr_trees): New variable.
8151 (grid_create_kernel_launch_attr_types): New function.
8152 (grid_insert_store_range_dim): Likewise.
8153 (grid_get_kernel_launch_attributes): Likewise.
8154 (get_target_argument_identifier_1): Likewise.
8155 (get_target_argument_identifier): Likewise.
8156 (get_target_argument_value): Likewise.
8157 (push_target_argument_according_to_value): Likewise.
8158 (get_target_arguments): Likewise.
8159 (expand_omp_target): Call get_target_arguments instead of looking
8160 up for teams and thread limit.
8161 (grid_expand_omp_for_loop): New function.
8162 (grid_arg_decl_map): New type.
8163 (grid_remap_kernel_arg_accesses): New function.
8164 (grid_expand_target_kernel_body): New function.
8165 (expand_omp): Call it.
8166 (lower_omp_for): Do not emit phony constructs.
8167 (lower_omp_taskreg): Do not emit phony constructs but create for them
8168 a temporary variable receiver_decl.
8169 (lower_omp_taskreg): Do not emit phony constructs.
8170 (lower_omp_teams): Likewise.
8171 (lower_omp_grid_body): New function.
8172 (lower_omp_1): Call it.
8173 (grid_reg_assignment_to_local_var_p): New function.
8174 (grid_seq_only_contains_local_assignments): Likewise.
8175 (grid_find_single_omp_among_assignments_1): Likewise.
8176 (grid_find_single_omp_among_assignments): Likewise.
8177 (grid_find_ungridifiable_statement): Likewise.
8178 (grid_target_follows_gridifiable_pattern): Likewise.
8179 (grid_remap_prebody_decls): Likewise.
8180 (grid_copy_leading_local_assignments): Likewise.
8181 (grid_process_kernel_body_copy): Likewise.
8182 (grid_attempt_target_gridification): Likewise.
8183 (grid_gridify_all_targets_stmt): Likewise.
8184 (grid_gridify_all_targets): Likewise.
8185 (execute_lower_omp): Call grid_gridify_all_targets.
8186 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8187 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8188 (tree_omp_clause): Added union field dimension.
8189 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8190 * tree.c (omp_clause_num_ops): Added number of arguments of
8191 OMP_CLAUSE__GRIDDIM_.
8192 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8193 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8194 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8195 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8196 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8197 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8198 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8199 * tree-pass.h (make_pass_gen_hsail): Declare.
8200 (make_pass_ipa_hsa): Likewise.
8201 * ipa-hsa.c: New file.
8202 * lto-section-in.c (lto_section_name): Add hsa section name.
8203 * lto-streamer.h (lto_section_type): Add hsa section.
8204 * timevar.def (TV_IPA_HSA): New.
8205 * hsa-brig-format.h: New file.
8206 * hsa-brig.c: New file.
8207 * hsa-dump.c: Likewise.
8208 * hsa-gen.c: Likewise.
8211 * toplev.c (compile_file): Call hsa_output_brig.
8212 * hsa-regalloc.c: New file.
8214 2016-01-18 Jeff Law <law@redhat.com>
8216 PR tree-optimization/69320
8217 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8218 ranged object, do nothing if the RHS constant is not [0..1].
8219 (optimize_stmt): Comparing a boolean ranged object against a
8220 constant outside [0..1] results in a compile-time constant.
8222 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8225 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8227 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8228 (Option Summary): Update to reflect new section and moved options.
8229 (C++ Dialect Options): Move -fstats to new section.
8230 (Debugging Options): Move all dump, statistics, and other GCC
8231 developer options to new section. Rewrite section introduction
8232 and re-order remaining options to put the more basic ones first.
8233 (Optimization Options): Move -fira-verbose and -flto-report* to
8235 (Developer Options): New section incorporating moved options.
8236 * doc/cppopts.texi (-dM): Update cross-reference.
8238 2016-01-18 Richard Henderson <rth@redhat.com>
8241 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8242 operands to pseudo only if CSE is expected. Split long immediate
8243 operands only after reload, and for the stack pointer.
8244 (*add<GPI>3_pluslong): Remove.
8245 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8246 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8247 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8248 (*add<GPI>3 peepholes): New.
8249 (*add<GPI>3 splitters): New.
8250 * config/aarch64/constraints.md (Upl): New.
8251 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8253 2016-01-18 Richard Biener <rguenther@suse.de>
8255 PR tree-optimization/69297
8256 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8258 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8260 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8263 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8264 of mixind vector and scalar types.
8265 (fold_relational_const): Add handling of vector
8266 comparison with boolean result.
8267 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8268 comparison of vector operands with boolean result for EQ/NE only.
8269 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8270 (verify_gimple_cond): Likewise.
8271 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8274 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8276 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8279 2016-01-18 Richard Biener <rguenther@suse.de>
8282 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8284 2016-01-18 Tom de Vries <tom@codesourcery.com>
8286 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8288 2016-01-18 Tom de Vries <tom@codesourcery.com>
8290 * omp-low.c (set_oacc_fn_attrib): Make extern.
8291 * omp-low.h (set_oacc_fn_attrib): Declare.
8292 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8293 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8294 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8295 Add and handle function parameter oacc_kernels_p.
8296 (find_reduc_addr, get_omp_data_i_param): New function.
8297 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8298 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8299 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8300 Calculate dominance info. Skip loops that are not in a kernels region
8301 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8302 (pass_parallelize_loops::execute): Call parallelize_loops with
8303 oacc_kernels_p argument.
8304 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8305 New member function.
8306 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8307 * passes.def: Add argument to pass_parallelize_loops instantation.
8309 2016-01-18 Tom de Vries <tom@codesourcery.com>
8311 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8312 pass_parallelize_loops to be run outside the loop pipeline.
8314 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8316 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8317 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8319 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8322 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8323 using get_ref_base_and_extent.
8324 (equal_mem_array_ref_p): New.
8325 (hashable_expr_equal_p): Add call to previous.
8327 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8330 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8331 (sra_initialize): Allocate disqualified_constants.
8332 (sra_deinitialize): Free disqualified_constants.
8333 (disqualify_candidate): Update disqualified_constants when appropriate.
8334 (create_access): Scan for constant-pool entries as we go along.
8335 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8336 (maybe_add_sra_candidate): Allow constant-pool entries.
8337 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8338 (initialize_constant_pool_replacements): New.
8339 (sra_modify_assign): Avoid mangling assignments created by previous,
8340 and don't generate writes into constant pool.
8341 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8343 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8345 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8347 (scalar_chain::convert_op): Likewise.
8348 * config/i386/i386.md (*andndi3_doubleword): New.
8350 2016-01-18 Richard Biener <rguenther@suse.de>
8352 PR tree-optimization/69170
8353 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8354 building a vector from scalar results of a pattern stmt.
8356 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8358 * haifa-sched.c (autopref_multipass_init): Work around
8359 -Wmaybe-uninitialized warning.
8361 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8363 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8364 against the constant 0.
8366 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8368 PR tree-optimization/68799
8369 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8370 look up phi candidates in the statement-candidate map.
8371 (phi_add_costs): Likewise.
8372 (record_phi_increments): Likewise.
8373 (phi_incr_cost): Likewise.
8374 (ncd_with_phi): Likewise.
8375 (all_phi_incrs_profitable): Likewise.
8377 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8379 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8380 -Wmaybe-uninitialized warning.
8382 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8384 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8385 (Option Summary): Update to reflect new section and moved options.
8386 (C++ Dialect Options): Move -fvtable-verify and related options.
8387 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8388 and profiling-related options.
8389 (Optimization Options): Move profile generation options and
8390 -fstack-protector and related options.
8391 (Instrumentation Options): New section incorporating moved options.
8392 (Code Generation Options): Move -finstrument-functions and
8393 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8395 2016-01-16 Tom de Vries <tom@codesourcery.com>
8397 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8399 2016-01-16 Tom de Vries <tom@codesourcery.com>
8401 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8403 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8405 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8406 that checks whether the table is already empty. Rename the
8407 original implementation to...
8408 (hash_table::empty_slot): ...this new private function.
8410 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8413 * diagnostic-show-locus.c (layout::print_source_line): Move x
8414 offset of line until after call to
8415 get_line_width_without_trailing_whitespace.
8417 2016-01-15 Jeff Law <law@redhat.com>
8419 PR tree-optimization/69270
8420 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8421 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8422 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8423 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8424 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8425 ssa_name_has_boolean_range and constant_boolean_node.
8427 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8429 PR rtl-optimization/69030
8430 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8432 (spill_pseudos): Delete debug insn for dead pseudo.
8433 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8435 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8437 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8439 (TYPES_UNOPUS): Likewise.
8440 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8441 builtin type, from UNOP to UNOPUS.
8442 (lbtruncuv4sf): Likewise.
8443 (lbtruncuv2df): Likewise.
8444 (lrounduv2sf): Likewise.
8445 (lrounduv4sf): Likewise.
8446 (lrounduv2df): Likewise.
8447 (lroundusf): Likewise.
8448 (lroundusf): Likewise.
8449 (lceiluv2sf): Likewise.
8450 (lceiluv4sf): Likewise.
8451 (lceiluv2df): Likewise.
8452 (lceilusf): Likewise.
8453 (lceiludf): Likewise.
8454 (lflooruv2sf): Likewise.
8455 (lflooruv4sf): Likewise.
8456 (lflooruv2df): Likewise.
8457 (lfloorusf): Likewise.
8458 (lfloorudf): Likewise.
8459 (lfrintnuv2sf): Likewise.
8460 (lfrintnuv4sf): Likewise.
8461 (lfrintnuv2df): Likewise.
8462 (lfrintnusf): Likewise.
8463 (lfrintnudf): Likewise.
8464 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8466 (vcvtq_u32_f32): Likewise.
8467 (vcvtq_u64_f64): Likewise.
8468 (vcvta_u32_f32): Likewise.
8469 (vcvtaq_u32_f32): Likewise.
8470 (vcvtaq_u64_f64): Likewise.
8471 (vcvtm_u32_f32): Likewise.
8472 (vcvtmq_u32_f32): Likewise.
8473 (vcvtmq_u64_f64): Likewise.
8474 (vcvtn_u32_f32): Likwise.
8475 (vcvtnq_u32_f32): Likewise.
8476 (vcvtnq_u64_f64): Likewise.
8477 (vcvtp_u32_f32): Likewise.
8478 (vcvtpq_u32_f32): Likewise.
8479 (vcvtpq_u64_f64): Likewise.
8480 (vcvtmd_u64_f64): Likewise.
8481 (vcvtms_u32_f32): Likewise.
8482 (vcvtad_u64_f64): Likewise.
8483 (vcvtas_u32_f32): Likewise.
8484 (vcvtnd_u64_f64): Likewise.
8485 (vcvtns_u32_f32): Likewise.
8486 (vcvtpd_u64_f64): Likewise.
8487 (vcvtps_u32_f32): Likewise.
8489 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8491 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8492 CSEL of zero_extended registers.
8494 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8496 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8497 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8499 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8501 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8502 false when argument string is not found in the attributes table
8505 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8508 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8509 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8510 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8513 2016-01-15 Richard Biener <rguenther@suse.de>
8515 PR tree-optimization/66856
8516 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8517 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8518 (vect_create_new_slp_node): Increment stmt reference count.
8519 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8520 an SLP tree before swapping operands.
8521 (vect_build_slp_tree): Likewise.
8522 (destroy_bb_vec_info): Free stmt info after SLP instances.
8523 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8524 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8525 (STMT_VINFO_NUM_SLP_USES): New macro.
8527 2016-01-15 Richard Biener <rguenther@suse.de>
8530 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8531 (add_linkage_name): ... here.
8532 (gen_typedef_die): Use add_linkage_name_raw instead of
8533 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8536 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8538 * gimplify.c (oacc_default_clause): Decode reference and pointer
8539 types for both kernels and parallel regions.
8541 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8544 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8546 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8548 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8549 (convert_scalars_to_vector): Likewise.
8551 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8553 * doc/extend.texi (Type Traits): Fix grammar.
8555 2016-01-15 Martin Jambor <mjambor@suse.cz>
8557 * tree-inline.c (remap_decl): Use existing dclarations if
8558 remapping a type and prevent_decl_creation_for_types.
8559 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8560 decls first. Do real remapping with
8561 prevent_decl_creation_for_types set.
8562 * tree-inline.h (copy_body_data): New field
8563 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8566 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8568 * config/s390/s390.opt (mmvcle): More verbose help text.
8570 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8572 * config/s390/s390.opt: Add period to -mzvector option text.
8574 2016-01-15 Richard Biener <rguenther@suse.de>
8576 PR tree-optimization/68961
8577 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8578 of invariants in stores again.
8580 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8582 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8584 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8586 * config/i386/i386.c (ix86_expand_branch): Don't split
8587 DI mode xor instruction to SI mode.
8589 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8592 * ipa-icf.c (sem_function::merge): Virtual functions may become
8593 reachable even if they address is not taken and there are no
8596 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8598 * lto-streamer-out.c (subtract_estimated_size): New function.
8599 (get_symbol_initial_value): Use it.
8601 2016-01-15 Christian Bruel <christian.bruel@st.com>
8604 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8605 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8606 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8607 use add_builtin_function_ext_scope instead of add_builtin_function.
8608 (neon_set_p, neon_crypto_set_p): Remove.
8609 (arm_init_builtins): Always call arm_init_neon_builtins and
8610 arm_init_crypto_builtins.
8611 (arm_expand_builtin): Check that builtins are allowed for the arch.
8612 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8613 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8614 arm_init_neon_builtins call.
8616 2016-01-15 Richard Biener <rguenther@suse.de>
8618 PR tree-optimization/69117
8619 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8620 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8621 of the leader conservatively.
8622 (free_scc_vn): Restore original SSA name infos.
8624 2016-01-14 Jeff Law <law@redhat.com>
8626 PR tree-optimization/69270
8627 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8628 single bit of precision, verify it's also unsigned.
8629 (record_edge_info): Use constant_boolean_node rather than fold_convert
8630 to convert boolean_true/boolean_false to the right type.
8632 2016-01-14 Richard Henderson <rth@redhat.com>
8635 * loop-doloop.c (record_reg_sets): New.
8636 (doloop_optimize): Reject the transform if the sequence
8637 clobbers registers live at the end of the loop block.
8638 (doloop_optimize_loops): Enable df_live if needed.
8640 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8642 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8643 * gcc/config/rs6000/rs6000.c: Likewise.
8644 * gcc/config/rs6000/rs6000.h: Likewise.
8645 * gcc/config/rs6000/rs6000.md: Likewise.
8646 * gcc/doc/extend.texi: Likewsie.
8648 2016-01-14 Jeff Law <law@redhat.com>
8650 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8653 2016-01-14 Richard Henderson <rth@redhat.com>
8657 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8658 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8659 instead of builtin_decl_declared_p to test for declaration.
8661 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
8663 * doc/loop.texi (Loop Analysis and Representation): Document
8664 loop_depth function.
8666 2016-01-14 Tom de Vries <tom@codesourcery.com>
8668 PR tree-optimization/68773
8669 * omp-low.c (expand_omp_target): Don't set force_output.
8670 * varpool.c (varpool_node::get_create): Same.
8671 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8672 offload_funcs with force_output.
8674 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8677 * lra-eliminations.c (move_plus_up): Don't change anything if either
8678 the outer or inner subreg mode is not MODE_INT.
8679 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8680 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8682 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8684 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8685 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8686 reduc_uplus_@var{m}): Remove.
8687 * expr.c (expand_expr_real_2): Remove expansion path for
8688 reduc_[us](min|max|plus) optabs.
8689 * optabs-tree.c (scalar_reduc_to_vector): Remove.
8690 * optabs-tree.h (scalar_reduc_to_vector): Remove.
8691 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8692 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8693 * tree-vect-loop.c (vectorizable_reduction): Remove test for
8694 reduc_[us](min|max|plus) optabs.
8696 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8698 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8699 (reduc_plus_scal_v2sf): New.
8700 (reduc_smax_v2sf): Rename to...
8701 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8702 (reduc_smin_v2sf): Rename to...
8703 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8705 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
8707 * alias.c (compare_base_symbol_refs): New function.
8708 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8711 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8714 PR tree-optimization/69155
8715 * tree-complex.c: Include cfganal.h.
8716 (phis_to_revisit): New variable.
8717 (extract_component): Add phiarg_p argument. Assert that returned
8718 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8719 (update_phi_components): Partly rewrite to use loop over real/imag
8720 components instead of code duplication. If extract_component returns
8721 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8722 create_tmp_reg into the PHI node instead, and mention the phi triplet
8724 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
8725 in phis_to_revisit at the end.
8727 2016-01-14 Richard Biener <rguenther@suse.de>
8729 PR tree-optimization/68060
8730 * tree-vect-loop.c (vect_is_simple_reduction): Check the
8731 outer loop reduction is only used in the inner loop before
8732 detecting a double reduction.
8734 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8737 * combine.c (expand_field_assignment): Punt if compute_mode is
8738 unsupported scalar mode.
8740 2016-01-14 Richard Biener <rguenther@suse.de>
8742 PR tree-optimization/66856
8743 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8744 SLP node only if it built successfully.
8745 (vect_analyze_slp_instance): Adjust.
8747 2016-01-14 Jeff Law <law@redhat.com>
8749 PR tree-optimization/69270
8750 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8751 (record_edge_info): Use it. Convert boolean_{true,false}_node
8754 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
8757 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8758 use block_ultimate_origin
8759 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8761 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8763 * doc/invoke.texi (Submodel Options): Rename section to
8764 "Machine-Dependent Options" to better reflect its content.
8765 Rewrite introductory text to remove archaic CPU names.
8768 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8770 * doc/invoke.texi (Code Gen Options): Move section up in file,
8771 before target-specific options. Update menu and option summary
8772 to reflect the new section ordering.
8774 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8776 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8777 (C++ Dialect Options): Add cross-reference to -std option.
8778 * doc/standards.texi (C++ Language): Document C++14 support.
8780 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8782 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8783 for pack/unpack functions for __ibm128.
8784 (PACK_IF): Likewise.
8785 (UNPACK_IF): Likewise.
8787 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8788 support for __ibm128 pack/unpack functions.
8789 (rs6000_invalid_builtin): Likewise.
8790 (rs6000_init_builtins): Likewise.
8791 (rs6000_opt_masks): Likewise.
8793 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8794 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8796 (RS6000_BTM_COMMON): Likewise.
8798 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8799 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8800 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8801 128-bit floating point. Add support for the double values to be
8802 in Altivec registers for TF/IF packing and unpacking, but restrict
8803 TD packing sub-fields to be FPR registers. Don't allow overlapped
8804 register support for packing. Allow pack inputs to be memory
8805 locations. Don't build generator functions for unpack<mode>_dm
8806 and unpack<mode>_nodm.
8807 (unpack<mode>_dm): Likewise.
8808 (unpack<mode>_nodm): Likewise.
8809 (pack<mode>): Likewise.
8811 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8812 built-in functions to pack/unpack explicit __ibm128 values.
8813 (__builtin_unpack_ibm128): Likewise.
8815 * doc/extend.texi (PowerPC Built-in Functions): Document
8816 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8818 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
8821 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8822 Add new arg loc and pass it down as context.
8823 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8824 to the location to use for the warning.
8825 (check_function_arguments): New arg loc. All callers changed. Pass
8826 it to check_function_nonnull.
8827 * c-common.h (check_function_arguments): Adjust declaration.
8829 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8831 PR tree-optimization/69156
8832 * gimple.c (validate_type): Removed.
8833 (gimple_builtin_call_types_compatible_p): Use
8834 useless_type_conversion_p instead of validate_type.
8835 * value-prof.c (gimple_stringop_fixed_value): Fold
8836 icall_size to correct type.
8838 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8840 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8843 2016-01-13 Richard Henderson <rth@redhat.com>
8846 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8847 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8848 (ix86_builtin_tm_store): Remove.
8849 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8850 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8851 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8852 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8853 * doc/tm.texi: Rebuild.
8855 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8856 (BUILT_IN_TM_MEMCPY_RTWN): New.
8857 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8858 fallback from vector to integer helpers.
8859 (build_tm_load): Handle vector types directly, instead of
8861 (build_tm_store): Likewise.
8862 (expand_assign_tm): Prepare for register types not handled by
8863 the above. Copy them to memory and use memcpy.
8864 * tree.c (tm_define_builtin): New.
8865 (find_tm_vector_type): New.
8866 (build_tm_vector_builtins): New.
8867 (build_common_builtin_nodes): Call it.
8869 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8871 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8872 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8874 2016-01-13 Tom de Vries <tom@codesourcery.com>
8876 PR tree-optimization/69169
8877 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8878 handled_struct_type param.
8879 (create_variable_info_for, intra_create_variable_infos): Call
8880 create_variable_info_for_1 with extra arg.
8882 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8884 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8885 and "armv8.1-a+crc" entries.
8887 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8890 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8891 Change first operand predicate from register_or_constm1_operand
8892 to register_operand.
8893 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8894 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8895 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8896 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8897 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8898 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8899 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8900 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8901 comparison with constm1_rtx from vec_prefetch_gen part.
8903 2016-01-13 Richard Biener <rguenther@suse.de>
8905 PR tree-optimization/69013
8906 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8907 Exchange assert for a test.
8909 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8912 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8914 2016-01-13 Richard Biener <rguenther@suse.de>
8916 PR tree-optimization/69242
8917 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8918 assert with a check.
8920 2016-01-13 Richard Biener <rguenther@suse.de>
8922 PR tree-optimization/69186
8923 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8924 Properly guard vect_update_misalignment_for_peel call.
8926 2016-01-12 Jeff Law <law@redhat.com>
8928 PR tree-optimization/pr67755
8929 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8930 "need_profile_correction".
8931 (thread_block_1): Initialize new field to false by default. If we
8932 have multiple thread paths through a common joiner to different
8933 final targets, then set new field to true.
8934 (compute_path_counts): Only do count adjustment when it's really
8937 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8939 * doc/invoke.texi (Spec Files): Move section down in file, past
8940 all command-line option descriptions.
8942 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8945 * doc/gty.texi: Remove documentation of mark_hook.
8946 * gengtype.c (struct write_types_data): Remove code to support
8947 mark_hook attribute.
8948 (walk_type): Likewise.
8949 (write_func_for_structure): Likewise.
8951 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8953 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8954 Directory Options, and -specs= to Overall Options.
8955 (Overall Options): Adjust similarly. Reorder to group related
8956 options together. Make -specs= cross-reference the spec file details.
8957 (Directory Options): Adjust similarly.
8959 2016-01-12 Jeff Law <law@redhat.com>
8961 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8963 2016-01-12 Olivier Hainque <hainque@adacore.com>
8965 * gcc.c (spec_undefvar_allowed): New global.
8966 (process_command): Set to true when running for --version or --help,
8968 (getenv_spec_function): When the variable is not defined, use the
8969 variable name as the variable value if we're allowed not to issue
8972 2016-01-12 Bin Cheng <bin.cheng@arm.com>
8974 PR tree-optimization/68911
8975 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8976 information computed for expression "init + nit * step".
8978 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8980 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
8981 about name of GCC executable. Remove deleted node from menu.
8982 (Directory Options) <-B>: Remove cross-reference to deleted node.
8983 (Target Options): Delete section.
8985 2016-01-12 Christian Bruel <christian.bruel@st.com>
8988 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8989 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8991 2016-01-12 Jakub Jelinek <jakub@redhat.com>
8994 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8995 aligned_mem is properly set for AVX512-VL floating point masked
8999 * ifcvt.c (cond_exec_process_if_block): When removing the last
9000 insn from then_bb, remove also any possible barriers that follow it.
9002 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
9006 * config/i386/iamcu.h (SIZE_TYPE): New macro.
9007 (PTRDIFF_TYPE): Likewise.
9008 (WCHAR_TYPE): Likewise.
9009 (WCHAR_TYPE_SIZE): Likewise.
9010 (STDINT_LONG32): Likewise.
9012 2016-01-12 Richard Biener <rguenther@suse.de>
9014 PR tree-optimization/69053
9015 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9016 convert initial value for cond reductions.
9018 2016-01-12 Richard Biener <rguenther@suse.de>
9020 PR tree-optimization/69007
9021 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9022 widen_sum after dot_prod and sad.
9024 2016-01-12 Richard Biener <rguenther@suse.de>
9026 PR tree-optimization/69168
9027 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9028 pattern stmt SLP type.
9029 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9030 end up unused so cope with that case.
9032 2016-01-12 Richard Biener <rguenther@suse.de>
9034 PR tree-optimization/69157
9035 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9036 stmts def type only during analyze phase.
9037 (vectorizable_call): Likewise.
9038 (vectorizable_simd_clone_call): Likewise.
9039 (vectorizable_conversion): Likewise.
9040 (vectorizable_assignment): Likewise.
9041 (vectorizable_shift): Likewise.
9042 (vectorizable_operation): Likewise.
9043 (vectorizable_store): Likewise.
9044 (vectorizable_load): Likewise.
9046 2016-01-12 Richard Biener <rguenther@suse.de>
9048 PR tree-optimization/69174
9049 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9051 (vectorizable_load): Properly compute the number of loads needed
9052 for permuted strided SLP loads and do not spuriously assign
9053 to SLP_TREE_VEC_STMTS.
9055 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
9057 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9058 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9059 (MD_EXEC_PREFIX): Remove.
9060 (MD_STARTFILE_PREFIX) Removee.
9061 (FILE_NAME_ABSOLUTE_P): Remove.
9062 (CPP_SPEC): Do not read macros from sys/version.h.
9063 (LINK_COMMAND_SPEC): Remove.
9064 (LOCAL_INCLUDE_DIR): Remove.
9065 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9066 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9067 (POST_LINK_SPEC): Define to invoke stubify after linker
9068 (LIBSTDCXX): Remove define
9069 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9070 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9071 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9072 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9073 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9074 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9075 (i386_djgpp_asm_named_section): Add propotype of new procedure
9077 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9078 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9079 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9080 in config/i386/djgpp.h).
9081 (STANDARD_STARTFILE_PREFIX_2): Define identical to
9082 STANDARD_STARTFILE_PREFIX_1.
9083 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9084 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9085 installation errors.
9086 (MAX_OFILE_ALIGNMENT): Define to 128.
9087 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9089 * config/i386/djgpp.c: New file. Add implementation of
9090 i386_djgpp_asm_named_section.
9092 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9094 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9095 Add rule for building djgpp.o.
9097 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9099 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9100 (rtx_is_swappable_p): Reductions are swappable.
9101 (insn_is_swappable_p): V2DF reductions are swappable.
9103 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
9105 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9106 reloads for other unsupported memory operands.
9108 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
9109 Jim Wilson <jim.wilson@linaro.org>
9112 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9113 copy_to_mode_reg instead of force_reg.
9115 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9118 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9119 TARGET_80387 is true.
9121 2016-01-11 Jakub Jelinek <jakub@redhat.com>
9124 * lra-eliminations.c (move_plus_up): Only move plus up
9125 if subreg of the constant can be simplified into constant
9126 and use the simplified subreg of the constant instead of
9127 the original constant.
9129 * fold-const.c (fold_convertible_p): Don't return true
9130 for conversion of VECTOR_TYPE to same sized integral type.
9131 (fold_convert_loc): Fix up formatting. Fold conversion of
9132 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9133 instead of NOP_EXPR.
9135 PR tree-optimization/69214
9136 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9137 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9140 PR tree-optimization/69207
9141 * tree-vect-slp.c (vect_get_constant_vectors): For
9142 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9143 fold_convertible_p to vector_type's element type, and always
9144 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9146 2016-01-11 Richard Biener <rguenther@suse.de>
9148 PR tree-optimization/69173
9149 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9150 fixup the cycle if all stmts are in a pattern.
9152 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9155 * alias.c (base_alias_check): Move check for addresses with
9156 alignment ANDs before the call for compare_base_decls.
9157 (memrefs_conflict_p): Return -1 for different decls
9158 that went through alignment adjustments.
9160 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9162 PR rtl-optimization/68796
9163 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9164 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9165 and QImode comparisons against zero with CC_NZmode.
9166 * config/aarch64/iterators.md (short_mask): New mode_attr.
9168 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9170 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9171 (<avx512>_store<mode>_mask): Likewise.
9173 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9174 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9176 PR rtl-optimization/68841
9177 * ifcvt.c (struct noce_if_info): Add orig_x field.
9178 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9179 Don't record conflicts on to_rename if it's present.
9180 Allow memory destinations in sets.
9181 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9182 blocks, passing orig_x to the checks.
9183 (noce_process_if_block): Set if_info->orig_x appropriately.
9185 2016-01-11 Tom de Vries <tom@codesourcery.com>
9187 PR tree-optimization/69069
9188 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9190 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9192 PR rtl-optimization/68920
9193 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9194 of conditional moves for RTL if-conversion to 1 for
9195 TARGET_ONE_IF_CONV_INSN.
9196 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9197 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9198 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9199 parameter to restirct number of conditional moves for
9201 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9202 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9205 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9208 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9209 onepart vars. Fix typo in comment. Fix reversed condition in
9211 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9214 * var-tracking.c (dump_onepart_variable_differences): New.
9215 (dataflow_set_different): If a detailed dump is requested,
9216 delay early returns and dump differences between onepart
9217 variables present before and after, and added variables.
9219 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9222 * expr.c (expand_expr_real_1): For boolean vector constants
9223 with a scalar mode use const_scalar_mask_from_tree.
9224 (const_scalar_mask_from_tree): New.
9225 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9226 assigned to a mask type to handle constants.
9228 2016-01-11 Martin Jambor <mjambor@suse.cz>
9231 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9232 useless parameters if we cannot change function signature.
9234 2016-01-11 Martin Jambor <mjambor@suse.cz>
9237 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9240 2016-01-11 Tom de Vries <tom@codesourcery.com>
9242 PR tree-optimization/69109
9243 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9246 2016-01-11 Tom de Vries <tom@codesourcery.com>
9248 PR tree-optimization/69108
9249 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9250 res is not used in a phi.
9252 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9255 * common.opt (frandom-seed): Fix parameter name.
9256 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9258 2016-01-11 Tom de Vries <tom@codesourcery.com>
9260 PR tree-optimization/69058
9261 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9264 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9266 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9267 (mcode-density): Likewise.
9269 2016-01-10 Tom de Vries <tom@codesourcery.com>
9271 PR tree-optimization/69062
9272 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9273 (parallelize_loops): Don't paralelize loop that has phi with address
9276 2016-01-10 Tom de Vries <tom@codesourcery.com>
9278 PR tree-optimization/69039
9279 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9282 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9285 * match.pd: Require target has function_c99_misc before doing
9286 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9288 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9290 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9292 * configure: Regenerate.
9294 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9297 PR tree-optimization/69097
9298 * fold-const.h (expr_not_equal_to): New prototype.
9299 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9300 (expr_not_equal_to): New function.
9301 * match.pd (X % -Y is the same as X % Y): Don't optimize
9302 unless X is known not to be equal to minimum or Y is known
9303 not to be equal to -1.
9304 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9305 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9306 (simplify_stmt_using_ranges): Adjust caller.
9307 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9308 substitute_and_fold.
9310 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9312 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9315 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9317 PR tree-optimization/69167
9318 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9319 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9321 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9323 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9324 Richard Biener <rguenther@suse.de>
9326 PR tree-optimization/68707
9327 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9328 instances that can be handled via vect_load_lanes.
9330 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9332 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9333 if we can't determine address equivalence.
9334 * alias.c (compare_base_decl): Update for changed return value of
9335 symtab_node::equal_address_to.
9337 2016-01-08 Jason Merrill <jason@redhat.com>
9341 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9342 * expr.c (store_field): Not here.
9343 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9344 call with TREE_ADDRESSABLE type.
9345 * tree-cfg.c (verify_gimple_call): Adjust.
9347 2016-01-08 Olivier Hainque <hainque@adacore.com>
9349 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9352 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9354 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9355 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9356 (reduc_smin_v2sf): Rename to...
9357 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9358 (reduc_splus_v2sf): Rename to...
9359 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9361 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9363 PR tree-optimization/69162
9364 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9365 valist argument in another argument.
9366 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9367 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9368 to determine the va_list type, build a MEM_REF instead of
9369 build_fold_indirect_ref.
9371 PR tree-optimization/69172
9372 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9375 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9377 PR tree-optimization/67781
9378 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9379 and cmpnop in two steps: first the ones not accessed in original
9380 gimple expression in a endian independent way and then the ones not
9381 accessed in the final result in an endian-specific way.
9383 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9385 PR tree-optimization/69083
9386 * tree-vect-slp.c (vect_get_constant_vectors): For
9387 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9388 element type. If op is fold_convertible_p to vector_type's element
9389 type, use NOP_EXPR instead of VCE.
9391 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9393 PR rtl-optimization/67778
9394 PR rtl-optimization/68634
9395 PR rtl-optimization/68909
9396 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9397 block from the stack until done with it. Remove a superfluous
9398 bitmap set. Remove a superfluous bitmap test.
9400 2016-01-07 Martin Sebor <msebor@redhat.com>
9403 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9404 constraint on the type of arguments.
9406 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9408 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9409 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9410 unaligned_access on the gcc_options set.
9411 * config/arm/arm.c (arm_option_override_internal): Use
9412 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9414 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9417 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9418 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9420 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9423 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9426 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9427 depending on frame_pointer_needed before remaining integer and SSE
9428 registers are saved.
9430 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9433 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9435 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9438 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9439 Use the "xBm" constraint.
9440 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9442 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9443 (sse_cvtsi2ssq<round_name>): Likewise.
9444 (sse_cvtss2si<round_name>): Likewise.
9445 (sse_cvtss2siq<round_name>): Likewise.
9446 (sse2_cvtsi2sdq<round_name>): Likewise.
9447 (sse2_cvtsd2si<round_name>): Likewise.
9448 (sse2_cvtsd2siq<round_name>): Likewise.
9449 * config/i386/subst.md (round_nimm_scalar_predicate): New
9452 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9455 * varasm.c (make_decl_rtl): Mark invalid register vars as
9458 PR rtl-optimization/66206
9459 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9460 All callers changed.
9462 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9464 PR tree-optimization/69141
9465 * tree-ssa-pre.c: Include langhooks.h.
9466 (eliminate_dom_walker::before_dom_children): Use
9467 lang_hooks.decl_printable_name instead of
9468 cgraph_node::get ()->name ().
9471 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9472 it and DECL_ALIGN too.
9474 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9476 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9478 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9481 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9482 depending on frame_pointer_needed before remaining integer and SSE
9483 registers are saved.
9485 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9487 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9488 mode iterator with VSX_M2.
9489 (*p9_vecstore_<mode>): Likewise.
9490 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9491 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9492 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9493 (define_split for VSX_LE128 stores): Likewise.
9494 (define_peephole2 for TImode LE swaps): Likewise.
9495 (define_split for VSX_LE128 post-reload stores): Likewise.
9497 2016-01-06 Marek Polacek <polacek@redhat.com>
9500 * convert.c (convert_to_integer_1): Adjust call to
9501 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9502 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9503 EXPR instead of ARG.
9504 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9506 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9509 * doc/extend.texi (RL78 Variable Attributes): New section.
9511 2016-01-05 Marek Polacek <polacek@redhat.com>
9514 * builtins.c (get_memmodel): Use expansion point location rather than
9515 the input location. Call warning_at rather than warning.
9516 (expand_builtin_atomic_compare_exchange): Likewise.
9517 (expand_builtin_atomic_load): Likewise.
9518 (expand_builtin_atomic_store): Likewise.
9519 (expand_builtin_atomic_clear): Likewise.
9521 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9524 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9525 Replace nonimmediate_operand with vector_operand.
9526 * config/i386/predicates.md (vector_operand): New predicate.
9527 (general_vector_operand): Replace nonimmediate_operand with
9529 * config/i386/sse.md: Replace nonimmediate_operand with
9530 vector_operand and m constraint with Bm constraint on SSE
9531 patterns with 16-byte memory operand.
9532 * config/i386/subst.md (round_nimm_predicate): Replace
9533 nonimmediate_operand with vector_operand.
9534 (round_saeonly_nimm_predicate): Likewise.
9535 (round_saeonly_nimm_scalar_predicate): New.
9537 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9540 * config/i386/constraints.md (Bm): New constraint.
9541 * config/i386/predicates.md (vector_memory_operand): New
9543 * config/i386/sse.md: Replace xm with xBm in plusminus and
9546 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9549 * doc/extend.texi (V850 Function Attributes): New section.
9550 (V850 Variable Attributes): New section.
9552 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9555 * doc/extend.texi (MicroBlaze Function Attributes): Document
9556 interrupt_handler and fast_interrupt attributes.
9558 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9561 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9562 for local symbolic operands.
9563 * config/ia64/predicates.md (local_symbolic_operand64): New
9566 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9568 PR rtl-optimization/68651
9569 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9572 2016-01-05 Nathan Sidwell <nathan@acm.org>
9574 * alias.c (compare_base_decls): Use symtab_node::get.
9576 2016-01-05 Nick Clifton <nickc@redhat.com>
9579 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9580 secondary_reload_info structure.
9583 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9584 decls if weak support is available.
9586 2016-01-04 Martin Sebor <msebor@redhat.com>
9588 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9590 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9592 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9593 OPTION_MASK_P9_DFORM.
9595 * config/rs6000/constraints.md (wo constraint): New constraint for
9598 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9600 (rs6000_init_hard_regno_mode_ok): Likewise.
9602 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9605 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9606 expanders not to have constraints. Add support for ISA 3.0 xxperm
9607 instruction. Add support for fusing xxlor with xxperm.
9608 (altivec_vperm_<mode>_internal): Likewise.
9609 (altivec_vperm_v8hiv16qi): Likewise.
9610 (altivec_vperm_<mode>v16q): Likewise.
9611 (altivec_vperm_<mode>_uns): Likewise.
9612 (vperm_v8hiv4si): Likewise.
9613 (vperm_v16qiv8hi): Likewise.
9615 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9617 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9619 Update copyright years.
9621 * gcc.c (process_command): Update copyright notice dates.
9622 * gcov-dump.c (print_version): Ditto.
9623 * gcov.c (print_version): Ditto.
9624 * gcov-tool.c (print_version): Ditto.
9625 * gengtype.c (create_file): Ditto.
9626 * doc/cpp.texi: Bump @copying's copyright year.
9627 * doc/cppinternals.texi: Ditto.
9628 * doc/gcc.texi: Ditto.
9629 * doc/gccint.texi: Ditto.
9630 * doc/gcov.texi: Ditto.
9631 * doc/install.texi: Ditto.
9632 * doc/invoke.texi: Ditto.
9634 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9636 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9637 modes larger than TImode as TImode if NEON is not enabled.
9639 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9642 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9643 mode for %f0-%f31 only if TARGET_FPU.
9645 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9648 * config/sparc/sparc.c (scan_record_type): Take into account subfields
9649 to compute the PACKED_P predicate.
9650 (function_arg_record_value): Minor tweaks.
9652 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9654 * doc/install.texi (--with-multilib-list): Describe the meaning of the
9655 option for arm*-*-* targets.
9657 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
9659 * doc/extend.texi (Common Function Attributes): Move docs for
9660 MSP430-specific attributes to....
9661 (MSP430 Function Attributes): ...here. Delete the redundant
9662 entries and copy-edit the remaining text.
9663 (MSP430 Variable Attributes): Use uniform format for index
9664 entries and add a cross-reference to the corresponding function
9667 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
9669 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9671 (x86 Options): Likewise.
9673 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9677 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9678 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9679 to corresponding attribute.
9681 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9683 * doc/extend.texi (Common Function Attributes) <noplt>: Move
9684 to correct alphabetization of table. Copy-edit and correct
9686 <stack_protect>: Likewise.
9687 <target_clones>: Likewise.
9689 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9690 Correct punctuation.
9691 (Code Gen Options) <-fno-plt>: Copy-edit.
9693 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9696 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9697 SI values. Explicitly convert SI to DI and vice-versa.
9699 2016-01-01 Jakub Jelinek <jakub@redhat.com>
9701 PR tree-optimization/69070
9702 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9703 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9706 * ubsan.c (ubsan_instrument_float_cast): Call
9707 initialize_sanitizer_builtins.
9710 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9712 Copyright (C) 2016 Free Software Foundation, Inc.
9714 Copying and distribution of this file, with or without modification,
9715 are permitted in any medium without royalty provided the copyright
9716 notice and this notice are preserved.