ira.c use DF infrastructure for combine_and_move_insns
[official-gcc.git] / gcc / ChangeLog
blob629b9d6be6baa43df8810d01fae5c1b319a8fea7
1 2016-04-30  Alan Modra  <amodra@gmail.com>
3         * ira.c (combine_and_move_insns): Rather than scanning insns,
4         use DF infrastucture to find use and def insns.
6 2016-04-30  Alan Modra  <amodra@gmail.com>
8         ira.c (combine_and_move_insns): Move invariant conditions..
9         (ira.c): ..to here.  Call combine_and_move_insns before
10         add_store_equivs.  Call grow_reg_equivs later.  Allocate
11         req_equiv later using max_reg_num() rather than global max_regno.
12         (contains_replace_regs): Delete.
13         (add_store_equivs): Remove contains_replace_regs test.
15 2016-04-30  Alan Modra  <amodra@gmail.com>
17         * ira.c (struct equiv_mem_data): New.
18         (equiv_mem, equiv_mem_modified): Delete static vars.
19         (validate_equiv_mem_from_store): Use "data" param to communicate..
20         (validate_equiv_mem): ..from here.
22 2016-04-30  Alan Modra  <amodra@gmail.com>
24         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
25         split out from..
26         (update_reg_equivs): ..here.  Move allocation and freeing of
27         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
28         end_alias_analysis to..
29         (ira): ..here.
31 2016-04-30  Alan Modra  <amodra@gmail.com>
33         * ira.c (pdx_subregs): Delete.
34         (struct equivalence): Add pdx_subregs field.
35         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
36         pdx_subregs access.
37         (update_equiv_regs): Don't create or free pdx_subregs.  Update
38         pdx_subregs access.
40 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
42         * config/rs6000/altivec.h: Change definitions of vec_xl and
43         vec_xst.
44         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
45         (LD_ELEMREV_V2DI): New.
46         (LD_ELEMREV_V4SF): New.
47         (LD_ELEMREV_V4SI): New.
48         (LD_ELEMREV_V8HI): New.
49         (LD_ELEMREV_V16QI): New.
50         (ST_ELEMREV_V2DF): New.
51         (ST_ELEMREV_V2DI): New.
52         (ST_ELEMREV_V4SF): New.
53         (ST_ELEMREV_V4SI): New.
54         (ST_ELEMREV_V8HI): New.
55         (ST_ELEMREV_V16QI): New.
56         (XL): New.
57         (XST): New.
58         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
59         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
60         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
61         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
62         (altivec_expand_builtin): Add handling for
63         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
64         (rs6000_invalid_builtin): Add error-checking for
65         RS6000_BTM_P9_VECTOR.
66         (altivec_init_builtins): Define builtins used to implement vec_xl
67         and vec_xst.
68         (rs6000_builtin_mask_names): Define power9-vector.
69         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
70         (RS6000_BTM_P9_VECTOR): Define.
71         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
72         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
73         (vsx_ld_elemrev_v2df): Likewise.
74         (vsx_ld_elemrev_v4sf): Likewise.
75         (vsx_ld_elemrev_v4si): Likewise.
76         (vsx_ld_elemrev_v8hi): Likewise.
77         (vsx_ld_elemrev_v16qi): Likewise.
78         (vsx_st_elemrev_v2df): Likewise.
79         (vsx_st_elemrev_v2di): Likewise.
80         (vsx_st_elemrev_v4sf): Likewise.
81         (vsx_st_elemrev_v4si): Likewise.
82         (vsx_st_elemrev_v8hi): Likewise.
83         (vsx_st_elemrev_v16qi): Likewise.
84         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
85         grammar.
87 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
89         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
90         out into ...
91         (simplify_control_stmt_condition_1): ... here.  Recurse into
92         BIT_AND_EXPRs and BIT_IOR_EXPRs.
94 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
96         PR target/69810
97         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
98         (zero_extendqi<mode>2_dot): Revert earlier conversion from
99         define_insn_and_split to define_insn.
100         (zero_extendqi<mode>2_dot2): Same.
101         (extendqi<mode>2_dot): Same.
102         (extendqi<mode>2_dot2): Same.
104 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
106         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
107         (probe_stack): New expander.
108         (probe_stack_<mode>): New insn pattern.
110 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
112         * config/i386/i386.md
113         (operations with memory inputs setting flags peephole2):
114         Remove uneeded REG_P checks.  Cleanup pattern generation.
116 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
118         * tree-vect-loop.c (vect_transform_loop): Fix
119         nb_iterations_upper_bound computation for vectorized loop.
121 2016-04-29  Marek Polacek  <polacek@redhat.com>
122             Jakub Jelinek  <jakub@redhat.com>
124         PR sanitizer/70342
125         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
126         TARGET_EXPR_SLOT as a base.
128 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
130         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
131         with 'rCm2' constraints to limit possible immediate size.
132         (*load_zeroextendqisi_update): Likewise.
133         (*load_signextendqisi_update): Likewise.
134         (*loadhi_update): Likewise.
135         (*load_zeroextendhisi_update): Likewise.
136         (*load_signextendhisi_update): Likewise.
137         (*loadsi_update): Likewise.
138         (*loadsf_update): Likewise.
140 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
142         * config/i386/predicates.md (constm1_operand): Fix comparison.
144 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
146         * testsuite/gcc.target/arc/ieee_eq.c: New test.
148 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
150         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
151         remaining SH5 related settings.
152         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
153         shmedia_prepare_call_address): Delete.
154         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
155         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
156         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
157         UNSUPPORTED_SH2A): Remove m5 checks.
158         (sh_divide_strategy_e): Remove SH5 division strategies.
159         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
160         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
162 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
164         * config/s390/s390.c (s390_rtx_costs): Update documentation.
166 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
168         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
169         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
170         Change lder to ldr.
171         * config/s390/vector.md ("mov<mode>"): Likewise.
173 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
175         * config/s390/constraints.md ("U", "W"): Invoke
176         s390_mem_constraint with "ZR" and "ZT".
177         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
178         addresses when using LRA.  Accept also short displacements for S
179         and T constraints.  Do not check for long displacement target for
180         S and T constraints.
181         (s390_mem_constraint): Remove handling of U and W constraints.
182         * config/s390/s390.md (various patterns): Remove the short
183         displacement constraints (Q and R) if a long displacement
184         constraint is present.  Add longdisp as required CPU capability.
185         * config/s390/vector.md: Likewise.
186         * config/s390/vx-builtins.md: Likewise.
188 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
190         PR target/60040
191         * reload1.c (reload): Call finish_spills before
192         restarting reload loop. Skip select_reload_regs
193         if update_eliminables_and_spill returns true.
195 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
197         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
198         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
199         (umulhisi3_imm): Update predicates and constraint letters.
200         (umulhisi3_reg): Declare instruction as commutative.
201         * config/arc/constraints.md (J12, J16): New constraints.
202         * config/arc/predicates.md (short_unsigned_const_operand): New
203         predicate.
204         (arc_short_operand): Likewise.
205         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
207 2016-04-29  Richard Biener  <rguenther@suse.de>
209         PR tree-optimization/13962
210         PR tree-optimization/65686
211         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
212         * tree-ssa-alias.c (ptrs_compare_unequal): New function
213         using PTA to compare pointers.
214         * match.pd: Add pattern for pointer equality compare simplification
215         using ptrs_compare_unequal.
217 2016-04-29  Richard Biener  <rguenther@suse.de>
219         * stor-layout.c (layout_type): Do not build a pointer-to-element
220         type for arrays.
222 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
224         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
225         Use SWI mode iterator.  Use general_reg_operand predicate.
226         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
227         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
228         predicates.
230 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
232         PR middle-end/70843
233         * fold-const.c (operand_equal_p): Don't verify hash value equality
234         if arg0 == arg1.
235         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
236         and OMP_CLAUSE.
238 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
240         PR target/70858
241         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
242         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
243         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
244         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
245         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
247 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
249         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
250         to info.  Don't initialize separate fields to 0.  Clean up
251         formatting a bit.
253 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
255         * config/i386/i386.md (peephole2s for operations with memory inputs):
256         Use SWI mode iterator.
257         (peephole2s for operations with memory outputs): Ditto.
258         Do not check for stack checking probe.
260         (probe_stack): Remove expander.
262 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
263             Andrew Burgess  <andrew.burgess@embecosm.com>
265         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
266         operands as 32-bits.
268 2016-04-28  Jason Merrill  <jason@redhat.com>
270         * gdbinit.in: Skip line-map.h.
272 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
273             Andrew Burgess  <andrew.burgess@embecosm.com>
275         * config/arc/arc.c (arc_conditional_register_usage): Take
276         TARGET_RRQ_CLASS into account.
277         (arc_print_operand): Support printing 'p' and 's' operands.
278         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
279         as 0.
280         (TARGET_RRQ_CLASS): Define.
281         (IS_POWEROF2_OR_0_P): Define.
282         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
283         alternatives.
284         (*tst_movb): New define_insn.
285         (*tst): Avoid recognition if it could prevent '*tst_movb'
286         combination; replace c/CnL with c/Chs alternative.
287         (*tst_bitfield_tst): New define_insn.
288         (*tst_bitfield_asr): New define_insn.
289         (*tst_bitfield): New define_insn.
290         (andsi3_i): Add Rrq variant.
291         (extzv): New define_expand.
292         (insv): New define_expand.
293         (*insv_i): New define_insn.
294         (*movb): New define_insn.
295         (*movb_signed): New define_insn.
296         (*movb_high): New define_insn.
297         (*movb_high_signed): New define_insn.
298         (*movb_high_signed + 1): New define_split pattern.
299         (*mrgb): New define_insn.
300         (*mrgb + 1): New define_peephole2 pattern.
301         (*mrgb + 2): New define_peephole2 pattern.
302         * config/arc/arc.opt (mbitops): New option for nps400, uses
303         TARGET_NPS_BITOPS_DEFAULT.
304         * config/arc/constraints.md (q): Make register class conditional.
305         (Rrq): New register constraint.
306         (Chs): New constraint.
307         (Clo): New constraint.
308         (Chi): New constraint.
309         (Cbf): New constraint.
310         (Cbn): New constraint.
311         (C18): New constraint.
312         (Cbi): New constraint.
314 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
316         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
317         dst->popcount.
318         (bitmap_intersection_of_preds): Ditto.
319         (bitmap_union_of_succs): Ditto.
320         (bitmap_union_of_preds): Ditto.
321         * sbitmap.c (do_popcount): Delete.
322         (BITMAP_DEBUGGING): Delete.
323         (sbitmap_verify_popcount): Delete.
324         (sbitmap_alloc): Don't initialize the popcount field.
325         (sbitmap_alloc_with_popcount): Delete.
326         (sbitmap_resize): Don't resize the popcount array.
327         (sbitmap_vector_alloc): Don't initialize the popcount field.
328         (bitmap_copy): Don't copy the popcount array.
329         (bitmap_clear): Don't clear the popcount array.
330         (bitmap_clear): Delete the popcount array handling.
331         (bitmap_ior_and_compl): Delete the popcount assert.
332         (bitmap_not): Ditto.
333         (bitmap_and_compl): Ditto.
334         (bitmap_and): Delete the popcount array handling.
335         (bitmap_xor): Ditto.
336         (bitmap_ior): Ditto.
337         (bitmap_or_and): Delete the popcount assert.
338         (bitmap_and_or): Ditto.
339         (popcount_table): Delete.
340         (sbitmap_elt_popcount): Delete.
341         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
342         (bitmap_set_bit): Delete the popcount assert.
343         (bitmap_clear_bit): Ditto.
344         (sbitmap_free): Don't free the popcount array.
345         (sbitmap_alloc_with_popcount): Delete declaration.
346         (sbitmap_popcount): Ditto.
348 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
349             Andrew Burgess  <andrew.burgess@embecosm.com>
351         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
352         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
353         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
354         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
355         * config/arc/arc.opt (mcmem): New option.
356         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
357         supply length for r/m alternative.
358         (*extendqisi2_ac): Likewise.
359         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
360         r/Uex alternative.
361         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
362         (movhi_insn): Likewise.
363         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
364         (*zero_extendqihi2_i): Add r/Ucm alternative.
365         (*zero_extendqisi2_ac): Likewise.
366         (*zero_extendhisi2_i): Likewise.
367         * config/arc/constraints.md (Uex): New memory constraint.
368         (Ucm): New define_constraint.
369         * config/arc/predicates.md (long_immediate_loadstore_operand):
370         Return 0 for MEM with cmem_address address.
371         (cmem_address_0): New predicates.
372         (cmem_address_1): Likewise.
373         (cmem_address_2): Likewise.
374         (cmem_address): Likewise.
376 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
378         * config/rs6000/rs6000.c (machine_function): Rename
379         insn_chain_scanned_p to spe_insn_chain_scanned_p.
380         (rs6000_stack_info): Adjust.
382 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
383             Andrew Burgess  <andrew.burgess@embecosm.com>
385         * config/arc/constraints.md (Usd): Convert to define_constraint.
386         (Us<): Likewise.
387         (Us>): Likewise.
389 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
391         PR target/70821
392         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
393         Add new peephole2 where the first insn is *mov<mode>_or instead of
394         *mov<mode>_internal.
396 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
398         * tracer.c (bb_seen): Make static.
400 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
402         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
403         support, setup defaults.
404         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
405         * config/arc/arc.c (arc_init): Add NPS400 support.
406         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
407         (TARGET_ARC700): NPS400 is also an ARC700.
408         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
410 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
412         PR target/70668
413         * config/nds32/nds32.md (casesi): Don't access the operands array
414         out of bounds.
416 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
418         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
419         (or $-1,reg peephole2): Ditto.
420         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
422 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
424         * doc/extend.texi (Common Function Attributes) [optimize]:
425         Discourage use of the optimize attribute.
427 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
429         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
430         special case builtin.
431         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
432         ALTIVEC_BUILTIN_VEC_ADDE.
433         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
434         support for ALTIVEC_BUILTIN_VEC_ADDE.
435         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
436         for __builtin_vec_adde.
438 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
440         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
441         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
443 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
445         PR testsuite/70595
446         * doc/sourcebuild.texi (Effective-Target Keywords, Other
447         attributes): Document cilkplus_runtime.
449 2016-04-28  Martin Jambor  <mjambor@suse.cz>
451         * tree-cfg.c (verify_expr): Verify that local declarations belong to
452         this function.  Call verify_expr on MEM_REFs and bases of other
453         handled_components.
455 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
457         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
458         for WORD_REGISTER_OPERATIONS to runtime check.
460 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
462         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
464 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
466         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
467         big-endian compilation.
468         * config/arc/arc.md (addf3): Likewise.
469         (subdf3): Likewise.
470         (muldf3): Likewise.
472 2016-04-28  Richard Biener  <rguenther@suse.de>
474         PR tree-optimization/70840
475         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
476         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
477         Mark x * pow(x,c) -> pow(x,c+1) commutative.
478         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
480 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
482         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
483         and explain why in a comment.
485 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
487         * config/arc/arc.md (cpu_facility): Add fpx variant.
488         (subdf3): Prohibit use reverse sub when assist operations option
489         is enabled.
490         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
491         instructions only when FPX is enabled.
492         * testsuite/gcc.target/arc/trsub.c: New test.
494 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
496         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
497         mult_operator when calculating "type" attribute.
498         (*fop_<mode>_1_i387): Ditto.
499         (*fop_xf_1_i387): Ditto.
500         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
501         Use std::swap to swap operands.  Use RTL expressions to generate
502         converted pattern.
504 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
505             Joern Rennecke  <joern.rennecke@embecosm.com>
507         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
508         declaration.
509         (emit_pic_move): Remove.
510         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
511         * config/arc/arc.c (emit_pic_move): Removed.
512         (TARGET_HAVE_TLS): Define.
513         (arc_conditional_register_usage): Test for arc_tp_regno.
514         (arc_print_operand, arc_print_operand_address): Handle TLS
515         unspecs.
516         (arc_needs_pcl_p): New function.
517         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
518         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
519         (arc_raw_symbolic_reference_mentioned_p): Likewise.
520         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
521         (arc_legitimize_tls_address): Likewise.
522         (DTPOFF_ZERO_SYM): Define.
523         (arc_legitimize_pic_address): Make it static, handle TLS cases.
524         (arc_output_pic_addr_const): Print TLS unspecs.
525         (prepare_pic_move): New function, replaces emit_pic_move.
526         (arc_legitimate_constant_p): Handle TLS unspecs.
527         (arc_legitimate_address_p): Likewise.
528         (arc_rewrite_small_data_p): Use assert for TLS constants.
529         (prepare_move_operands): Use prepare_pic_move.
530         (arc_legitimize_address): Legitimize tls addresses.
531         (arc_epilogue_uses): Check for arc_tp_regno.
532         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
533         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
534         Define.
535         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
536         Likewise.
537         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
538         %(arc_tls_extra_start_spec).
539         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
540         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
541         (EH_USES): Define.
542         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
543         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
544         (UNSPEC_TLS_OFF): Add.
545         (R10_REG): Define.
546         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
547         (get_thread_pointersi): New patterns.
548         * config/arc/arc.opt (mtp-regno): New option.
549         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
550         (move_dest_operand): Likewise.
551         * configure: Regenerate.
552         * configure.ac: Add arc*-*-* case to test for tls.
553         * doc/invoke.texi (ARC options): Document mtp-regno.
555 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
557         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
558         the new ARC HS SIMD instructions.
559         (arc_preferred_simd_mode): New function.
560         (arc_autovectorize_vector_sizes): Likewise.
561         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
562         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
563         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
564         (arc_init_builtins): Add new SIMD builtin types.
565         (arc_split_move): Handle 64 bit vector moves.
566         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
567         (TARGET_PLUS_QMACW): Define.
568         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
569         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
570         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
571         (VSUBADD4H): New builtins.
572         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
573         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
575 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
576             Matthias Klose  <doko@debian.org>
578         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
580 2016-04-28  Richard Biener  <rguenther@suse.de>
582         PR middle-end/70777
583         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
584         canonicalization.
586 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
588         * common/config/sh/sh-common.c: Remove SH5 support.
589         * config/sh/constraints.md: Likewise.
590         * config/sh/config/sh/elf.h: Likewise.
591         * config/sh/linux.h: Likewise.
592         * config/sh/netbsd-elf.h: Likewise.
593         * config/sh/predicates.md: Likewise.
594         * config/sh/sh-c.c: Likewise.
595         * config/sh/sh-protos.h: Likewise.
596         * config/sh/sh.c: Likewise.
597         * config/sh/sh.h: Likewise.
598         * config/sh/sh.md: Likewise.
599         * config/sh/sh.opt: Likewise.
600         * config/sh/sync.md: Likewise.
601         * config/sh/sh64.h: Delete.
602         * config/sh/shmedia.h: Likewise.
603         * config/sh/shmedia.md: Likewise.
604         * config/sh/sshmedia.h: Likewise.
605         * config/sh/t-netbsd-sh5-64: Likewise.
606         * config/sh/t-sh64: Likewise.
607         * config/sh/ushmedia.h: Likewise.
609 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
611         * config/i386/i386.md (sign_extend to memory peephole2s): Use
612         general_reg_operand instead of register_operand predicate.
614 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
616         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
618 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
620         * match.pd (A - B > A, A + B < A): New transformations.
622 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
624         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
625         which defaults to true.  Emit an outer pair of parentheses only if
626         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
627         don't emit parentheses for the right-hand operand.
629 2016-04-27  Jeff Law  <law@redhat.com>
631         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
633 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
635         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
636         (altivec_lvx_<mode>_internal): Document.
637         (altivec_lvx_<mode>_2op): New define_insn.
638         (altivec_lvx_<mode>_1op): Likewise.
639         (altivec_lvx_<mode>_2op_si): Likewise.
640         (altivec_lvx_<mode>_1op_si): Likewise.
641         (altivec_stvx_<mode>): Remove.
642         (altivec_stvx_<mode>_internal): Document.
643         (altivec_stvx_<mode>_2op): New define_insn.
644         (altivec_stvx_<mode>_1op): Likewise.
645         (altivec_stvx_<mode>_2op_si): Likewise.
646         (altivec_stvx_<mode>_1op_si): Likewise.
647         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
648         Expand vec_ld and vec_st during parsing.
649         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
650         changes.
651         (altivec_expand_stvx_be): Likewise.
652         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
653         address-masking behavior in RTL.
654         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
655         address-masking behavior in RTL.
656         (altivec_expand_builtin): Change builtin code arguments for calls
657         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
658         (insn_is_swappable_p): Avoid incorrect swap optimization in the
659         presence of lvx/stvx patterns.
660         (alignment_with_canonical_addr): New function.
661         (alignment_mask): Likewise.
662         (find_alignment_op): Likewise.
663         (recombine_lvx_pattern): Likewise.
664         (recombine_stvx_pattern): Likewise.
665         (recombine_lvx_stvx_patterns): Likewise.
666         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
667         stvx patterns from expand.
668         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
669         expansions.
670         (vector_altivec_store_<mode>): Likewise.
672 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
674         * config/aarch64/aarch64.md
675         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
676         remove the "fp" attributes.
677         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
678         add the "simd" attributes.
679         (*movdf_aarch64): Likewise.
680         (*movtf_aarch64): Remove the "fp" attributes.
681         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
682         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
684 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
686         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
687         rtx to rtx_code_label *.
688         * rtl.h (maybe_set_first_label_num): Likewise.
690 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
692         * df-core.c (df_add_problem): Make the problem param be const.
693         (df_remove_problem): Make local "problem" be const.
694         * df-problems.c (problem_RD): Make const.
695         (problem_LR): Likewise.
696         (problem_LIVE): Likewise.
697         (problem_MIR): Likewise.
698         (problem_CHAIN): Likewise.
699         (problem_WORD_LR): Likewise.
700         (problem_NOTE): Likewise.
701         (problem_MD): Likewise.
702         * df-scan.c (problem_SCAN): Likewise.
703         * df.h (struct df_problem): Make field "dependent_problem" be
704         const.
705         (struct dataflow): Likewise for field "problem".
706         (df_add_problem): Make param const.
708 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
710         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
711         inter-unit moves to/from vector registers are enabled.  Do not disable
712         for TARGET_MMX.
714 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
716         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
717         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
718         #define to...
719         (enum df_problem_id): ...this new enum.
720         (struct df_problem): Convert field "id" from "int" to
721         enum df_problem_id.
723 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
725         * rtl.def: Update comment for "things in the instruction chain" to
726         reflect the removal of the leading "i" field for INSN_UID in
727         r210360.  Fix bogus apostrophe.
729 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
731         * config/i386/i386.md
732         (lea arith with mem operand + setcc peephole2): Set operator mode.
734 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
736         PR target/70155
737         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
738         (dimode_scalar_to_vector_candidate_p): This.
739         (timode_scalar_to_vector_candidate_p): New function.
740         (scalar_to_vector_candidate_p): Likewise.
741         (timode_check_non_convertible_regs): Likewise.
742         (timode_remove_non_convertible_regs): Likewise.
743         (remove_non_convertible_regs): Likewise.
744         (remove_non_convertible_regs): Renamed to ...
745         (dimode_remove_non_convertible_regs): This.
746         (scalar_chain::~scalar_chain): Make it virtual.
747         (scalar_chain::compute_convert_gain): Make it pure virtual.
748         (scalar_chain::mark_dual_mode_def): Likewise.
749         (scalar_chain::convert_insn): Likewise.
750         (scalar_chain::convert_registers): Likewise.
751         (scalar_chain::add_to_queue): Make it protected.
752         (scalar_chain::emit_conversion_insns): Likewise.
753         (scalar_chain::replace_with_subreg): Likewise.
754         (scalar_chain::replace_with_subreg_in_insn): Likewise.
755         (scalar_chain::convert_op): Likewise.
756         (scalar_chain::convert_reg): Likewise.
757         (scalar_chain::make_vector_copies): Likewise.
758         (scalar_chain::convert_registers): New pure virtual function.
759         (class dimode_scalar_chain): New class.
760         (class timode_scalar_chain): Likewise.
761         (scalar_chain::mark_dual_mode_def): Renamed to ...
762         (dimode_scalar_chain::mark_dual_mode_def): This.
763         (timode_scalar_chain::mark_dual_mode_def): New function.
764         (timode_scalar_chain::convert_insn): Likewise.
765         (dimode_scalar_chain::convert_registers): Likewise.
766         (scalar_chain::compute_convert_gain): Renamed to ...
767         (dimode_scalar_chain::compute_convert_gain): This.
768         (scalar_chain::replace_with_subreg): Renamed to ...
769         (dimode_scalar_chain::replace_with_subreg): This.
770         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
771         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
772         (scalar_chain::make_vector_copies): Renamed to ...
773         (dimode_scalar_chain::make_vector_copies): This.
774         (scalar_chain::convert_reg): Renamed to ...
775         (dimode_scalar_chain::convert_reg ): This.
776         (scalar_chain::convert_op): Renamed to ...
777         (dimode_scalar_chain::convert_op): This.
778         (scalar_chain::convert_insn): Renamed to ...
779         (dimode_scalar_chain::convert_insn): This.
780         (scalar_chain::convert): Call convert_registers.
781         (convert_scalars_to_vector): Change to scalar_chain pointer to
782         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
783         in 32-bit mode.  Delete scalar_chain pointer.  Call
784         free_dominance_info in 64-bit mode.
785         (pass_stv::gate): Remove TARGET_64BIT check.
786         (ix86_option_override): Put the 64-bit STV pass before the CSE
787         pass.
789 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
791         * dwarf2out.h (struct dw_loc_descr_node): Remove the
792         dw_loc_frame_offset field.
793         * dwarf2out.c (new_loc_descr): Likewise.
794         (resolve_args_picking_1): Turn the VISITED hash set into a
795         FRAME_OFFSET hash map. Use it to associate a frame offset to
796         visited nodes. Remove uses of the CHECKING_P macro.
797         (resolve_args_picking): Update call to resolve_args_picking_1.
799 2016-04-27  Martin Liska  <mliska@suse.cz>
801         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
802         (free_loop_data): Release vuses of groups.
804 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
806         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
807         instead of redundant use_id and boolean have_use_for.
808         (struct iv_use): Change sub_id into group_id.  Remove field next.
809         Move fields: related_cands, n_map_members, cost_map and selected
810         to ...
811         (struct iv_group): ... here.  New structure.
812         (struct iv_common_cand): Use structure declaration directly.
813         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
814         (MAX_CONSIDERED_USES): Rename macro to ...
815         (MAX_CONSIDERED_GROUPS): ... here.
816         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
817         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
818         (dump_uses): Rename to ...
819         (dump_groups): ... here.  Update all uses.
820         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
821         (find_induction_variables): Refactor format of dump information.
822         (record_sub_use): Delete.
823         (record_use): Update all uses.
824         (record_group): New function.
825         (record_group_use, find_interesting_uses_op): Call above functions.
826         Update all uses.
827         (find_interesting_uses_cond): Ditto.
828         (group_compare_offset): New function.
829         (split_all_small_groups): Rename to ...
830         (split_small_address_groups_p): ... here.  Update all uses.
831         (split_address_groups):  Update all uses.
832         (find_interesting_uses): Refactor format of dump information.
833         (add_candidate_1): Update all uses.  Remove redundant check on iv,
834         base and step.
835         (add_candidate, record_common_cand): Remove redundant assert.
836         (add_iv_candidate_for_biv): Update use.
837         (add_iv_candidate_derived_from_uses): Update all uses.
838         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
839         (alloc_use_cost_map): Ditto.
840         (set_use_iv_cost, get_use_iv_cost): Rename to ...
841         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
842         (determine_use_iv_cost_generic): Ditto.
843         (determine_group_iv_cost_generic): Ditto.
844         (determine_use_iv_cost_address): Ditto.
845         (determine_group_iv_cost_address): Ditto.
846         (determine_use_iv_cost_condition): Ditto.
847         (determine_group_iv_cost_cond): Ditto.
848         (determine_use_iv_cost): Ditto.
849         (determine_group_iv_cost): Ditto.
850         (set_autoinc_for_original_candidates): Update all uses.
851         (find_iv_candidates): Update all uses.  Refactor dump information.
852         (determine_use_iv_costs): Ditto.
853         (determine_iv_costs): Ditto.
854         (iv_ca_cand_for_use): Rename to ...
855         (iv_ca_cand_for_group): ... here.  Update all uses.
856         (iv_ca_add_use, iv_ca_add_group): Ditto.
857         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
858         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
859         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
860         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
861         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
862         (create_new_iv, adjust_iv_update_pos): Ditto.
863         (rewrite_use_address): Delete.
864         (rewrite_use_address_1): Rename to ...
865         (rewrite_use_address): ... here.
866         (rewrite_use_compare): Update all uses.
867         (rewrite_use): Delete.
868         (rewrite_uses): Rename to ...
869         (rewrite_groups): ... here.  Update all uses.
870         (remove_unused_ivs, free_loop_data): Update all uses.
871         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
873 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
875         * rtlanal.c (nonzero_bits1): Convert preprocessor check
876         for WORD_REGISTER_OPERATIONS to runtime check.
878 2016-04-27  Richard Biener  <rguenther@suse.de>
880         PR ipa/70760
881         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
882         aggregate_value_p to determine if a function result is
883         returned by reference.
884         (ipa_pta_execute): Functions having their address taken are
885         not automatically nonlocal.
887 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
889         PR sanitizer/70683
890         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
891         * fold-const.c (operand_equal_p): If flag_checking and
892         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
893         and if it returns non-zero, assert iterative_hash_expr on both
894         args is the same.
896 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
898         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
900 2016-04-27  Nick Clifton  <nickc@redhat.com>
902         PR middle-end/49889
903         * varasm.c (merge_weak): Generate an error if an attempt is made
904         to convert a non-weak static function into a weak, public function.
906 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
908         * params.def (MAX_PARTITION_SIZE): New param.
909         * doc/invoke.texi: Document lto-max-partition.
911 2016-04-27  Richard Biener  <rguenther@suse.de>
913         PR ipa/70785
914         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
915         function cummulating used_from_other_partition, externally_visible
916         and force_output from aliases.
917         (refered_from_nonlocal_var): Likewise.
918         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
919         node flags properly.
921 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
923         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
924         (-Wmemset-elt-size): New item.
926 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
928         PR ada/70759
929         * stor-layout.h (internal_reference_types): Delete.
930         * stor-layout.c (reference_types_internal): Likewise.
931         (internal_reference_types): Likewise.
932         (layout_type) <REFERENCE_TYPE>: Adjust.
934 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
936         PR sanitizer/70683
937         * tree.h (inchash::add_expr): Add FLAGS argument.
938         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
939         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
940         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
941         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
942         if swap_tree_comparison (code) is smaller than code, hash that
943         and arguments in the other order.  Hash CONVERT_EXPR the same
944         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
945         of ADDR_EXPR of decl as the decl itself.  Add or remove
946         OEP_ADDRESS_OF from recursive flags as needed.  For
947         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
948         operands commutatively and only the third one normally.
949         For internal CALL_EXPR hash in CALL_EXPR_IFN.
951 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
953         * config/rtems.h (LIB_SPEC): Add -latomic.
955 2016-04-27  Joel Sherrill  <joel@rtems.org>
957         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
958         xilink.ld and flags not relevant to RTEMS.
960 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
962         * toplev.c (backend_init_target): Avoid calling init_reload when using
963         LRA.
965 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
967         * reorg.c (try_merge_delay_insns): Declare i and j inside the
968         for loops rather than one for the whole function.
970 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
972         * match.pd (X + CST CMP X): New transformation.
974 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
976         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
977         * fold-const.c (fold_binary_loc): Remove 2 transformations
978         superseded by match.pd.
979         * match.pd (x+x -> x*2): Generalize to integers.
981 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
983         * config/i386/i386.md (operation on memory peephole): Duplicate an
984         existing peephole and adapt it to match lea rather than an operation
985         that clobbers CC.
987         PR rtl-optimization/57193
988         * opts.c (default_options_table): Add OPT_frename_registers at -O2
989         and above.
990         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
992 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
994         * tree-if-conv.c (any_pred_load_store): New static variable.
995         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
996         any_pred_load_store instead of and_mask_load_store.
997         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
998         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
999         (combine_blocks, tree_if_conversion): Ditto.
1001 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
1003         PR tree-optimization/70771
1004         PR tree-optimization/70775
1005         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1006         virtual PHI nodes.  Delete parameter.
1007         (if_convertible_loop_p_1): Delete argument to above function.
1008         (predicate_all_scalar_phis): Delete code handling single-argument
1009         PHIs.
1010         (tree_if_conversion): Mark and update virtual SSA.
1012 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1014         PR target/61821
1015         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1016         (x86_elf_aligned_common): Rename to ...
1017         (x86_elf_aligned_decl_common): ... this.
1018         Add decl arg.  Switch to .lbss for largecomm object.  Use
1019         LARGECOMM_SECTION_ASM_OP.
1020         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1021         renaming.
1022         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1023         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1024         Pass new decl arg.
1025         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1026         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1028 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1030         PR target/59407
1031         * config/i386/i386.c (SECTION_LARGE): Define.
1032         (x86_64_elf_select_section): Set it for large data/bss sections.
1033         Only clear SECTION_WRITE for .lrodata.
1034         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1035         data/bss sections.
1036         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1037         * varasm.c (default_elf_asm_named_section): Grow flagchars.
1038         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1039         SECTION_MACH_DEP.
1040         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1041         * doc/tm.texi: Regenerate.
1043 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
1045         PR bootstrap/70704
1046         * configure.ac (--enable-checking): Document extra flag, for
1047         non-release builds default to --enable-checking=yes,extra.
1048         If misc checking and extra checking, define CHECKING_P to 2 instead
1049         of 1.
1050         * common.opt (fchecking=): Add.
1051         * doc/invoke.texi (-fchecking=): Document.
1052         * doc/install.texi: Document --enable-checking changes.
1053         * configure: Regenerated.
1054         * config.in: Regenerated.
1056 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1058         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1059         attribute instead of which_alternative.
1060         * config/i386/sse.md (*mov<mode>_internal): Ditto.
1061         Use EXT_REX_SSE_REG_P where appropriate.
1063 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1065         * config/i386/predicates.md (const0_operand): Do not match
1066         const_wide_int code.
1067         (const1_operand): Ditto.
1069 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1071         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1072         for SSE constm1 operands and TARGET_AVX512VL.
1073         (*movti_internal): Ditto.
1074         (*mov<mode>_or): Use constm1_operand predicate.
1075         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1076         for SSE vector_all_ones operands and TARGET_AVX512VL.
1077         * config/i386/predicates.md (constm1_operand): New predicate.
1078         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1079         emission of constant -1 load.
1081 2016-04-25  Jason Merrill  <jason@redhat.com>
1083         * gdbinit.in: Skip is-a.h.
1085         * attribs.c (register_scoped_attributes): Fix logic.
1086         * attribs.h: Declare register_scoped_attributes.
1088 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1090         * config/rs6000/rs6000-builtin.def: Correct pasto error for
1091         stxvd2x and stxvw4x built-in functions.
1093 2016-04-25  DJ Delorie  <dj@redhat.com>
1095         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1096         (ashrhi3): Likewise.
1097         (lshrhi3): Likewise.
1099 2016-04-25  Richard Biener  <rguenther@suse.de>
1101         PR tree-optimization/70780
1102         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1103         wasn't visited yet.
1104         (compute_antic): Mark blocks with abnormal preds as visited as
1105         they have a final empty antic-in solution already.
1107 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1109         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1111 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1113         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1114         mode is VQI to improve mixed mode vectorization.
1115         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1116         define_insn to match low half of signed vaddw.
1117         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1118         define_insn to match high half of signed vaddw.
1119         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1120         define_insn to match low half of unsigned vaddw.
1121         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1122         define_insn to match high half of unsigned vaddw.
1123         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1124         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1125         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1126         for new function.
1127         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1128         * config/arm/predicates.md (vect_par_constant_high): Support
1129         big endian and simplify by calling
1130         arm_simd_check_vect_par_cnst_half
1131         (vect_par_constant_low): Likewise.
1133 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1135         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1136         predicate for operand 2.
1138 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
1139             H.J. Lu  <hongjiu.lu@intel.com>
1141         * config/i386/i386-protos.h (standard_sse_constant_p): Add
1142         machine_mode argument.
1143         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1144         constm1_rtx operands.  For VOIDmode constants, get mode from
1145         pred_mode.  Check mode size if the mode is supported by ABI.
1146         (standard_sse_constant_opcode): Do not use standard_constant_p.
1147         Strictly check ABI support for all-ones operands.
1148         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1149         immediates. Update calls to standard_sse_constant_p.
1150         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1151         (ix86_rtx_costs): Ditto.
1152         * config/i386/i386.md (*movxi_internal_avx512f): Use
1153         nonimmediate_or_sse_const_operand instead of vector_move_operand.
1154         Use (v,BC) alternative instead of (v,C). Use register_operand
1155         checks instead of MEM_P.
1156         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1157         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
1158         isa attribute.  Use register_operand checks instead of MEM_P.
1159         (*movti_internal): Use nonimmediate_or_sse_const_operand for
1160         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
1161         alternative and corresponding sse2 isa attribute.
1162         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1163         to standard_sse_constant_p.
1164         (FP constant splitters): Ditto.
1165         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1166         (C): Ditto.
1167         * config/i386/predicates.md (constm1_operand): Remove.
1168         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1169         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1170         vector_all_ones_operand instead of constm1_operand.
1172 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1174         * print-rtl.c (print_rtx_insn_vec): New function.
1175         * print-rtl.h: New prototype.
1176         * store-motion.c (struct st_expr): Make avail_stores a vector.
1177         (st_expr_entry): Adjust.
1178         (free_st_expr_entry): Likewise.
1179         (print_store_motion_mems): Likewise.
1180         (find_moveable_store): Likewise.
1181         (compute_store_table): Likewise.
1182         (delete_store): Likewise.
1183         (build_store_vectors): Likewise.
1185 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1187         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1189 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1191         * vec.h (vec_safe_contains): New function.
1192         (vec::contains): Likewise.
1193         (vec::begin): Likewise.
1194         (vec::end): Likewise.
1196 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
1198         PR sanitizer/70712
1199         * cfgexpand.c (expand_stack_vars): Fix typo.
1201 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1203         * system.h (list, map, set, vector): Include conditionally.
1204         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1205         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1206         * ipa-icf.c (INCLUDE_LIST): Define.
1207         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1208         * config/sh/sh.c (INCLUDE_VECTOR): Define.
1209         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1210         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1211         * cp/logic.cc (INCLUDE_LIST): Define.
1212         * fortran/trans-common.c (INCLUDE_MAP): Define.
1214 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1216         * auto-profile.c: Remove <string.h> include.
1217         * ipa-icf-gimple.c: Remove <list> include.
1218         * diagnostic.c: Remove <new> include.
1219         * genmatch.c: Likewise.
1220         * pretty-print.c: Likewise.
1221         * toplev.c: Likewise
1222         * c/c-objc-common.c: Likewise.
1223         * cp/error.c: Likewise.
1224         * fortran/error.c: Likewise.
1226 2016-04-22  Richard Biener  <rguenther@suse.de>
1228         * lto-streamer-in.c (input_ssa_names): Do not allocate
1229         GIMPLE_NOP for all SSA names.
1230         * lto-streamer-out.c (output_ssa_names): Do not output
1231         SSA names that should have been released.
1233 2016-04-22  Richard Biener  <rguenther@suse.de>
1235         PR tree-optimization/70740
1236         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1237         VDEF.
1239 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
1241         PR target/70750
1242         * config/i386/predicates.md (call_insn_operand): Replace
1243         sibcall_memory_operand with memory_operand.
1245 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
1247         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1248         has_single_use() tests.
1249         (register_edge_assert_for_1): Likewise.
1250         (find_assert_locations_1): Check the liveness bitmap instead of
1251         checking has_single_use().
1253 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1255         PR target/70728
1256         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1257         Extract AVX-512BW constraint from AVX.
1259 2016-04-21  Richard Biener  <rguenther@suse.de>
1261         PR tree-optimization/70725
1262         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1263         for phi_convertible_by_degenerating_args.
1264         (predicate_all_scalar_phis): Handle single-argument PHIs.
1266 2016-04-21  Richard Biener  <rguenther@suse.de>
1268         PR middle-end/70747
1269         * fold-const.c (fold_comparison): Return properly typed
1270         constant boolean.
1272 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
1274         PR tree-optimization/70715
1275         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1276         after expanding BASE using expand_simple_operations.
1278 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1280         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1281         New transformations.
1283 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1285         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1287 2016-04-20  Jan Hubicka  <jh@suse.cz>
1289         * ipa-inline.c (can_inline_edge_p): Pass caller info to
1290         ultiimate_alias_target.
1291         (update_callee_keys): Likewise.
1292         (lookup_recursive_calls): Likewise.
1293         (speculation_useful_p): Likewise.
1295 2016-04-20  Jan Hubicka  <jh@suse.cz>
1297         PR ipa/70018
1298         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1299         (set_nothrow_flag_1): ... this; handle interposition correctly;
1300         recurse on aliases and thunks.
1301         (cgraph_node::set_nothrow_flag): New.
1302         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1303         functions compiled with non-call exceptions that binds to current
1304         def.
1305         (propagate_nothrow): Be safe WRT interposition.
1306         * cgraph.h (set_nothrow_flag): Update prototype.
1308 2016-04-18  Jan Hubicka  <jh@suse.cz>
1310         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1311         max_loop_iterations_int.
1312         (tree_unswitch_outer_loop): Likewise.
1314 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1316         PR tree-optimization/69489
1317         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1318         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1319         Revise dump message.
1320         (if_convertible_bb_p): Remove check on edge count of basic block's
1321         predecessors.
1323 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1325         PR tree-optimization/56625
1326         PR tree-optimization/69489
1327         * tree-data-ref.h (DR_INNERMOST): New macro.
1328         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1329         hashing struct innermost_loop_behavior.
1330         (ref_DR_map): Remove.
1331         (innermost_DR_map): New map.
1332         (baseref_DR_map): Revise comment.
1333         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1334         to innermost_DR_map accroding to its innermost loop behavior.
1335         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1336         to its innermost loop behavior.
1337         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1338         Add initialization for innermost_DR_map.  Record memory reference
1339         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1340         have innermost loop behavior.
1341         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
1342         innermost_DR_map.
1344 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
1346         * config/i386/i386.md (*lea<mode>_general_1): Rename from
1347         *lea_general_1.  Use explicit SWI12 mode interator.
1348         (*lea<mode>_general_2): Rename from *lea_general_2.
1349         Use explicit SWI12 mode interator.
1350         (*lea<mode>_general_3): Rename from *lea_general_3.
1351         Use explicit SWI12 mode interator.
1352         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1353         Use explicit SWI12 mode interator.
1354         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1355         Use explicit SWI48 mode interator.
1357 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1359         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1360         Short-cut unaligned load and store cases.  Handle all integer
1361         vector modes.
1362         (ix86_expand_vector_move_misalign): Short-cut unaligned load
1363         and store cases.  Call ix86_avx256_split_vector_move_misalign
1364         directly without checking mode class.
1366 2016-04-20  Andrew Pinski  <apinski@cavium.com>
1367             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1369         PR target/64971
1370         * config/aarch64/aarch64.md (sibcall): Force call
1371         address to be DImode for ILP32.
1372         (sibcall_value): Likewise.
1374 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1376         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1378 2016-04-20  Richard Biener  <rguenther@suse.de>
1380         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1381         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1382         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1383         (maybe_push_res_to_seq): Adjust.
1384         * gimple-fold.c (maybe_build_generic_op): Likewise.
1386 2016-04-20  Marek Polacek  <polacek@redhat.com>
1388         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1389         rather than true.
1391 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1393         * config/i386/sse.md (vec_unpacks_lo_hi): Always
1394         use kmovw to support AVX512F target.
1396 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1398         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1400 2016-04-20  Marek Polacek  <polacek@redhat.com>
1402         PR tree-optimization/70725
1403         * tree-if-conv.c (is_false_predicate): New function.
1404         (predicate_mem_writes): Use it.
1406 2016-04-20  Richard Biener  <rguenther@suse.de>
1408         PR tree-optimization/70726
1409         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1410         shift amounts from a pattern stmt operand.
1412 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1414         PR target/70674
1415         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1416         stack_restore_from_fpr pattern when restoring r15.
1417         (s390_optimize_prologue): Strip away the memory barrier in the
1418         parallel when trying to get rid of restore insns.
1419         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1420         definition for loading the stack pointer from an FPR.  Compared to
1421         the normal move insn this pattern includes a full memory barrier.
1423 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
1425         PR middle-end/70680
1426         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1427         implicitly linear or lastprivate iterator on the outer context.
1429 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1431         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1432         alignment check.
1433         * config/i386/i386.md (ssememalign): Removed.
1434         * config/i386/sse.md: Remove ssememalign attribute from patterns.
1436 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1438         PR target/69201
1439         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1440         const short * to __builtin_ia32_loaddquhi512_mask.
1441         (_mm512_maskz_loadu_epi16): Likewise.
1442         (_mm512_mask_storeu_epi16): Pass short * to
1443         __builtin_ia32_storedquhi512_mask.
1444         (_mm512_mask_loadu_epi8): Pass const char * to
1445         __builtin_ia32_loaddquqi512_mask.
1446         (_mm512_maskz_loadu_epi8): Likewise.
1447         (_mm512_mask_storeu_epi8): Pass char * to
1448         __builtin_ia32_storedquqi512_mask.
1449         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1450         const double * to __builtin_ia32_loadupd512_mask.
1451         (_mm512_mask_loadu_pd): Likewise.
1452         (_mm512_maskz_loadu_pd): Likewise.
1453         (_mm512_storeu_pd): Pass double * to
1454         __builtin_ia32_storeupd512_mask.
1455         (_mm512_mask_storeu_pd): Likewise.
1456         (_mm512_loadu_ps): Pass const float * to
1457         __builtin_ia32_loadups512_mask.
1458         (_mm512_mask_loadu_ps): Likewise.
1459         (_mm512_maskz_loadu_ps): Likewise.
1460         (_mm512_storeu_ps): Pass float * to
1461         __builtin_ia32_storeups512_mask.
1462         (_mm512_mask_storeu_ps): Likewise.
1463         (_mm512_mask_loadu_epi64): Pass const long long * to
1464         __builtin_ia32_loaddqudi512_mask.
1465         (_mm512_maskz_loadu_epi64): Likewise.
1466         (_mm512_mask_storeu_epi64): Pass long long *
1467         to __builtin_ia32_storedqudi512_mask.
1468         (_mm512_loadu_si512): Pass const int * to
1469         __builtin_ia32_loaddqusi512_mask.
1470         (_mm512_mask_loadu_epi32): Likewise.
1471         (_mm512_maskz_loadu_epi32): Likewise.
1472         (_mm512_storeu_si512): Pass int * to
1473         __builtin_ia32_storedqusi512_mask.
1474         (_mm512_mask_storeu_epi32): Likewise.
1475         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1476         char * to __builtin_ia32_storedquqi256_mask.
1477         (_mm_mask_storeu_epi8): Likewise.
1478         (_mm256_mask_loadu_epi16): Pass const short * to
1479         __builtin_ia32_loaddquhi256_mask.
1480         (_mm256_maskz_loadu_epi16): Likewise.
1481         (_mm_mask_loadu_epi16): Pass const short * to
1482         __builtin_ia32_loaddquhi128_mask.
1483         (_mm_maskz_loadu_epi16): Likewise.
1484         (_mm256_mask_loadu_epi8): Pass const char * to
1485         __builtin_ia32_loaddquqi256_mask.
1486         (_mm256_maskz_loadu_epi8): Likewise.
1487         (_mm_mask_loadu_epi8): Pass const char * to
1488         __builtin_ia32_loaddquqi128_mask.
1489         (_mm_maskz_loadu_epi8): Likewise.
1490         (_mm256_mask_storeu_epi16): Pass short * to.
1491         __builtin_ia32_storedquhi256_mask.
1492         (_mm_mask_storeu_epi16): Pass short * to.
1493         __builtin_ia32_storedquhi128_mask.
1494         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1495         const double * to __builtin_ia32_loadupd256_mask.
1496         (_mm256_maskz_loadu_pd): Likewise.
1497         (_mm_mask_loadu_pd): Pass onst double * to
1498         __builtin_ia32_loadupd128_mask.
1499         (_mm_maskz_loadu_pd): Likewise.
1500         (_mm256_mask_storeu_pd): Pass double * to
1501         __builtin_ia32_storeupd256_mask.
1502         (_mm_mask_storeu_pd): Pass double * to
1503         __builtin_ia32_storeupd128_mask.
1504         (_mm256_mask_loadu_ps): Pass const float * to
1505         __builtin_ia32_loadups256_mask.
1506         (_mm256_maskz_loadu_ps): Likewise.
1507         (_mm_mask_loadu_ps): Pass const float * to
1508         __builtin_ia32_loadups128_mask.
1509         (_mm_maskz_loadu_ps): Likewise.
1510         (_mm256_mask_storeu_ps): Pass float * to
1511         __builtin_ia32_storeups256_mask.
1512         (_mm_mask_storeu_ps): ass float * to
1513         __builtin_ia32_storeups128_mask.
1514         (_mm256_mask_loadu_epi64): Pass const long long * to
1515         __builtin_ia32_loaddqudi256_mask.
1516         (_mm256_maskz_loadu_epi64): Likewise.
1517         (_mm_mask_loadu_epi64): Pass const long long * to
1518         __builtin_ia32_loaddqudi128_mask.
1519         (_mm_maskz_loadu_epi64): Likewise.
1520         (_mm256_mask_storeu_epi64): Pass long long * to
1521         __builtin_ia32_storedqudi256_mask.
1522         (_mm_mask_storeu_epi64): Pass long long * to
1523         __builtin_ia32_storedqudi128_mask.
1524         (_mm256_mask_loadu_epi32): Pass const int * to
1525         __builtin_ia32_loaddqusi256_mask.
1526         (_mm256_maskz_loadu_epi32): Likewise.
1527         (_mm_mask_loadu_epi32): Pass const int * to
1528         __builtin_ia32_loaddqusi128_mask.
1529         (_mm_maskz_loadu_epi32): Likewise.
1530         (_mm256_mask_storeu_epi32): Pass int * to
1531         __builtin_ia32_storedqusi256_mask.
1532         (_mm_mask_storeu_epi32): Pass int * to
1533         __builtin_ia32_storedqusi128_mask.
1534         * config/i386/i386-builtin-types.def (PCSHORT): New.
1535         (PINT64): Likewise.
1536         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1537         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1538         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1539         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1540         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1541         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1542         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1543         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1544         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1545         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1546         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1547         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1548         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1549         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1550         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1551         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1552         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1553         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1554         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1555         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1556         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1557         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1558         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1559         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1560         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1561         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1562         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1563         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1564         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1565         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1566         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1567         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1568         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1569         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1570         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1571         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1572         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1573         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1574         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1575         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1576         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1577         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1578         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1579         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1580         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1581         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1582         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1583         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1584         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1585         use UNSPEC_STOREU.
1586         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1587         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1588         load nor store.
1589         (ix86_expand_vector_move_misalign): Likewise.
1590         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1591         to scalar function prototype for unaligned load/store builtins.
1592         (ix86_expand_special_args_builtin): Updated.
1593         * config/i386/sse.md (UNSPEC_LOADU): Removed.
1594         (UNSPEC_STOREU): Likewise.
1595         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1596         (VI_ULOADSTORE_F_AVX512VL): Likewise.
1597         (ssescalarsize): Handle V4TI, V2TI and V1TI.
1598         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1599         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1600         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1601         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1602         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1603         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1604         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1605         (<avx512>_storedqu<mode>_mask): Likewise.
1606         (*sse4_2_pcmpestr_unaligned): Likewise.
1607         (*sse4_2_pcmpistr_unaligned): Likewise.
1608         (*mov<mode>_internal): Renamed to ...
1609         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
1610         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1611         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1612         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1614 2016-04-19  Richard Biener  <rguenther@suse.de>
1616         PR tree-optimization/70171
1617         * tree-ssa-phiprop.c: Include stor-layout.h.
1618         (phiprop_insert_phi): Handle the aggregate copy case.
1619         (propagate_with_phi): Likewise.
1621 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
1623         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1624         instead of simplify_gen_subreg (... , 0).
1625         (ix86_delegitimize_address): Ditto.
1626         (ix86_split_divmod): Ditto.
1627         (ix86_split_copysign_const): Ditto.
1628         (ix86_split_copysign_var): Ditto.
1629         (ix86_expand_args_builtin): Ditto.
1630         (ix86_expand_round_builtin): Ditto.
1631         (ix86_expand_special_args_builtin): Ditto.
1632         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1633         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1634         (udivmodqi4): Ditto.
1635         (absneg splitters): Ditto.
1636         (*jcc_bt<mode>_1): Ditto.
1638 2016-04-19  Richard Biener  <rguenther@suse.de>
1640         PR tree-optimization/70724
1641         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1642         restoring out from ...
1643         (free_scc_vn): ... here.
1644         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1645         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1646         tail merging.
1647         (pass_fre::execute): Restore SSA info.
1649 2016-04-19  Richard Biener  <rguenther@suse.de>
1651         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1652         * gimple-walk.c (walk_gimple_op): Initialize it.
1653         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1654         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1655         remapping SSA names of defs.
1656         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1657         adjustment.
1659 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
1661         PR middle-end/70689
1662         * lra-constraints.c (equiv_substition_p): New.
1663         (process_alt_operands): Use it.
1664         (swap_operands): Swap it.
1665         (curr_insn_transform): Update it.
1667 2016-04-18  Michael Matz  <matz@suse.de>
1669         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1670         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1671         * tree-core.h (tree_type_common.align): Use bit-field.
1672         (tree_type_common.spare): New.
1673         (tree_decl_common.off_align): Make smaller.
1674         (tree_decl_common.align): Use bit-field.
1676         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1677         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1678         (scan_sharing_clauses): Ditto.
1679         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1680         (omp_finish_file): Ditto.
1681         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1682         (layout_decl): Ditto.
1683         (relayout_decl): Ditto.
1684         (finalize_record_size): Use SET_TYPE_ALIGN.
1685         (finalize_type_size): Ditto.
1686         (finish_builtin_struct): Ditto.
1687         (layout_type): Ditto.
1688         (initialize_sizetypes): Ditto.
1689         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1690         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1691         (lookup_field_for_decl): Use SET_DECL_ALIGN.
1692         (get_chain_field): Ditto.
1693         (get_trampoline_type): Ditto.
1694         (get_nl_goto_field): Ditto.
1695         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1696         SET_DECL_ALIGN.
1697         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1698         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1699         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1700         (build_qualified_type): Use SET_TYPE_ALIGN.
1701         (build_aligned_type, build_range_type_1): Ditto.
1702         (build_atomic_base): Ditto.
1703         (build_common_tree_nodes): Ditto.
1704         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1705         (expand_one_stack_var_at): Ditto.
1706         * coverage.c (build_var): Use SET_DECL_ALIGN.
1707         * except.c (init_eh): Ditto.
1708         * function.c (assign_parm_setup_block): Ditto.
1709         * symtab.c (increase_alignment_1): Ditto.
1710         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1711         * tree-vect-stmts.c (ensure_base_align): Ditto.
1712         * varasm.c (align_variable): Ditto.
1713         (assemble_variable): Ditto.
1714         (build_constant_desc): Ditto.
1715         (output_constant_def_contents): Ditto.
1717         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1718         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1719         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1720         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1721         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1723 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
1725         PR target/70708
1726         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1727         replace %vmovsd with "%vmovq".
1728         (vec_concatv2df): Likewise.
1730 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
1732         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1733         (*vec_extractv2si_0): Ditto.
1734         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1735         (zero_extended_scalar_load_operand splitters): Ditto.
1736         (vec_extract splitters): Ditto.
1737         (*vec_extractv4si_0_zext): Ditto.
1738         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1739         and lowpart_subreg.
1740         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1741         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1742         (*sse4_1_extractps): Use lowpart_subreg.
1744 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1746         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1747         gld requirements.
1748         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1749         Mention Solaris 11 packaging changes.
1750         Update gas and gld requirements.
1751         Remove reference to pre-Solaris 10 bug.
1752         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1753         systems and bugs.
1754         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1755         with cc.
1757 2016-04-17  Jan Hubicka  <jh@suse.cz>
1759         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1760         max_loop_iterations_int.
1762 2016-04-18  Richard Biener  <rguenther@suse.de>
1764         PR tree-optimization/43434
1765         * tree-ssa-structalias.c (struct vls_data): New.
1766         (visit_loadstore): Handle all pointer-based accesses.
1767         (compute_dependence_clique): Compute a bitmap of restrict tags
1768         assigned bases and pass it to visit_loadstore.
1770 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
1772         PR target/70711
1773         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1774         armv8.1-a and armv8.1-a+crc.
1776 2016-04-18  Richard Biener  <rguenther@suse.de>
1778         PR tree-optimization/70701
1779         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1780         references after translating through a memcpy.
1782 2016-04-18  Richard Biener  <rguenther@suse.de>
1784         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1785         (compute_antic): ... here.  For partial antic use regular
1786         postorder and scrap iteration.
1787         (compute_partial_antic_aux): Remove unused return value.
1788         (init_pre): Do not allocate postorder.
1789         (fini_pre): Do not free postorder.
1791 2016-04-18  Richard Biener  <rguenther@suse.de>
1793         PR middle-end/37870
1794         * expmed.c (extract_bit_field_1): Remove broken case
1795         using a wider MODE_INT mode.
1797 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
1799         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1800         unless compiling with at least GCC-4.8.
1802 2016-04-17  Jan Hubicka  <jh@suse.cz>
1804         PR bootstrap/70706
1805         * graphite.c (graphite_finalize): Update call to
1806         tree_estimate_probability.
1807         * predict.h (tree_estimate_probability): Update prototype.
1809 2016-04-17  Jan Hubicka  <jh@suse.cz>
1811         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1812         (tree_estimate_probability): Likewise.
1813         (pass_profile::execute): Update.
1814         (report_predictor_hitrates): New function.
1815         * profile.c (compute_branch_probabilities): Use it.
1816         * predict.h (report_predictor_hitrates): Declare.
1818 2016-04-17  Jan Hubicka  <jh@suse.cz>
1820         PR ipa/70018
1821         * cgraph.h (cgraph_node::set_const_flag,
1822         cgraph_node::set_pure_flag): Update prototype to return bool;
1823         update comment.
1824         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1825         of interposable symbol are interposable, too.
1826         (cgraph_set_const_flag_1): Rename to ...
1827         (set_const_flag_1): ... this one; change to self recursive function
1828         instead of call_for_symbol_thunks_and_aliases. Handle correctly
1829         clearnig the flag in all variants and also virtual thunks of const
1830         functions are pure; track if any change was done.
1831         (cgraph_node::set_const_flag): Update.
1832         (struct set_pure_flag_info): New struct.
1833         (cgraph_set_pure_flag_1): Rename to ...
1834         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1835         rather than pointer encoded flags; track if any changes was done;
1836         handle correctly clearning flag and setting flag of aliases already
1837         declared const.
1838         (cgraph_node::set_pure_flag): Update.
1839         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1841 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1843         PR other/70433
1844         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1845         backslash in label.
1847 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1849         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1850         '{}<> ' as escape-for-record.
1852 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1854         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1855         structure.
1857 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1859         PR other/70185
1860         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1861         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1862         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1863         * passes.c (finish_optimization_passes): Only call
1864         finish_graph_dump_file if dfi->graph_dump_initialized.
1865         (execute_function_dump, pass_init_dump_file): Use
1866         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1868 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1870         PR tree-optimization/70256
1871         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1872         (debug_varmap): New function.
1874 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1876         PR other/70183
1877         * passes.c (pass_manager::register_pass): Propagate pflags.
1879 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1881         PR other/68875
1882         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1883         * passes.c (pass_manager::pass_manager): Declare and init p_start in
1884         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
1885         check if it's equal to p_start.
1886         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1888 2016-04-15  Jan Hubicka  <jh@suse.cz>
1890         PR ipa/70018
1891         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1892         function does not bind to current def.
1893         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1894         handle conservatively calls to functions that does not need to bind
1895         to current def.
1896         (check_call): Update call of worse_state.
1897         (ignore_edge_for_nothrow): Update.
1898         (ignore_edge_for_pure_const): Likewise.
1899         (propagate_pure_const): Update calls to worse_state.
1900         (skip_function_for_local_pure_const): Reformat comments.
1902 2016-04-15  Jan Hubicka  <jh@suse.cz>
1904         PR ipa/70018
1905         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1906         (cgraph_node::function_symbol): Likewise.
1907         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1908         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1909         (symtab_node::ultimate_alias_target): Add REF parameter.
1910         (symtab_node::binds_to_current_def_p): Declare.
1911         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1912         (cgraph_node::function_symbol): Likewise.
1913         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1914         (cgraph_node::get_availability): Likewise.
1915         (cgraph_edge::binds_to_current_def_p): New inline function.
1916         (varpool_node::get_availability): Add REF parameter.
1917         (varpool_node::ultimate_alias_target): Likewise.
1918         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1919         (symtab_node::binds_to_current_def_p): Likewise.
1920         * varpool.c (varpool_node::get_availability): Likewise.
1922 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
1924         PR target/70662
1925         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1926         Fix mode size check.
1928 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
1930         * BASE-VER: Set to 7.0.0.
1932 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
1934         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1936 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1938         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1939         architecture revisions.
1941 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
1943         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1944         * config/i386/i386.c (ix86_using_red_zone): No longer static.
1945         * config/i386/i386.md (stack decrement to push peepholes): Guard
1946         with !x86_using_red_zone ().
1948 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
1950         PR c++/70675
1951         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1952         to dump_generic_node.
1953         (NIY): Pass also flags to do_niy.
1955 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1957         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1958         (simd_clone_vector_of_formal_parm_types)
1959         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1960         (simd_clone_mangle, simd_clone_create)
1961         (simd_clone_adjust_return_type, create_tmp_simd_array)
1962         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1963         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1964         (ipa_simd_modify_function_body, simd_clone_linear_addend)
1965         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1966         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1967         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1968         * omp-simd-clone.c: ... this new file.
1969         (simd_clone_vector_of_formal_parm_types): Make it static.
1970         * Makefile.in (OBJS): Add omp-simd-clone.o.
1972 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
1974         PR target/70662
1975         * config/i386/sse.md: Use proper memory operand modifiers.
1978 2016-04-15  Richard Biener  <rguenther@suse.de>
1979         Alan Modra  <amodra@gmail.com>
1981         PR tree-optimization/70130
1982         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1983         when alignment stays not the same and no not use the realign
1984         scheme then.
1986 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1988         PR target/70669
1989         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1990         direct move handlers for KFmode. Change TFmode handlers test from
1991         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1993 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
1995         PR c++/70594
1996         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1997         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1998         (inlined_polymorphic_ctor_dtor_block_p): Use it.
1999         * tree-ssa-live.c (remove_unused_scope_block_p): When
2000         in_ctor_dtor_block, avoid discarding not just BLOCKs with
2001         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2002         block_ultimate_origin is FUNCTION_DECL.
2003         (remove_unused_locals): If current_function_decl is
2004         polymorphic_ctor_dtor_p, pass initial true to
2005         remove_unused_scope_block_p' is_ctor_dtor_block.
2007 2016-04-14  Martin Sebor  <msebor@redhat.com>
2009         PR c++/69517
2010         PR c++/70019
2011         PR c++/70588
2012         * doc/extend.texi (Variable Length): Revert.
2014 2016-04-14  Marek Polacek  <polacek@redhat.com>
2015             Jan Hubicka  <hubicka@ucw.cz>
2017         PR c++/70029
2018         * tree.c (verify_type): Disable the canonical type of main variant
2019         check.
2021 2016-04-14  Jason Merrill  <jason@redhat.com>
2023         * cfgexpand.c, expr.c: Revert previous change.
2025 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
2027         PR middle-end/70643
2028         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2029         when building a mem ref for the incoming reduction variable.
2031 2016-04-14  Richard Biener  <rguenther@suse.de>
2033         PR tree-optimization/70614
2034         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2035         loop if the evolution dropped to chrec_dont_know.
2036         (interpret_condition_phi): Likewise.
2038 2016-04-14  Richard Biener  <rguenther@suse.de>
2040         PR tree-optimization/70623
2041         * tree-ssa-pre.c (changed_blocks): Make global ...
2042         (compute_antic): ... local here.  Move and fix worklist
2043         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2044         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
2045         worklist handling, dump when ANTIC_IN changed.
2046         (compute_partial_antic_aux): Remove worklist handling.
2047         (init_pre): Do not compute post dominators.  Add a comment about
2048         the CFG order chosen.
2049         (fini_pre): Do not free post dominators.
2051 2016-04-13  Martin Sebor  <msebor@redhat.com>
2053         PR c++/69517
2054         PR c++/70019
2055         PR c++/70588
2056         * doc/extend.texi (Variable Length): Document C++ specifics.
2058 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
2060         PR c++/70641
2061         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2062         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
2063         eh edges have been purged.
2065         PR c++/70594
2066         * tree-sra.c (create_access_replacement,
2067         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2068         gets fancy name.
2069         * tree-pretty-print.c (dump_fancy_name): New function.
2070         (dump_decl_name, dump_generic_node): Use it.
2072 2016-04-13  Jason Merrill  <jason@redhat.com>
2074         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2075         * expr.c (expand_expr_real_1): Likewise.
2077 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2079         * config/i386/i386.md (kunpckhi): Swap operands.
2080         (kunpcksi): Likewise.
2081         (kunpckdi): Likewise.
2082         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2083         (vec_pack_trunc_<mode>): Likewise.
2085 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
2087         PR debug/70628
2088         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2090         PR middle-end/70633
2091         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2092         gimplification turns some element into non-constant.
2094         PR debug/70628
2095         * rtl.h (convert_memory_address_addr_space_1): New prototype.
2096         * explow.c (convert_memory_address_addr_space_1): No longer static,
2097         add NO_EMIT argument and don't call convert_modes if true, pass
2098         it down recursively, remove break after return.
2099         (convert_memory_address_addr_space): Adjust caller.
2100         * simplify-rtx.c (simplify_unary_operation_1): Call
2101         convert_memory_address_addr_space_1 instead of convert_memory_address,
2102         if it returns NULL, don't simplify.
2104 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2106         PR target/70630
2107         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2109 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2111         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2112         Bump the upper SIMDLEN limits, so that if the return type or
2113         characteristic type if the return type is void can be passed in
2114         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2115         allowed.
2117 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2119         PR target/70640
2120         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2121         Do not use "=" constraint on an input constraint.
2122         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2123         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2124         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2125         generates (neg (abs ...)) instead of (abs ...).
2127 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2129         PR rtl-optimization/70596
2130         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2131         just invalidate LRA data and reset them.  Adjust dump wording.
2133 2016-04-12  Martin Liska  <mliska@suse.cz>
2135         Revert
2136         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2138         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2139         estimates here.
2140         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2141         max_loop_iterations_int.
2142         (tree_unswitch_outer_loop): Likewise.
2143         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2144         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2146 2016-04-12  Tom de Vries  <tom@codesourcery.com>
2148         PR tree-optimization/68756
2149         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2150         instead of new_name.
2152 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2154         PR tree-optimization/70602
2155         * tree-sra.c (generate_subtree_copies): Don't write anything into
2156         constant pool decls.
2158         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2159         regardless whether there are depend clauses or not.
2161 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2163         PR target/70381
2164         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2165         target attribute and pragma from changing the -mfloat128
2166         and -mfloat128-hardware options.
2168         * doc/extend.texi (Additional Floating Types): Document PowerPC
2169         __float128 restrictions.
2171 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2173         PR target/70133
2174         * config/aarch64/driver-aarch64.c
2175         (aarch64_get_extension_string_for_isa_flags): New.
2176         (arch_extension): Rename to...
2177         (aarch64_arch_extension): ...This.
2178         (ext_to_feat_string): Rename to...
2179         (aarch64_extensions): ...This.
2180         (aarch64_core_data): Keep track of architecture extension flags.
2181         (cpu_data): Rename to...
2182         (aarch64_cpu_data): ...This.
2183         (aarch64_arch_driver_info): Keep track of architecture extension
2184         flags.
2185         (get_arch_name_from_id): Rename to...
2186         (get_arch_from_id): ...This, change return type.
2187         (host_detect_local_cpu): Update and reformat for renames, handle
2188         extensions through common infrastructure.
2190 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2192         PR target/70133
2193         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2194         track of a canonical flag name.
2195         (all_extensions): Likewise.
2196         (arch_to_arch_name): Also track extension flags enabled by the arch.
2197         (all_architectures): Likewise.
2198         (aarch64_parse_extension): Move to here.
2199         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2200         rework.
2201         (aarch64_rewrite_selected_cpu): Update for above change.
2202         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2203         are handled, such that the single explicit value enabled by an
2204         extension is kept seperate from the implicit values it also enables.
2205         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2206         to here.
2207         (aarch64_parse_extension): New.
2208         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2209         here to config/aarch64/aarch64-protos.h.
2210         (aarch64_parse_extension): Move from here to
2211         common/config/aarch64/aarch64-common.c.
2212         (aarch64_option_print): Update.
2213         (aarch64_declare_function_name): Likewise.
2214         (aarch64_start_file): Likewise.
2215         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2216         the canonical flag for extensions.
2217         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2218         flags.
2220 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2222         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2223         AARCH64_FL_CRC.
2225 2016-04-09  Tom de Vries  <tom@codesourcery.com>
2227         PR tree-optimization/68953
2228         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2229         first to last subscript.
2231 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
2233         PR tree-optimization/70586
2234         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2235         for any calls.
2237 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
2239         PR lto/70289
2240         PR ipa/70348
2241         PR tree-optimization/70373
2242         PR middle-end/70533
2243         PR middle-end/70534
2244         PR middle-end/70535
2245         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2246         clauses for acc parallel reductions as necessary.  Error on those
2247         that are private.
2248         * omp-low.c (scan_sharing_clauses): Don't install variables which
2249         are used in acc parallel reductions.
2250         (lower_rec_input_clauses): Remove dead code.
2251         (lower_oacc_reductions): Add support for reference reductions.
2252         (lower_reduction_clauses): Remove dead code.
2253         (lower_omp_target): Don't remap variables appearing in acc parallel
2254         reductions.
2255         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2257 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
2259         PR middle-end/70593
2260         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2261         with multiple SSA_NAME defs, force the outputs other than first
2262         to be live before calling live_track_process_def on each output.
2264         PR rtl-optimization/70574
2265         * fwprop.c (forward_propagate_and_simplify): Don't add
2266         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2267         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2268         paradoxical subregs within *loc.
2270 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
2272         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2273         -ftree-parallelize-loops={0,1}.
2274         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2275         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2276         * config/ia64/hpux.h (LIB_SPEC): Likewise.
2277         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2278         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2280 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
2282         PR sanitizer/70541
2283         * asan.c (instrument_derefs): If we get unknown location, extract it
2284         with EXPR_LOCATION.
2285         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2287 2016-04-08  Tom de Vries  <tom@codesourcery.com>
2289         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2290         implicit firstprivate clause.
2292 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2294         PR target/70566
2295         * config/arm/thumb2.md (tst + branch-> lsls + branch
2296         peephole below *orsi_not_shiftsi_si): Require that condition
2297         register is dead after the peephole.
2298         (second peephole after the above): Likewise.
2300 2016-04-08  Alan Modra  <amodra@gmail.com>
2302         PR target/70117
2303         * builtins.c (fold_builtin_classify): For IBM extended precision,
2304         look at just the high-order double to test for NaN.
2305         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
2306         test just the high double for Inf but both doubles for subnormal
2307         limit.
2309 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
2311         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2312         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2313         node->simdclone->mask_mode != VOIDmode masks.
2314         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
2315         earlier, use it instead of node->simdclone.
2316         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2317         Set clonei->mask_mode.
2319 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
2321         PR c/70436
2322         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2323         Pass it through to cp_parser_already_scoped_statement.
2324         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
2325         it through to cp_parser_statement.
2326         (cp_parser_statement): Pass IF_P through to
2327         cp_parser_iteration_statement.
2328         (cp_parser_pragma): Adjust call to
2329         cp_parser_iteration_statement.
2331 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
2333         PR c/70436
2334         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2335         resolve a future -Wparentheses warning.
2336         * omp-low.c (scan_sharing_clauses): Likewise.
2337         * tree-parloops.c (eliminate_local_variables): Likewise.
2339 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
2341         PR rtl-optimization/70398
2342         * lra-constraints.c (process_address_1): Check zero scale and code
2343         for reloading with zero scale.
2345 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
2347         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2348         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2350 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
2352         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2353         Add support for AVX512F clones, include them by default for
2354         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
2355         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2356         up to 128.
2358         PR middle-end/70550
2359         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2360         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2361         firstprivate clauses.
2362         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2363         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2364         (lower_omp_target): Set TREE_NO_WARNING for
2365         non-addressable possibly uninitialized vars which are copied into
2366         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2368 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
2370         * config/pa/predicates.md (integer_store_memory_operand): Accept
2371         REG+D operands with a large offset when reload_in_progress is true.
2372         (floating_point_store_memory_operand): Likewise.
2374 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2376         PR c++/70336
2377         * match.pd (nested int casts): Limit to GIMPLE.
2379 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
2381         PR ipa/66223
2382         * ipa-devirt.c (maybe_record_node): Fix comment; use
2383         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2385 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2387         PR rtl-optimization/70542
2388         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2389         if there are any uses other than insn or debug insns.
2391 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
2392             Jakub Jelinek  <jakub@redhat.com>
2394         PR tree-optimization/70509
2395         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2396         Shift HOST_WIDE_INT_1U instead of 1.
2398 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
2400         PR tree-optimization/70509
2401         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2402         of the vector base type for index.
2404 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
2406         PR target/70510
2407         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2409 2016-04-05  Richard Biener  <rguenther@suse.de>
2411         PR tree-optimization/70526
2412         * tree-sra.c (build_ref_for_offset): Use prev_base to
2413         extract the alias pointer type.
2415 2016-04-05  Richard Biener  <rguenther@suse.de>
2417         * dse.c (struct store_info): Remove alias_set member.
2418         (struct read_info_type): Likewise.
2419         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2420         spill_deleted, clear_alias_set_lookup): Remove.
2421         (get_group_info): Remove dead base == NULL_RTX case.
2422         (dse_step0): Remove initialization of removed variables.
2423         (delete_dead_store_insn): Reomve alias set dumping.
2424         (free_read_records): Remove alias_set handling.
2425         (canon_address): Remove alias_set_out parameter.
2426         (record_store): Remove spill_alias_set, it's always zero.
2427         (check_mem_read_rtx): Likewise.
2428         (dse_step2): Rename from ...
2429         (dse_step2_nospill): ... this.  Adjust.
2430         (scan_stores): Rename from ...
2431         (scan_stores_nospill): ... this.
2432         (scan_reads): Rename from ...
2433         (scan_reads_nospill): ... this.
2434         (scan_stores_spill, scan_reads_spill): Remove.
2435         (dse_step3_scan): Remove for_spills argument which is always false.
2436         (dse_step3): Likewise.
2437         (dse_step5): Rename from ...
2438         (dse_step5_nospill): ... this.  Remove alias_set handling.
2439         (rest_of_handle_dse): Adjust.
2441 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2443         PR target/70525
2444         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2445         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2446         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2447         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2449 2016-04-05  Richard Biener  <rguenther@suse.de>
2451         PR middle-end/70499
2452         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2453         non-register type temporaries into SSA.
2455 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
2457         PR ipa/66223
2458         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2459         calls when sanitizing.
2460         (possible_polymorphic_call_target_p): Fix formatting.
2462 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2463             Jakub Jelinek <jakub@redhat.com>
2465         PR middle-end/70457
2466         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2467         to ensure a call statement is compatible with a built-in's
2468         prototype.
2469         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2470         Likewise.
2472 2016-04-04  Richard Biener  <rguenther@suse.de>
2474         PR rtl-optimization/70484
2475         * rtl.h (canon_output_dependence): Declare.
2476         * alias.c (canon_output_dependence): New function.
2477         * dse.c (record_store): Use canon_output_dependence rather
2478         than canon_true_dependence.
2480 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2482         PR ipa/68881
2483         * cgraph.h (symtab_node::copy_visibility_from): New function.
2484         * symtab.c (symtab_node::copy_visibility_from): New function.
2485         * ipa-visibility.c (optimize_weakref): New function.
2486         (function_and_variable_visibility): Use it.
2488 2016-04-04  Martin Liska  <mliska@suse.cz>
2490         PR hsa/70402
2491         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2492         value that is really in range handled by SBR instruction.
2493         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2494         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2495         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2497 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
2499         PR target/70416
2500         PR target/67391
2501         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2502         set, but not for SP_REG operands.
2504 2016-04-02  Martin Sebor  <msebor@redhat.com>
2506         PR c++/67376
2507         * fold-const.c (maybe_nonzero_address): New function.
2508         (fold_comparison): Call it.  Fold equality and relational
2509         expressions involving null pointers.
2510         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2512 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
2514         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2515         the "Y" constraint (scalar FP 0.0 immediate).
2517         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2518         Add the "const_double" to the list of operand constraints.
2520 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
2522         PR rtl-optimization/70467
2523         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2524         If low word of the last operand is 0, just emit addition/subtraction
2525         for the high word.
2527 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2529         PR target/70404
2530         * config/s390/s390.c (s390_expand_insv): Check for everything
2531         constant instead of just VOIDmode stuff.
2533 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2535         PR target/70496
2536         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2538 2016-04-01  Nathan Sidwell  <nathan@acm.org>
2540         * tree.def (TRY_CATCH_EXPR): Correct documentation.
2542 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2544         PR rtl-optimization/70461
2545         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2546         is necessary.
2548 2016-03-31  Martin Liska  <mliska@suse.cz>
2550         PR hsa/70399
2551         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2552         a tree value or an immediate integer value to a buffer
2553         that is eventually copied to a BRIG section.
2554         (emit_immediate_operand): Call the function here.
2555         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2556         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2557         of class' fields that are removed.
2558         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2559         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2560         m_brig_repr_size fields.
2562 2016-03-31  Martin Liska  <mliska@suse.cz>
2564         PR hsa/70391
2565         * hsa-gen.c (hsa_function_representation::update_dominance): New
2566         function.
2567         (convert_addr_to_flat_segment): Likewise.
2568         (gen_hsa_memory_set): New alignment argument.
2569         (gen_hsa_ctor_assignment): Likewise.
2570         (gen_hsa_insns_for_single_assignment): Provide alignment
2571         to gen_hsa_ctor_assignment.
2572         (gen_hsa_insns_for_direct_call): Add new argument.
2573         (expand_lhs_of_string_op): New function.
2574         (expand_string_operation_builtin): Likewise.
2575         (expand_memory_copy): New function.
2576         (expand_memory_set): New function.
2577         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2578         (convert_switch_statements): Change signature.
2579         (generate_hsa): Use a return value of the function.
2580         (pass_gen_hsail::execute): Do not call
2581         convert_switch_statements here.
2582         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2583         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2584         (hsa_function_representation::update_dominance): New function.
2586 2016-03-31  Martin Liska  <mliska@suse.cz>
2588         PR hsa/70391
2589         * hsa-brig.c (emit_directive_variable): Emit alignment
2590         according to hsa_symbol::m_align.
2591         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2592         (dump_hsa_symbol): Dump alignment of HSA symbols.
2593         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2594         (gen_hsa_addr_with_align): New function.
2595         (hsa_bitmemref_alignment): Use newly added function.
2596         (gen_hsa_insns_for_load): Likewise.
2597         (gen_hsa_insns_for_store): Likewise.
2598         (gen_hsa_memory_copy): New argument added.
2599         (gen_hsa_insns_for_single_assignment): Respect
2600         alignment for assignments processed via gen_hsa_memory_copy.
2601         (gen_hsa_insns_for_direct_call): Likewise.
2602         (gen_hsa_insns_for_return): Likewise.
2603         (gen_function_def_parameters): Set default alignment.
2604         * hsa.c (hsa_object_alignment): New function.
2605         (hsa_byte_alignment): Pasted function.
2606         * hsa.h (hsa_symbol::m_align): New field.
2608 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
2610         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2611         scratch field for goto case.
2613 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
2615         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2617 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
2619         PR target/70442
2620         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2621         (scalar_chain::convert_insn): Call convert_op for reg
2622         moves to handle undefined registers.
2624 2016-03-31  Nathan Sidwell  <nathan@acm.org>
2626         PR c++/70393
2627         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2628         Assert we don't want to move backwards.
2630 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2632         PR target/70453
2633         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2635 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
2637         PR rtl-optimization/70460
2638         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2639         with operand from REG_LABEL_OPERAND, instead substitute
2640         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2641         Don't do anything for REG_NON_LOCAL_GOTO jumps.
2643 2016-03-31  Martin Liska  <mliska@suse.cz>
2645         * passes.c (execute_one_pass): Do not call
2646         todo_after for a discarded function.
2648 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
2650         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2651         (no_cost, infinite_cost): Initialize the new field.
2652         (get_computation_cost_at): Record setup cost.
2653         (determine_use_iv_cost_address): Skip cost computation for sub
2654         uses if we can estimate it without losing accuracy.
2656 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2658         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2659         estimates here.
2660         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2661         max_loop_iterations_int.
2662         (tree_unswitch_outer_loop): Likewise.
2663         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2664         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2666 2016-03-30  Richard Biener  <rguenther@suse.de>
2668         PR middle-end/70450
2669         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2671 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
2673         PR target/70421
2674         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2675         in gen_blendm expander.
2677 2016-03-30  Nick Clifton  <nickc@redhat.com>
2679         PR target/62254
2680         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2681         case where we are already provided with an SImode SUBREG.
2683 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2685         PR target/70439
2686         * config/i386/i386.c (ix86_expand_epilogue): Properly check
2687         conflict between DRAP register and __builtin_eh_return.
2689 2016-03-30  Michael Matz  <matz@suse.de>
2690             Richard Biener  <rguenther@suse.de>
2692         PR ipa/12392
2693         * ipa-polymorphic-call.c (struct type_change_info): Change
2694         speculative to an unsigned allowing to limit the work we do.
2695         (csftc_abort_walking_p): New inline function..
2696         (check_stmt_for_type_change): Limit the number of may-defs
2697         skipped for speculative devirtualization to
2698         max-speculative-devirt-maydefs.
2699         * params.def (max-speculative-devirt-maydefs): New param.
2700         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2702 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
2704         PR target/63890
2705         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2706         and TARGET_MACHO.
2708 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
2710         PR tree-optimization/59124
2711         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2712         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2714 2016-03-29  Jeff Law  <law@redhat.com>
2716         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2718 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
2720         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2721         to HOST_WIDE_INT.
2723 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
2725         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2726         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2727         gcrt0.o if linking dynamically.
2729 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
2731         PR ipa/70283
2732         * ipa-devirt.c (methods_equal_p): New function.
2733         (compare_virtual_tables): Use it.
2734         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2735         * cgraphclones.c (clone_function_name_1): Use
2736         symbol_table::symbol_suffix_separator.
2737         * coverage.c (build_var): Likewise.
2738         * symtab.c (symbol_table::symbol_suffix_separator): New.
2740 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
2742         PR rtl-optimization/70429
2743         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2744         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2745         mode != result_mode.
2747         PR c++/70353
2748         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2750         PR tree-optimization/70405
2751         * ssa-iterators.h (num_imm_uses): Add missing braces.
2753 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
2755         PR rtl-optimization/68695
2756         * ira-color.c (allocno_copy_cost_saving): New.
2757         (improve_allocation): Use it.
2759 2016-03-29  Richard Henderson  <rth@redhat.com>
2761         PR middle-end/70355
2762         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2764 2016-03-29  Richard Biener  <rguenther@suse.de>
2766         PR middle-end/70424
2767         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2768         use alignment returned by get_pointer_alignment_1 if it is
2769         bigger than BITS_PER_UNIT.
2770         * builtins.c (get_pointer_alignment_1): Do not return true
2771         for alignment extracted from SSA info.
2773 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
2775         * config/ft32/ft32.opt (mnodiv): New.
2776         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2777         * doc/invoke.texi (FT32 Options -mnodiv): New.
2779 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
2781         PR target/70406
2782         * config/i386/i386.md (define_split, andn): Fix modes.
2784 2016-03-26  Richard Biener  <rguenther@suse.de>
2785             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2787         PR ipa/70366
2788         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2789         instead of
2790         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2791         as 2nd argument to cl_optimization_restore().
2793 2016-03-25  Richard Henderson  <rth@redhat.com>
2795         PR target/70120
2796         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2797         * config/aarch64/aarch64-protos.h: Declare it.
2798         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2800 2016-03-25  Alan Modra  <amodra@gmail.com>
2802         PR target/70052
2803         * config/rs6000/constraints.md (j): Simplify.
2804         * config/rs6000/predicates.md (easy_fp_constant): Exclude
2805         decimal float 0.D.
2806         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2807         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2808          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2809         in all constraint alternatives.
2810         (movtd_64bit_nodm): Delete "j" constraint alternative.
2812 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
2814         * tree-ssa-propagate.c: Enhance docs for
2815         SSA_PROP_NOT_INTERESTING.
2817 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
2819         * doc/extend.texi: Fix typo in documentation to pure attribute.
2821 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
2823         PR target/70319
2824         * config/pa/pa.md (bswapdi2): Use a scratch register.
2826 2016-03-24  Richard Henderson  <rth@redhat.com>
2828         PR middle-end/69845
2829         * fold-const.c (extract_muldiv_1): Correct test for multiplication
2830         overflow.
2832 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
2834         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2835         using ix86_expand_binary_operator instead of gen_andsi3.
2837 2016-03-24  Richard Biener  <rguenther@suse.de>
2839         PR tree-optimization/70396
2840         * tree-vect-stmts.c (vectorizable_comparison): Use
2841         get_vectype_for_scalar_type.
2843 2016-03-24  Richard Biener  <rguenther@suse.de>
2845         PR middle-end/70370
2846         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2847         with register bases.
2849 2016-03-24  Richard Biener  <rguenther@suse.de>
2851         PR tree-optimization/70372
2852         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2853         build_all_ones_cst to also handle vector types correctly.
2855 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2857         PR target/70381
2858         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2859         -mfloat128 here.
2861 2016-03-23  Marek Polacek  <polacek@redhat.com>
2863         PR c++/69884
2864         * doc/invoke.texi: Document -Wignored-attributes.
2866 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
2868         PR tree-optimization/69042
2869         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2870         parameter from 30 to 40.
2872 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
2874         PR tree-optimization/69042
2875         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2876         for use with constant offset stripped in base.
2878 2016-03-23  Richard Biener  <rguenther@suse.de>
2880         PR middle-end/70251
2881         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2882         mode compatibility check.
2883         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2885 2016-03-23  Jeff Law  <law@redhat.com>
2887         PR tree-optimization/64058
2888         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2889         CONFLICT_COUNT.
2890         (struct ssa_conflicts): Move up earlier in the file.
2891         (conflicts_, var_map_): New static variables.
2892         (initialize_conflict_count): New function to initialize the
2893         CONFLICT_COUNT field for each conflict pair.
2894         (compare_pairs): Lazily initialize the conflict count and use it
2895         as the first tie-breaker.
2896         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
2897         and wipe conflicts_ and map_ around the call to qsort.  Remove
2898         special case for 2 coalesce pairs.
2899         * bitmap.c (bitmap_count_unique_bits): New function.
2900         (bitmap_count_bits_in_word): New function, extracted from
2901         bitmap_count_bits.
2902         (bitmap_count_bits): Use bitmap_count_bits_in_word.
2903         * bitmap.h (bitmap_count_unique_bits): Declare it.
2905 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2907         PR target/69917
2908         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2909         transparent alias chain for decl assembler name.
2910         * config/sol2.c (solaris_assemble_visibility): Likewise.
2912 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2914         * config/arm/arm1020e.md (1020call_op): Reduce reservation
2915         duration.
2916         (v10_fdivs): Likewise.
2917         (v10_fdivd): Likewise.
2919 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2921         PR driver/70132
2922         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2923         to not call fclose twice on file.
2925 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
2927         PR tree-optimization/70354
2928         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2929         oprnd0 is wider than oprnd1 and there is a cast from the wider
2930         type to oprnd1, mask it with the mask of the narrower type.
2932         PR target/70321
2933         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2934         Optimize TARGET_STV splitters, if high or low word of last argument
2935         is 0 or -1.
2937 2016-03-22  Jeff Law  <law@redhat.com>
2939         PR target/70232
2940         tree-ssa-threadbackward.c
2941         (fsm_find_control_statement_thread_paths): Correctly distinguish
2942         between old style jump threads vs FSM jump threads.
2944 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
2946         PR target/70302
2947         * config/i386/i386.c (scalar_chain::convert_op): Support
2948         uninitialized register usage case.
2950 2016-03-22  Richard Biener  <rguenther@suse.de>
2952         PR middle-end/70251
2953         * genmatch.c (gen_transform): Adjust last parameter to a three-state
2954         int...
2955         (capture::gen_transform): ... to change behavior when substituting
2956         a condition into cond or not-cond expr context.
2957         (dt_simplify::gen_1): Adjust.
2958         * gimple-match-head.c: Include gimplify.h for unshare_expr.
2959         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2960         last change and instead change to
2961         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2962         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2964 2016-03-22  Anthony Green  <green@moxielogic.com>
2966         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
2967         issue for moxiebox targets.
2968         (CC1PLUS_SPEC): Ditto.
2970 2016-03-22  Richard Biener  <rguenther@suse.de>
2972         PR middle-end/70333
2973         * fold-const.c (extract_muldiv_1): Properly perform multiplication
2974         in the wide type.
2976 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2978         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2980 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2982         PR target/70325
2983         * config/i386/i386.c (def_builtin): Handle
2984         OPTION_MASK_ISA_AVX512VL to be and-ed with other
2985         bits.
2986         (const struct builtin_description bdesc_special_args[]):
2987         Remove duplicate ISA bits.
2989 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
2991         PR target/70329
2992         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2993         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
2994         in a way that works also for AVX512BW.
2996         PR target/70300
2997         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2998         instead of source if operands[1] is xmm16 and above and
2999         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
3000         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3002         PR c++/70295
3003         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3004         on assign if (*from_p) is a comparison, set it to
3005         TREE_NO_WARNING (*from_p).
3007 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
3009         PR middle-end/70326
3010         * lra.c (restore_scratches): Ignore deleted insns.
3012 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
3013             Jakub Jelinek  <jakub@redhat.com>
3015         PR tree-optimization/70317
3016         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3017         to HONOR_NANS.
3019 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
3021         PR target/70327
3022         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3023         of ix86_expand_move.
3024         (movoi): Ditto.
3025         (movti): Use general_operand for operand 1 predicate.
3027 2016-03-21  Martin Liska  <mliska@suse.cz>
3029         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3030         insns.
3031         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3033 2016-03-21  Martin Liska  <mliska@suse.cz>
3035         PR ipa/70306
3036         * ipa-icf.c (sem_function::parse): Skip static
3037         constructors and destructors.
3039 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
3041         PR target/70296
3042         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3043         function-like macro, peek following token(s) if it is followed
3044         by CPP_OPEN_PAREN token with optional padding in between, and
3045         if not, don't treat it like a macro.
3047 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3048             Alexander Monakov  <amonakov@ispras.ru>
3050         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3051         for the stabs debug format.
3053 2016-03-21  Richard Biener  <rguenther@suse.de>
3055         PR tree-optimization/70310
3056         * tree-vect-generic.c (expand_vector_condition): Fold the built
3057         condition.
3059 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3061         PR target/70293
3062         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3063         Block third alternative for AVX-512VL target,
3065 2016-03-21  Martin Liska  <mliska@suse.cz>
3067         PR hsa/70234
3068         * hsa-brig.c (emit_function_directives): Mark unemitted
3069         global variables for emission.
3070         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3071         (get_symbol_for_decl): Likewise.
3072         * hsa.h (struct hsa_symbol): New flag.
3074 2016-03-21  Richard Biener  <rguenther@suse.de>
3076         PR tree-optimization/70288
3077         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3078         we do not estimate unsimplified all-constant conditionals or
3079         switches as optimized away.
3081 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
3083         PR rtl-optimization/69102
3084         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3085         when we have a readonly dependency context.
3087 2016-03-18  Jeff Law  <law@redhat.com>
3089         PR rtl-optimization/70263
3090         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3091         (update_equiv_regs): When trying to move a store to after the insn
3092         that sets the source of the store, make sure the store occurs after
3093         the insn that sets the source of the store.  When successful note
3094         the REG_EQUIV note created in the dump file.
3096 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
3097             Bernd Schmidt  <bschmidt@redhat.com>
3099         * doc/extend.texi: Document more potential problems with basic asms.
3101 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
3103         PR rtl-optimization/70278
3104         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3105         VOIDmode.
3107 2016-03-18  Jason Merrill  <jason@redhat.com>
3109         * calls.c (load_register_parameters): Fix zero size sibcall logic.
3111 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3113         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3114         values to 128b regs.
3116 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3118         PR tree-optimization/70252
3119         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3120         boolean vector has a proper number of elements.
3121         (supportable_narrowing_operation): Likewise.
3123 2016-03-18  Tom de Vries  <tom@codesourcery.com>
3125         PR ipa/70269
3126         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3128 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
3130         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3131         instead of replace_rtx for DEBUG_INSNs.
3133 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3135         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3136         load type reservations.
3138 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
3140         PR target/70188
3141         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
3142         define_constraint for "Q" and "T" constraints.
3144 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
3146         Tweak the pipeline model for Exynos M1
3148         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
3149         model.
3151 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
3153         PR c/70264
3154         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3155         where one or both locations aren't within a line_map.
3157 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3159         PR driver/70192
3160         * opts.c (finish_options): Don't set flag_pie to the default if
3161         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
3162         if it is -1.
3164 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
3166         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3167         true as ALL_REGS argument to replace_rtx.
3169 2016-03-17  Richard Biener  <rguenther@suse.de>
3171         PR debug/70271
3172         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3173         last.
3175 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3177         PR target/70245
3178         * rtl.h (replace_rtx): Add ALL_REGS argument.
3179         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
3180         equality and assert mode is the same, instead of just rtx pointer
3181         equality.
3182         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3183         true as ALL_REGS argument to replace_rtx.
3185 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3187         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3188         for boolean vector with vector mode only.
3189         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3191 2016-03-17  Nick Clifton  <nickc@redhat.com>
3193         PR target/70162
3194         * config/rx/rx.c (rx_print_integer): Print negative constants in
3195         decimal.
3197 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3199         PR target/70261
3200         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3202 2016-03-16  Richard Henderson  <rth@redhat.com>
3203             Richard Biener  <rguenth@suse.de>
3205         PR middle-end/70240
3206         PR middle-end/68215
3207         PR tree-opt/68714
3208         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3209         first operand as is_gimple_condexpr.
3211         PR middle-end/70240
3212         PR middle-end/68215
3213         Revert r231575
3214         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
3215         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3216         Do not gimplify the result.
3217         (do_unop): Adjust call to tree_vec_extract.
3218         (do_binop): Likewise.
3219         (do_compare): Likewise.
3220         (do_plus_minus): Likewise.
3221         (do_negate): Likewise.
3222         (expand_vector_condition): Likewise.
3223         (do_cond): Likewise.
3225 2016-03-16  Richard Henderson  <rth@redhat.com>
3227         PR target/70048
3228         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3229         (aarch64_classify_address): Use it.
3230         (aarch64_legitimize_address): Force all subexpressions of PLUS
3231         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
3233 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
3234             Richard Biener  <rguenth@suse.de>
3236         PR target/70245
3237         * rtlanal.c (replace_rtx): For REG, if from is a REG,
3238         return to even if only REGNO is equal, and assert
3239         mode is the same.
3241 2016-03-11  Jeff Law  <law@redhat.com>
3243         PR rtl-optimization/70224
3244         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3246 2016-03-16  Richard Henderson  <rth@redhat.com>
3248         PR middle-end/70199
3249         * function.h (struct function): Add has_forced_label_in_static.
3250         * gimplify.c (force_labels_r): Set it.
3251         * lto-streamer-in.c (input_struct_function_base): Read it.
3252         * lto-streamer-out.c (output_struct_function_base): Write it.
3253         * tree-inline.c (has_label_address_in_static_1): Remove.
3254         (copy_forbidden): Remove fndecl parameter; test
3255         has_forced_label_in_static.
3256         (inline_forbidden_p): Update call to copy_forbidden.
3257         (tree_versionable_function_p): Likewise.
3258         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3259         (chkp_versioning): Likewise.
3260         * tree-inline.h (copy_forbidden): Update decl.
3262 2016-03-16  Marek Polacek  <polacek@redhat.com>
3264         PR c/70093
3265         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3266         function being thunked if the result type doesn't have fixed size.
3267         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3268         doesn't have fixed size.
3270 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
3272         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3273         reporting malformed loop nest.
3275 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3277         PR lto/70187
3278         * ipa-devirt.c (possible_polymorphic_call_targets): Move
3279         nodes.length () == 1 test to before first nodes[0] access.
3281 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3283         PR tree-optimization/68715
3284         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3285         single_pred_p test.
3287 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3289         PR tree-optimization/68809
3290         * graphite-scop-detection.c (same_close_phi_node): Test if result types
3291         are the same.
3293 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
3294             Sandra Loosemore  <sandra@codesourcery.com>
3296         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3297         on leaf attribute. Mention ELF interposition problems.
3299 2016-03-16  Alan Modra  <amodra@gmail.com>
3301         PR rtl-optimization/69195
3302         PR rtl-optimization/47992
3303         * ira.c (indirect_jump_optimize): Ignore artificial defs.
3304         Add comments.
3306 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
3308         PR bootstrap/69513
3309         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3311 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3313         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3315 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
3317         PR rtl-optimization/70222
3318         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3319         optimization if mode is different from result_mode, queue up masking
3320         of the result in outer_op.  Formatting fix.
3322         PR middle-end/70239
3323         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3324         of safe_grow.
3326 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3328         PR rtl-optimization/69032
3329         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3330         looping backwards over basic block insns.
3332 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3334         PR target/66660
3335         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3336         to non-speculative when propagating trap bits.
3338 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3340         PR rtl-optimization/63384
3341         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3342         DEBUG_INSN_P insns.
3344 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3346         PR target/64411
3347         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3348         factored out from ...
3349         (sched_analyze_insn): ... here.
3350         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3351         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3352         get_implicit_reg_pending_clobbers in it.
3353         (setup_id_reg_sets): Use setup_id_implicit_regs.
3354         (deps_init_id): Ditto.
3356 2016-03-15  Tom de Vries  <tom@codesourcery.com>
3358         PR ipa/70161
3359         * cgraph.c (cgraph_node::get_body): Save, reset and restore
3360         dump_file_name.
3361         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3362         execute_function_dump.
3363         (execute_one_pass): Don't dump function if it will be dumped after ipa
3364         transform.
3366 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
3368         * genrecog.c (match_pattern_2): If pred is NULL don't call
3369         safe_predicate_mode on it.
3371 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
3373         PR middle-end/70219
3374         * lra-constraints.c (delete_move_and_clobber): Change assertion
3375         to also allow dregno == 0.
3377 2016-03-14  Richard Henderson  <rth@redhat.com>
3379         PR tree-opt/68714
3380         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3381         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3382         (reassociate_bb): Use optimize_vec_cond_expr; avoid
3383         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3384         on vectors.
3386 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
3388         PR target/70083
3389         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3390         regs.
3391         (lra_create_live_ranges_1): initialize hard register biggest_mode to
3392         VOIDmode.
3393         * lra-constraints.c (split_reg): For hard regs, try to find the
3394         biggest single-register mode used in the function.
3396 2016-03-14  Richard Biener  <rguenther@suse.de>
3398         PR tree-optimization/56365
3399         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3400         constants to compare against.
3402 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
3404         PR target/70098
3405         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3406         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3407         (define_split for the GPR case): Use int_reg_operand instead of
3408         gpc_reg_operand for the output.
3410 2016-03-14  Tom de Vries  <tom@codesourcery.com>
3412         PR tree-optimization/70045
3413         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3414         create_empty_if_region_on_edge argument.
3416 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
3418         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3419         (STACK_CHECK_PROTECT): Likewise.
3420         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3421         (STACK_CHECK_PROTECT): Likewise.
3422         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3423         (STACK_CHECK_PROTECT): Likewise.
3424         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3425         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3426         (STACK_CHECK_PROTECT): Likewise.
3428 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
3430         PR rtl-optimization/69307
3431         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3432         registers in modes that span more than one register.
3434 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
3436         PR target/69614
3437         * lra-constraints.c (delete_move_and_clobber): New.
3438         (remove_inheritance_pseudos): Use it.
3440 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
3442         PR ada/70017
3443         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3444         the libcall is LCT_THROW.
3445         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3446         for the checking routine.
3448 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3450         PR target/70131
3451         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3452         optimization if we have direct move.
3453         (roundu32<mode>2_fprs): Likewise.
3455 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
3457         PR target/70123
3458         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3459         be rematerialized.
3460         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3461         Arguments swapped.  All callers changed.  Take reg_renumber into
3462         account, and Calculate and compare register ranges for hard regs.
3464 2016-03-11  Jeff Law  <law@redhat.com>
3466         PR tree-optimization/70190
3467         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3468         Handle cases where we can not extract the taken edge, even though we
3469         found a constant value.
3471         PR tree-optimization/64058
3472         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3473         (num_coalesce_pairs): Move up earlier in file.
3474         (find_coalesce_pair): Initialize the INDEX field for each pair
3475         discovered.
3476         (compare_pairs): No longer sort on the elements in each pair.
3477         Instead break ties with the index of the coalesce pair.
3479 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3481         PR target/70002
3482         * config/aarch64/aarch64-protos.h
3483         (aarch64_save_restore_target_globals): New prototype.
3484         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3485         Call the above when popping pragma.
3486         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3487         New function.
3488         (aarch64_set_current_function): Rewrite using the above.
3490 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
3492         PR tree-optimization/70177
3493         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3494         (extract_ops_from_tree): ... this.  In the 2 argument
3495         overload remove _1 suffix.
3496         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3497         (extract_ops_from_tree): ... this.
3498         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3499         Adjust callers.
3500         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3501         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3502         extract_ops_from_tree instead of 2 operand one.
3504 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
3506         PR tree-optimization/70013
3507         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3508         for constant-pool entries.
3510 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
3512         PR rtl-optimization/70174
3513         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3514         followed by gen_lowpart on force_reg instead of just gen_lowpart.
3516         PR tree-optimization/70169
3517         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3518         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
3519         for unknown codes.
3521 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
3522             Jakub Jelinek  <jakub@redhat.com>
3524         PR target/70160
3525         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3526         of uninitialized values.
3528 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3530         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3531         define_expand.
3532         ("*trunctddd2"): New pattern definition.
3533         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3534         TD->DD truncation.
3536 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3538         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3539         definitions for BFP and DFP rounding modes.
3540         ("fixuns_truncdddi2", "fixuns_trunctddi2")
3541         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3542         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3543         ("fix_trunctf<mode>2"): Use the new constants instead of magic
3544         numbers.
3546 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3548         * config/s390/constraints.md: Adjust comment.
3549         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
3550         s390_decompose_addrstyle_without_index.
3551         * config/s390/predicates.md (shift_count_or_setmem_operand):
3552         Rename to setmem_operand.
3553         * config/s390/s390-protos.h
3554         (s390_decompose_shift_count): Rename to
3555         s390_decompose_addrstyle_without_index.
3556         * config/s390/s390.c (s390_decompose_shift_count)
3557         (s390_mem_constraint, print_shift_count_operand)
3558         (print_operand_address, print_operand): Rename
3559         s390_decompose_shift_count to
3560         s390_decompose_addrstyle_without_index and rename
3561         print_shift_count_operand to print_addrstyle_operand troughout the
3562         file.
3563         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3564         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3565         Rename shift_count_or_setmem_operand to setmem_operand.
3566         * config/s390/vx-builtins.md ("vec_insert<mode>")
3567         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3568         nonmemory_operand.
3570 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3572         PR target/70168
3573         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3574         Handle overlapping retval and newval.
3576 2016-03-10  Nick Clifton  <nickc@redhat.com>
3578         PR target/7044
3579         * config/aarch64/aarch64.c
3580         (aarch64_override_options_after_change_1): When forcing
3581         flag_omit_frame_pointer to be true, use a special value that can
3582         be detected if this function is called again, thus preventing
3583         flag_omit_leaf_frame_pointer from being forced to be false.
3585 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3587         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3588         Set x_flag_omit_leaf_frame_pointer when handling
3589         -momit-leaf-frame-pointer.
3591 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3593         PR lto/69589
3594         * cgraph.c (cgraph_node::dump): Dump split_part and
3595         indirect_call_target.
3596         * cgraph.h (cgraph_node): Add indirect_call_target flag.
3597         * ipa.c (has_addr_references_p): Cleanup.
3598         (is_indirect_call_target_p): New.
3599         (walk_polymorphic_call_targets): Do not mark virtuals that may be
3600         called indirectly as local.
3601         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3603 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3605         PR ipa/69630
3606         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3607         on cxa_pure_virtual.
3609 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3611         PR lto/69589
3612         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3614 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3616         PR lto/69589
3617         * tree.c (need_assembler_name_p): Only record main variant type names.
3619 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
3621         PR target/70113.
3622         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3623         Always define to 0 or 1.
3624         (TARGET_FIX_ERR_A53_843419): New macro.
3625         * config/aarch64/aarch64-elf-raw.h
3626         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3627         * config/aarch64/aarch64-linux.h: Likewise.
3628         * config/aarch64/aarch64.c
3629         (aarch64_override_options_after_change_1): Do not default
3630         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3631         843419 is on.
3632         (aarch64_attributes): Handle fix-cortex-a53-843419.
3633         (aarch64_can_inline_p): Likewise.
3634         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3636 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
3637         Jakub Jelinek <jakub@redhat.com>
3639         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3640         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3641         DECL_COMMONS if flag_unconstrained_commons is set.
3642         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3643         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3644         (funconstrained-commons): Document.
3646 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
3648         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3649         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3651 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3653         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3654         has a proper number of elements.
3656 2016-03-10  Alan Modra  <amodra@gmail.com>
3658         PR rtl-optimization/69195
3659         PR rtl-optimization/47992
3660         * ira.c (recorded_label_ref): Delete.
3661         (update_equiv_regs): Return void.
3662         (indirect_jump_optimize): New function.
3663         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3664         before regstat_compute_ri.  Don't rebuild_jump_labels here.
3665         Delete update_regstat.
3667 2016-03-10  Richard Biener  <rguenther@suse.de>
3669         PR tree-optimization/70128
3670         * tree-ssa-structalias.c (set_uids_in_ptset): Set
3671         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3673 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
3675         PR tree-optimization/70152
3676         * tree-sra.c (replace_removed_params_ssa_names): Copy over
3677         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3679         PR target/70086
3680         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3681         instead of gen_sse2_loadlpd.
3682         * config/i386/sse.md (*vec_concatv2df): Rename to...
3683         (vec_concatv2df): ... this.
3685         PR tree-optimization/70127
3686         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3688 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
3690         PR c/68473
3691         PR c++/70105
3692         * diagnostic-show-locus.c (compatible_locations_p): New function.
3693         (layout::layout): Sanitize ranges using compatible_locations_p.
3695 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
3697         PR c/68473
3698         PR c++/70105
3699         * diagnostic-show-locus.c (layout_range::layout_range): Replace
3700         location_range param with three const expanded_locations * and a
3701         bool.
3702         (layout::layout): Replace call to
3703         rich_location::lazily_expand_location with get_expanded_location.
3704         Extract the range and perform location expansion here, passing
3705         the results to the layout_range ctor.
3706         * diagnostic.c (source_range::debug): Delete.
3707         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3708         of rich_location::get_expanded_location.
3709         * gcc-rich-location.c (get_range_for_expr): Delete.
3710         (gcc_rich_location::add_expr): Reimplement to avoid the
3711         rich_location::add_range overload that took a location_range,
3712         passing a location_t instead.
3714 2016-03-09  Richard Biener  <rguenther@suse.de>
3715         Jakub Jelinek  <jakub@redhat.com>
3717         PR tree-optimization/70138
3718         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3719         Also skip vect_double_reduction_def.
3721 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
3723         PR target/70049
3724         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3725         if the operand is "m".
3727 2016-03-09  Nathan Sidwell  <nathan@acm.org>
3729         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3731 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3733         * config/i386/i386.c (processor_target_table): Fix cost table
3734         intialization order for znver1.
3736 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
3738         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3739         - becuase -> because.
3740         * ipa-reference.c (ignore_module_statics): Likewise.
3741         * cgraph.c (cgraph_node::get_body): Likewise.
3742         * ipa-inline.c (early_inliner): Likewise.
3743         * ipa-devirt.c (types_same_for_odr): Likewise.
3744         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3745         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3747 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3749         * tree-ssa-math-opts.c: Fix typo in comment.
3751 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
3753         PR target/70110
3754         * config/i386/i386.c (scalar_chain::make_vector_copies,
3755         scalar_chain::convert_reg): Call end_sequence in between
3756         get_insns and emit_conversion_insns rather than after both
3757         calls.
3759 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
3761         PR target/70064
3762         * config/i386/i386.h (machine_function): Add
3763         pc_thunk_call_expanded flag.
3764         (ix86_pc_thunk_call_expanded): New define.
3765         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3766         (*set_got): Rename insn pattern from set_got.
3767         (*set_got_labelled): Rename inst pattern from set_got_labelled.
3768         * config/i386/i386.c (ix86_compute_frame_layout): Use
3769         ix86_pc_thunk_call_expanded to prevent red-zone.
3771 2016-03-07  Martin Jambor  <mjambor@suse.cz>
3773         * hsa.h (hsa_get_ctor_statements): Declare.
3774         (hsa_get_dtor_statements): Likewise.
3775         (hsa_get_kernel_dispatch_type): Likewise.
3776         * hsa.c (hsa_get_ctor_statements): New function.
3777         (hsa_get_dtor_statements): Likewise.
3778         (hsa_get_kernel_dispatch_type): Likewise.
3779         * hsa-brig.c (hsa_cdtor_statements): Removed.
3780         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3781         hsa_get_dtor_statements.
3782         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3783         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3785 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3787         * config/arm/arm-cores.def (cortex-r8): New.
3788         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3789         * config/arm/arm-tune.md: Likewise.
3790         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3792 2016-03-07  Martin Sebor  <msebor@redhat.com>
3794         PR rtl-optimization/19705
3795         * doc/invoke.texi (Options That Control Optimization): Clarify
3796         -fno-branch-count-reg.
3798 2016-02-26  Richard Biener  <rguenther@suse.de>
3799             Jeff Law  <law@redhat.com>
3801         PR tree-optimization/69740
3802         * cfghooks.c (remove_edge): Request loop fixups if we delete
3803         an edge that might turn an irreducible loop into a natural
3804         loop.
3805         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3806         Move after definition of loops_state_clear.
3808 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
3810         PR rtl-optimization/69052
3811         * rtlanal.c (commutative_operand_precedence): Set higher precedence
3812         to CONST_WIDE_INT.
3814 2016-03-07  Tom de Vries  <tom@codesourcery.com>
3816         PR tree-optimization/70116
3817         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3818         is_tm_ending stmts and ubsan/asan internal functions.
3819         (find_duplicate): Use it.  Don't test is_tm_ending here.
3821 2016-03-07  Richard Biener  <rguenther@suse.de>
3823         PR tree-optimization/70115
3824         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3825         (propagate_constants_for_unrolling): Use replace_uses_by.
3827 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
3829         PR middle-end/69916
3830         * omp-low.c (struct oacc_loop): Add ifns.
3831         (new_oacc_loop_raw): Initialize it.
3832         (finish_oacc_loop): Clear mask & flags if no ifns.
3833         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3834         (oacc_loop_xform_loop): Add ifns arg & adjust.
3835         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3837 2016-03-07  Richard Henderson  <rth@redhat.com>
3839         PR rtl-opt/70061
3840         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3841         (insert_value_copy_on_edge): Likewise.
3843 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3845         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3847 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3849         PR target/62281
3850         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3852 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
3854         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3856 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
3858         Fix sseimul type attribute.
3859         * config/i386/znver1.md
3860         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3861         znver1_sseimul_avx256_load) : Fix the type attribute.
3862         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3863         pipe usage and latency.
3865 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
3867         PR c++/70084
3868         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3869         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3870         to the right type.
3872 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
3874         PR c/69973
3875         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3877         PR rtl-optimization/69941
3878         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3879         the reg share its mode.
3881 2016-03-04  Jeff Law  <law@redhat.com>
3883         PR tree-optimization/69196
3884         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3885         If the both SSA_NAMEs are anonymous, then consider them unassociated
3886         and include the PHI in the statement count.
3888 2016-03-05  Tom de Vries  <tom@codesourcery.com>
3890         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3891         construct in oacc routine.  Check for oacc region in oacc routine.
3893 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
3895         PR target/70062
3896         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
3897         2016-02-22 changes, instead don't recurse if RECUR is already true.
3898         Don't change *dynamic_check if RECUR.  Adjust recursive caller
3899         to pass true to the new argument.
3900         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3902         PR target/70059
3903         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3904         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3905         fixes.
3906         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
3908 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
3910         PR rtl-optimization/57676
3911         * lra-assigns.c (lra_assign): Guard test for maximum iterations
3912         with flag_checking.
3914 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
3916         * tree-vect-patterns.c (search_type_for_mask): Handle
3917         comparison of booleans.
3919 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
3921         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3922         Fix @xref usage.
3924         PR debug/69947
3925         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3926         all other ops that have dw_val_class_die_ref operands,
3927         and DW_OP_GNU_entry_value.
3929 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3931         PR rtl-optimization/69904
3932         * config/arm/arm.c (arm_cannot_copy_insn_p):
3933         Return true for load-exclusive instructions.
3935 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
3937         PR target/70021
3938         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3939         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3940         the pattern no matter if it is used just by non-pattern, pattern
3941         or mix thereof.
3942         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3943         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3944         oprnd1 def_stmt is in pattern, don't look through it.
3946 2016-03-03  Marek Polacek  <polacek@redhat.com>
3948         PR middle-end/70050
3949         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3951 2016-03-03  Martin Liska  <mliska@suse.cz>
3953         PR tree-optimization/70043
3954         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3955         previous statement if we see a debug statement.
3957 2016-03-03  Richard Biener  <rguenther@suse.de>
3959         PR tree-optimization/55936
3960         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3961         parameter and guard unsafe equivalence use.
3962         (vrp_evaluate_conditional_warnv_with_ops): Always use
3963         safe equivalences but not via the quadratic compare_names
3964         helper.
3966 2016-03-03  Michael Collison  <michael.collison@linaro.org>
3968         PR target/70014
3969         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3970         for operand 1 to s_register_operand. Change predicate for operand
3971         2 to arm_not_immediate_operand.
3973 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
3975         * doc/tm.texi: Regenerated.
3977 2016-03-02  Richard Henderson  <rth@redhat.com>
3979         PR rtl-opt/67145
3980         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3981         simplification when all args are positive non-fixed registers.
3983 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3985         * target.def (lra_p): Specify that new ports should use LRA.
3987 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
3989         PR libgomp/69555
3990         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3991         gimplify_type_sizes the type they refer to.
3992         (omp_notice_variable): Handle reference vars to VLAs.
3993         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3994         reference to VLA decls in the second pass instead of first pass.
3996 2016-03-02  Tom de Vries  <tom@codesourcery.com>
3998         PR tree-optimization/68659
3999         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4000         new_expr == NULL_TREE.
4001         (get_new_name): Handle ADDR_EXPR.
4003 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
4005         PR rtl-optimization/69052
4006         * loop-invariant.c (canonicalize_address): New function.
4007         (inv_can_prop_to_addr_use): Check validity of address expression
4008         which is canonicalized by above function.
4010 2016-03-02  Alan Modra  <amodra@gmail.com>
4012         PR ipa/69990
4013         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4014         larger alignment.
4016 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
4018         PR target/70028
4019         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4020         (*movhi_internal): Put mask moves from and to memory separately
4021         from moves from/to GPRs.
4023 2016-03-02  Richard Biener  <rguenther@suse.de>
4025         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4026         GENERIC expressions in GIMPLE.
4028 2016-03-02  Richard Biener  <rguenther@suse.de>
4030         * config/i386/i386.c (type_natural_mode): Fix typo.
4032 2016-03-02  Nick Clifton  <nickc@redhat.com>
4034         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4036 2016-03-02  Richard Biener  <rguenther@suse.de>
4037             Uros Bizjak  <ubizjak@gmail.com>
4039         PR target/67278
4040         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4042 2016-03-02  Richard Biener  <rguenther@suse.de>
4044         PR middle-end/67278
4045         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4047 2016-03-02  Marek Polacek  <polacek@redhat.com>
4049         PR c/67854
4050         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4051         "is promoted to" warning.
4053 2016-03-01  DJ Delorie  <dj@redhat.com>
4055         * config.gcc: Deprecate mep-*.
4057 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4059         PR middle-end/70025
4060         * lra-constraints.c (regno_val_use_in): New.
4061         (match_reload): Use it instead of regno_use_in.
4063 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4065         PR rtl-optimization/70007
4066         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4067         references present in REG_EQUAL notes attached to non-SET patterns.
4069 2016-03-01  Jeff Law  <law@redhat.com>
4071         PR tree-optimization/69196
4072         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4073         Appropriately clamp the number of statements to copy when the
4074         thread path does not traverse a loop backedge.
4076         PR tree-optimization/69196
4077         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4078         Do count some PHIs in the thread path against the insn count.  Decrease
4079         final statement count by one as the control statement in the last
4080         block will get removed.  Remove special cased code for handling PHIs
4081         in the last block.
4083 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
4085         PR target/70027
4086         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4087         asm dialect alternatives to explicit GOTPCREL calls.
4089 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4091         PR ada/70017
4092         * ira.c (do_reload): Issue warning for generic stack checking here...
4093         * reload1.c (reload): ...instead of here and streamline it.
4095 2016-03-01  Nick Clifton  <nickc@redhat.com>
4097         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4099 2016-03-01  Richard Biener  <rguenther@suse.de>
4101         PR tree-optimization/69983
4102         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4103         types and fall back to operand_equal_p.
4105 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4107         Revert
4108         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4110         * config/s390/constraints.md ("jm8"): New constraint.
4111         * config/s390/predicates.md ("const_int_8bitset_operand"): New
4112         predicate.
4113         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4114         into ...
4115         ("*setmem_long<setmem_and>"): New pattern.
4116         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4117         into ...
4118         ("*setmem_long_31z<setmem_and>"): New pattern.
4119         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4120         New substitution rules with the required attributes.
4123 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4125         Revert
4126         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4128         * gensupport.c (process_substs_on_one_elem): Split loop to
4129         complete mark_operands_used_in_match_dup on all expressions in the
4130         vector first.
4131         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4132         and remove function.
4134 2016-03-01  Richard Biener  <rguenther@suse.de>
4136         PR middle-end/70022
4137         * fold-const.c (fold_indirect_ref_1): Fix range checking for
4138         vector BIT_FIELD_REF extract.
4140 2016-03-01  Richard Biener  <rguenther@suse.de>
4142         PR tree-optimization/69994
4143         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4145 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
4147         PR tree-optimization/69956
4148         * tree-vect-stmts.c (supportable_widening_operation): Support
4149         multi-step conversion of boolean vectors.
4150         (supportable_narrowing_operation): Likewise.
4152 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4154         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4155         anymore.
4157 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4159         * config/s390/subst.md (DSI_VI): New mode iterator.
4160         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4161         * config/s390/vector.md ("vec_set<mode>"): Move expander before
4162         the insn definition.
4163         ("*vec_set<mode>"): Change predicate and add alternative to
4164         support only either register or const_int operands as element
4165         selector.
4166         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4167         operands.
4168         ("vec_extract<mode>"): New expander.
4169         ("*vec_extract<mode>"): New insn definition supporting reg and
4170         const_int element selectors.
4171         ("*vec_extract<mode>_plus"): New insn definition supporting
4172         reg+const_int element selectors.
4173         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4174         following expander+insn definition.
4175         ("<vec_shifts_name><mode>3"): New expander.
4176         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4178 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4180         * config/s390/s390.md ("*tabort_1"): Change predicate to
4181         nonmemory_operand.  Add a second alternative to cover
4182         register as well as const int operands.
4183         ("*tabort_1_plus"): New pattern definition.
4185 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4187         * config/s390/s390.md ("*ashrdi3_cc_31")
4188         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4189         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4190         Merge insn definitions into ...
4191         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4192         New pattern definition.
4193         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4194         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4195         ("*ashr<mode>3_and"): Merge insn definitions into ...
4196         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4197         New pattern definition.
4198         * config/s390/subst.md ("addr_style_op_cc_subst")
4199         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4200         substitutions patterns plus attributes.
4201         Add ashiftrt to SUBST iterator.
4203 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4205         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4206         op2 to nonmemory_operand.
4207         ("*<shift>di3_31", "*<shift>di3_31_and"):
4208         Merge into single pattern definition ...
4209         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4210         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4211         pattern definition ...
4212         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4213         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4214         iterator.
4216 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4218         * config/s390/predicates.md (const_int_6bitset_operand): New
4219         predicate.
4220         * config/s390/s390.md: Include subst.md.
4221         ("rotl<mode>3"): New expander.
4222         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4223         ...
4224         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4225         * config/s390/subst.md: New file.
4227 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4229         * config/s390/s390.md ("op_type", "atype", "length" attributes):
4230         Remove RRR type.  It doesn't really exist.
4231         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4232         attributes.
4233         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4234         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4235         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4236         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4237         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4238         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4239         `enabled' attribute.
4241 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4243         * gensupport.c (process_substs_on_one_elem): Split loop to
4244         complete mark_operands_used_in_match_dup on all expressions in the
4245         vector first.
4246         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4247         and remove function.
4249 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4251         PR target/69706
4252         * config/sparc/sparc.c (NWORDS_UP): Rename to...
4253         (CEIL_NWORDS): ...this.  Use CEIL macro.
4254         (compute_fp_layout): Adjust to above renaming.
4255         (function_arg_union_value): Likewise.
4256         (sparc_arg_partial_bytes): Likewise.
4257         (sparc_function_arg_advance): Likewise.
4259 2016-02-29  Jeff Law  <law@redhat.com>
4261         PR tree-optimization/70005
4262         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4263         where an object with a boolean range is compared against a value
4264         outside [0..1].
4266         PR tree-optimization/69999
4267         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4268         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4269         loop cleanups.
4271 2016-02-29  Richard Biener  <rguenther@suse.de>
4273         PR tree-optimization/69994
4274         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4275         (get_unary_op): Look through nop conversions.
4276         (ops_equal_values_p): New function, look for equality diregarding
4277         nop conversions.
4278         (eliminate_plus_minus_pair): Use ops_equal_values_p
4279         (repropagate_negates): Do not use get_unary_op here.
4281 2016-02-29  Martin Liska  <mliska@suse.cz>
4283         * system.h: Poison ENABLE_CHECKING macro.
4285 2016-02-29  Martin Liska  <mliska@suse.cz>
4287         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4288         is presented in dump flags.
4289         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4290         (hsa_regalloc): Likewise.
4292 2016-02-19  Richard Biener  <rguenther@suse.de>
4294         PR tree-optimization/69980
4295         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4296         permutation of those we need to keep.
4298 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4300         PR target/69706
4301         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4302         (NWORDS_UP): ...this
4303         (init_cumulative_args): Minor tweaks.
4304         (sparc_promote_function_mode): Likewise.
4305         (scan_record_type): Delete.
4306         (traverse_record_type): New function template.
4307         (classify_data_t): New structure type.
4308         (classify_registers): New inline function.
4309         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4310         exhausted.  Instantiate traverse_record_type on classify_registers and
4311         deal with the case of a structure passed in slot #15 with no FP field
4312         in the first word.
4313         (assign_data_t): New structure type.
4314         (compute_int_layout): New static function.
4315         (compute_fp_layout): Likewise.
4316         (count_registers): New inline function.
4317         (assign_int_registers): New static function.
4318         (assign_fp_registers): Likewise.
4319         (assign_registers): New inline function.
4320         (function_arg_record_value_1): Delete.
4321         (function_arg_record_value_2): Likewise.
4322         (function_arg_record_value_3): Likewise.
4323         (function_arg_record_value): Adjust to above changes.  Instantiate
4324         traverse_record_type on count_registers to first count the number of
4325         registers to be used and then on assign_registers to assign them.
4326         (function_arg_union_value): Adjust to above renaming.
4327         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
4328         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
4329         case of a structure passed in slot #15
4330         (sparc_function_arg_advance): Likewise.
4331         (function_arg_padding): Minor tweak.
4333 2016-02-29  Richard Biener  <rguenther@suse.de>
4335         PR tree-optimization/69720
4336         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4337         the adjustment_def path for possibly vectorized defs.
4338         (vect_create_epilog_for_reduction): Handle vectorized initial
4339         defs properly.
4341 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
4343         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4345 2016-02-27  Jeff Law  <law@redhat.com>
4347         Revert
4348         2016-02-26  Richard Biener  <rguenther@suse.de>
4349                     Jeff Law  <law@redhat.com>
4351         PR tree-optimization/69740
4352         * cfghooks.c (remove_edge): Request loop fixups if we delete
4353         an edge that might turn an irreducible loop into a natural
4354         loop.
4356 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
4358         PR rtl-optimization/69896
4359         * tree-vect-generic.c (get_compute_type): Avoid single element
4360         vector types.
4362 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
4364         Rename the AArch64 tuning option and related functions to enable the
4365         Newton series for the reciprocal square root to reflect its
4366         approximative characteristic.
4368         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4369         function to "aarch64_emit_approx_rsqrt".
4370         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4371         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4372         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4373         (xgene1_tunings): Likewise.
4374         (use_rsqrt_p): Likewise.
4375         (aarch64_emit_swrsqrt): Use new function name.
4376         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4377         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4378         text explaining this option.
4379         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4381 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
4383         PR target/69969
4384         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4385         complain about -mallow-movmisalign without -mvsx if
4386         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4388 2016-02-26  Joel Sherrill  <joel@rtems.org>
4390         * config.gcc: Add x86_64-*-rtems*.
4391         * gcc/config/i386/rtems-64.h: New file.
4393 2016-02-26  Joel Sherrill  <joel@rtems.org>
4395         * config.gcc: Add aarch64-*-rtems*.
4396         * gcc/config/aarch64/rtems.h: New file.
4398 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
4400         PR target/69946
4401         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4402         shift amount using %h.  Add comment.
4404 2016-02-26  Richard Biener  <rguenther@suse.de>
4405             Jeff Law  <law@redhat.com>
4407         PR tree-optimization/69740
4408         * cfghooks.c (remove_edge): Request loop fixups if we delete
4409         an edge that might turn an irreducible loop into a natural
4410         loop.
4412 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4414         PR middle-end/69920
4415         * tree-sra.c (sra_modify_assign): Do not remove loads of
4416         uninitialized aggregates to SSA_NAMEs.
4418 2016-02-26  Richard Henderson  <rth@redhat.com>
4420         PR target/69709
4421         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4422         pseudo in case the target rtx matches the source of the left
4423         shift.
4425 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4427         PR hsa/69568
4428         * hsa.h (hsa_type_packed_p): Declare.
4429         * hsa.c (hsa_type_packed_p): New function.
4430         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4431         loads.
4432         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4433         * hsa-brig.c (emit_basic_insn): Likewise.
4435 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4437         pr hsa/69674
4438         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4439         pointers.
4440         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4442 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4444         * hsa.h (is_a_helper): New overload for hsa_op_immed for
4445         hsa_op_with_type operands.
4446         (hsa_unsigned_type_for_type): Declare.
4447         * hsa.c (hsa_unsigned_type_for_type): New function.
4448         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4449         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4450         the finalizer.  Do not emit extra move.
4452 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4454         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4455         atomic operations in private segment.
4457 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4459         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4460         statements to wi->info.  Also disallow omp simd constructs.
4461         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4462         for not gridifying.  Dump special string for omp_for.
4464 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4466         PR target/69245
4467         * config/aarch64/aarch64.c (aarch64_set_current_function):
4468         Save/restore target globals when switching to
4469         target_option_default_node.
4471 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4473         PR target/69613
4474         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4475         Return 0 if !SHIFT_COUNT_TRUNCATED.
4477 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
4478             Eric Botcazou  <ebotcazou@adacore.com>
4480         PR rtl-optimization/69891
4481         * dse.c (scan_insn): If we can't figure out memset arguments
4482         or they are non-constant, call clear_rhs_from_active_local_stores.
4484 2016-02-26  Martin Liska  <mliska@suse.cz>
4486         * doc/extend.texi: Mention clog10, clog10f an clog10l
4487         in Builtins section.
4489 2016-02-26  Martin Liska  <mliska@suse.cz>
4491         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4492         CHECKING_P.
4493         (resolve_args_picking_1): Likewise.
4494         * dwarf2out.h (struct GTY): Likewise.
4496 2016-02-26  Martin Liska  <mliska@suse.cz>
4498         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4499         with flag_checking.
4500         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4502 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4503             Martin Liska  <mliska@suse.cz>
4505         * doc/install.texi: Mention --enable-valgrind-annotations.
4507 2016-02-26  Richard Biener  <rguenther@suse.de>
4509         PR tree-optimization/69551
4510         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4511         looking through aliases adjust DECL_PT_UID to refer to the
4512         ultimate alias target.
4514 2016-02-25  Martin Liska  <mliska@suse.cz>
4516         PR middle-end/69919
4517         * alloc-pool.c (after_memory_report): New variable.
4518         * alloc-pool.h (base_pool_allocator ::release): Do not use
4519         the infrastructure if after_memory_report.
4520         * toplev.c (toplev::main): Mark after memory report.
4522 2016-02-25  Richard Biener  <rguenther@suse.de>
4524         PR tree-optimization/48795
4525         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4527 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
4529         PR driver/68463
4530         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
4531         offloading is enabled and -fopenacc or -fopenmp is specified.
4532         (CRTOFFLOADEND): Likewise.
4533         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4534         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4535         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4536         (offload_objects_file_name): New static var.
4537         (tool_cleanup): Remove offload_objects_file_name file.
4538         (find_offloadbeginend): Replace with ...
4539         (find_crtoffloadtable): ... this.
4540         (run_gcc): Remove offload_argc and offload_argv.
4541         Get offload_objects_file_name from -foffload-objects=... option.
4542         Read names of object files with offload from this file, pass them to
4543         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
4544         don't pass offloadbegin and offloadend to the linker.  Don't pass
4545         offload non-LTO files to the linker, because now they're not claimed.
4547 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
4549         PR ipa/69630
4550         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4551         on builtin_unreachable.
4553 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
4555         PR rtl-optimization/69896
4556         * regcprop.c: Include cfgrtl.h.
4557         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4558         than remembered mode, either delete it (if noop_move_p), or
4559         treat like copy_p but not noop_p instruction.
4561 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4563         PR debug/69705
4564         * dwarf2out.c (gen_variable_die): Work around buggy LTO
4565         - allow NULL decl for Fortran DW_TAG_common_block variables.
4567 2016-02-24  Jason Merrill  <jason@redhat.com>
4569         * common.opt (flifetime-dse): Add -flifetime-dse=1.
4571 2016-02-24  Richard Biener  <rguenther@suse.de>
4572             Jakub Jelinek  <jakub@redhat.com>
4574         PR middle-end/69760
4575         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4576         conditionally executed ops to well-defined overflow behavior.
4578 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4580         PR middle-end/69915
4581         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4582         elements.
4584 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4586         PR rtl-optimization/69886
4587         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4588         argument.  Use it when checking validity of set instructions.
4589         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4590         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4591         callsite.
4592         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4593         * store-motion.c (find_moveable_store): Update
4594         can_assign_to_reg_without_clobbers_p callsite.
4596 2016-02-24  Richard Biener  <rguenther@suse.de>
4598         PR middle-end/68963
4599         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4600         bogus check.
4601         (record_nonwrapping_iv): Do not fall back to the low/high bound
4602         for non-constant IV bases if the stmt is not always executed.
4604 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4606         * config/arm/arm-cores.def (cortex-a32): New entry.
4607         * config/arm/arm-tables.opt: Regenerate.
4608         * config/arm/arm-tune.md: Regenerate.
4609         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4610         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4611         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4612         for -mcpu and -mtune.
4614 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4616         PR target/69875
4617         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4618         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4619         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4620         (atomic_loaddi_1): Delete.
4621         (atomic_loaddi): Rewrite expander using the above changes.
4623 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4625         PR c/69918
4626         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4627         2 to 3.
4629 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4630             Richard Biener  <rguenth@suse.de>
4632         PR middle-end/69909
4633         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4634         set_mem_attributes if tem is SSA_NAME which got expanded
4635         as a MEM.
4637 2016-02-24  Richard Biener  <rguenther@suse.de>
4639         PR tree-optimization/69907
4640         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4641         end of permutations for BB vectorization.
4643 2016-02-24  Christian Bruel  <christian.bruel@st.com>
4645         * config/arm/arm-c.c (arm_option_override): Initialize
4646         target_option_current_node.
4647         * config/arm/arm.c (arm_pragma_target_parse): Replace
4648         build_target_option_node call by target_option_current_node.
4649         Set target_option_current_node.
4650         Fix comments.
4652 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
4654         PR target/69810
4655         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4656         define_insn_and_split to define_insn.
4657         (zero_extendqi<mode>2_dot2): Same.
4658         (extendqi<mode>2_dot): Same.
4659         (extendqi<mode>2_dot2): Same.
4661 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
4663         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4664         and add bypass for AES{D,E} and AESMC pairs.
4665         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4666         and AESMC pairs.
4668 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
4670         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4671         series for reciprocal square root in Exynos M1.
4673 2016-02-23  Martin Sebor  <msebor@redhat.com>
4675         PR c/69759
4676         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4677         __builtin_alloca_with_align.
4679 2016-02-23  Richard Henderson  <rth@redhat.com>
4681         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4682         (ix86_register_pragmas): Remove __seg_tls.
4683         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4684         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4685         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4686         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4687         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4688         * doc/extend.texi (__seg_tls): Remove item.
4690 2016-02-23  Richard Biener  <rguenther@suse.de>
4692         * alloc-pool.h (struct allocation_object): Make id member
4693         conditional on CHECKING_P again.
4694         (get_instance): Adjust.
4695         (base_pool_allocator): Likewise.
4697 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
4699         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4700         (parallelize_loops): In OpenACC kernels mode, set n_threads to
4701         zero.
4702         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4703         flag_openacc.
4704         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4706 2016-02-23  Richard Biener  <rguenther@suse.de>
4708         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4709         * bitmap.h (struct bitmap_usage): Likewise.
4710         (bitmap_move): Declare.
4711         * bitmap.c (register_overhead): Take size_t argument.
4712         (bitmap_move): New function.
4713         * df-problems.c (df_rd_transfer_function): Use bitmap_move
4714         to properly account overhead.
4715         * tree.c (free_node): Use tree_size.
4717 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
4719         PR c++/69902
4720         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4721         when inverting comparison.
4723         PR c/69900
4724         * common.opt (Wunreachable-code): Add Warning flag.
4726 2016-02-23  Mark Wielaard  <mjw@redhat.com>
4727             Jakub Jelinek  <jakub@redhat.com>
4729         PR c/69911
4730         * cgraphunit.c (check_global_declaration): Check main_input_filename
4731         and DECL_SOURCE_FILE are not NULL.
4733 2016-02-23  Martin Jambor  <mjambor@suse.cz>
4735         PR tree-optimization/69666
4736         * tree-sra.c (sra_modify_assign): Do not attempt to create
4737         default_def replacements for unscalarizable regions.
4739 2016-02-20  Mark Wielaard  <mjw@redhat.com>
4741         PR c/28901
4742         * cgraphunit.c (check_global_declaration): Check level of
4743         warn_unused_const_variable and main_input_filename.
4744         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4745         (-Wunused-variable): For C implies -Wunused-const-variable=1.
4746         (-Wunused-const-variable): Explain levels 1 and 2.
4748 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
4750         PR target/69888
4751         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4752         identical arguments.  Formatting and spelling fixes.
4754         PR target/69885
4755         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4756         be specified.
4758         PR target/69894
4759         PR target/69895
4760         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4761         and m68k-devices.def.
4762         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4763         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4765 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
4767         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4768         and HImode registers.
4770 2016-02-22  Richard Biener  <rguenther@suse.de>
4772         PR tree-optimization/69882
4773         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4774         preserve permutations present because of gaps.
4775         (vect_supported_load_permutation_p): Always continue checking
4776         permutations after vect_attempt_slp_rearrange_stmts.
4778 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
4780         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4781         min_profitable_estimate, rather than min_profitable_iters.
4783 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
4785         PR target/69885
4786         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4787         SImode for last match_operand.
4789 2016-02-22  Martin Liska  <mliska@suse.cz>
4791         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4792         return bitsize - 1 as the return value.
4794 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
4796         PR target/69806
4797         PR target/54089
4798         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4799         Handle negative shift counts.
4800         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4801         force_reg on the shift constant.
4802         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
4803         (lshrsi3_d): Handle negative shift counts.
4805 2016-02-22  Richard Biener  <rguenther@suse.de>
4806             Tom de Vries  <tom@codesourcery.com>
4808         * graph.c: Include dumpfile.h.
4809         (print_graph_cfg): Split into three overloads.
4810         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4812 2016-02-22  Tom de Vries  <tom@codesourcery.com>
4814         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4815         dump-fn.
4817 2016-02-22  Richard Biener  <rguenther@suse.de>
4819         PR ipa/37448
4820         * ipa-inline-transform.c (inline_call): When not updating
4821         overall summaries adjust self size by the growth estimate.
4822         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4823         hash-set, do not update overall summaries here.  Renamed from ...
4824         (inline_to_all_callers): ... this which is now wrapping the
4825         above and performing delayed overall summary update.
4826         (early_inline_small_functions): Delay updating of the overall
4827         summary.
4829 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4831         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4832         variable.
4834 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
4836         PR driver/69805
4837         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4838         :%* in %:gt() argument.
4839         (greater_than_spec_func): Adjust for expecting only numbers,
4840         if there are more than two numbers, compare the last two.
4842 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
4844         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4845         -Wnarrowing with -std.
4847 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
4849         PR c++/69851
4850         * expr.c (store_field): Don't use bit-field path if exp is
4851         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4852         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4853         and the assignment can be performed by bitwise copy.  Formatting
4854         fix.
4856         PR middle-end/69838
4857         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4858         call copy_reg_eh_region_note_forward on before and/or after sequences
4859         and remove note from insn if it no longer can throw.
4861         PR target/69820
4862         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4863         if TARGET_AVX512BW.
4865 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4867         * config/s390/vector.md: Add missing commutative operand markers
4868         to the patterns which qualify for one.
4869         * config/s390/vx-builtins.md: Likewise.
4871 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4873         * config/s390/vector.md (VI, VI_QHS): Add single element vector
4874         types to mode iterators.
4875         (vec_double): ... and mode attribute.
4876         * config/s390/vx-builtins.md (non_vec_int): Likewise.
4878 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4880         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4881         Change the predicate of op2 from nonimmediate to general and let
4882         reload fix it if necessary.
4884 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4886         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4888 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4890         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4891         mode.
4893 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4895         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4896         * config/s390/s390.c (s390_expand_vec_movstr): New function.
4897         * config/s390/s390.md ("movstr<P:mode>"): Call
4898         s390_expand_vec_movstr.
4900 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4902         * config/s390/s390.md: Add missing output modifier for operand 1
4903         to print it as address properly.
4905 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4907         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4908         * config/s390/2964.md: New file.
4909         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4910         of insn grouping attributes depending on the CPU level.
4911         (s390_get_unit_mask): New function.
4912         (s390_sched_score): Remove the OOO from the scheduling macros.
4913         Add loop to calculate a score for the instruction mix.
4914         (s390_sched_reorder): Likewise plus improve debug output.
4915         (s390_sched_variable_issue): Rename macros as above.  Calculate
4916         the unit distances after actually scheduling an insn.  Improve
4917         debug output.
4918         (s390_sched_init): Clear last_scheduled_unit_distance array.
4919         * config/s390/s390.md: Include 2964.md.
4921 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
4923         PR target/69671
4924         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4925         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4926         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4927         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4928         *avx512f_<code>v8div16qi2_mask_1): New insns.
4930 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4932         PR target/68404
4933         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4934         2016-02-09 change.
4936         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4937         earlyclobber from target.  Use wF constraint for fused memory
4938         address.
4939         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4941 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
4942             Martin Liska  <mliska@suse.cz>
4944         PR sanitizer/69863
4945         * cfgexpand.c (asan_sanitize_stack_p): New function.
4946         (partition_stack_vars): Use the function.
4947         (expand_stack_vars): Likewise.
4948         (defer_stack_allocation): Likewise.
4949         (expand_used_vars): Likewise.
4951 2016-02-18  Richard Biener  <rguenther@suse.de>
4953         PR middle-end/69553
4954         * fold-const.c (operand_equal_p): Properly compare offsets for
4955         IMAGPART_EXPR and ARRAY_REF.
4957 2016-02-18  Nick Clifton  <nickc@redhat.com>
4959         PR target/62254
4960         PR target/69610
4961         * config/arm/arm.c (arm_option_override_internal): Disable
4962         interworking if the target does not support thumb instructions.
4963         (arm_reload_in_hi): Handle the case where a register to register
4964         move needs reloading because there is no simple pattern to handle
4965         it.
4966         (arm_reload_out_hi): Likewise.
4968 2016-02-18  Richard Biener  <rguenther@suse.de>
4970         PR middle-end/69854
4971         * match.pd: Don't use fold_binary or fold_unary for folding
4972         constants.
4974 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
4976         PR c++/69850
4977         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4978         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4979         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4980         warn on gimple_no_warning_p statements.
4982 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
4984         * doc/extend.texi (C++ Attributes): Correct description of
4985         warn_unused type attribute.
4987 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4989         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4990         correct instruction.
4992 2016-02-17  Richard Biener  <rguenther@suse.de>
4994         PR rtl-optimization/69609
4995         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4996         (find_traces_1_round): When ending a trace update cached priority
4997         of successors.
4998         (bb_to_key): Use cached priority when available.
4999         (copy_bb): Initialize cached priority.
5000         (reorder_basic_blocks_software_trace_cache): Likewise.
5002 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5004         PR target/69161
5005         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5006         New predicate.
5007         (aarch64_comparison_operator): Break overly long line into two.
5008         (aarch64_comparison_operation): Likewise.
5009         * config/aarch64/aarch64.md (cstorecc4): Use
5010         aarch64_comparison_operator_mode instead of
5011         aarch64_comparison_operator.
5012         (cstore<mode>4): Likewise.
5013         (aarch64_cstore<mode>): Likewise.
5014         (*cstoresi_insn_uxtw): Likewise.
5015         (cstore<mode>_neg): Likewise.
5016         (*cstoresi_neg_uxtw): Likewise.
5018 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5020         PR target/69161
5021         * config/arm/predicates.md (arm_comparison_operator_mode):
5022         New predicate.
5023         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5024         instead of arm_comparison_operator.
5025         (*mov_negscc): Likewise.
5026         (*mov_notscc): Likewise.
5027         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5028         (*thumb2_mov_negscc): Likewise.
5029         (*thumb2_mov_negscc_strict_it): Likewise.
5030         (*thumb2_mov_notscc): Likewise.
5031         (*thumb2_mov_notscc_strict_it): Likewise.
5033 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
5035         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5036         Add missing return.
5038 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
5040         * config/visium/visium.c (machine_libfunc_index): New enum.
5041         (machine_libfuncs): New structure.
5042         (visium_libfuncs): New static variable.
5043         (TARGET_INIT_LIBFUNCS): Define to...
5044         (visium_init_libfuncs): ...this.  New function.
5045         (expand_block_move_4): Use the appropriate libfunc.
5046         (expand_block_move_2): Likewise.
5047         (expand_block_move_1): Likewise.
5048         (expand_block_set_4): Likewise.
5049         (expand_block_set_2): Likewise.
5050         (expand_block_set_1): Likewise.
5051         (visium_trampoline_init): Likewise.
5053 2016-02-17  Nick Clifton  <nickc@redhat.com>
5055         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5056         TI's devices.csv file as of March 2016.
5058 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5060         PR Target/48344
5061         * opts-global.c (handle_common_deferred_options): Introduce and
5062         initialize two global variables to remember command-line options
5063         specifying a stack-limiting register.
5064         * opts.h: Add extern declarations of the two new global variables.
5065         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5066         variable based on the values of the two new global variables.
5068 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5070         PR c/69835
5071         * common.opt (Wnonnull-compare): New warning.
5072         * doc/invoke.texi (-Wnonnull): Remove text about comparison
5073         of arguments against NULL.
5074         (-Wnonnull-compare): Document.
5075         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5076         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5077         * passes.def (pass_warn_nonnull_compare): Add.
5078         * gimple-ssa-nonnull-compare.c: New file.
5080 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5082         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5083         AARCH64_EXTRA_TUNE_RECIP_SQRT.
5085 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5087         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5088         reciprocal sqrt for -mlow-precision-recip-sqrt.
5090 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5091             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5093         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5094         always use lane loads to construct non-constant vectors.
5096 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5098         * config/aarch64/aarch64.md
5099         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5100         constraints for operand 3.
5101         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5103 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5104             Richard Biener  <rguenther@suse.de>
5106         PR tree-optimization/69820
5107         * tree-vect-patterns.c (type_conversion_p): Return false if
5108         *orig_type is unsigned single precision or boolean.
5109         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5110         Formatting fix.
5112 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5114         PR rtl-optimization/69764
5115         PR rtl-optimization/69771
5116         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5117         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5119 2016-02-16  Richard Biener  <rguenther@suse.de>
5121         PR tree-optimization/69776
5122         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5123         sets from caller.
5124         (indirect_refs_may_alias_p): Likewise.
5125         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5126         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5127         according to tbaa_p.
5128         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5129         (optimize_stmt): For redundant store discovery do not allow tbaa.
5131 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
5133         PR tree-optimization/69714
5134         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5135         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5137 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
5139         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5140         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5141         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5142         * config/arc/arc.c (arc_init): Check FPU options.
5143         (get_arc_condition_code): Handle new CC_FPU* modes.
5144         (arc_select_cc_mode): Likewise.
5145         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5146         register pair only. Allow access for ARCv2 accumulator.
5147         (gen_compare_reg): Whenever we have FPU support use FPU compare
5148         instructions.
5149         (arc_reorg): Don't generate brcc insns when FPU compare
5150         instructions are involved.
5151         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5152         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5153         floating point emulation.
5154         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5155         (REVERSE_CONDITION): Add new CC_FPU* modes.
5156         (TARGET_FP_SP_BASE): Define.
5157         (TARGET_FP_DP_BASE): Likewise.
5158         (TARGET_FP_SP_FUSED): Likewise.
5159         (TARGET_FP_DP_FUSED): Likewise.
5160         (TARGET_FP_SP_CONV): Likewise.
5161         (TARGET_FP_DP_CONV): Likewise.
5162         (TARGET_FP_SP_SQRT): Likewise.
5163         (TARGET_FP_DP_SQRT): Likewise.
5164         (TARGET_FP_DP_AX): Likewise.
5165         * config/arc/arc.md (ARCV2_ACC): New constant.
5166         (type): New fpu type attribute.
5167         (SDF): Conditional iterator.
5168         (cstore<mode>, cbranch<mode>): Change expand condition.
5169         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5170         handles FPU/FPX cases as well.
5171         * config/arc/arc.opt (mfpu): New option.
5172         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5173         Renamed.
5174         (adddf3, muldf3, subdf3): Removed.
5175         * config/arc/predicates.md (proper_comparison_operator): Recognize
5176         CC_FPU* modes.
5177         * config/arc/fpu.md: New file.
5178         * doc/invoke.texi (ARC Options): Document mfpu option.
5180 2016-02-16  Richard Biener  <rguenther@suse.de>
5182         PR rtl-optimization/69291
5183         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5184         noce_operand_ok check.
5186 2016-02-16  Tom de Vries  <tom@codesourcery.com>
5188         PR lto/67709
5189         * omp-low.c (simd_clone_create): Remove call to
5190         symtab->call_cgraph_insertion_hooks.
5192 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5194         PR tree-optimization/69802
5195         * tree-ssa-reassoc.c (update_range_test): If op is
5196         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5197         op == 1 test of precision 1 integral op, otherwise handle
5198         that case as op itself.  Fix up formatting.
5199         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5200         up formatting.
5202 2016-02-16  Richard Biener  <rguenther@suse.de>
5204         PR tree-optimization/69586
5205         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5206         types for conversion sources.
5208 2016-02-16  Richard Biener  <rguenther@suse.de>
5210         PR middle-end/69801
5211         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5212         mask OEP_ADDRESS_OF.
5214 2016-02-16  Alan Modra  <amodra@gmail.com>
5216         PR target/68973
5217         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5218         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5219         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5220         (p8_mtvsrwz): New.
5221         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5222         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5223         (p8_fmrgow_<mode>): Likewise.
5224         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
5225         changes.
5226         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5227         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5228         to use movdi_internal64.  Remove op0_di.
5229         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5231 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
5233         Add support for the FCCMP insn types
5235         * config/aarch64/aarch64.md (fccmp): Change insn type.
5236         (fccmpe): Likewise.
5237         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5238         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5239         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5240         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5241         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5242         * config/arm/types.md (fccmps): Add new insn type.
5243         (fccmpd): Likewise.
5245 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5247         * alias.c (get_alias_set): Fix a typo in comment.
5249 2016-02-15  Richard Biener  <rguenther@suse.de>
5251         PR tree-optimization/69595
5252         * match.pd: Complete range test simplification to true.
5254 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
5256         PR rtl-optimization/69648
5257         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5258         pic_offset_table_rtx.
5260         PR rtl-optimization/69752
5261         * ira.c (update_equiv_regs): When looking for more than a single SET,
5262         also take other side effects into account.
5264 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5266         * config/s390/s390.c (s390_function_profiler): Add a new sequence
5267         for z900+ CPUs in 31-bit mode.
5269 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5271         * common/config/s390/s390-common.c (s390_supports_split_stack):
5272         New function.
5273         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5274         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5275         * config/s390/s390.c (struct machine_function): New field
5276         split_stack_varargs_pointer.
5277         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5278         in s390_emit_prologue.
5279         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5280         vararg pointer.
5281         (morestack_ref): New global.
5282         (SPLIT_STACK_AVAILABLE): New macro.
5283         (s390_expand_split_stack_prologue): New function.
5284         (s390_live_on_entry): New function.
5285         (s390_va_start): Use split-stack vararg pointer if appropriate.
5286         (s390_asm_file_end): Emit the split-stack note sections.
5287         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5288         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5289         (UNSPECV_SPLIT_STACK_CALL): New unspec.
5290         (UNSPECV_SPLIT_STACK_DATA): New unspec.
5291         (split_stack_prologue): New expand.
5292         (split_stack_space_check): New expand.
5293         (split_stack_data): New insn.
5294         (split_stack_call): New expand.
5295         (split_stack_call_*): New insn.
5296         (split_stack_cond_call): New expand.
5297         (split_stack_cond_call_*): New insn.
5299 2016-02-15  Richard Biener  <rguenther@suse.de>
5301         PR tree-optimization/69783
5302         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5303         Add trivially correct cases.
5305 2016-02-15  Tom de Vries  <tom@codesourcery.com>
5307         PR lto/69655
5308         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5309         do_force_output.
5310         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5312 2016-02-15  Richard Biener  <rguenther@suse.de>
5314         PR tree-optimization/69776
5315         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5316         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5317         indicate whether we can use TBAA to disambiguate against stores.
5318         Use alias-set zero if not.
5319         (visit_reference_op_store): Do not use TBAA when looking up
5320         redundant stores.
5321         * tree-ssa-pre.c (compute_avail): Use TBAA here.
5322         (eliminate_dom_walker::before_dom_children): But not when looking
5323         up redundant stores.
5325 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
5327         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5329 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5331         *  config/i386/znver1.md
5332         (znver1_pop, znver1_pop_mem,
5333         znver1_load_imov_double_store,
5334         znver1_load_imov_direct_store,
5335         znver1_load_imov_direct_load,
5336         znver1_load_imov_double_load): Add new.
5337         (znver1_insn, znver1_insn_load): Add icmov type.
5338         (znver1_sseavx_fma,
5339         znver1_sseavx_fma_load,
5340         znver1_avx256_fma,
5341         znver1_avx256_fma_load): Fix pipe usage.
5343 2016-02-14  Alan Modra  <amodra@gmail.com>
5345         PR target/68973
5346         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5347         with an invalid hard reg, reload just the reg not the entire
5348         pre/post-inc/dec address expression.
5350 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
5352         PR target/67260
5353         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5354         fixed R1_REG scratch reg.
5355         (sibcall_value_pcrel_fdpic): Likewise.
5357 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
5359         PR target/67636
5360         PR target/64345
5361         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5363 2016-02-12  Walter Lee  <walt@tilera.com>
5365         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5366         * config/tilegx/t-tilegx: Likewise.
5368 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5370         PR other/69554
5371         * diagnostic-show-locus.c (struct line_span): New struct.
5372         (layout::get_first_line): Delete.
5373         (layout::get_last_line): Delete.
5374         (layout::get_num_line_spans): New member function.
5375         (layout::get_line_span): Likewise.
5376         (layout::print_heading_for_line_span_index_p): Likewise.
5377         (layout::get_expanded_location): Likewise.
5378         (layout::calculate_line_spans): Likewise.
5379         (layout::m_first_line): Delete.
5380         (layout::m_last_line): Delete.
5381         (layout::m_line_spans): New field.
5382         (layout::layout): Update comment.  Replace m_first_line and
5383         m_last_line with m_line_spans, replacing their initialization
5384         with a call to calculate_line_spans.
5385         (diagnostic_show_locus): When printing source lines and
5386         annotations, rather than looping over a single span
5387         of lines, instead loop over each line_span within
5388         the layout, with an inner loop over the lines within them.
5389         Call the context's start_span callback when changing line spans.
5390         * diagnostic.c (diagnostic_initialize): Initialize start_span.
5391         (diagnostic_build_prefix): Break out the building of the location
5392         part of the string into...
5393         (diagnostic_get_location_text): ...this new function, rewriting
5394         it from nested ternary expressions to a sequence of "if"
5395         statements.
5396         (default_diagnostic_start_span_fn): New function.
5397         * diagnostic.h (diagnostic_start_span_fn): New typedef.
5398         (diagnostic_context::start_span): New field.
5399         (default_diagnostic_start_span_fn): New prototype.
5401 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5403         PR driver/69779
5404         * gcc.c (driver::finalize): Fix cleanup of "specs".
5406 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5408         PR driver/69265
5409         PR driver/69453
5410         * gcc.c (driver::driver): Initialize m_option_suggestions.
5411         (driver::~driver): Clean up m_option_suggestions.
5412         (suggest_option): Convert to...
5413         (driver::suggest_option): ...this, and split out into
5414         driver::build_option_suggestions and find_closest_string.
5415         (driver::build_option_suggestions): New function, from
5416         first half of suggest_option.  Special-case
5417         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5418         the sanitizer_opts array.  For options of enum types, add the
5419         various enum values to the candidate strings.
5420         (driver::handle_unrecognized_options): Remove "const".
5421         * gcc.h (driver::handle_unrecognized_options): Likewise.
5422         (driver::build_option_suggestions): New decl.
5423         (driver::suggest_option): New decl.
5424         (driver::m_option_suggestions): New field.
5425         * opts-common.c (add_misspelling_candidates): New function.
5426         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5427         and make non-static.
5428         * opts.h (sanitizer_opts): New array decl.
5429         (add_misspelling_candidates): New function decl.
5430         * spellcheck.c (find_closest_string): New function.
5431         * spellcheck.h (find_closest_string): New function decl.
5433 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5435         PR rtl-optimization/69764
5436         PR rtl-optimization/69771
5437         * optabs.c (expand_binop_directly): For shift_optab_p, force
5438         convert_modes with VOIDmode if xop1 has VOIDmode.
5440 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5442         PR target/69729
5443         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5444         to correctly determine instrumentation thunks.
5446 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5448         PR ipa/69241
5449         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5450         type by reference, force lhs on the call.
5452         PR ipa/68672
5453         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5454         Compute retval and retbnd early in all cases if split_part_return_p
5455         and return_bb is not EXIT.  Remove all clobber stmts and reset
5456         all debug stmts that refer to SSA_NAMEs defined in split part,
5457         except if it is retval, in that case replace the old retval with the
5458         lhs of the call to the split part.
5460 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5462         revert:
5463         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5465         PR middle-end/66726
5466         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5467         whose result is used in PHI.
5468         (maybe_optimize_range_tests): Likewise.
5469         (final_range_test_p): Likweise.
5471 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5473         PR middle-end/66726
5474         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5475         whose result is used in PHI.
5476         (maybe_optimize_range_tests): Likewise.
5477         (final_range_test_p): Likweise.
5479 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5481         * cgraph.c: Spelling fixes - behaviour -> behavior and
5482         neighbour -> neighbor.
5483         * target.def: Likewise.
5484         * sel-sched.c: Likewise.
5485         * config/mips/mips.c: Likewise.
5486         * config/arc/arc.md: Likewise.
5487         * config/arm/cortex-a57.md: Likewise.
5488         * config/arm/arm.c: Likewise.
5489         * config/arm/neon.md: Likewise.
5490         * config/arm/arm-c.c: Likewise.
5491         * config/vms/vms-c.c: Likewise.
5492         * config/s390/s390.c: Likewise.
5493         * config/i386/znver1.md: Likewise.
5494         * config/i386/i386.c: Likewise.
5495         * config/ia64/hpux-unix2003.h: Likewise.
5496         * config/msp430/msp430.md: Likewise.
5497         * config/rx/rx.c: Likewise.
5498         * config/rx/rx.md: Likewise.
5499         * config/aarch64/aarch64-simd.md: Likewise.
5500         * config/aarch64/aarch64.c: Likewise.
5501         * config/nvptx/nvptx.c: Likewise.
5502         * config/bfin/bfin.c: Likewise.
5503         * config/cris/cris.opt: Likewise.
5504         * config/rs6000/rs6000.c: Likewise.
5505         * target.h: Likewise.
5506         * spellcheck.c: Likewise.
5507         * ira-build.c: Likewise.
5508         * tree-inline.c: Likewise.
5509         * builtins.c: Likewise.
5510         * lra-constraints.c: Likewise.
5511         * explow.c: Likewise.
5512         * hwint.h: Likewise.
5513         * targhooks.c: Likewise.
5514         * tree-vect-data-refs.c: Likewise.
5515         * expr.c: Likewise.
5516         * doc/tm.texi: Likewise.
5517         * doc/extend.texi: Likewise.
5518         * doc/install.texi: Likewise.
5519         * doc/md.texi: Likewise.
5520         * tree-ssa-tail-merge.c: Likewise.
5521         * sched-int.h: Likewise.
5522         * match.pd: Likewise.
5523         * sched-ebb.c: Likewise.
5524         * target.def (omit_struct_return_reg): Likewise.
5525         * gimple-ssa-isolate-paths.c: Likewise.
5526         (find_implicit_erroneous_behaviour): Renamed to...
5527         (find_implicit_erroneous_behavior): ... this.
5528         (find_explicit_erroneous_behaviour): Renamed to...
5529         (find_explicit_erroneous_behavior): ... this.
5530         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5532 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
5534         PR rtl-optimization/64682
5535         PR rtl-optimization/69567
5536         PR rtl-optimization/69737
5537         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5538         in I2 as well, just lose it.
5540 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5542         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5543         New variable.
5544         (aarch64_last_printed_tune_string): Likewise.
5545         (aarch64_declare_function_name): Only output .arch assembler
5546         directive if it will be different from the previously output
5547         directive.  Same for .tune comment but only if -dA is set.
5548         (aarch64_start_file): New function.
5549         (TARGET_ASM_FILE_START): Define.
5551 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
5553         PR plugins/69758
5554         * Makefile.in (PLUGIN_HEADERS): Add params.list.
5556 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
5558         PR target/65313
5559         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5560         -Wmaybe-uninitialized warning.
5562 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
5564         PR target/69713
5565         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5567 2016-02-11  Richard Biener  <rguenther@suse.de>
5569         PR rtl-optimization/69291
5570         * ifcvt.c (noce_try_store_flag_constants): Do not allow
5571         subexpressions affected by changing the result.
5573 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
5575         PR target/69148
5576         * lra-constraints.c (curr_insn_transform): Find in/out operands
5577         for secondary memory moves.  Update dups.
5579 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5581         PR tree-optimization/69652
5582         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5583         to nested loop, did source re-formatting, skip debug statements,
5584         add check on statement with volatile operand, remove dead scalar
5585         statements.
5587 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
5588             Patrick Palka  <ppalka@gcc.gnu.org>
5590         PR ipa/69241
5591         PR c++/69649
5592         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5593         calls if the return type is TREE_ADDRESSABLE.
5594         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5595         * ipa-split.c (split_function): Fix doubled "we" in comment.
5596         Use void return type for the split part even if
5597         !split_point->split_part_set_retval.
5599 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
5601         PR tree-optimization/68021
5602         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5603         when computing the value of biv cand by itself.
5605 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
5607         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5608         (cortexa57_tunings): Likewise.
5609         (cortexa72_tunings): Likewise.
5610         (arch_macro_fusion_pair_p): Add support for AES fusion.
5611         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5612         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5613         Allow virtual registers before reload so early scheduling works.
5614         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5615         correct latency and pipeline.
5616         (cortex_a57_crypto_complex): Likewise.
5617         (cortex_a57_crypto_xor): Likewise.
5618         (define_bypass): Add AES bypass.
5620 2016-02-10  Richard Biener  <rguenther@suse.de>
5622         PR tree-optimization/69726
5623         * passes.def: Add DCE pass before late uninit.
5624         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5625         really fixup if-conversions job.
5627 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
5629         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5630         (arm_cortex_a57_tune): Likewise.
5631         (aarch_macro_fusion_pair_p): Add support for AES fusion.
5632         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5634 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
5636         * timevar.def (TV_PHASE_DBGINFO): Delete.
5637         (TV_PHASE_CHECK_DBGINFO): Likewise.
5638         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5640 2016-02-10  Richard Biener  <rguenther@suse.de>
5642         PR tree-optimization/69719
5643         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5644         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5646 2016-02-09  Andrew Pinski  <apinski@cavium.com>
5648         PR tree-opt/69282
5649         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5650         get_vcond_mask_icode returns false.
5652 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5654         PR target/68404
5655         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5656         an ADDIS that adds a pointer to a large constant that sets the
5657         upper16 bits with a load operation.
5659 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
5661         PR target/68532
5662         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5663         order.
5664         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5665         endian.
5666         (vzipq_s16): Likewise.
5667         (vzipq_s32): Likewise.
5668         (vzipq_f32): Likewise.
5669         (vzipq_u8): Likewise.
5670         (vzipq_u16): Likewise.
5671         (vzipq_u32): Likewise.
5672         (vzipq_p8): Likewise.
5673         (vzipq_p16): Likewise.
5675 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
5677         PR target/68532
5678         * config/arm/arm.c (neon_endian_lane_map): New function.
5679         (neon_vector_pair_endian_lane_map): New function.
5680         (arm_evpc_neon_vuzp): Allow for big endian lane order.
5681         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5682         endian.
5683         (vuzpq_s16): Likewise.
5684         (vuzpq_s32): Likewise.
5685         (vuzpq_f32): Likewise.
5686         (vuzpq_u8): Likewise.
5687         (vuzpq_u16): Likewise.
5688         (vuzpq_u32): Likewise.
5689         (vuzpq_p8): Likewise.
5690         (vuzpq_p16): Likewise.
5692 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
5694         PR target/69634
5695         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5696         debug insns.
5698 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
5700         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5701         truncate const_int operand 1 to QImode.
5703 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
5705         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5706         corresponding to an abnormal edge.
5708 2016-02-09  Tom de Vries  <tom@codesourcery.com>
5710         PR tree-optimization/69599
5711         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5712         function.
5713         (find_func_aliases_for_builtin_call, find_func_clobbers)
5714         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
5715         partition.
5717 2016-02-09  Richard Biener  <rguenther@suse.de>
5719         PR tree-optimization/69715
5720         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5721         LHS on calls as non-rewritable.
5723 2016-02-09  Tom de Vries  <tom@codesourcery.com>
5725         PR lto/69707
5726         * lto-wrapper.c (append_diag_options): New function.
5727         (compile_offload_image): Call append_diag_options.
5729 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
5731         PR other/69722
5732         * doc/extend.texi (Flag Output Operands): Correct sectioning.
5733         Minor copy-edit to fix verb tenses.
5735 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
5737         PR tree-optimization/69209
5738         * ipa-split.c (split_function): If split part is not
5739         returning retval, retval has gimple type but is not
5740         gimple value, force it into a SSA_NAME first.
5742 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
5744         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5745         outdated section.
5747 2016-02-08  Jason Merrill  <jason@redhat.com>
5749         PR c++/69631
5750         * convert.c (convert_to_integer_1): Check dofold on truncation
5751         distribution.
5752         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5753         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5754         Rename from *_nofold.
5755         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5756         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5758 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
5760         PR target/60410
5761         * tree.c (build_common_tree_nodes): Remove short_double argument.
5762         All callers changed.
5763         * tree.h (build_common_tree_nodes): Adjust declaration.
5764         * doc/invoke.texi (-fshort-double): Remove documentation.
5765         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5766         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5767         * lto-wrapper.c (merge_and_complain, append_compiler_options)
5768         (append_linker_options): Don't handle OPT_fshort_double.
5770         PR rtl-optimization/68730
5771         * lra-remat.c (insn_to_cand_activation): New static variable.
5772         (lra_remat): Allocate and free it.
5773         (create_cand): New arg activation. Initialize a field in
5774         insn_to_cand_activation if it is nonnull.
5775         (create_cands): Pass the activation insn to create_cand when making
5776         a candidate involving an output reload.  Reorganize code a little.
5777         (do_remat): Keep track of active status of candidates in a separate
5778         bitmap.
5780 2016-02-08  Richard Biener  <rguenther@suse.de>
5782         PR tree-optimization/69719
5783         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5784         Properly use absolute of the difference of the two offsets to
5785         compare or adjust the segment length.
5787 2016-02-08  Richard Biener  <rguenther@suse.de>
5788             Jeff Law  <law@redhat.com>
5790         PR target/68273
5791         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5792         types for anonymous SSA names.
5794 2016-02-08   Richard Biener  <rguenther@suse.de>
5796         PR rtl-optimization/69274
5797         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5799 2016-02-08  Jeff Law  <law@redhat.com>
5801         PR tree-optimization/65917
5802         * tree-ssa-dom.c (record_temporary_equivalences): Record both
5803         equivalences from if (x == y) style conditionals.
5804         (loop_depth_of_name): Remove.
5805         (record_equality): Remove loop depth check.
5806         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5807         (const_and_copies::record_const_or_copy_raw): New member function.
5808         * tree-ssa-scopedtables.c
5809         (const_and_copies::record_const_or_copy_raw): New, factored out of
5810         (const_and_copies::record_const_or_copy): Call new member function.
5812 2016-02-05  Jeff Law  <law@redhat.com>
5814         PR tree-optimization/68541
5815         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5816         (count_stmts_in_block): New function.
5817         (poor_ifcvt_candidate_code): Likewise.
5818         (is_feasible_trace): Add some heuristics to determine when path
5819         splitting is profitable.
5820         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5821         is a diamond with a single exit.
5823 2016-02-05  Martin Sebor  <msebor@redhat.com>
5825         PR c++/69662
5826         * doc/invoke.texi: Update -Wplacement-new to take an optional
5827         argument.
5829 2016-02-06  Richard Henderson  <rth@redhat.com>
5831         PR c/69643
5832         * tree.c (tree_nop_conversion_p): Do not strip casts into or
5833         out of non-standard address spaces.
5835 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
5837         PR rtl-optimization/69691
5838         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5840 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
5842         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5843         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5844         (*ieee128_mfvsrd_64bit): Likewise.
5845         (*ieee128_mfvsrd_32bit): Likewise.
5847 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5849         PR target/69369
5850         Revert r232560:
5851         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5853         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5854         instrumented_version.
5856 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
5858         * doc/invoke.texi (Optimize Options): In table of --param options
5859         rename second occurrence of tracer-min-branch-ratio to
5860         tracer-min-branch-probability, rename
5861         tracer-min-branch-ratio-feedback to
5862         tracer-min-branch-probability-feedback and clarify description,
5863         rename sched-spec-state-edge-prob-cutoff to
5864         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5865         to selsched-insns-to-rename, rename lto-minpartition to
5866         lto-min-partition, delete reorder-blocks-duplicate and
5867         reorder-blocks-duplicate-feedback.
5869 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5871         * config/s390/s390.c (s390_register_info_set_ranges): Remove
5872         superfluous loops.
5874 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5876         * doc/extend.texi: S/390: Correct some typos.
5878 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5880         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5882 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5884         PR target/69625
5885         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5886         (s390_register_info_gprtofpr): Use new macros above.
5887         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5888         its name.
5889         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5890         its name.  Adjust restore and save gpr ranges.
5891         (s390_register_info_set_ranges): New function.
5892         (s390_register_info): Use new macros above.  Call
5893         s390_register_info_set_ranges.
5894         (s390_optimize_register_info): Likewise.
5895         (s390_hard_regno_rename_ok): Use new macros.
5896         (s390_hard_regno_scratch_ok): Likewise.
5897         (s390_emit_epilogue): Likewise.
5898         (s390_can_use_return_insn): Likewise.
5899         (s390_optimize_prologue): Likewise.
5900         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5902 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
5904         PR bootstrap/69677
5905         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5906         alignment fixes.
5907         (ix86_option_override_internal): Disable TARGET_STV even for
5908         -m{incoming,preferred}-stack-boundary=3.
5910 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5912         * config.gcc: Mark deprecated rtems targets as obsolete.
5914 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
5916         PR rtl-optimization/64682
5917         PR rtl-optimization/69567
5918         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5919         before I2 only if the register is both used and set in I2.
5921 2016-02-04  DJ Delorie  <dj@redhat.com>
5923         * config/msp430/msp430.c (msp430_start_function): Add function type.
5925 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
5927         PR fortran/69368
5928         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5930 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
5932         PR rtl-optimization/69577
5933         Revert:
5934         2015-10-29  Richard Henderson  <rth@redhat.com>
5936         PR target/68124
5937         PR rtl-opt/67609
5938         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5939         sse check to the exact conditions of PR 67609.
5941 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5943         PR target/69667
5944         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5945         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5946         not allowed into the traditional Altivec registers.
5947         (movtd_64bit_nodm): Likewise.
5948         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5950 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
5952         * config/aarch64/cortex-a57-fma-steering.c
5953         (aarch64_register_fma_steering): Remove "static" from arguments
5954         to register_pass.
5956 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
5958         PR target/69619
5959         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5960         twice when complex.
5962 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
5964         * doc/invoke.texi: Delete -mno-fma4.
5966 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
5968         PR rtl-optimization/69577
5969         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5970         (find_subregs_of_mode): Update accordingly.  Iterate over partial
5971         definitions.
5973 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
5975         * config/arm/arm-protos.h (neon_reinterpret): Remove.
5976         * config/arm/arm.c (neon_reinterpret): Remove.
5977         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5978         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5979         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5980         vreinterpretti): Remove.
5981         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5982         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5983         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5984         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5985         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5986         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5987         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5988         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5989         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5990         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5991         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5992         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5993         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5994         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5995         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5996         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5997         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5998         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5999         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6000         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6001         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6002         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6003         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6004         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6005         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6006         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6007         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6008         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6009         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6010         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6011         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6012         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6013         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6014         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6015         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6016         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6017         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6018         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6019         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6020         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6021         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6022         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6023         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6024         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6025         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6026         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6027         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6028         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6029         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6030         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6031         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6032         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6033         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6034         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6035         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6036         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6037         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6038         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6039         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6040         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6041         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6042         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6043         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6044         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6045         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6046         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6047         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6048         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6049         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6050         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6051         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6052         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6053         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6054         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6055         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6056         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6057         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6058         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6059         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6060         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6061         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6062         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6063         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6064         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6065         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6066         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6067         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6068         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6069         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6070         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6071         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6072         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6073         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6074         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6075         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6076         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6077         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6078         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6079         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6080         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6081         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6082         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6083         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6085 2016-02-04  Martin Liska  <mliska@suse.cz>
6087         PR sanitizer/69276
6088         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6089         that are gimple_store_p.
6090         (maybe_instrument_call): Likewise.
6092 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
6094         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6095         register scaling out of memory reference and comment why.
6097 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6099         PR target/65932
6100         PR target/67714
6101         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6102         folding the source of a SET.
6104 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6106         PR target/65932
6107         PR target/67714
6108         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6109         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6111 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
6113         PR target/65932
6114         PR target/67714
6115         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6116         HImode.
6118 2016-02-04  Christian Bruel  <christian.bruel@st.com>
6120         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6121         * config/arm/arm.c (arm_set_current_function): Likewise.
6123 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
6124             Ilya Enkovich  <enkovich.gnu@gmail.com>
6125             H.J. Lu  <hongjiu.lu@intel.com>
6127         PR target/69454
6128         * config/i386/i386.c (convert_scalars_to_vector): Remove
6129         stack alignment fixes.
6130         (ix86_option_override_internal): Disable TARGET_STV if stack
6131         might not be aligned enough.
6132         (ix86_minimum_alignment): Assert that TARGET_STV is false.
6134 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
6136         * gcc/config/i386/x86-tune.def: Disable default prefetching
6137         for -march=znver1.
6139 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6140             Vladimir Makarov  <vmakarov@redhat.com>
6142         PR target/69461
6143         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6144         in validating fused toc addresses.
6146 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
6148         PR c/69627
6149         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6150         range->m_caret fields if range->m_show_caret_p is false.
6152         PR target/69644
6153         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6154         Force oldval into register if it does not satisfy reg_or_short_operand
6155         predicate.  Fix up formatting.
6157 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
6158             Alexandre Oliva  <aoliva@redhat.com>
6160         PR target/69461
6161         * lra-constraints.c (simplify_operand_subreg): Check additionally
6162         address validity after potential reloading.
6163         (process_address_1): Check insns validity.  In case of failure do
6164         nothing.
6166 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
6168         PR target/69118
6169         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6170         Fix target.
6172 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
6174         * wide-int.cc (canonize_uhwi): New function.
6175         (wi::divmod_internal): Use it.
6177 2016-02-02  James Norris  <jnorris@codesourcery.com
6179         * gimplify.c (omp_notice_variable): Add usage check.
6181 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6183         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6184         like LE, GE, LT, GT when emitting relational operator.
6186 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6188         * ira-costs.c (find_costs_and_classes): Add extra argument.
6189         * target.def (ira_change_pseudo_allocno_class): Add parameter.
6190         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6191         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6192         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6193         Add best_class parameter, and return it if not ALL_REGS.
6194         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6195         Add parameter.
6196         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6197         Update target hook.
6199 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6201         * config/aarch64/aarch64.c
6202         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6203         (aarch64_ira_change_pseudo_allocno_class): New function.
6205 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
6207         PR target/67032
6208         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6210 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6212         * config/avr/avr.c (avr_option_override): Set
6213         PARAM_ALLOW_STORE_DATA_RACES to 1.
6215 2016-02-02  Richard Biener  <rguenther@suse.de>
6217         PR tree-optimization/69595
6218         * match.pd: Add range test simplifications to true/false.
6220 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6222         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6223         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6224         instead.
6226 2016-02-02  Richard Biener  <rguenther@suse.de>
6228         PR tree-optimization/69606
6229         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6230         info on the result before moving a stmt.
6232 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
6234         PR middle-end/68542
6235         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6236         branch with vector comparison.
6237         * config/i386/sse.md (VI48_AVX): New mode iterator.
6238         (define_expand "cbranch<mode>4): Add support for conditional branch
6239         with vector comparison.
6240         * tree-vect-loop.c (optimize_mask_stores): New function.
6241         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6242         has_mask_store field of vect_info.
6243         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6244         vectorized loops having masked stores after vec_info destroy.
6245         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6246         correspondent macros.
6247         (optimize_mask_stores): Add prototype.
6249 2016-02-02  Alan Modra  <amodra@gmail.com>
6251         PR target/69548
6252         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6253         allow subregs.
6255 2016-02-02  Alan Modra  <amodra@gmail.com>
6257         PR target/68662
6258         * config/rs6000/rs6000.c (need_toc_init): New var, set it
6259         whenever toc_label_name used.
6260         (rs6000_file_start): Don't set up toc section here,
6261         (rs6000_output_function_epilogue): do so here instead,
6262         (rs6000_xcoff_file_start): and here.
6263         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6264         (load_toc_aix_di): Likewise.
6266 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6268         PR rtl-optimization/69592
6269         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6270         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6271         (num_sign_bit_copies_binary_arith_p): New inline function.
6272         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6274 2016-02-01  Jeff Law  <law@redhat.com>
6276         PR tree-optimization/69580
6277         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6278         * tree-ssa-threadbackward.c
6279         (fsm_find_control_statement_thread_paths): Do not try to walk
6280         through large PHI nodes.
6282 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6284         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6285         when count is incremented above limit, don't analyze further
6286         insns afterwards.
6288         * omp-low.c (oacc_parse_default_dims): Avoid
6289         -Wsign-compare warning, make sure value fits into int
6290         rather than just unsigned int.
6292 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
6294         PR tree-optimization/67921
6295         * fold-const.c (split_tree): New parameters.  Convert pointer
6296         type variable part to proper type before negating.
6297         (fold_binary_loc): Pass new arguments to split_tree.
6299 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6301         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6302         (nvptx_goacc_validate_dims): Extend to handle global defaults.
6303         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6304         * doc/tm.texti: Rebuilt.
6305         * doc/invoke.texi (fopenacc-dim): Document.
6306         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6307         (append_compiler_options): Likewise.
6308         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6309         (oacc_parse_default_dims): New.
6310         (oacc_validate_dims): Add USED arg.  Select non-unity default when
6311         possible.
6312         (oacc_loop_fixed_partitions): Return mask of used partitions.
6313         (oacc_loop_auto_partitions): Emit dump info.
6314         (oacc_loop_partition): Return mask of used partitions.
6315         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
6316         loop partitioning and validation calls.
6318 2016-02-01  Richard Biener  <rguenther@suse.de>
6320         PR middle-end/69556
6321         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6323 2016-02-01  Richard Biener  <rguenther@suse.de>
6325         PR tree-optimization/69574
6326         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6327         of asserting return chrec_dont_know.
6329 2016-02-01  Martin Liska  <mliska@suse.cz>
6331         * mem-stats-traits.h: Add copyright header.
6332         * mem-stats.h: Likewise.
6334 2016-02-01  Richard Biener  <rguenther@suse.de>
6336         PR tree-optimization/69579
6337         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6338         Do not propagate through abnormal PHI results.
6340 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
6342         * postreload.c (reload_cse_simplify): Remove dead code.
6344 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6346         PR rtl-optimization/69570
6347         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6348         if there is more than one set, not if there is a single set.
6350 2016-02-01  Richard Henderson  <rth@redhat.com>
6352         PR rtl-opt/69535
6353         * combine.c (make_compound_operation): When looking through a
6354         subreg, make sure to re-extend to the width of the outer mode.
6356 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
6358         PR tree-optimization/69546
6359         * wide-int.cc (wi::divmod_internal): For unsigned division
6360         where both operands fit into uhwi, if o1 is 1 and o0 has
6361         msb set, if divident_prec is larger than bits per hwi,
6362         clear another quotient word and return 2 instead of 1.
6363         Similarly for remainder with msb in HWI set, if dividend_prec
6364         is larger than bits per hwi.
6366 2016-01-29  Martin Jambor  <mjambor@suse.cz>
6368         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6369         Use short lowercase names.
6370         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
6371         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6372         acq_rel one.  Protect warning agains segfaults if
6373         get_memory_order_name returns NULL.
6374         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6375         with release semantics.  Do not warn if get_memory_order already did.
6376         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6377         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
6378         if get_memory_order already did.
6380 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
6382         * doc/install.texi: Document that isl-0.16 is supported.
6384 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
6386         PR target/69299
6387         * config/i386/constraints.md (Bm): Describe as special memory
6388         constraint.
6389         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6390         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6391         * genpreds.c (struct constraint_data): Add is_special_memory.
6392         (have_special_memory_constraints, special_memory_start): New
6393         static vars.
6394         (special_memory_end): Ditto.
6395         (add_constraint): Add new arg is_special_memory.  Add code to
6396         process its true value.  Update have_special_memory_constraints.
6397         (process_define_constraint): Pass the new arg.
6398         (process_define_register_constraint): Ditto.
6399         (choose_enum_order): Process special memory.
6400         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6401         function insn_extra_special_memory_constraint.
6402         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6403         * gensupport.c (process_rtx): Process
6404         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6405         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6406         * ira-lives.c (single_reg_class): Use
6407         insn_extra_special_memory_constraint.
6408         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6409         * lra-constraints.c (process_alt_operands): Ditto.
6410         (curr_insn_transform): Use insn_extra_special_memory_constraint.
6411         * recog.c (asm_operand_ok, preprocess_constraints): Process
6412         CT_SPECIAL_MEMORY.
6413         * reload.c (find_reloads): Ditto.
6414         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6415         * stmt.c (parse_input_constraint): Use
6416         insn_extra_special_memory_constraint.
6418 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6420         PR target/69530
6421         * lra-splill.c (lra_final_code_change): Revert r229087 by
6422         removing all sub-registers.
6424 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
6426         PR target/65604
6427         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6429 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
6431         PR target/69551
6432         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6433         SSE1, copy target into the temporary reg first before recursing
6434         on it.
6436 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6438         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6439         with vm.
6441 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
6443         * ginclude/stdarg.h: Test __cplusplus instead of
6444         __GXX_EXPERIMENTAL_CXX0X__.
6446 2016-01-29  Richard Biener  <rguenther@suse.de>
6448         PR tree-optimization/69547
6449         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6450         Do not mark clobbers necessary.
6451         (mark_all_reaching_defs_necessary_1): Likewise.
6453 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6455         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6456         declaration name with %qs and print it in both error messages.
6457         Also fix indentation.
6459 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6461         PR other/69006
6462         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6463         trailing blank line from error message.
6465 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
6467         PR c++/69462
6468         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6469         for C++-11.
6471 2016-01-29  Richard Biener  <rguenther@suse.de>
6473         PR middle-end/69537
6474         * match.pd: Allow all integral types when simplifying a
6475         widening or sign-changing conversion.
6477 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6479         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6480         back to setting codegen_error to fail codegen.
6482 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
6484         PR target/69459
6485         * config/i386/constraints.md (C): Only accept constant zero operand.
6486         (BC): New constraint.
6487         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6488         instead of C constraint.
6489         * doc/md.texi (Machine Constraints): Update description
6490         of C constraint.
6492 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
6494         PR target/68400
6495         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6497 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
6499         PR middle-end/69542
6500         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6501         non-debug insns.
6503 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
6505         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6506         branches if using guessed profile.
6508 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
6510         * graphite-optimize-isl.c (optimize_isl): Fix dump.
6512 2016-01-28  Richard Henderson  <rth@redhat.com>
6514         PR target/69305
6515         * config/aarch64/aarch64-modes.def (CC_Cmode): New
6516         * config/aarch64/aarch64-protos.h: Update.
6517         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6518         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6519         (aarch64_get_condition_code_1): Handle CC_Cmode.
6520         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6521         (*add<mode>3_compareC_cconly_imm): New.
6522         (*add<mode>3_compareC_cconly): New.
6523         (*add<mode>3_compareC_imm): New.
6524         (add<mode>3_compareC): New.
6525         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6526         to be first.  Use aarch64_carry_operation.
6527         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6528         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6529         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6530         (subti3): Use subdi3_compare1.
6531         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6532         (sub<mode>3_compare1): New.
6533         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6534         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6535         (*subsi3_carryin_uxtw): Likewise.
6536         (*ngc<mode>, *ngcsi_uxtw): Likewise.
6537         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6538         * config/aarch64/iterators.md (DWI): New.
6539         * config/aarch64/predicates.md (aarch64_carry_operation): New.
6540         (aarch64_borrow_operation): New.
6542 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6544         * graphite-optimize-isl.c (optimize_isl): Print a different debug
6545         message when isl does not return a valid schedule.
6547 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6549         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6550         Remove comments from class declarations: they are already in the code
6551         close by the defs.
6553 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6555         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6556         codegen_error_p.
6557         (ternary_op_to_tree): Same.
6558         (unary_op_to_tree): Same.
6559         (nary_op_to_tree): Same.
6560         (gcc_expression_from_isl_expr_op): Same.
6561         (gcc_expression_from_isl_expression): Same.
6562         (graphite_create_new_loop): Same.
6563         (graphite_create_new_loop_guard): Same.
6564         (build_iv_mapping): Same.
6565         (graphite_create_new_guard): Same.
6566         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6567         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6569 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6571         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6572         instead of setting codegen_error to fail codegen.
6574 2016-01-28  Jason Merrill  <jason@redhat.com>
6576         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6578 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
6580         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6581         Remove CONST_INT_P check in CCMP cost calculation.
6583 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
6585         * config/aarch64/aarch64.c (generic_vector_cost):
6586         Set vec_permute_cost.
6587         (cortexa57_vector_cost): Likewise.
6588         (exynosm1_vector_cost): Likewise.
6589         (xgene1_vector_cost): Likewise.
6590         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6591         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6592         Add vec_permute_cost entry.
6594 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
6596         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6597         immediate as %1.
6598         (add<mode>3_compare0): Likewise.
6599         (addsi3_compare0_uxtw): Likewise.
6600         (add<mode>3nr_compare0): Likewise.
6601         (compare_neg<mode>): Likewise.
6602         (<optab><mode>3): Likewise.
6604 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
6606         * tree-vect-stmts.c (vectorizable_comparison): Add
6607         NULL check for vectype.
6609 2016-01-28  Richard Biener  <rguenther@suse.de>
6611         PR tree-optimization/69466
6612         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6613         Account for PHIs we couldn't duplicate.
6615 2016-01-28  Martin Liska  <mliska@suse.cz>
6617         PR pch/68758
6618         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6619         instead of ENABLE_VALGRIND_CHECKING.
6621 2016-01-27  Richard Henderson  <rth@redhat.com>
6623         PR rtl-opt/69447
6624         * lra-remat.c (subreg_regs): New.
6625         (dump_candidates_and_remat_bb_data): Dump it.
6626         (operand_to_remat): Reject if operand in subreg_regs.
6627         (set_bb_regs): Collect subreg_regs.
6628         (lra_remat): Init and free subreg_regs.  Compute
6629         calculate_local_reg_remat_bb_data before create_cands.
6631 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
6633         PR target/68986
6634         * config/i386/i386.c (ix86_update_stack_boundary): Don't
6635         change stack_alignment_needed for __tls_get_addr call.
6637 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
6639         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6641 2016-01-27  Jeff Law  <law@redhat.com>
6643         PR tree-optimization/68398
6644         PR tree-optimization/69196
6645         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6646         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6647         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6648         Only count PHIs in the last block in the path.  The others will
6649         const/copy propagate away.  Add heuristic to allow more irreducible
6650         subloops to be created when it is likely profitable to do so.
6652         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6653         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
6654         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
6656 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
6658         PR lto/69254
6659         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6660         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6661         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6662         * tree-streamer-in.c: Include asan.h.
6663         (streamer_get_builtin_tree): For builtins in sanitizer
6664         range call initialize_sanitizer_builtins and retry.
6666 2016-01-27  Ian Lance Taylor  <iant@google.com>
6668         * common.opt (fkeep-gc-roots-live): New undocumented option.
6669         * tree-ssa-loop-ivopts.c (add_candidate_1): If
6670         -fkeep-gc-roots-live, skip pointers.
6671         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6672         NULL.
6674 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
6676         PR target/69512
6677         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6678         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6680 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
6682         PR target/68380
6683         * configure.ac: NetBSD provides SSP in its C library.
6684         * configure: Updated.
6686 2016-01-27  Richard Biener  <rguenther@suse.de>
6688         PR tree-optimization/69166
6689         * tree-vect-loop.c (vect_is_simple_reduction): Always check
6690         reduction code for commutativity / associativity.
6692 2016-01-27  Martin Jambor  <mjambor@suse.cz>
6694         PR tree-optimization/69355
6695         * tree-sra.c (analyze_access_subtree): Correct hole detection when
6696         total_scalarization fails.
6698 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
6700         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6701         power9.
6703 2016-01-27  Christian Bruel  <christian.bruel@st.com>
6705         PR target/69245
6706         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6707         Move arm_reset_previous_fndecl and set_target_option_current_node in
6708         the conditional part.  Call save_restore_target_globals.
6709         * config/arm/arm.c (arm_set_current_function):
6710         Refactor to better support #pragma target and attribute mix.
6711         Call save_restore_target_globals.
6712         * config/arm/arm-protos.h (save_restore_target_globals): New function.
6714 2016-01-27  Martin Liska  <mliska@suse.cz>
6716         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6717         reference for an HSA kernel and its host function.
6719 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
6721         PR tree-optimization/69399
6722         * wide-int.h (wi::lrshift): For larger precisions, only
6723         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6725 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
6727         * config/arc/predicates.md (proper_comparison_operator): Reject
6728         constant-constant comparison.
6730 2016-01-26  Tom de Vries  <tom@codesourcery.com>
6732         PR tree-optimization/69110
6733         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6734         DR_NUM_DIMENSIONS == 0.
6736 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6737             Sebastian Pop  <s.pop@samsung.com>
6739         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6740         isl_ast_op_cond and isl_ast_op_select.
6741         (gcc_expression_from_isl_expr_op): Same.
6743 2016-01-26  Jason Merrill  <jason@redhat.com>
6745         PR c++/68782
6746         * tree.c (recompute_constructor_flags): Split out from
6747         build_constructor.
6748         (verify_constructor_flags): New.
6749         * tree.h: Declare them.
6751 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
6753         PR rtl-optimization/69217
6754         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6755         are no TYPE_FIELDS set for the record type.
6757 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6759         PR target/68662
6760         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6761         toc_label_name unconditionally.
6762         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6763         SYMBOL_REF string.  Use toc_label_name instead of constructing
6764         LCTOC1.
6765         (rs6000_elf_declare_function_name): Use toc_label_name instead of
6766         constructing LCTOC1.
6768 2016-01-26  Martin Sebor  <msebor@redhat.com>
6770         PR other/69477
6771         * doc/extend.texi (Common Type Attributes): Move text that talks about
6772         attribute packed from attribute aligned to the section discussing
6773         the former attribute for clarity.
6775 2016-01-26  Richard Henderson  <rth@redhat.com>
6777         PR middle-end/60908
6778         * trans-mem.c (tm_region_init): Mark entry block as visited.
6780 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
6782         PR other/69006
6783         * diagnostic-show-locus.c (layout::print_source_line): Replace
6784         call to pp_newline with call to layout::print_newline.
6785         (layout::print_annotation_line): Likewise.
6786         (layout::move_to_column): Likewise.
6787         (layout::print_any_fixits): After printing any fixits, print a
6788         trailing newline, if necessary.
6789         (layout::print_newline): New method, resetting any colorization
6790         before a newline.
6791         (diagnostic_show_locus): Move the pp_newline to before the
6792         early bailout.  Remove dummy block enclosing the layout instance.
6793         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6794         of pp_newline_and_flush with pp_flush.
6795         (diagnostic_append_note): Delete use of pp_newline.
6796         (diagnostic_append_note_at_rich_loc): Delete.
6797         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6798         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6799         when newline characters are added to the buffer.
6801 2016-01-26  Michael Matz  <matz@suse.de>
6803         * configure.ac (ac_cv_std_swap_in_utility): New test.
6804         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6805         * configure: Regenerate.
6806         * config.in: Regenerate.
6808 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
6810         * config/arc/arc.md (cstoresi4): Force operand into register.
6811         (arcset<code>): Fix predicate.
6812         (arcsetltu): Likewise.
6813         (arcsetgeu): Likewise.
6814         (arcsethi): Likewise.
6815         (arcsetls): Likewise.
6817 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6819         PR tree-optimization/69483
6820         * gimple-fold.c (canonicalize_constructor_val): Return NULL
6821         if base has error_mark_node type.
6823 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
6825         PR target/68620
6826         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6827         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6828         New helper macros.
6829         (vget_lane_f16): Handle big-endian.
6830         (vgetq_lane_f16): Likewise.
6831         (vset_lane_f16): Likewise.
6832         (vsetq_lane_f16): Likewise.
6833         * config/arm/iterators.md (VQXMOV): Add V8HF.
6834         (VDQ): Add V4HF and V8HF.
6835         (V_reg): Handle V4HF and V8HF.
6836         (Is_float_mode): Likewise.
6837         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6838         neon_vdup_nv8hf): New patterns.
6839         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6840         Use VD_LANE iterator.
6841         (neon_vld1_dup<mode>): Use VQ2 iterator.
6843 2016-01-26  Nathan Sidwell  <nathan@acm.org>
6845         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6846         (set_oacc_fn_attrib): Add IS_KERNEL arg.
6847         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6848         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6849         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6850         (oacc_validate_dims): Add LEVEL arg, don't return level.
6851         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6852         oacc_validate_dims.
6853         (execute_oacc_device_lower): Adjust, add more dump output.
6854         * tree-ssa-loop.c (gate_oacc_kernels): Use
6855         oacc_fn_attrib_kernels_p.
6856         * tree-parloops.c (create_parallel_loop): Adjust
6857         set_oacc_fn_attrib call.
6859 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6861         PR lto/69254
6862         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6863         (append_compiler_options): Handle -fcilkplus.
6864         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6866 2016-01-26  Nick Clifton  <nickc@redhat.com>
6868         PR target/66655
6869         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6870         been marked as DECL_ONE_ONLY but we do not the means to make it
6871         so, then do not allow it to bind locally.
6873 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6875         PR lto/69254
6876         * opts.h (parse_sanitizer_options): New prototype.
6877         * opts.c (sanitizer_opts): New array.
6878         (parse_sanitizer_options): New function.
6879         (common_handle_option): Use parse_sanitizer_options.
6881 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
6883         PR target/68986
6884         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6885         alignment adjustment to ...
6886         (ix86_update_stack_boundary): Here.  Don't over-align stack for
6887         __tls_get_addr.
6888         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6889         if __tls_get_addr is called.
6891 2016-01-26  Christian Bruel  <christian.bruel@st.com>
6893         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6895 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
6897         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6899 2016-01-26  Richard Biener  <rguenther@suse.de>
6901         PR middle-end/69467
6902         * match.pd: Guard X * CST CMP 0 pattern with single_use.
6904 2016-01-26  Richard Biener  <rguenther@suse.de>
6906         PR tree-optimization/69452
6907         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6908         (move_computations_dom_walker::before_dom_children): Rename
6909         to ...
6910         (move_computations_worker): This.
6911         (move_computations): Perform an RPO rather than a DOM walk.
6913 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6915         PR target/69442
6916         * combine.c (combine_instructions): For REG_EQUAL note with
6917         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6918         to the underlying register.
6919         * doc/rtl.texi (REG_EQUAL): Document the behavior of
6920         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6922 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
6924         PR target/67896
6925         * config/aarch64/aarch64-builtins.c
6926         (aarch64_init_simd_builtin_types): Do not set structural
6927         equality to __Poly{8,16,64,128}_t types.
6929 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
6931         PR tree-optimization/69400
6932         * wide-int.cc (wi_pack): Take the precision as argument and
6933         perform canonicalization here rather than in the callers.
6934         Use the main loop to handle all full-width HWIs.  Add a
6935         zero HWI if in_len isn't a full result.
6936         (wi::divmod_internal): Update accordingly.
6937         (wi::mul_internal): Likewise.  Simplify.
6939 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
6940             Sebastian Pop  <s.pop@samsung.com>
6942         * graphite-poly.c (apply_poly_transforms): Simplify.
6943         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6944         (print_isl_map): Same.
6945         (print_isl_union_map): Same.
6946         (print_isl_schedule): New.
6947         (debug_isl_schedule): New.
6948         * graphite-dependences.c (scop_get_reads): Do not call
6949         isl_union_map_add_map that is undocumented isl functionality.
6950         (scop_get_must_writes): Same.
6951         (scop_get_may_writes): Same.
6952         (scop_get_original_schedule): Remove.
6953         (scop_get_dependences): Do not call isl_union_map_compute_flow that
6954         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
6955         (compute_deps): Remove.
6956         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6957         (debug_schedule_ast): New.
6958         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6959         set_separate_option.
6960         (graphite_regenerate_ast_isl): Add dump.
6961         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6962         from scop->transformed_schedule.
6963         (graphite_regenerate_ast_isl): Add more dump.
6964         * graphite-optimize-isl.c (optimize_isl): Set
6965         scop->transformed_schedule.  Check whether schedules are equal.
6966         (apply_poly_transforms): Move here.
6967         * graphite-poly.c (apply_poly_transforms): ... from here.
6968         (free_poly_bb): Static.
6969         (free_scop): Static.
6970         (pbb_number_of_iterations_at_time): Remove.
6971         (print_isl_ast): New.
6972         (debug_isl_ast): New.
6973         (debug_scop_pbb): New.
6974         * graphite-scop-detection.c (print_edge): Move.
6975         (print_sese): Move.
6976         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6977         (build_scop_scattering): Remove.
6978         (create_pw_aff_from_tree): Assert instead of bailing out.
6979         (add_condition_to_pbb): Remove unused code, do not fail.
6980         (add_conditions_to_domain): Same.
6981         (add_conditions_to_constraints): Remove.
6982         (build_scop_context): New.
6983         (add_iter_domain_dimension): New.
6984         (build_iteration_domains): Initialize pbb->iterators.
6985         Call add_conditions_to_domain.
6986         (nested_in): New.
6987         (loop_at): New.
6988         (index_outermost_in_loop): New.
6989         (index_pbb_in_loop): New.
6990         (outermost_pbb_in): New.
6991         (add_in_sequence): New.
6992         (add_outer_projection): New.
6993         (outer_projection_mupa): New.
6994         (add_loop_schedule): New.
6995         (build_schedule_pbb): New.
6996         (build_schedule_loop): New.
6997         (embed_in_surrounding_loops): New.
6998         (build_schedule_loop_nest): New.
6999         (build_original_schedule): New.
7000         (build_poly_scop): Call build_original_schedule.
7001         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7002         (free_poly_dr): Remove.
7003         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
7004         (free_poly_bb): Remove.
7005         (debug_loop_vec): Remove.
7006         (print_isl_ast): Declare.
7007         (debug_isl_ast): Declare.
7008         (scop_do_interchange): Remove.
7009         (scop_do_strip_mine): Remove.
7010         (scop_do_block): Remove.
7011         (flatten_all_loops): Remove.
7012         (optimize_isl): Remove.
7013         (pbb_number_of_iterations_at_time): Remove.
7014         (debug_scop_pbb): Declare.
7015         (print_schedule_ast): Declare.
7016         (debug_schedule_ast): Declare.
7017         (struct scop): Remove schedule.  Add original_schedule,
7018         transformed_schedule.
7019         (free_gimple_poly_bb): Remove.
7020         (print_generated_program): Remove.
7021         (debug_generated_program): Remove.
7022         (unify_scattering_dimensions): Remove.
7023         * sese.c (print_edge): ... here.
7024         (print_sese): ... here.
7025         (debug_edge): ... here.
7026         (debug_sese): ... here.
7027         * sese.h (print_edge): Declare.
7028         (print_sese): Declare.
7029         (dump_edge): Declare.
7030         (dump_sese): Declare.
7032 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
7033             Sebastian Pop  <s.pop@samsung.com>
7035         * Makefile.in: Set ISLVER in site.exp.
7037 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
7039         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7040         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
7041         through DECL_VALUE_EXPR for expansion.
7043 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7045         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7046         the frame info after reload completed.
7048 2016-01-25  Jeff Law  <law@redhat.com>
7050         PR tree-optimization/69196
7051         PR tree-optimization/68398
7052         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7053         tree-ssa-threadupdate.c.
7054         (determine_bb_domination_status): Prototype
7055         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7056         (determine_bb_domination_status): No longer static.
7057         (valid_jump_thread_path): Remove code to detect characteristics
7058         of the jump thread path not associated with correctness.
7059         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7060         Correct test for thread path length.  Count PHIs for real operands as
7061         statements that need to be copied.  Do not count ASSERT_EXPRs.
7062         Look at all the blocks in the thread path.  Compute and selectively
7063         filter thread paths based on threading through the latch, threading
7064         a multiway branch or crossing a multiway branch.
7066 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7068         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
7069         decl with __attribute__ ((unused)) annotation.
7071 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
7073         PR target/69421
7074         * tree-vect-stmts.c (vectorizable_condition): Check vectype
7075         of operands is compatible with a statement vectype.
7077 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
7079         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7080         improve wording for mixed storage order support.
7082 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
7084         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7085         (vcvt_u64_f64): Likewise.
7086         (vcvta_s64_f64): Likewise.
7087         (vcvta_u64_f64): Likewise.
7088         (vcvtm_s64_f64): Likewise.
7089         (vcvtm_u64_f64): Likewise.
7090         (vcvtn_s64_f64): Likewise.
7091         (vcvtn_u64_f64): Likewise.
7092         (vcvtp_s64_f64): Likewise.
7093         (vcvtp_u64_f64): Likewise.
7095 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
7097         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7098         (arc_init): Check validity mll64 option.
7099         (arc_save_restore): Use double load/store instruction.
7100         (arc_expand_movmem): Likewise.
7101         (arc_split_move): Don't split if we have double load/store
7102         instructions. Returns a boolean.
7103         (arc_process_double_reg_moves): Change function to return boolean
7104         instead of a sequence of instructions.
7105         (arc_dwarf_register_span): New function.
7106         * config/arc/arc-protos.h (arc_split_move): Change prototype.
7107         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7108         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7109         (*movdf_insn): Likewise.
7110         * config/arc/arc.opt (mll64): New option.
7111         * config/arc/predicates.md (even_register_operand): New predicate.
7112         * doc/invoke.texi (ARC Options): Add mll64 documentation.
7114 2016-01-25  Richard Biener  <rguenther@suse.de>
7116         PR lto/69393
7117         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7118         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7119         DECL_NAMELESS.
7120         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7122 2016-01-25  Richard Biener  <rguenther@suse.de>
7124         PR tree-optimization/69376
7125         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7126         flag.
7127         (VN_INFO_ANTI_RANGE_P): New inline.
7128         (VN_INFO_RANGE_TYPE): Likewise.
7129         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7130         SSA_NAME_ANTI_RANGE_P.
7131         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7132         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7133         Properly query VN_INFO_RANGE_TYPE.
7135 2016-01-25  Nick Clifton  <nickc@redhat.com>
7137         PR target/66655
7138         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7140 2016-01-23  Tom de Vries  <tom@codesourcery.com>
7142         PR tree-optimization/69426
7143         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7144         removed clobber.
7146 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
7148         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7149         "the the" with "the" in the comments.
7150         * ipa-devirt.c (build_type_inheritance_graph,
7151         update_type_inheritance_graph): Likewise.
7152         * tree.c (build_function_type_list_1): Likewise.
7153         * cfgloopmanip.c (scale_loop_profile): Likewise.
7154         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7155         * gimple-ssa-split-paths.c
7156         (find_block_to_duplicate_for_splitting_paths): Likewise.
7157         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7158         * expr.c (convert_move): Likewise.
7159         * var-tracking.c (vt_stack_adjustments): Likewise.
7160         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7161         * tree-vrp.c (test_for_singularity): Likewise.
7163         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7164         directly instead of building a temporary tree.
7166         PR bootstrap/69434
7167         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7168         remove <algorithm> include.
7170 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7172         PR target/69432
7173         * config/i386/i386.c: Include dojump.h.
7174         (expand_small_movmem_or_setmem,
7175         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7176         fixes.
7177         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7178         if dynamic_check != -1.
7180 2016-01-21  Jeff Law  <law@redhat.com>
7182         PR middle-end/69347
7183         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7184         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
7185         into dominated_by_p.
7186         (cprop_into_successor_phis): Avoid unnecessary tests.
7188 2016-01-22  Richard Henderson  <rth@redhat.com>
7190         PR target/69416
7191         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7192         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7194 2016-01-22  Michael Matz  <matz@suse.de>
7196         * system.h (string, algorithm): Include only conditionally.
7197         (new): Include always under C++.
7198         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7199         * final.c (toplevel): Ditto.
7200         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7201         * genconditions.c (write_header): Make gencondmd.c define
7202         INCLUDE_STRING.
7203         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7205         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7206         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7208 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7210         PR target/68674
7211         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7213 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7215         PR target/69403
7216         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7217         define_insn_and_split.  Ensure operands[1] and operands[0] do not
7218         get assigned the same register.
7220 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7222         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7224 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7226         * config/arm/arm-c.c (arm_pragma_target_parse):
7227         Remove warn_builtin_macro_redefined overwrite.
7229 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7231         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7232         flag_non_call_exceptions compatibility.
7234 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7236         PR debug/66668
7237         * dwarf2out.c (add_child_die_after): New function.
7238         (dwarf_qual_info_t): New type.
7239         (dwarf_qual_info): New variable.
7240         (qualified_die_p): New function.
7241         (modified_type_die): For -fdebug-types-section, ensure
7242         canonical order of qualifiers.  Put qualified DIEs adjacent
7243         to the corresponding non-qualified type DIE and search there
7244         for existing qualified DIEs.
7246 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7248         * doc/extend.texi (scalar_storage_order type attribute): Document
7249         restriction on type punning and aliasing, and remove future tense.
7251 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
7253         PR target/69252
7254         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7255         first stage.
7257 2016-01-21  Jeff Law  <law@redhat.com>
7259         PR middle-end/69347
7260         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7261         useless call to record_temporary_equivalences.
7262         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7263         allocate 10 slots in the bb_path vector and let it grow as needed.
7264         (fsm_find_control_statement_thread_paths): Similarly for the next_path
7265         vector.
7267 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7269         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7270         Detangle.
7271         * configure: Regenerate.
7273 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
7275         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7276         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7278 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
7280         PR middle-end/66178
7281         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7282         drop EXPAND_INITIALIZER.
7283         * rtl.h (contains_symbolic_reference_p): Declare.
7284         * rtlanal.c (contains_symbolic_reference_p): New function.
7285         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7286         a subtraction into a NOT if symbolic constants are involved.
7288 2016-01-21  Anton Blanchard  <anton@samba.org>
7289             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7291         PR target/63354
7292         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7293         #define.
7294         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7295         function.
7297 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7299         * config/microblaze/microblaze.c
7300         (get_branch_target): New.
7301         (insert_wic_for_ilb_runout): New.
7302         (insert_wic): New.
7303         (microblaze_machine_dependent_reorg): New.
7304         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7305         * config/microblaze/microblaze.md
7306         (UNSPEC_IPREFETCH): Define.
7307         (iprefetch): New pattern
7308         * config/microblaze/microblaze.opt
7309         (mxl-prefetch): New flag.
7311 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7313         * config/microblaze/microblaze.h
7314         (FIXED_REGISTERS): Update in macro.
7315         (CALL_USED_REGISTERS): Update in macro.
7317 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
7319         PR rtl-optimization/68920
7320         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7321         moves.
7323 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
7325         PR rtl-optimization/68990
7326         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7327         pseudo instead of inheritance ones.
7329 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7330             Nick Clifton  <nickc@redhat.com>
7332         PR target/69129
7333         PR target/69012
7334         * config/mips/mips.c (mips_compute_frame_info): Initialise
7335         args_size and hard_frame_pointer_offset fields of the frame
7336         structure before calling mips_global_pointer.
7338 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7340         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7341         label reference.
7342         * configure: Regenerate.
7344 2016-01-21  Richard Biener  <rguenther@suse.de>
7346         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7348 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
7350         * config/s390/s390.c (s390_asm_declare_function_size): Add code
7351         to actually emit the .size directive.
7353 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
7354              Jakub Jelinek  <jakub@redhat.com>
7356         PR target/69187
7357         PR target/65624
7358         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7359         args array size by one to avoid buffer overflow.
7361 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
7363         * config/s390/s390.md (pool_section_start): Use switch_to_section
7364         to select proper read-only data section instead of hardcoding
7365         .rodata.
7366         (pool_section_end): Use switch_to_section to match the above.
7368 2016-01-21  Richard Biener  <rguenther@suse.de>
7370         PR tree-optimization/69378
7371         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7372         (set_ssa_val_to): Use it for dominance checks taking into
7373         account not executable edges.
7375 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
7377         PR c++/69355
7378         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7379         for bitsize instead of GET_MODE_PRECISION (mode).
7381 2016-01-20  Martin Sebor  <msebor@redhat.com>
7383         PR c/52291
7384         * extend.texi (__sync Builtins): Clarify the semantics of
7385         __sync_fetch_and_OP built-ins on pointers.
7386         (__atomic Builtins): Same.
7388 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7389             Sebastian Pop  <s.pop@samsung.com>
7391         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7392         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7393         (is_valid_rename): Same.
7394         (translate_isl_ast_to_gimple::get_rename): Same.
7395         (translate_isl_ast_to_gimple::rename_all_uses): Same.
7396         (translate_isl_ast_to_gimple::rename_uses): Same.
7397         (get_new_name): Check for close_phi nodes.
7398         (copy_loop_phi_args): Use phi_node_kind.
7399         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7400         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7402 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7403             Sebastian Pop  <s.pop@samsung.com>
7405         Revert commit r229783.
7406         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7407         Remove use of parameter_rename_map.
7408         (copy_def): Remove.
7409         (copy_internal_parameters): Remove.
7410         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7411         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7412         (free_sese_info): Do not free parameter_rename_map.
7413         (set_rename): Do not use parameter_rename_map.
7414         (rename_uses): Update call to set_rename.
7415         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7416         * sese.h (parameter_rename_map_t): Remove.
7417         (struct sese_info_t): Remove field parameter_rename_map.
7419 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7420             Sebastian Pop  <s.pop@samsung.com>
7422         * graphite-isl-ast-to-gimple.c: Fix comment.
7423         * graphite-scop-detection.c (defined_in_loop_p): New.
7424         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7425         names defined in loop.
7427 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7428             Sebastian Pop  <s.pop@samsung.com>
7430         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7431         Discard unstructured if-then-else regions.
7433 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7434             Sebastian Pop  <s.pop@samsung.com>
7436         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7437         (cleanup_loop_iter_dom): Remove.
7438         (build_loop_iteration_domains): Remove.
7439         (build_scop_context): Remove.
7440         (build_scop_iteration_domain): Remove.
7441         (add_loop_constraints): New.
7442         (build_iteration_domains): New.
7443         (build_poly_scop): Call build_iteration_domains.
7445 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7446             Sebastian Pop  <s.pop@samsung.com>
7448         * graphite-scop-detection.c
7449         (scop_detection::harmful_loop_in_region): Free dom and loops.
7450         (scop_detection::loop_body_is_valid_scop): Free bbs.
7452 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7453             Sebastian Pop  <s.pop@samsung.com>
7455         * graphite-scop-detection.c (record_loop_in_sese): New.
7456         (gather_bbs::before_dom_children): Call record_loop_in_sese.
7457         (build_scops): Remove call to build_sese_loop_nests.
7458         * sese.c (sese_record_loop): Remove.
7459         (build_sese_loop_nests): Remove.
7460         (new_sese_info): Remove region->loops.
7461         (free_sese_info): Same.
7462         * sese.h (sese_contains_loop): Same.
7463         (build_sese_loop_nests): Remove.
7464         (sese_contains_loop): Remove.
7466 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7467             Sebastian Pop  <s.pop@samsung.com>
7469         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7470         loop_is_valid_in_scop.
7471         (scop_detection::harmful_stmt_in_region): Renamed
7472         harmful_loop_in_region.
7473         Call loop_is_valid_in_scop.
7475 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7476             Sebastian Pop  <s.pop@samsung.com>
7478         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7479         isl_ast_node_mark.
7481 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7482             Sebastian Pop  <s.pop@samsung.com>
7484         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7485         * graphite.h (struct poly_bb): Remove field is_reduction.
7486         (PBB_IS_REDUCTION): Remove.
7488 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7489             Sebastian Pop  <s.pop@samsung.com>
7491         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7492         (add_pdr_constraints): Same.
7493         (scop_get_reads): Same.
7494         (scop_get_must_writes): Same.
7495         (scop_get_may_writes): Same.
7496         (scop_get_original_schedule): Same.
7497         (extend_schedule): Same.
7498         (apply_schedule_on_deps): Same.
7499         (carries_deps): Same.
7500         (compute_deps): Same.
7501         (scop_get_dependences): Same.
7502         * graphite-isl-ast-to-gimple.c
7503         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7504         * graphite-optimize-isl.c (get_schedule_for_band): Same.
7505         (get_schedule_for_band_list): Same.
7506         (get_schedule_map): Same.
7507         (apply_schedule_map_to_scop): Same.
7508         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7509         (build_loop_iteration_domains): Same.
7510         (add_condition_to_pbb): Same.
7511         (add_param_constraints): Same.
7512         (pdr_add_memory_accesses): Same.
7513         (pdr_add_data_dimensions): Same.
7515 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
7517         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7518         requirements.
7520 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
7522         * common.opt (feliminate-dwarf2-dups): Replace references to
7523         "DWARF 2" with just "DWARF".
7524         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7525         * doc/extend.texi: Likewise.
7526         * doc/cpp.texi: Likewise.
7527         * doc/invoke.texi: Likewise.
7528         (Option Summary): Add -gdwarf to list of Debugging Options.
7529         (Debugging Options): Document -gdwarf.
7530         * doc/contrib.texi: Spell "DWARF" like that.
7532 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
7534         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7535         warning.  Fix up formatting.
7537         PR middle-end/67653
7538         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7539         attempt to mark memory input operand addressable and
7540         call prepare_gimple_addressable in that case.  Don't adjust
7541         input_location for diagnostics, use error_at instead.
7543 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
7545         * config/rs6000/ppc-auxv.h: New file.
7546         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7547         (cpu_is): Likewise.
7548         (cpu_supports): Likewise.
7549         * config/rs6000/rs6000.c: include "ppc-auxv.h".
7550         (cpu_is_info): New variable.
7551         (cpu_supports_info): Likewise.
7552         (tcb_verification_symbol): Likewise.
7553         (cpu_builtin_p): Likewise.
7554         (cpu_expand_builtin): New function.
7555         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7556         (rs6000_init_builtins): Likewise.
7557         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7558         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7559         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7560         * configure: Regenerate.
7561         * config.in: Likewise.
7562         * doc/extend.texi (PowerPC Built-in Functions): Document
7563         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7565 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
7567         PR target/68609
7568         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7569         domain check.
7570         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7571         for V4SFmode.
7573 2016-01-20  Richard Henderson  <rth@redhat.com>
7575         PR bootstrap/69343
7576         PR bootstrap/69339
7577         PR tree-opt/68964
7578         Revert:
7579         * tree.c (tm_define_builtin): New.
7580         (find_tm_vector_type): New.
7581         (build_tm_vector_builtins): New.
7582         (build_common_builtin_nodes): Call it.
7584 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
7586         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7587         (arm_fp_ok): Likewise.
7588         (arm_fp): Likewise.
7589         (arm_crypto): Likewise.
7591 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
7592             Richard Biener  <rguenther@suse.de>
7594         PR tree-optimization/69328
7595         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7596         vectors have same number of elements.
7597         (vectorizable_condition): Fix masked version recognition.
7599 2016-01-20  Richard Biener  <rguenther@suse.de>
7601         PR tree-optimization/69345
7602         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7603         (VN_INFO_PTR_INFO): Likewise.
7604         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7605         info when it is equal between non-dominating SSA names.
7606         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7607         Make sure to look at original SSA infos.
7609 2016-01-20  Jeff Law  <law@redhat.com>
7611         PR target/25114
7612         * config/m68k/predicates.md (pow2_m1_operand): New predicate
7613         extracted from ...
7614         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7615         (pc_or_label_operand): New predicate.
7616         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7617         tests for small integers that are 2^n - 1.
7619 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
7621         * doc/invoke.texi (Options Summary): Add '.' after @xref.
7623 2016-01-19  Jeff Law  <law@redhat.com>
7625         PR middle-end/69347
7626         * tree-ssa-threadbackwards.c
7627         (fsm_find_control_statement_thread_paths): Do not try to lookup
7628         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7630 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7632         * doc/lto.texi: Remove text that says only Gold has linker plugin
7633         support.
7635 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
7637         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7638         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7639         the DIE accordingly.
7640         (modified_type_die): Add REVERSE parameter and pass it recursively,
7641         as well as to base_type_die.  Adjust presence check accordingly.
7642         (base_type_for_mode): Adjust call to modified_type_die.
7643         (add_type_attribute): Add REVERSE parameter and pass it to
7644         modified_type_die.
7645         (generic_parameter_die): Adjust call to add_type_attribute.
7646         (add_scalar_info): Likewise.
7647         (add_subscript_info): Likewise.
7648         (gen_array_type_die): Likewise.
7649         (gen_descr_array_type_die): Likewise.
7650         (gen_entry_point_die): Likewise.
7651         (gen_enumeration_type_die): Likewise.
7652         (gen_formal_parameter_die): Likewise.
7653         (gen_subprogram_die): Likewise.
7654         (gen_variable_die ): Likewise.
7655         (gen_const_die): Likewise.
7656         (gen_field_die): Likewise.
7657         (gen_pointer_type_die): Likewise.
7658         (gen_reference_type_die): Likewise.
7659         (gen_ptr_to_mbr_type_die): Likewise.
7660         (gen_inheritance_die): Likewise.
7661         (gen_subroutine_type_die): Likewise.
7662         (gen_typedef_die): Likewise.
7663         (force_type_die): Adjust call to modified_type_die.
7665 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
7667         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7668         flow throughout the file.  Fix broken link to Objective-C 2.0
7669         documentation.
7670         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7671         errors.
7673 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7675         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7677 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7679         PR ipa/66223
7680         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7681         (maybe_record_node): Record cxa_pure_virtual as the only possible
7682         target if there are not ohter candidates.
7683         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7685 2016-01-19  Richard Biener  <rguenther@suse.de>
7687         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7688         (get_memory_order): Likewise.
7690 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
7692         * tree-vect-stmts.c (vectorizable_store): Check
7693         rhs vectype.
7695 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
7697         PR jit/68446
7698         * gcc.c (driver::decode_argv): Add call to
7699         init_opts_obstack before init_options_struct.
7700         * opts.c (init_opts_obstack): Remove idempotency.
7701         (init_options_struct): Replace call to init_opts_obstack
7702         with a gcc_assert to verify that it has already been called.
7703         * toplev.c (toplev::main): Add call to init_opts_obstack before
7704         calls to init_options_struct.
7705         (toplev::finalize): Move cleanup of opts_obstack next to
7706         cleanup of save_decoded_options, clearing the latter, and
7707         save_decoded_options_count.
7709 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7711         PR target/69135
7712         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7713         attribute to unconditional.  Remove %? from output template.
7715 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7716             Jiong Wang  <jiong.wang@arm.com>
7718         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7719         generated from different expand order.
7721 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7723         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7724         Add support for CCMP costing.
7726 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7728         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7729         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7730         (fccmpe<mode>): Likewise.
7731         (fcmp): Rename to fcmp and globalize pattern.
7732         (fcmpe): Likewise.
7733         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7734         (aarch64_gen_ccmp_next): Add FP support.
7736 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7738         * target.def (gen_ccmp_first): Update documentation.
7739         (gen_ccmp_next): Likewise.
7740         * doc/tm.texi (gen_ccmp_first): Update documentation.
7741         (gen_ccmp_next): Likewise.
7742         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7743         expand_ccmp_expr_1.  Improve comments.
7744         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7745         (ccmp_ior<mode>): Remove pattern.
7746         (cmp<mode>): Remove expand.
7747         (cmp): Globalize pattern.
7748         (cstorecc4): Use cc_register.
7749         (mov<mode>cc): Remove ccmp_cc_register check.
7750         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7751         Simplify after removal of CC_DNE/* modes.
7752         (aarch64_ccmp_mode_to_code): Remove.
7753         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
7754         In 'k' case use integer as condition.
7755         (aarch64_nzcv_codes): Remove inverted cases.
7756         (aarch64_code_to_ccmode): Remove.
7757         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
7758         comparison with CC register to be used in folowing CCMP/branch/CSEL.
7759         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7760         pattern.  Return the comparison with CC register.  Invert conditions
7761         when bitcode is OR.
7762         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7763         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7765 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7767         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7768         instrumented_version.
7770 2016-01-19  Richard Biener  <rguenther@suse.de>
7772         PR tree-optimization/69336
7773         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7774         handled components with get_ref_base_and_extent.
7775         (equal_mem_array_ref_p): Adjust.
7777 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
7779         PR debug/65779
7780         * shrink-wrap.c: Include valtrack.h.
7781         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
7782         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7783         in between insn and where it will be moved to.  Call
7784         dead_debug_insert_temp.
7785         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
7786         first and dead_debug_local_finish at the end.
7787         For uses and defs bitmap, handle all regs in between REGNO and
7788         END_REGNO, not just the first one.
7790 2016-01-19  Richard Biener  <rguenther@suse.de>
7792         PR tree-optimization/69352
7793         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7794         (equal_mem_array_ref_p): Constrain size and max size properly.
7795         Compare the reverse flag.
7797 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
7799         * ira.c (ira): Update regstat data if we deleted insns.
7801 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
7803         PR rtl-optimization/68955
7804         PR rtl-optimization/64557
7805         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7806         here.  Fix up formatting.
7807         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7809 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7811         PR lto/69133
7812         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7813         assume that the node has body.
7814         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7815         check.
7817 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7819         * lto-streamer-out.c (lto_output): Do not stream instrumentation
7820         thunks.
7822 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7824         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7825         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7827 2016-01-19  Martin Jambor  <mjambor@suse.cz>
7828             Martin Liska  <mliska@suse.cz>
7829             Michael Matz  <matz@suse.de>
7831         * Makefile.in (OBJS): Add new source files.
7832         (GTFILES): Add hsa.c.
7833         * common.opt (disable_hsa): New variable.
7834         (-Whsa): New warning.
7835         * config.in (ENABLE_HSA): New.
7836         * configure.ac: Treat hsa differently from other accelerators.
7837         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7838         $enable_offloading.
7839         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7840         * doc/install.texi (Configuration): Document --with-hsa-runtime,
7841         --with-hsa-runtime-include, --with-hsa-runtime-lib and
7842         --with-hsa-kmt-lib.
7843         * doc/invoke.texi (-Whsa): Document.
7844         (hsa-gen-debug-stores): Likewise.
7845         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7846         to invoke offload compiler for hsa acclerator.
7847         * opts.c (common_handle_option): Determine whether HSA offloading
7848         should be performed.
7849         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7850         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7851         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7852         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7853         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7854         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7855         GF_OMP_FOR_KIND_GRID_LOOP.
7856         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7857         (pp_gimple_stmt_1): Likewise.
7858         * gimple-walk.c (walk_gimple_stmt): Likewise.
7859         * gimple.c (gimple_build_omp_grid_body): New function.
7860         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7861         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7862         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7863         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7864         GF_OMP_TEAMS_GRID_PHONY.
7865         (gimple_statement_omp_single_layout): Updated comments.
7866         (gimple_build_omp_grid_body): New function.
7867         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7868         (gimple_omp_for_grid_phony): New function.
7869         (gimple_omp_for_set_grid_phony): Likewise.
7870         (gimple_omp_parallel_grid_phony): Likewise.
7871         (gimple_omp_parallel_set_grid_phony): Likewise.
7872         (gimple_omp_teams_grid_phony): Likewise.
7873         (gimple_omp_teams_set_grid_phony): Likewise.
7874         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7875         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7876         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7877         (BUILT_IN_GOMP_TARGET): Updated type.
7878         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7879         (adjust_for_condition): New function.
7880         (get_omp_for_step_from_incr): Likewise.
7881         (extract_omp_for_data): Moved parts to adjust_for_condition and
7882         get_omp_for_step_from_incr.
7883         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7884         (fixup_child_record_type): Bail out if receiver_decl is NULL.
7885         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7886         (scan_omp_parallel): Do not create child functions for phony
7887         constructs.
7888         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7889         (scan_omp_1_op): Checking assert we are not remapping to
7890         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
7891         (parallel_needs_hsa_kernel_p): New function.
7892         (expand_parallel_call): Register apprpriate parallel child
7893         functions as HSA kernels.
7894         (grid_launch_attributes_trees): New type.
7895         (grid_attr_trees): New variable.
7896         (grid_create_kernel_launch_attr_types): New function.
7897         (grid_insert_store_range_dim): Likewise.
7898         (grid_get_kernel_launch_attributes): Likewise.
7899         (get_target_argument_identifier_1): Likewise.
7900         (get_target_argument_identifier): Likewise.
7901         (get_target_argument_value): Likewise.
7902         (push_target_argument_according_to_value): Likewise.
7903         (get_target_arguments): Likewise.
7904         (expand_omp_target): Call get_target_arguments instead of looking
7905         up for teams and thread limit.
7906         (grid_expand_omp_for_loop): New function.
7907         (grid_arg_decl_map): New type.
7908         (grid_remap_kernel_arg_accesses): New function.
7909         (grid_expand_target_kernel_body): New function.
7910         (expand_omp): Call it.
7911         (lower_omp_for): Do not emit phony constructs.
7912         (lower_omp_taskreg): Do not emit phony constructs but create for them
7913         a temporary variable receiver_decl.
7914         (lower_omp_taskreg): Do not emit phony constructs.
7915         (lower_omp_teams): Likewise.
7916         (lower_omp_grid_body): New function.
7917         (lower_omp_1): Call it.
7918         (grid_reg_assignment_to_local_var_p): New function.
7919         (grid_seq_only_contains_local_assignments): Likewise.
7920         (grid_find_single_omp_among_assignments_1): Likewise.
7921         (grid_find_single_omp_among_assignments): Likewise.
7922         (grid_find_ungridifiable_statement): Likewise.
7923         (grid_target_follows_gridifiable_pattern): Likewise.
7924         (grid_remap_prebody_decls): Likewise.
7925         (grid_copy_leading_local_assignments): Likewise.
7926         (grid_process_kernel_body_copy): Likewise.
7927         (grid_attempt_target_gridification): Likewise.
7928         (grid_gridify_all_targets_stmt): Likewise.
7929         (grid_gridify_all_targets): Likewise.
7930         (execute_lower_omp): Call grid_gridify_all_targets.
7931         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7932         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7933         (tree_omp_clause): Added union field dimension.
7934         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7935         * tree.c (omp_clause_num_ops): Added number of arguments of
7936         OMP_CLAUSE__GRIDDIM_.
7937         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7938         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7939         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7940         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7941         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7942         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7943         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7944         * tree-pass.h (make_pass_gen_hsail): Declare.
7945         (make_pass_ipa_hsa): Likewise.
7946         * ipa-hsa.c: New file.
7947         * lto-section-in.c (lto_section_name): Add hsa section name.
7948         * lto-streamer.h (lto_section_type): Add hsa section.
7949         * timevar.def (TV_IPA_HSA): New.
7950         * hsa-brig-format.h: New file.
7951         * hsa-brig.c: New file.
7952         * hsa-dump.c: Likewise.
7953         * hsa-gen.c: Likewise.
7954         * hsa.c: Likewise.
7955         * hsa.h: Likewise.
7956         * toplev.c (compile_file): Call hsa_output_brig.
7957         * hsa-regalloc.c: New file.
7959 2016-01-18  Jeff Law  <law@redhat.com>
7961         PR tree-optimization/69320
7962         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7963         ranged object, do nothing if the RHS constant is not [0..1].
7964         (optimize_stmt): Comparing a boolean ranged object against a
7965         constant outside [0..1] results in a compile-time constant.
7967         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7968         test.
7970 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
7972         * doc/invoke.texi (Invoking GCC): Add new section to menu.
7973         (Option Summary): Update to reflect new section and moved options.
7974         (C++ Dialect Options): Move -fstats to new section.
7975         (Debugging Options): Move all dump, statistics, and other GCC
7976         developer options to new section.  Rewrite section introduction
7977         and re-order remaining options to put the more basic ones first.
7978         (Optimization Options): Move -fira-verbose and -flto-report* to
7979         new section.
7980         (Developer Options): New section incorporating moved options.
7981         * doc/cppopts.texi (-dM): Update cross-reference.
7983 2016-01-18  Richard Henderson  <rth@redhat.com>
7985         PR target/69176
7986         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7987         operands to pseudo only if CSE is expected.  Split long immediate
7988         operands only after reload, and for the stack pointer.
7989         (*add<GPI>3_pluslong): Remove.
7990         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7991         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
7992         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7993         (*add<GPI>3 peepholes): New.
7994         (*add<GPI>3 splitters): New.
7995         * config/aarch64/constraints.md (Upl): New.
7996         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7998 2016-01-18  Richard Biener  <rguenther@suse.de>
8000         PR tree-optimization/69297
8001         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8002         stmt at most once.
8003         (vect_bb_vectorization_profitable_p): Clear visited flag again.
8005 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
8007         PR middle-end/68542
8008         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8009         of mixind vector and scalar types.
8010         (fold_relational_const): Add handling of vector
8011         comparison with boolean result.
8012         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8013         comparison of vector operands with boolean result for EQ/NE only.
8014         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8015         (verify_gimple_cond): Likewise.
8016         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8017         valid type of VAL.
8019 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
8021         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8022         !TARGET_OCTEON.
8024 2016-01-18  Richard Biener  <rguenther@suse.de>
8026         PR middle-end/69308
8027         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8029 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8031         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8033 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8035         * omp-low.c (set_oacc_fn_attrib): Make extern.
8036         * omp-low.h (set_oacc_fn_attrib): Declare.
8037         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8038         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8039         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8040         Add and handle function parameter oacc_kernels_p.
8041         (find_reduc_addr, get_omp_data_i_param): New function.
8042         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8043         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8044         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8045         Calculate dominance info.  Skip loops that are not in a kernels region
8046         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
8047         (pass_parallelize_loops::execute): Call parallelize_loops with
8048         oacc_kernels_p argument.
8049         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8050         New member function.
8051         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8052         * passes.def: Add argument to pass_parallelize_loops instantation.
8054 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8056         * tree-parloops.c (pass_parallelize_loops::execute): Allow
8057         pass_parallelize_loops to be run outside the loop pipeline.
8059 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8061         * tree-scalar-evolution.c (follow_copies_to_constant): New.
8062         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8064 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8066         PR target/63679
8067         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8068         using get_ref_base_and_extent.
8069         (equal_mem_array_ref_p): New.
8070         (hashable_expr_equal_p): Add call to previous.
8072 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8074         PR target/63679
8075         * tree-sra.c (disqualified_constants, constant_decl_p): New.
8076         (sra_initialize): Allocate disqualified_constants.
8077         (sra_deinitialize): Free disqualified_constants.
8078         (disqualify_candidate): Update disqualified_constants when appropriate.
8079         (create_access): Scan for constant-pool entries as we go along.
8080         (scalarizable_type_p): Add check against type_contains_placeholder_p.
8081         (maybe_add_sra_candidate): Allow constant-pool entries.
8082         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8083         (initialize_constant_pool_replacements): New.
8084         (sra_modify_assign): Avoid mangling assignments created by previous,
8085         and don't generate writes into constant pool.
8086         (sra_modify_function_body): Call initialize_constant_pool_replacements.
8088 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8090         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8091         andnot instruction.
8092         (scalar_chain::convert_op): Likewise.
8093         * config/i386/i386.md (*andndi3_doubleword): New.
8095 2016-01-18  Richard Biener  <rguenther@suse.de>
8097         PR tree-optimization/69170
8098         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8099         building a vector from scalar results of a pattern stmt.
8101 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
8103         * haifa-sched.c (autopref_multipass_init): Work around
8104         -Wmaybe-uninitialized warning.
8106 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8108         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8109         against the constant 0.
8111 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8113         PR tree-optimization/68799
8114         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8115         look up phi candidates in the statement-candidate map.
8116         (phi_add_costs): Likewise.
8117         (record_phi_increments): Likewise.
8118         (phi_incr_cost): Likewise.
8119         (ncd_with_phi): Likewise.
8120         (all_phi_incrs_profitable): Likewise.
8122 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
8124         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8125         -Wmaybe-uninitialized warning.
8127 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
8129         * doc/invoke.texi (Invoking GCC): Add new section to menu.
8130         (Option Summary): Update to reflect new section and moved options.
8131         (C++ Dialect Options): Move -fvtable-verify and related options.
8132         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8133         and profiling-related options.
8134         (Optimization Options): Move profile generation options and
8135         -fstack-protector and related options.
8136         (Instrumentation Options): New section incorporating moved options.
8137         (Code Generation Options): Move -finstrument-functions and
8138         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8140 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8142         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8144 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8146         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
8148 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
8150         * hash-table.h (hash_table::empty): Turn into an inline wrapper
8151         that checks whether the table is already empty.  Rename the
8152         original implementation to...
8153         (hash_table::empty_slot): ...this new private function.
8155 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
8157         PR diagnostic/68899
8158         * diagnostic-show-locus.c (layout::print_source_line): Move x
8159         offset of line until after call to
8160         get_line_width_without_trailing_whitespace.
8162 2016-01-15  Jeff Law  <law@redhat.com>
8164         PR tree-optimization/69270
8165         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8166         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
8167         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8168         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8169         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8170         ssa_name_has_boolean_range and constant_boolean_node.
8172 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8174         PR rtl-optimization/69030
8175         * lra-spills.c (remove_pseudos): Check nrefs and make the function
8176         returning bool.
8177         (spill_pseudos): Delete debug insn for dead pseudo.
8178         (lra_spill): Initiate spill_hard_reg and slots memory separately.
8180 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
8182         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8183         New.
8184         (TYPES_UNOPUS): Likewise.
8185         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8186         builtin type, from UNOP to UNOPUS.
8187         (lbtruncuv4sf): Likewise.
8188         (lbtruncuv2df): Likewise.
8189         (lrounduv2sf): Likewise.
8190         (lrounduv4sf): Likewise.
8191         (lrounduv2df): Likewise.
8192         (lroundusf): Likewise.
8193         (lroundusf): Likewise.
8194         (lceiluv2sf): Likewise.
8195         (lceiluv4sf): Likewise.
8196         (lceiluv2df): Likewise.
8197         (lceilusf): Likewise.
8198         (lceiludf): Likewise.
8199         (lflooruv2sf): Likewise.
8200         (lflooruv4sf): Likewise.
8201         (lflooruv2df): Likewise.
8202         (lfloorusf): Likewise.
8203         (lfloorudf): Likewise.
8204         (lfrintnuv2sf): Likewise.
8205         (lfrintnuv4sf): Likewise.
8206         (lfrintnuv2df): Likewise.
8207         (lfrintnusf): Likewise.
8208         (lfrintnudf): Likewise.
8209         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8210         conversion.
8211         (vcvtq_u32_f32): Likewise.
8212         (vcvtq_u64_f64): Likewise.
8213         (vcvta_u32_f32): Likewise.
8214         (vcvtaq_u32_f32): Likewise.
8215         (vcvtaq_u64_f64): Likewise.
8216         (vcvtm_u32_f32): Likewise.
8217         (vcvtmq_u32_f32): Likewise.
8218         (vcvtmq_u64_f64): Likewise.
8219         (vcvtn_u32_f32): Likwise.
8220         (vcvtnq_u32_f32): Likewise.
8221         (vcvtnq_u64_f64): Likewise.
8222         (vcvtp_u32_f32): Likewise.
8223         (vcvtpq_u32_f32): Likewise.
8224         (vcvtpq_u64_f64): Likewise.
8225         (vcvtmd_u64_f64): Likewise.
8226         (vcvtms_u32_f32): Likewise.
8227         (vcvtad_u64_f64): Likewise.
8228         (vcvtas_u32_f32): Likewise.
8229         (vcvtnd_u64_f64): Likewise.
8230         (vcvtns_u32_f32): Likewise.
8231         (vcvtpd_u64_f64): Likewise.
8232         (vcvtps_u32_f32): Likewise.
8234 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8236         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8237         CSEL of zero_extended registers.
8239 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8241         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8242         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8244 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8246         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8247         false when argument string is not found in the attributes table
8248         at all.
8250 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
8252         PR target/68609
8253         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8254         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8255         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8256         precision estimate.
8258 2016-01-15  Richard Biener  <rguenther@suse.de>
8260         PR tree-optimization/66856
8261         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8262         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8263         (vect_create_new_slp_node): Increment stmt reference count.
8264         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8265         an SLP tree before swapping operands.
8266         (vect_build_slp_tree): Likewise.
8267         (destroy_bb_vec_info): Free stmt info after SLP instances.
8268         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8269         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8270         (STMT_VINFO_NUM_SLP_USES): New macro.
8272 2016-01-15  Richard Biener  <rguenther@suse.de>
8274         PR debug/69137
8275         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8276         (add_linkage_name): ... here.
8277         (gen_typedef_die): Use add_linkage_name_raw instead of
8278         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8279         if necessary.
8281 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
8283         * gimplify.c (oacc_default_clause): Decode reference and pointer
8284         types for both kernels and parallel regions.
8286 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
8288         PR middle-end/69246
8289         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8291 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8293         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8294         (convert_scalars_to_vector): Likewise.
8296 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
8298         * doc/extend.texi (Type Traits): Fix grammar.
8300 2016-01-15  Martin Jambor  <mjambor@suse.cz>
8302         * tree-inline.c (remap_decl): Use existing dclarations if
8303         remapping a type and prevent_decl_creation_for_types.
8304         (replace_locals_stmt): Do an initial remapping of non-VLA typed
8305         decls first.  Do real remapping with
8306         prevent_decl_creation_for_types set.
8307         * tree-inline.h (copy_body_data): New field
8308         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8309         padding.
8311 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8313         * config/s390/s390.opt (mmvcle): More verbose help text.
8315 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8317         * config/s390/s390.opt: Add period to -mzvector option text.
8319 2016-01-15  Richard Biener  <rguenther@suse.de>
8321         PR tree-optimization/68961
8322         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8323         of invariants in stores again.
8325 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8327         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8329 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8331         * config/i386/i386.c (ix86_expand_branch): Don't split
8332         DI mode xor instruction to SI mode.
8334 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
8336         PR ipa/68148
8337         * ipa-icf.c (sem_function::merge): Virtual functions may become
8338         reachable even if they address is not taken and there are no
8339         idrect calls.
8341 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
8343         * lto-streamer-out.c (subtract_estimated_size): New function.
8344         (get_symbol_initial_value): Use it.
8346 2016-01-15  Christian Bruel  <christian.bruel@st.com>
8348         PR target/65837
8349         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8350         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8351         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8352         use add_builtin_function_ext_scope instead of add_builtin_function.
8353         (neon_set_p, neon_crypto_set_p): Remove.
8354         (arm_init_builtins): Always call arm_init_neon_builtins and
8355         arm_init_crypto_builtins.
8356         (arm_expand_builtin): Check that builtins are allowed for the arch.
8357         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8358         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8359         arm_init_neon_builtins call.
8361 2016-01-15  Richard Biener  <rguenther@suse.de>
8363         PR tree-optimization/69117
8364         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8365         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8366         of the leader conservatively.
8367         (free_scc_vn): Restore original SSA name infos.
8369 2016-01-14  Jeff Law  <law@redhat.com>
8371         PR tree-optimization/69270
8372         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8373         single bit of precision, verify it's also unsigned.
8374         (record_edge_info): Use constant_boolean_node rather than fold_convert
8375         to convert boolean_true/boolean_false to the right type.
8377 2016-01-14  Richard Henderson  <rth@redhat.com>
8379         PR rtl-opt/69014
8380         * loop-doloop.c (record_reg_sets): New.
8381         (doloop_optimize): Reject the transform if the sequence
8382         clobbers registers live at the end of the loop block.
8383         (doloop_optimize_loops): Enable df_live if needed.
8385 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8387         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8388         * gcc/config/rs6000/rs6000.c: Likewise.
8389         * gcc/config/rs6000/rs6000.h: Likewise.
8390         * gcc/config/rs6000/rs6000.md: Likewise.
8391         * gcc/doc/extend.texi: Likewsie.
8393 2016-01-14  Jeff Law  <law@redhat.com>
8395         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8396         typo.
8398 2016-01-14  Richard Henderson  <rth@redhat.com>
8400         PR c/69272
8401         PR tree-opt/68964
8402         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8403         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8404         instead of builtin_decl_declared_p to test for declaration.
8406 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
8408         * doc/loop.texi (Loop Analysis and Representation): Document
8409         loop_depth function.
8411 2016-01-14  Tom de Vries  <tom@codesourcery.com>
8413         PR tree-optimization/68773
8414         * omp-low.c (expand_omp_target): Don't set force_output.
8415         * varpool.c (varpool_node::get_create): Same.
8416         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8417         offload_funcs with force_output.
8419 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8421         PR debug/69244
8422         * lra-eliminations.c (move_plus_up): Don't change anything if either
8423         the outer or inner subreg mode is not MODE_INT.
8424         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8425         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8427 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
8429         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8430         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8431         reduc_uplus_@var{m}): Remove.
8432         * expr.c (expand_expr_real_2): Remove expansion path for
8433         reduc_[us](min|max|plus) optabs.
8434         * optabs-tree.c (scalar_reduc_to_vector): Remove.
8435         * optabs-tree.h (scalar_reduc_to_vector): Remove.
8436         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8437         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8438         * tree-vect-loop.c (vectorizable_reduction): Remove test for
8439         reduc_[us](min|max|plus) optabs.
8441 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
8443         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8444         (reduc_plus_scal_v2sf): New.
8445         (reduc_smax_v2sf): Rename to...
8446         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8447         (reduc_smin_v2sf): Rename to...
8448         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8450 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
8452         * alias.c (compare_base_symbol_refs): New function.
8453         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8454         it.
8456 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8458         PR middle-end/68146
8459         PR tree-optimization/69155
8460         * tree-complex.c: Include cfganal.h.
8461         (phis_to_revisit): New variable.
8462         (extract_component): Add phiarg_p argument.  Assert that returned
8463         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8464         (update_phi_components): Partly rewrite to use loop over real/imag
8465         components instead of code duplication.  If extract_component returns
8466         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8467         create_tmp_reg into the PHI node instead, and mention the phi triplet
8468         in phis_to_revisit.
8469         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
8470         in phis_to_revisit at the end.
8472 2016-01-14  Richard Biener  <rguenther@suse.de>
8474         PR tree-optimization/68060
8475         * tree-vect-loop.c (vect_is_simple_reduction): Check the
8476         outer loop reduction is only used in the inner loop before
8477         detecting a double reduction.
8479 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8481         PR target/68269
8482         * combine.c (expand_field_assignment): Punt if compute_mode is
8483         unsupported scalar mode.
8485 2016-01-14  Richard Biener  <rguenther@suse.de>
8487         PR tree-optimization/66856
8488         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8489         SLP node only if it built successfully.
8490         (vect_analyze_slp_instance): Adjust.
8492 2016-01-14  Jeff Law  <law@redhat.com>
8494         PR tree-optimization/69270
8495         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8496         (record_edge_info): Use it.  Convert boolean_{true,false}_node
8497         to the type of op0.
8499 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
8501         PR ipa/66487
8502         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8503         use block_ultimate_origin
8504         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8506 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
8508         * doc/invoke.texi (Submodel Options): Rename section to
8509         "Machine-Dependent Options" to better reflect its content.
8510         Rewrite introductory text to remove archaic CPU names.
8511         Update references.
8513 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
8515         * doc/invoke.texi (Code Gen Options): Move section up in file,
8516         before target-specific options.  Update menu and option summary
8517         to reflect the new section ordering.
8519 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
8521         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8522         (C++ Dialect Options): Add cross-reference to -std option.
8523         * doc/standards.texi (C++ Language): Document C++14 support.
8525 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8527         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8528         for pack/unpack functions for __ibm128.
8529         (PACK_IF): Likewise.
8530         (UNPACK_IF): Likewise.
8532         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8533         support for __ibm128 pack/unpack functions.
8534         (rs6000_invalid_builtin): Likewise.
8535         (rs6000_init_builtins): Likewise.
8536         (rs6000_opt_masks): Likewise.
8538         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8539         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8540         functions
8541         (RS6000_BTM_COMMON): Likewise.
8543         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8544         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8545         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8546         128-bit floating point.  Add support for the double values to be
8547         in Altivec registers for TF/IF packing and unpacking, but restrict
8548         TD packing sub-fields to be FPR registers.  Don't allow overlapped
8549         register support for packing.  Allow pack inputs to be memory
8550         locations.  Don't build generator functions for unpack<mode>_dm
8551         and unpack<mode>_nodm.
8552         (unpack<mode>_dm): Likewise.
8553         (unpack<mode>_nodm): Likewise.
8554         (pack<mode>): Likewise.
8556         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8557         built-in functions to pack/unpack explicit __ibm128 values.
8558         (__builtin_unpack_ibm128): Likewise.
8560         * doc/extend.texi (PowerPC Built-in Functions): Document
8561         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8563 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
8565         PR c/66208
8566         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8567         Add new arg loc and pass it down as context.
8568         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8569         to the location to use for the warning.
8570         (check_function_arguments): New arg loc.  All callers changed.  Pass
8571         it to check_function_nonnull.
8572         * c-common.h (check_function_arguments): Adjust declaration.
8574 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
8576         PR tree-optimization/69156
8577         * gimple.c (validate_type): Removed.
8578         (gimple_builtin_call_types_compatible_p): Use
8579         useless_type_conversion_p instead of validate_type.
8580         * value-prof.c (gimple_stringop_fixed_value): Fold
8581         icall_size to correct type.
8583 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
8585         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8586         effects.
8588 2016-01-13  Richard Henderson  <rth@redhat.com>
8590         PR tree-opt/68964
8591         * target.def (builtin_tm_load, builtin_tm_store): Remove.
8592         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8593         (ix86_builtin_tm_store): Remove.
8594         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8595         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8596         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8597         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8598         * doc/tm.texi: Rebuild.
8600         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8601         (BUILT_IN_TM_MEMCPY_RTWN): New.
8602         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8603         fallback from vector to integer helpers.
8604         (build_tm_load): Handle vector types directly, instead of
8605         via target hook.
8606         (build_tm_store): Likewise.
8607         (expand_assign_tm): Prepare for register types not handled by
8608         the above.  Copy them to memory and use memcpy.
8609         * tree.c (tm_define_builtin): New.
8610         (find_tm_vector_type): New.
8611         (build_tm_vector_builtins): New.
8612         (build_common_builtin_nodes): Call it.
8614 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
8616         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8617         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
8619 2016-01-13  Tom de Vries  <tom@codesourcery.com>
8621         PR tree-optimization/69169
8622         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8623         handled_struct_type param.
8624         (create_variable_info_for, intra_create_variable_infos): Call
8625         create_variable_info_for_1 with extra arg.
8627 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
8629         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8630         and "armv8.1-a+crc" entries.
8632 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
8634         PR target/69228
8635         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8636         Change first operand predicate from register_or_constm1_operand
8637         to register_operand.
8638         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8639         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8640         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8641         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8642         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8643         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8644         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8645         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8646         comparison with constm1_rtx from vec_prefetch_gen part.
8648 2016-01-13  Richard Biener  <rguenther@suse.de>
8650         PR tree-optimization/69013
8651         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8652         Exchange assert for a test.
8654 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8656         PR target/69247
8657         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8659 2016-01-13  Richard Biener  <rguenther@suse.de>
8661         PR tree-optimization/69242
8662         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8663         assert with a check.
8665 2016-01-13  Richard Biener  <rguenther@suse.de>
8667         PR tree-optimization/69186
8668         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8669         Properly guard vect_update_misalignment_for_peel call.
8671 2016-01-12  Jeff Law  <law@redhat.com>
8673         PR tree-optimization/pr67755
8674         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8675         "need_profile_correction".
8676         (thread_block_1): Initialize new field to false by default.  If we
8677         have multiple thread paths through a common joiner to different
8678         final targets, then set new field to true.
8679         (compute_path_counts): Only do count adjustment when it's really
8680         needed.
8682 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8684         * doc/invoke.texi (Spec Files): Move section down in file, past
8685         all command-line option descriptions.
8687 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8689         PR middle-end/54809
8690         * doc/gty.texi: Remove documentation of mark_hook.
8691         * gengtype.c (struct write_types_data): Remove code to support
8692         mark_hook attribute.
8693         (walk_type): Likewise.
8694         (write_func_for_structure): Likewise.
8696 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8698         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8699         Directory Options, and -specs= to Overall Options.
8700         (Overall Options): Adjust similarly.  Reorder to group related
8701         options together.  Make -specs= cross-reference the spec file details.
8702         (Directory Options): Adjust similarly.
8704 2016-01-12  Jeff Law  <law@redhat.com>
8706         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8708 2016-01-12  Olivier Hainque  <hainque@adacore.com>
8710         * gcc.c (spec_undefvar_allowed): New global.
8711         (process_command): Set to true when running for --version or --help,
8712         alone or together.
8713         (getenv_spec_function): When the variable is not defined, use the
8714         variable name as the variable value if we're allowed not to issue
8715         a fatal error.
8717 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
8719         PR tree-optimization/68911
8720         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8721         information computed for expression "init + nit * step".
8723 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8725         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
8726         about name of GCC executable.  Remove deleted node from menu.
8727         (Directory Options) <-B>: Remove cross-reference to deleted node.
8728         (Target Options): Delete section.
8730 2016-01-12  Christian Bruel  <christian.bruel@st.com>
8732         PR target/69180
8733         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8734         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8736 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
8738         PR target/69198
8739         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8740         aligned_mem is properly set for AVX512-VL floating point masked
8741         stores.
8743         PR target/69175
8744         * ifcvt.c (cond_exec_process_if_block): When removing the last
8745         insn from then_bb, remove also any possible barriers that follow it.
8747 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
8749         PR target/68456
8750         PR target/69226
8751         * config/i386/iamcu.h (SIZE_TYPE): New macro.
8752         (PTRDIFF_TYPE): Likewise.
8753         (WCHAR_TYPE): Likewise.
8754         (WCHAR_TYPE_SIZE): Likewise.
8755         (STDINT_LONG32): Likewise.
8757 2016-01-12  Richard Biener  <rguenther@suse.de>
8759         PR tree-optimization/69053
8760         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8761         convert initial value for cond reductions.
8763 2016-01-12  Richard Biener  <rguenther@suse.de>
8765         PR tree-optimization/69007
8766         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8767         widen_sum after dot_prod and sad.
8769 2016-01-12  Richard Biener  <rguenther@suse.de>
8771         PR tree-optimization/69168
8772         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8773         pattern stmt SLP type.
8774         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8775         end up unused so cope with that case.
8777 2016-01-12  Richard Biener  <rguenther@suse.de>
8779         PR tree-optimization/69157
8780         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8781         stmts def type only during analyze phase.
8782         (vectorizable_call): Likewise.
8783         (vectorizable_simd_clone_call): Likewise.
8784         (vectorizable_conversion): Likewise.
8785         (vectorizable_assignment): Likewise.
8786         (vectorizable_shift): Likewise.
8787         (vectorizable_operation): Likewise.
8788         (vectorizable_store): Likewise.
8789         (vectorizable_load): Likewise.
8791 2016-01-12  Richard Biener  <rguenther@suse.de>
8793         PR tree-optimization/69174
8794         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8795         space.
8796         (vectorizable_load): Properly compute the number of loads needed
8797         for permuted strided SLP loads and do not spuriously assign
8798         to SLP_TREE_VEC_STMTS.
8800 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
8802         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8803         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8804         (MD_EXEC_PREFIX): Remove.
8805         (MD_STARTFILE_PREFIX) Removee.
8806         (FILE_NAME_ABSOLUTE_P): Remove.
8807         (CPP_SPEC): Do not read macros from sys/version.h.
8808         (LINK_COMMAND_SPEC): Remove.
8809         (LOCAL_INCLUDE_DIR): Remove.
8810         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8811         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8812         (POST_LINK_SPEC): Define to invoke stubify after linker
8813         (LIBSTDCXX): Remove define
8814         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8815         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8816         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8817         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8818         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8819         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8820         (i386_djgpp_asm_named_section): Add propotype of new procedure
8822         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8823         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8824         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8825         in config/i386/djgpp.h).
8826         (STANDARD_STARTFILE_PREFIX_2): Define identical to
8827         STANDARD_STARTFILE_PREFIX_1.
8828         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8829         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8830         installation errors.
8831         (MAX_OFILE_ALIGNMENT): Define to 128.
8832         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8834         * config/i386/djgpp.c: New file. Add implementation of
8835         i386_djgpp_asm_named_section.
8837         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8839         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8840         Add rule for building djgpp.o.
8842 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8844         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8845         (rtx_is_swappable_p): Reductions are swappable.
8846         (insn_is_swappable_p): V2DF reductions are swappable.
8848 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
8850         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8851         reloads for other unsupported memory operands.
8853 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8854             Jim Wilson  <jim.wilson@linaro.org>
8856         PR target/69194
8857         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8858         copy_to_mode_reg instead of force_reg.
8860 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
8862         PR target/69225
8863         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8864         TARGET_80387 is true.
8866 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
8868         PR target/69071
8869         * lra-eliminations.c (move_plus_up): Only move plus up
8870         if subreg of the constant can be simplified into constant
8871         and use the simplified subreg of the constant instead of
8872         the original constant.
8874         * fold-const.c (fold_convertible_p): Don't return true
8875         for conversion of VECTOR_TYPE to same sized integral type.
8876         (fold_convert_loc): Fix up formatting.  Fold conversion of
8877         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8878         instead of NOP_EXPR.
8880         PR tree-optimization/69214
8881         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8882         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8883         Formatting fix.
8885         PR tree-optimization/69207
8886         * tree-vect-slp.c (vect_get_constant_vectors): For
8887         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8888         fold_convertible_p to vector_type's element type, and always
8889         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8891 2016-01-11  Richard Biener  <rguenther@suse.de>
8893         PR tree-optimization/69173
8894         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8895         fixup the cycle if all stmts are in a pattern.
8897 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
8899         PR middle-end/68999
8900         * alias.c (base_alias_check): Move check for addresses with
8901         alignment ANDs before the call for compare_base_decls.
8902         (memrefs_conflict_p): Return -1 for different decls
8903         that went through alignment adjustments.
8905 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8907         PR rtl-optimization/68796
8908         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8909         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8910         and QImode comparisons against zero with CC_NZmode.
8911         * config/aarch64/iterators.md (short_mask): New mode_attr.
8913 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
8915         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8916         (<avx512>_store<mode>_mask): Likewise.
8918 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
8919             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8921         PR rtl-optimization/68841
8922         * ifcvt.c (struct noce_if_info): Add orig_x field.
8923         (bbs_ok_for_cmove_arith): Add to_rename parameter.
8924         Don't record conflicts on to_rename if it's present.
8925         Allow memory destinations in sets.
8926         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8927         blocks, passing orig_x to the checks.
8928         (noce_process_if_block): Set if_info->orig_x appropriately.
8930 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8932         PR tree-optimization/69069
8933         * tree-parloops.c (create_parallel_loop): Add missing phi args.
8935 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8937         PR rtl-optimization/68920
8938         * config/i386/i386.c (ix86_option_override_internal): Restrict number
8939         of conditional moves for  RTL if-conversion to 1 for
8940         TARGET_ONE_IF_CONV_INSN.
8941         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8942         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8943         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8944         parameter to restirct number of conditional moves for
8945         RTL if-conversion.
8946         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8947         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8948         conditionl moves.
8950 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
8952         PR bootstrap/69123
8953         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8954         onepart vars.  Fix typo in comment.  Fix reversed condition in
8955         unshare test.
8956         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8958         PR bootstrap/69123
8959         * var-tracking.c (dump_onepart_variable_differences): New.
8960         (dataflow_set_different): If a detailed dump is requested,
8961         delay early returns and dump differences between onepart
8962         variables present before and after, and added variables.
8964 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
8966         PR target/69010
8967         * expr.c (expand_expr_real_1): For boolean vector constants
8968         with a scalar mode use const_scalar_mask_from_tree.
8969         (const_scalar_mask_from_tree): New.
8970         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8971         assigned to a mask type to handle constants.
8973 2016-01-11  Martin Jambor  <mjambor@suse.cz>
8975         PR ipa/69044
8976         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8977         useless parameters if we cannot change function signature.
8979 2016-01-11  Martin Jambor  <mjambor@suse.cz>
8981         PR ipa/66616
8982         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8983         flag.
8985 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8987         PR tree-optimization/69109
8988         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8989         latch with phi.
8991 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8993         PR tree-optimization/69108
8994         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8995         res is not used in a phi.
8997 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
8999         PR 67425
9000         * common.opt (frandom-seed): Fix parameter name.
9001         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9003 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9005         PR tree-optimization/69058
9006         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9007         not supported.
9009 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9011         * config/arc/arc.opt (mdiv-rem): Add period to the end.
9012         (mcode-density): Likewise.
9014 2016-01-10  Tom de Vries  <tom@codesourcery.com>
9016         PR tree-optimization/69062
9017         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9018         (parallelize_loops): Don't paralelize loop that has phi with address
9019         arg.
9021 2016-01-10  Tom de Vries  <tom@codesourcery.com>
9023         PR tree-optimization/69039
9024         * tree-parloops.c (try_create_reduction_list): Only allow single exit
9025         phi for reduction.
9027 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
9029         PR middle-end/68743
9030         * match.pd: Require target has function_c99_misc before doing
9031         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9033 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
9035         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9036         use GMPINC.
9037         * configure: Regenerate.
9039 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
9041         PR middle-end/50865
9042         PR tree-optimization/69097
9043         * fold-const.h (expr_not_equal_to): New prototype.
9044         * fold-const.c: Include stringpool.h and tree-ssanames.h.
9045         (expr_not_equal_to): New function.
9046         * match.pd (X % -Y is the same as X % Y): Don't optimize
9047         unless X is known not to be equal to minimum or Y is known
9048         not to be equal to -1.
9049         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9050         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9051         (simplify_stmt_using_ranges): Adjust caller.
9052         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9053         substitute_and_fold.
9055 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
9057         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9058         w/o DECL_NAME.
9060 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9062         PR tree-optimization/69167
9063         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9064         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9065         ops[0] comparison.
9066         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9068 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9069             Richard Biener  <rguenther@suse.de>
9071         PR tree-optimization/68707
9072         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9073         instances that can be handled via vect_load_lanes.
9075 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
9077         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9078         if we can't determine address equivalence.
9079         * alias.c (compare_base_decl): Update for changed return value of
9080         symtab_node::equal_address_to.
9082 2016-01-08  Jason Merrill  <jason@redhat.com>
9084         PR c++/68983
9085         PR c++/67557
9086         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9087         * expr.c (store_field): Not here.
9088         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9089         call with TREE_ADDRESSABLE type.
9090         * tree-cfg.c (verify_gimple_call): Adjust.
9092 2016-01-08  Olivier Hainque  <hainque@adacore.com>
9094         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9095         libc_internal.
9097 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9099         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9100         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9101         (reduc_smin_v2sf): Rename to...
9102         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9103         (reduc_splus_v2sf): Rename to...
9104         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9106 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9108         PR tree-optimization/69162
9109         * gimplify.c (gimplify_va_arg_expr): Encode original type of
9110         valist argument in another argument.
9111         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
9112         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9113         to determine the va_list type, build a MEM_REF instead of
9114         build_fold_indirect_ref.
9116         PR tree-optimization/69172
9117         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9118         gimple_build.
9120 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9122         PR tree-optimization/67781
9123         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9124         and cmpnop in two steps: first the ones not accessed in original
9125         gimple expression in a endian independent way and then the ones not
9126         accessed in the final result in an endian-specific way.
9128 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9130         PR tree-optimization/69083
9131         * tree-vect-slp.c (vect_get_constant_vectors): For
9132         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9133         element type.  If op is fold_convertible_p to vector_type's element
9134         type, use NOP_EXPR instead of VCE.
9136 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
9138         PR rtl-optimization/67778
9139         PR rtl-optimization/68634
9140         PR rtl-optimization/68909
9141         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
9142         block from the stack until done with it.  Remove a superfluous
9143         bitmap set.  Remove a superfluous bitmap test.
9145 2016-01-07  Martin Sebor  <msebor@redhat.com>
9147         PR c/68966
9148         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9149         constraint on the type of arguments.
9151 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
9153         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9154         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9155         unaligned_access on the gcc_options set.
9156         * config/arm/arm.c (arm_option_override_internal): Use
9157         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9159 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9161         PR target/69140
9162         * config/i386/i386.c (ix86_frame_pointer_required): Enable
9163         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9165 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9167         Revert
9168         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9170         PR target/69140
9171         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9172         depending on frame_pointer_needed before remaining integer and SSE
9173         registers are saved.
9175 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9177         PR 1078
9178         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9180 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9182         PR target/69171
9183         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9184         Use the "xBm" constraint.
9185         (float<sseintvecmodelower><mode>2<mask_name><round_name):
9186         Likewise.
9187         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9188         (sse_cvtsi2ssq<round_name>): Likewise.
9189         (sse_cvtss2si<round_name>): Likewise.
9190         (sse_cvtss2siq<round_name>): Likewise.
9191         (sse2_cvtsi2sdq<round_name>): Likewise.
9192         (sse2_cvtsd2si<round_name>): Likewise.
9193         (sse2_cvtsd2siq<round_name>): Likewise.
9194         * config/i386/subst.md (round_nimm_scalar_predicate): New
9195         predicate.
9197 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
9199         PR middle-end/67639
9200         * varasm.c (make_decl_rtl): Mark invalid register vars as
9201         DECL_EXTERNAL.
9203         PR rtl-optimization/66206
9204         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9205         All callers changed.
9207 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9209         PR tree-optimization/69141
9210         * tree-ssa-pre.c: Include langhooks.h.
9211         (eliminate_dom_walker::before_dom_children): Use
9212         lang_hooks.decl_printable_name instead of
9213         cgraph_node::get ()->name ().
9215         PR middle-end/68960
9216         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9217         it and DECL_ALIGN too.
9219 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
9221         * config/mips/mips-ftypes.def: Sort to lexicographical order.
9223 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9225         PR target/69140
9226         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9227         depending on frame_pointer_needed before remaining integer and SSE
9228         registers are saved.
9230 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9232         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9233         mode iterator with VSX_M2.
9234         (*p9_vecstore_<mode>): Likewise.
9235         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9236         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9237         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9238         (define_split for VSX_LE128 stores): Likewise.
9239         (define_peephole2 for TImode LE swaps): Likewise.
9240         (define_split for VSX_LE128 post-reload stores): Likewise.
9242 2016-01-06  Marek Polacek  <polacek@redhat.com>
9244         PR sanitizer/69099
9245         * convert.c (convert_to_integer_1): Adjust call to
9246         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
9247         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
9248         EXPR instead of ARG.
9249         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9251 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9253         PR 1078
9254         * doc/extend.texi (RL78 Variable Attributes): New section.
9256 2016-01-05  Marek Polacek  <polacek@redhat.com>
9258         PR c/69104
9259         * builtins.c (get_memmodel): Use expansion point location rather than
9260         the input location.  Call warning_at rather than warning.
9261         (expand_builtin_atomic_compare_exchange): Likewise.
9262         (expand_builtin_atomic_load): Likewise.
9263         (expand_builtin_atomic_store): Likewise.
9264         (expand_builtin_atomic_clear): Likewise.
9266 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9268         PR target/68991
9269         * config/i386/i386.c (ix86_expand_vector_logical_operator):
9270         Replace nonimmediate_operand with vector_operand.
9271         * config/i386/predicates.md (vector_operand): New predicate.
9272         (general_vector_operand): Replace nonimmediate_operand with
9273         vector_operand.
9274         * config/i386/sse.md: Replace nonimmediate_operand with
9275         vector_operand and m constraint with Bm constraint on SSE
9276         patterns with 16-byte memory operand.
9277         * config/i386/subst.md (round_nimm_predicate): Replace
9278         nonimmediate_operand with vector_operand.
9279         (round_saeonly_nimm_predicate): Likewise.
9280         (round_saeonly_nimm_scalar_predicate): New.
9282 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9284         PR target/68991
9285         * config/i386/constraints.md (Bm): New constraint.
9286         * config/i386/predicates.md (vector_memory_operand): New
9287         predicate.
9288         * config/i386/sse.md: Replace xm with xBm in plusminus and
9289         any_logic patterns.
9291 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9293         PR 1078
9294         * doc/extend.texi (V850 Function Attributes): New section.
9295         (V850 Variable Attributes): New section.
9297 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9299         PR 1078
9300         * doc/extend.texi (MicroBlaze Function Attributes): Document
9301         interrupt_handler and fast_interrupt attributes.
9303 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
9305         PR other/60465
9306         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9307         for local symbolic operands.
9308         * config/ia64/predicates.md (local_symbolic_operand64): New
9309         predicate.
9311 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9313         PR rtl-optimization/68651
9314         * combine.c (combine_simplify_rtx): Canonicalize x + x into
9315         x << 1.
9317 2016-01-05  Nathan Sidwell  <nathan@acm.org>
9319         * alias.c (compare_base_decls): Use symtab_node::get.
9321 2016-01-05  Nick Clifton  <nickc@redhat.com>
9323         PR target/68770
9324         * ira-costs.c (copy_cost): Initialise the t_icode field of the
9325         secondary_reload_info structure.
9327         PR target/66655
9328         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9329         decls if weak support is available.
9331 2016-01-04  Martin Sebor  <msebor@redhat.com>
9333         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9335 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
9337         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9338         OPTION_MASK_P9_DFORM.
9340         * config/rs6000/constraints.md (wo constraint): New constraint for
9341         ISA 3.0 (power9).
9343         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9344         for wo constraint.
9345         (rs6000_init_hard_regno_mode_ok): Likewise.
9347         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9348         wo constraint.
9350         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9351         expanders not to have constraints.  Add support for ISA 3.0 xxperm
9352         instruction.  Add support for fusing xxlor with xxperm.
9353         (altivec_vperm_<mode>_internal): Likewise.
9354         (altivec_vperm_v8hiv16qi): Likewise.
9355         (altivec_vperm_<mode>v16q): Likewise.
9356         (altivec_vperm_<mode>_uns): Likewise.
9357         (vperm_v8hiv4si): Likewise.
9358         (vperm_v16qiv8hi): Likewise.
9360         * doc/md.texi (RS/6000 constraints): Document wo constraint.
9362 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9364         Update copyright years.
9366         * gcc.c (process_command): Update copyright notice dates.
9367         * gcov-dump.c (print_version): Ditto.
9368         * gcov.c (print_version): Ditto.
9369         * gcov-tool.c (print_version): Ditto.
9370         * gengtype.c (create_file): Ditto.
9371         * doc/cpp.texi: Bump @copying's copyright year.
9372         * doc/cppinternals.texi: Ditto.
9373         * doc/gcc.texi: Ditto.
9374         * doc/gccint.texi: Ditto.
9375         * doc/gcov.texi: Ditto.
9376         * doc/install.texi: Ditto.
9377         * doc/invoke.texi: Ditto.
9379 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9381         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9382         modes larger than TImode as TImode if NEON is not enabled.
9384 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9386         PR target/69100
9387         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9388         mode for %f0-%f31 only if TARGET_FPU.
9390 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9392         PR target/69072
9393         * config/sparc/sparc.c (scan_record_type): Take into account subfields
9394         to compute the PACKED_P predicate.
9395         (function_arg_record_value): Minor tweaks.
9397 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9399         * doc/install.texi (--with-multilib-list): Describe the meaning of the
9400         option for arm*-*-* targets.
9402 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9404         * doc/extend.texi (Common Function Attributes): Move docs for
9405         MSP430-specific attributes to....
9406         (MSP430 Function Attributes): ...here.  Delete the redundant
9407         entries and copy-edit the remaining text.
9408         (MSP430 Variable Attributes): Use uniform format for index
9409         entries and add a cross-reference to the corresponding function
9410         attribute docs.
9412 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
9414         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9415         -finite-math typo.
9416         (x86 Options): Likewise.
9418 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
9420         PR 1078
9422         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9423         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9424         to corresponding attribute.
9426 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
9428         * doc/extend.texi (Common Function Attributes) <noplt>: Move
9429         to correct alphabetization of table.  Copy-edit and correct
9430         markup.
9431         <stack_protect>: Likewise.
9432         <target_clones>: Likewise.
9433         <simd>: Likewise.
9434         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9435         Correct punctuation.
9436         (Code Gen Options) <-fno-plt>: Copy-edit.
9438 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9440         PR target/68917
9441         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9442         SI values.  Explicitly convert SI to DI and vice-versa.
9444 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
9446         PR tree-optimization/69070
9447         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9448         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9450         PR sanitizer/69055
9451         * ubsan.c (ubsan_instrument_float_cast): Call
9452         initialize_sanitizer_builtins.
9454         PR target/69015
9455         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9457 Copyright (C) 2016 Free Software Foundation, Inc.
9459 Copying and distribution of this file, with or without modification,
9460 are permitted in any medium without royalty provided the copyright
9461 notice and this notice are preserved.