1 2016-05-01 Eric Botcazou <ebotcazou@adacore.com>
3 * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
4 statement on instruction code. Remove trailing spaces.
5 (altivec_expand_stv_builtin): Likewise.
7 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
9 * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
10 (TARGET_FPU_DOUBLE): Simplify.
11 (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
12 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
13 * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
14 with 'TARGET_FPU_DOUBLE'.
15 * config/sh/sh.md: Likewise.
17 2016-05-01 Yoshinori Sato <ysato@users.sourceforge.jp>
19 * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
20 SH_DIV_STR_FOR_SIZE): Remove.
21 * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
22 SH_DIV_STR_FOR_SIZE): Remove.
24 2016-05-01 Oleg Endo <olegendo@gcc.gnu.org>
26 * config/sh/predicates.md (any_register_operand, zero_extend_operand,
27 logical_reg_operand): Delete.
28 (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
29 arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
30 logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
31 match_operand and match_test.
32 (sh_const_vec, sh_1el_vec): Remove redundant checks. Declare local
33 variables on their first use. Return bool values.
34 * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
35 * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
36 arith_reg_operand for input operand. Remove empty constraints.
38 (*xorsi3_compact): Rename to xorsi3.
39 (zero_extend<mode>si2): Use arith_reg_operand for input operand.
40 (*zero_extend<mode>si2_disp_mem): Update comment.
43 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
45 * config/sh/t-sh: Remove SH5 support.
46 * config.gcc: Likewise.
47 * configure: Likewise.
49 2016-04-30 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
51 * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
53 2016-04-30 Oleg Endo <olegendo@gcc.gnu.org>
55 * config/sh/sh.c (register_sh_passes, sh_option_override,
56 sh_print_operand, prepare_move_operands,
57 sh_can_follow_jump): Remove TARGET_SH1 checks.
58 * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
59 PROMOTE_MODE): Likewise.
60 * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
63 2016-04-30 Alan Modra <amodra@gmail.com>
65 * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
66 restoring when fixed_reg_p, but allow out-of-line or stmw save.
67 Check for user regs later to avoid unnecessary looping over regs.
68 Merge user reg check with non-saved reg check. Don't force
69 inline VR restore when static chain used.
70 (rs6000_frame_related): Omit eh_frame info for user regs when
72 (fixed_regs_p): Delete.
74 2016-04-30 Alan Modra <amodra@gmail.com>
76 * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
77 (SAVE_STRATEGY, REST_STRATEGY): ..this. Renumber and sort enum.
80 2016-04-30 Alan Modra <amodra@gmail.com>
83 * config/rs6000/rs6000.c (fixed_reg_p): New function.
84 (fixed_regs_p): Rename from global_regs_p. Call fixed_reg_p.
87 2016-04-30 Alan Modra <amodra@gmail.com>
89 * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
90 Remove redundant PIC_OFFSET_TABLE_REGNUM test. Replace with
91 flag_pic test for Darwin.
93 2016-04-30 Alan Modra <amodra@gmail.com>
95 * regs.h (struct reg_info_t): Delete freq_calls_crossed and
97 (REG_FREQ_CALLS_CROSSED): Delete.
98 (REG_N_THROWING_CALLS_CROSSED): Delete.
99 * regstat.c (regstat_bb_compute_ri): Don't calculate
100 REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
101 (dump_reg_info): Don't print call cross frequency.
102 * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
103 and REG_N_THROWING_CALLS_CROSSED.
105 2016-04-30 Alan Modra <amodra@gmail.com>
107 * regs.h (struct reg_info_t): Delete live_length.
108 (REG_LIVE_LENGTH): Delete macro.
109 * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
110 local_live, local_processed and local_live_last_luid params.
111 Replace bb_index param with bb. Don't set REG_LIVE_LENGTH.
113 (regstat_compute_ri): Adjust for above. Don't set
115 (dump_reg_info): Don't print live length.
116 * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
117 with test of setjmp_crosses. Don't set REG_LIVE_LENGTH.
118 Localize loop_depth var.
120 2016-04-30 Alan Modra <amodra@gmail.com>
122 * ira.c (enum valid_equiv): New.
123 (validate_equiv_mem): Return enum.
124 (update_equiv_mem): Create replacement in more cases.
125 (add_store_equivs): Update validate_equiv_mem call.
127 2016-04-30 Alan Modra <amodra@gmail.com>
129 * ira.c (combine_and_move_insns): Rather than scanning insns,
130 use DF infrastucture to find use and def insns.
132 2016-04-30 Alan Modra <amodra@gmail.com>
134 ira.c (combine_and_move_insns): Move invariant conditions..
135 (ira.c): ..to here. Call combine_and_move_insns before
136 add_store_equivs. Call grow_reg_equivs later. Allocate
137 req_equiv later using max_reg_num() rather than global max_regno.
138 (contains_replace_regs): Delete.
139 (add_store_equivs): Remove contains_replace_regs test.
141 2016-04-30 Alan Modra <amodra@gmail.com>
143 * ira.c (struct equiv_mem_data): New.
144 (equiv_mem, equiv_mem_modified): Delete static vars.
145 (validate_equiv_mem_from_store): Use "data" param to communicate..
146 (validate_equiv_mem): ..from here.
148 2016-04-30 Alan Modra <amodra@gmail.com>
150 * ira.c (add_store_equivs, combine_and_move_insns): New functions,
152 (update_reg_equivs): ..here. Move allocation and freeing of
153 reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
154 end_alias_analysis to..
157 2016-04-30 Alan Modra <amodra@gmail.com>
159 * ira.c (pdx_subregs): Delete.
160 (struct equivalence): Add pdx_subregs field.
161 (set_paradoxical_subreg): Remove pdx_subregs param. Update
163 (update_equiv_regs): Don't create or free pdx_subregs. Update
166 2016-04-29 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
168 * config/rs6000/altivec.h: Change definitions of vec_xl and
170 * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
171 (LD_ELEMREV_V2DI): New.
172 (LD_ELEMREV_V4SF): New.
173 (LD_ELEMREV_V4SI): New.
174 (LD_ELEMREV_V8HI): New.
175 (LD_ELEMREV_V16QI): New.
176 (ST_ELEMREV_V2DF): New.
177 (ST_ELEMREV_V2DI): New.
178 (ST_ELEMREV_V4SF): New.
179 (ST_ELEMREV_V4SI): New.
180 (ST_ELEMREV_V8HI): New.
181 (ST_ELEMREV_V16QI): New.
184 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
185 descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
186 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
187 TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
188 (altivec_expand_builtin): Add handling for
189 VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
190 (rs6000_invalid_builtin): Add error-checking for
191 RS6000_BTM_P9_VECTOR.
192 (altivec_init_builtins): Define builtins used to implement vec_xl
194 (rs6000_builtin_mask_names): Define power9-vector.
195 * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
196 (RS6000_BTM_P9_VECTOR): Define.
197 (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
198 * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
199 (vsx_ld_elemrev_v2df): Likewise.
200 (vsx_ld_elemrev_v4sf): Likewise.
201 (vsx_ld_elemrev_v4si): Likewise.
202 (vsx_ld_elemrev_v8hi): Likewise.
203 (vsx_ld_elemrev_v16qi): Likewise.
204 (vsx_st_elemrev_v2df): Likewise.
205 (vsx_st_elemrev_v2di): Likewise.
206 (vsx_st_elemrev_v4sf): Likewise.
207 (vsx_st_elemrev_v4si): Likewise.
208 (vsx_st_elemrev_v8hi): Likewise.
209 (vsx_st_elemrev_v16qi): Likewise.
210 * doc/extend.texi: Add prototypes for vec_xl and vec_xst. Correct
213 2016-04-29 Patrick Palka <ppalka@gcc.gnu.org>
215 * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
217 (simplify_control_stmt_condition_1): ... here. Recurse into
218 BIT_AND_EXPRs and BIT_IOR_EXPRs.
220 2016-04-29 David Edelsohn <dje.gcc@gmail.com>
223 * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
224 (zero_extendqi<mode>2_dot): Revert earlier conversion from
225 define_insn_and_split to define_insn.
226 (zero_extendqi<mode>2_dot2): Same.
227 (extendqi<mode>2_dot): Same.
228 (extendqi<mode>2_dot2): Same.
230 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
232 * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
233 (probe_stack): New expander.
234 (probe_stack_<mode>): New insn pattern.
236 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
238 * config/i386/i386.md
239 (operations with memory inputs setting flags peephole2):
240 Remove uneeded REG_P checks. Cleanup pattern generation.
242 2016-04-29 Ilya Enkovich <ilya.enkovich@intel.com>
244 * tree-vect-loop.c (vect_transform_loop): Fix
245 nb_iterations_upper_bound computation for vectorized loop.
247 2016-04-29 Marek Polacek <polacek@redhat.com>
248 Jakub Jelinek <jakub@redhat.com>
251 * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
252 TARGET_EXPR_SLOT as a base.
254 2016-04-29 Andrew Burgess <andrew.burgess@embecosm.com>
256 * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
257 with 'rCm2' constraints to limit possible immediate size.
258 (*load_zeroextendqisi_update): Likewise.
259 (*load_signextendqisi_update): Likewise.
260 (*loadhi_update): Likewise.
261 (*load_zeroextendhisi_update): Likewise.
262 (*load_signextendhisi_update): Likewise.
263 (*loadsi_update): Likewise.
264 (*loadsf_update): Likewise.
266 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
268 * config/i386/predicates.md (constm1_operand): Fix comparison.
270 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
272 * testsuite/gcc.target/arc/ieee_eq.c: New test.
274 2016-04-29 Oleg Endo <olegendo@gcc.gnu.org>
276 * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
277 remaining SH5 related settings.
278 * config/sh/sh-protos.h (shmedia_cleanup_truncate,
279 shmedia_prepare_call_address): Delete.
280 * config/sh/sh.c (sh_print_operand, output_stack_adjust,
281 DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
282 * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
283 UNSUPPORTED_SH2A): Remove m5 checks.
284 (sh_divide_strategy_e): Remove SH5 division strategies.
285 (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
286 * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
288 2016-04-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
290 * config/s390/s390.c (s390_rtx_costs): Update documentation.
292 2016-04-29 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
294 * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
295 * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
297 * config/s390/vector.md ("mov<mode>"): Likewise.
299 2016-04-29 Ulrich Weigand <uweigand@de.ibm.com>
301 * config/s390/constraints.md ("U", "W"): Invoke
302 s390_mem_constraint with "ZR" and "ZT".
303 * config/s390/s390.c (s390_check_qrst_address): Reject invalid
304 addresses when using LRA. Accept also short displacements for S
305 and T constraints. Do not check for long displacement target for
307 (s390_mem_constraint): Remove handling of U and W constraints.
308 * config/s390/s390.md (various patterns): Remove the short
309 displacement constraints (Q and R) if a long displacement
310 constraint is present. Add longdisp as required CPU capability.
311 * config/s390/vector.md: Likewise.
312 * config/s390/vx-builtins.md: Likewise.
314 2016-04-29 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
317 * reload1.c (reload): Call finish_spills before
318 restarting reload loop. Skip select_reload_regs
319 if update_eliminables_and_spill returns true.
321 2016-04-29 Claudiu Zissulescu <claziss@synopsys.com>
323 * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
324 * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
325 (umulhisi3_imm): Update predicates and constraint letters.
326 (umulhisi3_reg): Declare instruction as commutative.
327 * config/arc/constraints.md (J12, J16): New constraints.
328 * config/arc/predicates.md (short_unsigned_const_operand): New
330 (arc_short_operand): Likewise.
331 * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
333 2016-04-29 Richard Biener <rguenther@suse.de>
335 PR tree-optimization/13962
336 PR tree-optimization/65686
337 * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
338 * tree-ssa-alias.c (ptrs_compare_unequal): New function
339 using PTA to compare pointers.
340 * match.pd: Add pattern for pointer equality compare simplification
341 using ptrs_compare_unequal.
343 2016-04-29 Richard Biener <rguenther@suse.de>
345 * stor-layout.c (layout_type): Do not build a pointer-to-element
348 2016-04-29 Uros Bizjak <ubizjak@gmail.com>
350 * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
351 Use SWI mode iterator. Use general_reg_operand predicate.
352 (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
353 peephole to MMX and SSE part. Use mmx_reg_operand and sse_reg_operand
356 2016-04-29 Jakub Jelinek <jakub@redhat.com>
359 * fold-const.c (operand_equal_p): Don't verify hash value equality
361 * tree.c (inchash::add_expr): Handle STATEMENT_LIST. Ignore BLOCK
364 2016-04-28 Jakub Jelinek <jakub@redhat.com>
367 * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
368 to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
369 (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
370 __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
371 __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
373 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
375 * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
376 to info. Don't initialize separate fields to 0. Clean up
379 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
381 * config/i386/i386.md (peephole2s for operations with memory inputs):
382 Use SWI mode iterator.
383 (peephole2s for operations with memory outputs): Ditto.
384 Do not check for stack checking probe.
386 (probe_stack): Remove expander.
388 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
389 Andrew Burgess <andrew.burgess@embecosm.com>
391 * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
394 2016-04-28 Jason Merrill <jason@redhat.com>
396 * gdbinit.in: Skip line-map.h.
398 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
399 Andrew Burgess <andrew.burgess@embecosm.com>
401 * config/arc/arc.c (arc_conditional_register_usage): Take
402 TARGET_RRQ_CLASS into account.
403 (arc_print_operand): Support printing 'p' and 's' operands.
404 * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
406 (TARGET_RRQ_CLASS): Define.
407 (IS_POWEROF2_OR_0_P): Define.
408 * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
410 (*tst_movb): New define_insn.
411 (*tst): Avoid recognition if it could prevent '*tst_movb'
412 combination; replace c/CnL with c/Chs alternative.
413 (*tst_bitfield_tst): New define_insn.
414 (*tst_bitfield_asr): New define_insn.
415 (*tst_bitfield): New define_insn.
416 (andsi3_i): Add Rrq variant.
417 (extzv): New define_expand.
418 (insv): New define_expand.
419 (*insv_i): New define_insn.
420 (*movb): New define_insn.
421 (*movb_signed): New define_insn.
422 (*movb_high): New define_insn.
423 (*movb_high_signed): New define_insn.
424 (*movb_high_signed + 1): New define_split pattern.
425 (*mrgb): New define_insn.
426 (*mrgb + 1): New define_peephole2 pattern.
427 (*mrgb + 2): New define_peephole2 pattern.
428 * config/arc/arc.opt (mbitops): New option for nps400, uses
429 TARGET_NPS_BITOPS_DEFAULT.
430 * config/arc/constraints.md (q): Make register class conditional.
431 (Rrq): New register constraint.
432 (Chs): New constraint.
433 (Clo): New constraint.
434 (Chi): New constraint.
435 (Cbf): New constraint.
436 (Cbn): New constraint.
437 (C18): New constraint.
438 (Cbi): New constraint.
440 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
442 * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
444 (bitmap_intersection_of_preds): Ditto.
445 (bitmap_union_of_succs): Ditto.
446 (bitmap_union_of_preds): Ditto.
447 * sbitmap.c (do_popcount): Delete.
448 (BITMAP_DEBUGGING): Delete.
449 (sbitmap_verify_popcount): Delete.
450 (sbitmap_alloc): Don't initialize the popcount field.
451 (sbitmap_alloc_with_popcount): Delete.
452 (sbitmap_resize): Don't resize the popcount array.
453 (sbitmap_vector_alloc): Don't initialize the popcount field.
454 (bitmap_copy): Don't copy the popcount array.
455 (bitmap_clear): Don't clear the popcount array.
456 (bitmap_clear): Delete the popcount array handling.
457 (bitmap_ior_and_compl): Delete the popcount assert.
459 (bitmap_and_compl): Ditto.
460 (bitmap_and): Delete the popcount array handling.
463 (bitmap_or_and): Delete the popcount assert.
464 (bitmap_and_or): Ditto.
465 (popcount_table): Delete.
466 (sbitmap_elt_popcount): Delete.
467 * sbitmap.h (simple_bitmap_def): Delete the popcount field.
468 (bitmap_set_bit): Delete the popcount assert.
469 (bitmap_clear_bit): Ditto.
470 (sbitmap_free): Don't free the popcount array.
471 (sbitmap_alloc_with_popcount): Delete declaration.
472 (sbitmap_popcount): Ditto.
474 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
475 Andrew Burgess <andrew.burgess@embecosm.com>
477 * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
478 (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
479 * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
480 (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
481 * config/arc/arc.opt (mcmem): New option.
482 * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
483 supply length for r/m alternative.
484 (*extendqisi2_ac): Likewise.
485 (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
487 (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
488 (movhi_insn): Likewise.
489 (movsi_insn): Add r/Ucm,Ucm/w alternatives.
490 (*zero_extendqihi2_i): Add r/Ucm alternative.
491 (*zero_extendqisi2_ac): Likewise.
492 (*zero_extendhisi2_i): Likewise.
493 * config/arc/constraints.md (Uex): New memory constraint.
494 (Ucm): New define_constraint.
495 * config/arc/predicates.md (long_immediate_loadstore_operand):
496 Return 0 for MEM with cmem_address address.
497 (cmem_address_0): New predicates.
498 (cmem_address_1): Likewise.
499 (cmem_address_2): Likewise.
500 (cmem_address): Likewise.
502 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
504 * config/rs6000/rs6000.c (machine_function): Rename
505 insn_chain_scanned_p to spe_insn_chain_scanned_p.
506 (rs6000_stack_info): Adjust.
508 2016-04-28 Joern Rennecke <joern.rennecke@embecosm.com>
509 Andrew Burgess <andrew.burgess@embecosm.com>
511 * config/arc/constraints.md (Usd): Convert to define_constraint.
515 2016-04-28 Jakub Jelinek <jakub@redhat.com>
518 * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
519 Add new peephole2 where the first insn is *mov<mode>_or instead of
522 2016-04-28 Segher Boesssenkool <segher@kernel.crashing.org>
524 * tracer.c (bb_seen): Make static.
526 2016-04-28 Andrew Burgess <andrew.burgess@embecosm.com>
528 * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
529 support, setup defaults.
530 * config/arc/arc-opts.h (enum processor_type): Add NPS400.
531 * config/arc/arc.c (arc_init): Add NPS400 support.
532 * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
533 (TARGET_ARC700): NPS400 is also an ARC700.
534 * config/arc/arc.opt: Add NPS400 options to -mcpu=.
536 2016-04-28 Segher Boessenkool <segher@kernel.crashing.org>
539 * config/nds32/nds32.md (casesi): Don't access the operands array
542 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
544 * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
545 (or $-1,reg peephole2): Ditto.
546 (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
548 2016-04-28 Markus Trippelsdorf <markus@trippelsdorf.de>
550 * doc/extend.texi (Common Function Attributes) [optimize]:
551 Discourage use of the optimize attribute.
553 2016-04-28 Bill Seurer <seurer@linux.vnet.ibm.com>
555 * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
556 special case builtin.
557 * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
558 ALTIVEC_BUILTIN_VEC_ADDE.
559 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
560 support for ALTIVEC_BUILTIN_VEC_ADDE.
561 * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
562 for __builtin_vec_adde.
564 2016-04-28 Jakub Jelinek <jakub@redhat.com>
566 * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
567 * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
569 2016-04-28 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
572 * doc/sourcebuild.texi (Effective-Target Keywords, Other
573 attributes): Document cilkplus_runtime.
575 2016-04-28 Martin Jambor <mjambor@suse.cz>
577 * tree-cfg.c (verify_expr): Verify that local declarations belong to
578 this function. Call verify_expr on MEM_REFs and bases of other
581 2016-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
583 * internal-fn.c (expand_arith_overflow): Convert preprocessor check
584 for WORD_REGISTER_OPERATIONS to runtime check.
586 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
588 * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
590 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
592 * config/arc/arc.c (arc_process_double_reg_moves): Fix for
593 big-endian compilation.
594 * config/arc/arc.md (addf3): Likewise.
598 2016-04-28 Richard Biener <rguenther@suse.de>
600 PR tree-optimization/70840
601 * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
602 Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
603 Mark x * pow(x,c) -> pow(x,c+1) commutative.
604 Add powi(x,y) * powi(z,y) -> powi(x*z,y).
606 2015-04-28 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
608 * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
609 and explain why in a comment.
611 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
613 * config/arc/arc.md (cpu_facility): Add fpx variant.
614 (subdf3): Prohibit use reverse sub when assist operations option
616 * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
617 instructions only when FPX is enabled.
618 * testsuite/gcc.target/arc/trsub.c: New test.
620 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
622 * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
623 mult_operator when calculating "type" attribute.
624 (*fop_<mode>_1_i387): Ditto.
625 (*fop_xf_1_i387): Ditto.
626 (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
627 Use std::swap to swap operands. Use RTL expressions to generate
630 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
631 Joern Rennecke <joern.rennecke@embecosm.com>
633 * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
635 (emit_pic_move): Remove.
636 (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
637 * config/arc/arc.c (emit_pic_move): Removed.
638 (TARGET_HAVE_TLS): Define.
639 (arc_conditional_register_usage): Test for arc_tp_regno.
640 (arc_print_operand, arc_print_operand_address): Handle TLS
642 (arc_needs_pcl_p): New function.
643 (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
644 (arc_legitimate_pic_addr_p): Handle TLS unspecs.
645 (arc_raw_symbolic_reference_mentioned_p): Likewise.
646 (arc_get_tp, arc_emit_call_tls_get_addr): New function.
647 (arc_legitimize_tls_address): Likewise.
648 (DTPOFF_ZERO_SYM): Define.
649 (arc_legitimize_pic_address): Make it static, handle TLS cases.
650 (arc_output_pic_addr_const): Print TLS unspecs.
651 (prepare_pic_move): New function, replaces emit_pic_move.
652 (arc_legitimate_constant_p): Handle TLS unspecs.
653 (arc_legitimate_address_p): Likewise.
654 (arc_rewrite_small_data_p): Use assert for TLS constants.
655 (prepare_move_operands): Use prepare_pic_move.
656 (arc_legitimize_address): Legitimize tls addresses.
657 (arc_epilogue_uses): Check for arc_tp_regno.
658 (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
659 * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
661 [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
663 [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
664 %(arc_tls_extra_start_spec).
665 (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
666 (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
668 (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
669 * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
670 (UNSPEC_TLS_OFF): Add.
672 (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
673 (get_thread_pointersi): New patterns.
674 * config/arc/arc.opt (mtp-regno): New option.
675 * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
676 (move_dest_operand): Likewise.
677 * configure: Regenerate.
678 * configure.ac: Add arc*-*-* case to test for tls.
679 * doc/invoke.texi (ARC options): Document mtp-regno.
681 2016-04-28 Claudiu Zissulescu <claziss@synopsys.com>
683 * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
684 the new ARC HS SIMD instructions.
685 (arc_preferred_simd_mode): New function.
686 (arc_autovectorize_vector_sizes): Likewise.
687 (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
688 (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
689 (arc_init_reg_tables): Accept new ARC HS SIMD modes.
690 (arc_init_builtins): Add new SIMD builtin types.
691 (arc_split_move): Handle 64 bit vector moves.
692 * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
693 (TARGET_PLUS_QMACW): Define.
694 * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
695 (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
696 (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
697 (VSUBADD4H): New builtins.
698 * config/arc/simdext.md: Add new ARC HS SIMD instructions.
699 * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
701 2016-04-28 Eduard Sanou <dhole@openmailbox.org>
702 Matthias Klose <doko@debian.org>
704 * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
706 2016-04-28 Richard Biener <rguenther@suse.de>
709 * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
712 2016-04-28 Oleg Endo <olegendo@gcc.gnu.org>
714 * common/config/sh/sh-common.c: Remove SH5 support.
715 * config/sh/constraints.md: Likewise.
716 * config/sh/config/sh/elf.h: Likewise.
717 * config/sh/linux.h: Likewise.
718 * config/sh/netbsd-elf.h: Likewise.
719 * config/sh/predicates.md: Likewise.
720 * config/sh/sh-c.c: Likewise.
721 * config/sh/sh-protos.h: Likewise.
722 * config/sh/sh.c: Likewise.
723 * config/sh/sh.h: Likewise.
724 * config/sh/sh.md: Likewise.
725 * config/sh/sh.opt: Likewise.
726 * config/sh/sync.md: Likewise.
727 * config/sh/sh64.h: Delete.
728 * config/sh/shmedia.h: Likewise.
729 * config/sh/shmedia.md: Likewise.
730 * config/sh/sshmedia.h: Likewise.
731 * config/sh/t-netbsd-sh5-64: Likewise.
732 * config/sh/t-sh64: Likewise.
733 * config/sh/ushmedia.h: Likewise.
735 2016-04-28 Uros Bizjak <ubizjak@gmail.com>
737 * config/i386/i386.md (sign_extend to memory peephole2s): Use
738 general_reg_operand instead of register_operand predicate.
740 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
742 * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
744 2016-04-27 Marc Glisse <marc.glisse@inria.fr>
746 * match.pd (A - B > A, A + B < A): New transformations.
748 2016-04-27 Patrick Palka <ppalka@gcc.gnu.org>
750 * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
751 which defaults to true. Emit an outer pair of parentheses only if
752 EMIT_PARENS. When continuing a chain of && or || (or & or |),
753 don't emit parentheses for the right-hand operand.
755 2016-04-27 Jeff Law <law@redhat.com>
757 * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
759 2016-04-27 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
761 * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
762 (altivec_lvx_<mode>_internal): Document.
763 (altivec_lvx_<mode>_2op): New define_insn.
764 (altivec_lvx_<mode>_1op): Likewise.
765 (altivec_lvx_<mode>_2op_si): Likewise.
766 (altivec_lvx_<mode>_1op_si): Likewise.
767 (altivec_stvx_<mode>): Remove.
768 (altivec_stvx_<mode>_internal): Document.
769 (altivec_stvx_<mode>_2op): New define_insn.
770 (altivec_stvx_<mode>_1op): Likewise.
771 (altivec_stvx_<mode>_2op_si): Likewise.
772 (altivec_stvx_<mode>_1op_si): Likewise.
773 * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
774 Expand vec_ld and vec_st during parsing.
775 * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
777 (altivec_expand_stvx_be): Likewise.
778 (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
779 address-masking behavior in RTL.
780 (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
781 address-masking behavior in RTL.
782 (altivec_expand_builtin): Change builtin code arguments for calls
783 to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
784 (insn_is_swappable_p): Avoid incorrect swap optimization in the
785 presence of lvx/stvx patterns.
786 (alignment_with_canonical_addr): New function.
787 (alignment_mask): Likewise.
788 (find_alignment_op): Likewise.
789 (recombine_lvx_pattern): Likewise.
790 (recombine_stvx_pattern): Likewise.
791 (recombine_lvx_stvx_patterns): Likewise.
792 (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
793 stvx patterns from expand.
794 * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
796 (vector_altivec_store_<mode>): Likewise.
798 2016-04-26 Evandro Menezes <e.menezes@samsung.com>
800 * config/aarch64/aarch64.md
801 (*movhf_aarch64): Add "movi %0, #0" to zero up register and
802 remove the "fp" attributes.
803 (*movsf_aarch64): Add "movi %0, #0" to zero up register and
804 add the "simd" attributes.
805 (*movdf_aarch64): Likewise.
806 (*movtf_aarch64): Remove the "fp" attributes.
807 * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
808 * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
810 2016-04-27 David Malcolm <dmalcolm@redhat.com>
812 * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
813 rtx to rtx_code_label *.
814 * rtl.h (maybe_set_first_label_num): Likewise.
816 2016-04-27 David Malcolm <dmalcolm@redhat.com>
818 * df-core.c (df_add_problem): Make the problem param be const.
819 (df_remove_problem): Make local "problem" be const.
820 * df-problems.c (problem_RD): Make const.
821 (problem_LR): Likewise.
822 (problem_LIVE): Likewise.
823 (problem_MIR): Likewise.
824 (problem_CHAIN): Likewise.
825 (problem_WORD_LR): Likewise.
826 (problem_NOTE): Likewise.
827 (problem_MD): Likewise.
828 * df-scan.c (problem_SCAN): Likewise.
829 * df.h (struct df_problem): Make field "dependent_problem" be
831 (struct dataflow): Likewise for field "problem".
832 (df_add_problem): Make param const.
834 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
836 * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
837 inter-unit moves to/from vector registers are enabled. Do not disable
840 2016-04-27 David Malcolm <dmalcolm@redhat.com>
842 * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
843 DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
845 (enum df_problem_id): ...this new enum.
846 (struct df_problem): Convert field "id" from "int" to
849 2016-04-27 David Malcolm <dmalcolm@redhat.com>
851 * rtl.def: Update comment for "things in the instruction chain" to
852 reflect the removal of the leading "i" field for INSN_UID in
853 r210360. Fix bogus apostrophe.
855 2016-04-27 Uros Bizjak <ubizjak@gmail.com>
857 * config/i386/i386.md
858 (lea arith with mem operand + setcc peephole2): Set operator mode.
860 2016-04-27 H.J. Lu <hongjiu.lu@intel.com>
863 * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
864 (dimode_scalar_to_vector_candidate_p): This.
865 (timode_scalar_to_vector_candidate_p): New function.
866 (scalar_to_vector_candidate_p): Likewise.
867 (timode_check_non_convertible_regs): Likewise.
868 (timode_remove_non_convertible_regs): Likewise.
869 (remove_non_convertible_regs): Likewise.
870 (remove_non_convertible_regs): Renamed to ...
871 (dimode_remove_non_convertible_regs): This.
872 (scalar_chain::~scalar_chain): Make it virtual.
873 (scalar_chain::compute_convert_gain): Make it pure virtual.
874 (scalar_chain::mark_dual_mode_def): Likewise.
875 (scalar_chain::convert_insn): Likewise.
876 (scalar_chain::convert_registers): Likewise.
877 (scalar_chain::add_to_queue): Make it protected.
878 (scalar_chain::emit_conversion_insns): Likewise.
879 (scalar_chain::replace_with_subreg): Likewise.
880 (scalar_chain::replace_with_subreg_in_insn): Likewise.
881 (scalar_chain::convert_op): Likewise.
882 (scalar_chain::convert_reg): Likewise.
883 (scalar_chain::make_vector_copies): Likewise.
884 (scalar_chain::convert_registers): New pure virtual function.
885 (class dimode_scalar_chain): New class.
886 (class timode_scalar_chain): Likewise.
887 (scalar_chain::mark_dual_mode_def): Renamed to ...
888 (dimode_scalar_chain::mark_dual_mode_def): This.
889 (timode_scalar_chain::mark_dual_mode_def): New function.
890 (timode_scalar_chain::convert_insn): Likewise.
891 (dimode_scalar_chain::convert_registers): Likewise.
892 (scalar_chain::compute_convert_gain): Renamed to ...
893 (dimode_scalar_chain::compute_convert_gain): This.
894 (scalar_chain::replace_with_subreg): Renamed to ...
895 (dimode_scalar_chain::replace_with_subreg): This.
896 (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
897 (dimode_scalar_chain::replace_with_subreg_in_insn): This.
898 (scalar_chain::make_vector_copies): Renamed to ...
899 (dimode_scalar_chain::make_vector_copies): This.
900 (scalar_chain::convert_reg): Renamed to ...
901 (dimode_scalar_chain::convert_reg ): This.
902 (scalar_chain::convert_op): Renamed to ...
903 (dimode_scalar_chain::convert_op): This.
904 (scalar_chain::convert_insn): Renamed to ...
905 (dimode_scalar_chain::convert_insn): This.
906 (scalar_chain::convert): Call convert_registers.
907 (convert_scalars_to_vector): Change to scalar_chain pointer to
908 use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
909 in 32-bit mode. Delete scalar_chain pointer. Call
910 free_dominance_info in 64-bit mode.
911 (pass_stv::gate): Remove TARGET_64BIT check.
912 (ix86_option_override): Put the 64-bit STV pass before the CSE
915 2016-04-27 Pierre-Marie de Rodat <derodat@adacore.com>
917 * dwarf2out.h (struct dw_loc_descr_node): Remove the
918 dw_loc_frame_offset field.
919 * dwarf2out.c (new_loc_descr): Likewise.
920 (resolve_args_picking_1): Turn the VISITED hash set into a
921 FRAME_OFFSET hash map. Use it to associate a frame offset to
922 visited nodes. Remove uses of the CHECKING_P macro.
923 (resolve_args_picking): Update call to resolve_args_picking_1.
925 2016-04-27 Martin Liska <mliska@suse.cz>
927 * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
928 (free_loop_data): Release vuses of groups.
930 2016-04-27 Bin Cheng <bin.cheng@arm.com>
932 * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
933 instead of redundant use_id and boolean have_use_for.
934 (struct iv_use): Change sub_id into group_id. Remove field next.
935 Move fields: related_cands, n_map_members, cost_map and selected
937 (struct iv_group): ... here. New structure.
938 (struct iv_common_cand): Use structure declaration directly.
939 (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
940 (MAX_CONSIDERED_USES): Rename macro to ...
941 (MAX_CONSIDERED_GROUPS): ... here.
942 (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
943 (dump_iv, dump_use, dump_cand): Refactor format of dump information.
944 (dump_uses): Rename to ...
945 (dump_groups): ... here. Update all uses.
946 (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
947 (find_induction_variables): Refactor format of dump information.
948 (record_sub_use): Delete.
949 (record_use): Update all uses.
950 (record_group): New function.
951 (record_group_use, find_interesting_uses_op): Call above functions.
953 (find_interesting_uses_cond): Ditto.
954 (group_compare_offset): New function.
955 (split_all_small_groups): Rename to ...
956 (split_small_address_groups_p): ... here. Update all uses.
957 (split_address_groups): Update all uses.
958 (find_interesting_uses): Refactor format of dump information.
959 (add_candidate_1): Update all uses. Remove redundant check on iv,
961 (add_candidate, record_common_cand): Remove redundant assert.
962 (add_iv_candidate_for_biv): Update use.
963 (add_iv_candidate_derived_from_uses): Update all uses.
964 (add_iv_candidate_for_groups, record_important_candidates): Ditto.
965 (alloc_use_cost_map): Ditto.
966 (set_use_iv_cost, get_use_iv_cost): Rename to ...
967 (set_group_iv_cost, get_group_iv_cost): ... here. Update all uses.
968 (determine_use_iv_cost_generic): Ditto.
969 (determine_group_iv_cost_generic): Ditto.
970 (determine_use_iv_cost_address): Ditto.
971 (determine_group_iv_cost_address): Ditto.
972 (determine_use_iv_cost_condition): Ditto.
973 (determine_group_iv_cost_cond): Ditto.
974 (determine_use_iv_cost): Ditto.
975 (determine_group_iv_cost): Ditto.
976 (set_autoinc_for_original_candidates): Update all uses.
977 (find_iv_candidates): Update all uses. Refactor dump information.
978 (determine_use_iv_costs): Ditto.
979 (determine_iv_costs): Ditto.
980 (iv_ca_cand_for_use): Rename to ...
981 (iv_ca_cand_for_group): ... here. Update all uses.
982 (iv_ca_add_use, iv_ca_add_group): Ditto.
983 (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
984 (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
985 (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
986 (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
987 (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
988 (create_new_iv, adjust_iv_update_pos): Ditto.
989 (rewrite_use_address): Delete.
990 (rewrite_use_address_1): Rename to ...
991 (rewrite_use_address): ... here.
992 (rewrite_use_compare): Update all uses.
993 (rewrite_use): Delete.
994 (rewrite_uses): Rename to ...
995 (rewrite_groups): ... here. Update all uses.
996 (remove_unused_ivs, free_loop_data): Update all uses.
997 (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
999 2016-04-27 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1001 * rtlanal.c (nonzero_bits1): Convert preprocessor check
1002 for WORD_REGISTER_OPERATIONS to runtime check.
1004 2016-04-27 Richard Biener <rguenther@suse.de>
1007 * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1008 aggregate_value_p to determine if a function result is
1009 returned by reference.
1010 (ipa_pta_execute): Functions having their address taken are
1011 not automatically nonlocal.
1013 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1016 * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1017 * fold-const.c (operand_equal_p): If flag_checking and
1018 OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1019 and if it returns non-zero, assert iterative_hash_expr on both
1022 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1024 * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1026 2016-04-27 Nick Clifton <nickc@redhat.com>
1029 * varasm.c (merge_weak): Generate an error if an attempt is made
1030 to convert a non-weak static function into a weak, public function.
1032 2016-04-27 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
1034 * params.def (MAX_PARTITION_SIZE): New param.
1035 * doc/invoke.texi: Document lto-max-partition.
1037 2016-04-27 Richard Biener <rguenther@suse.de>
1040 * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1041 function cummulating used_from_other_partition, externally_visible
1042 and force_output from aliases.
1043 (refered_from_nonlocal_var): Likewise.
1044 (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1045 node flags properly.
1047 2016-04-27 Bernd Schmidt <bschmidt@redhat.com>
1049 * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1050 (-Wmemset-elt-size): New item.
1052 2016-04-27 Eric Botcazou <ebotcazou@adacore.com>
1055 * stor-layout.h (internal_reference_types): Delete.
1056 * stor-layout.c (reference_types_internal): Likewise.
1057 (internal_reference_types): Likewise.
1058 (layout_type) <REFERENCE_TYPE>: Adjust.
1060 2016-04-27 Jakub Jelinek <jakub@redhat.com>
1063 * tree.h (inchash::add_expr): Add FLAGS argument.
1064 * tree.c (inchash::add_expr): Likewise. If not OEP_ADDRESS_OF,
1065 use STRIP_NOPS first. For INTEGER_CST assert not OEP_ADDRESS_OF.
1066 For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1067 Formatting fix. Adjust recursive calls. For tcc_comparison,
1068 if swap_tree_comparison (code) is smaller than code, hash that
1069 and arguments in the other order. Hash CONVERT_EXPR the same
1070 as NOP_EXPR. For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1071 of ADDR_EXPR of decl as the decl itself. Add or remove
1072 OEP_ADDRESS_OF from recursive flags as needed. For
1073 FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1074 operands commutatively and only the third one normally.
1075 For internal CALL_EXPR hash in CALL_EXPR_IFN.
1077 2016-04-27 Sebastian Huber <sebastian.huber@embedded-brains.de>
1079 * config/rtems.h (LIB_SPEC): Add -latomic.
1081 2016-04-27 Joel Sherrill <joel@rtems.org>
1083 * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1084 xilink.ld and flags not relevant to RTEMS.
1086 2016-04-26 Zhouyi Zhou <yizhouzhou@ict.ac.cn>
1088 * toplev.c (backend_init_target): Avoid calling init_reload when using
1091 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1093 * reorg.c (try_merge_delay_insns): Declare i and j inside the
1094 for loops rather than one for the whole function.
1096 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1098 * match.pd (X + CST CMP X): New transformation.
1100 2016-04-26 Marc Glisse <marc.glisse@inria.fr>
1102 * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1103 * fold-const.c (fold_binary_loc): Remove 2 transformations
1104 superseded by match.pd.
1105 * match.pd (x+x -> x*2): Generalize to integers.
1107 2016-04-26 Bernd Schmidt <bschmidt@redhat.com>
1109 * config/i386/i386.md (operation on memory peephole): Duplicate an
1110 existing peephole and adapt it to match lea rather than an operation
1113 PR rtl-optimization/57193
1114 * opts.c (default_options_table): Add OPT_frename_registers at -O2
1116 * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1118 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1120 * tree-if-conv.c (any_pred_load_store): New static variable.
1121 (if_convertible_gimple_assign_stmt_p): Remove parameter. Use
1122 any_pred_load_store instead of and_mask_load_store.
1123 (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1124 (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1125 (combine_blocks, tree_if_conversion): Ditto.
1127 2016-04-26 Bin Cheng <bin.cheng@arm.com>
1129 PR tree-optimization/70771
1130 PR tree-optimization/70775
1131 * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1132 virtual PHI nodes. Delete parameter.
1133 (if_convertible_loop_p_1): Delete argument to above function.
1134 (predicate_all_scalar_phis): Delete code handling single-argument
1136 (tree_if_conversion): Mark and update virtual SSA.
1138 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1141 * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1142 (x86_elf_aligned_common): Rename to ...
1143 (x86_elf_aligned_decl_common): ... this.
1144 Add decl arg. Switch to .lbss for largecomm object. Use
1145 LARGECOMM_SECTION_ASM_OP.
1146 * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1148 * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1149 (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1151 * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1152 [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1154 2016-04-26 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1157 * config/i386/i386.c (SECTION_LARGE): Define.
1158 (x86_64_elf_select_section): Set it for large data/bss sections.
1159 Only clear SECTION_WRITE for .lrodata.
1160 (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1162 * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1163 * varasm.c (default_elf_asm_named_section): Grow flagchars.
1164 [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1166 * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1167 * doc/tm.texi: Regenerate.
1169 2016-04-26 Jakub Jelinek <jakub@redhat.com>
1172 * configure.ac (--enable-checking): Document extra flag, for
1173 non-release builds default to --enable-checking=yes,extra.
1174 If misc checking and extra checking, define CHECKING_P to 2 instead
1176 * common.opt (fchecking=): Add.
1177 * doc/invoke.texi (-fchecking=): Document.
1178 * doc/install.texi: Document --enable-checking changes.
1179 * configure: Regenerated.
1180 * config.in: Regenerated.
1182 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1184 * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1185 attribute instead of which_alternative.
1186 * config/i386/sse.md (*mov<mode>_internal): Ditto.
1187 Use EXT_REX_SSE_REG_P where appropriate.
1189 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1191 * config/i386/predicates.md (const0_operand): Do not match
1192 const_wide_int code.
1193 (const1_operand): Ditto.
1195 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1197 * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1198 for SSE constm1 operands and TARGET_AVX512VL.
1199 (*movti_internal): Ditto.
1200 (*mov<mode>_or): Use constm1_operand predicate.
1201 * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1202 for SSE vector_all_ones operands and TARGET_AVX512VL.
1203 * config/i386/predicates.md (constm1_operand): New predicate.
1204 * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1205 emission of constant -1 load.
1207 2016-04-25 Jason Merrill <jason@redhat.com>
1209 * gdbinit.in: Skip is-a.h.
1211 * attribs.c (register_scoped_attributes): Fix logic.
1212 * attribs.h: Declare register_scoped_attributes.
1214 2016-04-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
1216 * config/rs6000/rs6000-builtin.def: Correct pasto error for
1217 stxvd2x and stxvw4x built-in functions.
1219 2016-04-25 DJ Delorie <dj@redhat.com>
1221 * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1222 (ashrhi3): Likewise.
1223 (lshrhi3): Likewise.
1225 2016-04-25 Richard Biener <rguenther@suse.de>
1227 PR tree-optimization/70780
1228 * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1230 (compute_antic): Mark blocks with abnormal preds as visited as
1231 they have a final empty antic-in solution already.
1233 2016-04-25 Michael Collison <michael.collison@linaro.org>
1235 * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1237 2016-04-25 Michael Collison <michael.collison@linaro.org>
1239 * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1240 mode is VQI to improve mixed mode vectorization.
1241 * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1242 define_insn to match low half of signed vaddw.
1243 * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1244 define_insn to match high half of signed vaddw.
1245 * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1246 define_insn to match low half of unsigned vaddw.
1247 * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1248 define_insn to match high half of unsigned vaddw.
1249 * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1250 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1251 * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1253 (arm_simd_check_vect_par_cnst_half_p): Likewise.
1254 * config/arm/predicates.md (vect_par_constant_high): Support
1255 big endian and simplify by calling
1256 arm_simd_check_vect_par_cnst_half
1257 (vect_par_constant_low): Likewise.
1259 2016-04-25 Uros Bizjak <ubizjak@gmail.com>
1261 * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1262 predicate for operand 2.
1264 2016-04-24 Uros Bizjak <ubizjak@gmail.com>
1265 H.J. Lu <hongjiu.lu@intel.com>
1267 * config/i386/i386-protos.h (standard_sse_constant_p): Add
1268 machine_mode argument.
1269 * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1270 constm1_rtx operands. For VOIDmode constants, get mode from
1271 pred_mode. Check mode size if the mode is supported by ABI.
1272 (standard_sse_constant_opcode): Do not use standard_constant_p.
1273 Strictly check ABI support for all-ones operands.
1274 (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1275 immediates. Update calls to standard_sse_constant_p.
1276 (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1277 (ix86_rtx_costs): Ditto.
1278 * config/i386/i386.md (*movxi_internal_avx512f): Use
1279 nonimmediate_or_sse_const_operand instead of vector_move_operand.
1280 Use (v,BC) alternative instead of (v,C). Use register_operand
1281 checks instead of MEM_P.
1282 (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1283 of vector_move_operand. Add (v,BC) alternative and corresponding avx2
1284 isa attribute. Use register_operand checks instead of MEM_P.
1285 (*movti_internal): Use nonimmediate_or_sse_const_operand for
1286 TARGET_SSE. Improve TARGET_SSE insn constraint. Add (v,BC)
1287 alternative and corresponding sse2 isa attribute.
1288 (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1289 to standard_sse_constant_p.
1290 (FP constant splitters): Ditto.
1291 * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1293 * config/i386/predicates.md (constm1_operand): Remove.
1294 (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1295 * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1296 vector_all_ones_operand instead of constm1_operand.
1298 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1300 * print-rtl.c (print_rtx_insn_vec): New function.
1301 * print-rtl.h: New prototype.
1302 * store-motion.c (struct st_expr): Make avail_stores a vector.
1303 (st_expr_entry): Adjust.
1304 (free_st_expr_entry): Likewise.
1305 (print_store_motion_mems): Likewise.
1306 (find_moveable_store): Likewise.
1307 (compute_store_table): Likewise.
1308 (delete_store): Likewise.
1309 (build_store_vectors): Likewise.
1311 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1313 * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1315 2016-04-24 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
1317 * vec.h (vec_safe_contains): New function.
1318 (vec::contains): Likewise.
1319 (vec::begin): Likewise.
1320 (vec::end): Likewise.
1322 2016-04-23 Jakub Jelinek <jakub@redhat.com>
1325 * cfgexpand.c (expand_stack_vars): Fix typo.
1327 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1329 * system.h (list, map, set, vector): Include conditionally.
1330 * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1331 * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1332 * ipa-icf.c (INCLUDE_LIST): Define.
1333 * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1334 * config/sh/sh.c (INCLUDE_VECTOR): Define.
1335 * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1336 (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1337 * cp/logic.cc (INCLUDE_LIST): Define.
1338 * fortran/trans-common.c (INCLUDE_MAP): Define.
1340 2016-04-22 Szabolcs Nagy <szabolcs.nagy@arm.com>
1342 * auto-profile.c: Remove <string.h> include.
1343 * ipa-icf-gimple.c: Remove <list> include.
1344 * diagnostic.c: Remove <new> include.
1345 * genmatch.c: Likewise.
1346 * pretty-print.c: Likewise.
1347 * toplev.c: Likewise
1348 * c/c-objc-common.c: Likewise.
1349 * cp/error.c: Likewise.
1350 * fortran/error.c: Likewise.
1352 2016-04-22 Richard Biener <rguenther@suse.de>
1354 * lto-streamer-in.c (input_ssa_names): Do not allocate
1355 GIMPLE_NOP for all SSA names.
1356 * lto-streamer-out.c (output_ssa_names): Do not output
1357 SSA names that should have been released.
1359 2016-04-22 Richard Biener <rguenther@suse.de>
1361 PR tree-optimization/70740
1362 * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1365 2016-04-21 H.J. Lu <hongjiu.lu@intel.com>
1368 * config/i386/predicates.md (call_insn_operand): Replace
1369 sibcall_memory_operand with memory_operand.
1371 2016-04-21 Patrick Palka <ppalka@gcc.gnu.org>
1373 * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1374 has_single_use() tests.
1375 (register_edge_assert_for_1): Likewise.
1376 (find_assert_locations_1): Check the liveness bitmap instead of
1377 checking has_single_use().
1379 2016-04-21 Kirill Yukhin <kirill.yukhin@intel.com>
1382 * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1383 Extract AVX-512BW constraint from AVX.
1385 2016-04-21 Richard Biener <rguenther@suse.de>
1387 PR tree-optimization/70725
1388 * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1389 for phi_convertible_by_degenerating_args.
1390 (predicate_all_scalar_phis): Handle single-argument PHIs.
1392 2016-04-21 Richard Biener <rguenther@suse.de>
1395 * fold-const.c (fold_comparison): Return properly typed
1398 2016-04-21 Bin Cheng <bin.cheng@arm.com>
1400 PR tree-optimization/70715
1401 * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1402 after expanding BASE using expand_simple_operations.
1404 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1406 * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1407 New transformations.
1409 2016-04-21 Marc Glisse <marc.glisse@inria.fr>
1411 * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1413 2016-04-20 Jan Hubicka <jh@suse.cz>
1415 * ipa-inline.c (can_inline_edge_p): Pass caller info to
1416 ultiimate_alias_target.
1417 (update_callee_keys): Likewise.
1418 (lookup_recursive_calls): Likewise.
1419 (speculation_useful_p): Likewise.
1421 2016-04-20 Jan Hubicka <jh@suse.cz>
1424 * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1425 (set_nothrow_flag_1): ... this; handle interposition correctly;
1426 recurse on aliases and thunks.
1427 (cgraph_node::set_nothrow_flag): New.
1428 * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1429 functions compiled with non-call exceptions that binds to current
1431 (propagate_nothrow): Be safe WRT interposition.
1432 * cgraph.h (set_nothrow_flag): Update prototype.
1434 2016-04-18 Jan Hubicka <jh@suse.cz>
1436 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1437 max_loop_iterations_int.
1438 (tree_unswitch_outer_loop): Likewise.
1440 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1442 PR tree-optimization/69489
1443 * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1444 (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1445 Revise dump message.
1446 (if_convertible_bb_p): Remove check on edge count of basic block's
1449 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1451 PR tree-optimization/56625
1452 PR tree-optimization/69489
1453 * tree-data-ref.h (DR_INNERMOST): New macro.
1454 * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1455 hashing struct innermost_loop_behavior.
1456 (ref_DR_map): Remove.
1457 (innermost_DR_map): New map.
1458 (baseref_DR_map): Revise comment.
1459 (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1460 to innermost_DR_map accroding to its innermost loop behavior.
1461 (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1462 to its innermost loop behavior.
1463 (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1464 Add initialization for innermost_DR_map. Record memory reference
1465 in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1466 have innermost loop behavior.
1467 (if_convertible_loop_p): Remove release for ref_DR_map. Release
1470 2016-04-20 Uros Bizjak <ubizjak@gmail.com>
1472 * config/i386/i386.md (*lea<mode>_general_1): Rename from
1473 *lea_general_1. Use explicit SWI12 mode interator.
1474 (*lea<mode>_general_2): Rename from *lea_general_2.
1475 Use explicit SWI12 mode interator.
1476 (*lea<mode>_general_3): Rename from *lea_general_3.
1477 Use explicit SWI12 mode interator.
1478 (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1479 Use explicit SWI12 mode interator.
1480 (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1481 Use explicit SWI48 mode interator.
1483 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1485 * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1486 Short-cut unaligned load and store cases. Handle all integer
1488 (ix86_expand_vector_move_misalign): Short-cut unaligned load
1489 and store cases. Call ix86_avx256_split_vector_move_misalign
1490 directly without checking mode class.
1492 2016-04-20 Andrew Pinski <apinski@cavium.com>
1493 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
1496 * config/aarch64/aarch64.md (sibcall): Force call
1497 address to be DImode for ILP32.
1498 (sibcall_value): Likewise.
1500 2016-04-20 H.J. Lu <hongjiu.lu@intel.com>
1502 * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1504 2016-04-20 Richard Biener <rguenther@suse.de>
1506 * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1507 * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1508 by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1509 (maybe_push_res_to_seq): Adjust.
1510 * gimple-fold.c (maybe_build_generic_op): Likewise.
1512 2016-04-20 Marek Polacek <polacek@redhat.com>
1514 * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1517 2016-04-20 Ilya Enkovich <ilya.enkovich@intel.com>
1519 * config/i386/sse.md (vec_unpacks_lo_hi): Always
1520 use kmovw to support AVX512F target.
1522 2016-04-20 Bin Cheng <bin.cheng@arm.com>
1524 * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1526 2016-04-20 Marek Polacek <polacek@redhat.com>
1528 PR tree-optimization/70725
1529 * tree-if-conv.c (is_false_predicate): New function.
1530 (predicate_mem_writes): Use it.
1532 2016-04-20 Richard Biener <rguenther@suse.de>
1534 PR tree-optimization/70726
1535 * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1536 shift amounts from a pattern stmt operand.
1538 2016-04-20 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
1541 * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1542 stack_restore_from_fpr pattern when restoring r15.
1543 (s390_optimize_prologue): Strip away the memory barrier in the
1544 parallel when trying to get rid of restore insns.
1545 * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1546 definition for loading the stack pointer from an FPR. Compared to
1547 the normal move insn this pattern includes a full memory barrier.
1549 2016-04-19 Jakub Jelinek <jakub@redhat.com>
1552 * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1553 implicitly linear or lastprivate iterator on the outer context.
1555 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1557 * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1559 * config/i386/i386.md (ssememalign): Removed.
1560 * config/i386/sse.md: Remove ssememalign attribute from patterns.
1562 2016-04-19 H.J. Lu <hongjiu.lu@intel.com>
1565 * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1566 const short * to __builtin_ia32_loaddquhi512_mask.
1567 (_mm512_maskz_loadu_epi16): Likewise.
1568 (_mm512_mask_storeu_epi16): Pass short * to
1569 __builtin_ia32_storedquhi512_mask.
1570 (_mm512_mask_loadu_epi8): Pass const char * to
1571 __builtin_ia32_loaddquqi512_mask.
1572 (_mm512_maskz_loadu_epi8): Likewise.
1573 (_mm512_mask_storeu_epi8): Pass char * to
1574 __builtin_ia32_storedquqi512_mask.
1575 * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1576 const double * to __builtin_ia32_loadupd512_mask.
1577 (_mm512_mask_loadu_pd): Likewise.
1578 (_mm512_maskz_loadu_pd): Likewise.
1579 (_mm512_storeu_pd): Pass double * to
1580 __builtin_ia32_storeupd512_mask.
1581 (_mm512_mask_storeu_pd): Likewise.
1582 (_mm512_loadu_ps): Pass const float * to
1583 __builtin_ia32_loadups512_mask.
1584 (_mm512_mask_loadu_ps): Likewise.
1585 (_mm512_maskz_loadu_ps): Likewise.
1586 (_mm512_storeu_ps): Pass float * to
1587 __builtin_ia32_storeups512_mask.
1588 (_mm512_mask_storeu_ps): Likewise.
1589 (_mm512_mask_loadu_epi64): Pass const long long * to
1590 __builtin_ia32_loaddqudi512_mask.
1591 (_mm512_maskz_loadu_epi64): Likewise.
1592 (_mm512_mask_storeu_epi64): Pass long long *
1593 to __builtin_ia32_storedqudi512_mask.
1594 (_mm512_loadu_si512): Pass const int * to
1595 __builtin_ia32_loaddqusi512_mask.
1596 (_mm512_mask_loadu_epi32): Likewise.
1597 (_mm512_maskz_loadu_epi32): Likewise.
1598 (_mm512_storeu_si512): Pass int * to
1599 __builtin_ia32_storedqusi512_mask.
1600 (_mm512_mask_storeu_epi32): Likewise.
1601 * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1602 char * to __builtin_ia32_storedquqi256_mask.
1603 (_mm_mask_storeu_epi8): Likewise.
1604 (_mm256_mask_loadu_epi16): Pass const short * to
1605 __builtin_ia32_loaddquhi256_mask.
1606 (_mm256_maskz_loadu_epi16): Likewise.
1607 (_mm_mask_loadu_epi16): Pass const short * to
1608 __builtin_ia32_loaddquhi128_mask.
1609 (_mm_maskz_loadu_epi16): Likewise.
1610 (_mm256_mask_loadu_epi8): Pass const char * to
1611 __builtin_ia32_loaddquqi256_mask.
1612 (_mm256_maskz_loadu_epi8): Likewise.
1613 (_mm_mask_loadu_epi8): Pass const char * to
1614 __builtin_ia32_loaddquqi128_mask.
1615 (_mm_maskz_loadu_epi8): Likewise.
1616 (_mm256_mask_storeu_epi16): Pass short * to.
1617 __builtin_ia32_storedquhi256_mask.
1618 (_mm_mask_storeu_epi16): Pass short * to.
1619 __builtin_ia32_storedquhi128_mask.
1620 * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1621 const double * to __builtin_ia32_loadupd256_mask.
1622 (_mm256_maskz_loadu_pd): Likewise.
1623 (_mm_mask_loadu_pd): Pass onst double * to
1624 __builtin_ia32_loadupd128_mask.
1625 (_mm_maskz_loadu_pd): Likewise.
1626 (_mm256_mask_storeu_pd): Pass double * to
1627 __builtin_ia32_storeupd256_mask.
1628 (_mm_mask_storeu_pd): Pass double * to
1629 __builtin_ia32_storeupd128_mask.
1630 (_mm256_mask_loadu_ps): Pass const float * to
1631 __builtin_ia32_loadups256_mask.
1632 (_mm256_maskz_loadu_ps): Likewise.
1633 (_mm_mask_loadu_ps): Pass const float * to
1634 __builtin_ia32_loadups128_mask.
1635 (_mm_maskz_loadu_ps): Likewise.
1636 (_mm256_mask_storeu_ps): Pass float * to
1637 __builtin_ia32_storeups256_mask.
1638 (_mm_mask_storeu_ps): ass float * to
1639 __builtin_ia32_storeups128_mask.
1640 (_mm256_mask_loadu_epi64): Pass const long long * to
1641 __builtin_ia32_loaddqudi256_mask.
1642 (_mm256_maskz_loadu_epi64): Likewise.
1643 (_mm_mask_loadu_epi64): Pass const long long * to
1644 __builtin_ia32_loaddqudi128_mask.
1645 (_mm_maskz_loadu_epi64): Likewise.
1646 (_mm256_mask_storeu_epi64): Pass long long * to
1647 __builtin_ia32_storedqudi256_mask.
1648 (_mm_mask_storeu_epi64): Pass long long * to
1649 __builtin_ia32_storedqudi128_mask.
1650 (_mm256_mask_loadu_epi32): Pass const int * to
1651 __builtin_ia32_loaddqusi256_mask.
1652 (_mm256_maskz_loadu_epi32): Likewise.
1653 (_mm_mask_loadu_epi32): Pass const int * to
1654 __builtin_ia32_loaddqusi128_mask.
1655 (_mm_maskz_loadu_epi32): Likewise.
1656 (_mm256_mask_storeu_epi32): Pass int * to
1657 __builtin_ia32_storedqusi256_mask.
1658 (_mm_mask_storeu_epi32): Pass int * to
1659 __builtin_ia32_storedqusi128_mask.
1660 * config/i386/i386-builtin-types.def (PCSHORT): New.
1662 (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1663 (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1664 (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1665 (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1666 (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1667 (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1668 (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1669 (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1670 (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1671 (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1672 (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1673 (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1674 (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1675 (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1676 (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1677 (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1678 (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1679 (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1680 (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1681 (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1682 (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1683 (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1684 (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1685 (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1686 (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1687 (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1688 (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1689 (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1690 (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1691 (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1692 (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1693 (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1694 (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1695 (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1696 (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1697 (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1698 (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1699 (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1700 (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1701 (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1702 (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1703 (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1704 (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1705 (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1706 (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1707 (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1708 (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1709 (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1710 * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1712 (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1713 (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1715 (ix86_expand_vector_move_misalign): Likewise.
1716 (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1717 to scalar function prototype for unaligned load/store builtins.
1718 (ix86_expand_special_args_builtin): Updated.
1719 * config/i386/sse.md (UNSPEC_LOADU): Removed.
1720 (UNSPEC_STOREU): Likewise.
1721 (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1722 (VI_ULOADSTORE_F_AVX512VL): Likewise.
1723 (ssescalarsize): Handle V4TI, V2TI and V1TI.
1724 (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1725 (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1726 (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1727 (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1728 (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1729 (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1730 (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1731 (<avx512>_storedqu<mode>_mask): Likewise.
1732 (*sse4_2_pcmpestr_unaligned): Likewise.
1733 (*sse4_2_pcmpistr_unaligned): Likewise.
1734 (*mov<mode>_internal): Renamed to ...
1735 (mov<mode>_internal): This. Remove check of AVX and IAMCU on
1736 misaligned operand. Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1737 (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1738 (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1740 2016-04-19 Richard Biener <rguenther@suse.de>
1742 PR tree-optimization/70171
1743 * tree-ssa-phiprop.c: Include stor-layout.h.
1744 (phiprop_insert_phi): Handle the aggregate copy case.
1745 (propagate_with_phi): Likewise.
1747 2016-04-19 Uros Bizjak <ubizjak@gmail.com>
1749 * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1750 instead of simplify_gen_subreg (... , 0).
1751 (ix86_delegitimize_address): Ditto.
1752 (ix86_split_divmod): Ditto.
1753 (ix86_split_copysign_const): Ditto.
1754 (ix86_split_copysign_var): Ditto.
1755 (ix86_expand_args_builtin): Ditto.
1756 (ix86_expand_round_builtin): Ditto.
1757 (ix86_expand_special_args_builtin): Ditto.
1758 * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1759 (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1760 (udivmodqi4): Ditto.
1761 (absneg splitters): Ditto.
1762 (*jcc_bt<mode>_1): Ditto.
1764 2016-04-19 Richard Biener <rguenther@suse.de>
1766 PR tree-optimization/70724
1767 * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1768 restoring out from ...
1769 (free_scc_vn): ... here.
1770 * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1771 * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1773 (pass_fre::execute): Restore SSA info.
1775 2016-04-19 Richard Biener <rguenther@suse.de>
1777 * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1778 * gimple-walk.c (walk_gimple_op): Initialize it.
1779 (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1780 * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1781 remapping SSA names of defs.
1782 (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1785 2016-04-18 Vladimir Makarov <vmakarov@redhat.com>
1788 * lra-constraints.c (equiv_substition_p): New.
1789 (process_alt_operands): Use it.
1790 (swap_operands): Swap it.
1791 (curr_insn_transform): Update it.
1793 2016-04-18 Michael Matz <matz@suse.de>
1795 * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1796 (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1797 * tree-core.h (tree_type_common.align): Use bit-field.
1798 (tree_type_common.spare): New.
1799 (tree_decl_common.off_align): Make smaller.
1800 (tree_decl_common.align): Use bit-field.
1802 * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1803 * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1804 (scan_sharing_clauses): Ditto.
1805 (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1806 (omp_finish_file): Ditto.
1807 * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1808 (layout_decl): Ditto.
1809 (relayout_decl): Ditto.
1810 (finalize_record_size): Use SET_TYPE_ALIGN.
1811 (finalize_type_size): Ditto.
1812 (finish_builtin_struct): Ditto.
1813 (layout_type): Ditto.
1814 (initialize_sizetypes): Ditto.
1815 * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1816 * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1817 (lookup_field_for_decl): Use SET_DECL_ALIGN.
1818 (get_chain_field): Ditto.
1819 (get_trampoline_type): Ditto.
1820 (get_nl_goto_field): Ditto.
1821 * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1823 (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1824 * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1825 * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1826 (build_qualified_type): Use SET_TYPE_ALIGN.
1827 (build_aligned_type, build_range_type_1): Ditto.
1828 (build_atomic_base): Ditto.
1829 (build_common_tree_nodes): Ditto.
1830 * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1831 (expand_one_stack_var_at): Ditto.
1832 * coverage.c (build_var): Use SET_DECL_ALIGN.
1833 * except.c (init_eh): Ditto.
1834 * function.c (assign_parm_setup_block): Ditto.
1835 * symtab.c (increase_alignment_1): Ditto.
1836 * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1837 * tree-vect-stmts.c (ensure_base_align): Ditto.
1838 * varasm.c (align_variable): Ditto.
1839 (assemble_variable): Ditto.
1840 (build_constant_desc): Ditto.
1841 (output_constant_def_contents): Ditto.
1843 * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1844 * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1845 * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1846 * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1847 * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1849 2016-04-18 H.J. Lu <hongjiu.lu@intel.com>
1852 * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1853 replace %vmovsd with "%vmovq".
1854 (vec_concatv2df): Likewise.
1856 2016-04-18 Uros Bizjak <ubizjak@gmail.com>
1858 * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1859 (*vec_extractv2si_0): Ditto.
1860 * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1861 (zero_extended_scalar_load_operand splitters): Ditto.
1862 (vec_extract splitters): Ditto.
1863 (*vec_extractv4si_0_zext): Ditto.
1864 (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1866 (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1867 (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1868 (*sse4_1_extractps): Use lowpart_subreg.
1870 2016-04-18 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1872 * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1874 (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1875 Mention Solaris 11 packaging changes.
1876 Update gas and gld requirements.
1877 Remove reference to pre-Solaris 10 bug.
1878 (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1880 (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1883 2016-04-17 Jan Hubicka <jh@suse.cz>
1885 * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1886 max_loop_iterations_int.
1888 2016-04-18 Richard Biener <rguenther@suse.de>
1890 PR tree-optimization/43434
1891 * tree-ssa-structalias.c (struct vls_data): New.
1892 (visit_loadstore): Handle all pointer-based accesses.
1893 (compute_dependence_clique): Compute a bitmap of restrict tags
1894 assigned bases and pass it to visit_loadstore.
1896 2016-04-18 Matthew Wahab <matthew.wahab@arm.com>
1899 * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1900 armv8.1-a and armv8.1-a+crc.
1902 2016-04-18 Richard Biener <rguenther@suse.de>
1904 PR tree-optimization/70701
1905 * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1906 references after translating through a memcpy.
1908 2016-04-18 Richard Biener <rguenther@suse.de>
1910 * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1911 (compute_antic): ... here. For partial antic use regular
1912 postorder and scrap iteration.
1913 (compute_partial_antic_aux): Remove unused return value.
1914 (init_pre): Do not allocate postorder.
1915 (fini_pre): Do not free postorder.
1917 2016-04-18 Richard Biener <rguenther@suse.de>
1920 * expmed.c (extract_bit_field_1): Remove broken case
1921 using a wider MODE_INT mode.
1923 2016-04-18 Segher Boessenkool <segher@kernel.crashing.org>
1925 * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1926 unless compiling with at least GCC-4.8.
1928 2016-04-17 Jan Hubicka <jh@suse.cz>
1931 * graphite.c (graphite_finalize): Update call to
1932 tree_estimate_probability.
1933 * predict.h (tree_estimate_probability): Update prototype.
1935 2016-04-17 Jan Hubicka <jh@suse.cz>
1937 * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1938 (tree_estimate_probability): Likewise.
1939 (pass_profile::execute): Update.
1940 (report_predictor_hitrates): New function.
1941 * profile.c (compute_branch_probabilities): Use it.
1942 * predict.h (report_predictor_hitrates): Declare.
1944 2016-04-17 Jan Hubicka <jh@suse.cz>
1947 * cgraph.h (cgraph_node::set_const_flag,
1948 cgraph_node::set_pure_flag): Update prototype to return bool;
1950 * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1951 of interposable symbol are interposable, too.
1952 (cgraph_set_const_flag_1): Rename to ...
1953 (set_const_flag_1): ... this one; change to self recursive function
1954 instead of call_for_symbol_thunks_and_aliases. Handle correctly
1955 clearnig the flag in all variants and also virtual thunks of const
1956 functions are pure; track if any change was done.
1957 (cgraph_node::set_const_flag): Update.
1958 (struct set_pure_flag_info): New struct.
1959 (cgraph_set_pure_flag_1): Rename to ...
1960 (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1961 rather than pointer encoded flags; track if any changes was done;
1962 handle correctly clearning flag and setting flag of aliases already
1964 (cgraph_node::set_pure_flag): Update.
1965 (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1967 2016-04-17 Tom de Vries <tom@codesourcery.com>
1970 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1973 2016-04-17 Tom de Vries <tom@codesourcery.com>
1975 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1976 '{}<> ' as escape-for-record.
1978 2016-04-17 Tom de Vries <tom@codesourcery.com>
1980 * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1983 2016-04-17 Tom de Vries <tom@codesourcery.com>
1986 * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1987 * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1988 * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1989 * passes.c (finish_optimization_passes): Only call
1990 finish_graph_dump_file if dfi->graph_dump_initialized.
1991 (execute_function_dump, pass_init_dump_file): Use
1992 dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1994 2016-04-17 Tom de Vries <tom@codesourcery.com>
1996 PR tree-optimization/70256
1997 * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1998 (debug_varmap): New function.
2000 2016-04-17 Tom de Vries <tom@codesourcery.com>
2003 * passes.c (pass_manager::register_pass): Propagate pflags.
2005 2016-04-17 Tom de Vries <tom@codesourcery.com>
2008 * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2009 * passes.c (pass_manager::pass_manager): Declare and init p_start in
2010 INSERT_PASSES_AFTER. Add pass parameter to TERMINATE_PASS_LIST, and
2011 check if it's equal to p_start.
2012 * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2014 2016-04-15 Jan Hubicka <jh@suse.cz>
2017 * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2018 function does not bind to current def.
2019 * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2020 handle conservatively calls to functions that does not need to bind
2022 (check_call): Update call of worse_state.
2023 (ignore_edge_for_nothrow): Update.
2024 (ignore_edge_for_pure_const): Likewise.
2025 (propagate_pure_const): Update calls to worse_state.
2026 (skip_function_for_local_pure_const): Reformat comments.
2028 2016-04-15 Jan Hubicka <jh@suse.cz>
2031 * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2032 (cgraph_node::function_symbol): Likewise.
2033 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2034 * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2035 (symtab_node::ultimate_alias_target): Add REF parameter.
2036 (symtab_node::binds_to_current_def_p): Declare.
2037 (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2038 (cgraph_node::function_symbol): Likewise.
2039 (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2040 (cgraph_node::get_availability): Likewise.
2041 (cgraph_edge::binds_to_current_def_p): New inline function.
2042 (varpool_node::get_availability): Add REF parameter.
2043 (varpool_node::ultimate_alias_target): Likewise.
2044 * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2045 (symtab_node::binds_to_current_def_p): Likewise.
2046 * varpool.c (varpool_node::get_availability): Likewise.
2048 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2051 * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2052 Fix mode size check.
2054 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2056 * BASE-VER: Set to 7.0.0.
2058 2016-04-15 Alexander Monakov <amonakov@ispras.ru>
2060 * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2062 2016-04-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2064 * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2065 architecture revisions.
2067 2016-04-15 Bernd Schmidt <bschmidt@redhat.com>
2069 * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2070 * config/i386/i386.c (ix86_using_red_zone): No longer static.
2071 * config/i386/i386.md (stack decrement to push peepholes): Guard
2072 with !x86_using_red_zone ().
2074 2016-04-15 Jakub Jelinek <jakub@redhat.com>
2077 * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2078 to dump_generic_node.
2079 (NIY): Pass also flags to do_niy.
2081 2016-04-15 Thomas Schwinge <thomas@codesourcery.com>
2083 * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2084 (simd_clone_vector_of_formal_parm_types)
2085 (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2086 (simd_clone_mangle, simd_clone_create)
2087 (simd_clone_adjust_return_type, create_tmp_simd_array)
2088 (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2089 (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2090 (ipa_simd_modify_function_body, simd_clone_linear_addend)
2091 (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2092 (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2093 (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2094 * omp-simd-clone.c: ... this new file.
2095 (simd_clone_vector_of_formal_parm_types): Make it static.
2096 * Makefile.in (OBJS): Add omp-simd-clone.o.
2098 2016-04-15 Kirill Yukhin <kirill.yukhin@intel.com>
2101 * config/i386/sse.md: Use proper memory operand modifiers.
2104 2016-04-15 Richard Biener <rguenther@suse.de>
2105 Alan Modra <amodra@gmail.com>
2107 PR tree-optimization/70130
2108 * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2109 when alignment stays not the same and no not use the realign
2112 2016-04-14 Michael Meissner <meissner@linux.vnet.ibm.com>
2115 * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2116 direct move handlers for KFmode. Change TFmode handlers test from
2117 FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2119 2016-04-14 Jakub Jelinek <jakub@redhat.com>
2122 * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2123 * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2124 (inlined_polymorphic_ctor_dtor_block_p): Use it.
2125 * tree-ssa-live.c (remove_unused_scope_block_p): When
2126 in_ctor_dtor_block, avoid discarding not just BLOCKs with
2127 BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2128 block_ultimate_origin is FUNCTION_DECL.
2129 (remove_unused_locals): If current_function_decl is
2130 polymorphic_ctor_dtor_p, pass initial true to
2131 remove_unused_scope_block_p' is_ctor_dtor_block.
2133 2016-04-14 Martin Sebor <msebor@redhat.com>
2138 * doc/extend.texi (Variable Length): Revert.
2140 2016-04-14 Marek Polacek <polacek@redhat.com>
2141 Jan Hubicka <hubicka@ucw.cz>
2144 * tree.c (verify_type): Disable the canonical type of main variant
2147 2016-04-14 Jason Merrill <jason@redhat.com>
2149 * cfgexpand.c, expr.c: Revert previous change.
2151 2016-04-14 Cesar Philippidis <cesar@codesourcery.com>
2154 * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2155 when building a mem ref for the incoming reduction variable.
2157 2016-04-14 Richard Biener <rguenther@suse.de>
2159 PR tree-optimization/70614
2160 * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2161 loop if the evolution dropped to chrec_dont_know.
2162 (interpret_condition_phi): Likewise.
2164 2016-04-14 Richard Biener <rguenther@suse.de>
2166 PR tree-optimization/70623
2167 * tree-ssa-pre.c (changed_blocks): Make global ...
2168 (compute_antic): ... local here. Move and fix worklist
2169 handling here. Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2170 (compute_antic_aux): Add dumping for MAX assumed succs. Remove
2171 worklist handling, dump when ANTIC_IN changed.
2172 (compute_partial_antic_aux): Remove worklist handling.
2173 (init_pre): Do not compute post dominators. Add a comment about
2174 the CFG order chosen.
2175 (fini_pre): Do not free post dominators.
2177 2016-04-13 Martin Sebor <msebor@redhat.com>
2182 * doc/extend.texi (Variable Length): Document C++ specifics.
2184 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2187 * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2188 on all recursive call stmts. Return TODO_cleanup_cfg if any dead
2189 eh edges have been purged.
2192 * tree-sra.c (create_access_replacement,
2193 get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2195 * tree-pretty-print.c (dump_fancy_name): New function.
2196 (dump_decl_name, dump_generic_node): Use it.
2198 2016-04-13 Jason Merrill <jason@redhat.com>
2200 * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2201 * expr.c (expand_expr_real_1): Likewise.
2203 2016-04-13 Ilya Enkovich <ilya.enkovich@intel.com>
2205 * config/i386/i386.md (kunpckhi): Swap operands.
2206 (kunpcksi): Likewise.
2207 (kunpckdi): Likewise.
2208 * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2209 (vec_pack_trunc_<mode>): Likewise.
2211 2016-04-13 Jakub Jelinek <jakub@redhat.com>
2214 * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2217 * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2218 gimplification turns some element into non-constant.
2221 * rtl.h (convert_memory_address_addr_space_1): New prototype.
2222 * explow.c (convert_memory_address_addr_space_1): No longer static,
2223 add NO_EMIT argument and don't call convert_modes if true, pass
2224 it down recursively, remove break after return.
2225 (convert_memory_address_addr_space): Adjust caller.
2226 * simplify-rtx.c (simplify_unary_operation_1): Call
2227 convert_memory_address_addr_space_1 instead of convert_memory_address,
2228 if it returns NULL, don't simplify.
2230 2016-04-12 Eric Botcazou <ebotcazou@adacore.com>
2233 * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2235 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2237 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2238 Bump the upper SIMDLEN limits, so that if the return type or
2239 characteristic type if the return type is void can be passed in
2240 all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2243 2016-04-12 Michael Meissner <meissner@linux.vnet.ibm.com>
2246 * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2247 Do not use "=" constraint on an input constraint.
2248 (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2249 (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2250 (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2251 generates (neg (abs ...)) instead of (abs ...).
2253 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2255 PR rtl-optimization/70596
2256 * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2257 just invalidate LRA data and reset them. Adjust dump wording.
2259 2016-04-12 Martin Liska <mliska@suse.cz>
2262 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2264 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2266 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2267 max_loop_iterations_int.
2268 (tree_unswitch_outer_loop): Likewise.
2269 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2270 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2272 2016-04-12 Tom de Vries <tom@codesourcery.com>
2274 PR tree-optimization/68756
2275 * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2276 instead of new_name.
2278 2016-04-12 Jakub Jelinek <jakub@redhat.com>
2280 PR tree-optimization/70602
2281 * tree-sra.c (generate_subtree_copies): Don't write anything into
2282 constant pool decls.
2284 * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2285 regardless whether there are depend clauses or not.
2287 2016-04-11 Michael Meissner <meissner@linux.vnet.ibm.com>
2290 * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2291 target attribute and pragma from changing the -mfloat128
2292 and -mfloat128-hardware options.
2294 * doc/extend.texi (Additional Floating Types): Document PowerPC
2295 __float128 restrictions.
2297 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2300 * config/aarch64/driver-aarch64.c
2301 (aarch64_get_extension_string_for_isa_flags): New.
2302 (arch_extension): Rename to...
2303 (aarch64_arch_extension): ...This.
2304 (ext_to_feat_string): Rename to...
2305 (aarch64_extensions): ...This.
2306 (aarch64_core_data): Keep track of architecture extension flags.
2307 (cpu_data): Rename to...
2308 (aarch64_cpu_data): ...This.
2309 (aarch64_arch_driver_info): Keep track of architecture extension
2311 (get_arch_name_from_id): Rename to...
2312 (get_arch_from_id): ...This, change return type.
2313 (host_detect_local_cpu): Update and reformat for renames, handle
2314 extensions through common infrastructure.
2316 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2319 * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2320 track of a canonical flag name.
2321 (all_extensions): Likewise.
2322 (arch_to_arch_name): Also track extension flags enabled by the arch.
2323 (all_architectures): Likewise.
2324 (aarch64_parse_extension): Move to here.
2325 (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2327 (aarch64_rewrite_selected_cpu): Update for above change.
2328 * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2329 are handled, such that the single explicit value enabled by an
2330 extension is kept seperate from the implicit values it also enables.
2331 * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2333 (aarch64_parse_extension): New.
2334 * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2335 here to config/aarch64/aarch64-protos.h.
2336 (aarch64_parse_extension): Move from here to
2337 common/config/aarch64/aarch64-common.c.
2338 (aarch64_option_print): Update.
2339 (aarch64_declare_function_name): Likewise.
2340 (aarch64_start_file): Likewise.
2341 * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2342 the canonical flag for extensions.
2343 * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2346 2016-04-11 James Greenhalgh <james.greenhalgh@arm.com>
2348 * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2351 2016-04-09 Tom de Vries <tom@codesourcery.com>
2353 PR tree-optimization/68953
2354 * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2355 first to last subscript.
2357 2016-04-09 Jakub Jelinek <jakub@redhat.com>
2359 PR tree-optimization/70586
2360 * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2363 2016-04-08 Cesar Philippidis <cesar@codesourcery.com>
2367 PR tree-optimization/70373
2371 * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2372 clauses for acc parallel reductions as necessary. Error on those
2374 * omp-low.c (scan_sharing_clauses): Don't install variables which
2375 are used in acc parallel reductions.
2376 (lower_rec_input_clauses): Remove dead code.
2377 (lower_oacc_reductions): Add support for reference reductions.
2378 (lower_reduction_clauses): Remove dead code.
2379 (lower_omp_target): Don't remap variables appearing in acc parallel
2381 * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2383 2016-04-08 Jakub Jelinek <jakub@redhat.com>
2386 * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2387 with multiple SSA_NAME defs, force the outputs other than first
2388 to be live before calling live_track_process_def on each output.
2390 PR rtl-optimization/70574
2391 * fwprop.c (forward_propagate_and_simplify): Don't add
2392 REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2393 (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2394 paradoxical subregs within *loc.
2396 2016-04-08 Thomas Schwinge <thomas@codesourcery.com>
2398 * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2399 -ftree-parallelize-loops={0,1}.
2400 * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2401 * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2402 * config/ia64/hpux.h (LIB_SPEC): Likewise.
2403 * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2404 * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2406 2016-04-08 Maxim Ostapenko <m.ostapenko@samsung.com>
2409 * asan.c (instrument_derefs): If we get unknown location, extract it
2411 (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2413 2016-04-08 Tom de Vries <tom@codesourcery.com>
2415 * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2416 implicit firstprivate clause.
2418 2016-04-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
2421 * config/arm/thumb2.md (tst + branch-> lsls + branch
2422 peephole below *orsi_not_shiftsi_si): Require that condition
2423 register is dead after the peephole.
2424 (second peephole after the above): Likewise.
2426 2016-04-08 Alan Modra <amodra@gmail.com>
2429 * builtins.c (fold_builtin_classify): For IBM extended precision,
2430 look at just the high-order double to test for NaN.
2431 (fold_builtin_interclass_mathfn): Similarly for Inf. For isnormal
2432 test just the high double for Inf but both doubles for subnormal
2435 2016-04-07 Jakub Jelinek <jakub@redhat.com>
2437 * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2438 * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2439 node->simdclone->mask_mode != VOIDmode masks.
2440 (simd_clone_adjust_argument_types): Likewise. Move sc var definition
2441 earlier, use it instead of node->simdclone.
2442 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2443 Set clonei->mask_mode.
2445 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2448 * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2449 Pass it through to cp_parser_already_scoped_statement.
2450 (cp_parser_already_scoped_statement): New parameter IF_P. Pass
2451 it through to cp_parser_statement.
2452 (cp_parser_statement): Pass IF_P through to
2453 cp_parser_iteration_statement.
2454 (cp_parser_pragma): Adjust call to
2455 cp_parser_iteration_statement.
2457 2016-04-06 Patrick Palka <ppalka@gcc.gnu.org>
2460 * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2461 resolve a future -Wparentheses warning.
2462 * omp-low.c (scan_sharing_clauses): Likewise.
2463 * tree-parloops.c (eliminate_local_variables): Likewise.
2465 2016-04-06 Vladimir Makarov <vmakarov@redhat.com>
2467 PR rtl-optimization/70398
2468 * lra-constraints.c (process_address_1): Check zero scale and code
2469 for reloading with zero scale.
2471 2016-04-06 Uros Bizjak <ubizjak@gmail.com>
2473 * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2474 (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2476 2016-04-06 Jakub Jelinek <jakub@redhat.com>
2478 * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2479 Add support for AVX512F clones, include them by default for
2480 exported OpenMP declare simd functions. For AVX2 allow simdlen 32
2481 and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2485 * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2486 * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2487 firstprivate clauses.
2488 * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2489 OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2490 (lower_omp_target): Set TREE_NO_WARNING for
2491 non-addressable possibly uninitialized vars which are copied into
2492 addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2494 2016-04-05 John David Anglin <danglin@gcc.gnu.org>
2496 * config/pa/predicates.md (integer_store_memory_operand): Accept
2497 REG+D operands with a large offset when reload_in_progress is true.
2498 (floating_point_store_memory_operand): Likewise.
2500 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2503 * match.pd (nested int casts): Limit to GIMPLE.
2505 2016-04-05 Jan Hubicka <hubicka@ucw.cz>
2508 * ipa-devirt.c (maybe_record_node): Fix comment; use
2509 SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2511 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2513 PR rtl-optimization/70542
2514 * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2515 if there are any uses other than insn or debug insns.
2517 2016-04-05 Marc Glisse <marc.glisse@inria.fr>
2518 Jakub Jelinek <jakub@redhat.com>
2520 PR tree-optimization/70509
2521 * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2522 Shift HOST_WIDE_INT_1U instead of 1.
2524 2016-04-05 Zdenek Sojka <zsojka@seznam.cz>
2526 PR tree-optimization/70509
2527 * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2528 of the vector base type for index.
2530 2016-04-05 Uros Bizjak <ubizjak@gmail.com>
2533 * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2535 2016-04-05 Richard Biener <rguenther@suse.de>
2537 PR tree-optimization/70526
2538 * tree-sra.c (build_ref_for_offset): Use prev_base to
2539 extract the alias pointer type.
2541 2016-04-05 Richard Biener <rguenther@suse.de>
2543 * dse.c (struct store_info): Remove alias_set member.
2544 (struct read_info_type): Likewise.
2545 (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2546 spill_deleted, clear_alias_set_lookup): Remove.
2547 (get_group_info): Remove dead base == NULL_RTX case.
2548 (dse_step0): Remove initialization of removed variables.
2549 (delete_dead_store_insn): Reomve alias set dumping.
2550 (free_read_records): Remove alias_set handling.
2551 (canon_address): Remove alias_set_out parameter.
2552 (record_store): Remove spill_alias_set, it's always zero.
2553 (check_mem_read_rtx): Likewise.
2554 (dse_step2): Rename from ...
2555 (dse_step2_nospill): ... this. Adjust.
2556 (scan_stores): Rename from ...
2557 (scan_stores_nospill): ... this.
2558 (scan_reads): Rename from ...
2559 (scan_reads_nospill): ... this.
2560 (scan_stores_spill, scan_reads_spill): Remove.
2561 (dse_step3_scan): Remove for_spills argument which is always false.
2562 (dse_step3): Likewise.
2563 (dse_step5): Rename from ...
2564 (dse_step5_nospill): ... this. Remove alias_set handling.
2565 (rest_of_handle_dse): Adjust.
2567 2016-04-05 Jakub Jelinek <jakub@redhat.com>
2570 * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2571 Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2572 V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2573 (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2575 2016-04-05 Richard Biener <rguenther@suse.de>
2578 * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2579 non-register type temporaries into SSA.
2581 2016-04-04 Jan Hubicka <hubicka@ucw.cz>
2584 * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2585 calls when sanitizing.
2586 (possible_polymorphic_call_target_p): Fix formatting.
2588 2016-04-04 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
2589 Jakub Jelinek <jakub@redhat.com>
2592 * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2593 to ensure a call statement is compatible with a built-in's
2595 * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2598 2016-04-04 Richard Biener <rguenther@suse.de>
2600 PR rtl-optimization/70484
2601 * rtl.h (canon_output_dependence): Declare.
2602 * alias.c (canon_output_dependence): New function.
2603 * dse.c (record_store): Use canon_output_dependence rather
2604 than canon_true_dependence.
2606 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2609 * cgraph.h (symtab_node::copy_visibility_from): New function.
2610 * symtab.c (symtab_node::copy_visibility_from): New function.
2611 * ipa-visibility.c (optimize_weakref): New function.
2612 (function_and_variable_visibility): Use it.
2614 2016-04-04 Martin Liska <mliska@suse.cz>
2617 * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2618 value that is really in range handled by SBR instruction.
2619 * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2620 * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2621 * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2623 2016-04-03 Oleg Endo <olegendo@gcc.gnu.org>
2627 * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2628 set, but not for SP_REG operands.
2630 2016-04-02 Martin Sebor <msebor@redhat.com>
2633 * fold-const.c (maybe_nonzero_address): New function.
2634 (fold_comparison): Call it. Fold equality and relational
2635 expressions involving null pointers.
2636 (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2638 2016-03-31 Evandro Menezes <e.menezes@samsung.com>
2640 Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2641 the "Y" constraint (scalar FP 0.0 immediate).
2643 * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2644 Add the "const_double" to the list of operand constraints.
2646 2016-04-01 Jakub Jelinek <jakub@redhat.com>
2648 PR rtl-optimization/70467
2649 * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2650 If low word of the last operand is 0, just emit addition/subtraction
2653 2016-04-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
2656 * config/s390/s390.c (s390_expand_insv): Check for everything
2657 constant instead of just VOIDmode stuff.
2659 2016-04-01 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
2662 * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2664 2016-04-01 Nathan Sidwell <nathan@acm.org>
2666 * tree.def (TRY_CATCH_EXPR): Correct documentation.
2668 2016-03-31 Vladimir Makarov <vmakarov@redhat.com>
2670 PR rtl-optimization/70461
2671 * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2674 2016-03-31 Martin Liska <mliska@suse.cz>
2677 * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2678 a tree value or an immediate integer value to a buffer
2679 that is eventually copied to a BRIG section.
2680 (emit_immediate_operand): Call the function here.
2681 * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2682 * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2683 of class' fields that are removed.
2684 (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2685 * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2686 m_brig_repr_size fields.
2688 2016-03-31 Martin Liska <mliska@suse.cz>
2691 * hsa-gen.c (hsa_function_representation::update_dominance): New
2693 (convert_addr_to_flat_segment): Likewise.
2694 (gen_hsa_memory_set): New alignment argument.
2695 (gen_hsa_ctor_assignment): Likewise.
2696 (gen_hsa_insns_for_single_assignment): Provide alignment
2697 to gen_hsa_ctor_assignment.
2698 (gen_hsa_insns_for_direct_call): Add new argument.
2699 (expand_lhs_of_string_op): New function.
2700 (expand_string_operation_builtin): Likewise.
2701 (expand_memory_copy): New function.
2702 (expand_memory_set): New function.
2703 (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2704 (convert_switch_statements): Change signature.
2705 (generate_hsa): Use a return value of the function.
2706 (pass_gen_hsail::execute): Do not call
2707 convert_switch_statements here.
2708 * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2709 * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2710 (hsa_function_representation::update_dominance): New function.
2712 2016-03-31 Martin Liska <mliska@suse.cz>
2715 * hsa-brig.c (emit_directive_variable): Emit alignment
2716 according to hsa_symbol::m_align.
2717 * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2718 (dump_hsa_symbol): Dump alignment of HSA symbols.
2719 * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2720 (gen_hsa_addr_with_align): New function.
2721 (hsa_bitmemref_alignment): Use newly added function.
2722 (gen_hsa_insns_for_load): Likewise.
2723 (gen_hsa_insns_for_store): Likewise.
2724 (gen_hsa_memory_copy): New argument added.
2725 (gen_hsa_insns_for_single_assignment): Respect
2726 alignment for assignments processed via gen_hsa_memory_copy.
2727 (gen_hsa_insns_for_direct_call): Likewise.
2728 (gen_hsa_insns_for_return): Likewise.
2729 (gen_function_def_parameters): Set default alignment.
2730 * hsa.c (hsa_object_alignment): New function.
2731 (hsa_byte_alignment): Pasted function.
2732 * hsa.h (hsa_symbol::m_align): New field.
2734 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2736 * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2737 scratch field for goto case.
2739 2016-03-31 James Greenhalgh <james.greenhalgh@arm.com>
2741 * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2743 2016-03-31 Ilya Enkovich <enkovich.gnu@gmail.com>
2746 * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2747 (scalar_chain::convert_insn): Call convert_op for reg
2748 moves to handle undefined registers.
2750 2016-03-31 Nathan Sidwell <nathan@acm.org>
2753 * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2754 Assert we don't want to move backwards.
2756 2016-03-31 Kirill Yukhin <kirill.yukhin@intel.com>
2759 * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2761 2016-03-31 Jakub Jelinek <jakub@redhat.com>
2763 PR rtl-optimization/70460
2764 * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2765 with operand from REG_LABEL_OPERAND, instead substitute
2766 SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2767 Don't do anything for REG_NON_LOCAL_GOTO jumps.
2769 2016-03-31 Martin Liska <mliska@suse.cz>
2771 * passes.c (execute_one_pass): Do not call
2772 todo_after for a discarded function.
2774 2016-03-31 Bin Cheng <bin.cheng@arm.com>
2776 * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2777 (no_cost, infinite_cost): Initialize the new field.
2778 (get_computation_cost_at): Record setup cost.
2779 (determine_use_iv_cost_address): Skip cost computation for sub
2780 uses if we can estimate it without losing accuracy.
2782 2016-03-30 Jan Hubicka <hubicka@ucw.cz>
2784 * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2786 * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2787 max_loop_iterations_int.
2788 (tree_unswitch_outer_loop): Likewise.
2789 * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2790 * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2792 2016-03-30 Richard Biener <rguenther@suse.de>
2795 * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2797 2016-03-30 Jakub Jelinek <jakub@redhat.com>
2800 * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2801 in gen_blendm expander.
2803 2016-03-30 Nick Clifton <nickc@redhat.com>
2806 * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2807 case where we are already provided with an SImode SUBREG.
2809 2016-03-30 H.J. Lu <hongjiu.lu@intel.com>
2812 * config/i386/i386.c (ix86_expand_epilogue): Properly check
2813 conflict between DRAP register and __builtin_eh_return.
2815 2016-03-30 Michael Matz <matz@suse.de>
2816 Richard Biener <rguenther@suse.de>
2819 * ipa-polymorphic-call.c (struct type_change_info): Change
2820 speculative to an unsigned allowing to limit the work we do.
2821 (csftc_abort_walking_p): New inline function..
2822 (check_stmt_for_type_change): Limit the number of may-defs
2823 skipped for speculative devirtualization to
2824 max-speculative-devirt-maydefs.
2825 * params.def (max-speculative-devirt-maydefs): New param.
2826 * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2828 2016-03-30 Mike Stump <mrs@gcc.gnu.org>
2831 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2834 2016-03-30 Patrick Palka <ppalka@gcc.gnu.org>
2836 PR tree-optimization/59124
2837 * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2838 where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2840 2016-03-29 Jeff Law <law@redhat.com>
2842 * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2844 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2846 * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2849 2016-03-29 Thomas Schwinge <thomas@codesourcery.com>
2851 * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2852 * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2853 gcrt0.o if linking dynamically.
2855 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
2858 * ipa-devirt.c (methods_equal_p): New function.
2859 (compare_virtual_tables): Use it.
2860 * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2861 * cgraphclones.c (clone_function_name_1): Use
2862 symbol_table::symbol_suffix_separator.
2863 * coverage.c (build_var): Likewise.
2864 * symtab.c (symbol_table::symbol_suffix_separator): New.
2866 2016-03-29 Jakub Jelinek <jakub@redhat.com>
2868 PR rtl-optimization/70429
2869 * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2870 (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2871 mode != result_mode.
2874 * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2876 PR tree-optimization/70405
2877 * ssa-iterators.h (num_imm_uses): Add missing braces.
2879 2016-03-29 Vladimir Makarov <vmakarov@redhat.com>
2881 PR rtl-optimization/68695
2882 * ira-color.c (allocno_copy_cost_saving): New.
2883 (improve_allocation): Use it.
2885 2016-03-29 Richard Henderson <rth@redhat.com>
2888 * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2890 2016-03-29 Richard Biener <rguenther@suse.de>
2893 * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2894 use alignment returned by get_pointer_alignment_1 if it is
2895 bigger than BITS_PER_UNIT.
2896 * builtins.c (get_pointer_alignment_1): Do not return true
2897 for alignment extracted from SSA info.
2899 2016-03-28 James Bowman <james.bowman@ftdichip.com>
2901 * config/ft32/ft32.opt (mnodiv): New.
2902 * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2903 * doc/invoke.texi (FT32 Options -mnodiv): New.
2905 2016-03-28 Kirill Yukhin <kirill.yukhin@intel.com>
2908 * config/i386/i386.md (define_split, andn): Fix modes.
2910 2016-03-26 Richard Biener <rguenther@suse.de>
2911 Prathamesh Kulkarni <prathamesh.kulkarni@linaro.org>
2914 * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2916 TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2917 as 2nd argument to cl_optimization_restore().
2919 2016-03-25 Richard Henderson <rth@redhat.com>
2922 * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2923 * config/aarch64/aarch64-protos.h: Declare it.
2924 * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2926 2016-03-25 Alan Modra <amodra@gmail.com>
2929 * config/rs6000/constraints.md (j): Simplify.
2930 * config/rs6000/predicates.md (easy_fp_constant): Exclude
2932 * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2933 (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2934 mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2935 in all constraint alternatives.
2936 (movtd_64bit_nodm): Delete "j" constraint alternative.
2938 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2940 * tree-ssa-propagate.c: Enhance docs for
2941 SSA_PROP_NOT_INTERESTING.
2943 2016-03-24 Aldy Hernandez <aldyh@redhat.com>
2945 * doc/extend.texi: Fix typo in documentation to pure attribute.
2947 2016-03-24 John David Anglin <danglin@gcc.gnu.org>
2950 * config/pa/pa.md (bswapdi2): Use a scratch register.
2952 2016-03-24 Richard Henderson <rth@redhat.com>
2955 * fold-const.c (extract_muldiv_1): Correct test for multiplication
2958 2016-03-24 Uros Bizjak <ubizjak@gmail.com>
2960 * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2961 using ix86_expand_binary_operator instead of gen_andsi3.
2963 2016-03-24 Richard Biener <rguenther@suse.de>
2965 PR tree-optimization/70396
2966 * tree-vect-stmts.c (vectorizable_comparison): Use
2967 get_vectype_for_scalar_type.
2969 2016-03-24 Richard Biener <rguenther@suse.de>
2972 * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2973 with register bases.
2975 2016-03-24 Richard Biener <rguenther@suse.de>
2977 PR tree-optimization/70372
2978 * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2979 build_all_ones_cst to also handle vector types correctly.
2981 2016-03-23 Michael Meissner <meissner@linux.vnet.ibm.com>
2984 * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2987 2016-03-23 Marek Polacek <polacek@redhat.com>
2990 * doc/invoke.texi: Document -Wignored-attributes.
2992 2016-03-23 Bin Cheng <bin.cheng@arm.com>
2994 PR tree-optimization/69042
2995 * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2996 parameter from 30 to 40.
2998 2016-03-23 Bin Cheng <bin.cheng@arm.com>
3000 PR tree-optimization/69042
3001 * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3002 for use with constant offset stripped in base.
3004 2016-03-23 Richard Biener <rguenther@suse.de>
3007 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3008 mode compatibility check.
3009 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3011 2016-03-23 Jeff Law <law@redhat.com>
3013 PR tree-optimization/64058
3014 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3016 (struct ssa_conflicts): Move up earlier in the file.
3017 (conflicts_, var_map_): New static variables.
3018 (initialize_conflict_count): New function to initialize the
3019 CONFLICT_COUNT field for each conflict pair.
3020 (compare_pairs): Lazily initialize the conflict count and use it
3021 as the first tie-breaker.
3022 (sort_coalesce_list): Add new arguments conflicts, map. Initialize
3023 and wipe conflicts_ and map_ around the call to qsort. Remove
3024 special case for 2 coalesce pairs.
3025 * bitmap.c (bitmap_count_unique_bits): New function.
3026 (bitmap_count_bits_in_word): New function, extracted from
3028 (bitmap_count_bits): Use bitmap_count_bits_in_word.
3029 * bitmap.h (bitmap_count_unique_bits): Declare it.
3031 2016-03-23 Ilya Enkovich <enkovich.gnu@gmail.com>
3034 * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3035 transparent alias chain for decl assembler name.
3036 * config/sol2.c (solaris_assemble_visibility): Likewise.
3038 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3040 * config/arm/arm1020e.md (1020call_op): Reduce reservation
3042 (v10_fdivs): Likewise.
3043 (v10_fdivd): Likewise.
3045 2016-03-23 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3048 * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3049 to not call fclose twice on file.
3051 2016-03-23 Jakub Jelinek <jakub@redhat.com>
3053 PR tree-optimization/70354
3054 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3055 oprnd0 is wider than oprnd1 and there is a cast from the wider
3056 type to oprnd1, mask it with the mask of the narrower type.
3059 * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3060 Optimize TARGET_STV splitters, if high or low word of last argument
3063 2016-03-22 Jeff Law <law@redhat.com>
3066 tree-ssa-threadbackward.c
3067 (fsm_find_control_statement_thread_paths): Correctly distinguish
3068 between old style jump threads vs FSM jump threads.
3070 2016-03-22 Ilya Enkovich <enkovich.gnu@gmail.com>
3073 * config/i386/i386.c (scalar_chain::convert_op): Support
3074 uninitialized register usage case.
3076 2016-03-22 Richard Biener <rguenther@suse.de>
3079 * genmatch.c (gen_transform): Adjust last parameter to a three-state
3081 (capture::gen_transform): ... to change behavior when substituting
3082 a condition into cond or not-cond expr context.
3083 (dt_simplify::gen_1): Adjust.
3084 * gimple-match-head.c: Include gimplify.h for unshare_expr.
3085 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3086 last change and instead change to
3087 A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3088 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3090 2016-03-22 Anthony Green <green@moxielogic.com>
3092 * config/moxie/moxiebox.h (CC1_SPEC): Define. Fix endianness
3093 issue for moxiebox targets.
3094 (CC1PLUS_SPEC): Ditto.
3096 2016-03-22 Richard Biener <rguenther@suse.de>
3099 * fold-const.c (extract_muldiv_1): Properly perform multiplication
3102 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3104 * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3106 2016-03-22 Kirill Yukhin <kirill.yukhin@intel.com>
3109 * config/i386/i386.c (def_builtin): Handle
3110 OPTION_MASK_ISA_AVX512VL to be and-ed with other
3112 (const struct builtin_description bdesc_special_args[]):
3113 Remove duplicate ISA bits.
3115 2016-03-22 Jakub Jelinek <jakub@redhat.com>
3118 * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3119 d.perm[i] for i >= d.nelt. If not full_interleave, compute d.perm[i]
3120 in a way that works also for AVX512BW.
3123 * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3124 instead of source if operands[1] is xmm16 and above and
3125 !TARGET_AVX512VL. Use avx512f_vec_dupv16sf_1 instead of
3126 vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3129 * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3130 on assign if (*from_p) is a comparison, set it to
3131 TREE_NO_WARNING (*from_p).
3133 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3136 * lra.c (restore_scratches): Ignore deleted insns.
3138 2016-03-21 Marc Glisse <marc.glisse@inria.fr>
3139 Jakub Jelinek <jakub@redhat.com>
3141 PR tree-optimization/70317
3142 * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3145 2016-03-21 Uros Bizjak <ubizjak@gmail.com>
3148 * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3149 of ix86_expand_move.
3151 (movti): Use general_operand for operand 1 predicate.
3153 2016-03-21 Martin Liska <mliska@suse.cz>
3155 * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3157 (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3159 2016-03-21 Martin Liska <mliska@suse.cz>
3162 * ipa-icf.c (sem_function::parse): Skip static
3163 constructors and destructors.
3165 2016-03-21 Jakub Jelinek <jakub@redhat.com>
3168 * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3169 function-like macro, peek following token(s) if it is followed
3170 by CPP_OPEN_PAREN token with optional padding in between, and
3171 if not, don't treat it like a macro.
3173 2016-03-21 Thomas Schwinge <thomas@codesourcery.com>
3174 Alexander Monakov <amonakov@ispras.ru>
3176 * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3177 for the stabs debug format.
3179 2016-03-21 Richard Biener <rguenther@suse.de>
3181 PR tree-optimization/70310
3182 * tree-vect-generic.c (expand_vector_condition): Fold the built
3185 2016-03-21 Kirill Yukhin <kirill.yukhin@intel.com>
3188 * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3189 Block third alternative for AVX-512VL target,
3191 2016-03-21 Martin Liska <mliska@suse.cz>
3194 * hsa-brig.c (emit_function_directives): Mark unemitted
3195 global variables for emission.
3196 * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3197 (get_symbol_for_decl): Likewise.
3198 * hsa.h (struct hsa_symbol): New flag.
3200 2016-03-21 Richard Biener <rguenther@suse.de>
3202 PR tree-optimization/70288
3203 * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3204 we do not estimate unsimplified all-constant conditionals or
3205 switches as optimized away.
3207 2016-03-21 Andrey Belevantsev <abel@ispras.ru>
3209 PR rtl-optimization/69102
3210 * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3211 when we have a readonly dependency context.
3213 2016-03-18 Jeff Law <law@redhat.com>
3215 PR rtl-optimization/70263
3216 * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3217 (update_equiv_regs): When trying to move a store to after the insn
3218 that sets the source of the store, make sure the store occurs after
3219 the insn that sets the source of the store. When successful note
3220 the REG_EQUIV note created in the dump file.
3222 2016-03-16 David Wohlferd <dw@LimeGreenSocks.com>
3223 Bernd Schmidt <bschmidt@redhat.com>
3225 * doc/extend.texi: Document more potential problems with basic asms.
3227 2016-03-18 Bernd Schmidt <bschmidt@redhat.com>
3229 PR rtl-optimization/70278
3230 * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3233 2016-03-18 Jason Merrill <jason@redhat.com>
3235 * calls.c (load_register_parameters): Fix zero size sibcall logic.
3237 2016-03-18 Kirill Yukhin <kirill.yukhin@intel.com>
3239 * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3240 values to 128b regs.
3242 2016-03-18 Ilya Enkovich <enkovich.gnu@gmail.com>
3244 PR tree-optimization/70252
3245 * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3246 boolean vector has a proper number of elements.
3247 (supportable_narrowing_operation): Likewise.
3249 2016-03-18 Tom de Vries <tom@codesourcery.com>
3252 * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3254 2016-03-18 Jakub Jelinek <jakub@redhat.com>
3256 * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3257 instead of replace_rtx for DEBUG_INSNs.
3259 2016-03-18 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3261 * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3262 load type reservations.
3264 2016-03-17 John David Anglin <danglin@gcc.gnu.org>
3267 * config/pa/constraints.md: Revert 2015-02-13 change. Use
3268 define_constraint for "Q" and "T" constraints.
3270 2016-03-17 Evandro Menezes <e.menezes@samsung.com>
3272 Tweak the pipeline model for Exynos M1
3274 * config/aarch64/aarch64.c (exynosm1_tunings): Enable weak prefetching
3277 2016-03-17 David Malcolm <dmalcolm@redhat.com>
3280 * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3281 where one or both locations aren't within a line_map.
3283 2016-03-17 H.J. Lu <hongjiu.lu@intel.com>
3286 * opts.c (finish_options): Don't set flag_pie to the default if
3287 -fpic, -fPIC, -fno-pic or -fno-PIC is used. Set flag_pic to 0
3290 2016-03-17 Joern Rennecke <joern.rennecke@embecosm.com>
3292 * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3293 true as ALL_REGS argument to replace_rtx.
3295 2016-03-17 Richard Biener <rguenther@suse.de>
3298 * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3301 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3304 * rtl.h (replace_rtx): Add ALL_REGS argument.
3305 * rtlanal.c (replace_rtx): Likewise. If true, use REGNO
3306 equality and assert mode is the same, instead of just rtx pointer
3308 * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3309 true as ALL_REGS argument to replace_rtx.
3311 2016-03-17 Ilya Enkovich <enkovich.gnu@gmail.com>
3313 * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3314 for boolean vector with vector mode only.
3315 (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3317 2016-03-17 Nick Clifton <nickc@redhat.com>
3320 * config/rx/rx.c (rx_print_integer): Print negative constants in
3323 2016-03-17 Jakub Jelinek <jakub@redhat.com>
3326 * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3328 2016-03-16 Richard Henderson <rth@redhat.com>
3329 Richard Biener <rguenth@suse.de>
3334 * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3335 first operand as is_gimple_condexpr.
3340 2015-12-11 Eric Botcazou <ebotcazou@adacore.com>
3341 * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3342 Do not gimplify the result.
3343 (do_unop): Adjust call to tree_vec_extract.
3344 (do_binop): Likewise.
3345 (do_compare): Likewise.
3346 (do_plus_minus): Likewise.
3347 (do_negate): Likewise.
3348 (expand_vector_condition): Likewise.
3349 (do_cond): Likewise.
3351 2016-03-16 Richard Henderson <rth@redhat.com>
3354 * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3355 (aarch64_classify_address): Use it.
3356 (aarch64_legitimize_address): Force all subexpressions of PLUS
3357 into registers. Simplify as (sfp+const)+reg or (reg+reg)+const.
3359 2016-03-16 Jakub Jelinek <jakub@redhat.com>
3360 Richard Biener <rguenth@suse.de>
3363 * rtlanal.c (replace_rtx): For REG, if from is a REG,
3364 return to even if only REGNO is equal, and assert
3367 2016-03-11 Jeff Law <law@redhat.com>
3369 PR rtl-optimization/70224
3370 * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3372 2016-03-16 Richard Henderson <rth@redhat.com>
3375 * function.h (struct function): Add has_forced_label_in_static.
3376 * gimplify.c (force_labels_r): Set it.
3377 * lto-streamer-in.c (input_struct_function_base): Read it.
3378 * lto-streamer-out.c (output_struct_function_base): Write it.
3379 * tree-inline.c (has_label_address_in_static_1): Remove.
3380 (copy_forbidden): Remove fndecl parameter; test
3381 has_forced_label_in_static.
3382 (inline_forbidden_p): Update call to copy_forbidden.
3383 (tree_versionable_function_p): Likewise.
3384 * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3385 (chkp_versioning): Likewise.
3386 * tree-inline.h (copy_forbidden): Update decl.
3388 2016-03-16 Marek Polacek <polacek@redhat.com>
3391 * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3392 function being thunked if the result type doesn't have fixed size.
3393 * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3394 doesn't have fixed size.
3396 2016-03-16 Bin Cheng <bin.cheng@arm.com>
3398 * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3399 reporting malformed loop nest.
3401 2016-03-16 Tom de Vries <tom@codesourcery.com>
3404 * ipa-devirt.c (possible_polymorphic_call_targets): Move
3405 nodes.length () == 1 test to before first nodes[0] access.
3407 2016-03-16 Tom de Vries <tom@codesourcery.com>
3409 PR tree-optimization/68715
3410 * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3413 2016-03-16 Tom de Vries <tom@codesourcery.com>
3415 PR tree-optimization/68809
3416 * graphite-scop-detection.c (same_close_phi_node): Test if result types
3419 2016-03-16 Carlos O'Donell <carlos@redhat.com>
3420 Sandra Loosemore <sandra@codesourcery.com>
3422 * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3423 on leaf attribute. Mention ELF interposition problems.
3425 2016-03-16 Alan Modra <amodra@gmail.com>
3427 PR rtl-optimization/69195
3428 PR rtl-optimization/47992
3429 * ira.c (indirect_jump_optimize): Ignore artificial defs.
3432 2016-03-15 Eric Botcazou <ebotcazou@adacore.com>
3435 * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3437 2016-03-15 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
3439 * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3441 2016-03-15 Jakub Jelinek <jakub@redhat.com>
3443 PR rtl-optimization/70222
3444 * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3445 optimization if mode is different from result_mode, queue up masking
3446 of the result in outer_op. Formatting fix.
3449 * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3452 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3454 PR rtl-optimization/69032
3455 * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3456 looping backwards over basic block insns.
3458 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3461 * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3462 to non-speculative when propagating trap bits.
3464 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3466 PR rtl-optimization/63384
3467 * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3470 2016-03-15 Andrey Belevantsev <abel@ispras.ru>
3473 * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3474 factored out from ...
3475 (sched_analyze_insn): ... here.
3476 * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3477 * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3478 get_implicit_reg_pending_clobbers in it.
3479 (setup_id_reg_sets): Use setup_id_implicit_regs.
3480 (deps_init_id): Ditto.
3482 2016-03-15 Tom de Vries <tom@codesourcery.com>
3485 * cgraph.c (cgraph_node::get_body): Save, reset and restore
3487 * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3488 execute_function_dump.
3489 (execute_one_pass): Don't dump function if it will be dumped after ipa
3492 2016-03-15 Segher Boessenkool <segher@kernel.crashing.org>
3494 * genrecog.c (match_pattern_2): If pred is NULL don't call
3495 safe_predicate_mode on it.
3497 2016-03-14 Jakub Jelinek <jakub@redhat.com>
3500 * lra-constraints.c (delete_move_and_clobber): Change assertion
3501 to also allow dregno == 0.
3503 2016-03-14 Richard Henderson <rth@redhat.com>
3506 * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3507 (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3508 (reassociate_bb): Use optimize_vec_cond_expr; avoid
3509 optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3512 2016-03-14 Bernd Schmidt <bschmidt@redhat.com>
3515 * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3517 (lra_create_live_ranges_1): initialize hard register biggest_mode to
3519 * lra-constraints.c (split_reg): For hard regs, try to find the
3520 biggest single-register mode used in the function.
3522 2016-03-14 Richard Biener <rguenther@suse.de>
3524 PR tree-optimization/56365
3525 * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3526 constants to compare against.
3528 2016-03-14 Segher Boessenkool <segher@kernel.crashing.org>
3531 * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3532 *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3533 (define_split for the GPR case): Use int_reg_operand instead of
3534 gpc_reg_operand for the output.
3536 2016-03-14 Tom de Vries <tom@codesourcery.com>
3538 PR tree-optimization/70045
3539 * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3540 create_empty_if_region_on_edge argument.
3542 2016-03-13 Eric Botcazou <ebotcazou@adacore.com>
3544 * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3545 (STACK_CHECK_PROTECT): Likewise.
3546 * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3547 (STACK_CHECK_PROTECT): Likewise.
3548 * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3549 (STACK_CHECK_PROTECT): Likewise.
3550 * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3551 * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3552 (STACK_CHECK_PROTECT): Likewise.
3554 2016-03-12 Andrey Belevantsev <abel@ispras.ru>
3556 PR rtl-optimization/69307
3557 * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3558 registers in modes that span more than one register.
3560 2016-03-12 Vladimir Makarov <vmakarov@redhat.com>
3563 * lra-constraints.c (delete_move_and_clobber): New.
3564 (remove_inheritance_pseudos): Use it.
3566 2016-03-12 Eric Botcazou <ebotcazou@adacore.com>
3569 * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3570 the libcall is LCT_THROW.
3571 * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3572 for the checking routine.
3574 2016-03-11 Michael Meissner <meissner@linux.vnet.ibm.com>
3577 * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3578 optimization if we have direct move.
3579 (roundu32<mode>2_fprs): Likewise.
3581 2016-03-11 Bernd Schmidt <bschmidt@redhat.com>
3584 * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3586 (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3587 Arguments swapped. All callers changed. Take reg_renumber into
3588 account, and Calculate and compare register ranges for hard regs.
3590 2016-03-11 Jeff Law <law@redhat.com>
3592 PR tree-optimization/70190
3593 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3594 Handle cases where we can not extract the taken edge, even though we
3595 found a constant value.
3597 PR tree-optimization/64058
3598 * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3599 (num_coalesce_pairs): Move up earlier in file.
3600 (find_coalesce_pair): Initialize the INDEX field for each pair
3602 (compare_pairs): No longer sort on the elements in each pair.
3603 Instead break ties with the index of the coalesce pair.
3605 2016-03-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3608 * config/aarch64/aarch64-protos.h
3609 (aarch64_save_restore_target_globals): New prototype.
3610 * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3611 Call the above when popping pragma.
3612 * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3614 (aarch64_set_current_function): Rewrite using the above.
3616 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3618 PR tree-optimization/70177
3619 * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3620 (extract_ops_from_tree): ... this. In the 2 argument
3621 overload remove _1 suffix.
3622 * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3623 (extract_ops_from_tree): ... this.
3624 * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3626 * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3627 * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3628 extract_ops_from_tree instead of 2 operand one.
3630 2016-03-11 Alan Lawrence <alan.lawrence@arm.com>
3632 PR tree-optimization/70013
3633 * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3634 for constant-pool entries.
3636 2016-03-11 Jakub Jelinek <jakub@redhat.com>
3638 PR rtl-optimization/70174
3639 * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3640 followed by gen_lowpart on force_reg instead of just gen_lowpart.
3642 PR tree-optimization/70169
3643 * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3644 LABEL_DECL like VAR_DECL. Emit nothing instead of gcc_unreachable
3647 2016-03-11 Ilya Enkovich <enkovich.gnu@gmail.com>
3648 Jakub Jelinek <jakub@redhat.com>
3651 * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3652 of uninitialized values.
3654 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3656 * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3658 ("*trunctddd2"): New pattern definition.
3659 ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3662 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3664 * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3665 definitions for BFP and DFP rounding modes.
3666 ("fixuns_truncdddi2", "fixuns_trunctddi2")
3667 ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3668 ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3669 ("fix_trunctf<mode>2"): Use the new constants instead of magic
3672 2016-03-11 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
3674 * config/s390/constraints.md: Adjust comment.
3675 ("Y"): Adjust comment. Rename s390_decompose_shift_count to
3676 s390_decompose_addrstyle_without_index.
3677 * config/s390/predicates.md (shift_count_or_setmem_operand):
3678 Rename to setmem_operand.
3679 * config/s390/s390-protos.h
3680 (s390_decompose_shift_count): Rename to
3681 s390_decompose_addrstyle_without_index.
3682 * config/s390/s390.c (s390_decompose_shift_count)
3683 (s390_mem_constraint, print_shift_count_operand)
3684 (print_operand_address, print_operand): Rename
3685 s390_decompose_shift_count to
3686 s390_decompose_addrstyle_without_index and rename
3687 print_shift_count_operand to print_addrstyle_operand troughout the
3689 * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3690 ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3691 Rename shift_count_or_setmem_operand to setmem_operand.
3692 * config/s390/vx-builtins.md ("vec_insert<mode>")
3693 ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3696 2016-03-10 Ulrich Weigand <Ulrich.Weigand@de.ibm.com>
3699 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3700 Handle overlapping retval and newval.
3702 2016-03-10 Nick Clifton <nickc@redhat.com>
3705 * config/aarch64/aarch64.c
3706 (aarch64_override_options_after_change_1): When forcing
3707 flag_omit_frame_pointer to be true, use a special value that can
3708 be detected if this function is called again, thus preventing
3709 flag_omit_leaf_frame_pointer from being forced to be false.
3711 2016-03-10 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3713 * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3714 Set x_flag_omit_leaf_frame_pointer when handling
3715 -momit-leaf-frame-pointer.
3717 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3720 * cgraph.c (cgraph_node::dump): Dump split_part and
3721 indirect_call_target.
3722 * cgraph.h (cgraph_node): Add indirect_call_target flag.
3723 * ipa.c (has_addr_references_p): Cleanup.
3724 (is_indirect_call_target_p): New.
3725 (walk_polymorphic_call_targets): Do not mark virtuals that may be
3726 called indirectly as local.
3727 (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3729 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3732 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3733 on cxa_pure_virtual.
3735 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3738 * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3740 2016-03-10 Jan Hubicka <hubicka@ucw.cz>
3743 * tree.c (need_assembler_name_p): Only record main variant type names.
3745 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3748 * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3749 Always define to 0 or 1.
3750 (TARGET_FIX_ERR_A53_843419): New macro.
3751 * config/aarch64/aarch64-elf-raw.h
3752 (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3753 * config/aarch64/aarch64-linux.h: Likewise.
3754 * config/aarch64/aarch64.c
3755 (aarch64_override_options_after_change_1): Do not default
3756 aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3758 (aarch64_attributes): Handle fix-cortex-a53-843419.
3759 (aarch64_can_inline_p): Likewise.
3760 * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3762 2016-03-10 Alan Lawrence <alan.lawrence@arm.com>
3763 Jakub Jelinek <jakub@redhat.com>
3765 * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3766 * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3767 DECL_COMMONS if flag_unconstrained_commons is set.
3768 * tree-dfa.c (get_ref_base_and_extent): Likewise.
3769 * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3770 (funconstrained-commons): Document.
3772 2016-03-10 Christophe Lyon <christophe.lyon@linaro.org>
3774 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3775 aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3777 2016-03-10 Ilya Enkovich <enkovich.gnu@gmail.com>
3779 * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3780 has a proper number of elements.
3782 2016-03-10 Alan Modra <amodra@gmail.com>
3784 PR rtl-optimization/69195
3785 PR rtl-optimization/47992
3786 * ira.c (recorded_label_ref): Delete.
3787 (update_equiv_regs): Return void.
3788 (indirect_jump_optimize): New function.
3789 (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3790 before regstat_compute_ri. Don't rebuild_jump_labels here.
3791 Delete update_regstat.
3793 2016-03-10 Richard Biener <rguenther@suse.de>
3795 PR tree-optimization/70128
3796 * tree-ssa-structalias.c (set_uids_in_ptset): Set
3797 vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3799 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3801 PR tree-optimization/70152
3802 * tree-sra.c (replace_removed_params_ssa_names): Copy over
3803 SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3806 * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3807 instead of gen_sse2_loadlpd.
3808 * config/i386/sse.md (*vec_concatv2df): Rename to...
3809 (vec_concatv2df): ... this.
3811 PR tree-optimization/70127
3812 * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3814 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3818 * diagnostic-show-locus.c (compatible_locations_p): New function.
3819 (layout::layout): Sanitize ranges using compatible_locations_p.
3821 2016-03-09 David Malcolm <dmalcolm@redhat.com>
3825 * diagnostic-show-locus.c (layout_range::layout_range): Replace
3826 location_range param with three const expanded_locations * and a
3828 (layout::layout): Replace call to
3829 rich_location::lazily_expand_location with get_expanded_location.
3830 Extract the range and perform location expansion here, passing
3831 the results to the layout_range ctor.
3832 * diagnostic.c (source_range::debug): Delete.
3833 * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3834 of rich_location::get_expanded_location.
3835 * gcc-rich-location.c (get_range_for_expr): Delete.
3836 (gcc_rich_location::add_expr): Reimplement to avoid the
3837 rich_location::add_range overload that took a location_range,
3838 passing a location_t instead.
3840 2016-03-09 Richard Biener <rguenther@suse.de>
3841 Jakub Jelinek <jakub@redhat.com>
3843 PR tree-optimization/70138
3844 * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3845 Also skip vect_double_reduction_def.
3847 2016-03-09 Jakub Jelinek <jakub@redhat.com>
3850 * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3851 if the operand is "m".
3853 2016-03-09 Nathan Sidwell <nathan@acm.org>
3855 * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3857 2016-03-09 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
3859 * config/i386/i386.c (processor_target_table): Fix cost table
3860 intialization order for znver1.
3862 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3864 * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3865 - becuase -> because.
3866 * ipa-reference.c (ignore_module_statics): Likewise.
3867 * cgraph.c (cgraph_node::get_body): Likewise.
3868 * ipa-inline.c (early_inliner): Likewise.
3869 * ipa-devirt.c (types_same_for_odr): Likewise.
3870 * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3871 * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3873 2016-03-08 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3875 * tree-ssa-math-opts.c: Fix typo in comment.
3877 2016-03-08 Jakub Jelinek <jakub@redhat.com>
3880 * config/i386/i386.c (scalar_chain::make_vector_copies,
3881 scalar_chain::convert_reg): Call end_sequence in between
3882 get_insns and emit_conversion_insns rather than after both
3885 2016-03-07 Uros Bizjak <ubizjak@gmail.com>
3888 * config/i386/i386.h (machine_function): Add
3889 pc_thunk_call_expanded flag.
3890 (ix86_pc_thunk_call_expanded): New define.
3891 * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3892 (*set_got): Rename insn pattern from set_got.
3893 (*set_got_labelled): Rename inst pattern from set_got_labelled.
3894 * config/i386/i386.c (ix86_compute_frame_layout): Use
3895 ix86_pc_thunk_call_expanded to prevent red-zone.
3897 2016-03-07 Martin Jambor <mjambor@suse.cz>
3899 * hsa.h (hsa_get_ctor_statements): Declare.
3900 (hsa_get_dtor_statements): Likewise.
3901 (hsa_get_kernel_dispatch_type): Likewise.
3902 * hsa.c (hsa_get_ctor_statements): New function.
3903 (hsa_get_dtor_statements): Likewise.
3904 (hsa_get_kernel_dispatch_type): Likewise.
3905 * hsa-brig.c (hsa_cdtor_statements): Removed.
3906 (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3907 hsa_get_dtor_statements.
3908 * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3909 (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3911 2016-03-07 Andre Vieira <andre.simoesdiasvieira@arm.com>
3913 * config/arm/arm-cores.def (cortex-r8): New.
3914 * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3915 * config/arm/arm-tune.md: Likewise.
3916 * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3918 2016-03-07 Martin Sebor <msebor@redhat.com>
3920 PR rtl-optimization/19705
3921 * doc/invoke.texi (Options That Control Optimization): Clarify
3922 -fno-branch-count-reg.
3924 2016-02-26 Richard Biener <rguenther@suse.de>
3925 Jeff Law <law@redhat.com>
3927 PR tree-optimization/69740
3928 * cfghooks.c (remove_edge): Request loop fixups if we delete
3929 an edge that might turn an irreducible loop into a natural
3931 * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3932 Move after definition of loops_state_clear.
3934 2016-03-07 Bin Cheng <bin.cheng@arm.com>
3936 PR rtl-optimization/69052
3937 * rtlanal.c (commutative_operand_precedence): Set higher precedence
3940 2016-03-07 Tom de Vries <tom@codesourcery.com>
3942 PR tree-optimization/70116
3943 * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3944 is_tm_ending stmts and ubsan/asan internal functions.
3945 (find_duplicate): Use it. Don't test is_tm_ending here.
3947 2016-03-07 Richard Biener <rguenther@suse.de>
3949 PR tree-optimization/70115
3950 * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3951 (propagate_constants_for_unrolling): Use replace_uses_by.
3953 2016-03-07 Nathan Sidwell <nathan@codesourcery.com>
3956 * omp-low.c (struct oacc_loop): Add ifns.
3957 (new_oacc_loop_raw): Initialize it.
3958 (finish_oacc_loop): Clear mask & flags if no ifns.
3959 (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3960 (oacc_loop_xform_loop): Add ifns arg & adjust.
3961 (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3963 2016-03-07 Richard Henderson <rth@redhat.com>
3966 * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3967 (insert_value_copy_on_edge): Likewise.
3969 2016-03-07 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
3971 * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3973 2016-03-07 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
3976 * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3978 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3980 * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3982 2016-03-05 Venkataramanan Kumar <Venkataramanan.kumar@amd.com>
3984 Fix sseimul type attribute.
3985 * config/i386/znver1.md
3986 (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3987 znver1_sseimul_avx256_load) : Fix the type attribute.
3988 (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3989 pipe usage and latency.
3991 2016-03-05 Jakub Jelinek <jakub@redhat.com>
3994 * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3995 of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3998 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4001 * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4003 PR rtl-optimization/69941
4004 * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4005 the reg share its mode.
4007 2016-03-04 Jeff Law <law@redhat.com>
4009 PR tree-optimization/69196
4010 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4011 If the both SSA_NAMEs are anonymous, then consider them unassociated
4012 and include the PHI in the statement count.
4014 2016-03-05 Tom de Vries <tom@codesourcery.com>
4016 * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4017 construct in oacc routine. Check for oacc region in oacc routine.
4019 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4022 * config/i386/i386.c (decide_alg): Add RECUR argument. Revert
4023 2016-02-22 changes, instead don't recurse if RECUR is already true.
4024 Don't change *dynamic_check if RECUR. Adjust recursive caller
4025 to pass true to the new argument.
4026 (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4029 * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4030 <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4032 (vec_set_hi_<mode><mask_name>): Likewise. Swap VEC_CONCAT operands.
4034 2016-03-04 Bernd Schmidt <bschmidt@redhat.com>
4036 PR rtl-optimization/57676
4037 * lra-assigns.c (lra_assign): Guard test for maximum iterations
4040 2016-03-04 Ilya Enkovich <enkovich.gnu@gmail.com>
4042 * tree-vect-patterns.c (search_type_for_mask): Handle
4043 comparison of booleans.
4045 2016-03-04 Jakub Jelinek <jakub@redhat.com>
4047 * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4051 * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4052 all other ops that have dw_val_class_die_ref operands,
4053 and DW_OP_GNU_entry_value.
4055 2016-03-03 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4057 PR rtl-optimization/69904
4058 * config/arm/arm.c (arm_cannot_copy_insn_p):
4059 Return true for load-exclusive instructions.
4061 2016-03-03 Jakub Jelinek <jakub@redhat.com>
4064 * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4065 argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4066 the pattern no matter if it is used just by non-pattern, pattern
4068 (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4069 * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4070 oprnd1 def_stmt is in pattern, don't look through it.
4072 2016-03-03 Marek Polacek <polacek@redhat.com>
4075 * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4077 2016-03-03 Martin Liska <mliska@suse.cz>
4079 PR tree-optimization/70043
4080 * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4081 previous statement if we see a debug statement.
4083 2016-03-03 Richard Biener <rguenther@suse.de>
4085 PR tree-optimization/55936
4086 * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4087 parameter and guard unsafe equivalence use.
4088 (vrp_evaluate_conditional_warnv_with_ops): Always use
4089 safe equivalences but not via the quadratic compare_names
4092 2016-03-03 Michael Collison <michael.collison@linaro.org>
4095 * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4096 for operand 1 to s_register_operand. Change predicate for operand
4097 2 to arm_not_immediate_operand.
4099 2016-03-02 H.J. Lu <hongjiu.lu@intel.com>
4101 * doc/tm.texi: Regenerated.
4103 2016-03-02 Richard Henderson <rth@redhat.com>
4106 * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4107 simplification when all args are positive non-fixed registers.
4109 2016-03-02 Manuel Lopez-Ibanez <manu@gcc.gnu.org>
4111 * target.def (lra_p): Specify that new ports should use LRA.
4113 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4116 * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4117 gimplify_type_sizes the type they refer to.
4118 (omp_notice_variable): Handle reference vars to VLAs.
4119 * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4120 reference to VLA decls in the second pass instead of first pass.
4122 2016-03-02 Tom de Vries <tom@codesourcery.com>
4124 PR tree-optimization/68659
4125 * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4126 new_expr == NULL_TREE.
4127 (get_new_name): Handle ADDR_EXPR.
4129 2016-03-02 Bin Cheng <bin.cheng@arm.com>
4131 PR rtl-optimization/69052
4132 * loop-invariant.c (canonicalize_address): New function.
4133 (inv_can_prop_to_addr_use): Check validity of address expression
4134 which is canonicalized by above function.
4136 2016-03-02 Alan Modra <amodra@gmail.com>
4139 * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4142 2016-03-02 Jakub Jelinek <jakub@redhat.com>
4145 * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4146 (*movhi_internal): Put mask moves from and to memory separately
4147 from moves from/to GPRs.
4149 2016-03-02 Richard Biener <rguenther@suse.de>
4151 * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4152 GENERIC expressions in GIMPLE.
4154 2016-03-02 Richard Biener <rguenther@suse.de>
4156 * config/i386/i386.c (type_natural_mode): Fix typo.
4158 2016-03-02 Nick Clifton <nickc@redhat.com>
4160 * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4162 2016-03-02 Richard Biener <rguenther@suse.de>
4163 Uros Bizjak <ubizjak@gmail.com>
4166 * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4168 2016-03-02 Richard Biener <rguenther@suse.de>
4171 * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4173 2016-03-02 Marek Polacek <polacek@redhat.com>
4176 * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4177 "is promoted to" warning.
4179 2016-03-01 DJ Delorie <dj@redhat.com>
4181 * config.gcc: Deprecate mep-*.
4183 2016-03-01 Vladimir Makarov <vmakarov@redhat.com>
4186 * lra-constraints.c (regno_val_use_in): New.
4187 (match_reload): Use it instead of regno_use_in.
4189 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4191 PR rtl-optimization/70007
4192 * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4193 references present in REG_EQUAL notes attached to non-SET patterns.
4195 2016-03-01 Jeff Law <law@redhat.com>
4197 PR tree-optimization/69196
4198 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4199 Appropriately clamp the number of statements to copy when the
4200 thread path does not traverse a loop backedge.
4202 PR tree-optimization/69196
4203 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4204 Do count some PHIs in the thread path against the insn count. Decrease
4205 final statement count by one as the control statement in the last
4206 block will get removed. Remove special cased code for handling PHIs
4209 2016-03-01 Uros Bizjak <ubizjak@gmail.com>
4212 * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4213 asm dialect alternatives to explicit GOTPCREL calls.
4215 2016-03-01 Eric Botcazou <ebotcazou@adacore.com>
4218 * ira.c (do_reload): Issue warning for generic stack checking here...
4219 * reload1.c (reload): ...instead of here and streamline it.
4221 2016-03-01 Nick Clifton <nickc@redhat.com>
4223 * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4225 2016-03-01 Richard Biener <rguenther@suse.de>
4227 PR tree-optimization/69983
4228 * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4229 types and fall back to operand_equal_p.
4231 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4234 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4236 * config/s390/constraints.md ("jm8"): New constraint.
4237 * config/s390/predicates.md ("const_int_8bitset_operand"): New
4239 * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4241 ("*setmem_long<setmem_and>"): New pattern.
4242 ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4244 ("*setmem_long_31z<setmem_and>"): New pattern.
4245 * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4246 New substitution rules with the required attributes.
4249 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4252 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4254 * gensupport.c (process_substs_on_one_elem): Split loop to
4255 complete mark_operands_used_in_match_dup on all expressions in the
4257 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4258 and remove function.
4260 2016-03-01 Richard Biener <rguenther@suse.de>
4263 * fold-const.c (fold_indirect_ref_1): Fix range checking for
4264 vector BIT_FIELD_REF extract.
4266 2016-03-01 Richard Biener <rguenther@suse.de>
4268 PR tree-optimization/69994
4269 * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4271 2016-03-01 Ilya Enkovich <enkovich.gnu@gmail.com>
4273 PR tree-optimization/69956
4274 * tree-vect-stmts.c (supportable_widening_operation): Support
4275 multi-step conversion of boolean vectors.
4276 (supportable_narrowing_operation): Likewise.
4278 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4280 * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4283 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4285 * config/s390/subst.md (DSI_VI): New mode iterator.
4286 ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4287 * config/s390/vector.md ("vec_set<mode>"): Move expander before
4288 the insn definition.
4289 ("*vec_set<mode>"): Change predicate and add alternative to
4290 support only either register or const_int operands as element
4292 ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4294 ("vec_extract<mode>"): New expander.
4295 ("*vec_extract<mode>"): New insn definition supporting reg and
4296 const_int element selectors.
4297 ("*vec_extract<mode>_plus"): New insn definition supporting
4298 reg+const_int element selectors.
4299 ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4300 following expander+insn definition.
4301 ("<vec_shifts_name><mode>3"): New expander.
4302 ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4304 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4306 * config/s390/s390.md ("*tabort_1"): Change predicate to
4307 nonmemory_operand. Add a second alternative to cover
4308 register as well as const int operands.
4309 ("*tabort_1_plus"): New pattern definition.
4311 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4313 * config/s390/s390.md ("*ashrdi3_cc_31")
4314 ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4315 ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4316 Merge insn definitions into ...
4317 ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4318 New pattern definition.
4319 ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4320 ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4321 ("*ashr<mode>3_and"): Merge insn definitions into ...
4322 ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4323 New pattern definition.
4324 * config/s390/subst.md ("addr_style_op_cc_subst")
4325 ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4326 substitutions patterns plus attributes.
4327 Add ashiftrt to SUBST iterator.
4329 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4331 * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4332 op2 to nonmemory_operand.
4333 ("*<shift>di3_31", "*<shift>di3_31_and"):
4334 Merge into single pattern definition ...
4335 ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4336 ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4337 pattern definition ...
4338 ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4339 * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4342 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4344 * config/s390/predicates.md (const_int_6bitset_operand): New
4346 * config/s390/s390.md: Include subst.md.
4347 ("rotl<mode>3"): New expander.
4348 ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4350 ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4351 * config/s390/subst.md: New file.
4353 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4355 * config/s390/s390.md ("op_type", "atype", "length" attributes):
4356 Remove RRR type. It doesn't really exist.
4357 ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4359 ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4360 ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4361 ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4362 ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4363 ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4364 ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4365 `enabled' attribute.
4367 2016-03-01 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4369 * gensupport.c (process_substs_on_one_elem): Split loop to
4370 complete mark_operands_used_in_match_dup on all expressions in the
4372 (adjust_operands_numbers): Inline into process_substs_on_one_elem
4373 and remove function.
4375 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4378 * config/sparc/sparc.c (NWORDS_UP): Rename to...
4379 (CEIL_NWORDS): ...this. Use CEIL macro.
4380 (compute_fp_layout): Adjust to above renaming.
4381 (function_arg_union_value): Likewise.
4382 (sparc_arg_partial_bytes): Likewise.
4383 (sparc_function_arg_advance): Likewise.
4385 2016-02-29 Jeff Law <law@redhat.com>
4387 PR tree-optimization/70005
4388 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4389 where an object with a boolean range is compared against a value
4392 PR tree-optimization/69999
4393 * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4394 with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4397 2016-02-29 Richard Biener <rguenther@suse.de>
4399 PR tree-optimization/69994
4400 * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4401 (get_unary_op): Look through nop conversions.
4402 (ops_equal_values_p): New function, look for equality diregarding
4404 (eliminate_plus_minus_pair): Use ops_equal_values_p
4405 (repropagate_negates): Do not use get_unary_op here.
4407 2016-02-29 Martin Liska <mliska@suse.cz>
4409 * system.h: Poison ENABLE_CHECKING macro.
4411 2016-02-29 Martin Liska <mliska@suse.cz>
4413 * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4414 is presented in dump flags.
4415 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4416 (hsa_regalloc): Likewise.
4418 2016-02-19 Richard Biener <rguenther@suse.de>
4420 PR tree-optimization/69980
4421 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4422 permutation of those we need to keep.
4424 2016-02-29 Eric Botcazou <ebotcazou@adacore.com>
4427 * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4428 (NWORDS_UP): ...this
4429 (init_cumulative_args): Minor tweaks.
4430 (sparc_promote_function_mode): Likewise.
4431 (scan_record_type): Delete.
4432 (traverse_record_type): New function template.
4433 (classify_data_t): New structure type.
4434 (classify_registers): New inline function.
4435 (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4436 exhausted. Instantiate traverse_record_type on classify_registers and
4437 deal with the case of a structure passed in slot #15 with no FP field
4439 (assign_data_t): New structure type.
4440 (compute_int_layout): New static function.
4441 (compute_fp_layout): Likewise.
4442 (count_registers): New inline function.
4443 (assign_int_registers): New static function.
4444 (assign_fp_registers): Likewise.
4445 (assign_registers): New inline function.
4446 (function_arg_record_value_1): Delete.
4447 (function_arg_record_value_2): Likewise.
4448 (function_arg_record_value_3): Likewise.
4449 (function_arg_record_value): Adjust to above changes. Instantiate
4450 traverse_record_type on count_registers to first count the number of
4451 registers to be used and then on assign_registers to assign them.
4452 (function_arg_union_value): Adjust to above renaming.
4453 (sparc_function_arg_1); Minor tweaks. Remove commented out code.
4454 (sparc_arg_partial_bytes): Adjust to above renaming. Deal with the
4455 case of a structure passed in slot #15
4456 (sparc_function_arg_advance): Likewise.
4457 (function_arg_padding): Minor tweak.
4459 2016-02-29 Richard Biener <rguenther@suse.de>
4461 PR tree-optimization/69720
4462 * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4463 the adjustment_def path for possibly vectorized defs.
4464 (vect_create_epilog_for_reduction): Handle vectorized initial
4467 2016-02-28 Eric Botcazou <ebotcazou@adacore.com>
4469 * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4471 2016-02-27 Jeff Law <law@redhat.com>
4474 2016-02-26 Richard Biener <rguenther@suse.de>
4475 Jeff Law <law@redhat.com>
4477 PR tree-optimization/69740
4478 * cfghooks.c (remove_edge): Request loop fixups if we delete
4479 an edge that might turn an irreducible loop into a natural
4482 2016-02-27 Jakub Jelinek <jakub@redhat.com>
4484 PR rtl-optimization/69896
4485 * tree-vect-generic.c (get_compute_type): Avoid single element
4488 2016-02-26 Evandro Menezes <e.menezes@samsung.com>
4490 Rename the AArch64 tuning option and related functions to enable the
4491 Newton series for the reciprocal square root to reflect its
4492 approximative characteristic.
4494 * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4495 function to "aarch64_emit_approx_rsqrt".
4496 * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4497 AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4498 * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4499 (xgene1_tunings): Likewise.
4500 (use_rsqrt_p): Likewise.
4501 (aarch64_emit_swrsqrt): Use new function name.
4502 * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4503 * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4504 text explaining this option.
4505 * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4507 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4510 * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4511 complain about -mallow-movmisalign without -mvsx if
4512 TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4514 2016-02-26 Joel Sherrill <joel@rtems.org>
4516 * config.gcc: Add x86_64-*-rtems*.
4517 * gcc/config/i386/rtems-64.h: New file.
4519 2016-02-26 Joel Sherrill <joel@rtems.org>
4521 * config.gcc: Add aarch64-*-rtems*.
4522 * gcc/config/aarch64/rtems.h: New file.
4524 2016-02-26 Segher Boessenkool <segher@kernel.crashing.org>
4527 * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4528 shift amount using %h. Add comment.
4530 2016-02-26 Richard Biener <rguenther@suse.de>
4531 Jeff Law <law@redhat.com>
4533 PR tree-optimization/69740
4534 * cfghooks.c (remove_edge): Request loop fixups if we delete
4535 an edge that might turn an irreducible loop into a natural
4538 2016-02-26 Martin Jambor <mjambor@suse.cz>
4541 * tree-sra.c (sra_modify_assign): Do not remove loads of
4542 uninitialized aggregates to SSA_NAMEs.
4544 2016-02-26 Richard Henderson <rth@redhat.com>
4547 * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4548 pseudo in case the target rtx matches the source of the left
4551 2016-02-26 Martin Jambor <mjambor@suse.cz>
4554 * hsa.h (hsa_type_packed_p): Declare.
4555 * hsa.c (hsa_type_packed_p): New function.
4556 * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4558 (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4559 * hsa-brig.c (emit_basic_insn): Likewise.
4561 2016-02-26 Martin Jambor <mjambor@suse.cz>
4564 * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4566 (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4568 2016-02-26 Martin Jambor <mjambor@suse.cz>
4570 * hsa.h (is_a_helper): New overload for hsa_op_immed for
4571 hsa_op_with_type operands.
4572 (hsa_unsigned_type_for_type): Declare.
4573 * hsa.c (hsa_unsigned_type_for_type): New function.
4574 * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4575 (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4576 the finalizer. Do not emit extra move.
4578 2016-02-26 Martin Jambor <mjambor@suse.cz>
4580 * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4581 atomic operations in private segment.
4583 2016-02-26 Martin Jambor <mjambor@suse.cz>
4585 * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4586 statements to wi->info. Also disallow omp simd constructs.
4587 (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4588 for not gridifying. Dump special string for omp_for.
4590 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4593 * config/aarch64/aarch64.c (aarch64_set_current_function):
4594 Save/restore target globals when switching to
4595 target_option_default_node.
4597 2016-02-26 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4600 * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4601 Return 0 if !SHIFT_COUNT_TRUNCATED.
4603 2016-02-26 Jakub Jelinek <jakub@redhat.com>
4604 Eric Botcazou <ebotcazou@adacore.com>
4606 PR rtl-optimization/69891
4607 * dse.c (scan_insn): If we can't figure out memset arguments
4608 or they are non-constant, call clear_rhs_from_active_local_stores.
4610 2016-02-26 Martin Liska <mliska@suse.cz>
4612 * doc/extend.texi: Mention clog10, clog10f an clog10l
4613 in Builtins section.
4615 2016-02-26 Martin Liska <mliska@suse.cz>
4617 * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4619 (resolve_args_picking_1): Likewise.
4620 * dwarf2out.h (struct GTY): Likewise.
4622 2016-02-26 Martin Liska <mliska@suse.cz>
4624 * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4626 * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4628 2016-02-26 Markus Trippelsdorf <markus@trippelsdorf.de>
4629 Martin Liska <mliska@suse.cz>
4631 * doc/install.texi: Mention --enable-valgrind-annotations.
4633 2016-02-26 Richard Biener <rguenther@suse.de>
4635 PR tree-optimization/69551
4636 * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4637 looking through aliases adjust DECL_PT_UID to refer to the
4638 ultimate alias target.
4640 2016-02-25 Martin Liska <mliska@suse.cz>
4643 * alloc-pool.c (after_memory_report): New variable.
4644 * alloc-pool.h (base_pool_allocator ::release): Do not use
4645 the infrastructure if after_memory_report.
4646 * toplev.c (toplev::main): Mark after memory report.
4648 2016-02-25 Richard Biener <rguenther@suse.de>
4650 PR tree-optimization/48795
4651 * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4653 2016-02-25 Ilya Verbin <ilya.verbin@intel.com>
4656 * config/gnu-user.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o if
4657 offloading is enabled and -fopenacc or -fopenmp is specified.
4658 (CRTOFFLOADEND): Likewise.
4659 (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4660 (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4661 * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4662 (offload_objects_file_name): New static var.
4663 (tool_cleanup): Remove offload_objects_file_name file.
4664 (find_offloadbeginend): Replace with ...
4665 (find_crtoffloadtable): ... this.
4666 (run_gcc): Remove offload_argc and offload_argv.
4667 Get offload_objects_file_name from -foffload-objects=... option.
4668 Read names of object files with offload from this file, pass them to
4669 compile_images_for_offload_targets. Don't call find_offloadbeginend and
4670 don't pass offloadbegin and offloadend to the linker. Don't pass
4671 offload non-LTO files to the linker, because now they're not claimed.
4673 2016-02-25 Jan Hubicka <hubicka@ucw.cz>
4676 * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4677 on builtin_unreachable.
4679 2016-02-25 Jakub Jelinek <jakub@redhat.com>
4681 PR rtl-optimization/69896
4682 * regcprop.c: Include cfgrtl.h.
4683 (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4684 than remembered mode, either delete it (if noop_move_p), or
4685 treat like copy_p but not noop_p instruction.
4687 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4690 * dwarf2out.c (gen_variable_die): Work around buggy LTO
4691 - allow NULL decl for Fortran DW_TAG_common_block variables.
4693 2016-02-24 Jason Merrill <jason@redhat.com>
4695 * common.opt (flifetime-dse): Add -flifetime-dse=1.
4697 2016-02-24 Richard Biener <rguenther@suse.de>
4698 Jakub Jelinek <jakub@redhat.com>
4701 * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4702 conditionally executed ops to well-defined overflow behavior.
4704 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4707 * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4710 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4712 PR rtl-optimization/69886
4713 * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4714 argument. Use it when checking validity of set instructions.
4715 (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4716 (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4718 * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4719 * store-motion.c (find_moveable_store): Update
4720 can_assign_to_reg_without_clobbers_p callsite.
4722 2016-02-24 Richard Biener <rguenther@suse.de>
4725 * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4727 (record_nonwrapping_iv): Do not fall back to the low/high bound
4728 for non-constant IV bases if the stmt is not always executed.
4730 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4732 * config/arm/arm-cores.def (cortex-a32): New entry.
4733 * config/arm/arm-tables.opt: Regenerate.
4734 * config/arm/arm-tune.md: Regenerate.
4735 * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4736 * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4737 * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4738 for -mcpu and -mtune.
4740 2016-02-24 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4743 * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4744 * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4745 * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4746 (atomic_loaddi_1): Delete.
4747 (atomic_loaddi): Rewrite expander using the above changes.
4749 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4752 * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4755 2016-02-24 Jakub Jelinek <jakub@redhat.com>
4756 Richard Biener <rguenth@suse.de>
4759 * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4760 set_mem_attributes if tem is SSA_NAME which got expanded
4763 2016-02-24 Richard Biener <rguenther@suse.de>
4765 PR tree-optimization/69907
4766 * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4767 end of permutations for BB vectorization.
4769 2016-02-24 Christian Bruel <christian.bruel@st.com>
4771 * config/arm/arm-c.c (arm_option_override): Initialize
4772 target_option_current_node.
4773 * config/arm/arm.c (arm_pragma_target_parse): Replace
4774 build_target_option_node call by target_option_current_node.
4775 Set target_option_current_node.
4778 2016-02-23 David Edelsohn <dje.gcc@gmail.com>
4781 * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4782 define_insn_and_split to define_insn.
4783 (zero_extendqi<mode>2_dot2): Same.
4784 (extendqi<mode>2_dot): Same.
4785 (extendqi<mode>2_dot2): Same.
4787 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4789 * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4790 and add bypass for AES{D,E} and AESMC pairs.
4791 * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4794 2016-02-23 Evandro Menezes <e.menezes@samsung.com>
4796 * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4797 series for reciprocal square root in Exynos M1.
4799 2016-02-23 Martin Sebor <msebor@redhat.com>
4802 * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4803 __builtin_alloca_with_align.
4805 2016-02-23 Richard Henderson <rth@redhat.com>
4807 * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4808 (ix86_register_pragmas): Remove __seg_tls.
4809 * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4810 * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4811 (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4812 (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4813 (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4814 * doc/extend.texi (__seg_tls): Remove item.
4816 2016-02-23 Richard Biener <rguenther@suse.de>
4818 * alloc-pool.h (struct allocation_object): Make id member
4819 conditional on CHECKING_P again.
4820 (get_instance): Adjust.
4821 (base_pool_allocator): Likewise.
4823 2016-02-23 Thomas Schwinge <thomas@codesourcery.com>
4825 * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4826 (parallelize_loops): In OpenACC kernels mode, set n_threads to
4828 (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4830 * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4832 2016-02-23 Richard Biener <rguenther@suse.de>
4834 * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4835 * bitmap.h (struct bitmap_usage): Likewise.
4836 (bitmap_move): Declare.
4837 * bitmap.c (register_overhead): Take size_t argument.
4838 (bitmap_move): New function.
4839 * df-problems.c (df_rd_transfer_function): Use bitmap_move
4840 to properly account overhead.
4841 * tree.c (free_node): Use tree_size.
4843 2016-02-23 Jakub Jelinek <jakub@redhat.com>
4846 * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4847 when inverting comparison.
4850 * common.opt (Wunreachable-code): Add Warning flag.
4852 2016-02-23 Mark Wielaard <mjw@redhat.com>
4853 Jakub Jelinek <jakub@redhat.com>
4856 * cgraphunit.c (check_global_declaration): Check main_input_filename
4857 and DECL_SOURCE_FILE are not NULL.
4859 2016-02-23 Martin Jambor <mjambor@suse.cz>
4861 PR tree-optimization/69666
4862 * tree-sra.c (sra_modify_assign): Do not attempt to create
4863 default_def replacements for unscalarizable regions.
4865 2016-02-20 Mark Wielaard <mjw@redhat.com>
4868 * cgraphunit.c (check_global_declaration): Check level of
4869 warn_unused_const_variable and main_input_filename.
4870 * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4871 (-Wunused-variable): For C implies -Wunused-const-variable=1.
4872 (-Wunused-const-variable): Explain levels 1 and 2.
4874 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4877 * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4878 identical arguments. Formatting and spelling fixes.
4881 * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4886 * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4887 and m68k-devices.def.
4888 * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4889 * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4891 2016-02-22 Cesar Philippidis <cesar@codesourcery.com>
4893 * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4894 and HImode registers.
4896 2016-02-22 Richard Biener <rguenther@suse.de>
4898 PR tree-optimization/69882
4899 * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4900 preserve permutations present because of gaps.
4901 (vect_supported_load_permutation_p): Always continue checking
4902 permutations after vect_attempt_slp_rearrange_stmts.
4904 2016-02-22 Bin Cheng <bin.cheng@arm.com>
4906 * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4907 min_profitable_estimate, rather than min_profitable_iters.
4909 2016-02-22 Jakub Jelinek <jakub@redhat.com>
4912 * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4913 SImode for last match_operand.
4915 2016-02-22 Martin Liska <mliska@suse.cz>
4917 * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4918 return bitsize - 1 as the return value.
4920 2016-02-22 Oleg Endo <olegendo@gcc.gnu.org>
4924 * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4925 Handle negative shift counts.
4926 * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4927 force_reg on the shift constant.
4928 (lshrsi3): Likewise. Expand into lshrsi3_n* instead of lshrsi3_d.
4929 (lshrsi3_d): Handle negative shift counts.
4931 2016-02-22 Richard Biener <rguenther@suse.de>
4932 Tom de Vries <tom@codesourcery.com>
4934 * graph.c: Include dumpfile.h.
4935 (print_graph_cfg): Split into three overloads.
4936 * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4938 2016-02-22 Tom de Vries <tom@codesourcery.com>
4940 * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4943 2016-02-22 Richard Biener <rguenther@suse.de>
4946 * ipa-inline-transform.c (inline_call): When not updating
4947 overall summaries adjust self size by the growth estimate.
4948 * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4949 hash-set, do not update overall summaries here. Renamed from ...
4950 (inline_to_all_callers): ... this which is now wrapping the
4951 above and performing delayed overall summary update.
4952 (early_inline_small_functions): Delay updating of the overall
4955 2016-02-21 Markus Trippelsdorf <markus@trippelsdorf.de>
4957 * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4960 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4963 * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4964 :%* in %:gt() argument.
4965 (greater_than_spec_func): Adjust for expecting only numbers,
4966 if there are more than two numbers, compare the last two.
4968 2016-02-19 Jonathan Wakely <jwakely@redhat.com>
4970 * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4971 -Wnarrowing with -std.
4973 2016-02-19 Jakub Jelinek <jakub@redhat.com>
4976 * expr.c (store_field): Don't use bit-field path if exp is
4977 COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4978 different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4979 and the assignment can be performed by bitwise copy. Formatting
4983 * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4984 call copy_reg_eh_region_note_forward on before and/or after sequences
4985 and remove note from insn if it no longer can throw.
4988 * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4991 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4993 * config/s390/vector.md: Add missing commutative operand markers
4994 to the patterns which qualify for one.
4995 * config/s390/vx-builtins.md: Likewise.
4997 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
4999 * config/s390/vector.md (VI, VI_QHS): Add single element vector
5000 types to mode iterators.
5001 (vec_double): ... and mode attribute.
5002 * config/s390/vx-builtins.md (non_vec_int): Likewise.
5004 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5006 * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5007 Change the predicate of op2 from nonimmediate to general and let
5008 reload fix it if necessary.
5010 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5012 * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5014 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5016 * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5019 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5021 * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5022 * config/s390/s390.c (s390_expand_vec_movstr): New function.
5023 * config/s390/s390.md ("movstr<P:mode>"): Call
5024 s390_expand_vec_movstr.
5026 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5028 * config/s390/s390.md: Add missing output modifier for operand 1
5029 to print it as address properly.
5031 2016-02-19 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5033 * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5034 * config/s390/2964.md: New file.
5035 * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5036 of insn grouping attributes depending on the CPU level.
5037 (s390_get_unit_mask): New function.
5038 (s390_sched_score): Remove the OOO from the scheduling macros.
5039 Add loop to calculate a score for the instruction mix.
5040 (s390_sched_reorder): Likewise plus improve debug output.
5041 (s390_sched_variable_issue): Rename macros as above. Calculate
5042 the unit distances after actually scheduling an insn. Improve
5044 (s390_sched_init): Clear last_scheduled_unit_distance array.
5045 * config/s390/s390.md: Include 2964.md.
5047 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5050 * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5051 *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5052 *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5053 *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5054 *avx512f_<code>v8div16qi2_mask_1): New insns.
5056 2016-02-18 Michael Meissner <meissner@linux.vnet.ibm.com>
5059 * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5062 * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5063 earlyclobber from target. Use wF constraint for fused memory
5065 (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5067 2016-02-18 Jakub Jelinek <jakub@redhat.com>
5068 Martin Liska <mliska@suse.cz>
5071 * cfgexpand.c (asan_sanitize_stack_p): New function.
5072 (partition_stack_vars): Use the function.
5073 (expand_stack_vars): Likewise.
5074 (defer_stack_allocation): Likewise.
5075 (expand_used_vars): Likewise.
5077 2016-02-18 Richard Biener <rguenther@suse.de>
5080 * fold-const.c (operand_equal_p): Properly compare offsets for
5081 IMAGPART_EXPR and ARRAY_REF.
5083 2016-02-18 Nick Clifton <nickc@redhat.com>
5087 * config/arm/arm.c (arm_option_override_internal): Disable
5088 interworking if the target does not support thumb instructions.
5089 (arm_reload_in_hi): Handle the case where a register to register
5090 move needs reloading because there is no simple pattern to handle
5092 (arm_reload_out_hi): Likewise.
5094 2016-02-18 Richard Biener <rguenther@suse.de>
5097 * match.pd: Don't use fold_binary or fold_unary for folding
5100 2016-02-17 Jakub Jelinek <jakub@redhat.com>
5103 * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5104 on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5105 * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5106 warn on gimple_no_warning_p statements.
5108 2016-02-17 Jonathan Wakely <jwakely@redhat.com>
5110 * doc/extend.texi (C++ Attributes): Correct description of
5111 warn_unused type attribute.
5113 2016-02-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
5115 * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5116 correct instruction.
5118 2016-02-17 Richard Biener <rguenther@suse.de>
5120 PR rtl-optimization/69609
5121 * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5122 (find_traces_1_round): When ending a trace update cached priority
5124 (bb_to_key): Use cached priority when available.
5125 (copy_bb): Initialize cached priority.
5126 (reorder_basic_blocks_software_trace_cache): Likewise.
5128 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5131 * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5133 (aarch64_comparison_operator): Break overly long line into two.
5134 (aarch64_comparison_operation): Likewise.
5135 * config/aarch64/aarch64.md (cstorecc4): Use
5136 aarch64_comparison_operator_mode instead of
5137 aarch64_comparison_operator.
5138 (cstore<mode>4): Likewise.
5139 (aarch64_cstore<mode>): Likewise.
5140 (*cstoresi_insn_uxtw): Likewise.
5141 (cstore<mode>_neg): Likewise.
5142 (*cstoresi_neg_uxtw): Likewise.
5144 2016-02-17 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5147 * config/arm/predicates.md (arm_comparison_operator_mode):
5149 * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5150 instead of arm_comparison_operator.
5151 (*mov_negscc): Likewise.
5152 (*mov_notscc): Likewise.
5153 * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5154 (*thumb2_mov_negscc): Likewise.
5155 (*thumb2_mov_negscc_strict_it): Likewise.
5156 (*thumb2_mov_notscc): Likewise.
5157 (*thumb2_mov_notscc_strict_it): Likewise.
5159 2016-02-17 Wilco Dijkstra <wdijkstr@arm.com>
5161 * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5164 2016-02-17 Eric Botcazou <ebotcazou@adacore.com>
5166 * config/visium/visium.c (machine_libfunc_index): New enum.
5167 (machine_libfuncs): New structure.
5168 (visium_libfuncs): New static variable.
5169 (TARGET_INIT_LIBFUNCS): Define to...
5170 (visium_init_libfuncs): ...this. New function.
5171 (expand_block_move_4): Use the appropriate libfunc.
5172 (expand_block_move_2): Likewise.
5173 (expand_block_move_1): Likewise.
5174 (expand_block_set_4): Likewise.
5175 (expand_block_set_2): Likewise.
5176 (expand_block_set_1): Likewise.
5177 (visium_trampoline_init): Likewise.
5179 2016-02-17 Nick Clifton <nickc@redhat.com>
5181 * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5182 TI's devices.csv file as of March 2016.
5184 2016-02-16 Kelvin Nilsen <kelvin@gcc.gnu.org>
5187 * opts-global.c (handle_common_deferred_options): Introduce and
5188 initialize two global variables to remember command-line options
5189 specifying a stack-limiting register.
5190 * opts.h: Add extern declarations of the two new global variables.
5191 * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5192 variable based on the values of the two new global variables.
5194 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5197 * common.opt (Wnonnull-compare): New warning.
5198 * doc/invoke.texi (-Wnonnull): Remove text about comparison
5199 of arguments against NULL.
5200 (-Wnonnull-compare): Document.
5201 * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5202 * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5203 * passes.def (pass_warn_nonnull_compare): Add.
5204 * gimple-ssa-nonnull-compare.c: New file.
5206 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5208 * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5209 AARCH64_EXTRA_TUNE_RECIP_SQRT.
5211 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5213 * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5214 reciprocal sqrt for -mlow-precision-recip-sqrt.
5216 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5217 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
5219 * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5220 always use lane loads to construct non-constant vectors.
5222 2016-02-16 James Greenhalgh <james.greenhalgh@arm.com>
5224 * config/aarch64/aarch64.md
5225 (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5226 constraints for operand 3.
5227 (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5229 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5230 Richard Biener <rguenther@suse.de>
5232 PR tree-optimization/69820
5233 * tree-vect-patterns.c (type_conversion_p): Return false if
5234 *orig_type is unsigned single precision or boolean.
5235 (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5238 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5240 PR rtl-optimization/69764
5241 PR rtl-optimization/69771
5242 * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5243 op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5245 2016-02-16 Richard Biener <rguenther@suse.de>
5247 PR tree-optimization/69776
5248 * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5250 (indirect_refs_may_alias_p): Likewise.
5251 (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5252 * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5253 according to tbaa_p.
5254 * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5255 (optimize_stmt): For redundant store discovery do not allow tbaa.
5257 2016-02-16 Bernd Schmidt <bschmidt@redhat.com>
5259 PR tree-optimization/69714
5260 * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5261 Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5263 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
5265 * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5266 * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5267 (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5268 * config/arc/arc.c (arc_init): Check FPU options.
5269 (get_arc_condition_code): Handle new CC_FPU* modes.
5270 (arc_select_cc_mode): Likewise.
5271 (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5272 register pair only. Allow access for ARCv2 accumulator.
5273 (gen_compare_reg): Whenever we have FPU support use FPU compare
5275 (arc_reorg): Don't generate brcc insns when FPU compare
5276 instructions are involved.
5277 * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5278 (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5279 floating point emulation.
5280 (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5281 (REVERSE_CONDITION): Add new CC_FPU* modes.
5282 (TARGET_FP_SP_BASE): Define.
5283 (TARGET_FP_DP_BASE): Likewise.
5284 (TARGET_FP_SP_FUSED): Likewise.
5285 (TARGET_FP_DP_FUSED): Likewise.
5286 (TARGET_FP_SP_CONV): Likewise.
5287 (TARGET_FP_DP_CONV): Likewise.
5288 (TARGET_FP_SP_SQRT): Likewise.
5289 (TARGET_FP_DP_SQRT): Likewise.
5290 (TARGET_FP_DP_AX): Likewise.
5291 * config/arc/arc.md (ARCV2_ACC): New constant.
5292 (type): New fpu type attribute.
5293 (SDF): Conditional iterator.
5294 (cstore<mode>, cbranch<mode>): Change expand condition.
5295 (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5296 handles FPU/FPX cases as well.
5297 * config/arc/arc.opt (mfpu): New option.
5298 * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5300 (adddf3, muldf3, subdf3): Removed.
5301 * config/arc/predicates.md (proper_comparison_operator): Recognize
5303 * config/arc/fpu.md: New file.
5304 * doc/invoke.texi (ARC Options): Document mfpu option.
5306 2016-02-16 Richard Biener <rguenther@suse.de>
5308 PR rtl-optimization/69291
5309 * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5310 noce_operand_ok check.
5312 2016-02-16 Tom de Vries <tom@codesourcery.com>
5315 * omp-low.c (simd_clone_create): Remove call to
5316 symtab->call_cgraph_insertion_hooks.
5318 2016-02-16 Jakub Jelinek <jakub@redhat.com>
5320 PR tree-optimization/69802
5321 * tree-ssa-reassoc.c (update_range_test): If op is
5322 SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5323 op == 1 test of precision 1 integral op, otherwise handle
5324 that case as op itself. Fix up formatting.
5325 (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5328 2016-02-16 Richard Biener <rguenther@suse.de>
5330 PR tree-optimization/69586
5331 * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5332 types for conversion sources.
5334 2016-02-16 Richard Biener <rguenther@suse.de>
5337 * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5338 mask OEP_ADDRESS_OF.
5340 2016-02-16 Alan Modra <amodra@gmail.com>
5343 * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5344 (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5345 (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5347 (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5348 (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5349 (p8_fmrgow_<mode>): Likewise.
5350 (reload_vsx_from_gpr<mode>): Make clobber IF. Adjust for above
5352 (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5353 (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5354 to use movdi_internal64. Remove op0_di.
5355 * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5357 2016-02-15 Evandro Menezes <e.menezes@samsung.com>
5359 Add support for the FCCMP insn types
5361 * config/aarch64/aarch64.md (fccmp): Change insn type.
5363 * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5364 * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5365 * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5366 * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5367 * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5368 * config/arm/types.md (fccmps): Add new insn type.
5371 2016-02-15 Bernd Edlinger <bernd.edlinger@hotmail.de>
5373 * alias.c (get_alias_set): Fix a typo in comment.
5375 2016-02-15 Richard Biener <rguenther@suse.de>
5377 PR tree-optimization/69595
5378 * match.pd: Complete range test simplification to true.
5380 2016-02-15 Bernd Schmidt <bschmidt@redhat.com>
5382 PR rtl-optimization/69648
5383 * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5384 pic_offset_table_rtx.
5386 PR rtl-optimization/69752
5387 * ira.c (update_equiv_regs): When looking for more than a single SET,
5388 also take other side effects into account.
5390 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5392 * config/s390/s390.c (s390_function_profiler): Add a new sequence
5393 for z900+ CPUs in 31-bit mode.
5395 2016-02-15 Marcin Kościelnicki <koriakin@0x04.net>
5397 * common/config/s390/s390-common.c (s390_supports_split_stack):
5399 (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5400 * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5401 * config/s390/s390.c (struct machine_function): New field
5402 split_stack_varargs_pointer.
5403 (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5404 in s390_emit_prologue.
5405 (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5407 (morestack_ref): New global.
5408 (SPLIT_STACK_AVAILABLE): New macro.
5409 (s390_expand_split_stack_prologue): New function.
5410 (s390_live_on_entry): New function.
5411 (s390_va_start): Use split-stack vararg pointer if appropriate.
5412 (s390_asm_file_end): Emit the split-stack note sections.
5413 (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5414 * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5415 (UNSPECV_SPLIT_STACK_CALL): New unspec.
5416 (UNSPECV_SPLIT_STACK_DATA): New unspec.
5417 (split_stack_prologue): New expand.
5418 (split_stack_space_check): New expand.
5419 (split_stack_data): New insn.
5420 (split_stack_call): New expand.
5421 (split_stack_call_*): New insn.
5422 (split_stack_cond_call): New expand.
5423 (split_stack_cond_call_*): New insn.
5425 2016-02-15 Richard Biener <rguenther@suse.de>
5427 PR tree-optimization/69783
5428 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5429 Add trivially correct cases.
5431 2016-02-15 Tom de Vries <tom@codesourcery.com>
5434 * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5436 * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5438 2016-02-15 Richard Biener <rguenther@suse.de>
5440 PR tree-optimization/69776
5441 * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5442 * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5443 indicate whether we can use TBAA to disambiguate against stores.
5444 Use alias-set zero if not.
5445 (visit_reference_op_store): Do not use TBAA when looking up
5447 * tree-ssa-pre.c (compute_avail): Use TBAA here.
5448 (eliminate_dom_walker::before_dom_children): But not when looking
5449 up redundant stores.
5451 2016-02-14 John David Anglin <danglin@gcc.gnu.org>
5453 * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5455 2016-02-14 Venkataramanan Kumar <venkataramanan.kumar@amd.com>
5457 * config/i386/znver1.md
5458 (znver1_pop, znver1_pop_mem,
5459 znver1_load_imov_double_store,
5460 znver1_load_imov_direct_store,
5461 znver1_load_imov_direct_load,
5462 znver1_load_imov_double_load): Add new.
5463 (znver1_insn, znver1_insn_load): Add icmov type.
5465 znver1_sseavx_fma_load,
5467 znver1_avx256_fma_load): Fix pipe usage.
5469 2016-02-14 Alan Modra <amodra@gmail.com>
5472 * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5473 with an invalid hard reg, reload just the reg not the entire
5474 pre/post-inc/dec address expression.
5476 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5479 * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5480 fixed R1_REG scratch reg.
5481 (sibcall_value_pcrel_fdpic): Likewise.
5483 2016-02-13 Oleg Endo <olegendo@gcc.gnu.org>
5487 * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5489 2016-02-12 Walter Lee <walt@tilera.com>
5491 * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5492 * config/tilegx/t-tilegx: Likewise.
5494 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5497 * diagnostic-show-locus.c (struct line_span): New struct.
5498 (layout::get_first_line): Delete.
5499 (layout::get_last_line): Delete.
5500 (layout::get_num_line_spans): New member function.
5501 (layout::get_line_span): Likewise.
5502 (layout::print_heading_for_line_span_index_p): Likewise.
5503 (layout::get_expanded_location): Likewise.
5504 (layout::calculate_line_spans): Likewise.
5505 (layout::m_first_line): Delete.
5506 (layout::m_last_line): Delete.
5507 (layout::m_line_spans): New field.
5508 (layout::layout): Update comment. Replace m_first_line and
5509 m_last_line with m_line_spans, replacing their initialization
5510 with a call to calculate_line_spans.
5511 (diagnostic_show_locus): When printing source lines and
5512 annotations, rather than looping over a single span
5513 of lines, instead loop over each line_span within
5514 the layout, with an inner loop over the lines within them.
5515 Call the context's start_span callback when changing line spans.
5516 * diagnostic.c (diagnostic_initialize): Initialize start_span.
5517 (diagnostic_build_prefix): Break out the building of the location
5518 part of the string into...
5519 (diagnostic_get_location_text): ...this new function, rewriting
5520 it from nested ternary expressions to a sequence of "if"
5522 (default_diagnostic_start_span_fn): New function.
5523 * diagnostic.h (diagnostic_start_span_fn): New typedef.
5524 (diagnostic_context::start_span): New field.
5525 (default_diagnostic_start_span_fn): New prototype.
5527 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5530 * gcc.c (driver::finalize): Fix cleanup of "specs".
5532 2016-02-12 David Malcolm <dmalcolm@redhat.com>
5536 * gcc.c (driver::driver): Initialize m_option_suggestions.
5537 (driver::~driver): Clean up m_option_suggestions.
5538 (suggest_option): Convert to...
5539 (driver::suggest_option): ...this, and split out into
5540 driver::build_option_suggestions and find_closest_string.
5541 (driver::build_option_suggestions): New function, from
5542 first half of suggest_option. Special-case
5543 OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5544 the sanitizer_opts array. For options of enum types, add the
5545 various enum values to the candidate strings.
5546 (driver::handle_unrecognized_options): Remove "const".
5547 * gcc.h (driver::handle_unrecognized_options): Likewise.
5548 (driver::build_option_suggestions): New decl.
5549 (driver::suggest_option): New decl.
5550 (driver::m_option_suggestions): New field.
5551 * opts-common.c (add_misspelling_candidates): New function.
5552 * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5553 and make non-static.
5554 * opts.h (sanitizer_opts): New array decl.
5555 (add_misspelling_candidates): New function decl.
5556 * spellcheck.c (find_closest_string): New function.
5557 * spellcheck.h (find_closest_string): New function decl.
5559 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5561 PR rtl-optimization/69764
5562 PR rtl-optimization/69771
5563 * optabs.c (expand_binop_directly): For shift_optab_p, force
5564 convert_modes with VOIDmode if xop1 has VOIDmode.
5566 2016-02-12 Ilya Enkovich <enkovich.gnu@gmail.com>
5569 * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5570 to correctly determine instrumentation thunks.
5572 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5575 * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5576 type by reference, force lhs on the call.
5579 * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5580 Compute retval and retbnd early in all cases if split_part_return_p
5581 and return_bb is not EXIT. Remove all clobber stmts and reset
5582 all debug stmts that refer to SSA_NAMEs defined in split part,
5583 except if it is retval, in that case replace the old retval with the
5584 lhs of the call to the split part.
5586 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5589 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5592 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5593 whose result is used in PHI.
5594 (maybe_optimize_range_tests): Likewise.
5595 (final_range_test_p): Likweise.
5597 2016-02-12 Kugan Vivekanandarajah <kuganv@linaro.org>
5600 * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5601 whose result is used in PHI.
5602 (maybe_optimize_range_tests): Likewise.
5603 (final_range_test_p): Likweise.
5605 2016-02-12 Jakub Jelinek <jakub@redhat.com>
5607 * cgraph.c: Spelling fixes - behaviour -> behavior and
5608 neighbour -> neighbor.
5609 * target.def: Likewise.
5610 * sel-sched.c: Likewise.
5611 * config/mips/mips.c: Likewise.
5612 * config/arc/arc.md: Likewise.
5613 * config/arm/cortex-a57.md: Likewise.
5614 * config/arm/arm.c: Likewise.
5615 * config/arm/neon.md: Likewise.
5616 * config/arm/arm-c.c: Likewise.
5617 * config/vms/vms-c.c: Likewise.
5618 * config/s390/s390.c: Likewise.
5619 * config/i386/znver1.md: Likewise.
5620 * config/i386/i386.c: Likewise.
5621 * config/ia64/hpux-unix2003.h: Likewise.
5622 * config/msp430/msp430.md: Likewise.
5623 * config/rx/rx.c: Likewise.
5624 * config/rx/rx.md: Likewise.
5625 * config/aarch64/aarch64-simd.md: Likewise.
5626 * config/aarch64/aarch64.c: Likewise.
5627 * config/nvptx/nvptx.c: Likewise.
5628 * config/bfin/bfin.c: Likewise.
5629 * config/cris/cris.opt: Likewise.
5630 * config/rs6000/rs6000.c: Likewise.
5631 * target.h: Likewise.
5632 * spellcheck.c: Likewise.
5633 * ira-build.c: Likewise.
5634 * tree-inline.c: Likewise.
5635 * builtins.c: Likewise.
5636 * lra-constraints.c: Likewise.
5637 * explow.c: Likewise.
5638 * hwint.h: Likewise.
5639 * targhooks.c: Likewise.
5640 * tree-vect-data-refs.c: Likewise.
5642 * doc/tm.texi: Likewise.
5643 * doc/extend.texi: Likewise.
5644 * doc/install.texi: Likewise.
5645 * doc/md.texi: Likewise.
5646 * tree-ssa-tail-merge.c: Likewise.
5647 * sched-int.h: Likewise.
5648 * match.pd: Likewise.
5649 * sched-ebb.c: Likewise.
5650 * target.def (omit_struct_return_reg): Likewise.
5651 * gimple-ssa-isolate-paths.c: Likewise.
5652 (find_implicit_erroneous_behaviour): Renamed to...
5653 (find_implicit_erroneous_behavior): ... this.
5654 (find_explicit_erroneous_behaviour): Renamed to...
5655 (find_explicit_erroneous_behavior): ... this.
5656 (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5658 2016-02-11 Segher Boessenkool <segher@kernel.crashing.org>
5660 PR rtl-optimization/64682
5661 PR rtl-optimization/69567
5662 PR rtl-optimization/69737
5663 * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5664 in I2 as well, just lose it.
5666 2016-02-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
5668 * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5670 (aarch64_last_printed_tune_string): Likewise.
5671 (aarch64_declare_function_name): Only output .arch assembler
5672 directive if it will be different from the previously output
5673 directive. Same for .tune comment but only if -dA is set.
5674 (aarch64_start_file): New function.
5675 (TARGET_ASM_FILE_START): Define.
5677 2016-02-11 David Malcolm <dmalcolm@redhat.com>
5680 * Makefile.in (PLUGIN_HEADERS): Add params.list.
5682 2016-02-11 Jakub Jelinek <jakub@redhat.com>
5685 * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5686 -Wmaybe-uninitialized warning.
5688 2016-02-11 Oleg Endo <olegendo@gcc.gnu.org>
5691 * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5693 2016-02-11 Richard Biener <rguenther@suse.de>
5695 PR rtl-optimization/69291
5696 * ifcvt.c (noce_try_store_flag_constants): Do not allow
5697 subexpressions affected by changing the result.
5699 2016-02-10 Vladimir Makarov <vmakarov@redhat.com>
5702 * lra-constraints.c (curr_insn_transform): Find in/out operands
5703 for secondary memory moves. Update dups.
5705 2016-02-10 Yuri Rumyantsev <ysrumyan@gmail.com>
5707 PR tree-optimization/69652
5708 * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5709 to nested loop, did source re-formatting, skip debug statements,
5710 add check on statement with volatile operand, remove dead scalar
5713 2016-02-10 Jakub Jelinek <jakub@redhat.com>
5714 Patrick Palka <ppalka@gcc.gnu.org>
5718 * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5719 calls if the return type is TREE_ADDRESSABLE.
5720 * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5721 * ipa-split.c (split_function): Fix doubled "we" in comment.
5722 Use void return type for the split part even if
5723 !split_point->split_part_set_retval.
5725 2016-02-10 Bin Cheng <bin.cheng@arm.com>
5727 PR tree-optimization/68021
5728 * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5729 when computing the value of biv cand by itself.
5731 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5733 * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5734 (cortexa57_tunings): Likewise.
5735 (cortexa72_tunings): Likewise.
5736 (arch_macro_fusion_pair_p): Add support for AES fusion.
5737 * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5738 * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5739 Allow virtual registers before reload so early scheduling works.
5740 * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5741 correct latency and pipeline.
5742 (cortex_a57_crypto_complex): Likewise.
5743 (cortex_a57_crypto_xor): Likewise.
5744 (define_bypass): Add AES bypass.
5746 2016-02-10 Richard Biener <rguenther@suse.de>
5748 PR tree-optimization/69726
5749 * passes.def: Add DCE pass before late uninit.
5750 * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5751 really fixup if-conversions job.
5753 2016-02-10 Wilco Dijkstra <wdijkstr@arm.com>
5755 * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5756 (arm_cortex_a57_tune): Likewise.
5757 (aarch_macro_fusion_pair_p): Add support for AES fusion.
5758 * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5760 2016-02-10 Eric Botcazou <ebotcazou@adacore.com>
5762 * timevar.def (TV_PHASE_DBGINFO): Delete.
5763 (TV_PHASE_CHECK_DBGINFO): Likewise.
5764 * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5766 2016-02-10 Richard Biener <rguenther@suse.de>
5768 PR tree-optimization/69719
5769 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5770 Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5772 2016-02-09 Andrew Pinski <apinski@cavium.com>
5775 * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5776 get_vcond_mask_icode returns false.
5778 2016-02-09 Michael Meissner <meissner@linux.vnet.ibm.com>
5781 * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5782 an ADDIS that adds a pointer to a large constant that sets the
5783 upper16 bits with a load operation.
5785 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5788 * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5790 * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5792 (vzipq_s16): Likewise.
5793 (vzipq_s32): Likewise.
5794 (vzipq_f32): Likewise.
5795 (vzipq_u8): Likewise.
5796 (vzipq_u16): Likewise.
5797 (vzipq_u32): Likewise.
5798 (vzipq_p8): Likewise.
5799 (vzipq_p16): Likewise.
5801 2016-02-09 Charles Baylis <charles.baylis@linaro.org>
5804 * config/arm/arm.c (neon_endian_lane_map): New function.
5805 (neon_vector_pair_endian_lane_map): New function.
5806 (arm_evpc_neon_vuzp): Allow for big endian lane order.
5807 * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5809 (vuzpq_s16): Likewise.
5810 (vuzpq_s32): Likewise.
5811 (vuzpq_f32): Likewise.
5812 (vuzpq_u8): Likewise.
5813 (vuzpq_u16): Likewise.
5814 (vuzpq_u32): Likewise.
5815 (vuzpq_p8): Likewise.
5816 (vuzpq_p16): Likewise.
5818 2016-02-11 Alexandre Oliva <aoliva@redhat.com>
5821 * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5824 2016-02-09 Uros Bizjak <ubizjak@gmail.com>
5826 * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5827 truncate const_int operand 1 to QImode.
5829 2016-02-09 Eric Botcazou <ebotcazou@adacore.com>
5831 * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5832 corresponding to an abnormal edge.
5834 2016-02-09 Tom de Vries <tom@codesourcery.com>
5836 PR tree-optimization/69599
5837 * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5839 (find_func_aliases_for_builtin_call, find_func_clobbers)
5840 (ipa_pta_execute): Handle case that foo and foo._0 are not in same lto
5843 2016-02-09 Richard Biener <rguenther@suse.de>
5845 PR tree-optimization/69715
5846 * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5847 LHS on calls as non-rewritable.
5849 2016-02-09 Tom de Vries <tom@codesourcery.com>
5852 * lto-wrapper.c (append_diag_options): New function.
5853 (compile_offload_image): Call append_diag_options.
5855 2016-02-08 Sandra Loosemore <sandra@codesourcery.com>
5858 * doc/extend.texi (Flag Output Operands): Correct sectioning.
5859 Minor copy-edit to fix verb tenses.
5861 2016-02-08 Jakub Jelinek <jakub@redhat.com>
5863 PR tree-optimization/69209
5864 * ipa-split.c (split_function): If split part is not
5865 returning retval, retval has gimple type but is not
5866 gimple value, force it into a SSA_NAME first.
5868 2016-02-08 Nicklas Bo Jensen <nbjensen@gmail.com>
5870 * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5873 2016-02-08 Jason Merrill <jason@redhat.com>
5876 * convert.c (convert_to_integer_1): Check dofold on truncation
5878 (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5879 (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5880 Rename from *_nofold.
5881 * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5882 (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5884 2016-02-08 Bernd Schmidt <bschmidt@redhat.com>
5887 * tree.c (build_common_tree_nodes): Remove short_double argument.
5888 All callers changed.
5889 * tree.h (build_common_tree_nodes): Adjust declaration.
5890 * doc/invoke.texi (-fshort-double): Remove documentation.
5891 * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5892 MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5893 * lto-wrapper.c (merge_and_complain, append_compiler_options)
5894 (append_linker_options): Don't handle OPT_fshort_double.
5896 PR rtl-optimization/68730
5897 * lra-remat.c (insn_to_cand_activation): New static variable.
5898 (lra_remat): Allocate and free it.
5899 (create_cand): New arg activation. Initialize a field in
5900 insn_to_cand_activation if it is nonnull.
5901 (create_cands): Pass the activation insn to create_cand when making
5902 a candidate involving an output reload. Reorganize code a little.
5903 (do_remat): Keep track of active status of candidates in a separate
5906 2016-02-08 Richard Biener <rguenther@suse.de>
5908 PR tree-optimization/69719
5909 * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5910 Properly use absolute of the difference of the two offsets to
5911 compare or adjust the segment length.
5913 2016-02-08 Richard Biener <rguenther@suse.de>
5914 Jeff Law <law@redhat.com>
5917 * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5918 types for anonymous SSA names.
5920 2016-02-08 Richard Biener <rguenther@suse.de>
5922 PR rtl-optimization/69274
5923 * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5925 2016-02-08 Jeff Law <law@redhat.com>
5927 PR tree-optimization/65917
5928 * tree-ssa-dom.c (record_temporary_equivalences): Record both
5929 equivalences from if (x == y) style conditionals.
5930 (loop_depth_of_name): Remove.
5931 (record_equality): Remove loop depth check.
5932 * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5933 (const_and_copies::record_const_or_copy_raw): New member function.
5934 * tree-ssa-scopedtables.c
5935 (const_and_copies::record_const_or_copy_raw): New, factored out of
5936 (const_and_copies::record_const_or_copy): Call new member function.
5938 2016-02-05 Jeff Law <law@redhat.com>
5940 PR tree-optimization/68541
5941 * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5942 (count_stmts_in_block): New function.
5943 (poor_ifcvt_candidate_code): Likewise.
5944 (is_feasible_trace): Add some heuristics to determine when path
5945 splitting is profitable.
5946 (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5947 is a diamond with a single exit.
5949 2016-02-05 Martin Sebor <msebor@redhat.com>
5952 * doc/invoke.texi: Update -Wplacement-new to take an optional
5955 2016-02-06 Richard Henderson <rth@redhat.com>
5958 * tree.c (tree_nop_conversion_p): Do not strip casts into or
5959 out of non-standard address spaces.
5961 2016-02-05 Jakub Jelinek <jakub@redhat.com>
5963 PR rtl-optimization/69691
5964 * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5966 2016-02-05 Pat Haugen <pthaugen@us.ibm.com>
5968 * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5969 * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5970 (*ieee128_mfvsrd_64bit): Likewise.
5971 (*ieee128_mfvsrd_32bit): Likewise.
5973 2016-02-05 Ilya Enkovich <enkovich.gnu@gmail.com>
5977 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
5979 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5980 instrumented_version.
5982 2016-01-05 Jeremy Bennett <jeremy.bennett@embecosm.com>
5984 * doc/invoke.texi (Optimize Options): In table of --param options
5985 rename second occurrence of tracer-min-branch-ratio to
5986 tracer-min-branch-probability, rename
5987 tracer-min-branch-ratio-feedback to
5988 tracer-min-branch-probability-feedback and clarify description,
5989 rename sched-spec-state-edge-prob-cutoff to
5990 sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5991 to selsched-insns-to-rename, rename lto-minpartition to
5992 lto-min-partition, delete reorder-blocks-duplicate and
5993 reorder-blocks-duplicate-feedback.
5995 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
5997 * config/s390/s390.c (s390_register_info_set_ranges): Remove
6000 2016-02-05 Dominik Vogt <vogt@linux.vnet.ibm.com>
6002 * doc/extend.texi: S/390: Correct some typos.
6004 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6006 * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6008 2016-02-05 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
6011 * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6012 (s390_register_info_gprtofpr): Use new macros above.
6013 (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6015 (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6016 its name. Adjust restore and save gpr ranges.
6017 (s390_register_info_set_ranges): New function.
6018 (s390_register_info): Use new macros above. Call
6019 s390_register_info_set_ranges.
6020 (s390_optimize_register_info): Likewise.
6021 (s390_hard_regno_rename_ok): Use new macros.
6022 (s390_hard_regno_scratch_ok): Likewise.
6023 (s390_emit_epilogue): Likewise.
6024 (s390_can_use_return_insn): Likewise.
6025 (s390_optimize_prologue): Likewise.
6026 * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6028 2016-02-05 Jakub Jelinek <jakub@redhat.com>
6031 * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6033 (ix86_option_override_internal): Disable TARGET_STV even for
6034 -m{incoming,preferred}-stack-boundary=3.
6036 2016-02-03 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
6038 * config.gcc: Mark deprecated rtems targets as obsolete.
6040 2016-02-04 Segher Boessenkool <segher@kernel.crashing.org>
6042 PR rtl-optimization/64682
6043 PR rtl-optimization/69567
6044 * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6045 before I2 only if the register is both used and set in I2.
6047 2016-02-04 DJ Delorie <dj@redhat.com>
6049 * config/msp430/msp430.c (msp430_start_function): Add function type.
6051 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6054 * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6056 2016-02-04 Uros Bizjak <ubizjak@gmail.com>
6058 PR rtl-optimization/69577
6060 2015-10-29 Richard Henderson <rth@redhat.com>
6064 * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6065 sse check to the exact conditions of PR 67609.
6067 2016-02-04 Michael Meissner <meissner@linux.vnet.ibm.com>
6070 * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6071 instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6072 not allowed into the traditional Altivec registers.
6073 (movtd_64bit_nodm): Likewise.
6074 (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6076 2016-02-04 David Malcolm <dmalcolm@redhat.com>
6078 * config/aarch64/cortex-a57-fma-steering.c
6079 (aarch64_register_fma_steering): Remove "static" from arguments
6082 2016-02-04 Wilco Dijkstra <wdijkstr@arm.com>
6085 * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6088 2016-02-04 Mike Frysinger <vapier@gentoo.org>
6090 * doc/invoke.texi: Delete -mno-fma4.
6092 2016-02-04 Richard Sandiford <richard.sandiford@arm.com>
6094 PR rtl-optimization/69577
6095 * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6096 (find_subregs_of_mode): Update accordingly. Iterate over partial
6099 2016-02-04 Alan Lawrence <alan.lawrence@arm.com>
6101 * config/arm/arm-protos.h (neon_reinterpret): Remove.
6102 * config/arm/arm.c (neon_reinterpret): Remove.
6103 * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6104 vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6105 vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6106 vreinterpretti): Remove.
6107 * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6108 neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6109 neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6110 neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6111 neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6112 neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6113 * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6114 vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6115 vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6116 vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6117 vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6118 vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6119 vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6120 vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6121 vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6122 vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6123 vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6124 vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6125 vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6126 vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6127 vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6128 vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6129 vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6130 vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6131 vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6132 vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6133 vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6134 vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6135 vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6136 vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6137 vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6138 vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6139 vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6140 vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6141 vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6142 vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6143 vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6144 vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6145 vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6146 vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6147 vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6148 vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6149 vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6150 vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6151 vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6152 vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6153 vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6154 vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6155 vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6156 vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6157 vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6158 vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6159 vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6160 vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6161 vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6162 vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6163 vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6164 vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6165 vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6166 vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6167 vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6168 vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6169 vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6170 vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6171 vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6172 vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6173 vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6174 vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6175 vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6176 vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6177 vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6178 vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6179 vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6180 vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6181 vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6182 vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6183 vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6184 vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6185 vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6186 vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6187 vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6188 vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6189 vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6190 vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6191 vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6192 vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6193 vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6194 vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6195 vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6196 vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6197 vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6198 vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6199 vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6200 vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6201 vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6202 vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6203 vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6204 vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6205 vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6206 vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6207 vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6208 vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6209 vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6211 2016-02-04 Martin Liska <mliska@suse.cz>
6214 * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6215 that are gimple_store_p.
6216 (maybe_instrument_call): Likewise.
6218 2016-02-04 Bin Cheng <bin.cheng@arm.com>
6220 * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6221 register scaling out of memory reference and comment why.
6223 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6227 * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6228 folding the source of a SET.
6230 2016-02-04 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6234 * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6235 the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6237 2016-02-04 Jim Wilson <jim.wilson@linaro.org>
6241 * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6244 2016-02-04 Christian Bruel <christian.bruel@st.com>
6246 * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6247 * config/arm/arm.c (arm_set_current_function): Likewise.
6249 2016-02-04 Jakub Jelinek <jakub@redhat.com>
6250 Ilya Enkovich <enkovich.gnu@gmail.com>
6251 H.J. Lu <hongjiu.lu@intel.com>
6254 * config/i386/i386.c (convert_scalars_to_vector): Remove
6255 stack alignment fixes.
6256 (ix86_option_override_internal): Disable TARGET_STV if stack
6257 might not be aligned enough.
6258 (ix86_minimum_alignment): Assert that TARGET_STV is false.
6260 2016-02-04 Victoria Stepanyan <victoria.stepanyan@amd.com>
6262 * gcc/config/i386/x86-tune.def: Disable default prefetching
6265 2016-02-03 Michael Meissner <meissner@linux.vnet.ibm.com>
6266 Vladimir Makarov <vmakarov@redhat.com>
6269 * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6270 in validating fused toc addresses.
6272 2016-02-03 Jakub Jelinek <jakub@redhat.com>
6275 * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6276 range->m_caret fields if range->m_show_caret_p is false.
6279 * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6280 Force oldval into register if it does not satisfy reg_or_short_operand
6281 predicate. Fix up formatting.
6283 2016-02-03 Vladimir Makarov <vmakarov@redhat.com>
6284 Alexandre Oliva <aoliva@redhat.com>
6287 * lra-constraints.c (simplify_operand_subreg): Check additionally
6288 address validity after potential reloading.
6289 (process_address_1): Check insns validity. In case of failure do
6292 2016-02-03 Kirill Yukhin <kirill.yukhin@intel.com>
6295 * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6298 2016-02-02 Jakub Jelinek <jakub@redhat.com>
6300 * wide-int.cc (canonize_uhwi): New function.
6301 (wi::divmod_internal): Use it.
6303 2016-02-02 James Norris <jnorris@codesourcery.com
6305 * gimplify.c (omp_notice_variable): Add usage check.
6307 2016-02-02 Alexander Monakov <amonakov@ispras.ru>
6309 * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6310 like LE, GE, LT, GT when emitting relational operator.
6312 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6314 * ira-costs.c (find_costs_and_classes): Add extra argument.
6315 * target.def (ira_change_pseudo_allocno_class): Add parameter.
6316 * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6317 * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6318 * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6319 Add best_class parameter, and return it if not ALL_REGS.
6320 * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6322 * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6325 2016-02-02 Wilco Dijkstra <wdijkstr@arm.com>
6327 * config/aarch64/aarch64.c
6328 (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6329 (aarch64_ira_change_pseudo_allocno_class): New function.
6331 2016-02-02 Uros Bizjak <ubizjak@gmail.com>
6334 * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6336 2016-02-02 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
6338 * config/avr/avr.c (avr_option_override): Set
6339 PARAM_ALLOW_STORE_DATA_RACES to 1.
6341 2016-02-02 Richard Biener <rguenther@suse.de>
6343 PR tree-optimization/69595
6344 * match.pd: Add range test simplifications to true/false.
6346 2016-02-02 Thomas Schwinge <thomas@codesourcery.com>
6348 * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6349 * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6352 2016-02-02 Richard Biener <rguenther@suse.de>
6354 PR tree-optimization/69606
6355 * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6356 info on the result before moving a stmt.
6358 2016-02-02 Yuri Rumyantsev <ysrumyan@gmail.com>
6361 * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6362 branch with vector comparison.
6363 * config/i386/sse.md (VI48_AVX): New mode iterator.
6364 (define_expand "cbranch<mode>4): Add support for conditional branch
6365 with vector comparison.
6366 * tree-vect-loop.c (optimize_mask_stores): New function.
6367 * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6368 has_mask_store field of vect_info.
6369 * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6370 vectorized loops having masked stores after vec_info destroy.
6371 * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6372 correspondent macros.
6373 (optimize_mask_stores): Add prototype.
6375 2016-02-02 Alan Modra <amodra@gmail.com>
6378 * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6381 2016-02-02 Alan Modra <amodra@gmail.com>
6384 * config/rs6000/rs6000.c (need_toc_init): New var, set it
6385 whenever toc_label_name used.
6386 (rs6000_file_start): Don't set up toc section here,
6387 (rs6000_output_function_epilogue): do so here instead,
6388 (rs6000_xcoff_file_start): and here.
6389 * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6390 (load_toc_aix_di): Likewise.
6392 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6394 PR rtl-optimization/69592
6395 * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6396 (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6397 (num_sign_bit_copies_binary_arith_p): New inline function.
6398 (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6400 2016-02-01 Jeff Law <law@redhat.com>
6402 PR tree-optimization/69580
6403 * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6404 * tree-ssa-threadbackward.c
6405 (fsm_find_control_statement_thread_paths): Do not try to walk
6406 through large PHI nodes.
6408 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6410 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6411 when count is incremented above limit, don't analyze further
6414 * omp-low.c (oacc_parse_default_dims): Avoid
6415 -Wsign-compare warning, make sure value fits into int
6416 rather than just unsigned int.
6418 2016-02-01 Bin Cheng <bin.cheng@arm.com>
6420 PR tree-optimization/67921
6421 * fold-const.c (split_tree): New parameters. Convert pointer
6422 type variable part to proper type before negating.
6423 (fold_binary_loc): Pass new arguments to split_tree.
6425 2016-02-01 Nathan Sidwell <nathan@codesourcery.com>
6427 * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6428 (nvptx_goacc_validate_dims): Extend to handle global defaults.
6429 * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6430 * doc/tm.texti: Rebuilt.
6431 * doc/invoke.texi (fopenacc-dim): Document.
6432 * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6433 (append_compiler_options): Likewise.
6434 * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6435 (oacc_parse_default_dims): New.
6436 (oacc_validate_dims): Add USED arg. Select non-unity default when
6438 (oacc_loop_fixed_partitions): Return mask of used partitions.
6439 (oacc_loop_auto_partitions): Emit dump info.
6440 (oacc_loop_partition): Return mask of used partitions.
6441 (execute_oacc_device_lower): Parse default dimension arg. Adjust
6442 loop partitioning and validation calls.
6444 2016-02-01 Richard Biener <rguenther@suse.de>
6447 * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6449 2016-02-01 Richard Biener <rguenther@suse.de>
6451 PR tree-optimization/69574
6452 * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6453 of asserting return chrec_dont_know.
6455 2016-02-01 Martin Liska <mliska@suse.cz>
6457 * mem-stats-traits.h: Add copyright header.
6458 * mem-stats.h: Likewise.
6460 2016-02-01 Richard Biener <rguenther@suse.de>
6462 PR tree-optimization/69579
6463 * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6464 Do not propagate through abnormal PHI results.
6466 2016-02-01 Eric Botcazou <ebotcazou@adacore.com>
6468 * postreload.c (reload_cse_simplify): Remove dead code.
6470 2016-02-01 Jakub Jelinek <jakub@redhat.com>
6472 PR rtl-optimization/69570
6473 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6474 if there is more than one set, not if there is a single set.
6476 2016-02-01 Richard Henderson <rth@redhat.com>
6479 * combine.c (make_compound_operation): When looking through a
6480 subreg, make sure to re-extend to the width of the outer mode.
6482 2016-01-30 Jakub Jelinek <jakub@redhat.com>
6484 PR tree-optimization/69546
6485 * wide-int.cc (wi::divmod_internal): For unsigned division
6486 where both operands fit into uhwi, if o1 is 1 and o0 has
6487 msb set, if divident_prec is larger than bits per hwi,
6488 clear another quotient word and return 2 instead of 1.
6489 Similarly for remainder with msb in HWI set, if dividend_prec
6490 is larger than bits per hwi.
6492 2016-01-29 Martin Jambor <mjambor@suse.cz>
6494 * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6495 Use short lowercase names.
6496 (get_memory_order): Mask with MEMMODEL_BASE_MASK. Support
6497 MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6498 acq_rel one. Protect warning agains segfaults if
6499 get_memory_order_name returns NULL.
6500 (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6501 with release semantics. Do not warn if get_memory_order already did.
6502 (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6503 semantics. Fix check for relaxed or acquire semantics. Do not warn
6504 if get_memory_order already did.
6506 2016-01-29 Sebastian Pop <s.pop@samsung.com>
6508 * doc/install.texi: Document that isl-0.16 is supported.
6510 2016-01-29 Vladimir Makarov <vmakarov@redhat.com>
6513 * config/i386/constraints.md (Bm): Describe as special memory
6515 * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6516 * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6517 * genpreds.c (struct constraint_data): Add is_special_memory.
6518 (have_special_memory_constraints, special_memory_start): New
6520 (special_memory_end): Ditto.
6521 (add_constraint): Add new arg is_special_memory. Add code to
6522 process its true value. Update have_special_memory_constraints.
6523 (process_define_constraint): Pass the new arg.
6524 (process_define_register_constraint): Ditto.
6525 (choose_enum_order): Process special memory.
6526 (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6527 function insn_extra_special_memory_constraint.
6528 (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6529 * gensupport.c (process_rtx): Process
6530 DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6531 * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6532 * ira-lives.c (single_reg_class): Use
6533 insn_extra_special_memory_constraint.
6534 * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6535 * lra-constraints.c (process_alt_operands): Ditto.
6536 (curr_insn_transform): Use insn_extra_special_memory_constraint.
6537 * recog.c (asm_operand_ok, preprocess_constraints): Process
6539 * reload.c (find_reloads): Ditto.
6540 * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6541 * stmt.c (parse_input_constraint): Use
6542 insn_extra_special_memory_constraint.
6544 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6547 * lra-splill.c (lra_final_code_change): Revert r229087 by
6548 removing all sub-registers.
6550 2016-01-29 Steve Ellcey <sellcey@imgtec.com>
6553 * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6555 2016-01-29 Jakub Jelinek <jakub@redhat.com>
6558 * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6559 SSE1, copy target into the temporary reg first before recursing
6562 2016-01-29 H.J. Lu <hongjiu.lu@intel.com>
6564 * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6567 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6569 * ginclude/stdarg.h: Test __cplusplus instead of
6570 __GXX_EXPERIMENTAL_CXX0X__.
6572 2016-01-29 Richard Biener <rguenther@suse.de>
6574 PR tree-optimization/69547
6575 * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6576 Do not mark clobbers necessary.
6577 (mark_all_reaching_defs_necessary_1): Likewise.
6579 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6581 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6582 declaration name with %qs and print it in both error messages.
6583 Also fix indentation.
6585 2016-01-29 Dominik Vogt <vogt@linux.vnet.ibm.com>
6588 * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6589 trailing blank line from error message.
6591 2016-01-29 Jonathan Wakely <jwakely@redhat.com>
6594 * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6597 2016-01-29 Richard Biener <rguenther@suse.de>
6600 * match.pd: Allow all integral types when simplifying a
6601 widening or sign-changing conversion.
6603 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6605 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6606 back to setting codegen_error to fail codegen.
6608 2016-01-28 Uros Bizjak <ubizjak@gmail.com>
6611 * config/i386/constraints.md (C): Only accept constant zero operand.
6612 (BC): New constraint.
6613 * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6614 instead of C constraint.
6615 * doc/md.texi (Machine Constraints): Update description
6618 2016-01-28 Steve Ellcey <sellcey@imgtec.com>
6621 * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6623 2016-01-28 Jakub Jelinek <jakub@redhat.com>
6626 * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6629 2016-01-28 Pat Haugen <pthaugen@us.ibm.com>
6631 * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6632 branches if using guessed profile.
6634 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
6636 * graphite-optimize-isl.c (optimize_isl): Fix dump.
6638 2016-01-28 Richard Henderson <rth@redhat.com>
6641 * config/aarch64/aarch64-modes.def (CC_Cmode): New
6642 * config/aarch64/aarch64-protos.h: Update.
6643 * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6644 (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6645 (aarch64_get_condition_code_1): Handle CC_Cmode.
6646 * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6647 (*add<mode>3_compareC_cconly_imm): New.
6648 (*add<mode>3_compareC_cconly): New.
6649 (*add<mode>3_compareC_imm): New.
6650 (add<mode>3_compareC): New.
6651 (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6652 to be first. Use aarch64_carry_operation.
6653 (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6654 (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6655 (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6656 (subti3): Use subdi3_compare1.
6657 (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6658 (sub<mode>3_compare1): New.
6659 (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6660 (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6661 (*subsi3_carryin_uxtw): Likewise.
6662 (*ngc<mode>, *ngcsi_uxtw): Likewise.
6663 (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6664 * config/aarch64/iterators.md (DWI): New.
6665 * config/aarch64/predicates.md (aarch64_carry_operation): New.
6666 (aarch64_borrow_operation): New.
6668 2016-01-28 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6670 * graphite-optimize-isl.c (optimize_isl): Print a different debug
6671 message when isl does not return a valid schedule.
6673 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6675 * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6676 Remove comments from class declarations: they are already in the code
6679 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6681 * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6683 (ternary_op_to_tree): Same.
6684 (unary_op_to_tree): Same.
6685 (nary_op_to_tree): Same.
6686 (gcc_expression_from_isl_expr_op): Same.
6687 (gcc_expression_from_isl_expression): Same.
6688 (graphite_create_new_loop): Same.
6689 (graphite_create_new_loop_guard): Same.
6690 (build_iv_mapping): Same.
6691 (graphite_create_new_guard): Same.
6692 (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6693 (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6695 2016-01-28 Sebastian Pop <s.pop@samsung.com>
6697 * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6698 instead of setting codegen_error to fail codegen.
6700 2016-01-28 Jason Merrill <jason@redhat.com>
6702 * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6704 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6706 * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6707 Remove CONST_INT_P check in CCMP cost calculation.
6709 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6711 * config/aarch64/aarch64.c (generic_vector_cost):
6712 Set vec_permute_cost.
6713 (cortexa57_vector_cost): Likewise.
6714 (exynosm1_vector_cost): Likewise.
6715 (xgene1_vector_cost): Likewise.
6716 (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6717 * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6718 Add vec_permute_cost entry.
6720 2016-01-28 Wilco Dijkstra <wdijkstr@arm.com>
6722 * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6724 (add<mode>3_compare0): Likewise.
6725 (addsi3_compare0_uxtw): Likewise.
6726 (add<mode>3nr_compare0): Likewise.
6727 (compare_neg<mode>): Likewise.
6728 (<optab><mode>3): Likewise.
6730 2016-01-28 Ilya Enkovich <enkovich.gnu@gmail.com>
6732 * tree-vect-stmts.c (vectorizable_comparison): Add
6733 NULL check for vectype.
6735 2016-01-28 Richard Biener <rguenther@suse.de>
6737 PR tree-optimization/69466
6738 * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6739 Account for PHIs we couldn't duplicate.
6741 2016-01-28 Martin Liska <mliska@suse.cz>
6744 * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6745 instead of ENABLE_VALGRIND_CHECKING.
6747 2016-01-27 Richard Henderson <rth@redhat.com>
6750 * lra-remat.c (subreg_regs): New.
6751 (dump_candidates_and_remat_bb_data): Dump it.
6752 (operand_to_remat): Reject if operand in subreg_regs.
6753 (set_bb_regs): Collect subreg_regs.
6754 (lra_remat): Init and free subreg_regs. Compute
6755 calculate_local_reg_remat_bb_data before create_cands.
6757 2016-01-27 H.J. Lu <hongjiu.lu@intel.com>
6760 * config/i386/i386.c (ix86_update_stack_boundary): Don't
6761 change stack_alignment_needed for __tls_get_addr call.
6763 2016-01-27 Segher Boessenkool <segher@kernel.crashing.org>
6765 * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6767 2016-01-27 Jeff Law <law@redhat.com>
6769 PR tree-optimization/68398
6770 PR tree-optimization/69196
6771 * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6772 (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6773 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6774 Only count PHIs in the last block in the path. The others will
6775 const/copy propagate away. Add heuristic to allow more irreducible
6776 subloops to be created when it is likely profitable to do so.
6778 * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6779 Fix typo in comment. Use gsi_after_labels and remove the GIMPLE_LABEL
6780 check from within the loop. Use gsi_next_nondebug rather than gsi_next.
6782 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6785 * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6786 END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6787 * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6788 * tree-streamer-in.c: Include asan.h.
6789 (streamer_get_builtin_tree): For builtins in sanitizer
6790 range call initialize_sanitizer_builtins and retry.
6792 2016-01-27 Ian Lance Taylor <iant@google.com>
6794 * common.opt (fkeep-gc-roots-live): New undocumented option.
6795 * tree-ssa-loop-ivopts.c (add_candidate_1): If
6796 -fkeep-gc-roots-live, skip pointers.
6797 (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6800 2016-01-27 Uros Bizjak <ubizjak@gmail.com>
6803 * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6804 (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6806 2016-01-27 Thomas Klausner <wiz@NetBSD.org>
6809 * configure.ac: NetBSD provides SSP in its C library.
6810 * configure: Updated.
6812 2016-01-27 Richard Biener <rguenther@suse.de>
6814 PR tree-optimization/69166
6815 * tree-vect-loop.c (vect_is_simple_reduction): Always check
6816 reduction code for commutativity / associativity.
6818 2016-01-27 Martin Jambor <mjambor@suse.cz>
6820 PR tree-optimization/69355
6821 * tree-sra.c (analyze_access_subtree): Correct hole detection when
6822 total_scalarization fails.
6824 2016-01-27 David Edelsohn <dje.gcc@gmail.com>
6826 * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6829 2016-01-27 Christian Bruel <christian.bruel@st.com>
6832 * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6833 Move arm_reset_previous_fndecl and set_target_option_current_node in
6834 the conditional part. Call save_restore_target_globals.
6835 * config/arm/arm.c (arm_set_current_function):
6836 Refactor to better support #pragma target and attribute mix.
6837 Call save_restore_target_globals.
6838 * config/arm/arm-protos.h (save_restore_target_globals): New function.
6840 2016-01-27 Martin Liska <mliska@suse.cz>
6842 * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6843 reference for an HSA kernel and its host function.
6845 2016-01-27 Jakub Jelinek <jakub@redhat.com>
6847 PR tree-optimization/69399
6848 * wide-int.h (wi::lrshift): For larger precisions, only
6849 use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6851 2016-01-27 Claudiu Zissulescu <claziss@synopsys.com>
6853 * config/arc/predicates.md (proper_comparison_operator): Reject
6854 constant-constant comparison.
6856 2016-01-26 Tom de Vries <tom@codesourcery.com>
6858 PR tree-optimization/69110
6859 * tree-data-ref.c (initialize_data_dependence_relation): Handle
6860 DR_NUM_DIMENSIONS == 0.
6862 2016-01-26 Abderrazek Zaafrani <a.zaafrani@samsung.com>
6863 Sebastian Pop <s.pop@samsung.com>
6865 * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6866 isl_ast_op_cond and isl_ast_op_select.
6867 (gcc_expression_from_isl_expr_op): Same.
6869 2016-01-26 Jason Merrill <jason@redhat.com>
6872 * tree.c (recompute_constructor_flags): Split out from
6874 (verify_constructor_flags): New.
6875 * tree.h: Declare them.
6877 2016-01-26 Iain Buclaw <ibuclaw@gdcproject.org>
6879 PR rtl-optimization/69217
6880 * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6881 are no TYPE_FIELDS set for the record type.
6883 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6886 * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6887 toc_label_name unconditionally.
6888 (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6889 SYMBOL_REF string. Use toc_label_name instead of constructing
6891 (rs6000_elf_declare_function_name): Use toc_label_name instead of
6892 constructing LCTOC1.
6894 2016-01-26 Martin Sebor <msebor@redhat.com>
6897 * doc/extend.texi (Common Type Attributes): Move text that talks about
6898 attribute packed from attribute aligned to the section discussing
6899 the former attribute for clarity.
6901 2016-01-26 Richard Henderson <rth@redhat.com>
6904 * trans-mem.c (tm_region_init): Mark entry block as visited.
6906 2016-01-26 David Malcolm <dmalcolm@redhat.com>
6909 * diagnostic-show-locus.c (layout::print_source_line): Replace
6910 call to pp_newline with call to layout::print_newline.
6911 (layout::print_annotation_line): Likewise.
6912 (layout::move_to_column): Likewise.
6913 (layout::print_any_fixits): After printing any fixits, print a
6914 trailing newline, if necessary.
6915 (layout::print_newline): New method, resetting any colorization
6917 (diagnostic_show_locus): Move the pp_newline to before the
6918 early bailout. Remove dummy block enclosing the layout instance.
6919 * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6920 of pp_newline_and_flush with pp_flush.
6921 (diagnostic_append_note): Delete use of pp_newline.
6922 (diagnostic_append_note_at_rich_loc): Delete.
6923 * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6924 * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6925 when newline characters are added to the buffer.
6927 2016-01-26 Michael Matz <matz@suse.de>
6929 * configure.ac (ac_cv_std_swap_in_utility): New test.
6930 * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6931 * configure: Regenerate.
6932 * config.in: Regenerate.
6934 2016-01-26 Claudiu Zissulescu <claziss@synopsys.com>
6936 * config/arc/arc.md (cstoresi4): Force operand into register.
6937 (arcset<code>): Fix predicate.
6938 (arcsetltu): Likewise.
6939 (arcsetgeu): Likewise.
6940 (arcsethi): Likewise.
6941 (arcsetls): Likewise.
6943 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6945 PR tree-optimization/69483
6946 * gimple-fold.c (canonicalize_constructor_val): Return NULL
6947 if base has error_mark_node type.
6949 2016-01-26 Christophe Lyon <christophe.lyon@linaro.org>
6952 * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6953 * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6955 (vget_lane_f16): Handle big-endian.
6956 (vgetq_lane_f16): Likewise.
6957 (vset_lane_f16): Likewise.
6958 (vsetq_lane_f16): Likewise.
6959 * config/arm/iterators.md (VQXMOV): Add V8HF.
6960 (VDQ): Add V4HF and V8HF.
6961 (V_reg): Handle V4HF and V8HF.
6962 (Is_float_mode): Likewise.
6963 * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6964 neon_vdup_nv8hf): New patterns.
6965 (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6966 Use VD_LANE iterator.
6967 (neon_vld1_dup<mode>): Use VQ2 iterator.
6969 2016-01-26 Nathan Sidwell <nathan@acm.org>
6971 * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6972 (set_oacc_fn_attrib): Add IS_KERNEL arg.
6973 * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6974 (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6975 (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6976 (oacc_validate_dims): Add LEVEL arg, don't return level.
6977 (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6979 (execute_oacc_device_lower): Adjust, add more dump output.
6980 * tree-ssa-loop.c (gate_oacc_kernels): Use
6981 oacc_fn_attrib_kernels_p.
6982 * tree-parloops.c (create_parallel_loop): Adjust
6983 set_oacc_fn_attrib call.
6985 2016-01-26 Jakub Jelinek <jakub@redhat.com>
6988 * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6989 (append_compiler_options): Handle -fcilkplus.
6990 (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6992 2016-01-26 Nick Clifton <nickc@redhat.com>
6995 * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6996 been marked as DECL_ONE_ONLY but we do not the means to make it
6997 so, then do not allow it to bind locally.
6999 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7002 * opts.h (parse_sanitizer_options): New prototype.
7003 * opts.c (sanitizer_opts): New array.
7004 (parse_sanitizer_options): New function.
7005 (common_handle_option): Use parse_sanitizer_options.
7007 2016-01-26 H.J. Lu <hongjiu.lu@intel.com>
7010 * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7011 alignment adjustment to ...
7012 (ix86_update_stack_boundary): Here. Don't over-align stack for
7014 (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7015 if __tls_get_addr is called.
7017 2016-01-26 Christian Bruel <christian.bruel@st.com>
7019 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7021 2016-01-26 Eric Botcazou <ebotcazou@adacore.com>
7023 * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7025 2016-01-26 Richard Biener <rguenther@suse.de>
7028 * match.pd: Guard X * CST CMP 0 pattern with single_use.
7030 2016-01-26 Richard Biener <rguenther@suse.de>
7032 PR tree-optimization/69452
7033 * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7034 (move_computations_dom_walker::before_dom_children): Rename
7036 (move_computations_worker): This.
7037 (move_computations): Perform an RPO rather than a DOM walk.
7039 2016-01-26 Jakub Jelinek <jakub@redhat.com>
7042 * combine.c (combine_instructions): For REG_EQUAL note with
7043 SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7044 to the underlying register.
7045 * doc/rtl.texi (REG_EQUAL): Document the behavior of
7046 REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7048 2016-01-26 Roger Ferrer Ibáñez <rofirrim@gmail.com>
7051 * config/aarch64/aarch64-builtins.c
7052 (aarch64_init_simd_builtin_types): Do not set structural
7053 equality to __Poly{8,16,64,128}_t types.
7055 2016-01-26 Richard Sandiford <richard.sandiford@arm.com>
7057 PR tree-optimization/69400
7058 * wide-int.cc (wi_pack): Take the precision as argument and
7059 perform canonicalization here rather than in the callers.
7060 Use the main loop to handle all full-width HWIs. Add a
7061 zero HWI if in_len isn't a full result.
7062 (wi::divmod_internal): Update accordingly.
7063 (wi::mul_internal): Likewise. Simplify.
7065 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7066 Sebastian Pop <s.pop@samsung.com>
7068 * graphite-poly.c (apply_poly_transforms): Simplify.
7069 (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7070 (print_isl_map): Same.
7071 (print_isl_union_map): Same.
7072 (print_isl_schedule): New.
7073 (debug_isl_schedule): New.
7074 * graphite-dependences.c (scop_get_reads): Do not call
7075 isl_union_map_add_map that is undocumented isl functionality.
7076 (scop_get_must_writes): Same.
7077 (scop_get_may_writes): Same.
7078 (scop_get_original_schedule): Remove.
7079 (scop_get_dependences): Do not call isl_union_map_compute_flow that
7080 is deprecated in isl 0.15. Instead, use isl_union_access_* interface.
7081 (compute_deps): Remove.
7082 * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7083 (debug_schedule_ast): New.
7084 (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7085 set_separate_option.
7086 (graphite_regenerate_ast_isl): Add dump.
7087 (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7088 from scop->transformed_schedule.
7089 (graphite_regenerate_ast_isl): Add more dump.
7090 * graphite-optimize-isl.c (optimize_isl): Set
7091 scop->transformed_schedule. Check whether schedules are equal.
7092 (apply_poly_transforms): Move here.
7093 * graphite-poly.c (apply_poly_transforms): ... from here.
7094 (free_poly_bb): Static.
7095 (free_scop): Static.
7096 (pbb_number_of_iterations_at_time): Remove.
7097 (print_isl_ast): New.
7098 (debug_isl_ast): New.
7099 (debug_scop_pbb): New.
7100 * graphite-scop-detection.c (print_edge): Move.
7102 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7103 (build_scop_scattering): Remove.
7104 (create_pw_aff_from_tree): Assert instead of bailing out.
7105 (add_condition_to_pbb): Remove unused code, do not fail.
7106 (add_conditions_to_domain): Same.
7107 (add_conditions_to_constraints): Remove.
7108 (build_scop_context): New.
7109 (add_iter_domain_dimension): New.
7110 (build_iteration_domains): Initialize pbb->iterators.
7111 Call add_conditions_to_domain.
7114 (index_outermost_in_loop): New.
7115 (index_pbb_in_loop): New.
7116 (outermost_pbb_in): New.
7117 (add_in_sequence): New.
7118 (add_outer_projection): New.
7119 (outer_projection_mupa): New.
7120 (add_loop_schedule): New.
7121 (build_schedule_pbb): New.
7122 (build_schedule_loop): New.
7123 (embed_in_surrounding_loops): New.
7124 (build_schedule_loop_nest): New.
7125 (build_original_schedule): New.
7126 (build_poly_scop): Call build_original_schedule.
7127 * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7128 (free_poly_dr): Remove.
7129 (struct poly_bb): Add iterators. Remove schedule, transformed, saved.
7130 (free_poly_bb): Remove.
7131 (debug_loop_vec): Remove.
7132 (print_isl_ast): Declare.
7133 (debug_isl_ast): Declare.
7134 (scop_do_interchange): Remove.
7135 (scop_do_strip_mine): Remove.
7136 (scop_do_block): Remove.
7137 (flatten_all_loops): Remove.
7138 (optimize_isl): Remove.
7139 (pbb_number_of_iterations_at_time): Remove.
7140 (debug_scop_pbb): Declare.
7141 (print_schedule_ast): Declare.
7142 (debug_schedule_ast): Declare.
7143 (struct scop): Remove schedule. Add original_schedule,
7144 transformed_schedule.
7145 (free_gimple_poly_bb): Remove.
7146 (print_generated_program): Remove.
7147 (debug_generated_program): Remove.
7148 (unify_scattering_dimensions): Remove.
7149 * sese.c (print_edge): ... here.
7150 (print_sese): ... here.
7151 (debug_edge): ... here.
7152 (debug_sese): ... here.
7153 * sese.h (print_edge): Declare.
7154 (print_sese): Declare.
7155 (dump_edge): Declare.
7156 (dump_sese): Declare.
7158 2016-01-25 Aditya Kumar <aditya.k7@samsung.com>
7159 Sebastian Pop <s.pop@samsung.com>
7161 * Makefile.in: Set ISLVER in site.exp.
7163 2016-01-25 Jakub Jelinek <jakub@redhat.com>
7165 * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7166 DECL_VALUE_EXPR of new_var even for the non-array case. Look
7167 through DECL_VALUE_EXPR for expansion.
7169 2016-01-25 Bernd Edlinger <bernd.edlinger@hotmail.de>
7171 * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7172 the frame info after reload completed.
7174 2016-01-25 Jeff Law <law@redhat.com>
7176 PR tree-optimization/69196
7177 PR tree-optimization/68398
7178 * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7179 tree-ssa-threadupdate.c.
7180 (determine_bb_domination_status): Prototype
7181 * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7182 (determine_bb_domination_status): No longer static.
7183 (valid_jump_thread_path): Remove code to detect characteristics
7184 of the jump thread path not associated with correctness.
7185 * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7186 Correct test for thread path length. Count PHIs for real operands as
7187 statements that need to be copied. Do not count ASSERT_EXPRs.
7188 Look at all the blocks in the thread path. Compute and selectively
7189 filter thread paths based on threading through the latch, threading
7190 a multiway branch or crossing a multiway branch.
7192 2016-01-25 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7194 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): Add
7195 decl with __attribute__ ((unused)) annotation.
7197 2016-01-25 Ilya Enkovich <enkovich.gnu@gmail.com>
7200 * tree-vect-stmts.c (vectorizable_condition): Check vectype
7201 of operands is compatible with a statement vectype.
7203 2016-01-25 Eric Botcazou <ebotcazou@adacore.com>
7205 * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7206 improve wording for mixed storage order support.
7208 2016-01-25 Bilyan Borisov <bilyan.borisov@arm.com>
7210 * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7211 (vcvt_u64_f64): Likewise.
7212 (vcvta_s64_f64): Likewise.
7213 (vcvta_u64_f64): Likewise.
7214 (vcvtm_s64_f64): Likewise.
7215 (vcvtm_u64_f64): Likewise.
7216 (vcvtn_s64_f64): Likewise.
7217 (vcvtn_u64_f64): Likewise.
7218 (vcvtp_s64_f64): Likewise.
7219 (vcvtp_u64_f64): Likewise.
7221 2016-01-25 Claudiu Zissulescu <claziss@synopsys.com>
7223 * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7224 (arc_init): Check validity mll64 option.
7225 (arc_save_restore): Use double load/store instruction.
7226 (arc_expand_movmem): Likewise.
7227 (arc_split_move): Don't split if we have double load/store
7228 instructions. Returns a boolean.
7229 (arc_process_double_reg_moves): Change function to return boolean
7230 instead of a sequence of instructions.
7231 (arc_dwarf_register_span): New function.
7232 * config/arc/arc-protos.h (arc_split_move): Change prototype.
7233 * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7234 * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7235 (*movdf_insn): Likewise.
7236 * config/arc/arc.opt (mll64): New option.
7237 * config/arc/predicates.md (even_register_operand): New predicate.
7238 * doc/invoke.texi (ARC Options): Add mll64 documentation.
7240 2016-01-25 Richard Biener <rguenther@suse.de>
7243 * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7244 * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7246 * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7248 2016-01-25 Richard Biener <rguenther@suse.de>
7250 PR tree-optimization/69376
7251 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7253 (VN_INFO_ANTI_RANGE_P): New inline.
7254 (VN_INFO_RANGE_TYPE): Likewise.
7255 * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7256 SSA_NAME_ANTI_RANGE_P.
7257 (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7258 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7259 Properly query VN_INFO_RANGE_TYPE.
7261 2016-01-25 Nick Clifton <nickc@redhat.com>
7264 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7266 2016-01-23 Tom de Vries <tom@codesourcery.com>
7268 PR tree-optimization/69426
7269 * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7272 2016-01-23 Jakub Jelinek <jakub@redhat.com>
7274 * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7275 "the the" with "the" in the comments.
7276 * ipa-devirt.c (build_type_inheritance_graph,
7277 update_type_inheritance_graph): Likewise.
7278 * tree.c (build_function_type_list_1): Likewise.
7279 * cfgloopmanip.c (scale_loop_profile): Likewise.
7280 * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7281 * gimple-ssa-split-paths.c
7282 (find_block_to_duplicate_for_splitting_paths): Likewise.
7283 * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7284 * expr.c (convert_move): Likewise.
7285 * var-tracking.c (vt_stack_adjustments): Likewise.
7286 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7287 * tree-vrp.c (test_for_singularity): Likewise.
7289 * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7290 directly instead of building a temporary tree.
7293 * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7294 remove <algorithm> include.
7296 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7299 * config/i386/i386.c: Include dojump.h.
7300 (expand_small_movmem_or_setmem,
7301 expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7303 (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7304 if dynamic_check != -1.
7306 2016-01-21 Jeff Law <law@redhat.com>
7309 * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7310 record_temporary_equivalences. Rewritten to avoid unnecessary calls
7311 into dominated_by_p.
7312 (cprop_into_successor_phis): Avoid unnecessary tests.
7314 2016-01-22 Richard Henderson <rth@redhat.com>
7317 * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7318 (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7320 2016-01-22 Michael Matz <matz@suse.de>
7322 * system.h (string, algorithm): Include only conditionally.
7323 (new): Include always under C++.
7324 * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7325 * final.c (toplevel): Ditto.
7326 * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7327 * genconditions.c (write_header): Make gencondmd.c define
7329 * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7331 * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7332 * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7334 2016-01-22 Christian Bruel <christian.bruel@st.com>
7337 * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7339 2016-01-22 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7342 * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7343 define_insn_and_split. Ensure operands[1] and operands[0] do not
7344 get assigned the same register.
7346 2016-01-22 Kugan Vivekanandarajah <kuganv@linaro.org>
7348 * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7350 2016-01-22 Christian Bruel <christian.bruel@st.com>
7352 * config/arm/arm-c.c (arm_pragma_target_parse):
7353 Remove warn_builtin_macro_redefined overwrite.
7355 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7357 * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7358 flag_non_call_exceptions compatibility.
7360 2016-01-22 Jakub Jelinek <jakub@redhat.com>
7363 * dwarf2out.c (add_child_die_after): New function.
7364 (dwarf_qual_info_t): New type.
7365 (dwarf_qual_info): New variable.
7366 (qualified_die_p): New function.
7367 (modified_type_die): For -fdebug-types-section, ensure
7368 canonical order of qualifiers. Put qualified DIEs adjacent
7369 to the corresponding non-qualified type DIE and search there
7370 for existing qualified DIEs.
7372 2016-01-22 Eric Botcazou <ebotcazou@adacore.com>
7374 * doc/extend.texi (scalar_storage_order type attribute): Document
7375 restriction on type punning and aliasing, and remove future tense.
7377 2016-01-21 Roman Zhuykov <zhroma@ispras.ru>
7380 * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7383 2016-01-21 Jeff Law <law@redhat.com>
7386 * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7387 useless call to record_temporary_equivalences.
7388 * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7389 allocate 10 slots in the bb_path vector and let it grow as needed.
7390 (fsm_find_control_statement_thread_paths): Similarly for the next_path
7393 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7395 * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7397 * configure: Regenerate.
7399 2016-01-21 Pat Haugen <pthaugen@us.ibm.com>
7401 * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7402 * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7404 2016-01-21 Bernd Schmidt <bschmidt@redhat.com>
7407 * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7408 drop EXPAND_INITIALIZER.
7409 * rtl.h (contains_symbolic_reference_p): Declare.
7410 * rtlanal.c (contains_symbolic_reference_p): New function.
7411 * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7412 a subtraction into a NOT if symbolic constants are involved.
7414 2016-01-21 Anton Blanchard <anton@samba.org>
7415 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
7418 * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7420 * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7423 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7425 * config/microblaze/microblaze.c
7426 (get_branch_target): New.
7427 (insert_wic_for_ilb_runout): New.
7429 (microblaze_machine_dependent_reorg): New.
7430 (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7431 * config/microblaze/microblaze.md
7432 (UNSPEC_IPREFETCH): Define.
7433 (iprefetch): New pattern
7434 * config/microblaze/microblaze.opt
7435 (mxl-prefetch): New flag.
7437 2016-01-21 Ajit Agarwal <ajitkum@xilinx.com>
7439 * config/microblaze/microblaze.h
7440 (FIXED_REGISTERS): Update in macro.
7441 (CALL_USED_REGISTERS): Update in macro.
7443 2016-01-21 Yuri Rumyantsev <ysrumyan@gmail.com>
7445 PR rtl-optimization/68920
7446 * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7449 2016-01-21 Vladimir Makarov <vmakarov@redhat.com>
7451 PR rtl-optimization/68990
7452 * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7453 pseudo instead of inheritance ones.
7455 2016-01-21 Bernd Edlinger <bernd.edlinger@hotmail.de>
7456 Nick Clifton <nickc@redhat.com>
7460 * config/mips/mips.c (mips_compute_frame_info): Initialise
7461 args_size and hard_frame_pointer_offset fields of the frame
7462 structure before calling mips_global_pointer.
7464 2016-01-21 David Edelsohn <dje.gcc@gmail.com>
7466 * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7468 * configure: Regenerate.
7470 2016-01-21 Richard Biener <rguenther@suse.de>
7472 * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7474 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7476 * config/s390/s390.c (s390_asm_declare_function_size): Add code
7477 to actually emit the .size directive.
7479 2016-01-21 Stefan Sørensen <stefan.sorensen@spectralink.com>
7480 Jakub Jelinek <jakub@redhat.com>
7484 * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7485 args array size by one to avoid buffer overflow.
7487 2016-01-21 Marcin Kościelnicki <koriakin@0x04.net>
7489 * config/s390/s390.md (pool_section_start): Use switch_to_section
7490 to select proper read-only data section instead of hardcoding
7492 (pool_section_end): Use switch_to_section to match the above.
7494 2016-01-21 Richard Biener <rguenther@suse.de>
7496 PR tree-optimization/69378
7497 * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7498 (set_ssa_val_to): Use it for dominance checks taking into
7499 account not executable edges.
7501 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7504 * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7505 for bitsize instead of GET_MODE_PRECISION (mode).
7507 2016-01-20 Martin Sebor <msebor@redhat.com>
7510 * extend.texi (__sync Builtins): Clarify the semantics of
7511 __sync_fetch_and_OP built-ins on pointers.
7512 (__atomic Builtins): Same.
7514 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7515 Sebastian Pop <s.pop@samsung.com>
7517 * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7518 (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7519 (is_valid_rename): Same.
7520 (translate_isl_ast_to_gimple::get_rename): Same.
7521 (translate_isl_ast_to_gimple::rename_all_uses): Same.
7522 (translate_isl_ast_to_gimple::rename_uses): Same.
7523 (get_new_name): Check for close_phi nodes.
7524 (copy_loop_phi_args): Use phi_node_kind.
7525 (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7526 (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7528 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7529 Sebastian Pop <s.pop@samsung.com>
7531 Revert commit r229783.
7532 * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7533 Remove use of parameter_rename_map.
7535 (copy_internal_parameters): Remove.
7536 (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7537 * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7538 (free_sese_info): Do not free parameter_rename_map.
7539 (set_rename): Do not use parameter_rename_map.
7540 (rename_uses): Update call to set_rename.
7541 (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7542 * sese.h (parameter_rename_map_t): Remove.
7543 (struct sese_info_t): Remove field parameter_rename_map.
7545 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7546 Sebastian Pop <s.pop@samsung.com>
7548 * graphite-isl-ast-to-gimple.c: Fix comment.
7549 * graphite-scop-detection.c (defined_in_loop_p): New.
7550 (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7551 names defined in loop.
7553 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7554 Sebastian Pop <s.pop@samsung.com>
7556 * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7557 Discard unstructured if-then-else regions.
7559 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7560 Sebastian Pop <s.pop@samsung.com>
7562 * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7563 (cleanup_loop_iter_dom): Remove.
7564 (build_loop_iteration_domains): Remove.
7565 (build_scop_context): Remove.
7566 (build_scop_iteration_domain): Remove.
7567 (add_loop_constraints): New.
7568 (build_iteration_domains): New.
7569 (build_poly_scop): Call build_iteration_domains.
7571 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7572 Sebastian Pop <s.pop@samsung.com>
7574 * graphite-scop-detection.c
7575 (scop_detection::harmful_loop_in_region): Free dom and loops.
7576 (scop_detection::loop_body_is_valid_scop): Free bbs.
7578 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7579 Sebastian Pop <s.pop@samsung.com>
7581 * graphite-scop-detection.c (record_loop_in_sese): New.
7582 (gather_bbs::before_dom_children): Call record_loop_in_sese.
7583 (build_scops): Remove call to build_sese_loop_nests.
7584 * sese.c (sese_record_loop): Remove.
7585 (build_sese_loop_nests): Remove.
7586 (new_sese_info): Remove region->loops.
7587 (free_sese_info): Same.
7588 * sese.h (sese_contains_loop): Same.
7589 (build_sese_loop_nests): Remove.
7590 (sese_contains_loop): Remove.
7592 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7593 Sebastian Pop <s.pop@samsung.com>
7595 * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7596 loop_is_valid_in_scop.
7597 (scop_detection::harmful_stmt_in_region): Renamed
7598 harmful_loop_in_region.
7599 Call loop_is_valid_in_scop.
7601 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7602 Sebastian Pop <s.pop@samsung.com>
7604 * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7607 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7608 Sebastian Pop <s.pop@samsung.com>
7610 * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7611 * graphite.h (struct poly_bb): Remove field is_reduction.
7612 (PBB_IS_REDUCTION): Remove.
7614 2016-01-21 Aditya Kumar <aditya.k7@samsung.com>
7615 Sebastian Pop <s.pop@samsung.com>
7617 * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7618 (add_pdr_constraints): Same.
7619 (scop_get_reads): Same.
7620 (scop_get_must_writes): Same.
7621 (scop_get_may_writes): Same.
7622 (scop_get_original_schedule): Same.
7623 (extend_schedule): Same.
7624 (apply_schedule_on_deps): Same.
7625 (carries_deps): Same.
7626 (compute_deps): Same.
7627 (scop_get_dependences): Same.
7628 * graphite-isl-ast-to-gimple.c
7629 (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7630 * graphite-optimize-isl.c (get_schedule_for_band): Same.
7631 (get_schedule_for_band_list): Same.
7632 (get_schedule_map): Same.
7633 (apply_schedule_map_to_scop): Same.
7634 * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7635 (build_loop_iteration_domains): Same.
7636 (add_condition_to_pbb): Same.
7637 (add_param_constraints): Same.
7638 (pdr_add_memory_accesses): Same.
7639 (pdr_add_data_dimensions): Same.
7641 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7643 * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7646 2016-01-20 Sandra Loosemore <sandra@codesourcery.com>
7648 * common.opt (feliminate-dwarf2-dups): Replace references to
7649 "DWARF 2" with just "DWARF".
7650 * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7651 * doc/extend.texi: Likewise.
7652 * doc/cpp.texi: Likewise.
7653 * doc/invoke.texi: Likewise.
7654 (Option Summary): Add -gdwarf to list of Debugging Options.
7655 (Debugging Options): Document -gdwarf.
7656 * doc/contrib.texi: Spell "DWARF" like that.
7658 2016-01-21 Jakub Jelinek <jakub@redhat.com>
7660 * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7661 warning. Fix up formatting.
7664 * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7665 attempt to mark memory input operand addressable and
7666 call prepare_gimple_addressable in that case. Don't adjust
7667 input_location for diagnostics, use error_at instead.
7669 2016-01-20 Peter Bergner <bergner@vnet.ibm.com>
7671 * config/rs6000/ppc-auxv.h: New file.
7672 * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7674 (cpu_supports): Likewise.
7675 * config/rs6000/rs6000.c: include "ppc-auxv.h".
7676 (cpu_is_info): New variable.
7677 (cpu_supports_info): Likewise.
7678 (tcb_verification_symbol): Likewise.
7679 (cpu_builtin_p): Likewise.
7680 (cpu_expand_builtin): New function.
7681 (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7682 (rs6000_init_builtins): Likewise.
7683 (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7684 * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7685 * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7686 * configure: Regenerate.
7687 * config.in: Likewise.
7688 * doc/extend.texi (PowerPC Built-in Functions): Document
7689 __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7691 2016-01-20 David Edelsohn <dje.gcc@gmail.com>
7694 * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7696 * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7699 2016-01-20 Richard Henderson <rth@redhat.com>
7705 * tree.c (tm_define_builtin): New.
7706 (find_tm_vector_type): New.
7707 (build_tm_vector_builtins): New.
7708 (build_common_builtin_nodes): Call it.
7710 2016-01-20 Christophe Lyon <christophe.lyon@linaro.org>
7712 * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7713 (arm_fp_ok): Likewise.
7715 (arm_crypto): Likewise.
7717 2016-01-20 Ilya Enkovich <enkovich.gnu@gmail.com>
7718 Richard Biener <rguenther@suse.de>
7720 PR tree-optimization/69328
7721 * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7722 vectors have same number of elements.
7723 (vectorizable_condition): Fix masked version recognition.
7725 2016-01-20 Richard Biener <rguenther@suse.de>
7727 PR tree-optimization/69345
7728 * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7729 (VN_INFO_PTR_INFO): Likewise.
7730 * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7731 info when it is equal between non-dominating SSA names.
7732 * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7733 Make sure to look at original SSA infos.
7735 2016-01-20 Jeff Law <law@redhat.com>
7738 * config/m68k/predicates.md (pow2_m1_operand): New predicate
7740 (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7741 (pc_or_label_operand): New predicate.
7742 * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7743 tests for small integers that are 2^n - 1.
7745 2016-01-20 Jonathan Wakely <jwakely@redhat.com>
7747 * doc/invoke.texi (Options Summary): Add '.' after @xref.
7749 2016-01-19 Jeff Law <law@redhat.com>
7752 * tree-ssa-threadbackwards.c
7753 (fsm_find_control_statement_thread_paths): Do not try to lookup
7754 FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7756 2016-01-20 Kugan Vivekanandarajah <kuganv@linaro.org>
7758 * doc/lto.texi: Remove text that says only Gold has linker plugin
7761 2016-01-19 Eric Botcazou <ebotcazou@adacore.com>
7763 * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7764 (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7765 the DIE accordingly.
7766 (modified_type_die): Add REVERSE parameter and pass it recursively,
7767 as well as to base_type_die. Adjust presence check accordingly.
7768 (base_type_for_mode): Adjust call to modified_type_die.
7769 (add_type_attribute): Add REVERSE parameter and pass it to
7771 (generic_parameter_die): Adjust call to add_type_attribute.
7772 (add_scalar_info): Likewise.
7773 (add_subscript_info): Likewise.
7774 (gen_array_type_die): Likewise.
7775 (gen_descr_array_type_die): Likewise.
7776 (gen_entry_point_die): Likewise.
7777 (gen_enumeration_type_die): Likewise.
7778 (gen_formal_parameter_die): Likewise.
7779 (gen_subprogram_die): Likewise.
7780 (gen_variable_die ): Likewise.
7781 (gen_const_die): Likewise.
7782 (gen_field_die): Likewise.
7783 (gen_pointer_type_die): Likewise.
7784 (gen_reference_type_die): Likewise.
7785 (gen_ptr_to_mbr_type_die): Likewise.
7786 (gen_inheritance_die): Likewise.
7787 (gen_subroutine_type_die): Likewise.
7788 (gen_typedef_die): Likewise.
7789 (force_type_die): Adjust call to modified_type_die.
7791 2016-01-19 Sandra Loosemore <sandra@codesourcery.com>
7793 * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7794 flow throughout the file. Fix broken link to Objective-C 2.0
7796 * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7799 2016-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7801 * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7803 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7806 * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7807 (maybe_record_node): Record cxa_pure_virtual as the only possible
7808 target if there are not ohter candidates.
7809 (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7811 2016-01-19 Richard Biener <rguenther@suse.de>
7813 * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7814 (get_memory_order): Likewise.
7816 2016-01-19 Kirill Yukhin <kirill.yukhin@intel.com>
7818 * tree-vect-stmts.c (vectorizable_store): Check
7821 2016-01-19 David Malcolm <dmalcolm@redhat.com>
7824 * gcc.c (driver::decode_argv): Add call to
7825 init_opts_obstack before init_options_struct.
7826 * opts.c (init_opts_obstack): Remove idempotency.
7827 (init_options_struct): Replace call to init_opts_obstack
7828 with a gcc_assert to verify that it has already been called.
7829 * toplev.c (toplev::main): Add call to init_opts_obstack before
7830 calls to init_options_struct.
7831 (toplev::finalize): Move cleanup of opts_obstack next to
7832 cleanup of save_decoded_options, clearing the latter, and
7833 save_decoded_options_count.
7835 2016-01-19 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
7838 * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7839 attribute to unconditional. Remove %? from output template.
7841 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7842 Jiong Wang <jiong.wang@arm.com>
7844 * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7845 generated from different expand order.
7847 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7849 * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7850 Add support for CCMP costing.
7852 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7854 * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7855 * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7856 (fccmpe<mode>): Likewise.
7857 (fcmp): Rename to fcmp and globalize pattern.
7859 * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7860 (aarch64_gen_ccmp_next): Add FP support.
7862 2015-01-19 Wilco Dijkstra <wdijkstr@arm.com>
7864 * target.def (gen_ccmp_first): Update documentation.
7865 (gen_ccmp_next): Likewise.
7866 * doc/tm.texi (gen_ccmp_first): Update documentation.
7867 (gen_ccmp_next): Likewise.
7868 * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7869 expand_ccmp_expr_1. Improve comments.
7870 * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7871 (ccmp_ior<mode>): Remove pattern.
7872 (cmp<mode>): Remove expand.
7873 (cmp): Globalize pattern.
7874 (cstorecc4): Use cc_register.
7875 (mov<mode>cc): Remove ccmp_cc_register check.
7876 * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7877 Simplify after removal of CC_DNE/* modes.
7878 (aarch64_ccmp_mode_to_code): Remove.
7879 (aarch64_print_operand): Remove 'K' case. Merge 'm' and 'M' cases.
7880 In 'k' case use integer as condition.
7881 (aarch64_nzcv_codes): Remove inverted cases.
7882 (aarch64_code_to_ccmode): Remove.
7883 (aarch64_gen_ccmp_first): Use cmp pattern directly. Return the correct
7884 comparison with CC register to be used in folowing CCMP/branch/CSEL.
7885 (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7886 pattern. Return the comparison with CC register. Invert conditions
7888 * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7889 * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7891 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7893 * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7894 instrumented_version.
7896 2016-01-19 Richard Biener <rguenther@suse.de>
7898 PR tree-optimization/69336
7899 * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7900 handled components with get_ref_base_and_extent.
7901 (equal_mem_array_ref_p): Adjust.
7903 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7906 * shrink-wrap.c: Include valtrack.h.
7907 (move_insn_for_shrink_wrap): Add DEBUG argument. If
7908 MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7909 in between insn and where it will be moved to. Call
7910 dead_debug_insert_temp.
7911 (prepare_shrink_wrap): Adjust caller. Call dead_debug_local_init
7912 first and dead_debug_local_finish at the end.
7913 For uses and defs bitmap, handle all regs in between REGNO and
7914 END_REGNO, not just the first one.
7916 2016-01-19 Richard Biener <rguenther@suse.de>
7918 PR tree-optimization/69352
7919 * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7920 (equal_mem_array_ref_p): Constrain size and max size properly.
7921 Compare the reverse flag.
7923 2016-01-19 Bernd Schmidt <bschmidt@redhat.com>
7925 * ira.c (ira): Update regstat data if we deleted insns.
7927 2016-01-19 Jakub Jelinek <jakub@redhat.com>
7929 PR rtl-optimization/68955
7930 PR rtl-optimization/64557
7931 * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7932 here. Fix up formatting.
7933 * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7935 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7938 * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7939 assume that the node has body.
7940 * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7943 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7945 * lto-streamer-out.c (lto_output): Do not stream instrumentation
7948 2016-01-19 Jan Hubicka <hubicka@ucw.cz>
7950 * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7951 (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7953 2016-01-19 Martin Jambor <mjambor@suse.cz>
7954 Martin Liska <mliska@suse.cz>
7955 Michael Matz <matz@suse.de>
7957 * Makefile.in (OBJS): Add new source files.
7958 (GTFILES): Add hsa.c.
7959 * common.opt (disable_hsa): New variable.
7960 (-Whsa): New warning.
7961 * config.in (ENABLE_HSA): New.
7962 * configure.ac: Treat hsa differently from other accelerators.
7963 (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7965 (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7966 * doc/install.texi (Configuration): Document --with-hsa-runtime,
7967 --with-hsa-runtime-include, --with-hsa-runtime-lib and
7969 * doc/invoke.texi (-Whsa): Document.
7970 (hsa-gen-debug-stores): Likewise.
7971 * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7972 to invoke offload compiler for hsa acclerator.
7973 * opts.c (common_handle_option): Determine whether HSA offloading
7974 should be performed.
7975 * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7976 * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7977 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7978 (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7979 * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7980 * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7981 GF_OMP_FOR_KIND_GRID_LOOP.
7982 (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7983 (pp_gimple_stmt_1): Likewise.
7984 * gimple-walk.c (walk_gimple_stmt): Likewise.
7985 * gimple.c (gimple_build_omp_grid_body): New function.
7986 (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7987 * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7988 * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7989 GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7990 GF_OMP_TEAMS_GRID_PHONY.
7991 (gimple_statement_omp_single_layout): Updated comments.
7992 (gimple_build_omp_grid_body): New function.
7993 (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7994 (gimple_omp_for_grid_phony): New function.
7995 (gimple_omp_for_set_grid_phony): Likewise.
7996 (gimple_omp_parallel_grid_phony): Likewise.
7997 (gimple_omp_parallel_set_grid_phony): Likewise.
7998 (gimple_omp_teams_grid_phony): Likewise.
7999 (gimple_omp_teams_set_grid_phony): Likewise.
8000 (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8001 * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8002 (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8003 (BUILT_IN_GOMP_TARGET): Updated type.
8004 * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8005 (adjust_for_condition): New function.
8006 (get_omp_for_step_from_incr): Likewise.
8007 (extract_omp_for_data): Moved parts to adjust_for_condition and
8008 get_omp_for_step_from_incr.
8009 (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8010 (fixup_child_record_type): Bail out if receiver_decl is NULL.
8011 (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8012 (scan_omp_parallel): Do not create child functions for phony
8014 (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8015 (scan_omp_1_op): Checking assert we are not remapping to
8016 ERROR_MARK. Also also handle GIMPLE_OMP_GRID_BODY.
8017 (parallel_needs_hsa_kernel_p): New function.
8018 (expand_parallel_call): Register apprpriate parallel child
8019 functions as HSA kernels.
8020 (grid_launch_attributes_trees): New type.
8021 (grid_attr_trees): New variable.
8022 (grid_create_kernel_launch_attr_types): New function.
8023 (grid_insert_store_range_dim): Likewise.
8024 (grid_get_kernel_launch_attributes): Likewise.
8025 (get_target_argument_identifier_1): Likewise.
8026 (get_target_argument_identifier): Likewise.
8027 (get_target_argument_value): Likewise.
8028 (push_target_argument_according_to_value): Likewise.
8029 (get_target_arguments): Likewise.
8030 (expand_omp_target): Call get_target_arguments instead of looking
8031 up for teams and thread limit.
8032 (grid_expand_omp_for_loop): New function.
8033 (grid_arg_decl_map): New type.
8034 (grid_remap_kernel_arg_accesses): New function.
8035 (grid_expand_target_kernel_body): New function.
8036 (expand_omp): Call it.
8037 (lower_omp_for): Do not emit phony constructs.
8038 (lower_omp_taskreg): Do not emit phony constructs but create for them
8039 a temporary variable receiver_decl.
8040 (lower_omp_taskreg): Do not emit phony constructs.
8041 (lower_omp_teams): Likewise.
8042 (lower_omp_grid_body): New function.
8043 (lower_omp_1): Call it.
8044 (grid_reg_assignment_to_local_var_p): New function.
8045 (grid_seq_only_contains_local_assignments): Likewise.
8046 (grid_find_single_omp_among_assignments_1): Likewise.
8047 (grid_find_single_omp_among_assignments): Likewise.
8048 (grid_find_ungridifiable_statement): Likewise.
8049 (grid_target_follows_gridifiable_pattern): Likewise.
8050 (grid_remap_prebody_decls): Likewise.
8051 (grid_copy_leading_local_assignments): Likewise.
8052 (grid_process_kernel_body_copy): Likewise.
8053 (grid_attempt_target_gridification): Likewise.
8054 (grid_gridify_all_targets_stmt): Likewise.
8055 (grid_gridify_all_targets): Likewise.
8056 (execute_lower_omp): Call grid_gridify_all_targets.
8057 (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8058 * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8059 (tree_omp_clause): Added union field dimension.
8060 * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8061 * tree.c (omp_clause_num_ops): Added number of arguments of
8062 OMP_CLAUSE__GRIDDIM_.
8063 (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8064 (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8065 * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8066 (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8067 (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8068 (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8069 * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8070 * tree-pass.h (make_pass_gen_hsail): Declare.
8071 (make_pass_ipa_hsa): Likewise.
8072 * ipa-hsa.c: New file.
8073 * lto-section-in.c (lto_section_name): Add hsa section name.
8074 * lto-streamer.h (lto_section_type): Add hsa section.
8075 * timevar.def (TV_IPA_HSA): New.
8076 * hsa-brig-format.h: New file.
8077 * hsa-brig.c: New file.
8078 * hsa-dump.c: Likewise.
8079 * hsa-gen.c: Likewise.
8082 * toplev.c (compile_file): Call hsa_output_brig.
8083 * hsa-regalloc.c: New file.
8085 2016-01-18 Jeff Law <law@redhat.com>
8087 PR tree-optimization/69320
8088 * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8089 ranged object, do nothing if the RHS constant is not [0..1].
8090 (optimize_stmt): Comparing a boolean ranged object against a
8091 constant outside [0..1] results in a compile-time constant.
8093 * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8096 2016-01-18 Sandra Loosemore <sandra@codesourcery.com>
8098 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8099 (Option Summary): Update to reflect new section and moved options.
8100 (C++ Dialect Options): Move -fstats to new section.
8101 (Debugging Options): Move all dump, statistics, and other GCC
8102 developer options to new section. Rewrite section introduction
8103 and re-order remaining options to put the more basic ones first.
8104 (Optimization Options): Move -fira-verbose and -flto-report* to
8106 (Developer Options): New section incorporating moved options.
8107 * doc/cppopts.texi (-dM): Update cross-reference.
8109 2016-01-18 Richard Henderson <rth@redhat.com>
8112 * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8113 operands to pseudo only if CSE is expected. Split long immediate
8114 operands only after reload, and for the stack pointer.
8115 (*add<GPI>3_pluslong): Remove.
8116 (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8117 (*add<GPI>3_aarch64): ... here. Add r/rk/Upl alternative.
8118 (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8119 (*add<GPI>3 peepholes): New.
8120 (*add<GPI>3 splitters): New.
8121 * config/aarch64/constraints.md (Upl): New.
8122 * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8124 2016-01-18 Richard Biener <rguenther@suse.de>
8126 PR tree-optimization/69297
8127 * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8129 (vect_bb_vectorization_profitable_p): Clear visited flag again.
8131 2016-01-18 Yuri Rumyantsev <ysrumyan@gmail.com>
8134 * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8135 of mixind vector and scalar types.
8136 (fold_relational_const): Add handling of vector
8137 comparison with boolean result.
8138 * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8139 comparison of vector operands with boolean result for EQ/NE only.
8140 (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8141 (verify_gimple_cond): Likewise.
8142 * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8145 2016-01-18 Joseph Myers <joseph@codesourcery.com>
8147 * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8150 2016-01-18 Richard Biener <rguenther@suse.de>
8153 * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8155 2016-01-18 Tom de Vries <tom@codesourcery.com>
8157 * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8159 2016-01-18 Tom de Vries <tom@codesourcery.com>
8161 * omp-low.c (set_oacc_fn_attrib): Make extern.
8162 * omp-low.h (set_oacc_fn_attrib): Declare.
8163 * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8164 (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8165 (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8166 Add and handle function parameter oacc_kernels_p.
8167 (find_reduc_addr, get_omp_data_i_param): New function.
8168 (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8169 (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8170 (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8171 Calculate dominance info. Skip loops that are not in a kernels region
8172 in oacc_kernels_p mode. Skip inner loops of parallelized loops.
8173 (pass_parallelize_loops::execute): Call parallelize_loops with
8174 oacc_kernels_p argument.
8175 (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8176 New member function.
8177 (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8178 * passes.def: Add argument to pass_parallelize_loops instantation.
8180 2016-01-18 Tom de Vries <tom@codesourcery.com>
8182 * tree-parloops.c (pass_parallelize_loops::execute): Allow
8183 pass_parallelize_loops to be run outside the loop pipeline.
8185 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8187 * tree-scalar-evolution.c (follow_copies_to_constant): New.
8188 (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8190 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8193 * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8194 using get_ref_base_and_extent.
8195 (equal_mem_array_ref_p): New.
8196 (hashable_expr_equal_p): Add call to previous.
8198 2016-01-18 Alan Lawrence <alan.lawrence@arm.com>
8201 * tree-sra.c (disqualified_constants, constant_decl_p): New.
8202 (sra_initialize): Allocate disqualified_constants.
8203 (sra_deinitialize): Free disqualified_constants.
8204 (disqualify_candidate): Update disqualified_constants when appropriate.
8205 (create_access): Scan for constant-pool entries as we go along.
8206 (scalarizable_type_p): Add check against type_contains_placeholder_p.
8207 (maybe_add_sra_candidate): Allow constant-pool entries.
8208 (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8209 (initialize_constant_pool_replacements): New.
8210 (sra_modify_assign): Avoid mangling assignments created by previous,
8211 and don't generate writes into constant pool.
8212 (sra_modify_function_body): Call initialize_constant_pool_replacements.
8214 2016-01-18 Ilya Enkovich <enkovich.gnu@gmail.com>
8216 * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8218 (scalar_chain::convert_op): Likewise.
8219 * config/i386/i386.md (*andndi3_doubleword): New.
8221 2016-01-18 Richard Biener <rguenther@suse.de>
8223 PR tree-optimization/69170
8224 * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8225 building a vector from scalar results of a pattern stmt.
8227 2016-01-18 Jakub Jelinek <jakub@redhat.com>
8229 * haifa-sched.c (autopref_multipass_init): Work around
8230 -Wmaybe-uninitialized warning.
8232 2016-01-18 Thomas Preud'homme <thomas.preudhomme@arm.com>
8234 * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8235 against the constant 0.
8237 2016-01-17 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8239 PR tree-optimization/68799
8240 * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8241 look up phi candidates in the statement-candidate map.
8242 (phi_add_costs): Likewise.
8243 (record_phi_increments): Likewise.
8244 (phi_incr_cost): Likewise.
8245 (ncd_with_phi): Likewise.
8246 (all_phi_incrs_profitable): Likewise.
8248 2016-01-17 Jakub Jelinek <jakub@redhat.com>
8250 * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8251 -Wmaybe-uninitialized warning.
8253 2016-01-16 Sandra Loosemore <sandra@codesourcery.com>
8255 * doc/invoke.texi (Invoking GCC): Add new section to menu.
8256 (Option Summary): Update to reflect new section and moved options.
8257 (C++ Dialect Options): Move -fvtable-verify and related options.
8258 (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8259 and profiling-related options.
8260 (Optimization Options): Move profile generation options and
8261 -fstack-protector and related options.
8262 (Instrumentation Options): New section incorporating moved options.
8263 (Code Generation Options): Move -finstrument-functions and
8264 related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8266 2016-01-16 Tom de Vries <tom@codesourcery.com>
8268 * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8270 2016-01-16 Tom de Vries <tom@codesourcery.com>
8272 * omp-low.c (expand_omp_atomic_fetch_op): Release defs of update stmt.
8274 2016-01-16 Richard Sandiford <richard.sandiford@arm.com>
8276 * hash-table.h (hash_table::empty): Turn into an inline wrapper
8277 that checks whether the table is already empty. Rename the
8278 original implementation to...
8279 (hash_table::empty_slot): ...this new private function.
8281 2016-01-15 David Malcolm <dmalcolm@redhat.com>
8284 * diagnostic-show-locus.c (layout::print_source_line): Move x
8285 offset of line until after call to
8286 get_line_width_without_trailing_whitespace.
8288 2016-01-15 Jeff Law <law@redhat.com>
8290 PR tree-optimization/69270
8291 * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8292 tree-ssa-dom.c. Improve test for [0..1] ranve from VRP.
8293 * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8294 * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8295 * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8296 ssa_name_has_boolean_range and constant_boolean_node.
8298 2016-01-15 Vladimir Makarov <vmakarov@redhat.com>
8300 PR rtl-optimization/69030
8301 * lra-spills.c (remove_pseudos): Check nrefs and make the function
8303 (spill_pseudos): Delete debug insn for dead pseudo.
8304 (lra_spill): Initiate spill_hard_reg and slots memory separately.
8306 2016-01-15 Jiong Wang <jiong.wang@arm.com>
8308 * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8310 (TYPES_UNOPUS): Likewise.
8311 * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8312 builtin type, from UNOP to UNOPUS.
8313 (lbtruncuv4sf): Likewise.
8314 (lbtruncuv2df): Likewise.
8315 (lrounduv2sf): Likewise.
8316 (lrounduv4sf): Likewise.
8317 (lrounduv2df): Likewise.
8318 (lroundusf): Likewise.
8319 (lroundusf): Likewise.
8320 (lceiluv2sf): Likewise.
8321 (lceiluv4sf): Likewise.
8322 (lceiluv2df): Likewise.
8323 (lceilusf): Likewise.
8324 (lceiludf): Likewise.
8325 (lflooruv2sf): Likewise.
8326 (lflooruv4sf): Likewise.
8327 (lflooruv2df): Likewise.
8328 (lfloorusf): Likewise.
8329 (lfloorudf): Likewise.
8330 (lfrintnuv2sf): Likewise.
8331 (lfrintnuv4sf): Likewise.
8332 (lfrintnuv2df): Likewise.
8333 (lfrintnusf): Likewise.
8334 (lfrintnudf): Likewise.
8335 * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8337 (vcvtq_u32_f32): Likewise.
8338 (vcvtq_u64_f64): Likewise.
8339 (vcvta_u32_f32): Likewise.
8340 (vcvtaq_u32_f32): Likewise.
8341 (vcvtaq_u64_f64): Likewise.
8342 (vcvtm_u32_f32): Likewise.
8343 (vcvtmq_u32_f32): Likewise.
8344 (vcvtmq_u64_f64): Likewise.
8345 (vcvtn_u32_f32): Likwise.
8346 (vcvtnq_u32_f32): Likewise.
8347 (vcvtnq_u64_f64): Likewise.
8348 (vcvtp_u32_f32): Likewise.
8349 (vcvtpq_u32_f32): Likewise.
8350 (vcvtpq_u64_f64): Likewise.
8351 (vcvtmd_u64_f64): Likewise.
8352 (vcvtms_u32_f32): Likewise.
8353 (vcvtad_u64_f64): Likewise.
8354 (vcvtas_u32_f32): Likewise.
8355 (vcvtnd_u64_f64): Likewise.
8356 (vcvtns_u32_f32): Likewise.
8357 (vcvtpd_u64_f64): Likewise.
8358 (vcvtps_u32_f32): Likewise.
8360 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8362 * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8363 CSEL of zero_extended registers.
8365 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8367 * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8368 Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8370 2016-01-15 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
8372 * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8373 false when argument string is not found in the attributes table
8376 2016-01-15 David Edelsohn <dje.gcc@gmail.com>
8379 * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8380 (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8381 * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8384 2016-01-15 Richard Biener <rguenther@suse.de>
8386 PR tree-optimization/66856
8387 * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8388 * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8389 (vect_create_new_slp_node): Increment stmt reference count.
8390 (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8391 an SLP tree before swapping operands.
8392 (vect_build_slp_tree): Likewise.
8393 (destroy_bb_vec_info): Free stmt info after SLP instances.
8394 * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8395 * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8396 (STMT_VINFO_NUM_SLP_USES): New macro.
8398 2016-01-15 Richard Biener <rguenther@suse.de>
8401 * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8402 (add_linkage_name): ... here.
8403 (gen_typedef_die): Use add_linkage_name_raw instead of
8404 add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8407 2016-01-15 Cesar Philippidis <cesar@codesourcery.com>
8409 * gimplify.c (oacc_default_clause): Decode reference and pointer
8410 types for both kernels and parallel regions.
8412 2016-01-15 Richard Sandiford <richard.sandiford@arm.com>
8415 * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8417 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8419 * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8420 (convert_scalars_to_vector): Likewise.
8422 2016-01-15 Jonathan Wakely <jwakely@redhat.com>
8424 * doc/extend.texi (Type Traits): Fix grammar.
8426 2016-01-15 Martin Jambor <mjambor@suse.cz>
8428 * tree-inline.c (remap_decl): Use existing dclarations if
8429 remapping a type and prevent_decl_creation_for_types.
8430 (replace_locals_stmt): Do an initial remapping of non-VLA typed
8431 decls first. Do real remapping with
8432 prevent_decl_creation_for_types set.
8433 * tree-inline.h (copy_body_data): New field
8434 prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8437 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8439 * config/s390/s390.opt (mmvcle): More verbose help text.
8441 2016-01-15 Dominik Vogt <vogt@linux.vnet.ibm.com>
8443 * config/s390/s390.opt: Add period to -mzvector option text.
8445 2016-01-15 Richard Biener <rguenther@suse.de>
8447 PR tree-optimization/68961
8448 * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8449 of invariants in stores again.
8451 2016-01-15 Sebastian Huber <sebastian.huber@embedded-brains.de>
8453 * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8455 2016-01-15 Ilya Enkovich <enkovich.gnu@gmail.com>
8457 * config/i386/i386.c (ix86_expand_branch): Don't split
8458 DI mode xor instruction to SI mode.
8460 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8463 * ipa-icf.c (sem_function::merge): Virtual functions may become
8464 reachable even if they address is not taken and there are no
8467 2016-01-15 Jan Hubicka <hubicka@ucw.cz>
8469 * lto-streamer-out.c (subtract_estimated_size): New function.
8470 (get_symbol_initial_value): Use it.
8472 2016-01-15 Christian Bruel <christian.bruel@st.com>
8475 * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8476 (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8477 (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8478 use add_builtin_function_ext_scope instead of add_builtin_function.
8479 (neon_set_p, neon_crypto_set_p): Remove.
8480 (arm_init_builtins): Always call arm_init_neon_builtins and
8481 arm_init_crypto_builtins.
8482 (arm_expand_builtin): Check that builtins are allowed for the arch.
8483 * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8484 * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8485 arm_init_neon_builtins call.
8487 2016-01-15 Richard Biener <rguenther@suse.de>
8489 PR tree-optimization/69117
8490 * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8491 * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8492 of the leader conservatively.
8493 (free_scc_vn): Restore original SSA name infos.
8495 2016-01-14 Jeff Law <law@redhat.com>
8497 PR tree-optimization/69270
8498 * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8499 single bit of precision, verify it's also unsigned.
8500 (record_edge_info): Use constant_boolean_node rather than fold_convert
8501 to convert boolean_true/boolean_false to the right type.
8503 2016-01-14 Richard Henderson <rth@redhat.com>
8506 * loop-doloop.c (record_reg_sets): New.
8507 (doloop_optimize): Reject the transform if the sequence
8508 clobbers registers live at the end of the loop block.
8509 (doloop_optimize_loops): Enable df_live if needed.
8511 2016-01-14 Michael Meissner <meissner@linux.vnet.ibm.com>
8513 * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8514 * gcc/config/rs6000/rs6000.c: Likewise.
8515 * gcc/config/rs6000/rs6000.h: Likewise.
8516 * gcc/config/rs6000/rs6000.md: Likewise.
8517 * gcc/doc/extend.texi: Likewsie.
8519 2016-01-14 Jeff Law <law@redhat.com>
8521 * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8524 2016-01-14 Richard Henderson <rth@redhat.com>
8528 * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8529 * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8530 instead of builtin_decl_declared_p to test for declaration.
8532 2016-01-14 Nicklas Bo Jensen <nbjensen@gmail.com>
8534 * doc/loop.texi (Loop Analysis and Representation): Document
8535 loop_depth function.
8537 2016-01-14 Tom de Vries <tom@codesourcery.com>
8539 PR tree-optimization/68773
8540 * omp-low.c (expand_omp_target): Don't set force_output.
8541 * varpool.c (varpool_node::get_create): Same.
8542 * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8543 offload_funcs with force_output.
8545 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8548 * lra-eliminations.c (move_plus_up): Don't change anything if either
8549 the outer or inner subreg mode is not MODE_INT.
8550 * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8551 integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8553 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8555 * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8556 reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8557 reduc_uplus_@var{m}): Remove.
8558 * expr.c (expand_expr_real_2): Remove expansion path for
8559 reduc_[us](min|max|plus) optabs.
8560 * optabs-tree.c (scalar_reduc_to_vector): Remove.
8561 * optabs-tree.h (scalar_reduc_to_vector): Remove.
8562 * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8563 reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8564 * tree-vect-loop.c (vectorizable_reduction): Remove test for
8565 reduc_[us](min|max|plus) optabs.
8567 2016-01-14 Alan Lawrence <alan.lawrence@arm.com>
8569 * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8570 (reduc_plus_scal_v2sf): New.
8571 (reduc_smax_v2sf): Rename to...
8572 (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8573 (reduc_smin_v2sf): Rename to...
8574 (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8576 2016-01-14 Jan Hubicka <hubicka@ucw.cz>
8578 * alias.c (compare_base_symbol_refs): New function.
8579 (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8582 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8585 PR tree-optimization/69155
8586 * tree-complex.c: Include cfganal.h.
8587 (phis_to_revisit): New variable.
8588 (extract_component): Add phiarg_p argument. Assert that returned
8589 SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8590 (update_phi_components): Partly rewrite to use loop over real/imag
8591 components instead of code duplication. If extract_component returns
8592 SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8593 create_tmp_reg into the PHI node instead, and mention the phi triplet
8595 (tree_lower_complex): Walk bbs in rpo order. Adjust phis recorded
8596 in phis_to_revisit at the end.
8598 2016-01-14 Richard Biener <rguenther@suse.de>
8600 PR tree-optimization/68060
8601 * tree-vect-loop.c (vect_is_simple_reduction): Check the
8602 outer loop reduction is only used in the inner loop before
8603 detecting a double reduction.
8605 2016-01-14 Jakub Jelinek <jakub@redhat.com>
8608 * combine.c (expand_field_assignment): Punt if compute_mode is
8609 unsupported scalar mode.
8611 2016-01-14 Richard Biener <rguenther@suse.de>
8613 PR tree-optimization/66856
8614 * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8615 SLP node only if it built successfully.
8616 (vect_analyze_slp_instance): Adjust.
8618 2016-01-14 Jeff Law <law@redhat.com>
8620 PR tree-optimization/69270
8621 * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8622 (record_edge_info): Use it. Convert boolean_{true,false}_node
8625 2016-01-13 Jan Hubicka <hubicka@ucw.cz>
8628 * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8629 use block_ultimate_origin
8630 (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8632 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8634 * doc/invoke.texi (Submodel Options): Rename section to
8635 "Machine-Dependent Options" to better reflect its content.
8636 Rewrite introductory text to remove archaic CPU names.
8639 2016-01-13 Sandra Loosemore <sandra@codesourcery.com>
8641 * doc/invoke.texi (Code Gen Options): Move section up in file,
8642 before target-specific options. Update menu and option summary
8643 to reflect the new section ordering.
8645 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8647 * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8648 (C++ Dialect Options): Add cross-reference to -std option.
8649 * doc/standards.texi (C++ Language): Document C++14 support.
8651 2016-01-13 Michael Meissner <meissner@linux.vnet.ibm.com>
8653 * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8654 for pack/unpack functions for __ibm128.
8655 (PACK_IF): Likewise.
8656 (UNPACK_IF): Likewise.
8658 * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8659 support for __ibm128 pack/unpack functions.
8660 (rs6000_invalid_builtin): Likewise.
8661 (rs6000_init_builtins): Likewise.
8662 (rs6000_opt_masks): Likewise.
8664 * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8665 (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8667 (RS6000_BTM_COMMON): Likewise.
8669 * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8670 (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8671 disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8672 128-bit floating point. Add support for the double values to be
8673 in Altivec registers for TF/IF packing and unpacking, but restrict
8674 TD packing sub-fields to be FPR registers. Don't allow overlapped
8675 register support for packing. Allow pack inputs to be memory
8676 locations. Don't build generator functions for unpack<mode>_dm
8677 and unpack<mode>_nodm.
8678 (unpack<mode>_dm): Likewise.
8679 (unpack<mode>_nodm): Likewise.
8680 (pack<mode>): Likewise.
8682 * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8683 built-in functions to pack/unpack explicit __ibm128 values.
8684 (__builtin_unpack_ibm128): Likewise.
8686 * doc/extend.texi (PowerPC Built-in Functions): Document
8687 __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8689 2016-01-13 Bernd Schmidt <bschmidt@redhat.com>
8692 * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8693 Add new arg loc and pass it down as context.
8694 (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8695 to the location to use for the warning.
8696 (check_function_arguments): New arg loc. All callers changed. Pass
8697 it to check_function_nonnull.
8698 * c-common.h (check_function_arguments): Adjust declaration.
8700 2016-01-13 Jakub Jelinek <jakub@redhat.com>
8702 PR tree-optimization/69156
8703 * gimple.c (validate_type): Removed.
8704 (gimple_builtin_call_types_compatible_p): Use
8705 useless_type_conversion_p instead of validate_type.
8706 * value-prof.c (gimple_stringop_fixed_value): Fold
8707 icall_size to correct type.
8709 2016-01-13 Jonathan Wakely <jwakely@redhat.com>
8711 * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8714 2016-01-13 Richard Henderson <rth@redhat.com>
8717 * target.def (builtin_tm_load, builtin_tm_store): Remove.
8718 * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8719 (ix86_builtin_tm_store): Remove.
8720 (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8721 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8722 * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8723 (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8724 * doc/tm.texi: Rebuild.
8726 * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8727 (BUILT_IN_TM_MEMCPY_RTWN): New.
8728 * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8729 fallback from vector to integer helpers.
8730 (build_tm_load): Handle vector types directly, instead of
8732 (build_tm_store): Likewise.
8733 (expand_assign_tm): Prepare for register types not handled by
8734 the above. Copy them to memory and use memcpy.
8735 * tree.c (tm_define_builtin): New.
8736 (find_tm_vector_type): New.
8737 (build_tm_vector_builtins): New.
8738 (build_common_builtin_nodes): Call it.
8740 2016-01-13 Uros Bizjak <ubizjak@gmail.com>
8742 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8743 TARGET_SSE_MATH without TARGET_SSE2. Rewrite.
8745 2016-01-13 Tom de Vries <tom@codesourcery.com>
8747 PR tree-optimization/69169
8748 * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8749 handled_struct_type param.
8750 (create_variable_info_for, intra_create_variable_infos): Call
8751 create_variable_info_for_1 with extra arg.
8753 2016-01-13 Yvan Roux <yvan.roux@linaro.org>
8755 * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8756 and "armv8.1-a+crc" entries.
8758 2016-01-13 Alexander Fomin <alexander.fomin@intel.com>
8761 * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8762 Change first operand predicate from register_or_constm1_operand
8763 to register_operand.
8764 (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8765 (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8766 (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8767 (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8768 (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8769 (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8770 (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8771 * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8772 comparison with constm1_rtx from vec_prefetch_gen part.
8774 2016-01-13 Richard Biener <rguenther@suse.de>
8776 PR tree-optimization/69013
8777 * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8778 Exchange assert for a test.
8780 2016-01-13 Andreas Krebbel <krebbel@linux.vnet.ibm.com>
8783 * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8785 2016-01-13 Richard Biener <rguenther@suse.de>
8787 PR tree-optimization/69242
8788 * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8789 assert with a check.
8791 2016-01-13 Richard Biener <rguenther@suse.de>
8793 PR tree-optimization/69186
8794 * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8795 Properly guard vect_update_misalignment_for_peel call.
8797 2016-01-12 Jeff Law <law@redhat.com>
8799 PR tree-optimization/pr67755
8800 * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8801 "need_profile_correction".
8802 (thread_block_1): Initialize new field to false by default. If we
8803 have multiple thread paths through a common joiner to different
8804 final targets, then set new field to true.
8805 (compute_path_counts): Only do count adjustment when it's really
8808 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8810 * doc/invoke.texi (Spec Files): Move section down in file, past
8811 all command-line option descriptions.
8813 2016-01-12 Trevor Saunders <tbsaunde+gcc@tbsaunde.org>
8816 * doc/gty.texi: Remove documentation of mark_hook.
8817 * gengtype.c (struct write_types_data): Remove code to support
8818 mark_hook attribute.
8819 (walk_type): Likewise.
8820 (write_func_for_structure): Likewise.
8822 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8824 * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8825 Directory Options, and -specs= to Overall Options.
8826 (Overall Options): Adjust similarly. Reorder to group related
8827 options together. Make -specs= cross-reference the spec file details.
8828 (Directory Options): Adjust similarly.
8830 2016-01-12 Jeff Law <law@redhat.com>
8832 * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8834 2016-01-12 Olivier Hainque <hainque@adacore.com>
8836 * gcc.c (spec_undefvar_allowed): New global.
8837 (process_command): Set to true when running for --version or --help,
8839 (getenv_spec_function): When the variable is not defined, use the
8840 variable name as the variable value if we're allowed not to issue
8843 2016-01-12 Bin Cheng <bin.cheng@arm.com>
8845 PR tree-optimization/68911
8846 * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8847 information computed for expression "init + nit * step".
8849 2016-01-12 Sandra Loosemore <sandra@codesourcery.com>
8851 * doc/invoke.texi (Invoking GCC): Copy-edit. Incorporate information
8852 about name of GCC executable. Remove deleted node from menu.
8853 (Directory Options) <-B>: Remove cross-reference to deleted node.
8854 (Target Options): Delete section.
8856 2016-01-12 Christian Bruel <christian.bruel@st.com>
8859 * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8860 for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8862 2016-01-12 Jakub Jelinek <jakub@redhat.com>
8865 * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8866 aligned_mem is properly set for AVX512-VL floating point masked
8870 * ifcvt.c (cond_exec_process_if_block): When removing the last
8871 insn from then_bb, remove also any possible barriers that follow it.
8873 2016-01-12 H.J. Lu <hongjiu.lu@intel.com>
8877 * config/i386/iamcu.h (SIZE_TYPE): New macro.
8878 (PTRDIFF_TYPE): Likewise.
8879 (WCHAR_TYPE): Likewise.
8880 (WCHAR_TYPE_SIZE): Likewise.
8881 (STDINT_LONG32): Likewise.
8883 2016-01-12 Richard Biener <rguenther@suse.de>
8885 PR tree-optimization/69053
8886 * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8887 convert initial value for cond reductions.
8889 2016-01-12 Richard Biener <rguenther@suse.de>
8891 PR tree-optimization/69007
8892 * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8893 widen_sum after dot_prod and sad.
8895 2016-01-12 Richard Biener <rguenther@suse.de>
8897 PR tree-optimization/69168
8898 * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8899 pattern stmt SLP type.
8900 * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8901 end up unused so cope with that case.
8903 2016-01-12 Richard Biener <rguenther@suse.de>
8905 PR tree-optimization/69157
8906 * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8907 stmts def type only during analyze phase.
8908 (vectorizable_call): Likewise.
8909 (vectorizable_simd_clone_call): Likewise.
8910 (vectorizable_conversion): Likewise.
8911 (vectorizable_assignment): Likewise.
8912 (vectorizable_shift): Likewise.
8913 (vectorizable_operation): Likewise.
8914 (vectorizable_store): Likewise.
8915 (vectorizable_load): Likewise.
8917 2016-01-12 Richard Biener <rguenther@suse.de>
8919 PR tree-optimization/69174
8920 * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8922 (vectorizable_load): Properly compute the number of loads needed
8923 for permuted strided SLP loads and do not spuriously assign
8924 to SLP_TREE_VEC_STMTS.
8926 2016-01-12 Andris Pavenis <andris.pavenis@iki.fi>
8928 * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8929 (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8930 (MD_EXEC_PREFIX): Remove.
8931 (MD_STARTFILE_PREFIX) Removee.
8932 (FILE_NAME_ABSOLUTE_P): Remove.
8933 (CPP_SPEC): Do not read macros from sys/version.h.
8934 (LINK_COMMAND_SPEC): Remove.
8935 (LOCAL_INCLUDE_DIR): Remove.
8936 (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8937 (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8938 (POST_LINK_SPEC): Define to invoke stubify after linker
8939 (LIBSTDCXX): Remove define
8940 (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8941 (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8942 (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8943 (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8944 (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8945 (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8946 (i386_djgpp_asm_named_section): Add propotype of new procedure
8948 * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8949 (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8950 (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8951 in config/i386/djgpp.h).
8952 (STANDARD_STARTFILE_PREFIX_2): Define identical to
8953 STANDARD_STARTFILE_PREFIX_1.
8954 (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8955 (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8956 installation errors.
8957 (MAX_OFILE_ALIGNMENT): Define to 128.
8958 (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8960 * config/i386/djgpp.c: New file. Add implementation of
8961 i386_djgpp_asm_named_section.
8963 * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8965 * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8966 Add rule for building djgpp.o.
8968 2016-01-11 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
8970 * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8971 (rtx_is_swappable_p): Reductions are swappable.
8972 (insn_is_swappable_p): V2DF reductions are swappable.
8974 2016-01-11 John David Anglin <danglin@gcc.gnu.org>
8976 * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8977 reloads for other unsupported memory operands.
8979 2016-01-12 Kugan Vivekanandarajah <kuganv@linaro.org>
8980 Jim Wilson <jim.wilson@linaro.org>
8983 * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8984 copy_to_mode_reg instead of force_reg.
8986 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
8989 * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8990 TARGET_80387 is true.
8992 2016-01-11 Jakub Jelinek <jakub@redhat.com>
8995 * lra-eliminations.c (move_plus_up): Only move plus up
8996 if subreg of the constant can be simplified into constant
8997 and use the simplified subreg of the constant instead of
8998 the original constant.
9000 * fold-const.c (fold_convertible_p): Don't return true
9001 for conversion of VECTOR_TYPE to same sized integral type.
9002 (fold_convert_loc): Fix up formatting. Fold conversion of
9003 VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9004 instead of NOP_EXPR.
9006 PR tree-optimization/69214
9007 * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9008 innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9011 PR tree-optimization/69207
9012 * tree-vect-slp.c (vect_get_constant_vectors): For
9013 VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9014 fold_convertible_p to vector_type's element type, and always
9015 use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9017 2016-01-11 Richard Biener <rguenther@suse.de>
9019 PR tree-optimization/69173
9020 * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9021 fixup the cycle if all stmts are in a pattern.
9023 2016-01-11 Uros Bizjak <ubizjak@gmail.com>
9026 * alias.c (base_alias_check): Move check for addresses with
9027 alignment ANDs before the call for compare_base_decls.
9028 (memrefs_conflict_p): Return -1 for different decls
9029 that went through alignment adjustments.
9031 2016-01-11 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9033 PR rtl-optimization/68796
9034 * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9035 * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9036 and QImode comparisons against zero with CC_NZmode.
9037 * config/aarch64/iterators.md (short_mask): New mode_attr.
9039 2016-01-11 H.J. Lu <hongjiu.lu@intel.com>
9041 * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9042 (<avx512>_store<mode>_mask): Likewise.
9044 2016-01-11 Bernd Schmidt <bschmidt@redhat.com>
9045 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9047 PR rtl-optimization/68841
9048 * ifcvt.c (struct noce_if_info): Add orig_x field.
9049 (bbs_ok_for_cmove_arith): Add to_rename parameter.
9050 Don't record conflicts on to_rename if it's present.
9051 Allow memory destinations in sets.
9052 (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9053 blocks, passing orig_x to the checks.
9054 (noce_process_if_block): Set if_info->orig_x appropriately.
9056 2016-01-11 Tom de Vries <tom@codesourcery.com>
9058 PR tree-optimization/69069
9059 * tree-parloops.c (create_parallel_loop): Add missing phi args.
9061 2016-01-11 Yuri Rumyantsev <ysrumyan@gmail.com>
9063 PR rtl-optimization/68920
9064 * config/i386/i386.c (ix86_option_override_internal): Restrict number
9065 of conditional moves for RTL if-conversion to 1 for
9066 TARGET_ONE_IF_CONV_INSN.
9067 * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9068 * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9069 * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9070 parameter to restirct number of conditional moves for
9072 * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9073 * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9076 2016-01-11 Alexandre Oliva <aoliva@redhat.com>
9079 * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9080 onepart vars. Fix typo in comment. Fix reversed condition in
9082 (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9085 * var-tracking.c (dump_onepart_variable_differences): New.
9086 (dataflow_set_different): If a detailed dump is requested,
9087 delay early returns and dump differences between onepart
9088 variables present before and after, and added variables.
9090 2016-01-11 Ilya Enkovich <enkovich.gnu@gmail.com>
9093 * expr.c (expand_expr_real_1): For boolean vector constants
9094 with a scalar mode use const_scalar_mask_from_tree.
9095 (const_scalar_mask_from_tree): New.
9096 * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9097 assigned to a mask type to handle constants.
9099 2016-01-11 Martin Jambor <mjambor@suse.cz>
9102 * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9103 useless parameters if we cannot change function signature.
9105 2016-01-11 Martin Jambor <mjambor@suse.cz>
9108 * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9111 2016-01-11 Tom de Vries <tom@codesourcery.com>
9113 PR tree-optimization/69109
9114 * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9117 2016-01-11 Tom de Vries <tom@codesourcery.com>
9119 PR tree-optimization/69108
9120 * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9121 res is not used in a phi.
9123 2016-01-11 Yury Gribov <y.gribov@samsung.com>
9126 * common.opt (frandom-seed): Fix parameter name.
9127 * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9129 2016-01-11 Tom de Vries <tom@codesourcery.com>
9131 PR tree-optimization/69058
9132 * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9135 2016-01-11 Andrew Burgess <andrew.burgess@embecosm.com>
9137 * config/arc/arc.opt (mdiv-rem): Add period to the end.
9138 (mcode-density): Likewise.
9140 2016-01-10 Tom de Vries <tom@codesourcery.com>
9142 PR tree-optimization/69062
9143 * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9144 (parallelize_loops): Don't paralelize loop that has phi with address
9147 2016-01-10 Tom de Vries <tom@codesourcery.com>
9149 PR tree-optimization/69039
9150 * tree-parloops.c (try_create_reduction_list): Only allow single exit
9153 2016-01-09 John David Anglin <danglin@gcc.gnu.org>
9156 * match.pd: Require target has function_c99_misc before doing
9157 truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9159 2016-01-09 Gerald Pfeifer <gerald@pfeifer.com>
9161 * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9163 * configure: Regenerate.
9165 2016-01-09 Jakub Jelinek <jakub@redhat.com>
9168 PR tree-optimization/69097
9169 * fold-const.h (expr_not_equal_to): New prototype.
9170 * fold-const.c: Include stringpool.h and tree-ssanames.h.
9171 (expr_not_equal_to): New function.
9172 * match.pd (X % -Y is the same as X % Y): Don't optimize
9173 unless X is known not to be equal to minimum or Y is known
9174 not to be equal to -1.
9175 * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9176 fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9177 (simplify_stmt_using_ranges): Adjust caller.
9178 (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9179 substitute_and_fold.
9181 2016-01-09 Jan Hubicka <hubicka@ucw.cz>
9183 * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9186 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9188 PR tree-optimization/69167
9189 * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9190 new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9192 * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9194 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9195 Richard Biener <rguenther@suse.de>
9197 PR tree-optimization/68707
9198 * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9199 instances that can be handled via vect_load_lanes.
9201 2016-01-08 Uros Bizjak <ubizjak@gmail.com>
9203 * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9204 if we can't determine address equivalence.
9205 * alias.c (compare_base_decl): Update for changed return value of
9206 symtab_node::equal_address_to.
9208 2016-01-08 Jason Merrill <jason@redhat.com>
9212 * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9213 * expr.c (store_field): Not here.
9214 * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9215 call with TREE_ADDRESSABLE type.
9216 * tree-cfg.c (verify_gimple_call): Adjust.
9218 2016-01-08 Olivier Hainque <hainque@adacore.com>
9220 * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9223 2016-01-08 Alan Lawrence <alan.lawrence@arm.com>
9225 * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9226 (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9227 (reduc_smin_v2sf): Rename to...
9228 (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9229 (reduc_splus_v2sf): Rename to...
9230 (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9232 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9234 PR tree-optimization/69162
9235 * gimplify.c (gimplify_va_arg_expr): Encode original type of
9236 valist argument in another argument.
9237 (gimplify_modify_expr): Adjust for the above change. Cleanup.
9238 * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9239 to determine the va_list type, build a MEM_REF instead of
9240 build_fold_indirect_ref.
9242 PR tree-optimization/69172
9243 * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9246 2016-01-08 Thomas Preud'homme <thomas.preudhomme@arm.com>
9248 PR tree-optimization/67781
9249 * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9250 and cmpnop in two steps: first the ones not accessed in original
9251 gimple expression in a endian independent way and then the ones not
9252 accessed in the final result in an endian-specific way.
9254 2016-01-08 Jakub Jelinek <jakub@redhat.com>
9256 PR tree-optimization/69083
9257 * tree-vect-slp.c (vect_get_constant_vectors): For
9258 VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9259 element type. If op is fold_convertible_p to vector_type's element
9260 type, use NOP_EXPR instead of VCE.
9262 2016-01-08 Segher Boessenkool <segher@kernel.crashing.org>
9264 PR rtl-optimization/67778
9265 PR rtl-optimization/68634
9266 PR rtl-optimization/68909
9267 * shrink-wrap.c (try_shrink_wrapping): Add comment. Don't pop
9268 block from the stack until done with it. Remove a superfluous
9269 bitmap set. Remove a superfluous bitmap test.
9271 2016-01-07 Martin Sebor <msebor@redhat.com>
9274 * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9275 constraint on the type of arguments.
9277 2016-01-07 Andreas Tobler <andreast@gcc.gnu.org>
9279 * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9280 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9281 unaligned_access on the gcc_options set.
9282 * config/arm/arm.c (arm_option_override_internal): Use
9283 SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9285 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9288 * config/i386/i386.c (ix86_frame_pointer_required): Enable
9289 frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9291 2016-01-07 Uros Bizjak <ubizjak@gmail.com>
9294 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9297 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9298 depending on frame_pointer_needed before remaining integer and SSE
9299 registers are saved.
9301 2016-01-07 Sandra Loosemore <sandra@codesourcery.com>
9304 * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9306 2016-01-07 H.J. Lu <hongjiu.lu@intel.com>
9309 * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9310 Use the "xBm" constraint.
9311 (float<sseintvecmodelower><mode>2<mask_name><round_name):
9313 (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9314 (sse_cvtsi2ssq<round_name>): Likewise.
9315 (sse_cvtss2si<round_name>): Likewise.
9316 (sse_cvtss2siq<round_name>): Likewise.
9317 (sse2_cvtsi2sdq<round_name>): Likewise.
9318 (sse2_cvtsd2si<round_name>): Likewise.
9319 (sse2_cvtsd2siq<round_name>): Likewise.
9320 * config/i386/subst.md (round_nimm_scalar_predicate): New
9323 2015-12-15 Bernd Schmidt <bschmidt@redhat.com>
9326 * varasm.c (make_decl_rtl): Mark invalid register vars as
9329 PR rtl-optimization/66206
9330 * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9331 All callers changed.
9333 2016-01-07 Jakub Jelinek <jakub@redhat.com>
9335 PR tree-optimization/69141
9336 * tree-ssa-pre.c: Include langhooks.h.
9337 (eliminate_dom_walker::before_dom_children): Use
9338 lang_hooks.decl_printable_name instead of
9339 cgraph_node::get ()->name ().
9342 * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9343 it and DECL_ALIGN too.
9345 2016-01-06 Robert Suchanek <robert.suchanek@imgtec.com>
9347 * config/mips/mips-ftypes.def: Sort to lexicographical order.
9349 2016-01-06 Uros Bizjak <ubizjak@gmail.com>
9352 * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9353 depending on frame_pointer_needed before remaining integer and SSE
9354 registers are saved.
9356 2015-01-06 Bill Schmidt <wschmidt@linux.vnet.ibm.com>
9358 * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9359 mode iterator with VSX_M2.
9360 (*p9_vecstore_<mode>): Likewise.
9361 (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9362 (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9363 (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9364 (define_split for VSX_LE128 stores): Likewise.
9365 (define_peephole2 for TImode LE swaps): Likewise.
9366 (define_split for VSX_LE128 post-reload stores): Likewise.
9368 2016-01-06 Marek Polacek <polacek@redhat.com>
9371 * convert.c (convert_to_integer_1): Adjust call to
9372 ubsan_instrument_float_cast. Use NULL_TREE instead of NULL.
9373 * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter. Use
9374 EXPR instead of ARG.
9375 * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9377 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9380 * doc/extend.texi (RL78 Variable Attributes): New section.
9382 2016-01-05 Marek Polacek <polacek@redhat.com>
9385 * builtins.c (get_memmodel): Use expansion point location rather than
9386 the input location. Call warning_at rather than warning.
9387 (expand_builtin_atomic_compare_exchange): Likewise.
9388 (expand_builtin_atomic_load): Likewise.
9389 (expand_builtin_atomic_store): Likewise.
9390 (expand_builtin_atomic_clear): Likewise.
9392 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9395 * config/i386/i386.c (ix86_expand_vector_logical_operator):
9396 Replace nonimmediate_operand with vector_operand.
9397 * config/i386/predicates.md (vector_operand): New predicate.
9398 (general_vector_operand): Replace nonimmediate_operand with
9400 * config/i386/sse.md: Replace nonimmediate_operand with
9401 vector_operand and m constraint with Bm constraint on SSE
9402 patterns with 16-byte memory operand.
9403 * config/i386/subst.md (round_nimm_predicate): Replace
9404 nonimmediate_operand with vector_operand.
9405 (round_saeonly_nimm_predicate): Likewise.
9406 (round_saeonly_nimm_scalar_predicate): New.
9408 2016-01-05 H.J. Lu <hongjiu.lu@intel.com>
9411 * config/i386/constraints.md (Bm): New constraint.
9412 * config/i386/predicates.md (vector_memory_operand): New
9414 * config/i386/sse.md: Replace xm with xBm in plusminus and
9417 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9420 * doc/extend.texi (V850 Function Attributes): New section.
9421 (V850 Variable Attributes): New section.
9423 2016-01-05 Sandra Loosemore <sandra@codesourcery.com>
9426 * doc/extend.texi (MicroBlaze Function Attributes): Document
9427 interrupt_handler and fast_interrupt attributes.
9429 2016-01-05 Sergei Trofimovich <siarheit@google.com>
9432 * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9433 for local symbolic operands.
9434 * config/ia64/predicates.md (local_symbolic_operand64): New
9437 2016-01-05 Kyrylo Tkachov <kyrylo.tkachov@arm.com>
9439 PR rtl-optimization/68651
9440 * combine.c (combine_simplify_rtx): Canonicalize x + x into
9443 2016-01-05 Nathan Sidwell <nathan@acm.org>
9445 * alias.c (compare_base_decls): Use symtab_node::get.
9447 2016-01-05 Nick Clifton <nickc@redhat.com>
9450 * ira-costs.c (copy_cost): Initialise the t_icode field of the
9451 secondary_reload_info structure.
9454 * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9455 decls if weak support is available.
9457 2016-01-04 Martin Sebor <msebor@redhat.com>
9459 * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9461 2016-01-04 Michael Meissner <meissner@linux.vnet.ibm.com>
9463 * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9464 OPTION_MASK_P9_DFORM.
9466 * config/rs6000/constraints.md (wo constraint): New constraint for
9469 * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9471 (rs6000_init_hard_regno_mode_ok): Likewise.
9473 * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9476 * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9477 expanders not to have constraints. Add support for ISA 3.0 xxperm
9478 instruction. Add support for fusing xxlor with xxperm.
9479 (altivec_vperm_<mode>_internal): Likewise.
9480 (altivec_vperm_v8hiv16qi): Likewise.
9481 (altivec_vperm_<mode>v16q): Likewise.
9482 (altivec_vperm_<mode>_uns): Likewise.
9483 (vperm_v8hiv4si): Likewise.
9484 (vperm_v16qiv8hi): Likewise.
9486 * doc/md.texi (RS/6000 constraints): Document wo constraint.
9488 2016-01-04 Jakub Jelinek <jakub@redhat.com>
9490 Update copyright years.
9492 * gcc.c (process_command): Update copyright notice dates.
9493 * gcov-dump.c (print_version): Ditto.
9494 * gcov.c (print_version): Ditto.
9495 * gcov-tool.c (print_version): Ditto.
9496 * gengtype.c (create_file): Ditto.
9497 * doc/cpp.texi: Bump @copying's copyright year.
9498 * doc/cppinternals.texi: Ditto.
9499 * doc/gcc.texi: Ditto.
9500 * doc/gccint.texi: Ditto.
9501 * doc/gcov.texi: Ditto.
9502 * doc/install.texi: Ditto.
9503 * doc/invoke.texi: Ditto.
9505 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9507 * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9508 modes larger than TImode as TImode if NEON is not enabled.
9510 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9513 * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9514 mode for %f0-%f31 only if TARGET_FPU.
9516 2016-01-04 Eric Botcazou <ebotcazou@adacore.com>
9519 * config/sparc/sparc.c (scan_record_type): Take into account subfields
9520 to compute the PACKED_P predicate.
9521 (function_arg_record_value): Minor tweaks.
9523 2016-01-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
9525 * doc/install.texi (--with-multilib-list): Describe the meaning of the
9526 option for arm*-*-* targets.
9528 2016-01-03 Sandra Loosemore <sandra@codesourcery.com>
9530 * doc/extend.texi (Common Function Attributes): Move docs for
9531 MSP430-specific attributes to....
9532 (MSP430 Function Attributes): ...here. Delete the redundant
9533 entries and copy-edit the remaining text.
9534 (MSP430 Variable Attributes): Use uniform format for index
9535 entries and add a cross-reference to the corresponding function
9538 2016-01-03 Vladimír Čunát <vcunat@gmail.com>
9540 * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9542 (x86 Options): Likewise.
9544 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9548 * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9549 * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9550 to corresponding attribute.
9552 2016-01-01 Sandra Loosemore <sandra@codesourcery.com>
9554 * doc/extend.texi (Common Function Attributes) <noplt>: Move
9555 to correct alphabetization of table. Copy-edit and correct
9557 <stack_protect>: Likewise.
9558 <target_clones>: Likewise.
9560 * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9561 Correct punctuation.
9562 (Code Gen Options) <-fno-plt>: Copy-edit.
9564 2016-01-01 Bernd Edlinger <bernd.edlinger@hotmail.de>
9567 * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9568 SI values. Explicitly convert SI to DI and vice-versa.
9570 2016-01-01 Jakub Jelinek <jakub@redhat.com>
9572 PR tree-optimization/69070
9573 * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9574 REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9577 * ubsan.c (ubsan_instrument_float_cast): Call
9578 initialize_sanitizer_builtins.
9581 * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9583 Copyright (C) 2016 Free Software Foundation, Inc.
9585 Copying and distribution of this file, with or without modification,
9586 are permitted in any medium without royalty provided the copyright
9587 notice and this notice are preserved.