PR target/69810
[official-gcc.git] / gcc / ChangeLog
blob1b06c04e430a72108760332ee5b8fa65effbd912
1 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
3         PR target/69810
4         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
5         (zero_extendqi<mode>2_dot): Revert earlier conversion from
6         define_insn_and_split to define_insn.
7         (zero_extendqi<mode>2_dot2): Same.
8         (extendqi<mode>2_dot): Same.
9         (extendqi<mode>2_dot2): Same.
11 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
13         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
14         (probe_stack): New expander.
15         (probe_stack_<mode>): New insn pattern.
17 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
19         * config/i386/i386.md
20         (operations with memory inputs setting flags peephole2):
21         Remove uneeded REG_P checks.  Cleanup pattern generation.
23 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
25         * tree-vect-loop.c (vect_transform_loop): Fix
26         nb_iterations_upper_bound computation for vectorized loop.
28 2016-04-29  Marek Polacek  <polacek@redhat.com>
29             Jakub Jelinek  <jakub@redhat.com>
31         PR sanitizer/70342
32         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
33         TARGET_EXPR_SLOT as a base.
35 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
37         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
38         with 'rCm2' constraints to limit possible immediate size.
39         (*load_zeroextendqisi_update): Likewise.
40         (*load_signextendqisi_update): Likewise.
41         (*loadhi_update): Likewise.
42         (*load_zeroextendhisi_update): Likewise.
43         (*load_signextendhisi_update): Likewise.
44         (*loadsi_update): Likewise.
45         (*loadsf_update): Likewise.
47 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
49         * config/i386/predicates.md (constm1_operand): Fix comparison.
51 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
53         * testsuite/gcc.target/arc/ieee_eq.c: New test.
55 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
57         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
58         remaining SH5 related settings.
59         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
60         shmedia_prepare_call_address): Delete.
61         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
62         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
63         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
64         UNSUPPORTED_SH2A): Remove m5 checks.
65         (sh_divide_strategy_e): Remove SH5 division strategies.
66         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
67         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
69 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
71         * config/s390/s390.c (s390_rtx_costs): Update documentation.
73 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
75         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
76         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
77         Change lder to ldr.
78         * config/s390/vector.md ("mov<mode>"): Likewise.
80 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
82         * config/s390/constraints.md ("U", "W"): Invoke
83         s390_mem_constraint with "ZR" and "ZT".
84         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
85         addresses when using LRA.  Accept also short displacements for S
86         and T constraints.  Do not check for long displacement target for
87         S and T constraints.
88         (s390_mem_constraint): Remove handling of U and W constraints.
89         * config/s390/s390.md (various patterns): Remove the short
90         displacement constraints (Q and R) if a long displacement
91         constraint is present.  Add longdisp as required CPU capability.
92         * config/s390/vector.md: Likewise.
93         * config/s390/vx-builtins.md: Likewise.
95 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
97         PR target/60040
98         * reload1.c (reload): Call finish_spills before
99         restarting reload loop. Skip select_reload_regs
100         if update_eliminables_and_spill returns true.
102 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
104         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
105         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
106         (umulhisi3_imm): Update predicates and constraint letters.
107         (umulhisi3_reg): Declare instruction as commutative.
108         * config/arc/constraints.md (J12, J16): New constraints.
109         * config/arc/predicates.md (short_unsigned_const_operand): New
110         predicate.
111         (arc_short_operand): Likewise.
112         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
114 2016-04-29  Richard Biener  <rguenther@suse.de>
116         PR tree-optimization/13962
117         PR tree-optimization/65686
118         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
119         * tree-ssa-alias.c (ptrs_compare_unequal): New function
120         using PTA to compare pointers.
121         * match.pd: Add pattern for pointer equality compare simplification
122         using ptrs_compare_unequal.
124 2016-04-29  Richard Biener  <rguenther@suse.de>
126         * stor-layout.c (layout_type): Do not build a pointer-to-element
127         type for arrays.
129 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
131         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
132         Use SWI mode iterator.  Use general_reg_operand predicate.
133         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
134         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
135         predicates.
137 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
139         PR middle-end/70843
140         * fold-const.c (operand_equal_p): Don't verify hash value equality
141         if arg0 == arg1.
142         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
143         and OMP_CLAUSE.
145 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
147         PR target/70858
148         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
149         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
150         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
151         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
152         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
154 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
156         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
157         to info.  Don't initialize separate fields to 0.  Clean up
158         formatting a bit.
160 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
162         * config/i386/i386.md (peephole2s for operations with memory inputs):
163         Use SWI mode iterator.
164         (peephole2s for operations with memory outputs): Ditto.
165         Do not check for stack checking probe.
167         (probe_stack): Remove expander.
169 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
170             Andrew Burgess  <andrew.burgess@embecosm.com>
172         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
173         operands as 32-bits.
175 2016-04-28  Jason Merrill  <jason@redhat.com>
177         * gdbinit.in: Skip line-map.h.
179 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
180             Andrew Burgess  <andrew.burgess@embecosm.com>
182         * config/arc/arc.c (arc_conditional_register_usage): Take
183         TARGET_RRQ_CLASS into account.
184         (arc_print_operand): Support printing 'p' and 's' operands.
185         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
186         as 0.
187         (TARGET_RRQ_CLASS): Define.
188         (IS_POWEROF2_OR_0_P): Define.
189         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
190         alternatives.
191         (*tst_movb): New define_insn.
192         (*tst): Avoid recognition if it could prevent '*tst_movb'
193         combination; replace c/CnL with c/Chs alternative.
194         (*tst_bitfield_tst): New define_insn.
195         (*tst_bitfield_asr): New define_insn.
196         (*tst_bitfield): New define_insn.
197         (andsi3_i): Add Rrq variant.
198         (extzv): New define_expand.
199         (insv): New define_expand.
200         (*insv_i): New define_insn.
201         (*movb): New define_insn.
202         (*movb_signed): New define_insn.
203         (*movb_high): New define_insn.
204         (*movb_high_signed): New define_insn.
205         (*movb_high_signed + 1): New define_split pattern.
206         (*mrgb): New define_insn.
207         (*mrgb + 1): New define_peephole2 pattern.
208         (*mrgb + 2): New define_peephole2 pattern.
209         * config/arc/arc.opt (mbitops): New option for nps400, uses
210         TARGET_NPS_BITOPS_DEFAULT.
211         * config/arc/constraints.md (q): Make register class conditional.
212         (Rrq): New register constraint.
213         (Chs): New constraint.
214         (Clo): New constraint.
215         (Chi): New constraint.
216         (Cbf): New constraint.
217         (Cbn): New constraint.
218         (C18): New constraint.
219         (Cbi): New constraint.
221 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
223         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
224         dst->popcount.
225         (bitmap_intersection_of_preds): Ditto.
226         (bitmap_union_of_succs): Ditto.
227         (bitmap_union_of_preds): Ditto.
228         * sbitmap.c (do_popcount): Delete.
229         (BITMAP_DEBUGGING): Delete.
230         (sbitmap_verify_popcount): Delete.
231         (sbitmap_alloc): Don't initialize the popcount field.
232         (sbitmap_alloc_with_popcount): Delete.
233         (sbitmap_resize): Don't resize the popcount array.
234         (sbitmap_vector_alloc): Don't initialize the popcount field.
235         (bitmap_copy): Don't copy the popcount array.
236         (bitmap_clear): Don't clear the popcount array.
237         (bitmap_clear): Delete the popcount array handling.
238         (bitmap_ior_and_compl): Delete the popcount assert.
239         (bitmap_not): Ditto.
240         (bitmap_and_compl): Ditto.
241         (bitmap_and): Delete the popcount array handling.
242         (bitmap_xor): Ditto.
243         (bitmap_ior): Ditto.
244         (bitmap_or_and): Delete the popcount assert.
245         (bitmap_and_or): Ditto.
246         (popcount_table): Delete.
247         (sbitmap_elt_popcount): Delete.
248         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
249         (bitmap_set_bit): Delete the popcount assert.
250         (bitmap_clear_bit): Ditto.
251         (sbitmap_free): Don't free the popcount array.
252         (sbitmap_alloc_with_popcount): Delete declaration.
253         (sbitmap_popcount): Ditto.
255 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
256             Andrew Burgess  <andrew.burgess@embecosm.com>
258         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
259         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
260         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
261         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
262         * config/arc/arc.opt (mcmem): New option.
263         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
264         supply length for r/m alternative.
265         (*extendqisi2_ac): Likewise.
266         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
267         r/Uex alternative.
268         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
269         (movhi_insn): Likewise.
270         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
271         (*zero_extendqihi2_i): Add r/Ucm alternative.
272         (*zero_extendqisi2_ac): Likewise.
273         (*zero_extendhisi2_i): Likewise.
274         * config/arc/constraints.md (Uex): New memory constraint.
275         (Ucm): New define_constraint.
276         * config/arc/predicates.md (long_immediate_loadstore_operand):
277         Return 0 for MEM with cmem_address address.
278         (cmem_address_0): New predicates.
279         (cmem_address_1): Likewise.
280         (cmem_address_2): Likewise.
281         (cmem_address): Likewise.
283 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
285         * config/rs6000/rs6000.c (machine_function): Rename
286         insn_chain_scanned_p to spe_insn_chain_scanned_p.
287         (rs6000_stack_info): Adjust.
289 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
290             Andrew Burgess  <andrew.burgess@embecosm.com>
292         * config/arc/constraints.md (Usd): Convert to define_constraint.
293         (Us<): Likewise.
294         (Us>): Likewise.
296 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
298         PR target/70821
299         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
300         Add new peephole2 where the first insn is *mov<mode>_or instead of
301         *mov<mode>_internal.
303 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
305         * tracer.c (bb_seen): Make static.
307 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
309         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
310         support, setup defaults.
311         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
312         * config/arc/arc.c (arc_init): Add NPS400 support.
313         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
314         (TARGET_ARC700): NPS400 is also an ARC700.
315         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
317 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
319         PR target/70668
320         * config/nds32/nds32.md (casesi): Don't access the operands array
321         out of bounds.
323 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
325         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
326         (or $-1,reg peephole2): Ditto.
327         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
329 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
331         * doc/extend.texi (Common Function Attributes) [optimize]:
332         Discourage use of the optimize attribute.
334 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
336         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
337         special case builtin.
338         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
339         ALTIVEC_BUILTIN_VEC_ADDE.
340         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
341         support for ALTIVEC_BUILTIN_VEC_ADDE.
342         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
343         for __builtin_vec_adde.
345 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
347         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
348         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
350 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
352         PR testsuite/70595
353         * doc/sourcebuild.texi (Effective-Target Keywords, Other
354         attributes): Document cilkplus_runtime.
356 2016-04-28  Martin Jambor  <mjambor@suse.cz>
358         * tree-cfg.c (verify_expr): Verify that local declarations belong to
359         this function.  Call verify_expr on MEM_REFs and bases of other
360         handled_components.
362 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
364         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
365         for WORD_REGISTER_OPERATIONS to runtime check.
367 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
369         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
371 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
373         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
374         big-endian compilation.
375         * config/arc/arc.md (addf3): Likewise.
376         (subdf3): Likewise.
377         (muldf3): Likewise.
379 2016-04-28  Richard Biener  <rguenther@suse.de>
381         PR tree-optimization/70840
382         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
383         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
384         Mark x * pow(x,c) -> pow(x,c+1) commutative.
385         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
387 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
389         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
390         and explain why in a comment.
392 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
394         * config/arc/arc.md (cpu_facility): Add fpx variant.
395         (subdf3): Prohibit use reverse sub when assist operations option
396         is enabled.
397         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
398         instructions only when FPX is enabled.
399         * testsuite/gcc.target/arc/trsub.c: New test.
401 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
403         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
404         mult_operator when calculating "type" attribute.
405         (*fop_<mode>_1_i387): Ditto.
406         (*fop_xf_1_i387): Ditto.
407         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
408         Use std::swap to swap operands.  Use RTL expressions to generate
409         converted pattern.
411 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
412             Joern Rennecke  <joern.rennecke@embecosm.com>
414         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
415         declaration.
416         (emit_pic_move): Remove.
417         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
418         * config/arc/arc.c (emit_pic_move): Removed.
419         (TARGET_HAVE_TLS): Define.
420         (arc_conditional_register_usage): Test for arc_tp_regno.
421         (arc_print_operand, arc_print_operand_address): Handle TLS
422         unspecs.
423         (arc_needs_pcl_p): New function.
424         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
425         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
426         (arc_raw_symbolic_reference_mentioned_p): Likewise.
427         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
428         (arc_legitimize_tls_address): Likewise.
429         (DTPOFF_ZERO_SYM): Define.
430         (arc_legitimize_pic_address): Make it static, handle TLS cases.
431         (arc_output_pic_addr_const): Print TLS unspecs.
432         (prepare_pic_move): New function, replaces emit_pic_move.
433         (arc_legitimate_constant_p): Handle TLS unspecs.
434         (arc_legitimate_address_p): Likewise.
435         (arc_rewrite_small_data_p): Use assert for TLS constants.
436         (prepare_move_operands): Use prepare_pic_move.
437         (arc_legitimize_address): Legitimize tls addresses.
438         (arc_epilogue_uses): Check for arc_tp_regno.
439         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
440         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
441         Define.
442         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
443         Likewise.
444         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
445         %(arc_tls_extra_start_spec).
446         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
447         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
448         (EH_USES): Define.
449         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
450         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
451         (UNSPEC_TLS_OFF): Add.
452         (R10_REG): Define.
453         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
454         (get_thread_pointersi): New patterns.
455         * config/arc/arc.opt (mtp-regno): New option.
456         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
457         (move_dest_operand): Likewise.
458         * configure: Regenerate.
459         * configure.ac: Add arc*-*-* case to test for tls.
460         * doc/invoke.texi (ARC options): Document mtp-regno.
462 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
464         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
465         the new ARC HS SIMD instructions.
466         (arc_preferred_simd_mode): New function.
467         (arc_autovectorize_vector_sizes): Likewise.
468         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
469         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
470         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
471         (arc_init_builtins): Add new SIMD builtin types.
472         (arc_split_move): Handle 64 bit vector moves.
473         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
474         (TARGET_PLUS_QMACW): Define.
475         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
476         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
477         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
478         (VSUBADD4H): New builtins.
479         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
480         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
482 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
483             Matthias Klose  <doko@debian.org>
485         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
487 2016-04-28  Richard Biener  <rguenther@suse.de>
489         PR middle-end/70777
490         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
491         canonicalization.
493 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
495         * common/config/sh/sh-common.c: Remove SH5 support.
496         * config/sh/constraints.md: Likewise.
497         * config/sh/config/sh/elf.h: Likewise.
498         * config/sh/linux.h: Likewise.
499         * config/sh/netbsd-elf.h: Likewise.
500         * config/sh/predicates.md: Likewise.
501         * config/sh/sh-c.c: Likewise.
502         * config/sh/sh-protos.h: Likewise.
503         * config/sh/sh.c: Likewise.
504         * config/sh/sh.h: Likewise.
505         * config/sh/sh.md: Likewise.
506         * config/sh/sh.opt: Likewise.
507         * config/sh/sync.md: Likewise.
508         * config/sh/sh64.h: Delete.
509         * config/sh/shmedia.h: Likewise.
510         * config/sh/shmedia.md: Likewise.
511         * config/sh/sshmedia.h: Likewise.
512         * config/sh/t-netbsd-sh5-64: Likewise.
513         * config/sh/t-sh64: Likewise.
514         * config/sh/ushmedia.h: Likewise.
516 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
518         * config/i386/i386.md (sign_extend to memory peephole2s): Use
519         general_reg_operand instead of register_operand predicate.
521 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
523         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
525 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
527         * match.pd (A - B > A, A + B < A): New transformations.
529 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
531         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
532         which defaults to true.  Emit an outer pair of parentheses only if
533         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
534         don't emit parentheses for the right-hand operand.
536 2016-04-27  Jeff Law  <law@redhat.com>
538         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
540 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
542         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
543         (altivec_lvx_<mode>_internal): Document.
544         (altivec_lvx_<mode>_2op): New define_insn.
545         (altivec_lvx_<mode>_1op): Likewise.
546         (altivec_lvx_<mode>_2op_si): Likewise.
547         (altivec_lvx_<mode>_1op_si): Likewise.
548         (altivec_stvx_<mode>): Remove.
549         (altivec_stvx_<mode>_internal): Document.
550         (altivec_stvx_<mode>_2op): New define_insn.
551         (altivec_stvx_<mode>_1op): Likewise.
552         (altivec_stvx_<mode>_2op_si): Likewise.
553         (altivec_stvx_<mode>_1op_si): Likewise.
554         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
555         Expand vec_ld and vec_st during parsing.
556         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
557         changes.
558         (altivec_expand_stvx_be): Likewise.
559         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
560         address-masking behavior in RTL.
561         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
562         address-masking behavior in RTL.
563         (altivec_expand_builtin): Change builtin code arguments for calls
564         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
565         (insn_is_swappable_p): Avoid incorrect swap optimization in the
566         presence of lvx/stvx patterns.
567         (alignment_with_canonical_addr): New function.
568         (alignment_mask): Likewise.
569         (find_alignment_op): Likewise.
570         (recombine_lvx_pattern): Likewise.
571         (recombine_stvx_pattern): Likewise.
572         (recombine_lvx_stvx_patterns): Likewise.
573         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
574         stvx patterns from expand.
575         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
576         expansions.
577         (vector_altivec_store_<mode>): Likewise.
579 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
581         * config/aarch64/aarch64.md
582         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
583         remove the "fp" attributes.
584         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
585         add the "simd" attributes.
586         (*movdf_aarch64): Likewise.
587         (*movtf_aarch64): Remove the "fp" attributes.
588         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
589         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
591 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
593         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
594         rtx to rtx_code_label *.
595         * rtl.h (maybe_set_first_label_num): Likewise.
597 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
599         * df-core.c (df_add_problem): Make the problem param be const.
600         (df_remove_problem): Make local "problem" be const.
601         * df-problems.c (problem_RD): Make const.
602         (problem_LR): Likewise.
603         (problem_LIVE): Likewise.
604         (problem_MIR): Likewise.
605         (problem_CHAIN): Likewise.
606         (problem_WORD_LR): Likewise.
607         (problem_NOTE): Likewise.
608         (problem_MD): Likewise.
609         * df-scan.c (problem_SCAN): Likewise.
610         * df.h (struct df_problem): Make field "dependent_problem" be
611         const.
612         (struct dataflow): Likewise for field "problem".
613         (df_add_problem): Make param const.
615 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
617         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
618         inter-unit moves to/from vector registers are enabled.  Do not disable
619         for TARGET_MMX.
621 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
623         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
624         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
625         #define to...
626         (enum df_problem_id): ...this new enum.
627         (struct df_problem): Convert field "id" from "int" to
628         enum df_problem_id.
630 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
632         * rtl.def: Update comment for "things in the instruction chain" to
633         reflect the removal of the leading "i" field for INSN_UID in
634         r210360.  Fix bogus apostrophe.
636 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
638         * config/i386/i386.md
639         (lea arith with mem operand + setcc peephole2): Set operator mode.
641 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
643         PR target/70155
644         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
645         (dimode_scalar_to_vector_candidate_p): This.
646         (timode_scalar_to_vector_candidate_p): New function.
647         (scalar_to_vector_candidate_p): Likewise.
648         (timode_check_non_convertible_regs): Likewise.
649         (timode_remove_non_convertible_regs): Likewise.
650         (remove_non_convertible_regs): Likewise.
651         (remove_non_convertible_regs): Renamed to ...
652         (dimode_remove_non_convertible_regs): This.
653         (scalar_chain::~scalar_chain): Make it virtual.
654         (scalar_chain::compute_convert_gain): Make it pure virtual.
655         (scalar_chain::mark_dual_mode_def): Likewise.
656         (scalar_chain::convert_insn): Likewise.
657         (scalar_chain::convert_registers): Likewise.
658         (scalar_chain::add_to_queue): Make it protected.
659         (scalar_chain::emit_conversion_insns): Likewise.
660         (scalar_chain::replace_with_subreg): Likewise.
661         (scalar_chain::replace_with_subreg_in_insn): Likewise.
662         (scalar_chain::convert_op): Likewise.
663         (scalar_chain::convert_reg): Likewise.
664         (scalar_chain::make_vector_copies): Likewise.
665         (scalar_chain::convert_registers): New pure virtual function.
666         (class dimode_scalar_chain): New class.
667         (class timode_scalar_chain): Likewise.
668         (scalar_chain::mark_dual_mode_def): Renamed to ...
669         (dimode_scalar_chain::mark_dual_mode_def): This.
670         (timode_scalar_chain::mark_dual_mode_def): New function.
671         (timode_scalar_chain::convert_insn): Likewise.
672         (dimode_scalar_chain::convert_registers): Likewise.
673         (scalar_chain::compute_convert_gain): Renamed to ...
674         (dimode_scalar_chain::compute_convert_gain): This.
675         (scalar_chain::replace_with_subreg): Renamed to ...
676         (dimode_scalar_chain::replace_with_subreg): This.
677         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
678         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
679         (scalar_chain::make_vector_copies): Renamed to ...
680         (dimode_scalar_chain::make_vector_copies): This.
681         (scalar_chain::convert_reg): Renamed to ...
682         (dimode_scalar_chain::convert_reg ): This.
683         (scalar_chain::convert_op): Renamed to ...
684         (dimode_scalar_chain::convert_op): This.
685         (scalar_chain::convert_insn): Renamed to ...
686         (dimode_scalar_chain::convert_insn): This.
687         (scalar_chain::convert): Call convert_registers.
688         (convert_scalars_to_vector): Change to scalar_chain pointer to
689         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
690         in 32-bit mode.  Delete scalar_chain pointer.  Call
691         free_dominance_info in 64-bit mode.
692         (pass_stv::gate): Remove TARGET_64BIT check.
693         (ix86_option_override): Put the 64-bit STV pass before the CSE
694         pass.
696 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
698         * dwarf2out.h (struct dw_loc_descr_node): Remove the
699         dw_loc_frame_offset field.
700         * dwarf2out.c (new_loc_descr): Likewise.
701         (resolve_args_picking_1): Turn the VISITED hash set into a
702         FRAME_OFFSET hash map. Use it to associate a frame offset to
703         visited nodes. Remove uses of the CHECKING_P macro.
704         (resolve_args_picking): Update call to resolve_args_picking_1.
706 2016-04-27  Martin Liska  <mliska@suse.cz>
708         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
709         (free_loop_data): Release vuses of groups.
711 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
713         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
714         instead of redundant use_id and boolean have_use_for.
715         (struct iv_use): Change sub_id into group_id.  Remove field next.
716         Move fields: related_cands, n_map_members, cost_map and selected
717         to ...
718         (struct iv_group): ... here.  New structure.
719         (struct iv_common_cand): Use structure declaration directly.
720         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
721         (MAX_CONSIDERED_USES): Rename macro to ...
722         (MAX_CONSIDERED_GROUPS): ... here.
723         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
724         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
725         (dump_uses): Rename to ...
726         (dump_groups): ... here.  Update all uses.
727         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
728         (find_induction_variables): Refactor format of dump information.
729         (record_sub_use): Delete.
730         (record_use): Update all uses.
731         (record_group): New function.
732         (record_group_use, find_interesting_uses_op): Call above functions.
733         Update all uses.
734         (find_interesting_uses_cond): Ditto.
735         (group_compare_offset): New function.
736         (split_all_small_groups): Rename to ...
737         (split_small_address_groups_p): ... here.  Update all uses.
738         (split_address_groups):  Update all uses.
739         (find_interesting_uses): Refactor format of dump information.
740         (add_candidate_1): Update all uses.  Remove redundant check on iv,
741         base and step.
742         (add_candidate, record_common_cand): Remove redundant assert.
743         (add_iv_candidate_for_biv): Update use.
744         (add_iv_candidate_derived_from_uses): Update all uses.
745         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
746         (alloc_use_cost_map): Ditto.
747         (set_use_iv_cost, get_use_iv_cost): Rename to ...
748         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
749         (determine_use_iv_cost_generic): Ditto.
750         (determine_group_iv_cost_generic): Ditto.
751         (determine_use_iv_cost_address): Ditto.
752         (determine_group_iv_cost_address): Ditto.
753         (determine_use_iv_cost_condition): Ditto.
754         (determine_group_iv_cost_cond): Ditto.
755         (determine_use_iv_cost): Ditto.
756         (determine_group_iv_cost): Ditto.
757         (set_autoinc_for_original_candidates): Update all uses.
758         (find_iv_candidates): Update all uses.  Refactor dump information.
759         (determine_use_iv_costs): Ditto.
760         (determine_iv_costs): Ditto.
761         (iv_ca_cand_for_use): Rename to ...
762         (iv_ca_cand_for_group): ... here.  Update all uses.
763         (iv_ca_add_use, iv_ca_add_group): Ditto.
764         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
765         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
766         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
767         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
768         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
769         (create_new_iv, adjust_iv_update_pos): Ditto.
770         (rewrite_use_address): Delete.
771         (rewrite_use_address_1): Rename to ...
772         (rewrite_use_address): ... here.
773         (rewrite_use_compare): Update all uses.
774         (rewrite_use): Delete.
775         (rewrite_uses): Rename to ...
776         (rewrite_groups): ... here.  Update all uses.
777         (remove_unused_ivs, free_loop_data): Update all uses.
778         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
780 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
782         * rtlanal.c (nonzero_bits1): Convert preprocessor check
783         for WORD_REGISTER_OPERATIONS to runtime check.
785 2016-04-27  Richard Biener  <rguenther@suse.de>
787         PR ipa/70760
788         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
789         aggregate_value_p to determine if a function result is
790         returned by reference.
791         (ipa_pta_execute): Functions having their address taken are
792         not automatically nonlocal.
794 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
796         PR sanitizer/70683
797         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
798         * fold-const.c (operand_equal_p): If flag_checking and
799         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
800         and if it returns non-zero, assert iterative_hash_expr on both
801         args is the same.
803 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
805         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
807 2016-04-27  Nick Clifton  <nickc@redhat.com>
809         PR middle-end/49889
810         * varasm.c (merge_weak): Generate an error if an attempt is made
811         to convert a non-weak static function into a weak, public function.
813 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
815         * params.def (MAX_PARTITION_SIZE): New param.
816         * doc/invoke.texi: Document lto-max-partition.
818 2016-04-27  Richard Biener  <rguenther@suse.de>
820         PR ipa/70785
821         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
822         function cummulating used_from_other_partition, externally_visible
823         and force_output from aliases.
824         (refered_from_nonlocal_var): Likewise.
825         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
826         node flags properly.
828 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
830         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
831         (-Wmemset-elt-size): New item.
833 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
835         PR ada/70759
836         * stor-layout.h (internal_reference_types): Delete.
837         * stor-layout.c (reference_types_internal): Likewise.
838         (internal_reference_types): Likewise.
839         (layout_type) <REFERENCE_TYPE>: Adjust.
841 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
843         PR sanitizer/70683
844         * tree.h (inchash::add_expr): Add FLAGS argument.
845         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
846         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
847         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
848         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
849         if swap_tree_comparison (code) is smaller than code, hash that
850         and arguments in the other order.  Hash CONVERT_EXPR the same
851         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
852         of ADDR_EXPR of decl as the decl itself.  Add or remove
853         OEP_ADDRESS_OF from recursive flags as needed.  For
854         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
855         operands commutatively and only the third one normally.
856         For internal CALL_EXPR hash in CALL_EXPR_IFN.
858 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
860         * config/rtems.h (LIB_SPEC): Add -latomic.
862 2016-04-27  Joel Sherrill  <joel@rtems.org>
864         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
865         xilink.ld and flags not relevant to RTEMS.
867 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
869         * toplev.c (backend_init_target): Avoid calling init_reload when using
870         LRA.
872 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
874         * reorg.c (try_merge_delay_insns): Declare i and j inside the
875         for loops rather than one for the whole function.
877 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
879         * match.pd (X + CST CMP X): New transformation.
881 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
883         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
884         * fold-const.c (fold_binary_loc): Remove 2 transformations
885         superseded by match.pd.
886         * match.pd (x+x -> x*2): Generalize to integers.
888 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
890         * config/i386/i386.md (operation on memory peephole): Duplicate an
891         existing peephole and adapt it to match lea rather than an operation
892         that clobbers CC.
894         PR rtl-optimization/57193
895         * opts.c (default_options_table): Add OPT_frename_registers at -O2
896         and above.
897         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
899 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
901         * tree-if-conv.c (any_pred_load_store): New static variable.
902         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
903         any_pred_load_store instead of and_mask_load_store.
904         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
905         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
906         (combine_blocks, tree_if_conversion): Ditto.
908 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
910         PR tree-optimization/70771
911         PR tree-optimization/70775
912         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
913         virtual PHI nodes.  Delete parameter.
914         (if_convertible_loop_p_1): Delete argument to above function.
915         (predicate_all_scalar_phis): Delete code handling single-argument
916         PHIs.
917         (tree_if_conversion): Mark and update virtual SSA.
919 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
921         PR target/61821
922         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
923         (x86_elf_aligned_common): Rename to ...
924         (x86_elf_aligned_decl_common): ... this.
925         Add decl arg.  Switch to .lbss for largecomm object.  Use
926         LARGECOMM_SECTION_ASM_OP.
927         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
928         renaming.
929         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
930         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
931         Pass new decl arg.
932         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
933         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
935 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
937         PR target/59407
938         * config/i386/i386.c (SECTION_LARGE): Define.
939         (x86_64_elf_select_section): Set it for large data/bss sections.
940         Only clear SECTION_WRITE for .lrodata.
941         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
942         data/bss sections.
943         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
944         * varasm.c (default_elf_asm_named_section): Grow flagchars.
945         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
946         SECTION_MACH_DEP.
947         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
948         * doc/tm.texi: Regenerate.
950 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
952         PR bootstrap/70704
953         * configure.ac (--enable-checking): Document extra flag, for
954         non-release builds default to --enable-checking=yes,extra.
955         If misc checking and extra checking, define CHECKING_P to 2 instead
956         of 1.
957         * common.opt (fchecking=): Add.
958         * doc/invoke.texi (-fchecking=): Document.
959         * doc/install.texi: Document --enable-checking changes.
960         * configure: Regenerated.
961         * config.in: Regenerated.
963 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
965         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
966         attribute instead of which_alternative.
967         * config/i386/sse.md (*mov<mode>_internal): Ditto.
968         Use EXT_REX_SSE_REG_P where appropriate.
970 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
972         * config/i386/predicates.md (const0_operand): Do not match
973         const_wide_int code.
974         (const1_operand): Ditto.
976 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
978         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
979         for SSE constm1 operands and TARGET_AVX512VL.
980         (*movti_internal): Ditto.
981         (*mov<mode>_or): Use constm1_operand predicate.
982         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
983         for SSE vector_all_ones operands and TARGET_AVX512VL.
984         * config/i386/predicates.md (constm1_operand): New predicate.
985         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
986         emission of constant -1 load.
988 2016-04-25  Jason Merrill  <jason@redhat.com>
990         * gdbinit.in: Skip is-a.h.
992         * attribs.c (register_scoped_attributes): Fix logic.
993         * attribs.h: Declare register_scoped_attributes.
995 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
997         * config/rs6000/rs6000-builtin.def: Correct pasto error for
998         stxvd2x and stxvw4x built-in functions.
1000 2016-04-25  DJ Delorie  <dj@redhat.com>
1002         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1003         (ashrhi3): Likewise.
1004         (lshrhi3): Likewise.
1006 2016-04-25  Richard Biener  <rguenther@suse.de>
1008         PR tree-optimization/70780
1009         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1010         wasn't visited yet.
1011         (compute_antic): Mark blocks with abnormal preds as visited as
1012         they have a final empty antic-in solution already.
1014 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1016         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1018 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1020         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1021         mode is VQI to improve mixed mode vectorization.
1022         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1023         define_insn to match low half of signed vaddw.
1024         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1025         define_insn to match high half of signed vaddw.
1026         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1027         define_insn to match low half of unsigned vaddw.
1028         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1029         define_insn to match high half of unsigned vaddw.
1030         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1031         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1032         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1033         for new function.
1034         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1035         * config/arm/predicates.md (vect_par_constant_high): Support
1036         big endian and simplify by calling
1037         arm_simd_check_vect_par_cnst_half
1038         (vect_par_constant_low): Likewise.
1040 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1042         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1043         predicate for operand 2.
1045 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
1046             H.J. Lu  <hongjiu.lu@intel.com>
1048         * config/i386/i386-protos.h (standard_sse_constant_p): Add
1049         machine_mode argument.
1050         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1051         constm1_rtx operands.  For VOIDmode constants, get mode from
1052         pred_mode.  Check mode size if the mode is supported by ABI.
1053         (standard_sse_constant_opcode): Do not use standard_constant_p.
1054         Strictly check ABI support for all-ones operands.
1055         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1056         immediates. Update calls to standard_sse_constant_p.
1057         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1058         (ix86_rtx_costs): Ditto.
1059         * config/i386/i386.md (*movxi_internal_avx512f): Use
1060         nonimmediate_or_sse_const_operand instead of vector_move_operand.
1061         Use (v,BC) alternative instead of (v,C). Use register_operand
1062         checks instead of MEM_P.
1063         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1064         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
1065         isa attribute.  Use register_operand checks instead of MEM_P.
1066         (*movti_internal): Use nonimmediate_or_sse_const_operand for
1067         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
1068         alternative and corresponding sse2 isa attribute.
1069         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1070         to standard_sse_constant_p.
1071         (FP constant splitters): Ditto.
1072         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1073         (C): Ditto.
1074         * config/i386/predicates.md (constm1_operand): Remove.
1075         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1076         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1077         vector_all_ones_operand instead of constm1_operand.
1079 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1081         * print-rtl.c (print_rtx_insn_vec): New function.
1082         * print-rtl.h: New prototype.
1083         * store-motion.c (struct st_expr): Make avail_stores a vector.
1084         (st_expr_entry): Adjust.
1085         (free_st_expr_entry): Likewise.
1086         (print_store_motion_mems): Likewise.
1087         (find_moveable_store): Likewise.
1088         (compute_store_table): Likewise.
1089         (delete_store): Likewise.
1090         (build_store_vectors): Likewise.
1092 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1094         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1096 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1098         * vec.h (vec_safe_contains): New function.
1099         (vec::contains): Likewise.
1100         (vec::begin): Likewise.
1101         (vec::end): Likewise.
1103 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
1105         PR sanitizer/70712
1106         * cfgexpand.c (expand_stack_vars): Fix typo.
1108 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1110         * system.h (list, map, set, vector): Include conditionally.
1111         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1112         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1113         * ipa-icf.c (INCLUDE_LIST): Define.
1114         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1115         * config/sh/sh.c (INCLUDE_VECTOR): Define.
1116         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1117         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1118         * cp/logic.cc (INCLUDE_LIST): Define.
1119         * fortran/trans-common.c (INCLUDE_MAP): Define.
1121 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1123         * auto-profile.c: Remove <string.h> include.
1124         * ipa-icf-gimple.c: Remove <list> include.
1125         * diagnostic.c: Remove <new> include.
1126         * genmatch.c: Likewise.
1127         * pretty-print.c: Likewise.
1128         * toplev.c: Likewise
1129         * c/c-objc-common.c: Likewise.
1130         * cp/error.c: Likewise.
1131         * fortran/error.c: Likewise.
1133 2016-04-22  Richard Biener  <rguenther@suse.de>
1135         * lto-streamer-in.c (input_ssa_names): Do not allocate
1136         GIMPLE_NOP for all SSA names.
1137         * lto-streamer-out.c (output_ssa_names): Do not output
1138         SSA names that should have been released.
1140 2016-04-22  Richard Biener  <rguenther@suse.de>
1142         PR tree-optimization/70740
1143         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1144         VDEF.
1146 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
1148         PR target/70750
1149         * config/i386/predicates.md (call_insn_operand): Replace
1150         sibcall_memory_operand with memory_operand.
1152 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
1154         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1155         has_single_use() tests.
1156         (register_edge_assert_for_1): Likewise.
1157         (find_assert_locations_1): Check the liveness bitmap instead of
1158         checking has_single_use().
1160 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1162         PR target/70728
1163         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1164         Extract AVX-512BW constraint from AVX.
1166 2016-04-21  Richard Biener  <rguenther@suse.de>
1168         PR tree-optimization/70725
1169         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1170         for phi_convertible_by_degenerating_args.
1171         (predicate_all_scalar_phis): Handle single-argument PHIs.
1173 2016-04-21  Richard Biener  <rguenther@suse.de>
1175         PR middle-end/70747
1176         * fold-const.c (fold_comparison): Return properly typed
1177         constant boolean.
1179 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
1181         PR tree-optimization/70715
1182         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1183         after expanding BASE using expand_simple_operations.
1185 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1187         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1188         New transformations.
1190 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1192         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1194 2016-04-20  Jan Hubicka  <jh@suse.cz>
1196         * ipa-inline.c (can_inline_edge_p): Pass caller info to
1197         ultiimate_alias_target.
1198         (update_callee_keys): Likewise.
1199         (lookup_recursive_calls): Likewise.
1200         (speculation_useful_p): Likewise.
1202 2016-04-20  Jan Hubicka  <jh@suse.cz>
1204         PR ipa/70018
1205         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1206         (set_nothrow_flag_1): ... this; handle interposition correctly;
1207         recurse on aliases and thunks.
1208         (cgraph_node::set_nothrow_flag): New.
1209         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1210         functions compiled with non-call exceptions that binds to current
1211         def.
1212         (propagate_nothrow): Be safe WRT interposition.
1213         * cgraph.h (set_nothrow_flag): Update prototype.
1215 2016-04-18  Jan Hubicka  <jh@suse.cz>
1217         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1218         max_loop_iterations_int.
1219         (tree_unswitch_outer_loop): Likewise.
1221 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1223         PR tree-optimization/69489
1224         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1225         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1226         Revise dump message.
1227         (if_convertible_bb_p): Remove check on edge count of basic block's
1228         predecessors.
1230 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1232         PR tree-optimization/56625
1233         PR tree-optimization/69489
1234         * tree-data-ref.h (DR_INNERMOST): New macro.
1235         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1236         hashing struct innermost_loop_behavior.
1237         (ref_DR_map): Remove.
1238         (innermost_DR_map): New map.
1239         (baseref_DR_map): Revise comment.
1240         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1241         to innermost_DR_map accroding to its innermost loop behavior.
1242         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1243         to its innermost loop behavior.
1244         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1245         Add initialization for innermost_DR_map.  Record memory reference
1246         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1247         have innermost loop behavior.
1248         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
1249         innermost_DR_map.
1251 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
1253         * config/i386/i386.md (*lea<mode>_general_1): Rename from
1254         *lea_general_1.  Use explicit SWI12 mode interator.
1255         (*lea<mode>_general_2): Rename from *lea_general_2.
1256         Use explicit SWI12 mode interator.
1257         (*lea<mode>_general_3): Rename from *lea_general_3.
1258         Use explicit SWI12 mode interator.
1259         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1260         Use explicit SWI12 mode interator.
1261         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1262         Use explicit SWI48 mode interator.
1264 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1266         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1267         Short-cut unaligned load and store cases.  Handle all integer
1268         vector modes.
1269         (ix86_expand_vector_move_misalign): Short-cut unaligned load
1270         and store cases.  Call ix86_avx256_split_vector_move_misalign
1271         directly without checking mode class.
1273 2016-04-20  Andrew Pinski  <apinski@cavium.com>
1274             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1276         PR target/64971
1277         * config/aarch64/aarch64.md (sibcall): Force call
1278         address to be DImode for ILP32.
1279         (sibcall_value): Likewise.
1281 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1283         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1285 2016-04-20  Richard Biener  <rguenther@suse.de>
1287         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1288         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1289         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1290         (maybe_push_res_to_seq): Adjust.
1291         * gimple-fold.c (maybe_build_generic_op): Likewise.
1293 2016-04-20  Marek Polacek  <polacek@redhat.com>
1295         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1296         rather than true.
1298 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1300         * config/i386/sse.md (vec_unpacks_lo_hi): Always
1301         use kmovw to support AVX512F target.
1303 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1305         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1307 2016-04-20  Marek Polacek  <polacek@redhat.com>
1309         PR tree-optimization/70725
1310         * tree-if-conv.c (is_false_predicate): New function.
1311         (predicate_mem_writes): Use it.
1313 2016-04-20  Richard Biener  <rguenther@suse.de>
1315         PR tree-optimization/70726
1316         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1317         shift amounts from a pattern stmt operand.
1319 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1321         PR target/70674
1322         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1323         stack_restore_from_fpr pattern when restoring r15.
1324         (s390_optimize_prologue): Strip away the memory barrier in the
1325         parallel when trying to get rid of restore insns.
1326         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1327         definition for loading the stack pointer from an FPR.  Compared to
1328         the normal move insn this pattern includes a full memory barrier.
1330 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
1332         PR middle-end/70680
1333         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1334         implicitly linear or lastprivate iterator on the outer context.
1336 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1338         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1339         alignment check.
1340         * config/i386/i386.md (ssememalign): Removed.
1341         * config/i386/sse.md: Remove ssememalign attribute from patterns.
1343 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1345         PR target/69201
1346         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1347         const short * to __builtin_ia32_loaddquhi512_mask.
1348         (_mm512_maskz_loadu_epi16): Likewise.
1349         (_mm512_mask_storeu_epi16): Pass short * to
1350         __builtin_ia32_storedquhi512_mask.
1351         (_mm512_mask_loadu_epi8): Pass const char * to
1352         __builtin_ia32_loaddquqi512_mask.
1353         (_mm512_maskz_loadu_epi8): Likewise.
1354         (_mm512_mask_storeu_epi8): Pass char * to
1355         __builtin_ia32_storedquqi512_mask.
1356         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1357         const double * to __builtin_ia32_loadupd512_mask.
1358         (_mm512_mask_loadu_pd): Likewise.
1359         (_mm512_maskz_loadu_pd): Likewise.
1360         (_mm512_storeu_pd): Pass double * to
1361         __builtin_ia32_storeupd512_mask.
1362         (_mm512_mask_storeu_pd): Likewise.
1363         (_mm512_loadu_ps): Pass const float * to
1364         __builtin_ia32_loadups512_mask.
1365         (_mm512_mask_loadu_ps): Likewise.
1366         (_mm512_maskz_loadu_ps): Likewise.
1367         (_mm512_storeu_ps): Pass float * to
1368         __builtin_ia32_storeups512_mask.
1369         (_mm512_mask_storeu_ps): Likewise.
1370         (_mm512_mask_loadu_epi64): Pass const long long * to
1371         __builtin_ia32_loaddqudi512_mask.
1372         (_mm512_maskz_loadu_epi64): Likewise.
1373         (_mm512_mask_storeu_epi64): Pass long long *
1374         to __builtin_ia32_storedqudi512_mask.
1375         (_mm512_loadu_si512): Pass const int * to
1376         __builtin_ia32_loaddqusi512_mask.
1377         (_mm512_mask_loadu_epi32): Likewise.
1378         (_mm512_maskz_loadu_epi32): Likewise.
1379         (_mm512_storeu_si512): Pass int * to
1380         __builtin_ia32_storedqusi512_mask.
1381         (_mm512_mask_storeu_epi32): Likewise.
1382         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1383         char * to __builtin_ia32_storedquqi256_mask.
1384         (_mm_mask_storeu_epi8): Likewise.
1385         (_mm256_mask_loadu_epi16): Pass const short * to
1386         __builtin_ia32_loaddquhi256_mask.
1387         (_mm256_maskz_loadu_epi16): Likewise.
1388         (_mm_mask_loadu_epi16): Pass const short * to
1389         __builtin_ia32_loaddquhi128_mask.
1390         (_mm_maskz_loadu_epi16): Likewise.
1391         (_mm256_mask_loadu_epi8): Pass const char * to
1392         __builtin_ia32_loaddquqi256_mask.
1393         (_mm256_maskz_loadu_epi8): Likewise.
1394         (_mm_mask_loadu_epi8): Pass const char * to
1395         __builtin_ia32_loaddquqi128_mask.
1396         (_mm_maskz_loadu_epi8): Likewise.
1397         (_mm256_mask_storeu_epi16): Pass short * to.
1398         __builtin_ia32_storedquhi256_mask.
1399         (_mm_mask_storeu_epi16): Pass short * to.
1400         __builtin_ia32_storedquhi128_mask.
1401         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1402         const double * to __builtin_ia32_loadupd256_mask.
1403         (_mm256_maskz_loadu_pd): Likewise.
1404         (_mm_mask_loadu_pd): Pass onst double * to
1405         __builtin_ia32_loadupd128_mask.
1406         (_mm_maskz_loadu_pd): Likewise.
1407         (_mm256_mask_storeu_pd): Pass double * to
1408         __builtin_ia32_storeupd256_mask.
1409         (_mm_mask_storeu_pd): Pass double * to
1410         __builtin_ia32_storeupd128_mask.
1411         (_mm256_mask_loadu_ps): Pass const float * to
1412         __builtin_ia32_loadups256_mask.
1413         (_mm256_maskz_loadu_ps): Likewise.
1414         (_mm_mask_loadu_ps): Pass const float * to
1415         __builtin_ia32_loadups128_mask.
1416         (_mm_maskz_loadu_ps): Likewise.
1417         (_mm256_mask_storeu_ps): Pass float * to
1418         __builtin_ia32_storeups256_mask.
1419         (_mm_mask_storeu_ps): ass float * to
1420         __builtin_ia32_storeups128_mask.
1421         (_mm256_mask_loadu_epi64): Pass const long long * to
1422         __builtin_ia32_loaddqudi256_mask.
1423         (_mm256_maskz_loadu_epi64): Likewise.
1424         (_mm_mask_loadu_epi64): Pass const long long * to
1425         __builtin_ia32_loaddqudi128_mask.
1426         (_mm_maskz_loadu_epi64): Likewise.
1427         (_mm256_mask_storeu_epi64): Pass long long * to
1428         __builtin_ia32_storedqudi256_mask.
1429         (_mm_mask_storeu_epi64): Pass long long * to
1430         __builtin_ia32_storedqudi128_mask.
1431         (_mm256_mask_loadu_epi32): Pass const int * to
1432         __builtin_ia32_loaddqusi256_mask.
1433         (_mm256_maskz_loadu_epi32): Likewise.
1434         (_mm_mask_loadu_epi32): Pass const int * to
1435         __builtin_ia32_loaddqusi128_mask.
1436         (_mm_maskz_loadu_epi32): Likewise.
1437         (_mm256_mask_storeu_epi32): Pass int * to
1438         __builtin_ia32_storedqusi256_mask.
1439         (_mm_mask_storeu_epi32): Pass int * to
1440         __builtin_ia32_storedqusi128_mask.
1441         * config/i386/i386-builtin-types.def (PCSHORT): New.
1442         (PINT64): Likewise.
1443         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1444         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1445         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1446         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1447         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1448         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1449         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1450         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1451         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1452         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1453         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1454         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1455         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1456         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1457         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1458         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1459         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1460         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1461         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
1462         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
1463         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
1464         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
1465         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
1466         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
1467         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
1468         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
1469         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
1470         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
1471         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
1472         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
1473         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
1474         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
1475         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
1476         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
1477         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
1478         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
1479         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
1480         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
1481         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
1482         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
1483         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
1484         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
1485         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
1486         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
1487         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
1488         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
1489         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
1490         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
1491         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
1492         use UNSPEC_STOREU.
1493         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
1494         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
1495         load nor store.
1496         (ix86_expand_vector_move_misalign): Likewise.
1497         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
1498         to scalar function prototype for unaligned load/store builtins.
1499         (ix86_expand_special_args_builtin): Updated.
1500         * config/i386/sse.md (UNSPEC_LOADU): Removed.
1501         (UNSPEC_STOREU): Likewise.
1502         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
1503         (VI_ULOADSTORE_F_AVX512VL): Likewise.
1504         (ssescalarsize): Handle V4TI, V2TI and V1TI.
1505         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1506         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
1507         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
1508         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
1509         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
1510         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
1511         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
1512         (<avx512>_storedqu<mode>_mask): Likewise.
1513         (*sse4_2_pcmpestr_unaligned): Likewise.
1514         (*sse4_2_pcmpistr_unaligned): Likewise.
1515         (*mov<mode>_internal): Renamed to ...
1516         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
1517         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
1518         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
1519         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
1521 2016-04-19  Richard Biener  <rguenther@suse.de>
1523         PR tree-optimization/70171
1524         * tree-ssa-phiprop.c: Include stor-layout.h.
1525         (phiprop_insert_phi): Handle the aggregate copy case.
1526         (propagate_with_phi): Likewise.
1528 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
1530         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
1531         instead of simplify_gen_subreg (... , 0).
1532         (ix86_delegitimize_address): Ditto.
1533         (ix86_split_divmod): Ditto.
1534         (ix86_split_copysign_const): Ditto.
1535         (ix86_split_copysign_var): Ditto.
1536         (ix86_expand_args_builtin): Ditto.
1537         (ix86_expand_round_builtin): Ditto.
1538         (ix86_expand_special_args_builtin): Ditto.
1539         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
1540         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
1541         (udivmodqi4): Ditto.
1542         (absneg splitters): Ditto.
1543         (*jcc_bt<mode>_1): Ditto.
1545 2016-04-19  Richard Biener  <rguenther@suse.de>
1547         PR tree-optimization/70724
1548         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
1549         restoring out from ...
1550         (free_scc_vn): ... here.
1551         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
1552         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
1553         tail merging.
1554         (pass_fre::execute): Restore SSA info.
1556 2016-04-19  Richard Biener  <rguenther@suse.de>
1558         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
1559         * gimple-walk.c (walk_gimple_op): Initialize it.
1560         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
1561         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
1562         remapping SSA names of defs.
1563         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
1564         adjustment.
1566 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
1568         PR middle-end/70689
1569         * lra-constraints.c (equiv_substition_p): New.
1570         (process_alt_operands): Use it.
1571         (swap_operands): Swap it.
1572         (curr_insn_transform): Update it.
1574 2016-04-18  Michael Matz  <matz@suse.de>
1576         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
1577         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
1578         * tree-core.h (tree_type_common.align): Use bit-field.
1579         (tree_type_common.spare): New.
1580         (tree_decl_common.off_align): Make smaller.
1581         (tree_decl_common.align): Use bit-field.
1583         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
1584         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
1585         (scan_sharing_clauses): Ditto.
1586         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1587         (omp_finish_file): Ditto.
1588         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
1589         (layout_decl): Ditto.
1590         (relayout_decl): Ditto.
1591         (finalize_record_size): Use SET_TYPE_ALIGN.
1592         (finalize_type_size): Ditto.
1593         (finish_builtin_struct): Ditto.
1594         (layout_type): Ditto.
1595         (initialize_sizetypes): Ditto.
1596         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
1597         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
1598         (lookup_field_for_decl): Use SET_DECL_ALIGN.
1599         (get_chain_field): Ditto.
1600         (get_trampoline_type): Ditto.
1601         (get_nl_goto_field): Ditto.
1602         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
1603         SET_DECL_ALIGN.
1604         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
1605         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
1606         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
1607         (build_qualified_type): Use SET_TYPE_ALIGN.
1608         (build_aligned_type, build_range_type_1): Ditto.
1609         (build_atomic_base): Ditto.
1610         (build_common_tree_nodes): Ditto.
1611         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
1612         (expand_one_stack_var_at): Ditto.
1613         * coverage.c (build_var): Use SET_DECL_ALIGN.
1614         * except.c (init_eh): Ditto.
1615         * function.c (assign_parm_setup_block): Ditto.
1616         * symtab.c (increase_alignment_1): Ditto.
1617         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
1618         * tree-vect-stmts.c (ensure_base_align): Ditto.
1619         * varasm.c (align_variable): Ditto.
1620         (assemble_variable): Ditto.
1621         (build_constant_desc): Ditto.
1622         (output_constant_def_contents): Ditto.
1624         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
1625         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
1626         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
1627         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
1628         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
1630 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
1632         PR target/70708
1633         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
1634         replace %vmovsd with "%vmovq".
1635         (vec_concatv2df): Likewise.
1637 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
1639         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
1640         (*vec_extractv2si_0): Ditto.
1641         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
1642         (zero_extended_scalar_load_operand splitters): Ditto.
1643         (vec_extract splitters): Ditto.
1644         (*vec_extractv4si_0_zext): Ditto.
1645         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
1646         and lowpart_subreg.
1647         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
1648         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
1649         (*sse4_1_extractps): Use lowpart_subreg.
1651 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1653         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
1654         gld requirements.
1655         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
1656         Mention Solaris 11 packaging changes.
1657         Update gas and gld requirements.
1658         Remove reference to pre-Solaris 10 bug.
1659         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
1660         systems and bugs.
1661         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
1662         with cc.
1664 2016-04-17  Jan Hubicka  <jh@suse.cz>
1666         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
1667         max_loop_iterations_int.
1669 2016-04-18  Richard Biener  <rguenther@suse.de>
1671         PR tree-optimization/43434
1672         * tree-ssa-structalias.c (struct vls_data): New.
1673         (visit_loadstore): Handle all pointer-based accesses.
1674         (compute_dependence_clique): Compute a bitmap of restrict tags
1675         assigned bases and pass it to visit_loadstore.
1677 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
1679         PR target/70711
1680         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
1681         armv8.1-a and armv8.1-a+crc.
1683 2016-04-18  Richard Biener  <rguenther@suse.de>
1685         PR tree-optimization/70701
1686         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
1687         references after translating through a memcpy.
1689 2016-04-18  Richard Biener  <rguenther@suse.de>
1691         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
1692         (compute_antic): ... here.  For partial antic use regular
1693         postorder and scrap iteration.
1694         (compute_partial_antic_aux): Remove unused return value.
1695         (init_pre): Do not allocate postorder.
1696         (fini_pre): Do not free postorder.
1698 2016-04-18  Richard Biener  <rguenther@suse.de>
1700         PR middle-end/37870
1701         * expmed.c (extract_bit_field_1): Remove broken case
1702         using a wider MODE_INT mode.
1704 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
1706         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
1707         unless compiling with at least GCC-4.8.
1709 2016-04-17  Jan Hubicka  <jh@suse.cz>
1711         PR bootstrap/70706
1712         * graphite.c (graphite_finalize): Update call to
1713         tree_estimate_probability.
1714         * predict.h (tree_estimate_probability): Update prototype.
1716 2016-04-17  Jan Hubicka  <jh@suse.cz>
1718         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
1719         (tree_estimate_probability): Likewise.
1720         (pass_profile::execute): Update.
1721         (report_predictor_hitrates): New function.
1722         * profile.c (compute_branch_probabilities): Use it.
1723         * predict.h (report_predictor_hitrates): Declare.
1725 2016-04-17  Jan Hubicka  <jh@suse.cz>
1727         PR ipa/70018
1728         * cgraph.h (cgraph_node::set_const_flag,
1729         cgraph_node::set_pure_flag): Update prototype to return bool;
1730         update comment.
1731         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
1732         of interposable symbol are interposable, too.
1733         (cgraph_set_const_flag_1): Rename to ...
1734         (set_const_flag_1): ... this one; change to self recursive function
1735         instead of call_for_symbol_thunks_and_aliases. Handle correctly
1736         clearnig the flag in all variants and also virtual thunks of const
1737         functions are pure; track if any change was done.
1738         (cgraph_node::set_const_flag): Update.
1739         (struct set_pure_flag_info): New struct.
1740         (cgraph_set_pure_flag_1): Rename to ...
1741         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
1742         rather than pointer encoded flags; track if any changes was done;
1743         handle correctly clearning flag and setting flag of aliases already
1744         declared const.
1745         (cgraph_node::set_pure_flag): Update.
1746         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
1748 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1750         PR other/70433
1751         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
1752         backslash in label.
1754 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1756         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
1757         '{}<> ' as escape-for-record.
1759 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1761         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
1762         structure.
1764 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1766         PR other/70185
1767         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
1768         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
1769         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
1770         * passes.c (finish_optimization_passes): Only call
1771         finish_graph_dump_file if dfi->graph_dump_initialized.
1772         (execute_function_dump, pass_init_dump_file): Use
1773         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
1775 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1777         PR tree-optimization/70256
1778         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
1779         (debug_varmap): New function.
1781 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1783         PR other/70183
1784         * passes.c (pass_manager::register_pass): Propagate pflags.
1786 2016-04-17  Tom de Vries  <tom@codesourcery.com>
1788         PR other/68875
1789         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
1790         * passes.c (pass_manager::pass_manager): Declare and init p_start in
1791         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
1792         check if it's equal to p_start.
1793         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
1795 2016-04-15  Jan Hubicka  <jh@suse.cz>
1797         PR ipa/70018
1798         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
1799         function does not bind to current def.
1800         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
1801         handle conservatively calls to functions that does not need to bind
1802         to current def.
1803         (check_call): Update call of worse_state.
1804         (ignore_edge_for_nothrow): Update.
1805         (ignore_edge_for_pure_const): Likewise.
1806         (propagate_pure_const): Update calls to worse_state.
1807         (skip_function_for_local_pure_const): Reformat comments.
1809 2016-04-15  Jan Hubicka  <jh@suse.cz>
1811         PR ipa/70018
1812         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
1813         (cgraph_node::function_symbol): Likewise.
1814         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1815         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
1816         (symtab_node::ultimate_alias_target): Add REF parameter.
1817         (symtab_node::binds_to_current_def_p): Declare.
1818         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
1819         (cgraph_node::function_symbol): Likewise.
1820         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
1821         (cgraph_node::get_availability): Likewise.
1822         (cgraph_edge::binds_to_current_def_p): New inline function.
1823         (varpool_node::get_availability): Add REF parameter.
1824         (varpool_node::ultimate_alias_target): Likewise.
1825         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
1826         (symtab_node::binds_to_current_def_p): Likewise.
1827         * varpool.c (varpool_node::get_availability): Likewise.
1829 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
1831         PR target/70662
1832         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
1833         Fix mode size check.
1835 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
1837         * BASE-VER: Set to 7.0.0.
1839 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
1841         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
1843 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1845         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
1846         architecture revisions.
1848 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
1850         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
1851         * config/i386/i386.c (ix86_using_red_zone): No longer static.
1852         * config/i386/i386.md (stack decrement to push peepholes): Guard
1853         with !x86_using_red_zone ().
1855 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
1857         PR c++/70675
1858         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
1859         to dump_generic_node.
1860         (NIY): Pass also flags to do_niy.
1862 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
1864         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
1865         (simd_clone_vector_of_formal_parm_types)
1866         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
1867         (simd_clone_mangle, simd_clone_create)
1868         (simd_clone_adjust_return_type, create_tmp_simd_array)
1869         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
1870         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
1871         (ipa_simd_modify_function_body, simd_clone_linear_addend)
1872         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
1873         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
1874         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
1875         * omp-simd-clone.c: ... this new file.
1876         (simd_clone_vector_of_formal_parm_types): Make it static.
1877         * Makefile.in (OBJS): Add omp-simd-clone.o.
1879 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
1881         PR target/70662
1882         * config/i386/sse.md: Use proper memory operand modifiers.
1885 2016-04-15  Richard Biener  <rguenther@suse.de>
1886         Alan Modra  <amodra@gmail.com>
1888         PR tree-optimization/70130
1889         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
1890         when alignment stays not the same and no not use the realign
1891         scheme then.
1893 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
1895         PR target/70669
1896         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
1897         direct move handlers for KFmode. Change TFmode handlers test from
1898         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
1900 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
1902         PR c++/70594
1903         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
1904         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
1905         (inlined_polymorphic_ctor_dtor_block_p): Use it.
1906         * tree-ssa-live.c (remove_unused_scope_block_p): When
1907         in_ctor_dtor_block, avoid discarding not just BLOCKs with
1908         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
1909         block_ultimate_origin is FUNCTION_DECL.
1910         (remove_unused_locals): If current_function_decl is
1911         polymorphic_ctor_dtor_p, pass initial true to
1912         remove_unused_scope_block_p' is_ctor_dtor_block.
1914 2016-04-14  Martin Sebor  <msebor@redhat.com>
1916         PR c++/69517
1917         PR c++/70019
1918         PR c++/70588
1919         * doc/extend.texi (Variable Length): Revert.
1921 2016-04-14  Marek Polacek  <polacek@redhat.com>
1922             Jan Hubicka  <hubicka@ucw.cz>
1924         PR c++/70029
1925         * tree.c (verify_type): Disable the canonical type of main variant
1926         check.
1928 2016-04-14  Jason Merrill  <jason@redhat.com>
1930         * cfgexpand.c, expr.c: Revert previous change.
1932 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
1934         PR middle-end/70643
1935         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
1936         when building a mem ref for the incoming reduction variable.
1938 2016-04-14  Richard Biener  <rguenther@suse.de>
1940         PR tree-optimization/70614
1941         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
1942         loop if the evolution dropped to chrec_dont_know.
1943         (interpret_condition_phi): Likewise.
1945 2016-04-14  Richard Biener  <rguenther@suse.de>
1947         PR tree-optimization/70623
1948         * tree-ssa-pre.c (changed_blocks): Make global ...
1949         (compute_antic): ... local here.  Move and fix worklist
1950         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
1951         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
1952         worklist handling, dump when ANTIC_IN changed.
1953         (compute_partial_antic_aux): Remove worklist handling.
1954         (init_pre): Do not compute post dominators.  Add a comment about
1955         the CFG order chosen.
1956         (fini_pre): Do not free post dominators.
1958 2016-04-13  Martin Sebor  <msebor@redhat.com>
1960         PR c++/69517
1961         PR c++/70019
1962         PR c++/70588
1963         * doc/extend.texi (Variable Length): Document C++ specifics.
1965 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
1967         PR c++/70641
1968         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
1969         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
1970         eh edges have been purged.
1972         PR c++/70594
1973         * tree-sra.c (create_access_replacement,
1974         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
1975         gets fancy name.
1976         * tree-pretty-print.c (dump_fancy_name): New function.
1977         (dump_decl_name, dump_generic_node): Use it.
1979 2016-04-13  Jason Merrill  <jason@redhat.com>
1981         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
1982         * expr.c (expand_expr_real_1): Likewise.
1984 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
1986         * config/i386/i386.md (kunpckhi): Swap operands.
1987         (kunpcksi): Likewise.
1988         (kunpckdi): Likewise.
1989         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
1990         (vec_pack_trunc_<mode>): Likewise.
1992 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
1994         PR debug/70628
1995         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
1997         PR middle-end/70633
1998         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
1999         gimplification turns some element into non-constant.
2001         PR debug/70628
2002         * rtl.h (convert_memory_address_addr_space_1): New prototype.
2003         * explow.c (convert_memory_address_addr_space_1): No longer static,
2004         add NO_EMIT argument and don't call convert_modes if true, pass
2005         it down recursively, remove break after return.
2006         (convert_memory_address_addr_space): Adjust caller.
2007         * simplify-rtx.c (simplify_unary_operation_1): Call
2008         convert_memory_address_addr_space_1 instead of convert_memory_address,
2009         if it returns NULL, don't simplify.
2011 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2013         PR target/70630
2014         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2016 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2018         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2019         Bump the upper SIMDLEN limits, so that if the return type or
2020         characteristic type if the return type is void can be passed in
2021         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2022         allowed.
2024 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2026         PR target/70640
2027         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2028         Do not use "=" constraint on an input constraint.
2029         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2030         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2031         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2032         generates (neg (abs ...)) instead of (abs ...).
2034 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2036         PR rtl-optimization/70596
2037         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2038         just invalidate LRA data and reset them.  Adjust dump wording.
2040 2016-04-12  Martin Liska  <mliska@suse.cz>
2042         Revert
2043         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2045         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2046         estimates here.
2047         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2048         max_loop_iterations_int.
2049         (tree_unswitch_outer_loop): Likewise.
2050         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2051         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2053 2016-04-12  Tom de Vries  <tom@codesourcery.com>
2055         PR tree-optimization/68756
2056         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2057         instead of new_name.
2059 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2061         PR tree-optimization/70602
2062         * tree-sra.c (generate_subtree_copies): Don't write anything into
2063         constant pool decls.
2065         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2066         regardless whether there are depend clauses or not.
2068 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2070         PR target/70381
2071         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2072         target attribute and pragma from changing the -mfloat128
2073         and -mfloat128-hardware options.
2075         * doc/extend.texi (Additional Floating Types): Document PowerPC
2076         __float128 restrictions.
2078 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2080         PR target/70133
2081         * config/aarch64/driver-aarch64.c
2082         (aarch64_get_extension_string_for_isa_flags): New.
2083         (arch_extension): Rename to...
2084         (aarch64_arch_extension): ...This.
2085         (ext_to_feat_string): Rename to...
2086         (aarch64_extensions): ...This.
2087         (aarch64_core_data): Keep track of architecture extension flags.
2088         (cpu_data): Rename to...
2089         (aarch64_cpu_data): ...This.
2090         (aarch64_arch_driver_info): Keep track of architecture extension
2091         flags.
2092         (get_arch_name_from_id): Rename to...
2093         (get_arch_from_id): ...This, change return type.
2094         (host_detect_local_cpu): Update and reformat for renames, handle
2095         extensions through common infrastructure.
2097 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2099         PR target/70133
2100         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2101         track of a canonical flag name.
2102         (all_extensions): Likewise.
2103         (arch_to_arch_name): Also track extension flags enabled by the arch.
2104         (all_architectures): Likewise.
2105         (aarch64_parse_extension): Move to here.
2106         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2107         rework.
2108         (aarch64_rewrite_selected_cpu): Update for above change.
2109         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2110         are handled, such that the single explicit value enabled by an
2111         extension is kept seperate from the implicit values it also enables.
2112         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2113         to here.
2114         (aarch64_parse_extension): New.
2115         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2116         here to config/aarch64/aarch64-protos.h.
2117         (aarch64_parse_extension): Move from here to
2118         common/config/aarch64/aarch64-common.c.
2119         (aarch64_option_print): Update.
2120         (aarch64_declare_function_name): Likewise.
2121         (aarch64_start_file): Likewise.
2122         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2123         the canonical flag for extensions.
2124         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2125         flags.
2127 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2129         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2130         AARCH64_FL_CRC.
2132 2016-04-09  Tom de Vries  <tom@codesourcery.com>
2134         PR tree-optimization/68953
2135         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2136         first to last subscript.
2138 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
2140         PR tree-optimization/70586
2141         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2142         for any calls.
2144 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
2146         PR lto/70289
2147         PR ipa/70348
2148         PR tree-optimization/70373
2149         PR middle-end/70533
2150         PR middle-end/70534
2151         PR middle-end/70535
2152         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2153         clauses for acc parallel reductions as necessary.  Error on those
2154         that are private.
2155         * omp-low.c (scan_sharing_clauses): Don't install variables which
2156         are used in acc parallel reductions.
2157         (lower_rec_input_clauses): Remove dead code.
2158         (lower_oacc_reductions): Add support for reference reductions.
2159         (lower_reduction_clauses): Remove dead code.
2160         (lower_omp_target): Don't remap variables appearing in acc parallel
2161         reductions.
2162         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2164 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
2166         PR middle-end/70593
2167         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2168         with multiple SSA_NAME defs, force the outputs other than first
2169         to be live before calling live_track_process_def on each output.
2171         PR rtl-optimization/70574
2172         * fwprop.c (forward_propagate_and_simplify): Don't add
2173         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2174         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2175         paradoxical subregs within *loc.
2177 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
2179         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2180         -ftree-parallelize-loops={0,1}.
2181         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2182         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2183         * config/ia64/hpux.h (LIB_SPEC): Likewise.
2184         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2185         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2187 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
2189         PR sanitizer/70541
2190         * asan.c (instrument_derefs): If we get unknown location, extract it
2191         with EXPR_LOCATION.
2192         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2194 2016-04-08  Tom de Vries  <tom@codesourcery.com>
2196         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2197         implicit firstprivate clause.
2199 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2201         PR target/70566
2202         * config/arm/thumb2.md (tst + branch-> lsls + branch
2203         peephole below *orsi_not_shiftsi_si): Require that condition
2204         register is dead after the peephole.
2205         (second peephole after the above): Likewise.
2207 2016-04-08  Alan Modra  <amodra@gmail.com>
2209         PR target/70117
2210         * builtins.c (fold_builtin_classify): For IBM extended precision,
2211         look at just the high-order double to test for NaN.
2212         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
2213         test just the high double for Inf but both doubles for subnormal
2214         limit.
2216 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
2218         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2219         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2220         node->simdclone->mask_mode != VOIDmode masks.
2221         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
2222         earlier, use it instead of node->simdclone.
2223         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2224         Set clonei->mask_mode.
2226 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
2228         PR c/70436
2229         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2230         Pass it through to cp_parser_already_scoped_statement.
2231         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
2232         it through to cp_parser_statement.
2233         (cp_parser_statement): Pass IF_P through to
2234         cp_parser_iteration_statement.
2235         (cp_parser_pragma): Adjust call to
2236         cp_parser_iteration_statement.
2238 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
2240         PR c/70436
2241         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2242         resolve a future -Wparentheses warning.
2243         * omp-low.c (scan_sharing_clauses): Likewise.
2244         * tree-parloops.c (eliminate_local_variables): Likewise.
2246 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
2248         PR rtl-optimization/70398
2249         * lra-constraints.c (process_address_1): Check zero scale and code
2250         for reloading with zero scale.
2252 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
2254         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2255         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2257 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
2259         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2260         Add support for AVX512F clones, include them by default for
2261         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
2262         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2263         up to 128.
2265         PR middle-end/70550
2266         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2267         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2268         firstprivate clauses.
2269         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2270         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2271         (lower_omp_target): Set TREE_NO_WARNING for
2272         non-addressable possibly uninitialized vars which are copied into
2273         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2275 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
2277         * config/pa/predicates.md (integer_store_memory_operand): Accept
2278         REG+D operands with a large offset when reload_in_progress is true.
2279         (floating_point_store_memory_operand): Likewise.
2281 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2283         PR c++/70336
2284         * match.pd (nested int casts): Limit to GIMPLE.
2286 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
2288         PR ipa/66223
2289         * ipa-devirt.c (maybe_record_node): Fix comment; use
2290         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2292 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2294         PR rtl-optimization/70542
2295         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2296         if there are any uses other than insn or debug insns.
2298 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
2299             Jakub Jelinek  <jakub@redhat.com>
2301         PR tree-optimization/70509
2302         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2303         Shift HOST_WIDE_INT_1U instead of 1.
2305 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
2307         PR tree-optimization/70509
2308         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2309         of the vector base type for index.
2311 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
2313         PR target/70510
2314         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2316 2016-04-05  Richard Biener  <rguenther@suse.de>
2318         PR tree-optimization/70526
2319         * tree-sra.c (build_ref_for_offset): Use prev_base to
2320         extract the alias pointer type.
2322 2016-04-05  Richard Biener  <rguenther@suse.de>
2324         * dse.c (struct store_info): Remove alias_set member.
2325         (struct read_info_type): Likewise.
2326         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2327         spill_deleted, clear_alias_set_lookup): Remove.
2328         (get_group_info): Remove dead base == NULL_RTX case.
2329         (dse_step0): Remove initialization of removed variables.
2330         (delete_dead_store_insn): Reomve alias set dumping.
2331         (free_read_records): Remove alias_set handling.
2332         (canon_address): Remove alias_set_out parameter.
2333         (record_store): Remove spill_alias_set, it's always zero.
2334         (check_mem_read_rtx): Likewise.
2335         (dse_step2): Rename from ...
2336         (dse_step2_nospill): ... this.  Adjust.
2337         (scan_stores): Rename from ...
2338         (scan_stores_nospill): ... this.
2339         (scan_reads): Rename from ...
2340         (scan_reads_nospill): ... this.
2341         (scan_stores_spill, scan_reads_spill): Remove.
2342         (dse_step3_scan): Remove for_spills argument which is always false.
2343         (dse_step3): Likewise.
2344         (dse_step5): Rename from ...
2345         (dse_step5_nospill): ... this.  Remove alias_set handling.
2346         (rest_of_handle_dse): Adjust.
2348 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2350         PR target/70525
2351         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2352         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2353         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2354         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2356 2016-04-05  Richard Biener  <rguenther@suse.de>
2358         PR middle-end/70499
2359         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2360         non-register type temporaries into SSA.
2362 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
2364         PR ipa/66223
2365         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2366         calls when sanitizing.
2367         (possible_polymorphic_call_target_p): Fix formatting.
2369 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2370             Jakub Jelinek <jakub@redhat.com>
2372         PR middle-end/70457
2373         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2374         to ensure a call statement is compatible with a built-in's
2375         prototype.
2376         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2377         Likewise.
2379 2016-04-04  Richard Biener  <rguenther@suse.de>
2381         PR rtl-optimization/70484
2382         * rtl.h (canon_output_dependence): Declare.
2383         * alias.c (canon_output_dependence): New function.
2384         * dse.c (record_store): Use canon_output_dependence rather
2385         than canon_true_dependence.
2387 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2389         PR ipa/68881
2390         * cgraph.h (symtab_node::copy_visibility_from): New function.
2391         * symtab.c (symtab_node::copy_visibility_from): New function.
2392         * ipa-visibility.c (optimize_weakref): New function.
2393         (function_and_variable_visibility): Use it.
2395 2016-04-04  Martin Liska  <mliska@suse.cz>
2397         PR hsa/70402
2398         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2399         value that is really in range handled by SBR instruction.
2400         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2401         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2402         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2404 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
2406         PR target/70416
2407         PR target/67391
2408         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2409         set, but not for SP_REG operands.
2411 2016-04-02  Martin Sebor  <msebor@redhat.com>
2413         PR c++/67376
2414         * fold-const.c (maybe_nonzero_address): New function.
2415         (fold_comparison): Call it.  Fold equality and relational
2416         expressions involving null pointers.
2417         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2419 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
2421         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2422         the "Y" constraint (scalar FP 0.0 immediate).
2424         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2425         Add the "const_double" to the list of operand constraints.
2427 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
2429         PR rtl-optimization/70467
2430         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2431         If low word of the last operand is 0, just emit addition/subtraction
2432         for the high word.
2434 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2436         PR target/70404
2437         * config/s390/s390.c (s390_expand_insv): Check for everything
2438         constant instead of just VOIDmode stuff.
2440 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2442         PR target/70496
2443         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2445 2016-04-01  Nathan Sidwell  <nathan@acm.org>
2447         * tree.def (TRY_CATCH_EXPR): Correct documentation.
2449 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2451         PR rtl-optimization/70461
2452         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2453         is necessary.
2455 2016-03-31  Martin Liska  <mliska@suse.cz>
2457         PR hsa/70399
2458         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2459         a tree value or an immediate integer value to a buffer
2460         that is eventually copied to a BRIG section.
2461         (emit_immediate_operand): Call the function here.
2462         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
2463         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
2464         of class' fields that are removed.
2465         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
2466         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
2467         m_brig_repr_size fields.
2469 2016-03-31  Martin Liska  <mliska@suse.cz>
2471         PR hsa/70391
2472         * hsa-gen.c (hsa_function_representation::update_dominance): New
2473         function.
2474         (convert_addr_to_flat_segment): Likewise.
2475         (gen_hsa_memory_set): New alignment argument.
2476         (gen_hsa_ctor_assignment): Likewise.
2477         (gen_hsa_insns_for_single_assignment): Provide alignment
2478         to gen_hsa_ctor_assignment.
2479         (gen_hsa_insns_for_direct_call): Add new argument.
2480         (expand_lhs_of_string_op): New function.
2481         (expand_string_operation_builtin): Likewise.
2482         (expand_memory_copy): New function.
2483         (expand_memory_set): New function.
2484         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
2485         (convert_switch_statements): Change signature.
2486         (generate_hsa): Use a return value of the function.
2487         (pass_gen_hsail::execute): Do not call
2488         convert_switch_statements here.
2489         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
2490         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
2491         (hsa_function_representation::update_dominance): New function.
2493 2016-03-31  Martin Liska  <mliska@suse.cz>
2495         PR hsa/70391
2496         * hsa-brig.c (emit_directive_variable): Emit alignment
2497         according to hsa_symbol::m_align.
2498         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
2499         (dump_hsa_symbol): Dump alignment of HSA symbols.
2500         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
2501         (gen_hsa_addr_with_align): New function.
2502         (hsa_bitmemref_alignment): Use newly added function.
2503         (gen_hsa_insns_for_load): Likewise.
2504         (gen_hsa_insns_for_store): Likewise.
2505         (gen_hsa_memory_copy): New argument added.
2506         (gen_hsa_insns_for_single_assignment): Respect
2507         alignment for assignments processed via gen_hsa_memory_copy.
2508         (gen_hsa_insns_for_direct_call): Likewise.
2509         (gen_hsa_insns_for_return): Likewise.
2510         (gen_function_def_parameters): Set default alignment.
2511         * hsa.c (hsa_object_alignment): New function.
2512         (hsa_byte_alignment): Pasted function.
2513         * hsa.h (hsa_symbol::m_align): New field.
2515 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
2517         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
2518         scratch field for goto case.
2520 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
2522         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
2524 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
2526         PR target/70442
2527         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
2528         (scalar_chain::convert_insn): Call convert_op for reg
2529         moves to handle undefined registers.
2531 2016-03-31  Nathan Sidwell  <nathan@acm.org>
2533         PR c++/70393
2534         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
2535         Assert we don't want to move backwards.
2537 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
2539         PR target/70453
2540         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
2542 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
2544         PR rtl-optimization/70460
2545         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
2546         with operand from REG_LABEL_OPERAND, instead substitute
2547         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
2548         Don't do anything for REG_NON_LOCAL_GOTO jumps.
2550 2016-03-31  Martin Liska  <mliska@suse.cz>
2552         * passes.c (execute_one_pass): Do not call
2553         todo_after for a discarded function.
2555 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
2557         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
2558         (no_cost, infinite_cost): Initialize the new field.
2559         (get_computation_cost_at): Record setup cost.
2560         (determine_use_iv_cost_address): Skip cost computation for sub
2561         uses if we can estimate it without losing accuracy.
2563 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2565         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2566         estimates here.
2567         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2568         max_loop_iterations_int.
2569         (tree_unswitch_outer_loop): Likewise.
2570         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2571         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2573 2016-03-30  Richard Biener  <rguenther@suse.de>
2575         PR middle-end/70450
2576         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
2578 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
2580         PR target/70421
2581         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
2582         in gen_blendm expander.
2584 2016-03-30  Nick Clifton  <nickc@redhat.com>
2586         PR target/62254
2587         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
2588         case where we are already provided with an SImode SUBREG.
2590 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
2592         PR target/70439
2593         * config/i386/i386.c (ix86_expand_epilogue): Properly check
2594         conflict between DRAP register and __builtin_eh_return.
2596 2016-03-30  Michael Matz  <matz@suse.de>
2597             Richard Biener  <rguenther@suse.de>
2599         PR ipa/12392
2600         * ipa-polymorphic-call.c (struct type_change_info): Change
2601         speculative to an unsigned allowing to limit the work we do.
2602         (csftc_abort_walking_p): New inline function..
2603         (check_stmt_for_type_change): Limit the number of may-defs
2604         skipped for speculative devirtualization to
2605         max-speculative-devirt-maydefs.
2606         * params.def (max-speculative-devirt-maydefs): New param.
2607         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
2609 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
2611         PR target/63890
2612         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
2613         and TARGET_MACHO.
2615 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
2617         PR tree-optimization/59124
2618         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
2619         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
2621 2016-03-29  Jeff Law  <law@redhat.com>
2623         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
2625 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
2627         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
2628         to HOST_WIDE_INT.
2630 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
2632         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
2633         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
2634         gcrt0.o if linking dynamically.
2636 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
2638         PR ipa/70283
2639         * ipa-devirt.c (methods_equal_p): New function.
2640         (compare_virtual_tables): Use it.
2641         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
2642         * cgraphclones.c (clone_function_name_1): Use
2643         symbol_table::symbol_suffix_separator.
2644         * coverage.c (build_var): Likewise.
2645         * symtab.c (symbol_table::symbol_suffix_separator): New.
2647 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
2649         PR rtl-optimization/70429
2650         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
2651         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
2652         mode != result_mode.
2654         PR c++/70353
2655         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
2657         PR tree-optimization/70405
2658         * ssa-iterators.h (num_imm_uses): Add missing braces.
2660 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
2662         PR rtl-optimization/68695
2663         * ira-color.c (allocno_copy_cost_saving): New.
2664         (improve_allocation): Use it.
2666 2016-03-29  Richard Henderson  <rth@redhat.com>
2668         PR middle-end/70355
2669         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
2671 2016-03-29  Richard Biener  <rguenther@suse.de>
2673         PR middle-end/70424
2674         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
2675         use alignment returned by get_pointer_alignment_1 if it is
2676         bigger than BITS_PER_UNIT.
2677         * builtins.c (get_pointer_alignment_1): Do not return true
2678         for alignment extracted from SSA info.
2680 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
2682         * config/ft32/ft32.opt (mnodiv): New.
2683         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
2684         * doc/invoke.texi (FT32 Options -mnodiv): New.
2686 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
2688         PR target/70406
2689         * config/i386/i386.md (define_split, andn): Fix modes.
2691 2016-03-26  Richard Biener  <rguenther@suse.de>
2692             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
2694         PR ipa/70366
2695         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
2696         instead of
2697         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
2698         as 2nd argument to cl_optimization_restore().
2700 2016-03-25  Richard Henderson  <rth@redhat.com>
2702         PR target/70120
2703         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
2704         * config/aarch64/aarch64-protos.h: Declare it.
2705         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
2707 2016-03-25  Alan Modra  <amodra@gmail.com>
2709         PR target/70052
2710         * config/rs6000/constraints.md (j): Simplify.
2711         * config/rs6000/predicates.md (easy_fp_constant): Exclude
2712         decimal float 0.D.
2713         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
2714         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
2715          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
2716         in all constraint alternatives.
2717         (movtd_64bit_nodm): Delete "j" constraint alternative.
2719 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
2721         * tree-ssa-propagate.c: Enhance docs for
2722         SSA_PROP_NOT_INTERESTING.
2724 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
2726         * doc/extend.texi: Fix typo in documentation to pure attribute.
2728 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
2730         PR target/70319
2731         * config/pa/pa.md (bswapdi2): Use a scratch register.
2733 2016-03-24  Richard Henderson  <rth@redhat.com>
2735         PR middle-end/69845
2736         * fold-const.c (extract_muldiv_1): Correct test for multiplication
2737         overflow.
2739 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
2741         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
2742         using ix86_expand_binary_operator instead of gen_andsi3.
2744 2016-03-24  Richard Biener  <rguenther@suse.de>
2746         PR tree-optimization/70396
2747         * tree-vect-stmts.c (vectorizable_comparison): Use
2748         get_vectype_for_scalar_type.
2750 2016-03-24  Richard Biener  <rguenther@suse.de>
2752         PR middle-end/70370
2753         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
2754         with register bases.
2756 2016-03-24  Richard Biener  <rguenther@suse.de>
2758         PR tree-optimization/70372
2759         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
2760         build_all_ones_cst to also handle vector types correctly.
2762 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
2764         PR target/70381
2765         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
2766         -mfloat128 here.
2768 2016-03-23  Marek Polacek  <polacek@redhat.com>
2770         PR c++/69884
2771         * doc/invoke.texi: Document -Wignored-attributes.
2773 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
2775         PR tree-optimization/69042
2776         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
2777         parameter from 30 to 40.
2779 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
2781         PR tree-optimization/69042
2782         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
2783         for use with constant offset stripped in base.
2785 2016-03-23  Richard Biener  <rguenther@suse.de>
2787         PR middle-end/70251
2788         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
2789         mode compatibility check.
2790         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2792 2016-03-23  Jeff Law  <law@redhat.com>
2794         PR tree-optimization/64058
2795         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
2796         CONFLICT_COUNT.
2797         (struct ssa_conflicts): Move up earlier in the file.
2798         (conflicts_, var_map_): New static variables.
2799         (initialize_conflict_count): New function to initialize the
2800         CONFLICT_COUNT field for each conflict pair.
2801         (compare_pairs): Lazily initialize the conflict count and use it
2802         as the first tie-breaker.
2803         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
2804         and wipe conflicts_ and map_ around the call to qsort.  Remove
2805         special case for 2 coalesce pairs.
2806         * bitmap.c (bitmap_count_unique_bits): New function.
2807         (bitmap_count_bits_in_word): New function, extracted from
2808         bitmap_count_bits.
2809         (bitmap_count_bits): Use bitmap_count_bits_in_word.
2810         * bitmap.h (bitmap_count_unique_bits): Declare it.
2812 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
2814         PR target/69917
2815         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
2816         transparent alias chain for decl assembler name.
2817         * config/sol2.c (solaris_assemble_visibility): Likewise.
2819 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2821         * config/arm/arm1020e.md (1020call_op): Reduce reservation
2822         duration.
2823         (v10_fdivs): Likewise.
2824         (v10_fdivd): Likewise.
2826 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2828         PR driver/70132
2829         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
2830         to not call fclose twice on file.
2832 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
2834         PR tree-optimization/70354
2835         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
2836         oprnd0 is wider than oprnd1 and there is a cast from the wider
2837         type to oprnd1, mask it with the mask of the narrower type.
2839         PR target/70321
2840         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
2841         Optimize TARGET_STV splitters, if high or low word of last argument
2842         is 0 or -1.
2844 2016-03-22  Jeff Law  <law@redhat.com>
2846         PR target/70232
2847         tree-ssa-threadbackward.c
2848         (fsm_find_control_statement_thread_paths): Correctly distinguish
2849         between old style jump threads vs FSM jump threads.
2851 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
2853         PR target/70302
2854         * config/i386/i386.c (scalar_chain::convert_op): Support
2855         uninitialized register usage case.
2857 2016-03-22  Richard Biener  <rguenther@suse.de>
2859         PR middle-end/70251
2860         * genmatch.c (gen_transform): Adjust last parameter to a three-state
2861         int...
2862         (capture::gen_transform): ... to change behavior when substituting
2863         a condition into cond or not-cond expr context.
2864         (dt_simplify::gen_1): Adjust.
2865         * gimple-match-head.c: Include gimplify.h for unshare_expr.
2866         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
2867         last change and instead change to
2868         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
2869         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
2871 2016-03-22  Anthony Green  <green@moxielogic.com>
2873         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
2874         issue for moxiebox targets.
2875         (CC1PLUS_SPEC): Ditto.
2877 2016-03-22  Richard Biener  <rguenther@suse.de>
2879         PR middle-end/70333
2880         * fold-const.c (extract_muldiv_1): Properly perform multiplication
2881         in the wide type.
2883 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2885         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
2887 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
2889         PR target/70325
2890         * config/i386/i386.c (def_builtin): Handle
2891         OPTION_MASK_ISA_AVX512VL to be and-ed with other
2892         bits.
2893         (const struct builtin_description bdesc_special_args[]):
2894         Remove duplicate ISA bits.
2896 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
2898         PR target/70329
2899         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
2900         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
2901         in a way that works also for AVX512BW.
2903         PR target/70300
2904         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
2905         instead of source if operands[1] is xmm16 and above and
2906         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
2907         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
2909         PR c++/70295
2910         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
2911         on assign if (*from_p) is a comparison, set it to
2912         TREE_NO_WARNING (*from_p).
2914 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
2916         PR middle-end/70326
2917         * lra.c (restore_scratches): Ignore deleted insns.
2919 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
2920             Jakub Jelinek  <jakub@redhat.com>
2922         PR tree-optimization/70317
2923         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
2924         to HONOR_NANS.
2926 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
2928         PR target/70327
2929         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
2930         of ix86_expand_move.
2931         (movoi): Ditto.
2932         (movti): Use general_operand for operand 1 predicate.
2934 2016-03-21  Martin Liska  <mliska@suse.cz>
2936         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
2937         insns.
2938         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
2940 2016-03-21  Martin Liska  <mliska@suse.cz>
2942         PR ipa/70306
2943         * ipa-icf.c (sem_function::parse): Skip static
2944         constructors and destructors.
2946 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
2948         PR target/70296
2949         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
2950         function-like macro, peek following token(s) if it is followed
2951         by CPP_OPEN_PAREN token with optional padding in between, and
2952         if not, don't treat it like a macro.
2954 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
2955             Alexander Monakov  <amonakov@ispras.ru>
2957         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
2958         for the stabs debug format.
2960 2016-03-21  Richard Biener  <rguenther@suse.de>
2962         PR tree-optimization/70310
2963         * tree-vect-generic.c (expand_vector_condition): Fold the built
2964         condition.
2966 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
2968         PR target/70293
2969         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
2970         Block third alternative for AVX-512VL target,
2972 2016-03-21  Martin Liska  <mliska@suse.cz>
2974         PR hsa/70234
2975         * hsa-brig.c (emit_function_directives): Mark unemitted
2976         global variables for emission.
2977         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
2978         (get_symbol_for_decl): Likewise.
2979         * hsa.h (struct hsa_symbol): New flag.
2981 2016-03-21  Richard Biener  <rguenther@suse.de>
2983         PR tree-optimization/70288
2984         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
2985         we do not estimate unsimplified all-constant conditionals or
2986         switches as optimized away.
2988 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
2990         PR rtl-optimization/69102
2991         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
2992         when we have a readonly dependency context.
2994 2016-03-18  Jeff Law  <law@redhat.com>
2996         PR rtl-optimization/70263
2997         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
2998         (update_equiv_regs): When trying to move a store to after the insn
2999         that sets the source of the store, make sure the store occurs after
3000         the insn that sets the source of the store.  When successful note
3001         the REG_EQUIV note created in the dump file.
3003 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
3004             Bernd Schmidt  <bschmidt@redhat.com>
3006         * doc/extend.texi: Document more potential problems with basic asms.
3008 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
3010         PR rtl-optimization/70278
3011         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3012         VOIDmode.
3014 2016-03-18  Jason Merrill  <jason@redhat.com>
3016         * calls.c (load_register_parameters): Fix zero size sibcall logic.
3018 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3020         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3021         values to 128b regs.
3023 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3025         PR tree-optimization/70252
3026         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3027         boolean vector has a proper number of elements.
3028         (supportable_narrowing_operation): Likewise.
3030 2016-03-18  Tom de Vries  <tom@codesourcery.com>
3032         PR ipa/70269
3033         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3035 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
3037         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3038         instead of replace_rtx for DEBUG_INSNs.
3040 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3042         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3043         load type reservations.
3045 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
3047         PR target/70188
3048         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
3049         define_constraint for "Q" and "T" constraints.
3051 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
3053         Tweak the pipeline model for Exynos M1
3055         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
3056         model.
3058 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
3060         PR c/70264
3061         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3062         where one or both locations aren't within a line_map.
3064 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3066         PR driver/70192
3067         * opts.c (finish_options): Don't set flag_pie to the default if
3068         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
3069         if it is -1.
3071 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
3073         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3074         true as ALL_REGS argument to replace_rtx.
3076 2016-03-17  Richard Biener  <rguenther@suse.de>
3078         PR debug/70271
3079         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3080         last.
3082 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3084         PR target/70245
3085         * rtl.h (replace_rtx): Add ALL_REGS argument.
3086         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
3087         equality and assert mode is the same, instead of just rtx pointer
3088         equality.
3089         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3090         true as ALL_REGS argument to replace_rtx.
3092 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3094         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3095         for boolean vector with vector mode only.
3096         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3098 2016-03-17  Nick Clifton  <nickc@redhat.com>
3100         PR target/70162
3101         * config/rx/rx.c (rx_print_integer): Print negative constants in
3102         decimal.
3104 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3106         PR target/70261
3107         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3109 2016-03-16  Richard Henderson  <rth@redhat.com>
3110             Richard Biener  <rguenth@suse.de>
3112         PR middle-end/70240
3113         PR middle-end/68215
3114         PR tree-opt/68714
3115         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3116         first operand as is_gimple_condexpr.
3118         PR middle-end/70240
3119         PR middle-end/68215
3120         Revert r231575
3121         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
3122         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3123         Do not gimplify the result.
3124         (do_unop): Adjust call to tree_vec_extract.
3125         (do_binop): Likewise.
3126         (do_compare): Likewise.
3127         (do_plus_minus): Likewise.
3128         (do_negate): Likewise.
3129         (expand_vector_condition): Likewise.
3130         (do_cond): Likewise.
3132 2016-03-16  Richard Henderson  <rth@redhat.com>
3134         PR target/70048
3135         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3136         (aarch64_classify_address): Use it.
3137         (aarch64_legitimize_address): Force all subexpressions of PLUS
3138         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
3140 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
3141             Richard Biener  <rguenth@suse.de>
3143         PR target/70245
3144         * rtlanal.c (replace_rtx): For REG, if from is a REG,
3145         return to even if only REGNO is equal, and assert
3146         mode is the same.
3148 2016-03-11  Jeff Law  <law@redhat.com>
3150         PR rtl-optimization/70224
3151         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3153 2016-03-16  Richard Henderson  <rth@redhat.com>
3155         PR middle-end/70199
3156         * function.h (struct function): Add has_forced_label_in_static.
3157         * gimplify.c (force_labels_r): Set it.
3158         * lto-streamer-in.c (input_struct_function_base): Read it.
3159         * lto-streamer-out.c (output_struct_function_base): Write it.
3160         * tree-inline.c (has_label_address_in_static_1): Remove.
3161         (copy_forbidden): Remove fndecl parameter; test
3162         has_forced_label_in_static.
3163         (inline_forbidden_p): Update call to copy_forbidden.
3164         (tree_versionable_function_p): Likewise.
3165         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3166         (chkp_versioning): Likewise.
3167         * tree-inline.h (copy_forbidden): Update decl.
3169 2016-03-16  Marek Polacek  <polacek@redhat.com>
3171         PR c/70093
3172         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3173         function being thunked if the result type doesn't have fixed size.
3174         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3175         doesn't have fixed size.
3177 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
3179         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3180         reporting malformed loop nest.
3182 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3184         PR lto/70187
3185         * ipa-devirt.c (possible_polymorphic_call_targets): Move
3186         nodes.length () == 1 test to before first nodes[0] access.
3188 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3190         PR tree-optimization/68715
3191         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3192         single_pred_p test.
3194 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3196         PR tree-optimization/68809
3197         * graphite-scop-detection.c (same_close_phi_node): Test if result types
3198         are the same.
3200 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
3201             Sandra Loosemore  <sandra@codesourcery.com>
3203         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3204         on leaf attribute. Mention ELF interposition problems.
3206 2016-03-16  Alan Modra  <amodra@gmail.com>
3208         PR rtl-optimization/69195
3209         PR rtl-optimization/47992
3210         * ira.c (indirect_jump_optimize): Ignore artificial defs.
3211         Add comments.
3213 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
3215         PR bootstrap/69513
3216         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3218 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3220         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3222 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
3224         PR rtl-optimization/70222
3225         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3226         optimization if mode is different from result_mode, queue up masking
3227         of the result in outer_op.  Formatting fix.
3229         PR middle-end/70239
3230         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3231         of safe_grow.
3233 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3235         PR rtl-optimization/69032
3236         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3237         looping backwards over basic block insns.
3239 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3241         PR target/66660
3242         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3243         to non-speculative when propagating trap bits.
3245 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3247         PR rtl-optimization/63384
3248         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3249         DEBUG_INSN_P insns.
3251 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3253         PR target/64411
3254         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3255         factored out from ...
3256         (sched_analyze_insn): ... here.
3257         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3258         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3259         get_implicit_reg_pending_clobbers in it.
3260         (setup_id_reg_sets): Use setup_id_implicit_regs.
3261         (deps_init_id): Ditto.
3263 2016-03-15  Tom de Vries  <tom@codesourcery.com>
3265         PR ipa/70161
3266         * cgraph.c (cgraph_node::get_body): Save, reset and restore
3267         dump_file_name.
3268         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3269         execute_function_dump.
3270         (execute_one_pass): Don't dump function if it will be dumped after ipa
3271         transform.
3273 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
3275         * genrecog.c (match_pattern_2): If pred is NULL don't call
3276         safe_predicate_mode on it.
3278 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
3280         PR middle-end/70219
3281         * lra-constraints.c (delete_move_and_clobber): Change assertion
3282         to also allow dregno == 0.
3284 2016-03-14  Richard Henderson  <rth@redhat.com>
3286         PR tree-opt/68714
3287         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3288         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3289         (reassociate_bb): Use optimize_vec_cond_expr; avoid
3290         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3291         on vectors.
3293 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
3295         PR target/70083
3296         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3297         regs.
3298         (lra_create_live_ranges_1): initialize hard register biggest_mode to
3299         VOIDmode.
3300         * lra-constraints.c (split_reg): For hard regs, try to find the
3301         biggest single-register mode used in the function.
3303 2016-03-14  Richard Biener  <rguenther@suse.de>
3305         PR tree-optimization/56365
3306         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3307         constants to compare against.
3309 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
3311         PR target/70098
3312         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3313         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3314         (define_split for the GPR case): Use int_reg_operand instead of
3315         gpc_reg_operand for the output.
3317 2016-03-14  Tom de Vries  <tom@codesourcery.com>
3319         PR tree-optimization/70045
3320         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3321         create_empty_if_region_on_edge argument.
3323 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
3325         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3326         (STACK_CHECK_PROTECT): Likewise.
3327         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3328         (STACK_CHECK_PROTECT): Likewise.
3329         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3330         (STACK_CHECK_PROTECT): Likewise.
3331         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3332         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3333         (STACK_CHECK_PROTECT): Likewise.
3335 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
3337         PR rtl-optimization/69307
3338         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3339         registers in modes that span more than one register.
3341 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
3343         PR target/69614
3344         * lra-constraints.c (delete_move_and_clobber): New.
3345         (remove_inheritance_pseudos): Use it.
3347 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
3349         PR ada/70017
3350         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3351         the libcall is LCT_THROW.
3352         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3353         for the checking routine.
3355 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3357         PR target/70131
3358         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3359         optimization if we have direct move.
3360         (roundu32<mode>2_fprs): Likewise.
3362 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
3364         PR target/70123
3365         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3366         be rematerialized.
3367         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3368         Arguments swapped.  All callers changed.  Take reg_renumber into
3369         account, and Calculate and compare register ranges for hard regs.
3371 2016-03-11  Jeff Law  <law@redhat.com>
3373         PR tree-optimization/70190
3374         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3375         Handle cases where we can not extract the taken edge, even though we
3376         found a constant value.
3378         PR tree-optimization/64058
3379         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3380         (num_coalesce_pairs): Move up earlier in file.
3381         (find_coalesce_pair): Initialize the INDEX field for each pair
3382         discovered.
3383         (compare_pairs): No longer sort on the elements in each pair.
3384         Instead break ties with the index of the coalesce pair.
3386 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3388         PR target/70002
3389         * config/aarch64/aarch64-protos.h
3390         (aarch64_save_restore_target_globals): New prototype.
3391         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3392         Call the above when popping pragma.
3393         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3394         New function.
3395         (aarch64_set_current_function): Rewrite using the above.
3397 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
3399         PR tree-optimization/70177
3400         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3401         (extract_ops_from_tree): ... this.  In the 2 argument
3402         overload remove _1 suffix.
3403         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3404         (extract_ops_from_tree): ... this.
3405         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3406         Adjust callers.
3407         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3408         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3409         extract_ops_from_tree instead of 2 operand one.
3411 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
3413         PR tree-optimization/70013
3414         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3415         for constant-pool entries.
3417 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
3419         PR rtl-optimization/70174
3420         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3421         followed by gen_lowpart on force_reg instead of just gen_lowpart.
3423         PR tree-optimization/70169
3424         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3425         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
3426         for unknown codes.
3428 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
3429             Jakub Jelinek  <jakub@redhat.com>
3431         PR target/70160
3432         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3433         of uninitialized values.
3435 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3437         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3438         define_expand.
3439         ("*trunctddd2"): New pattern definition.
3440         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3441         TD->DD truncation.
3443 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3445         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3446         definitions for BFP and DFP rounding modes.
3447         ("fixuns_truncdddi2", "fixuns_trunctddi2")
3448         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3449         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3450         ("fix_trunctf<mode>2"): Use the new constants instead of magic
3451         numbers.
3453 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3455         * config/s390/constraints.md: Adjust comment.
3456         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
3457         s390_decompose_addrstyle_without_index.
3458         * config/s390/predicates.md (shift_count_or_setmem_operand):
3459         Rename to setmem_operand.
3460         * config/s390/s390-protos.h
3461         (s390_decompose_shift_count): Rename to
3462         s390_decompose_addrstyle_without_index.
3463         * config/s390/s390.c (s390_decompose_shift_count)
3464         (s390_mem_constraint, print_shift_count_operand)
3465         (print_operand_address, print_operand): Rename
3466         s390_decompose_shift_count to
3467         s390_decompose_addrstyle_without_index and rename
3468         print_shift_count_operand to print_addrstyle_operand troughout the
3469         file.
3470         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
3471         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
3472         Rename shift_count_or_setmem_operand to setmem_operand.
3473         * config/s390/vx-builtins.md ("vec_insert<mode>")
3474         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
3475         nonmemory_operand.
3477 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
3479         PR target/70168
3480         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
3481         Handle overlapping retval and newval.
3483 2016-03-10  Nick Clifton  <nickc@redhat.com>
3485         PR target/7044
3486         * config/aarch64/aarch64.c
3487         (aarch64_override_options_after_change_1): When forcing
3488         flag_omit_frame_pointer to be true, use a special value that can
3489         be detected if this function is called again, thus preventing
3490         flag_omit_leaf_frame_pointer from being forced to be false.
3492 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3494         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
3495         Set x_flag_omit_leaf_frame_pointer when handling
3496         -momit-leaf-frame-pointer.
3498 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3500         PR lto/69589
3501         * cgraph.c (cgraph_node::dump): Dump split_part and
3502         indirect_call_target.
3503         * cgraph.h (cgraph_node): Add indirect_call_target flag.
3504         * ipa.c (has_addr_references_p): Cleanup.
3505         (is_indirect_call_target_p): New.
3506         (walk_polymorphic_call_targets): Do not mark virtuals that may be
3507         called indirectly as local.
3508         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
3510 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3512         PR ipa/69630
3513         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
3514         on cxa_pure_virtual.
3516 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3518         PR lto/69589
3519         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
3521 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3523         PR lto/69589
3524         * tree.c (need_assembler_name_p): Only record main variant type names.
3526 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
3528         PR target/70113.
3529         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
3530         Always define to 0 or 1.
3531         (TARGET_FIX_ERR_A53_843419): New macro.
3532         * config/aarch64/aarch64-elf-raw.h
3533         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
3534         * config/aarch64/aarch64-linux.h: Likewise.
3535         * config/aarch64/aarch64.c
3536         (aarch64_override_options_after_change_1): Do not default
3537         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
3538         843419 is on.
3539         (aarch64_attributes): Handle fix-cortex-a53-843419.
3540         (aarch64_can_inline_p): Likewise.
3541         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
3543 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
3544         Jakub Jelinek <jakub@redhat.com>
3546         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
3547         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
3548         DECL_COMMONS if flag_unconstrained_commons is set.
3549         * tree-dfa.c (get_ref_base_and_extent): Likewise.
3550         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
3551         (funconstrained-commons): Document.
3553 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
3555         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
3556         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
3558 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
3560         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
3561         has a proper number of elements.
3563 2016-03-10  Alan Modra  <amodra@gmail.com>
3565         PR rtl-optimization/69195
3566         PR rtl-optimization/47992
3567         * ira.c (recorded_label_ref): Delete.
3568         (update_equiv_regs): Return void.
3569         (indirect_jump_optimize): New function.
3570         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
3571         before regstat_compute_ri.  Don't rebuild_jump_labels here.
3572         Delete update_regstat.
3574 2016-03-10  Richard Biener  <rguenther@suse.de>
3576         PR tree-optimization/70128
3577         * tree-ssa-structalias.c (set_uids_in_ptset): Set
3578         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
3580 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
3582         PR tree-optimization/70152
3583         * tree-sra.c (replace_removed_params_ssa_names): Copy over
3584         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
3586         PR target/70086
3587         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
3588         instead of gen_sse2_loadlpd.
3589         * config/i386/sse.md (*vec_concatv2df): Rename to...
3590         (vec_concatv2df): ... this.
3592         PR tree-optimization/70127
3593         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
3595 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
3597         PR c/68473
3598         PR c++/70105
3599         * diagnostic-show-locus.c (compatible_locations_p): New function.
3600         (layout::layout): Sanitize ranges using compatible_locations_p.
3602 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
3604         PR c/68473
3605         PR c++/70105
3606         * diagnostic-show-locus.c (layout_range::layout_range): Replace
3607         location_range param with three const expanded_locations * and a
3608         bool.
3609         (layout::layout): Replace call to
3610         rich_location::lazily_expand_location with get_expanded_location.
3611         Extract the range and perform location expansion here, passing
3612         the results to the layout_range ctor.
3613         * diagnostic.c (source_range::debug): Delete.
3614         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
3615         of rich_location::get_expanded_location.
3616         * gcc-rich-location.c (get_range_for_expr): Delete.
3617         (gcc_rich_location::add_expr): Reimplement to avoid the
3618         rich_location::add_range overload that took a location_range,
3619         passing a location_t instead.
3621 2016-03-09  Richard Biener  <rguenther@suse.de>
3622         Jakub Jelinek  <jakub@redhat.com>
3624         PR tree-optimization/70138
3625         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
3626         Also skip vect_double_reduction_def.
3628 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
3630         PR target/70049
3631         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
3632         if the operand is "m".
3634 2016-03-09  Nathan Sidwell  <nathan@acm.org>
3636         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
3638 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3640         * config/i386/i386.c (processor_target_table): Fix cost table
3641         intialization order for znver1.
3643 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
3645         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
3646         - becuase -> because.
3647         * ipa-reference.c (ignore_module_statics): Likewise.
3648         * cgraph.c (cgraph_node::get_body): Likewise.
3649         * ipa-inline.c (early_inliner): Likewise.
3650         * ipa-devirt.c (types_same_for_odr): Likewise.
3651         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
3652         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
3654 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3656         * tree-ssa-math-opts.c: Fix typo in comment.
3658 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
3660         PR target/70110
3661         * config/i386/i386.c (scalar_chain::make_vector_copies,
3662         scalar_chain::convert_reg): Call end_sequence in between
3663         get_insns and emit_conversion_insns rather than after both
3664         calls.
3666 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
3668         PR target/70064
3669         * config/i386/i386.h (machine_function): Add
3670         pc_thunk_call_expanded flag.
3671         (ix86_pc_thunk_call_expanded): New define.
3672         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
3673         (*set_got): Rename insn pattern from set_got.
3674         (*set_got_labelled): Rename inst pattern from set_got_labelled.
3675         * config/i386/i386.c (ix86_compute_frame_layout): Use
3676         ix86_pc_thunk_call_expanded to prevent red-zone.
3678 2016-03-07  Martin Jambor  <mjambor@suse.cz>
3680         * hsa.h (hsa_get_ctor_statements): Declare.
3681         (hsa_get_dtor_statements): Likewise.
3682         (hsa_get_kernel_dispatch_type): Likewise.
3683         * hsa.c (hsa_get_ctor_statements): New function.
3684         (hsa_get_dtor_statements): Likewise.
3685         (hsa_get_kernel_dispatch_type): Likewise.
3686         * hsa-brig.c (hsa_cdtor_statements): Removed.
3687         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
3688         hsa_get_dtor_statements.
3689         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
3690         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
3692 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
3694         * config/arm/arm-cores.def (cortex-r8): New.
3695         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
3696         * config/arm/arm-tune.md: Likewise.
3697         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
3699 2016-03-07  Martin Sebor  <msebor@redhat.com>
3701         PR rtl-optimization/19705
3702         * doc/invoke.texi (Options That Control Optimization): Clarify
3703         -fno-branch-count-reg.
3705 2016-02-26  Richard Biener  <rguenther@suse.de>
3706             Jeff Law  <law@redhat.com>
3708         PR tree-optimization/69740
3709         * cfghooks.c (remove_edge): Request loop fixups if we delete
3710         an edge that might turn an irreducible loop into a natural
3711         loop.
3712         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
3713         Move after definition of loops_state_clear.
3715 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
3717         PR rtl-optimization/69052
3718         * rtlanal.c (commutative_operand_precedence): Set higher precedence
3719         to CONST_WIDE_INT.
3721 2016-03-07  Tom de Vries  <tom@codesourcery.com>
3723         PR tree-optimization/70116
3724         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
3725         is_tm_ending stmts and ubsan/asan internal functions.
3726         (find_duplicate): Use it.  Don't test is_tm_ending here.
3728 2016-03-07  Richard Biener  <rguenther@suse.de>
3730         PR tree-optimization/70115
3731         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
3732         (propagate_constants_for_unrolling): Use replace_uses_by.
3734 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
3736         PR middle-end/69916
3737         * omp-low.c (struct oacc_loop): Add ifns.
3738         (new_oacc_loop_raw): Initialize it.
3739         (finish_oacc_loop): Clear mask & flags if no ifns.
3740         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
3741         (oacc_loop_xform_loop): Add ifns arg & adjust.
3742         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
3744 2016-03-07  Richard Henderson  <rth@redhat.com>
3746         PR rtl-opt/70061
3747         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
3748         (insert_value_copy_on_edge): Likewise.
3750 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3752         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
3754 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3756         PR target/62281
3757         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
3759 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
3761         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
3763 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
3765         Fix sseimul type attribute.
3766         * config/i386/znver1.md
3767         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
3768         znver1_sseimul_avx256_load) : Fix the type attribute.
3769         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
3770         pipe usage and latency.
3772 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
3774         PR c++/70084
3775         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
3776         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
3777         to the right type.
3779 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
3781         PR c/69973
3782         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
3784         PR rtl-optimization/69941
3785         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
3786         the reg share its mode.
3788 2016-03-04  Jeff Law  <law@redhat.com>
3790         PR tree-optimization/69196
3791         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3792         If the both SSA_NAMEs are anonymous, then consider them unassociated
3793         and include the PHI in the statement count.
3795 2016-03-05  Tom de Vries  <tom@codesourcery.com>
3797         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
3798         construct in oacc routine.  Check for oacc region in oacc routine.
3800 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
3802         PR target/70062
3803         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
3804         2016-02-22 changes, instead don't recurse if RECUR is already true.
3805         Don't change *dynamic_check if RECUR.  Adjust recursive caller
3806         to pass true to the new argument.
3807         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
3809         PR target/70059
3810         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
3811         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
3812         fixes.
3813         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
3815 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
3817         PR rtl-optimization/57676
3818         * lra-assigns.c (lra_assign): Guard test for maximum iterations
3819         with flag_checking.
3821 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
3823         * tree-vect-patterns.c (search_type_for_mask): Handle
3824         comparison of booleans.
3826 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
3828         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
3829         Fix @xref usage.
3831         PR debug/69947
3832         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
3833         all other ops that have dw_val_class_die_ref operands,
3834         and DW_OP_GNU_entry_value.
3836 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3838         PR rtl-optimization/69904
3839         * config/arm/arm.c (arm_cannot_copy_insn_p):
3840         Return true for load-exclusive instructions.
3842 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
3844         PR target/70021
3845         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
3846         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
3847         the pattern no matter if it is used just by non-pattern, pattern
3848         or mix thereof.
3849         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
3850         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3851         oprnd1 def_stmt is in pattern, don't look through it.
3853 2016-03-03  Marek Polacek  <polacek@redhat.com>
3855         PR middle-end/70050
3856         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
3858 2016-03-03  Martin Liska  <mliska@suse.cz>
3860         PR tree-optimization/70043
3861         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
3862         previous statement if we see a debug statement.
3864 2016-03-03  Richard Biener  <rguenther@suse.de>
3866         PR tree-optimization/55936
3867         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
3868         parameter and guard unsafe equivalence use.
3869         (vrp_evaluate_conditional_warnv_with_ops): Always use
3870         safe equivalences but not via the quadratic compare_names
3871         helper.
3873 2016-03-03  Michael Collison  <michael.collison@linaro.org>
3875         PR target/70014
3876         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
3877         for operand 1 to s_register_operand. Change predicate for operand
3878         2 to arm_not_immediate_operand.
3880 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
3882         * doc/tm.texi: Regenerated.
3884 2016-03-02  Richard Henderson  <rth@redhat.com>
3886         PR rtl-opt/67145
3887         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
3888         simplification when all args are positive non-fixed registers.
3890 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3892         * target.def (lra_p): Specify that new ports should use LRA.
3894 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
3896         PR libgomp/69555
3897         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
3898         gimplify_type_sizes the type they refer to.
3899         (omp_notice_variable): Handle reference vars to VLAs.
3900         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
3901         reference to VLA decls in the second pass instead of first pass.
3903 2016-03-02  Tom de Vries  <tom@codesourcery.com>
3905         PR tree-optimization/68659
3906         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
3907         new_expr == NULL_TREE.
3908         (get_new_name): Handle ADDR_EXPR.
3910 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
3912         PR rtl-optimization/69052
3913         * loop-invariant.c (canonicalize_address): New function.
3914         (inv_can_prop_to_addr_use): Check validity of address expression
3915         which is canonicalized by above function.
3917 2016-03-02  Alan Modra  <amodra@gmail.com>
3919         PR ipa/69990
3920         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
3921         larger alignment.
3923 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
3925         PR target/70028
3926         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
3927         (*movhi_internal): Put mask moves from and to memory separately
3928         from moves from/to GPRs.
3930 2016-03-02  Richard Biener  <rguenther@suse.de>
3932         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
3933         GENERIC expressions in GIMPLE.
3935 2016-03-02  Richard Biener  <rguenther@suse.de>
3937         * config/i386/i386.c (type_natural_mode): Fix typo.
3939 2016-03-02  Nick Clifton  <nickc@redhat.com>
3941         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
3943 2016-03-02  Richard Biener  <rguenther@suse.de>
3944             Uros Bizjak  <ubizjak@gmail.com>
3946         PR target/67278
3947         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
3949 2016-03-02  Richard Biener  <rguenther@suse.de>
3951         PR middle-end/67278
3952         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
3954 2016-03-02  Marek Polacek  <polacek@redhat.com>
3956         PR c/67854
3957         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
3958         "is promoted to" warning.
3960 2016-03-01  DJ Delorie  <dj@redhat.com>
3962         * config.gcc: Deprecate mep-*.
3964 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
3966         PR middle-end/70025
3967         * lra-constraints.c (regno_val_use_in): New.
3968         (match_reload): Use it instead of regno_use_in.
3970 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
3972         PR rtl-optimization/70007
3973         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
3974         references present in REG_EQUAL notes attached to non-SET patterns.
3976 2016-03-01  Jeff Law  <law@redhat.com>
3978         PR tree-optimization/69196
3979         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3980         Appropriately clamp the number of statements to copy when the
3981         thread path does not traverse a loop backedge.
3983         PR tree-optimization/69196
3984         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3985         Do count some PHIs in the thread path against the insn count.  Decrease
3986         final statement count by one as the control statement in the last
3987         block will get removed.  Remove special cased code for handling PHIs
3988         in the last block.
3990 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
3992         PR target/70027
3993         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
3994         asm dialect alternatives to explicit GOTPCREL calls.
3996 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
3998         PR ada/70017
3999         * ira.c (do_reload): Issue warning for generic stack checking here...
4000         * reload1.c (reload): ...instead of here and streamline it.
4002 2016-03-01  Nick Clifton  <nickc@redhat.com>
4004         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4006 2016-03-01  Richard Biener  <rguenther@suse.de>
4008         PR tree-optimization/69983
4009         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4010         types and fall back to operand_equal_p.
4012 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4014         Revert
4015         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4017         * config/s390/constraints.md ("jm8"): New constraint.
4018         * config/s390/predicates.md ("const_int_8bitset_operand"): New
4019         predicate.
4020         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4021         into ...
4022         ("*setmem_long<setmem_and>"): New pattern.
4023         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4024         into ...
4025         ("*setmem_long_31z<setmem_and>"): New pattern.
4026         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4027         New substitution rules with the required attributes.
4030 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4032         Revert
4033         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4035         * gensupport.c (process_substs_on_one_elem): Split loop to
4036         complete mark_operands_used_in_match_dup on all expressions in the
4037         vector first.
4038         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4039         and remove function.
4041 2016-03-01  Richard Biener  <rguenther@suse.de>
4043         PR middle-end/70022
4044         * fold-const.c (fold_indirect_ref_1): Fix range checking for
4045         vector BIT_FIELD_REF extract.
4047 2016-03-01  Richard Biener  <rguenther@suse.de>
4049         PR tree-optimization/69994
4050         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4052 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
4054         PR tree-optimization/69956
4055         * tree-vect-stmts.c (supportable_widening_operation): Support
4056         multi-step conversion of boolean vectors.
4057         (supportable_narrowing_operation): Likewise.
4059 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4061         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4062         anymore.
4064 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4066         * config/s390/subst.md (DSI_VI): New mode iterator.
4067         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4068         * config/s390/vector.md ("vec_set<mode>"): Move expander before
4069         the insn definition.
4070         ("*vec_set<mode>"): Change predicate and add alternative to
4071         support only either register or const_int operands as element
4072         selector.
4073         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4074         operands.
4075         ("vec_extract<mode>"): New expander.
4076         ("*vec_extract<mode>"): New insn definition supporting reg and
4077         const_int element selectors.
4078         ("*vec_extract<mode>_plus"): New insn definition supporting
4079         reg+const_int element selectors.
4080         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4081         following expander+insn definition.
4082         ("<vec_shifts_name><mode>3"): New expander.
4083         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4085 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4087         * config/s390/s390.md ("*tabort_1"): Change predicate to
4088         nonmemory_operand.  Add a second alternative to cover
4089         register as well as const int operands.
4090         ("*tabort_1_plus"): New pattern definition.
4092 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4094         * config/s390/s390.md ("*ashrdi3_cc_31")
4095         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4096         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4097         Merge insn definitions into ...
4098         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4099         New pattern definition.
4100         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4101         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4102         ("*ashr<mode>3_and"): Merge insn definitions into ...
4103         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4104         New pattern definition.
4105         * config/s390/subst.md ("addr_style_op_cc_subst")
4106         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4107         substitutions patterns plus attributes.
4108         Add ashiftrt to SUBST iterator.
4110 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4112         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4113         op2 to nonmemory_operand.
4114         ("*<shift>di3_31", "*<shift>di3_31_and"):
4115         Merge into single pattern definition ...
4116         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4117         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4118         pattern definition ...
4119         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4120         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4121         iterator.
4123 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4125         * config/s390/predicates.md (const_int_6bitset_operand): New
4126         predicate.
4127         * config/s390/s390.md: Include subst.md.
4128         ("rotl<mode>3"): New expander.
4129         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4130         ...
4131         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4132         * config/s390/subst.md: New file.
4134 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4136         * config/s390/s390.md ("op_type", "atype", "length" attributes):
4137         Remove RRR type.  It doesn't really exist.
4138         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4139         attributes.
4140         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4141         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4142         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4143         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4144         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4145         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4146         `enabled' attribute.
4148 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4150         * gensupport.c (process_substs_on_one_elem): Split loop to
4151         complete mark_operands_used_in_match_dup on all expressions in the
4152         vector first.
4153         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4154         and remove function.
4156 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4158         PR target/69706
4159         * config/sparc/sparc.c (NWORDS_UP): Rename to...
4160         (CEIL_NWORDS): ...this.  Use CEIL macro.
4161         (compute_fp_layout): Adjust to above renaming.
4162         (function_arg_union_value): Likewise.
4163         (sparc_arg_partial_bytes): Likewise.
4164         (sparc_function_arg_advance): Likewise.
4166 2016-02-29  Jeff Law  <law@redhat.com>
4168         PR tree-optimization/70005
4169         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4170         where an object with a boolean range is compared against a value
4171         outside [0..1].
4173         PR tree-optimization/69999
4174         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4175         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4176         loop cleanups.
4178 2016-02-29  Richard Biener  <rguenther@suse.de>
4180         PR tree-optimization/69994
4181         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4182         (get_unary_op): Look through nop conversions.
4183         (ops_equal_values_p): New function, look for equality diregarding
4184         nop conversions.
4185         (eliminate_plus_minus_pair): Use ops_equal_values_p
4186         (repropagate_negates): Do not use get_unary_op here.
4188 2016-02-29  Martin Liska  <mliska@suse.cz>
4190         * system.h: Poison ENABLE_CHECKING macro.
4192 2016-02-29  Martin Liska  <mliska@suse.cz>
4194         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4195         is presented in dump flags.
4196         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4197         (hsa_regalloc): Likewise.
4199 2016-02-19  Richard Biener  <rguenther@suse.de>
4201         PR tree-optimization/69980
4202         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4203         permutation of those we need to keep.
4205 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4207         PR target/69706
4208         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4209         (NWORDS_UP): ...this
4210         (init_cumulative_args): Minor tweaks.
4211         (sparc_promote_function_mode): Likewise.
4212         (scan_record_type): Delete.
4213         (traverse_record_type): New function template.
4214         (classify_data_t): New structure type.
4215         (classify_registers): New inline function.
4216         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4217         exhausted.  Instantiate traverse_record_type on classify_registers and
4218         deal with the case of a structure passed in slot #15 with no FP field
4219         in the first word.
4220         (assign_data_t): New structure type.
4221         (compute_int_layout): New static function.
4222         (compute_fp_layout): Likewise.
4223         (count_registers): New inline function.
4224         (assign_int_registers): New static function.
4225         (assign_fp_registers): Likewise.
4226         (assign_registers): New inline function.
4227         (function_arg_record_value_1): Delete.
4228         (function_arg_record_value_2): Likewise.
4229         (function_arg_record_value_3): Likewise.
4230         (function_arg_record_value): Adjust to above changes.  Instantiate
4231         traverse_record_type on count_registers to first count the number of
4232         registers to be used and then on assign_registers to assign them.
4233         (function_arg_union_value): Adjust to above renaming.
4234         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
4235         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
4236         case of a structure passed in slot #15
4237         (sparc_function_arg_advance): Likewise.
4238         (function_arg_padding): Minor tweak.
4240 2016-02-29  Richard Biener  <rguenther@suse.de>
4242         PR tree-optimization/69720
4243         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4244         the adjustment_def path for possibly vectorized defs.
4245         (vect_create_epilog_for_reduction): Handle vectorized initial
4246         defs properly.
4248 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
4250         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4252 2016-02-27  Jeff Law  <law@redhat.com>
4254         Revert
4255         2016-02-26  Richard Biener  <rguenther@suse.de>
4256                     Jeff Law  <law@redhat.com>
4258         PR tree-optimization/69740
4259         * cfghooks.c (remove_edge): Request loop fixups if we delete
4260         an edge that might turn an irreducible loop into a natural
4261         loop.
4263 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
4265         PR rtl-optimization/69896
4266         * tree-vect-generic.c (get_compute_type): Avoid single element
4267         vector types.
4269 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
4271         Rename the AArch64 tuning option and related functions to enable the
4272         Newton series for the reciprocal square root to reflect its
4273         approximative characteristic.
4275         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4276         function to "aarch64_emit_approx_rsqrt".
4277         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4278         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4279         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4280         (xgene1_tunings): Likewise.
4281         (use_rsqrt_p): Likewise.
4282         (aarch64_emit_swrsqrt): Use new function name.
4283         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4284         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4285         text explaining this option.
4286         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4288 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
4290         PR target/69969
4291         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4292         complain about -mallow-movmisalign without -mvsx if
4293         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4295 2016-02-26  Joel Sherrill  <joel@rtems.org>
4297         * config.gcc: Add x86_64-*-rtems*.
4298         * gcc/config/i386/rtems-64.h: New file.
4300 2016-02-26  Joel Sherrill  <joel@rtems.org>
4302         * config.gcc: Add aarch64-*-rtems*.
4303         * gcc/config/aarch64/rtems.h: New file.
4305 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
4307         PR target/69946
4308         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4309         shift amount using %h.  Add comment.
4311 2016-02-26  Richard Biener  <rguenther@suse.de>
4312             Jeff Law  <law@redhat.com>
4314         PR tree-optimization/69740
4315         * cfghooks.c (remove_edge): Request loop fixups if we delete
4316         an edge that might turn an irreducible loop into a natural
4317         loop.
4319 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4321         PR middle-end/69920
4322         * tree-sra.c (sra_modify_assign): Do not remove loads of
4323         uninitialized aggregates to SSA_NAMEs.
4325 2016-02-26  Richard Henderson  <rth@redhat.com>
4327         PR target/69709
4328         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4329         pseudo in case the target rtx matches the source of the left
4330         shift.
4332 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4334         PR hsa/69568
4335         * hsa.h (hsa_type_packed_p): Declare.
4336         * hsa.c (hsa_type_packed_p): New function.
4337         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4338         loads.
4339         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4340         * hsa-brig.c (emit_basic_insn): Likewise.
4342 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4344         pr hsa/69674
4345         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4346         pointers.
4347         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4349 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4351         * hsa.h (is_a_helper): New overload for hsa_op_immed for
4352         hsa_op_with_type operands.
4353         (hsa_unsigned_type_for_type): Declare.
4354         * hsa.c (hsa_unsigned_type_for_type): New function.
4355         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4356         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4357         the finalizer.  Do not emit extra move.
4359 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4361         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4362         atomic operations in private segment.
4364 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4366         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4367         statements to wi->info.  Also disallow omp simd constructs.
4368         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4369         for not gridifying.  Dump special string for omp_for.
4371 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4373         PR target/69245
4374         * config/aarch64/aarch64.c (aarch64_set_current_function):
4375         Save/restore target globals when switching to
4376         target_option_default_node.
4378 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4380         PR target/69613
4381         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4382         Return 0 if !SHIFT_COUNT_TRUNCATED.
4384 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
4385             Eric Botcazou  <ebotcazou@adacore.com>
4387         PR rtl-optimization/69891
4388         * dse.c (scan_insn): If we can't figure out memset arguments
4389         or they are non-constant, call clear_rhs_from_active_local_stores.
4391 2016-02-26  Martin Liska  <mliska@suse.cz>
4393         * doc/extend.texi: Mention clog10, clog10f an clog10l
4394         in Builtins section.
4396 2016-02-26  Martin Liska  <mliska@suse.cz>
4398         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4399         CHECKING_P.
4400         (resolve_args_picking_1): Likewise.
4401         * dwarf2out.h (struct GTY): Likewise.
4403 2016-02-26  Martin Liska  <mliska@suse.cz>
4405         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4406         with flag_checking.
4407         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4409 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4410             Martin Liska  <mliska@suse.cz>
4412         * doc/install.texi: Mention --enable-valgrind-annotations.
4414 2016-02-26  Richard Biener  <rguenther@suse.de>
4416         PR tree-optimization/69551
4417         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4418         looking through aliases adjust DECL_PT_UID to refer to the
4419         ultimate alias target.
4421 2016-02-25  Martin Liska  <mliska@suse.cz>
4423         PR middle-end/69919
4424         * alloc-pool.c (after_memory_report): New variable.
4425         * alloc-pool.h (base_pool_allocator ::release): Do not use
4426         the infrastructure if after_memory_report.
4427         * toplev.c (toplev::main): Mark after memory report.
4429 2016-02-25  Richard Biener  <rguenther@suse.de>
4431         PR tree-optimization/48795
4432         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4434 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
4436         PR driver/68463
4437         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
4438         offloading is enabled and -fopenacc or -fopenmp is specified.
4439         (CRTOFFLOADEND): Likewise.
4440         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4441         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4442         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4443         (offload_objects_file_name): New static var.
4444         (tool_cleanup): Remove offload_objects_file_name file.
4445         (find_offloadbeginend): Replace with ...
4446         (find_crtoffloadtable): ... this.
4447         (run_gcc): Remove offload_argc and offload_argv.
4448         Get offload_objects_file_name from -foffload-objects=... option.
4449         Read names of object files with offload from this file, pass them to
4450         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
4451         don't pass offloadbegin and offloadend to the linker.  Don't pass
4452         offload non-LTO files to the linker, because now they're not claimed.
4454 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
4456         PR ipa/69630
4457         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4458         on builtin_unreachable.
4460 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
4462         PR rtl-optimization/69896
4463         * regcprop.c: Include cfgrtl.h.
4464         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
4465         than remembered mode, either delete it (if noop_move_p), or
4466         treat like copy_p but not noop_p instruction.
4468 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4470         PR debug/69705
4471         * dwarf2out.c (gen_variable_die): Work around buggy LTO
4472         - allow NULL decl for Fortran DW_TAG_common_block variables.
4474 2016-02-24  Jason Merrill  <jason@redhat.com>
4476         * common.opt (flifetime-dse): Add -flifetime-dse=1.
4478 2016-02-24  Richard Biener  <rguenther@suse.de>
4479             Jakub Jelinek  <jakub@redhat.com>
4481         PR middle-end/69760
4482         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
4483         conditionally executed ops to well-defined overflow behavior.
4485 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4487         PR middle-end/69915
4488         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
4489         elements.
4491 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4493         PR rtl-optimization/69886
4494         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
4495         argument.  Use it when checking validity of set instructions.
4496         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
4497         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
4498         callsite.
4499         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
4500         * store-motion.c (find_moveable_store): Update
4501         can_assign_to_reg_without_clobbers_p callsite.
4503 2016-02-24  Richard Biener  <rguenther@suse.de>
4505         PR middle-end/68963
4506         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
4507         bogus check.
4508         (record_nonwrapping_iv): Do not fall back to the low/high bound
4509         for non-constant IV bases if the stmt is not always executed.
4511 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4513         * config/arm/arm-cores.def (cortex-a32): New entry.
4514         * config/arm/arm-tables.opt: Regenerate.
4515         * config/arm/arm-tune.md: Regenerate.
4516         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
4517         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
4518         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
4519         for -mcpu and -mtune.
4521 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4523         PR target/69875
4524         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
4525         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
4526         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
4527         (atomic_loaddi_1): Delete.
4528         (atomic_loaddi): Rewrite expander using the above changes.
4530 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4532         PR c/69918
4533         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
4534         2 to 3.
4536 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
4537             Richard Biener  <rguenth@suse.de>
4539         PR middle-end/69909
4540         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
4541         set_mem_attributes if tem is SSA_NAME which got expanded
4542         as a MEM.
4544 2016-02-24  Richard Biener  <rguenther@suse.de>
4546         PR tree-optimization/69907
4547         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
4548         end of permutations for BB vectorization.
4550 2016-02-24  Christian Bruel  <christian.bruel@st.com>
4552         * config/arm/arm-c.c (arm_option_override): Initialize
4553         target_option_current_node.
4554         * config/arm/arm.c (arm_pragma_target_parse): Replace
4555         build_target_option_node call by target_option_current_node.
4556         Set target_option_current_node.
4557         Fix comments.
4559 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
4561         PR target/69810
4562         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
4563         define_insn_and_split to define_insn.
4564         (zero_extendqi<mode>2_dot2): Same.
4565         (extendqi<mode>2_dot): Same.
4566         (extendqi<mode>2_dot2): Same.
4568 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
4570         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
4571         and add bypass for AES{D,E} and AESMC pairs.
4572         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
4573         and AESMC pairs.
4575 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
4577         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
4578         series for reciprocal square root in Exynos M1.
4580 2016-02-23  Martin Sebor  <msebor@redhat.com>
4582         PR c/69759
4583         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
4584         __builtin_alloca_with_align.
4586 2016-02-23  Richard Henderson  <rth@redhat.com>
4588         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
4589         (ix86_register_pragmas): Remove __seg_tls.
4590         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
4591         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
4592         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
4593         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
4594         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
4595         * doc/extend.texi (__seg_tls): Remove item.
4597 2016-02-23  Richard Biener  <rguenther@suse.de>
4599         * alloc-pool.h (struct allocation_object): Make id member
4600         conditional on CHECKING_P again.
4601         (get_instance): Adjust.
4602         (base_pool_allocator): Likewise.
4604 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
4606         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
4607         (parallelize_loops): In OpenACC kernels mode, set n_threads to
4608         zero.
4609         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
4610         flag_openacc.
4611         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
4613 2016-02-23  Richard Biener  <rguenther@suse.de>
4615         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
4616         * bitmap.h (struct bitmap_usage): Likewise.
4617         (bitmap_move): Declare.
4618         * bitmap.c (register_overhead): Take size_t argument.
4619         (bitmap_move): New function.
4620         * df-problems.c (df_rd_transfer_function): Use bitmap_move
4621         to properly account overhead.
4622         * tree.c (free_node): Use tree_size.
4624 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
4626         PR c++/69902
4627         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
4628         when inverting comparison.
4630         PR c/69900
4631         * common.opt (Wunreachable-code): Add Warning flag.
4633 2016-02-23  Mark Wielaard  <mjw@redhat.com>
4634             Jakub Jelinek  <jakub@redhat.com>
4636         PR c/69911
4637         * cgraphunit.c (check_global_declaration): Check main_input_filename
4638         and DECL_SOURCE_FILE are not NULL.
4640 2016-02-23  Martin Jambor  <mjambor@suse.cz>
4642         PR tree-optimization/69666
4643         * tree-sra.c (sra_modify_assign): Do not attempt to create
4644         default_def replacements for unscalarizable regions.
4646 2016-02-20  Mark Wielaard  <mjw@redhat.com>
4648         PR c/28901
4649         * cgraphunit.c (check_global_declaration): Check level of
4650         warn_unused_const_variable and main_input_filename.
4651         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
4652         (-Wunused-variable): For C implies -Wunused-const-variable=1.
4653         (-Wunused-const-variable): Explain levels 1 and 2.
4655 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
4657         PR target/69888
4658         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
4659         identical arguments.  Formatting and spelling fixes.
4661         PR target/69885
4662         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
4663         be specified.
4665         PR target/69894
4666         PR target/69895
4667         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
4668         and m68k-devices.def.
4669         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
4670         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
4672 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
4674         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
4675         and HImode registers.
4677 2016-02-22  Richard Biener  <rguenther@suse.de>
4679         PR tree-optimization/69882
4680         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
4681         preserve permutations present because of gaps.
4682         (vect_supported_load_permutation_p): Always continue checking
4683         permutations after vect_attempt_slp_rearrange_stmts.
4685 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
4687         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
4688         min_profitable_estimate, rather than min_profitable_iters.
4690 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
4692         PR target/69885
4693         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
4694         SImode for last match_operand.
4696 2016-02-22  Martin Liska  <mliska@suse.cz>
4698         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
4699         return bitsize - 1 as the return value.
4701 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
4703         PR target/69806
4704         PR target/54089
4705         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
4706         Handle negative shift counts.
4707         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
4708         force_reg on the shift constant.
4709         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
4710         (lshrsi3_d): Handle negative shift counts.
4712 2016-02-22  Richard Biener  <rguenther@suse.de>
4713             Tom de Vries  <tom@codesourcery.com>
4715         * graph.c: Include dumpfile.h.
4716         (print_graph_cfg): Split into three overloads.
4717         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
4719 2016-02-22  Tom de Vries  <tom@codesourcery.com>
4721         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
4722         dump-fn.
4724 2016-02-22  Richard Biener  <rguenther@suse.de>
4726         PR ipa/37448
4727         * ipa-inline-transform.c (inline_call): When not updating
4728         overall summaries adjust self size by the growth estimate.
4729         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
4730         hash-set, do not update overall summaries here.  Renamed from ...
4731         (inline_to_all_callers): ... this which is now wrapping the
4732         above and performing delayed overall summary update.
4733         (early_inline_small_functions): Delay updating of the overall
4734         summary.
4736 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
4738         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
4739         variable.
4741 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
4743         PR driver/69805
4744         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
4745         :%* in %:gt() argument.
4746         (greater_than_spec_func): Adjust for expecting only numbers,
4747         if there are more than two numbers, compare the last two.
4749 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
4751         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
4752         -Wnarrowing with -std.
4754 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
4756         PR c++/69851
4757         * expr.c (store_field): Don't use bit-field path if exp is
4758         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
4759         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
4760         and the assignment can be performed by bitwise copy.  Formatting
4761         fix.
4763         PR middle-end/69838
4764         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
4765         call copy_reg_eh_region_note_forward on before and/or after sequences
4766         and remove note from insn if it no longer can throw.
4768         PR target/69820
4769         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
4770         if TARGET_AVX512BW.
4772 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4774         * config/s390/vector.md: Add missing commutative operand markers
4775         to the patterns which qualify for one.
4776         * config/s390/vx-builtins.md: Likewise.
4778 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4780         * config/s390/vector.md (VI, VI_QHS): Add single element vector
4781         types to mode iterators.
4782         (vec_double): ... and mode attribute.
4783         * config/s390/vx-builtins.md (non_vec_int): Likewise.
4785 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4787         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
4788         Change the predicate of op2 from nonimmediate to general and let
4789         reload fix it if necessary.
4791 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4793         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
4795 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4797         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
4798         mode.
4800 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4802         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
4803         * config/s390/s390.c (s390_expand_vec_movstr): New function.
4804         * config/s390/s390.md ("movstr<P:mode>"): Call
4805         s390_expand_vec_movstr.
4807 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4809         * config/s390/s390.md: Add missing output modifier for operand 1
4810         to print it as address properly.
4812 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4814         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
4815         * config/s390/2964.md: New file.
4816         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
4817         of insn grouping attributes depending on the CPU level.
4818         (s390_get_unit_mask): New function.
4819         (s390_sched_score): Remove the OOO from the scheduling macros.
4820         Add loop to calculate a score for the instruction mix.
4821         (s390_sched_reorder): Likewise plus improve debug output.
4822         (s390_sched_variable_issue): Rename macros as above.  Calculate
4823         the unit distances after actually scheduling an insn.  Improve
4824         debug output.
4825         (s390_sched_init): Clear last_scheduled_unit_distance array.
4826         * config/s390/s390.md: Include 2964.md.
4828 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
4830         PR target/69671
4831         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
4832         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
4833         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
4834         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
4835         *avx512f_<code>v8div16qi2_mask_1): New insns.
4837 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
4839         PR target/68404
4840         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
4841         2016-02-09 change.
4843         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
4844         earlyclobber from target.  Use wF constraint for fused memory
4845         address.
4846         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
4848 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
4849             Martin Liska  <mliska@suse.cz>
4851         PR sanitizer/69863
4852         * cfgexpand.c (asan_sanitize_stack_p): New function.
4853         (partition_stack_vars): Use the function.
4854         (expand_stack_vars): Likewise.
4855         (defer_stack_allocation): Likewise.
4856         (expand_used_vars): Likewise.
4858 2016-02-18  Richard Biener  <rguenther@suse.de>
4860         PR middle-end/69553
4861         * fold-const.c (operand_equal_p): Properly compare offsets for
4862         IMAGPART_EXPR and ARRAY_REF.
4864 2016-02-18  Nick Clifton  <nickc@redhat.com>
4866         PR target/62254
4867         PR target/69610
4868         * config/arm/arm.c (arm_option_override_internal): Disable
4869         interworking if the target does not support thumb instructions.
4870         (arm_reload_in_hi): Handle the case where a register to register
4871         move needs reloading because there is no simple pattern to handle
4872         it.
4873         (arm_reload_out_hi): Likewise.
4875 2016-02-18  Richard Biener  <rguenther@suse.de>
4877         PR middle-end/69854
4878         * match.pd: Don't use fold_binary or fold_unary for folding
4879         constants.
4881 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
4883         PR c++/69850
4884         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
4885         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
4886         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
4887         warn on gimple_no_warning_p statements.
4889 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
4891         * doc/extend.texi (C++ Attributes): Correct description of
4892         warn_unused type attribute.
4894 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4896         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
4897         correct instruction.
4899 2016-02-17  Richard Biener  <rguenther@suse.de>
4901         PR rtl-optimization/69609
4902         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
4903         (find_traces_1_round): When ending a trace update cached priority
4904         of successors.
4905         (bb_to_key): Use cached priority when available.
4906         (copy_bb): Initialize cached priority.
4907         (reorder_basic_blocks_software_trace_cache): Likewise.
4909 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4911         PR target/69161
4912         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
4913         New predicate.
4914         (aarch64_comparison_operator): Break overly long line into two.
4915         (aarch64_comparison_operation): Likewise.
4916         * config/aarch64/aarch64.md (cstorecc4): Use
4917         aarch64_comparison_operator_mode instead of
4918         aarch64_comparison_operator.
4919         (cstore<mode>4): Likewise.
4920         (aarch64_cstore<mode>): Likewise.
4921         (*cstoresi_insn_uxtw): Likewise.
4922         (cstore<mode>_neg): Likewise.
4923         (*cstoresi_neg_uxtw): Likewise.
4925 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4927         PR target/69161
4928         * config/arm/predicates.md (arm_comparison_operator_mode):
4929         New predicate.
4930         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
4931         instead of arm_comparison_operator.
4932         (*mov_negscc): Likewise.
4933         (*mov_notscc): Likewise.
4934         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
4935         (*thumb2_mov_negscc): Likewise.
4936         (*thumb2_mov_negscc_strict_it): Likewise.
4937         (*thumb2_mov_notscc): Likewise.
4938         (*thumb2_mov_notscc_strict_it): Likewise.
4940 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
4942         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
4943         Add missing return.
4945 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
4947         * config/visium/visium.c (machine_libfunc_index): New enum.
4948         (machine_libfuncs): New structure.
4949         (visium_libfuncs): New static variable.
4950         (TARGET_INIT_LIBFUNCS): Define to...
4951         (visium_init_libfuncs): ...this.  New function.
4952         (expand_block_move_4): Use the appropriate libfunc.
4953         (expand_block_move_2): Likewise.
4954         (expand_block_move_1): Likewise.
4955         (expand_block_set_4): Likewise.
4956         (expand_block_set_2): Likewise.
4957         (expand_block_set_1): Likewise.
4958         (visium_trampoline_init): Likewise.
4960 2016-02-17  Nick Clifton  <nickc@redhat.com>
4962         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
4963         TI's devices.csv file as of March 2016.
4965 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
4967         PR Target/48344
4968         * opts-global.c (handle_common_deferred_options): Introduce and
4969         initialize two global variables to remember command-line options
4970         specifying a stack-limiting register.
4971         * opts.h: Add extern declarations of the two new global variables.
4972         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
4973         variable based on the values of the two new global variables.
4975 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
4977         PR c/69835
4978         * common.opt (Wnonnull-compare): New warning.
4979         * doc/invoke.texi (-Wnonnull): Remove text about comparison
4980         of arguments against NULL.
4981         (-Wnonnull-compare): Document.
4982         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
4983         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
4984         * passes.def (pass_warn_nonnull_compare): Add.
4985         * gimple-ssa-nonnull-compare.c: New file.
4987 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
4989         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
4990         AARCH64_EXTRA_TUNE_RECIP_SQRT.
4992 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
4994         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
4995         reciprocal sqrt for -mlow-precision-recip-sqrt.
4997 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
4998             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5000         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5001         always use lane loads to construct non-constant vectors.
5003 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5005         * config/aarch64/aarch64.md
5006         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5007         constraints for operand 3.
5008         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5010 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5011             Richard Biener  <rguenther@suse.de>
5013         PR tree-optimization/69820
5014         * tree-vect-patterns.c (type_conversion_p): Return false if
5015         *orig_type is unsigned single precision or boolean.
5016         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5017         Formatting fix.
5019 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5021         PR rtl-optimization/69764
5022         PR rtl-optimization/69771
5023         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5024         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5026 2016-02-16  Richard Biener  <rguenther@suse.de>
5028         PR tree-optimization/69776
5029         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5030         sets from caller.
5031         (indirect_refs_may_alias_p): Likewise.
5032         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5033         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5034         according to tbaa_p.
5035         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5036         (optimize_stmt): For redundant store discovery do not allow tbaa.
5038 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
5040         PR tree-optimization/69714
5041         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5042         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5044 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
5046         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5047         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5048         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5049         * config/arc/arc.c (arc_init): Check FPU options.
5050         (get_arc_condition_code): Handle new CC_FPU* modes.
5051         (arc_select_cc_mode): Likewise.
5052         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5053         register pair only. Allow access for ARCv2 accumulator.
5054         (gen_compare_reg): Whenever we have FPU support use FPU compare
5055         instructions.
5056         (arc_reorg): Don't generate brcc insns when FPU compare
5057         instructions are involved.
5058         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5059         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5060         floating point emulation.
5061         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5062         (REVERSE_CONDITION): Add new CC_FPU* modes.
5063         (TARGET_FP_SP_BASE): Define.
5064         (TARGET_FP_DP_BASE): Likewise.
5065         (TARGET_FP_SP_FUSED): Likewise.
5066         (TARGET_FP_DP_FUSED): Likewise.
5067         (TARGET_FP_SP_CONV): Likewise.
5068         (TARGET_FP_DP_CONV): Likewise.
5069         (TARGET_FP_SP_SQRT): Likewise.
5070         (TARGET_FP_DP_SQRT): Likewise.
5071         (TARGET_FP_DP_AX): Likewise.
5072         * config/arc/arc.md (ARCV2_ACC): New constant.
5073         (type): New fpu type attribute.
5074         (SDF): Conditional iterator.
5075         (cstore<mode>, cbranch<mode>): Change expand condition.
5076         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5077         handles FPU/FPX cases as well.
5078         * config/arc/arc.opt (mfpu): New option.
5079         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5080         Renamed.
5081         (adddf3, muldf3, subdf3): Removed.
5082         * config/arc/predicates.md (proper_comparison_operator): Recognize
5083         CC_FPU* modes.
5084         * config/arc/fpu.md: New file.
5085         * doc/invoke.texi (ARC Options): Document mfpu option.
5087 2016-02-16  Richard Biener  <rguenther@suse.de>
5089         PR rtl-optimization/69291
5090         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5091         noce_operand_ok check.
5093 2016-02-16  Tom de Vries  <tom@codesourcery.com>
5095         PR lto/67709
5096         * omp-low.c (simd_clone_create): Remove call to
5097         symtab->call_cgraph_insertion_hooks.
5099 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5101         PR tree-optimization/69802
5102         * tree-ssa-reassoc.c (update_range_test): If op is
5103         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5104         op == 1 test of precision 1 integral op, otherwise handle
5105         that case as op itself.  Fix up formatting.
5106         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5107         up formatting.
5109 2016-02-16  Richard Biener  <rguenther@suse.de>
5111         PR tree-optimization/69586
5112         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5113         types for conversion sources.
5115 2016-02-16  Richard Biener  <rguenther@suse.de>
5117         PR middle-end/69801
5118         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5119         mask OEP_ADDRESS_OF.
5121 2016-02-16  Alan Modra  <amodra@gmail.com>
5123         PR target/68973
5124         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5125         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5126         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5127         (p8_mtvsrwz): New.
5128         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5129         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5130         (p8_fmrgow_<mode>): Likewise.
5131         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
5132         changes.
5133         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5134         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5135         to use movdi_internal64.  Remove op0_di.
5136         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5138 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
5140         Add support for the FCCMP insn types
5142         * config/aarch64/aarch64.md (fccmp): Change insn type.
5143         (fccmpe): Likewise.
5144         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5145         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5146         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5147         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5148         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5149         * config/arm/types.md (fccmps): Add new insn type.
5150         (fccmpd): Likewise.
5152 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5154         * alias.c (get_alias_set): Fix a typo in comment.
5156 2016-02-15  Richard Biener  <rguenther@suse.de>
5158         PR tree-optimization/69595
5159         * match.pd: Complete range test simplification to true.
5161 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
5163         PR rtl-optimization/69648
5164         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5165         pic_offset_table_rtx.
5167         PR rtl-optimization/69752
5168         * ira.c (update_equiv_regs): When looking for more than a single SET,
5169         also take other side effects into account.
5171 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5173         * config/s390/s390.c (s390_function_profiler): Add a new sequence
5174         for z900+ CPUs in 31-bit mode.
5176 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5178         * common/config/s390/s390-common.c (s390_supports_split_stack):
5179         New function.
5180         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5181         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5182         * config/s390/s390.c (struct machine_function): New field
5183         split_stack_varargs_pointer.
5184         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5185         in s390_emit_prologue.
5186         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5187         vararg pointer.
5188         (morestack_ref): New global.
5189         (SPLIT_STACK_AVAILABLE): New macro.
5190         (s390_expand_split_stack_prologue): New function.
5191         (s390_live_on_entry): New function.
5192         (s390_va_start): Use split-stack vararg pointer if appropriate.
5193         (s390_asm_file_end): Emit the split-stack note sections.
5194         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5195         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5196         (UNSPECV_SPLIT_STACK_CALL): New unspec.
5197         (UNSPECV_SPLIT_STACK_DATA): New unspec.
5198         (split_stack_prologue): New expand.
5199         (split_stack_space_check): New expand.
5200         (split_stack_data): New insn.
5201         (split_stack_call): New expand.
5202         (split_stack_call_*): New insn.
5203         (split_stack_cond_call): New expand.
5204         (split_stack_cond_call_*): New insn.
5206 2016-02-15  Richard Biener  <rguenther@suse.de>
5208         PR tree-optimization/69783
5209         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5210         Add trivially correct cases.
5212 2016-02-15  Tom de Vries  <tom@codesourcery.com>
5214         PR lto/69655
5215         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5216         do_force_output.
5217         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5219 2016-02-15  Richard Biener  <rguenther@suse.de>
5221         PR tree-optimization/69776
5222         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5223         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5224         indicate whether we can use TBAA to disambiguate against stores.
5225         Use alias-set zero if not.
5226         (visit_reference_op_store): Do not use TBAA when looking up
5227         redundant stores.
5228         * tree-ssa-pre.c (compute_avail): Use TBAA here.
5229         (eliminate_dom_walker::before_dom_children): But not when looking
5230         up redundant stores.
5232 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
5234         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5236 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5238         *  config/i386/znver1.md
5239         (znver1_pop, znver1_pop_mem,
5240         znver1_load_imov_double_store,
5241         znver1_load_imov_direct_store,
5242         znver1_load_imov_direct_load,
5243         znver1_load_imov_double_load): Add new.
5244         (znver1_insn, znver1_insn_load): Add icmov type.
5245         (znver1_sseavx_fma,
5246         znver1_sseavx_fma_load,
5247         znver1_avx256_fma,
5248         znver1_avx256_fma_load): Fix pipe usage.
5250 2016-02-14  Alan Modra  <amodra@gmail.com>
5252         PR target/68973
5253         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5254         with an invalid hard reg, reload just the reg not the entire
5255         pre/post-inc/dec address expression.
5257 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
5259         PR target/67260
5260         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5261         fixed R1_REG scratch reg.
5262         (sibcall_value_pcrel_fdpic): Likewise.
5264 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
5266         PR target/67636
5267         PR target/64345
5268         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5270 2016-02-12  Walter Lee  <walt@tilera.com>
5272         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5273         * config/tilegx/t-tilegx: Likewise.
5275 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5277         PR other/69554
5278         * diagnostic-show-locus.c (struct line_span): New struct.
5279         (layout::get_first_line): Delete.
5280         (layout::get_last_line): Delete.
5281         (layout::get_num_line_spans): New member function.
5282         (layout::get_line_span): Likewise.
5283         (layout::print_heading_for_line_span_index_p): Likewise.
5284         (layout::get_expanded_location): Likewise.
5285         (layout::calculate_line_spans): Likewise.
5286         (layout::m_first_line): Delete.
5287         (layout::m_last_line): Delete.
5288         (layout::m_line_spans): New field.
5289         (layout::layout): Update comment.  Replace m_first_line and
5290         m_last_line with m_line_spans, replacing their initialization
5291         with a call to calculate_line_spans.
5292         (diagnostic_show_locus): When printing source lines and
5293         annotations, rather than looping over a single span
5294         of lines, instead loop over each line_span within
5295         the layout, with an inner loop over the lines within them.
5296         Call the context's start_span callback when changing line spans.
5297         * diagnostic.c (diagnostic_initialize): Initialize start_span.
5298         (diagnostic_build_prefix): Break out the building of the location
5299         part of the string into...
5300         (diagnostic_get_location_text): ...this new function, rewriting
5301         it from nested ternary expressions to a sequence of "if"
5302         statements.
5303         (default_diagnostic_start_span_fn): New function.
5304         * diagnostic.h (diagnostic_start_span_fn): New typedef.
5305         (diagnostic_context::start_span): New field.
5306         (default_diagnostic_start_span_fn): New prototype.
5308 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5310         PR driver/69779
5311         * gcc.c (driver::finalize): Fix cleanup of "specs".
5313 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5315         PR driver/69265
5316         PR driver/69453
5317         * gcc.c (driver::driver): Initialize m_option_suggestions.
5318         (driver::~driver): Clean up m_option_suggestions.
5319         (suggest_option): Convert to...
5320         (driver::suggest_option): ...this, and split out into
5321         driver::build_option_suggestions and find_closest_string.
5322         (driver::build_option_suggestions): New function, from
5323         first half of suggest_option.  Special-case
5324         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5325         the sanitizer_opts array.  For options of enum types, add the
5326         various enum values to the candidate strings.
5327         (driver::handle_unrecognized_options): Remove "const".
5328         * gcc.h (driver::handle_unrecognized_options): Likewise.
5329         (driver::build_option_suggestions): New decl.
5330         (driver::suggest_option): New decl.
5331         (driver::m_option_suggestions): New field.
5332         * opts-common.c (add_misspelling_candidates): New function.
5333         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5334         and make non-static.
5335         * opts.h (sanitizer_opts): New array decl.
5336         (add_misspelling_candidates): New function decl.
5337         * spellcheck.c (find_closest_string): New function.
5338         * spellcheck.h (find_closest_string): New function decl.
5340 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5342         PR rtl-optimization/69764
5343         PR rtl-optimization/69771
5344         * optabs.c (expand_binop_directly): For shift_optab_p, force
5345         convert_modes with VOIDmode if xop1 has VOIDmode.
5347 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5349         PR target/69729
5350         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5351         to correctly determine instrumentation thunks.
5353 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5355         PR ipa/69241
5356         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5357         type by reference, force lhs on the call.
5359         PR ipa/68672
5360         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5361         Compute retval and retbnd early in all cases if split_part_return_p
5362         and return_bb is not EXIT.  Remove all clobber stmts and reset
5363         all debug stmts that refer to SSA_NAMEs defined in split part,
5364         except if it is retval, in that case replace the old retval with the
5365         lhs of the call to the split part.
5367 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5369         revert:
5370         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5372         PR middle-end/66726
5373         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5374         whose result is used in PHI.
5375         (maybe_optimize_range_tests): Likewise.
5376         (final_range_test_p): Likweise.
5378 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5380         PR middle-end/66726
5381         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5382         whose result is used in PHI.
5383         (maybe_optimize_range_tests): Likewise.
5384         (final_range_test_p): Likweise.
5386 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5388         * cgraph.c: Spelling fixes - behaviour -> behavior and
5389         neighbour -> neighbor.
5390         * target.def: Likewise.
5391         * sel-sched.c: Likewise.
5392         * config/mips/mips.c: Likewise.
5393         * config/arc/arc.md: Likewise.
5394         * config/arm/cortex-a57.md: Likewise.
5395         * config/arm/arm.c: Likewise.
5396         * config/arm/neon.md: Likewise.
5397         * config/arm/arm-c.c: Likewise.
5398         * config/vms/vms-c.c: Likewise.
5399         * config/s390/s390.c: Likewise.
5400         * config/i386/znver1.md: Likewise.
5401         * config/i386/i386.c: Likewise.
5402         * config/ia64/hpux-unix2003.h: Likewise.
5403         * config/msp430/msp430.md: Likewise.
5404         * config/rx/rx.c: Likewise.
5405         * config/rx/rx.md: Likewise.
5406         * config/aarch64/aarch64-simd.md: Likewise.
5407         * config/aarch64/aarch64.c: Likewise.
5408         * config/nvptx/nvptx.c: Likewise.
5409         * config/bfin/bfin.c: Likewise.
5410         * config/cris/cris.opt: Likewise.
5411         * config/rs6000/rs6000.c: Likewise.
5412         * target.h: Likewise.
5413         * spellcheck.c: Likewise.
5414         * ira-build.c: Likewise.
5415         * tree-inline.c: Likewise.
5416         * builtins.c: Likewise.
5417         * lra-constraints.c: Likewise.
5418         * explow.c: Likewise.
5419         * hwint.h: Likewise.
5420         * targhooks.c: Likewise.
5421         * tree-vect-data-refs.c: Likewise.
5422         * expr.c: Likewise.
5423         * doc/tm.texi: Likewise.
5424         * doc/extend.texi: Likewise.
5425         * doc/install.texi: Likewise.
5426         * doc/md.texi: Likewise.
5427         * tree-ssa-tail-merge.c: Likewise.
5428         * sched-int.h: Likewise.
5429         * match.pd: Likewise.
5430         * sched-ebb.c: Likewise.
5431         * target.def (omit_struct_return_reg): Likewise.
5432         * gimple-ssa-isolate-paths.c: Likewise.
5433         (find_implicit_erroneous_behaviour): Renamed to...
5434         (find_implicit_erroneous_behavior): ... this.
5435         (find_explicit_erroneous_behaviour): Renamed to...
5436         (find_explicit_erroneous_behavior): ... this.
5437         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5439 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
5441         PR rtl-optimization/64682
5442         PR rtl-optimization/69567
5443         PR rtl-optimization/69737
5444         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5445         in I2 as well, just lose it.
5447 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5449         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5450         New variable.
5451         (aarch64_last_printed_tune_string): Likewise.
5452         (aarch64_declare_function_name): Only output .arch assembler
5453         directive if it will be different from the previously output
5454         directive.  Same for .tune comment but only if -dA is set.
5455         (aarch64_start_file): New function.
5456         (TARGET_ASM_FILE_START): Define.
5458 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
5460         PR plugins/69758
5461         * Makefile.in (PLUGIN_HEADERS): Add params.list.
5463 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
5465         PR target/65313
5466         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
5467         -Wmaybe-uninitialized warning.
5469 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
5471         PR target/69713
5472         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
5474 2016-02-11  Richard Biener  <rguenther@suse.de>
5476         PR rtl-optimization/69291
5477         * ifcvt.c (noce_try_store_flag_constants): Do not allow
5478         subexpressions affected by changing the result.
5480 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
5482         PR target/69148
5483         * lra-constraints.c (curr_insn_transform): Find in/out operands
5484         for secondary memory moves.  Update dups.
5486 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5488         PR tree-optimization/69652
5489         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
5490         to nested loop, did source re-formatting, skip debug statements,
5491         add check on statement with volatile operand, remove dead scalar
5492         statements.
5494 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
5495             Patrick Palka  <ppalka@gcc.gnu.org>
5497         PR ipa/69241
5498         PR c++/69649
5499         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
5500         calls if the return type is TREE_ADDRESSABLE.
5501         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
5502         * ipa-split.c (split_function): Fix doubled "we" in comment.
5503         Use void return type for the split part even if
5504         !split_point->split_part_set_retval.
5506 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
5508         PR tree-optimization/68021
5509         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
5510         when computing the value of biv cand by itself.
5512 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
5514         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
5515         (cortexa57_tunings): Likewise.
5516         (cortexa72_tunings): Likewise.
5517         (arch_macro_fusion_pair_p): Add support for AES fusion.
5518         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
5519         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
5520         Allow virtual registers before reload so early scheduling works.
5521         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
5522         correct latency and pipeline.
5523         (cortex_a57_crypto_complex): Likewise.
5524         (cortex_a57_crypto_xor): Likewise.
5525         (define_bypass): Add AES bypass.
5527 2016-02-10  Richard Biener  <rguenther@suse.de>
5529         PR tree-optimization/69726
5530         * passes.def: Add DCE pass before late uninit.
5531         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
5532         really fixup if-conversions job.
5534 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
5536         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
5537         (arm_cortex_a57_tune): Likewise.
5538         (aarch_macro_fusion_pair_p): Add support for AES fusion.
5539         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
5541 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
5543         * timevar.def (TV_PHASE_DBGINFO): Delete.
5544         (TV_PHASE_CHECK_DBGINFO): Likewise.
5545         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
5547 2016-02-10  Richard Biener  <rguenther@suse.de>
5549         PR tree-optimization/69719
5550         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5551         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
5553 2016-02-09  Andrew Pinski  <apinski@cavium.com>
5555         PR tree-opt/69282
5556         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
5557         get_vcond_mask_icode returns false.
5559 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
5561         PR target/68404
5562         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
5563         an ADDIS that adds a pointer to a large constant that sets the
5564         upper16 bits with a load operation.
5566 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
5568         PR target/68532
5569         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
5570         order.
5571         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
5572         endian.
5573         (vzipq_s16): Likewise.
5574         (vzipq_s32): Likewise.
5575         (vzipq_f32): Likewise.
5576         (vzipq_u8): Likewise.
5577         (vzipq_u16): Likewise.
5578         (vzipq_u32): Likewise.
5579         (vzipq_p8): Likewise.
5580         (vzipq_p16): Likewise.
5582 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
5584         PR target/68532
5585         * config/arm/arm.c (neon_endian_lane_map): New function.
5586         (neon_vector_pair_endian_lane_map): New function.
5587         (arm_evpc_neon_vuzp): Allow for big endian lane order.
5588         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
5589         endian.
5590         (vuzpq_s16): Likewise.
5591         (vuzpq_s32): Likewise.
5592         (vuzpq_f32): Likewise.
5593         (vuzpq_u8): Likewise.
5594         (vuzpq_u16): Likewise.
5595         (vuzpq_u32): Likewise.
5596         (vuzpq_p8): Likewise.
5597         (vuzpq_p16): Likewise.
5599 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
5601         PR target/69634
5602         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
5603         debug insns.
5605 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
5607         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
5608         truncate const_int operand 1 to QImode.
5610 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
5612         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
5613         corresponding to an abnormal edge.
5615 2016-02-09  Tom de Vries  <tom@codesourcery.com>
5617         PR tree-optimization/69599
5618         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
5619         function.
5620         (find_func_aliases_for_builtin_call, find_func_clobbers)
5621         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
5622         partition.
5624 2016-02-09  Richard Biener  <rguenther@suse.de>
5626         PR tree-optimization/69715
5627         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
5628         LHS on calls as non-rewritable.
5630 2016-02-09  Tom de Vries  <tom@codesourcery.com>
5632         PR lto/69707
5633         * lto-wrapper.c (append_diag_options): New function.
5634         (compile_offload_image): Call append_diag_options.
5636 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
5638         PR other/69722
5639         * doc/extend.texi (Flag Output Operands): Correct sectioning.
5640         Minor copy-edit to fix verb tenses.
5642 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
5644         PR tree-optimization/69209
5645         * ipa-split.c (split_function): If split part is not
5646         returning retval, retval has gimple type but is not
5647         gimple value, force it into a SSA_NAME first.
5649 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
5651         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
5652         outdated section.
5654 2016-02-08  Jason Merrill  <jason@redhat.com>
5656         PR c++/69631
5657         * convert.c (convert_to_integer_1): Check dofold on truncation
5658         distribution.
5659         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
5660         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
5661         Rename from *_nofold.
5662         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
5663         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
5665 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
5667         PR target/60410
5668         * tree.c (build_common_tree_nodes): Remove short_double argument.
5669         All callers changed.
5670         * tree.h (build_common_tree_nodes): Adjust declaration.
5671         * doc/invoke.texi (-fshort-double): Remove documentation.
5672         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
5673         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
5674         * lto-wrapper.c (merge_and_complain, append_compiler_options)
5675         (append_linker_options): Don't handle OPT_fshort_double.
5677         PR rtl-optimization/68730
5678         * lra-remat.c (insn_to_cand_activation): New static variable.
5679         (lra_remat): Allocate and free it.
5680         (create_cand): New arg activation. Initialize a field in
5681         insn_to_cand_activation if it is nonnull.
5682         (create_cands): Pass the activation insn to create_cand when making
5683         a candidate involving an output reload.  Reorganize code a little.
5684         (do_remat): Keep track of active status of candidates in a separate
5685         bitmap.
5687 2016-02-08  Richard Biener  <rguenther@suse.de>
5689         PR tree-optimization/69719
5690         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5691         Properly use absolute of the difference of the two offsets to
5692         compare or adjust the segment length.
5694 2016-02-08  Richard Biener  <rguenther@suse.de>
5695             Jeff Law  <law@redhat.com>
5697         PR target/68273
5698         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
5699         types for anonymous SSA names.
5701 2016-02-08   Richard Biener  <rguenther@suse.de>
5703         PR rtl-optimization/69274
5704         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
5706 2016-02-08  Jeff Law  <law@redhat.com>
5708         PR tree-optimization/65917
5709         * tree-ssa-dom.c (record_temporary_equivalences): Record both
5710         equivalences from if (x == y) style conditionals.
5711         (loop_depth_of_name): Remove.
5712         (record_equality): Remove loop depth check.
5713         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
5714         (const_and_copies::record_const_or_copy_raw): New member function.
5715         * tree-ssa-scopedtables.c
5716         (const_and_copies::record_const_or_copy_raw): New, factored out of
5717         (const_and_copies::record_const_or_copy): Call new member function.
5719 2016-02-05  Jeff Law  <law@redhat.com>
5721         PR tree-optimization/68541
5722         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
5723         (count_stmts_in_block): New function.
5724         (poor_ifcvt_candidate_code): Likewise.
5725         (is_feasible_trace): Add some heuristics to determine when path
5726         splitting is profitable.
5727         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
5728         is a diamond with a single exit.
5730 2016-02-05  Martin Sebor  <msebor@redhat.com>
5732         PR c++/69662
5733         * doc/invoke.texi: Update -Wplacement-new to take an optional
5734         argument.
5736 2016-02-06  Richard Henderson  <rth@redhat.com>
5738         PR c/69643
5739         * tree.c (tree_nop_conversion_p): Do not strip casts into or
5740         out of non-standard address spaces.
5742 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
5744         PR rtl-optimization/69691
5745         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
5747 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
5749         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
5750         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
5751         (*ieee128_mfvsrd_64bit): Likewise.
5752         (*ieee128_mfvsrd_32bit): Likewise.
5754 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
5756         PR target/69369
5757         Revert r232560:
5758         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
5760         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
5761         instrumented_version.
5763 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
5765         * doc/invoke.texi (Optimize Options): In table of --param options
5766         rename second occurrence of tracer-min-branch-ratio to
5767         tracer-min-branch-probability, rename
5768         tracer-min-branch-ratio-feedback to
5769         tracer-min-branch-probability-feedback and clarify description,
5770         rename sched-spec-state-edge-prob-cutoff to
5771         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
5772         to selsched-insns-to-rename, rename lto-minpartition to
5773         lto-min-partition, delete reorder-blocks-duplicate and
5774         reorder-blocks-duplicate-feedback.
5776 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5778         * config/s390/s390.c (s390_register_info_set_ranges): Remove
5779         superfluous loops.
5781 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
5783         * doc/extend.texi: S/390: Correct some typos.
5785 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5787         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
5789 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5791         PR target/69625
5792         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
5793         (s390_register_info_gprtofpr): Use new macros above.
5794         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
5795         its name.
5796         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
5797         its name.  Adjust restore and save gpr ranges.
5798         (s390_register_info_set_ranges): New function.
5799         (s390_register_info): Use new macros above.  Call
5800         s390_register_info_set_ranges.
5801         (s390_optimize_register_info): Likewise.
5802         (s390_hard_regno_rename_ok): Use new macros.
5803         (s390_hard_regno_scratch_ok): Likewise.
5804         (s390_emit_epilogue): Likewise.
5805         (s390_can_use_return_insn): Likewise.
5806         (s390_optimize_prologue): Likewise.
5807         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
5809 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
5811         PR bootstrap/69677
5812         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
5813         alignment fixes.
5814         (ix86_option_override_internal): Disable TARGET_STV even for
5815         -m{incoming,preferred}-stack-boundary=3.
5817 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
5819         * config.gcc: Mark deprecated rtems targets as obsolete.
5821 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
5823         PR rtl-optimization/64682
5824         PR rtl-optimization/69567
5825         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
5826         before I2 only if the register is both used and set in I2.
5828 2016-02-04  DJ Delorie  <dj@redhat.com>
5830         * config/msp430/msp430.c (msp430_start_function): Add function type.
5832 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
5834         PR fortran/69368
5835         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
5837 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
5839         PR rtl-optimization/69577
5840         Revert:
5841         2015-10-29  Richard Henderson  <rth@redhat.com>
5843         PR target/68124
5844         PR rtl-opt/67609
5845         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
5846         sse check to the exact conditions of PR 67609.
5848 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
5850         PR target/69667
5851         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
5852         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
5853         not allowed into the traditional Altivec registers.
5854         (movtd_64bit_nodm): Likewise.
5855         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
5857 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
5859         * config/aarch64/cortex-a57-fma-steering.c
5860         (aarch64_register_fma_steering): Remove "static" from arguments
5861         to register_pass.
5863 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
5865         PR target/69619
5866         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
5867         twice when complex.
5869 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
5871         * doc/invoke.texi: Delete -mno-fma4.
5873 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
5875         PR rtl-optimization/69577
5876         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
5877         (find_subregs_of_mode): Update accordingly.  Iterate over partial
5878         definitions.
5880 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
5882         * config/arm/arm-protos.h (neon_reinterpret): Remove.
5883         * config/arm/arm.c (neon_reinterpret): Remove.
5884         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
5885         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
5886         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
5887         vreinterpretti): Remove.
5888         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
5889         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
5890         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
5891         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
5892         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
5893         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
5894         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
5895         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
5896         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
5897         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
5898         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
5899         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
5900         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
5901         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
5902         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
5903         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
5904         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
5905         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
5906         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
5907         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
5908         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
5909         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
5910         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
5911         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
5912         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
5913         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
5914         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
5915         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
5916         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
5917         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
5918         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
5919         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
5920         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
5921         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
5922         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
5923         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
5924         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
5925         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
5926         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
5927         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
5928         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
5929         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
5930         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
5931         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
5932         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
5933         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
5934         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
5935         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
5936         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
5937         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
5938         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
5939         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
5940         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
5941         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
5942         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
5943         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
5944         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
5945         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
5946         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
5947         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
5948         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
5949         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
5950         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
5951         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
5952         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
5953         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
5954         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
5955         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
5956         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
5957         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
5958         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
5959         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
5960         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
5961         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
5962         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
5963         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
5964         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
5965         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
5966         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
5967         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
5968         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
5969         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
5970         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
5971         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
5972         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
5973         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
5974         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
5975         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
5976         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
5977         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
5978         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
5979         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
5980         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
5981         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
5982         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
5983         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
5984         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
5985         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
5986         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
5987         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
5988         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
5989         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
5990         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
5992 2016-02-04  Martin Liska  <mliska@suse.cz>
5994         PR sanitizer/69276
5995         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
5996         that are gimple_store_p.
5997         (maybe_instrument_call): Likewise.
5999 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
6001         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6002         register scaling out of memory reference and comment why.
6004 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6006         PR target/65932
6007         PR target/67714
6008         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6009         folding the source of a SET.
6011 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6013         PR target/65932
6014         PR target/67714
6015         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6016         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6018 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
6020         PR target/65932
6021         PR target/67714
6022         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6023         HImode.
6025 2016-02-04  Christian Bruel  <christian.bruel@st.com>
6027         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6028         * config/arm/arm.c (arm_set_current_function): Likewise.
6030 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
6031             Ilya Enkovich  <enkovich.gnu@gmail.com>
6032             H.J. Lu  <hongjiu.lu@intel.com>
6034         PR target/69454
6035         * config/i386/i386.c (convert_scalars_to_vector): Remove
6036         stack alignment fixes.
6037         (ix86_option_override_internal): Disable TARGET_STV if stack
6038         might not be aligned enough.
6039         (ix86_minimum_alignment): Assert that TARGET_STV is false.
6041 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
6043         * gcc/config/i386/x86-tune.def: Disable default prefetching
6044         for -march=znver1.
6046 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6047             Vladimir Makarov  <vmakarov@redhat.com>
6049         PR target/69461
6050         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6051         in validating fused toc addresses.
6053 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
6055         PR c/69627
6056         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6057         range->m_caret fields if range->m_show_caret_p is false.
6059         PR target/69644
6060         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6061         Force oldval into register if it does not satisfy reg_or_short_operand
6062         predicate.  Fix up formatting.
6064 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
6065             Alexandre Oliva  <aoliva@redhat.com>
6067         PR target/69461
6068         * lra-constraints.c (simplify_operand_subreg): Check additionally
6069         address validity after potential reloading.
6070         (process_address_1): Check insns validity.  In case of failure do
6071         nothing.
6073 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
6075         PR target/69118
6076         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6077         Fix target.
6079 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
6081         * wide-int.cc (canonize_uhwi): New function.
6082         (wi::divmod_internal): Use it.
6084 2016-02-02  James Norris  <jnorris@codesourcery.com
6086         * gimplify.c (omp_notice_variable): Add usage check.
6088 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6090         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6091         like LE, GE, LT, GT when emitting relational operator.
6093 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6095         * ira-costs.c (find_costs_and_classes): Add extra argument.
6096         * target.def (ira_change_pseudo_allocno_class): Add parameter.
6097         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6098         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6099         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6100         Add best_class parameter, and return it if not ALL_REGS.
6101         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6102         Add parameter.
6103         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6104         Update target hook.
6106 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6108         * config/aarch64/aarch64.c
6109         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6110         (aarch64_ira_change_pseudo_allocno_class): New function.
6112 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
6114         PR target/67032
6115         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6117 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6119         * config/avr/avr.c (avr_option_override): Set
6120         PARAM_ALLOW_STORE_DATA_RACES to 1.
6122 2016-02-02  Richard Biener  <rguenther@suse.de>
6124         PR tree-optimization/69595
6125         * match.pd: Add range test simplifications to true/false.
6127 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6129         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6130         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6131         instead.
6133 2016-02-02  Richard Biener  <rguenther@suse.de>
6135         PR tree-optimization/69606
6136         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6137         info on the result before moving a stmt.
6139 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
6141         PR middle-end/68542
6142         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6143         branch with vector comparison.
6144         * config/i386/sse.md (VI48_AVX): New mode iterator.
6145         (define_expand "cbranch<mode>4): Add support for conditional branch
6146         with vector comparison.
6147         * tree-vect-loop.c (optimize_mask_stores): New function.
6148         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6149         has_mask_store field of vect_info.
6150         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6151         vectorized loops having masked stores after vec_info destroy.
6152         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6153         correspondent macros.
6154         (optimize_mask_stores): Add prototype.
6156 2016-02-02  Alan Modra  <amodra@gmail.com>
6158         PR target/69548
6159         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6160         allow subregs.
6162 2016-02-02  Alan Modra  <amodra@gmail.com>
6164         PR target/68662
6165         * config/rs6000/rs6000.c (need_toc_init): New var, set it
6166         whenever toc_label_name used.
6167         (rs6000_file_start): Don't set up toc section here,
6168         (rs6000_output_function_epilogue): do so here instead,
6169         (rs6000_xcoff_file_start): and here.
6170         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6171         (load_toc_aix_di): Likewise.
6173 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6175         PR rtl-optimization/69592
6176         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6177         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6178         (num_sign_bit_copies_binary_arith_p): New inline function.
6179         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6181 2016-02-01  Jeff Law  <law@redhat.com>
6183         PR tree-optimization/69580
6184         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6185         * tree-ssa-threadbackward.c
6186         (fsm_find_control_statement_thread_paths): Do not try to walk
6187         through large PHI nodes.
6189 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6191         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6192         when count is incremented above limit, don't analyze further
6193         insns afterwards.
6195         * omp-low.c (oacc_parse_default_dims): Avoid
6196         -Wsign-compare warning, make sure value fits into int
6197         rather than just unsigned int.
6199 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
6201         PR tree-optimization/67921
6202         * fold-const.c (split_tree): New parameters.  Convert pointer
6203         type variable part to proper type before negating.
6204         (fold_binary_loc): Pass new arguments to split_tree.
6206 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6208         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6209         (nvptx_goacc_validate_dims): Extend to handle global defaults.
6210         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6211         * doc/tm.texti: Rebuilt.
6212         * doc/invoke.texi (fopenacc-dim): Document.
6213         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6214         (append_compiler_options): Likewise.
6215         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6216         (oacc_parse_default_dims): New.
6217         (oacc_validate_dims): Add USED arg.  Select non-unity default when
6218         possible.
6219         (oacc_loop_fixed_partitions): Return mask of used partitions.
6220         (oacc_loop_auto_partitions): Emit dump info.
6221         (oacc_loop_partition): Return mask of used partitions.
6222         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
6223         loop partitioning and validation calls.
6225 2016-02-01  Richard Biener  <rguenther@suse.de>
6227         PR middle-end/69556
6228         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6230 2016-02-01  Richard Biener  <rguenther@suse.de>
6232         PR tree-optimization/69574
6233         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6234         of asserting return chrec_dont_know.
6236 2016-02-01  Martin Liska  <mliska@suse.cz>
6238         * mem-stats-traits.h: Add copyright header.
6239         * mem-stats.h: Likewise.
6241 2016-02-01  Richard Biener  <rguenther@suse.de>
6243         PR tree-optimization/69579
6244         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6245         Do not propagate through abnormal PHI results.
6247 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
6249         * postreload.c (reload_cse_simplify): Remove dead code.
6251 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6253         PR rtl-optimization/69570
6254         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6255         if there is more than one set, not if there is a single set.
6257 2016-02-01  Richard Henderson  <rth@redhat.com>
6259         PR rtl-opt/69535
6260         * combine.c (make_compound_operation): When looking through a
6261         subreg, make sure to re-extend to the width of the outer mode.
6263 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
6265         PR tree-optimization/69546
6266         * wide-int.cc (wi::divmod_internal): For unsigned division
6267         where both operands fit into uhwi, if o1 is 1 and o0 has
6268         msb set, if divident_prec is larger than bits per hwi,
6269         clear another quotient word and return 2 instead of 1.
6270         Similarly for remainder with msb in HWI set, if dividend_prec
6271         is larger than bits per hwi.
6273 2016-01-29  Martin Jambor  <mjambor@suse.cz>
6275         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6276         Use short lowercase names.
6277         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
6278         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6279         acq_rel one.  Protect warning agains segfaults if
6280         get_memory_order_name returns NULL.
6281         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6282         with release semantics.  Do not warn if get_memory_order already did.
6283         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6284         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
6285         if get_memory_order already did.
6287 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
6289         * doc/install.texi: Document that isl-0.16 is supported.
6291 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
6293         PR target/69299
6294         * config/i386/constraints.md (Bm): Describe as special memory
6295         constraint.
6296         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6297         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6298         * genpreds.c (struct constraint_data): Add is_special_memory.
6299         (have_special_memory_constraints, special_memory_start): New
6300         static vars.
6301         (special_memory_end): Ditto.
6302         (add_constraint): Add new arg is_special_memory.  Add code to
6303         process its true value.  Update have_special_memory_constraints.
6304         (process_define_constraint): Pass the new arg.
6305         (process_define_register_constraint): Ditto.
6306         (choose_enum_order): Process special memory.
6307         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6308         function insn_extra_special_memory_constraint.
6309         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6310         * gensupport.c (process_rtx): Process
6311         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6312         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6313         * ira-lives.c (single_reg_class): Use
6314         insn_extra_special_memory_constraint.
6315         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6316         * lra-constraints.c (process_alt_operands): Ditto.
6317         (curr_insn_transform): Use insn_extra_special_memory_constraint.
6318         * recog.c (asm_operand_ok, preprocess_constraints): Process
6319         CT_SPECIAL_MEMORY.
6320         * reload.c (find_reloads): Ditto.
6321         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6322         * stmt.c (parse_input_constraint): Use
6323         insn_extra_special_memory_constraint.
6325 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6327         PR target/69530
6328         * lra-splill.c (lra_final_code_change): Revert r229087 by
6329         removing all sub-registers.
6331 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
6333         PR target/65604
6334         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6336 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
6338         PR target/69551
6339         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6340         SSE1, copy target into the temporary reg first before recursing
6341         on it.
6343 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6345         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6346         with vm.
6348 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
6350         * ginclude/stdarg.h: Test __cplusplus instead of
6351         __GXX_EXPERIMENTAL_CXX0X__.
6353 2016-01-29  Richard Biener  <rguenther@suse.de>
6355         PR tree-optimization/69547
6356         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6357         Do not mark clobbers necessary.
6358         (mark_all_reaching_defs_necessary_1): Likewise.
6360 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6362         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6363         declaration name with %qs and print it in both error messages.
6364         Also fix indentation.
6366 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6368         PR other/69006
6369         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6370         trailing blank line from error message.
6372 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
6374         PR c++/69462
6375         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6376         for C++-11.
6378 2016-01-29  Richard Biener  <rguenther@suse.de>
6380         PR middle-end/69537
6381         * match.pd: Allow all integral types when simplifying a
6382         widening or sign-changing conversion.
6384 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6386         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6387         back to setting codegen_error to fail codegen.
6389 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
6391         PR target/69459
6392         * config/i386/constraints.md (C): Only accept constant zero operand.
6393         (BC): New constraint.
6394         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6395         instead of C constraint.
6396         * doc/md.texi (Machine Constraints): Update description
6397         of C constraint.
6399 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
6401         PR target/68400
6402         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6404 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
6406         PR middle-end/69542
6407         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6408         non-debug insns.
6410 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
6412         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6413         branches if using guessed profile.
6415 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
6417         * graphite-optimize-isl.c (optimize_isl): Fix dump.
6419 2016-01-28  Richard Henderson  <rth@redhat.com>
6421         PR target/69305
6422         * config/aarch64/aarch64-modes.def (CC_Cmode): New
6423         * config/aarch64/aarch64-protos.h: Update.
6424         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6425         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6426         (aarch64_get_condition_code_1): Handle CC_Cmode.
6427         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6428         (*add<mode>3_compareC_cconly_imm): New.
6429         (*add<mode>3_compareC_cconly): New.
6430         (*add<mode>3_compareC_imm): New.
6431         (add<mode>3_compareC): New.
6432         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6433         to be first.  Use aarch64_carry_operation.
6434         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6435         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6436         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6437         (subti3): Use subdi3_compare1.
6438         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6439         (sub<mode>3_compare1): New.
6440         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6441         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6442         (*subsi3_carryin_uxtw): Likewise.
6443         (*ngc<mode>, *ngcsi_uxtw): Likewise.
6444         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6445         * config/aarch64/iterators.md (DWI): New.
6446         * config/aarch64/predicates.md (aarch64_carry_operation): New.
6447         (aarch64_borrow_operation): New.
6449 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6451         * graphite-optimize-isl.c (optimize_isl): Print a different debug
6452         message when isl does not return a valid schedule.
6454 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6456         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6457         Remove comments from class declarations: they are already in the code
6458         close by the defs.
6460 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6462         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
6463         codegen_error_p.
6464         (ternary_op_to_tree): Same.
6465         (unary_op_to_tree): Same.
6466         (nary_op_to_tree): Same.
6467         (gcc_expression_from_isl_expr_op): Same.
6468         (gcc_expression_from_isl_expression): Same.
6469         (graphite_create_new_loop): Same.
6470         (graphite_create_new_loop_guard): Same.
6471         (build_iv_mapping): Same.
6472         (graphite_create_new_guard): Same.
6473         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
6474         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
6476 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6478         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
6479         instead of setting codegen_error to fail codegen.
6481 2016-01-28  Jason Merrill  <jason@redhat.com>
6483         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
6485 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
6487         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
6488         Remove CONST_INT_P check in CCMP cost calculation.
6490 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
6492         * config/aarch64/aarch64.c (generic_vector_cost):
6493         Set vec_permute_cost.
6494         (cortexa57_vector_cost): Likewise.
6495         (exynosm1_vector_cost): Likewise.
6496         (xgene1_vector_cost): Likewise.
6497         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
6498         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
6499         Add vec_permute_cost entry.
6501 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
6503         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
6504         immediate as %1.
6505         (add<mode>3_compare0): Likewise.
6506         (addsi3_compare0_uxtw): Likewise.
6507         (add<mode>3nr_compare0): Likewise.
6508         (compare_neg<mode>): Likewise.
6509         (<optab><mode>3): Likewise.
6511 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
6513         * tree-vect-stmts.c (vectorizable_comparison): Add
6514         NULL check for vectype.
6516 2016-01-28  Richard Biener  <rguenther@suse.de>
6518         PR tree-optimization/69466
6519         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
6520         Account for PHIs we couldn't duplicate.
6522 2016-01-28  Martin Liska  <mliska@suse.cz>
6524         PR pch/68758
6525         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
6526         instead of ENABLE_VALGRIND_CHECKING.
6528 2016-01-27  Richard Henderson  <rth@redhat.com>
6530         PR rtl-opt/69447
6531         * lra-remat.c (subreg_regs): New.
6532         (dump_candidates_and_remat_bb_data): Dump it.
6533         (operand_to_remat): Reject if operand in subreg_regs.
6534         (set_bb_regs): Collect subreg_regs.
6535         (lra_remat): Init and free subreg_regs.  Compute
6536         calculate_local_reg_remat_bb_data before create_cands.
6538 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
6540         PR target/68986
6541         * config/i386/i386.c (ix86_update_stack_boundary): Don't
6542         change stack_alignment_needed for __tls_get_addr call.
6544 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
6546         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
6548 2016-01-27  Jeff Law  <law@redhat.com>
6550         PR tree-optimization/68398
6551         PR tree-optimization/69196
6552         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
6553         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
6554         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6555         Only count PHIs in the last block in the path.  The others will
6556         const/copy propagate away.  Add heuristic to allow more irreducible
6557         subloops to be created when it is likely profitable to do so.
6559         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
6560         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
6561         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
6563 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
6565         PR lto/69254
6566         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
6567         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
6568         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
6569         * tree-streamer-in.c: Include asan.h.
6570         (streamer_get_builtin_tree): For builtins in sanitizer
6571         range call initialize_sanitizer_builtins and retry.
6573 2016-01-27  Ian Lance Taylor  <iant@google.com>
6575         * common.opt (fkeep-gc-roots-live): New undocumented option.
6576         * tree-ssa-loop-ivopts.c (add_candidate_1): If
6577         -fkeep-gc-roots-live, skip pointers.
6578         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
6579         NULL.
6581 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
6583         PR target/69512
6584         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
6585         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
6587 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
6589         PR target/68380
6590         * configure.ac: NetBSD provides SSP in its C library.
6591         * configure: Updated.
6593 2016-01-27  Richard Biener  <rguenther@suse.de>
6595         PR tree-optimization/69166
6596         * tree-vect-loop.c (vect_is_simple_reduction): Always check
6597         reduction code for commutativity / associativity.
6599 2016-01-27  Martin Jambor  <mjambor@suse.cz>
6601         PR tree-optimization/69355
6602         * tree-sra.c (analyze_access_subtree): Correct hole detection when
6603         total_scalarization fails.
6605 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
6607         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
6608         power9.
6610 2016-01-27  Christian Bruel  <christian.bruel@st.com>
6612         PR target/69245
6613         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
6614         Move arm_reset_previous_fndecl and set_target_option_current_node in
6615         the conditional part.  Call save_restore_target_globals.
6616         * config/arm/arm.c (arm_set_current_function):
6617         Refactor to better support #pragma target and attribute mix.
6618         Call save_restore_target_globals.
6619         * config/arm/arm-protos.h (save_restore_target_globals): New function.
6621 2016-01-27  Martin Liska  <mliska@suse.cz>
6623         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
6624         reference for an HSA kernel and its host function.
6626 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
6628         PR tree-optimization/69399
6629         * wide-int.h (wi::lrshift): For larger precisions, only
6630         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
6632 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
6634         * config/arc/predicates.md (proper_comparison_operator): Reject
6635         constant-constant comparison.
6637 2016-01-26  Tom de Vries  <tom@codesourcery.com>
6639         PR tree-optimization/69110
6640         * tree-data-ref.c (initialize_data_dependence_relation): Handle
6641         DR_NUM_DIMENSIONS == 0.
6643 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6644             Sebastian Pop  <s.pop@samsung.com>
6646         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
6647         isl_ast_op_cond and isl_ast_op_select.
6648         (gcc_expression_from_isl_expr_op): Same.
6650 2016-01-26  Jason Merrill  <jason@redhat.com>
6652         PR c++/68782
6653         * tree.c (recompute_constructor_flags): Split out from
6654         build_constructor.
6655         (verify_constructor_flags): New.
6656         * tree.h: Declare them.
6658 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
6660         PR rtl-optimization/69217
6661         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
6662         are no TYPE_FIELDS set for the record type.
6664 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6666         PR target/68662
6667         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
6668         toc_label_name unconditionally.
6669         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
6670         SYMBOL_REF string.  Use toc_label_name instead of constructing
6671         LCTOC1.
6672         (rs6000_elf_declare_function_name): Use toc_label_name instead of
6673         constructing LCTOC1.
6675 2016-01-26  Martin Sebor  <msebor@redhat.com>
6677         PR other/69477
6678         * doc/extend.texi (Common Type Attributes): Move text that talks about
6679         attribute packed from attribute aligned to the section discussing
6680         the former attribute for clarity.
6682 2016-01-26  Richard Henderson  <rth@redhat.com>
6684         PR middle-end/60908
6685         * trans-mem.c (tm_region_init): Mark entry block as visited.
6687 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
6689         PR other/69006
6690         * diagnostic-show-locus.c (layout::print_source_line): Replace
6691         call to pp_newline with call to layout::print_newline.
6692         (layout::print_annotation_line): Likewise.
6693         (layout::move_to_column): Likewise.
6694         (layout::print_any_fixits): After printing any fixits, print a
6695         trailing newline, if necessary.
6696         (layout::print_newline): New method, resetting any colorization
6697         before a newline.
6698         (diagnostic_show_locus): Move the pp_newline to before the
6699         early bailout.  Remove dummy block enclosing the layout instance.
6700         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
6701         of pp_newline_and_flush with pp_flush.
6702         (diagnostic_append_note): Delete use of pp_newline.
6703         (diagnostic_append_note_at_rich_loc): Delete.
6704         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
6705         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
6706         when newline characters are added to the buffer.
6708 2016-01-26  Michael Matz  <matz@suse.de>
6710         * configure.ac (ac_cv_std_swap_in_utility): New test.
6711         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
6712         * configure: Regenerate.
6713         * config.in: Regenerate.
6715 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
6717         * config/arc/arc.md (cstoresi4): Force operand into register.
6718         (arcset<code>): Fix predicate.
6719         (arcsetltu): Likewise.
6720         (arcsetgeu): Likewise.
6721         (arcsethi): Likewise.
6722         (arcsetls): Likewise.
6724 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6726         PR tree-optimization/69483
6727         * gimple-fold.c (canonicalize_constructor_val): Return NULL
6728         if base has error_mark_node type.
6730 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
6732         PR target/68620
6733         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
6734         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
6735         New helper macros.
6736         (vget_lane_f16): Handle big-endian.
6737         (vgetq_lane_f16): Likewise.
6738         (vset_lane_f16): Likewise.
6739         (vsetq_lane_f16): Likewise.
6740         * config/arm/iterators.md (VQXMOV): Add V8HF.
6741         (VDQ): Add V4HF and V8HF.
6742         (V_reg): Handle V4HF and V8HF.
6743         (Is_float_mode): Likewise.
6744         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
6745         neon_vdup_nv8hf): New patterns.
6746         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
6747         Use VD_LANE iterator.
6748         (neon_vld1_dup<mode>): Use VQ2 iterator.
6750 2016-01-26  Nathan Sidwell  <nathan@acm.org>
6752         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
6753         (set_oacc_fn_attrib): Add IS_KERNEL arg.
6754         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
6755         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
6756         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
6757         (oacc_validate_dims): Add LEVEL arg, don't return level.
6758         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
6759         oacc_validate_dims.
6760         (execute_oacc_device_lower): Adjust, add more dump output.
6761         * tree-ssa-loop.c (gate_oacc_kernels): Use
6762         oacc_fn_attrib_kernels_p.
6763         * tree-parloops.c (create_parallel_loop): Adjust
6764         set_oacc_fn_attrib call.
6766 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6768         PR lto/69254
6769         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
6770         (append_compiler_options): Handle -fcilkplus.
6771         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
6773 2016-01-26  Nick Clifton  <nickc@redhat.com>
6775         PR target/66655
6776         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
6777         been marked as DECL_ONE_ONLY but we do not the means to make it
6778         so, then do not allow it to bind locally.
6780 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6782         PR lto/69254
6783         * opts.h (parse_sanitizer_options): New prototype.
6784         * opts.c (sanitizer_opts): New array.
6785         (parse_sanitizer_options): New function.
6786         (common_handle_option): Use parse_sanitizer_options.
6788 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
6790         PR target/68986
6791         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
6792         alignment adjustment to ...
6793         (ix86_update_stack_boundary): Here.  Don't over-align stack for
6794         __tls_get_addr.
6795         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
6796         if __tls_get_addr is called.
6798 2016-01-26  Christian Bruel  <christian.bruel@st.com>
6800         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
6802 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
6804         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
6806 2016-01-26  Richard Biener  <rguenther@suse.de>
6808         PR middle-end/69467
6809         * match.pd: Guard X * CST CMP 0 pattern with single_use.
6811 2016-01-26  Richard Biener  <rguenther@suse.de>
6813         PR tree-optimization/69452
6814         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
6815         (move_computations_dom_walker::before_dom_children): Rename
6816         to ...
6817         (move_computations_worker): This.
6818         (move_computations): Perform an RPO rather than a DOM walk.
6820 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
6822         PR target/69442
6823         * combine.c (combine_instructions): For REG_EQUAL note with
6824         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
6825         to the underlying register.
6826         * doc/rtl.texi (REG_EQUAL): Document the behavior of
6827         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
6829 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
6831         PR target/67896
6832         * config/aarch64/aarch64-builtins.c
6833         (aarch64_init_simd_builtin_types): Do not set structural
6834         equality to __Poly{8,16,64,128}_t types.
6836 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
6838         PR tree-optimization/69400
6839         * wide-int.cc (wi_pack): Take the precision as argument and
6840         perform canonicalization here rather than in the callers.
6841         Use the main loop to handle all full-width HWIs.  Add a
6842         zero HWI if in_len isn't a full result.
6843         (wi::divmod_internal): Update accordingly.
6844         (wi::mul_internal): Likewise.  Simplify.
6846 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
6847             Sebastian Pop  <s.pop@samsung.com>
6849         * graphite-poly.c (apply_poly_transforms): Simplify.
6850         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
6851         (print_isl_map): Same.
6852         (print_isl_union_map): Same.
6853         (print_isl_schedule): New.
6854         (debug_isl_schedule): New.
6855         * graphite-dependences.c (scop_get_reads): Do not call
6856         isl_union_map_add_map that is undocumented isl functionality.
6857         (scop_get_must_writes): Same.
6858         (scop_get_may_writes): Same.
6859         (scop_get_original_schedule): Remove.
6860         (scop_get_dependences): Do not call isl_union_map_compute_flow that
6861         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
6862         (compute_deps): Remove.
6863         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
6864         (debug_schedule_ast): New.
6865         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
6866         set_separate_option.
6867         (graphite_regenerate_ast_isl): Add dump.
6868         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
6869         from scop->transformed_schedule.
6870         (graphite_regenerate_ast_isl): Add more dump.
6871         * graphite-optimize-isl.c (optimize_isl): Set
6872         scop->transformed_schedule.  Check whether schedules are equal.
6873         (apply_poly_transforms): Move here.
6874         * graphite-poly.c (apply_poly_transforms): ... from here.
6875         (free_poly_bb): Static.
6876         (free_scop): Static.
6877         (pbb_number_of_iterations_at_time): Remove.
6878         (print_isl_ast): New.
6879         (debug_isl_ast): New.
6880         (debug_scop_pbb): New.
6881         * graphite-scop-detection.c (print_edge): Move.
6882         (print_sese): Move.
6883         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
6884         (build_scop_scattering): Remove.
6885         (create_pw_aff_from_tree): Assert instead of bailing out.
6886         (add_condition_to_pbb): Remove unused code, do not fail.
6887         (add_conditions_to_domain): Same.
6888         (add_conditions_to_constraints): Remove.
6889         (build_scop_context): New.
6890         (add_iter_domain_dimension): New.
6891         (build_iteration_domains): Initialize pbb->iterators.
6892         Call add_conditions_to_domain.
6893         (nested_in): New.
6894         (loop_at): New.
6895         (index_outermost_in_loop): New.
6896         (index_pbb_in_loop): New.
6897         (outermost_pbb_in): New.
6898         (add_in_sequence): New.
6899         (add_outer_projection): New.
6900         (outer_projection_mupa): New.
6901         (add_loop_schedule): New.
6902         (build_schedule_pbb): New.
6903         (build_schedule_loop): New.
6904         (embed_in_surrounding_loops): New.
6905         (build_schedule_loop_nest): New.
6906         (build_original_schedule): New.
6907         (build_poly_scop): Call build_original_schedule.
6908         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
6909         (free_poly_dr): Remove.
6910         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
6911         (free_poly_bb): Remove.
6912         (debug_loop_vec): Remove.
6913         (print_isl_ast): Declare.
6914         (debug_isl_ast): Declare.
6915         (scop_do_interchange): Remove.
6916         (scop_do_strip_mine): Remove.
6917         (scop_do_block): Remove.
6918         (flatten_all_loops): Remove.
6919         (optimize_isl): Remove.
6920         (pbb_number_of_iterations_at_time): Remove.
6921         (debug_scop_pbb): Declare.
6922         (print_schedule_ast): Declare.
6923         (debug_schedule_ast): Declare.
6924         (struct scop): Remove schedule.  Add original_schedule,
6925         transformed_schedule.
6926         (free_gimple_poly_bb): Remove.
6927         (print_generated_program): Remove.
6928         (debug_generated_program): Remove.
6929         (unify_scattering_dimensions): Remove.
6930         * sese.c (print_edge): ... here.
6931         (print_sese): ... here.
6932         (debug_edge): ... here.
6933         (debug_sese): ... here.
6934         * sese.h (print_edge): Declare.
6935         (print_sese): Declare.
6936         (dump_edge): Declare.
6937         (dump_sese): Declare.
6939 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
6940             Sebastian Pop  <s.pop@samsung.com>
6942         * Makefile.in: Set ISLVER in site.exp.
6944 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
6946         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
6947         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
6948         through DECL_VALUE_EXPR for expansion.
6950 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6952         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
6953         the frame info after reload completed.
6955 2016-01-25  Jeff Law  <law@redhat.com>
6957         PR tree-optimization/69196
6958         PR tree-optimization/68398
6959         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
6960         tree-ssa-threadupdate.c.
6961         (determine_bb_domination_status): Prototype
6962         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
6963         (determine_bb_domination_status): No longer static.
6964         (valid_jump_thread_path): Remove code to detect characteristics
6965         of the jump thread path not associated with correctness.
6966         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
6967         Correct test for thread path length.  Count PHIs for real operands as
6968         statements that need to be copied.  Do not count ASSERT_EXPRs.
6969         Look at all the blocks in the thread path.  Compute and selectively
6970         filter thread paths based on threading through the latch, threading
6971         a multiway branch or crossing a multiway branch.
6973 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6975         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
6976         decl with __attribute__ ((unused)) annotation.
6978 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
6980         PR target/69421
6981         * tree-vect-stmts.c (vectorizable_condition): Check vectype
6982         of operands is compatible with a statement vectype.
6984 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
6986         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
6987         improve wording for mixed storage order support.
6989 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
6991         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
6992         (vcvt_u64_f64): Likewise.
6993         (vcvta_s64_f64): Likewise.
6994         (vcvta_u64_f64): Likewise.
6995         (vcvtm_s64_f64): Likewise.
6996         (vcvtm_u64_f64): Likewise.
6997         (vcvtn_s64_f64): Likewise.
6998         (vcvtn_u64_f64): Likewise.
6999         (vcvtp_s64_f64): Likewise.
7000         (vcvtp_u64_f64): Likewise.
7002 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
7004         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7005         (arc_init): Check validity mll64 option.
7006         (arc_save_restore): Use double load/store instruction.
7007         (arc_expand_movmem): Likewise.
7008         (arc_split_move): Don't split if we have double load/store
7009         instructions. Returns a boolean.
7010         (arc_process_double_reg_moves): Change function to return boolean
7011         instead of a sequence of instructions.
7012         (arc_dwarf_register_span): New function.
7013         * config/arc/arc-protos.h (arc_split_move): Change prototype.
7014         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7015         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7016         (*movdf_insn): Likewise.
7017         * config/arc/arc.opt (mll64): New option.
7018         * config/arc/predicates.md (even_register_operand): New predicate.
7019         * doc/invoke.texi (ARC Options): Add mll64 documentation.
7021 2016-01-25  Richard Biener  <rguenther@suse.de>
7023         PR lto/69393
7024         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7025         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7026         DECL_NAMELESS.
7027         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7029 2016-01-25  Richard Biener  <rguenther@suse.de>
7031         PR tree-optimization/69376
7032         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7033         flag.
7034         (VN_INFO_ANTI_RANGE_P): New inline.
7035         (VN_INFO_RANGE_TYPE): Likewise.
7036         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7037         SSA_NAME_ANTI_RANGE_P.
7038         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7039         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7040         Properly query VN_INFO_RANGE_TYPE.
7042 2016-01-25  Nick Clifton  <nickc@redhat.com>
7044         PR target/66655
7045         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7047 2016-01-23  Tom de Vries  <tom@codesourcery.com>
7049         PR tree-optimization/69426
7050         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7051         removed clobber.
7053 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
7055         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7056         "the the" with "the" in the comments.
7057         * ipa-devirt.c (build_type_inheritance_graph,
7058         update_type_inheritance_graph): Likewise.
7059         * tree.c (build_function_type_list_1): Likewise.
7060         * cfgloopmanip.c (scale_loop_profile): Likewise.
7061         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7062         * gimple-ssa-split-paths.c
7063         (find_block_to_duplicate_for_splitting_paths): Likewise.
7064         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7065         * expr.c (convert_move): Likewise.
7066         * var-tracking.c (vt_stack_adjustments): Likewise.
7067         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7068         * tree-vrp.c (test_for_singularity): Likewise.
7070         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7071         directly instead of building a temporary tree.
7073         PR bootstrap/69434
7074         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7075         remove <algorithm> include.
7077 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7079         PR target/69432
7080         * config/i386/i386.c: Include dojump.h.
7081         (expand_small_movmem_or_setmem,
7082         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7083         fixes.
7084         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7085         if dynamic_check != -1.
7087 2016-01-21  Jeff Law  <law@redhat.com>
7089         PR middle-end/69347
7090         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7091         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
7092         into dominated_by_p.
7093         (cprop_into_successor_phis): Avoid unnecessary tests.
7095 2016-01-22  Richard Henderson  <rth@redhat.com>
7097         PR target/69416
7098         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7099         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7101 2016-01-22  Michael Matz  <matz@suse.de>
7103         * system.h (string, algorithm): Include only conditionally.
7104         (new): Include always under C++.
7105         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7106         * final.c (toplevel): Ditto.
7107         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7108         * genconditions.c (write_header): Make gencondmd.c define
7109         INCLUDE_STRING.
7110         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7112         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7113         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7115 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7117         PR target/68674
7118         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7120 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7122         PR target/69403
7123         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7124         define_insn_and_split.  Ensure operands[1] and operands[0] do not
7125         get assigned the same register.
7127 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7129         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7131 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7133         * config/arm/arm-c.c (arm_pragma_target_parse):
7134         Remove warn_builtin_macro_redefined overwrite.
7136 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7138         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7139         flag_non_call_exceptions compatibility.
7141 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7143         PR debug/66668
7144         * dwarf2out.c (add_child_die_after): New function.
7145         (dwarf_qual_info_t): New type.
7146         (dwarf_qual_info): New variable.
7147         (qualified_die_p): New function.
7148         (modified_type_die): For -fdebug-types-section, ensure
7149         canonical order of qualifiers.  Put qualified DIEs adjacent
7150         to the corresponding non-qualified type DIE and search there
7151         for existing qualified DIEs.
7153 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7155         * doc/extend.texi (scalar_storage_order type attribute): Document
7156         restriction on type punning and aliasing, and remove future tense.
7158 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
7160         PR target/69252
7161         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7162         first stage.
7164 2016-01-21  Jeff Law  <law@redhat.com>
7166         PR middle-end/69347
7167         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7168         useless call to record_temporary_equivalences.
7169         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7170         allocate 10 slots in the bb_path vector and let it grow as needed.
7171         (fsm_find_control_statement_thread_paths): Similarly for the next_path
7172         vector.
7174 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7176         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7177         Detangle.
7178         * configure: Regenerate.
7180 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
7182         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7183         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7185 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
7187         PR middle-end/66178
7188         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7189         drop EXPAND_INITIALIZER.
7190         * rtl.h (contains_symbolic_reference_p): Declare.
7191         * rtlanal.c (contains_symbolic_reference_p): New function.
7192         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7193         a subtraction into a NOT if symbolic constants are involved.
7195 2016-01-21  Anton Blanchard  <anton@samba.org>
7196             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7198         PR target/63354
7199         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7200         #define.
7201         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7202         function.
7204 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7206         * config/microblaze/microblaze.c
7207         (get_branch_target): New.
7208         (insert_wic_for_ilb_runout): New.
7209         (insert_wic): New.
7210         (microblaze_machine_dependent_reorg): New.
7211         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7212         * config/microblaze/microblaze.md
7213         (UNSPEC_IPREFETCH): Define.
7214         (iprefetch): New pattern
7215         * config/microblaze/microblaze.opt
7216         (mxl-prefetch): New flag.
7218 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7220         * config/microblaze/microblaze.h
7221         (FIXED_REGISTERS): Update in macro.
7222         (CALL_USED_REGISTERS): Update in macro.
7224 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
7226         PR rtl-optimization/68920
7227         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7228         moves.
7230 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
7232         PR rtl-optimization/68990
7233         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7234         pseudo instead of inheritance ones.
7236 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7237             Nick Clifton  <nickc@redhat.com>
7239         PR target/69129
7240         PR target/69012
7241         * config/mips/mips.c (mips_compute_frame_info): Initialise
7242         args_size and hard_frame_pointer_offset fields of the frame
7243         structure before calling mips_global_pointer.
7245 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7247         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7248         label reference.
7249         * configure: Regenerate.
7251 2016-01-21  Richard Biener  <rguenther@suse.de>
7253         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7255 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
7257         * config/s390/s390.c (s390_asm_declare_function_size): Add code
7258         to actually emit the .size directive.
7260 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
7261              Jakub Jelinek  <jakub@redhat.com>
7263         PR target/69187
7264         PR target/65624
7265         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7266         args array size by one to avoid buffer overflow.
7268 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
7270         * config/s390/s390.md (pool_section_start): Use switch_to_section
7271         to select proper read-only data section instead of hardcoding
7272         .rodata.
7273         (pool_section_end): Use switch_to_section to match the above.
7275 2016-01-21  Richard Biener  <rguenther@suse.de>
7277         PR tree-optimization/69378
7278         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7279         (set_ssa_val_to): Use it for dominance checks taking into
7280         account not executable edges.
7282 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
7284         PR c++/69355
7285         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7286         for bitsize instead of GET_MODE_PRECISION (mode).
7288 2016-01-20  Martin Sebor  <msebor@redhat.com>
7290         PR c/52291
7291         * extend.texi (__sync Builtins): Clarify the semantics of
7292         __sync_fetch_and_OP built-ins on pointers.
7293         (__atomic Builtins): Same.
7295 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7296             Sebastian Pop  <s.pop@samsung.com>
7298         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7299         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7300         (is_valid_rename): Same.
7301         (translate_isl_ast_to_gimple::get_rename): Same.
7302         (translate_isl_ast_to_gimple::rename_all_uses): Same.
7303         (translate_isl_ast_to_gimple::rename_uses): Same.
7304         (get_new_name): Check for close_phi nodes.
7305         (copy_loop_phi_args): Use phi_node_kind.
7306         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7307         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7309 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7310             Sebastian Pop  <s.pop@samsung.com>
7312         Revert commit r229783.
7313         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7314         Remove use of parameter_rename_map.
7315         (copy_def): Remove.
7316         (copy_internal_parameters): Remove.
7317         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7318         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7319         (free_sese_info): Do not free parameter_rename_map.
7320         (set_rename): Do not use parameter_rename_map.
7321         (rename_uses): Update call to set_rename.
7322         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7323         * sese.h (parameter_rename_map_t): Remove.
7324         (struct sese_info_t): Remove field parameter_rename_map.
7326 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7327             Sebastian Pop  <s.pop@samsung.com>
7329         * graphite-isl-ast-to-gimple.c: Fix comment.
7330         * graphite-scop-detection.c (defined_in_loop_p): New.
7331         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7332         names defined in loop.
7334 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7335             Sebastian Pop  <s.pop@samsung.com>
7337         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7338         Discard unstructured if-then-else regions.
7340 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7341             Sebastian Pop  <s.pop@samsung.com>
7343         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7344         (cleanup_loop_iter_dom): Remove.
7345         (build_loop_iteration_domains): Remove.
7346         (build_scop_context): Remove.
7347         (build_scop_iteration_domain): Remove.
7348         (add_loop_constraints): New.
7349         (build_iteration_domains): New.
7350         (build_poly_scop): Call build_iteration_domains.
7352 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7353             Sebastian Pop  <s.pop@samsung.com>
7355         * graphite-scop-detection.c
7356         (scop_detection::harmful_loop_in_region): Free dom and loops.
7357         (scop_detection::loop_body_is_valid_scop): Free bbs.
7359 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7360             Sebastian Pop  <s.pop@samsung.com>
7362         * graphite-scop-detection.c (record_loop_in_sese): New.
7363         (gather_bbs::before_dom_children): Call record_loop_in_sese.
7364         (build_scops): Remove call to build_sese_loop_nests.
7365         * sese.c (sese_record_loop): Remove.
7366         (build_sese_loop_nests): Remove.
7367         (new_sese_info): Remove region->loops.
7368         (free_sese_info): Same.
7369         * sese.h (sese_contains_loop): Same.
7370         (build_sese_loop_nests): Remove.
7371         (sese_contains_loop): Remove.
7373 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7374             Sebastian Pop  <s.pop@samsung.com>
7376         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7377         loop_is_valid_in_scop.
7378         (scop_detection::harmful_stmt_in_region): Renamed
7379         harmful_loop_in_region.
7380         Call loop_is_valid_in_scop.
7382 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7383             Sebastian Pop  <s.pop@samsung.com>
7385         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7386         isl_ast_node_mark.
7388 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7389             Sebastian Pop  <s.pop@samsung.com>
7391         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7392         * graphite.h (struct poly_bb): Remove field is_reduction.
7393         (PBB_IS_REDUCTION): Remove.
7395 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7396             Sebastian Pop  <s.pop@samsung.com>
7398         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7399         (add_pdr_constraints): Same.
7400         (scop_get_reads): Same.
7401         (scop_get_must_writes): Same.
7402         (scop_get_may_writes): Same.
7403         (scop_get_original_schedule): Same.
7404         (extend_schedule): Same.
7405         (apply_schedule_on_deps): Same.
7406         (carries_deps): Same.
7407         (compute_deps): Same.
7408         (scop_get_dependences): Same.
7409         * graphite-isl-ast-to-gimple.c
7410         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7411         * graphite-optimize-isl.c (get_schedule_for_band): Same.
7412         (get_schedule_for_band_list): Same.
7413         (get_schedule_map): Same.
7414         (apply_schedule_map_to_scop): Same.
7415         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7416         (build_loop_iteration_domains): Same.
7417         (add_condition_to_pbb): Same.
7418         (add_param_constraints): Same.
7419         (pdr_add_memory_accesses): Same.
7420         (pdr_add_data_dimensions): Same.
7422 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
7424         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7425         requirements.
7427 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
7429         * common.opt (feliminate-dwarf2-dups): Replace references to
7430         "DWARF 2" with just "DWARF".
7431         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7432         * doc/extend.texi: Likewise.
7433         * doc/cpp.texi: Likewise.
7434         * doc/invoke.texi: Likewise.
7435         (Option Summary): Add -gdwarf to list of Debugging Options.
7436         (Debugging Options): Document -gdwarf.
7437         * doc/contrib.texi: Spell "DWARF" like that.
7439 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
7441         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7442         warning.  Fix up formatting.
7444         PR middle-end/67653
7445         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7446         attempt to mark memory input operand addressable and
7447         call prepare_gimple_addressable in that case.  Don't adjust
7448         input_location for diagnostics, use error_at instead.
7450 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
7452         * config/rs6000/ppc-auxv.h: New file.
7453         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7454         (cpu_is): Likewise.
7455         (cpu_supports): Likewise.
7456         * config/rs6000/rs6000.c: include "ppc-auxv.h".
7457         (cpu_is_info): New variable.
7458         (cpu_supports_info): Likewise.
7459         (tcb_verification_symbol): Likewise.
7460         (cpu_builtin_p): Likewise.
7461         (cpu_expand_builtin): New function.
7462         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
7463         (rs6000_init_builtins): Likewise.
7464         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
7465         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
7466         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
7467         * configure: Regenerate.
7468         * config.in: Likewise.
7469         * doc/extend.texi (PowerPC Built-in Functions): Document
7470         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
7472 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
7474         PR target/68609
7475         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
7476         domain check.
7477         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
7478         for V4SFmode.
7480 2016-01-20  Richard Henderson  <rth@redhat.com>
7482         PR bootstrap/69343
7483         PR bootstrap/69339
7484         PR tree-opt/68964
7485         Revert:
7486         * tree.c (tm_define_builtin): New.
7487         (find_tm_vector_type): New.
7488         (build_tm_vector_builtins): New.
7489         (build_common_builtin_nodes): Call it.
7491 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
7493         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
7494         (arm_fp_ok): Likewise.
7495         (arm_fp): Likewise.
7496         (arm_crypto): Likewise.
7498 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
7499             Richard Biener  <rguenther@suse.de>
7501         PR tree-optimization/69328
7502         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
7503         vectors have same number of elements.
7504         (vectorizable_condition): Fix masked version recognition.
7506 2016-01-20  Richard Biener  <rguenther@suse.de>
7508         PR tree-optimization/69345
7509         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
7510         (VN_INFO_PTR_INFO): Likewise.
7511         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
7512         info when it is equal between non-dominating SSA names.
7513         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7514         Make sure to look at original SSA infos.
7516 2016-01-20  Jeff Law  <law@redhat.com>
7518         PR target/25114
7519         * config/m68k/predicates.md (pow2_m1_operand): New predicate
7520         extracted from ...
7521         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
7522         (pc_or_label_operand): New predicate.
7523         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
7524         tests for small integers that are 2^n - 1.
7526 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
7528         * doc/invoke.texi (Options Summary): Add '.' after @xref.
7530 2016-01-19  Jeff Law  <law@redhat.com>
7532         PR middle-end/69347
7533         * tree-ssa-threadbackwards.c
7534         (fsm_find_control_statement_thread_paths): Do not try to lookup
7535         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
7537 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
7539         * doc/lto.texi: Remove text that says only Gold has linker plugin
7540         support.
7542 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
7544         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
7545         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
7546         the DIE accordingly.
7547         (modified_type_die): Add REVERSE parameter and pass it recursively,
7548         as well as to base_type_die.  Adjust presence check accordingly.
7549         (base_type_for_mode): Adjust call to modified_type_die.
7550         (add_type_attribute): Add REVERSE parameter and pass it to
7551         modified_type_die.
7552         (generic_parameter_die): Adjust call to add_type_attribute.
7553         (add_scalar_info): Likewise.
7554         (add_subscript_info): Likewise.
7555         (gen_array_type_die): Likewise.
7556         (gen_descr_array_type_die): Likewise.
7557         (gen_entry_point_die): Likewise.
7558         (gen_enumeration_type_die): Likewise.
7559         (gen_formal_parameter_die): Likewise.
7560         (gen_subprogram_die): Likewise.
7561         (gen_variable_die ): Likewise.
7562         (gen_const_die): Likewise.
7563         (gen_field_die): Likewise.
7564         (gen_pointer_type_die): Likewise.
7565         (gen_reference_type_die): Likewise.
7566         (gen_ptr_to_mbr_type_die): Likewise.
7567         (gen_inheritance_die): Likewise.
7568         (gen_subroutine_type_die): Likewise.
7569         (gen_typedef_die): Likewise.
7570         (force_type_die): Adjust call to modified_type_die.
7572 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
7574         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
7575         flow throughout the file.  Fix broken link to Objective-C 2.0
7576         documentation.
7577         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
7578         errors.
7580 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7582         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
7584 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7586         PR ipa/66223
7587         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
7588         (maybe_record_node): Record cxa_pure_virtual as the only possible
7589         target if there are not ohter candidates.
7590         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
7592 2016-01-19  Richard Biener  <rguenther@suse.de>
7594         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
7595         (get_memory_order): Likewise.
7597 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
7599         * tree-vect-stmts.c (vectorizable_store): Check
7600         rhs vectype.
7602 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
7604         PR jit/68446
7605         * gcc.c (driver::decode_argv): Add call to
7606         init_opts_obstack before init_options_struct.
7607         * opts.c (init_opts_obstack): Remove idempotency.
7608         (init_options_struct): Replace call to init_opts_obstack
7609         with a gcc_assert to verify that it has already been called.
7610         * toplev.c (toplev::main): Add call to init_opts_obstack before
7611         calls to init_options_struct.
7612         (toplev::finalize): Move cleanup of opts_obstack next to
7613         cleanup of save_decoded_options, clearing the latter, and
7614         save_decoded_options_count.
7616 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7618         PR target/69135
7619         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
7620         attribute to unconditional.  Remove %? from output template.
7622 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7623             Jiong Wang  <jiong.wang@arm.com>
7625         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
7626         generated from different expand order.
7628 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7630         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7631         Add support for CCMP costing.
7633 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7635         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
7636         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
7637         (fccmpe<mode>): Likewise.
7638         (fcmp): Rename to fcmp and globalize pattern.
7639         (fcmpe): Likewise.
7640         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
7641         (aarch64_gen_ccmp_next): Add FP support.
7643 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
7645         * target.def (gen_ccmp_first): Update documentation.
7646         (gen_ccmp_next): Likewise.
7647         * doc/tm.texi (gen_ccmp_first): Update documentation.
7648         (gen_ccmp_next): Likewise.
7649         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
7650         expand_ccmp_expr_1.  Improve comments.
7651         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
7652         (ccmp_ior<mode>): Remove pattern.
7653         (cmp<mode>): Remove expand.
7654         (cmp): Globalize pattern.
7655         (cstorecc4): Use cc_register.
7656         (mov<mode>cc): Remove ccmp_cc_register check.
7657         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
7658         Simplify after removal of CC_DNE/* modes.
7659         (aarch64_ccmp_mode_to_code): Remove.
7660         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
7661         In 'k' case use integer as condition.
7662         (aarch64_nzcv_codes): Remove inverted cases.
7663         (aarch64_code_to_ccmode): Remove.
7664         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
7665         comparison with CC register to be used in folowing CCMP/branch/CSEL.
7666         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
7667         pattern.  Return the comparison with CC register.  Invert conditions
7668         when bitcode is OR.
7669         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
7670         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
7672 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7674         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
7675         instrumented_version.
7677 2016-01-19  Richard Biener  <rguenther@suse.de>
7679         PR tree-optimization/69336
7680         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
7681         handled components with get_ref_base_and_extent.
7682         (equal_mem_array_ref_p): Adjust.
7684 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
7686         PR debug/65779
7687         * shrink-wrap.c: Include valtrack.h.
7688         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
7689         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
7690         in between insn and where it will be moved to.  Call
7691         dead_debug_insert_temp.
7692         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
7693         first and dead_debug_local_finish at the end.
7694         For uses and defs bitmap, handle all regs in between REGNO and
7695         END_REGNO, not just the first one.
7697 2016-01-19  Richard Biener  <rguenther@suse.de>
7699         PR tree-optimization/69352
7700         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
7701         (equal_mem_array_ref_p): Constrain size and max size properly.
7702         Compare the reverse flag.
7704 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
7706         * ira.c (ira): Update regstat data if we deleted insns.
7708 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
7710         PR rtl-optimization/68955
7711         PR rtl-optimization/64557
7712         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
7713         here.  Fix up formatting.
7714         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
7716 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7718         PR lto/69133
7719         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
7720         assume that the node has body.
7721         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
7722         check.
7724 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7726         * lto-streamer-out.c (lto_output): Do not stream instrumentation
7727         thunks.
7729 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
7731         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
7732         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
7734 2016-01-19  Martin Jambor  <mjambor@suse.cz>
7735             Martin Liska  <mliska@suse.cz>
7736             Michael Matz  <matz@suse.de>
7738         * Makefile.in (OBJS): Add new source files.
7739         (GTFILES): Add hsa.c.
7740         * common.opt (disable_hsa): New variable.
7741         (-Whsa): New warning.
7742         * config.in (ENABLE_HSA): New.
7743         * configure.ac: Treat hsa differently from other accelerators.
7744         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
7745         $enable_offloading.
7746         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
7747         * doc/install.texi (Configuration): Document --with-hsa-runtime,
7748         --with-hsa-runtime-include, --with-hsa-runtime-lib and
7749         --with-hsa-kmt-lib.
7750         * doc/invoke.texi (-Whsa): Document.
7751         (hsa-gen-debug-stores): Likewise.
7752         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
7753         to invoke offload compiler for hsa acclerator.
7754         * opts.c (common_handle_option): Determine whether HSA offloading
7755         should be performed.
7756         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
7757         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
7758         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
7759         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
7760         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
7761         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
7762         GF_OMP_FOR_KIND_GRID_LOOP.
7763         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
7764         (pp_gimple_stmt_1): Likewise.
7765         * gimple-walk.c (walk_gimple_stmt): Likewise.
7766         * gimple.c (gimple_build_omp_grid_body): New function.
7767         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
7768         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
7769         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
7770         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
7771         GF_OMP_TEAMS_GRID_PHONY.
7772         (gimple_statement_omp_single_layout): Updated comments.
7773         (gimple_build_omp_grid_body): New function.
7774         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
7775         (gimple_omp_for_grid_phony): New function.
7776         (gimple_omp_for_set_grid_phony): Likewise.
7777         (gimple_omp_parallel_grid_phony): Likewise.
7778         (gimple_omp_parallel_set_grid_phony): Likewise.
7779         (gimple_omp_teams_grid_phony): Likewise.
7780         (gimple_omp_teams_set_grid_phony): Likewise.
7781         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
7782         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
7783         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
7784         (BUILT_IN_GOMP_TARGET): Updated type.
7785         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
7786         (adjust_for_condition): New function.
7787         (get_omp_for_step_from_incr): Likewise.
7788         (extract_omp_for_data): Moved parts to adjust_for_condition and
7789         get_omp_for_step_from_incr.
7790         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
7791         (fixup_child_record_type): Bail out if receiver_decl is NULL.
7792         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
7793         (scan_omp_parallel): Do not create child functions for phony
7794         constructs.
7795         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
7796         (scan_omp_1_op): Checking assert we are not remapping to
7797         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
7798         (parallel_needs_hsa_kernel_p): New function.
7799         (expand_parallel_call): Register apprpriate parallel child
7800         functions as HSA kernels.
7801         (grid_launch_attributes_trees): New type.
7802         (grid_attr_trees): New variable.
7803         (grid_create_kernel_launch_attr_types): New function.
7804         (grid_insert_store_range_dim): Likewise.
7805         (grid_get_kernel_launch_attributes): Likewise.
7806         (get_target_argument_identifier_1): Likewise.
7807         (get_target_argument_identifier): Likewise.
7808         (get_target_argument_value): Likewise.
7809         (push_target_argument_according_to_value): Likewise.
7810         (get_target_arguments): Likewise.
7811         (expand_omp_target): Call get_target_arguments instead of looking
7812         up for teams and thread limit.
7813         (grid_expand_omp_for_loop): New function.
7814         (grid_arg_decl_map): New type.
7815         (grid_remap_kernel_arg_accesses): New function.
7816         (grid_expand_target_kernel_body): New function.
7817         (expand_omp): Call it.
7818         (lower_omp_for): Do not emit phony constructs.
7819         (lower_omp_taskreg): Do not emit phony constructs but create for them
7820         a temporary variable receiver_decl.
7821         (lower_omp_taskreg): Do not emit phony constructs.
7822         (lower_omp_teams): Likewise.
7823         (lower_omp_grid_body): New function.
7824         (lower_omp_1): Call it.
7825         (grid_reg_assignment_to_local_var_p): New function.
7826         (grid_seq_only_contains_local_assignments): Likewise.
7827         (grid_find_single_omp_among_assignments_1): Likewise.
7828         (grid_find_single_omp_among_assignments): Likewise.
7829         (grid_find_ungridifiable_statement): Likewise.
7830         (grid_target_follows_gridifiable_pattern): Likewise.
7831         (grid_remap_prebody_decls): Likewise.
7832         (grid_copy_leading_local_assignments): Likewise.
7833         (grid_process_kernel_body_copy): Likewise.
7834         (grid_attempt_target_gridification): Likewise.
7835         (grid_gridify_all_targets_stmt): Likewise.
7836         (grid_gridify_all_targets): Likewise.
7837         (execute_lower_omp): Call grid_gridify_all_targets.
7838         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
7839         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
7840         (tree_omp_clause): Added union field dimension.
7841         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
7842         * tree.c (omp_clause_num_ops): Added number of arguments of
7843         OMP_CLAUSE__GRIDDIM_.
7844         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
7845         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
7846         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
7847         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
7848         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
7849         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
7850         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
7851         * tree-pass.h (make_pass_gen_hsail): Declare.
7852         (make_pass_ipa_hsa): Likewise.
7853         * ipa-hsa.c: New file.
7854         * lto-section-in.c (lto_section_name): Add hsa section name.
7855         * lto-streamer.h (lto_section_type): Add hsa section.
7856         * timevar.def (TV_IPA_HSA): New.
7857         * hsa-brig-format.h: New file.
7858         * hsa-brig.c: New file.
7859         * hsa-dump.c: Likewise.
7860         * hsa-gen.c: Likewise.
7861         * hsa.c: Likewise.
7862         * hsa.h: Likewise.
7863         * toplev.c (compile_file): Call hsa_output_brig.
7864         * hsa-regalloc.c: New file.
7866 2016-01-18  Jeff Law  <law@redhat.com>
7868         PR tree-optimization/69320
7869         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
7870         ranged object, do nothing if the RHS constant is not [0..1].
7871         (optimize_stmt): Comparing a boolean ranged object against a
7872         constant outside [0..1] results in a compile-time constant.
7874         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
7875         test.
7877 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
7879         * doc/invoke.texi (Invoking GCC): Add new section to menu.
7880         (Option Summary): Update to reflect new section and moved options.
7881         (C++ Dialect Options): Move -fstats to new section.
7882         (Debugging Options): Move all dump, statistics, and other GCC
7883         developer options to new section.  Rewrite section introduction
7884         and re-order remaining options to put the more basic ones first.
7885         (Optimization Options): Move -fira-verbose and -flto-report* to
7886         new section.
7887         (Developer Options): New section incorporating moved options.
7888         * doc/cppopts.texi (-dM): Update cross-reference.
7890 2016-01-18  Richard Henderson  <rth@redhat.com>
7892         PR target/69176
7893         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
7894         operands to pseudo only if CSE is expected.  Split long immediate
7895         operands only after reload, and for the stack pointer.
7896         (*add<GPI>3_pluslong): Remove.
7897         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
7898         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
7899         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
7900         (*add<GPI>3 peepholes): New.
7901         (*add<GPI>3 splitters): New.
7902         * config/aarch64/constraints.md (Upl): New.
7903         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
7905 2016-01-18  Richard Biener  <rguenther@suse.de>
7907         PR tree-optimization/69297
7908         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
7909         stmt at most once.
7910         (vect_bb_vectorization_profitable_p): Clear visited flag again.
7912 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
7914         PR middle-end/68542
7915         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
7916         of mixind vector and scalar types.
7917         (fold_relational_const): Add handling of vector
7918         comparison with boolean result.
7919         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
7920         comparison of vector operands with boolean result for EQ/NE only.
7921         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
7922         (verify_gimple_cond): Likewise.
7923         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
7924         valid type of VAL.
7926 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
7928         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
7929         !TARGET_OCTEON.
7931 2016-01-18  Richard Biener  <rguenther@suse.de>
7933         PR middle-end/69308
7934         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
7936 2016-01-18  Tom de Vries  <tom@codesourcery.com>
7938         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
7940 2016-01-18  Tom de Vries  <tom@codesourcery.com>
7942         * omp-low.c (set_oacc_fn_attrib): Make extern.
7943         * omp-low.h (set_oacc_fn_attrib): Declare.
7944         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
7945         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
7946         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
7947         Add and handle function parameter oacc_kernels_p.
7948         (find_reduc_addr, get_omp_data_i_param): New function.
7949         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
7950         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
7951         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
7952         Calculate dominance info.  Skip loops that are not in a kernels region
7953         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
7954         (pass_parallelize_loops::execute): Call parallelize_loops with
7955         oacc_kernels_p argument.
7956         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
7957         New member function.
7958         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
7959         * passes.def: Add argument to pass_parallelize_loops instantation.
7961 2016-01-18  Tom de Vries  <tom@codesourcery.com>
7963         * tree-parloops.c (pass_parallelize_loops::execute): Allow
7964         pass_parallelize_loops to be run outside the loop pipeline.
7966 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
7968         * tree-scalar-evolution.c (follow_copies_to_constant): New.
7969         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
7971 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
7973         PR target/63679
7974         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
7975         using get_ref_base_and_extent.
7976         (equal_mem_array_ref_p): New.
7977         (hashable_expr_equal_p): Add call to previous.
7979 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
7981         PR target/63679
7982         * tree-sra.c (disqualified_constants, constant_decl_p): New.
7983         (sra_initialize): Allocate disqualified_constants.
7984         (sra_deinitialize): Free disqualified_constants.
7985         (disqualify_candidate): Update disqualified_constants when appropriate.
7986         (create_access): Scan for constant-pool entries as we go along.
7987         (scalarizable_type_p): Add check against type_contains_placeholder_p.
7988         (maybe_add_sra_candidate): Allow constant-pool entries.
7989         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
7990         (initialize_constant_pool_replacements): New.
7991         (sra_modify_assign): Avoid mangling assignments created by previous,
7992         and don't generate writes into constant pool.
7993         (sra_modify_function_body): Call initialize_constant_pool_replacements.
7995 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
7997         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
7998         andnot instruction.
7999         (scalar_chain::convert_op): Likewise.
8000         * config/i386/i386.md (*andndi3_doubleword): New.
8002 2016-01-18  Richard Biener  <rguenther@suse.de>
8004         PR tree-optimization/69170
8005         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8006         building a vector from scalar results of a pattern stmt.
8008 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
8010         * haifa-sched.c (autopref_multipass_init): Work around
8011         -Wmaybe-uninitialized warning.
8013 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8015         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8016         against the constant 0.
8018 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8020         PR tree-optimization/68799
8021         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8022         look up phi candidates in the statement-candidate map.
8023         (phi_add_costs): Likewise.
8024         (record_phi_increments): Likewise.
8025         (phi_incr_cost): Likewise.
8026         (ncd_with_phi): Likewise.
8027         (all_phi_incrs_profitable): Likewise.
8029 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
8031         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8032         -Wmaybe-uninitialized warning.
8034 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
8036         * doc/invoke.texi (Invoking GCC): Add new section to menu.
8037         (Option Summary): Update to reflect new section and moved options.
8038         (C++ Dialect Options): Move -fvtable-verify and related options.
8039         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8040         and profiling-related options.
8041         (Optimization Options): Move profile generation options and
8042         -fstack-protector and related options.
8043         (Instrumentation Options): New section incorporating moved options.
8044         (Code Generation Options): Move -finstrument-functions and
8045         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8047 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8049         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8051 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8053         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
8055 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
8057         * hash-table.h (hash_table::empty): Turn into an inline wrapper
8058         that checks whether the table is already empty.  Rename the
8059         original implementation to...
8060         (hash_table::empty_slot): ...this new private function.
8062 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
8064         PR diagnostic/68899
8065         * diagnostic-show-locus.c (layout::print_source_line): Move x
8066         offset of line until after call to
8067         get_line_width_without_trailing_whitespace.
8069 2016-01-15  Jeff Law  <law@redhat.com>
8071         PR tree-optimization/69270
8072         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8073         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
8074         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8075         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8076         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8077         ssa_name_has_boolean_range and constant_boolean_node.
8079 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8081         PR rtl-optimization/69030
8082         * lra-spills.c (remove_pseudos): Check nrefs and make the function
8083         returning bool.
8084         (spill_pseudos): Delete debug insn for dead pseudo.
8085         (lra_spill): Initiate spill_hard_reg and slots memory separately.
8087 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
8089         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8090         New.
8091         (TYPES_UNOPUS): Likewise.
8092         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8093         builtin type, from UNOP to UNOPUS.
8094         (lbtruncuv4sf): Likewise.
8095         (lbtruncuv2df): Likewise.
8096         (lrounduv2sf): Likewise.
8097         (lrounduv4sf): Likewise.
8098         (lrounduv2df): Likewise.
8099         (lroundusf): Likewise.
8100         (lroundusf): Likewise.
8101         (lceiluv2sf): Likewise.
8102         (lceiluv4sf): Likewise.
8103         (lceiluv2df): Likewise.
8104         (lceilusf): Likewise.
8105         (lceiludf): Likewise.
8106         (lflooruv2sf): Likewise.
8107         (lflooruv4sf): Likewise.
8108         (lflooruv2df): Likewise.
8109         (lfloorusf): Likewise.
8110         (lfloorudf): Likewise.
8111         (lfrintnuv2sf): Likewise.
8112         (lfrintnuv4sf): Likewise.
8113         (lfrintnuv2df): Likewise.
8114         (lfrintnusf): Likewise.
8115         (lfrintnudf): Likewise.
8116         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8117         conversion.
8118         (vcvtq_u32_f32): Likewise.
8119         (vcvtq_u64_f64): Likewise.
8120         (vcvta_u32_f32): Likewise.
8121         (vcvtaq_u32_f32): Likewise.
8122         (vcvtaq_u64_f64): Likewise.
8123         (vcvtm_u32_f32): Likewise.
8124         (vcvtmq_u32_f32): Likewise.
8125         (vcvtmq_u64_f64): Likewise.
8126         (vcvtn_u32_f32): Likwise.
8127         (vcvtnq_u32_f32): Likewise.
8128         (vcvtnq_u64_f64): Likewise.
8129         (vcvtp_u32_f32): Likewise.
8130         (vcvtpq_u32_f32): Likewise.
8131         (vcvtpq_u64_f64): Likewise.
8132         (vcvtmd_u64_f64): Likewise.
8133         (vcvtms_u32_f32): Likewise.
8134         (vcvtad_u64_f64): Likewise.
8135         (vcvtas_u32_f32): Likewise.
8136         (vcvtnd_u64_f64): Likewise.
8137         (vcvtns_u32_f32): Likewise.
8138         (vcvtpd_u64_f64): Likewise.
8139         (vcvtps_u32_f32): Likewise.
8141 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8143         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8144         CSEL of zero_extended registers.
8146 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8148         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8149         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8151 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8153         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8154         false when argument string is not found in the attributes table
8155         at all.
8157 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
8159         PR target/68609
8160         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8161         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8162         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8163         precision estimate.
8165 2016-01-15  Richard Biener  <rguenther@suse.de>
8167         PR tree-optimization/66856
8168         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8169         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8170         (vect_create_new_slp_node): Increment stmt reference count.
8171         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8172         an SLP tree before swapping operands.
8173         (vect_build_slp_tree): Likewise.
8174         (destroy_bb_vec_info): Free stmt info after SLP instances.
8175         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8176         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8177         (STMT_VINFO_NUM_SLP_USES): New macro.
8179 2016-01-15  Richard Biener  <rguenther@suse.de>
8181         PR debug/69137
8182         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8183         (add_linkage_name): ... here.
8184         (gen_typedef_die): Use add_linkage_name_raw instead of
8185         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8186         if necessary.
8188 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
8190         * gimplify.c (oacc_default_clause): Decode reference and pointer
8191         types for both kernels and parallel regions.
8193 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
8195         PR middle-end/69246
8196         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8198 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8200         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8201         (convert_scalars_to_vector): Likewise.
8203 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
8205         * doc/extend.texi (Type Traits): Fix grammar.
8207 2016-01-15  Martin Jambor  <mjambor@suse.cz>
8209         * tree-inline.c (remap_decl): Use existing dclarations if
8210         remapping a type and prevent_decl_creation_for_types.
8211         (replace_locals_stmt): Do an initial remapping of non-VLA typed
8212         decls first.  Do real remapping with
8213         prevent_decl_creation_for_types set.
8214         * tree-inline.h (copy_body_data): New field
8215         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8216         padding.
8218 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8220         * config/s390/s390.opt (mmvcle): More verbose help text.
8222 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8224         * config/s390/s390.opt: Add period to -mzvector option text.
8226 2016-01-15  Richard Biener  <rguenther@suse.de>
8228         PR tree-optimization/68961
8229         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8230         of invariants in stores again.
8232 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8234         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8236 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8238         * config/i386/i386.c (ix86_expand_branch): Don't split
8239         DI mode xor instruction to SI mode.
8241 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
8243         PR ipa/68148
8244         * ipa-icf.c (sem_function::merge): Virtual functions may become
8245         reachable even if they address is not taken and there are no
8246         idrect calls.
8248 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
8250         * lto-streamer-out.c (subtract_estimated_size): New function.
8251         (get_symbol_initial_value): Use it.
8253 2016-01-15  Christian Bruel  <christian.bruel@st.com>
8255         PR target/65837
8256         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8257         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8258         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8259         use add_builtin_function_ext_scope instead of add_builtin_function.
8260         (neon_set_p, neon_crypto_set_p): Remove.
8261         (arm_init_builtins): Always call arm_init_neon_builtins and
8262         arm_init_crypto_builtins.
8263         (arm_expand_builtin): Check that builtins are allowed for the arch.
8264         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8265         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8266         arm_init_neon_builtins call.
8268 2016-01-15  Richard Biener  <rguenther@suse.de>
8270         PR tree-optimization/69117
8271         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8272         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8273         of the leader conservatively.
8274         (free_scc_vn): Restore original SSA name infos.
8276 2016-01-14  Jeff Law  <law@redhat.com>
8278         PR tree-optimization/69270
8279         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8280         single bit of precision, verify it's also unsigned.
8281         (record_edge_info): Use constant_boolean_node rather than fold_convert
8282         to convert boolean_true/boolean_false to the right type.
8284 2016-01-14  Richard Henderson  <rth@redhat.com>
8286         PR rtl-opt/69014
8287         * loop-doloop.c (record_reg_sets): New.
8288         (doloop_optimize): Reject the transform if the sequence
8289         clobbers registers live at the end of the loop block.
8290         (doloop_optimize_loops): Enable df_live if needed.
8292 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8294         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8295         * gcc/config/rs6000/rs6000.c: Likewise.
8296         * gcc/config/rs6000/rs6000.h: Likewise.
8297         * gcc/config/rs6000/rs6000.md: Likewise.
8298         * gcc/doc/extend.texi: Likewsie.
8300 2016-01-14  Jeff Law  <law@redhat.com>
8302         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8303         typo.
8305 2016-01-14  Richard Henderson  <rth@redhat.com>
8307         PR c/69272
8308         PR tree-opt/68964
8309         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8310         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8311         instead of builtin_decl_declared_p to test for declaration.
8313 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
8315         * doc/loop.texi (Loop Analysis and Representation): Document
8316         loop_depth function.
8318 2016-01-14  Tom de Vries  <tom@codesourcery.com>
8320         PR tree-optimization/68773
8321         * omp-low.c (expand_omp_target): Don't set force_output.
8322         * varpool.c (varpool_node::get_create): Same.
8323         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8324         offload_funcs with force_output.
8326 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8328         PR debug/69244
8329         * lra-eliminations.c (move_plus_up): Don't change anything if either
8330         the outer or inner subreg mode is not MODE_INT.
8331         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8332         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8334 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
8336         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8337         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8338         reduc_uplus_@var{m}): Remove.
8339         * expr.c (expand_expr_real_2): Remove expansion path for
8340         reduc_[us](min|max|plus) optabs.
8341         * optabs-tree.c (scalar_reduc_to_vector): Remove.
8342         * optabs-tree.h (scalar_reduc_to_vector): Remove.
8343         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8344         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8345         * tree-vect-loop.c (vectorizable_reduction): Remove test for
8346         reduc_[us](min|max|plus) optabs.
8348 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
8350         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8351         (reduc_plus_scal_v2sf): New.
8352         (reduc_smax_v2sf): Rename to...
8353         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8354         (reduc_smin_v2sf): Rename to...
8355         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8357 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
8359         * alias.c (compare_base_symbol_refs): New function.
8360         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8361         it.
8363 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8365         PR middle-end/68146
8366         PR tree-optimization/69155
8367         * tree-complex.c: Include cfganal.h.
8368         (phis_to_revisit): New variable.
8369         (extract_component): Add phiarg_p argument.  Assert that returned
8370         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8371         (update_phi_components): Partly rewrite to use loop over real/imag
8372         components instead of code duplication.  If extract_component returns
8373         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8374         create_tmp_reg into the PHI node instead, and mention the phi triplet
8375         in phis_to_revisit.
8376         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
8377         in phis_to_revisit at the end.
8379 2016-01-14  Richard Biener  <rguenther@suse.de>
8381         PR tree-optimization/68060
8382         * tree-vect-loop.c (vect_is_simple_reduction): Check the
8383         outer loop reduction is only used in the inner loop before
8384         detecting a double reduction.
8386 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8388         PR target/68269
8389         * combine.c (expand_field_assignment): Punt if compute_mode is
8390         unsupported scalar mode.
8392 2016-01-14  Richard Biener  <rguenther@suse.de>
8394         PR tree-optimization/66856
8395         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8396         SLP node only if it built successfully.
8397         (vect_analyze_slp_instance): Adjust.
8399 2016-01-14  Jeff Law  <law@redhat.com>
8401         PR tree-optimization/69270
8402         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8403         (record_edge_info): Use it.  Convert boolean_{true,false}_node
8404         to the type of op0.
8406 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
8408         PR ipa/66487
8409         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8410         use block_ultimate_origin
8411         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8413 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
8415         * doc/invoke.texi (Submodel Options): Rename section to
8416         "Machine-Dependent Options" to better reflect its content.
8417         Rewrite introductory text to remove archaic CPU names.
8418         Update references.
8420 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
8422         * doc/invoke.texi (Code Gen Options): Move section up in file,
8423         before target-specific options.  Update menu and option summary
8424         to reflect the new section ordering.
8426 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
8428         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8429         (C++ Dialect Options): Add cross-reference to -std option.
8430         * doc/standards.texi (C++ Language): Document C++14 support.
8432 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8434         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8435         for pack/unpack functions for __ibm128.
8436         (PACK_IF): Likewise.
8437         (UNPACK_IF): Likewise.
8439         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8440         support for __ibm128 pack/unpack functions.
8441         (rs6000_invalid_builtin): Likewise.
8442         (rs6000_init_builtins): Likewise.
8443         (rs6000_opt_masks): Likewise.
8445         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8446         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8447         functions
8448         (RS6000_BTM_COMMON): Likewise.
8450         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8451         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8452         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8453         128-bit floating point.  Add support for the double values to be
8454         in Altivec registers for TF/IF packing and unpacking, but restrict
8455         TD packing sub-fields to be FPR registers.  Don't allow overlapped
8456         register support for packing.  Allow pack inputs to be memory
8457         locations.  Don't build generator functions for unpack<mode>_dm
8458         and unpack<mode>_nodm.
8459         (unpack<mode>_dm): Likewise.
8460         (unpack<mode>_nodm): Likewise.
8461         (pack<mode>): Likewise.
8463         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
8464         built-in functions to pack/unpack explicit __ibm128 values.
8465         (__builtin_unpack_ibm128): Likewise.
8467         * doc/extend.texi (PowerPC Built-in Functions): Document
8468         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
8470 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
8472         PR c/66208
8473         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
8474         Add new arg loc and pass it down as context.
8475         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
8476         to the location to use for the warning.
8477         (check_function_arguments): New arg loc.  All callers changed.  Pass
8478         it to check_function_nonnull.
8479         * c-common.h (check_function_arguments): Adjust declaration.
8481 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
8483         PR tree-optimization/69156
8484         * gimple.c (validate_type): Removed.
8485         (gimple_builtin_call_types_compatible_p): Use
8486         useless_type_conversion_p instead of validate_type.
8487         * value-prof.c (gimple_stringop_fixed_value): Fold
8488         icall_size to correct type.
8490 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
8492         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
8493         effects.
8495 2016-01-13  Richard Henderson  <rth@redhat.com>
8497         PR tree-opt/68964
8498         * target.def (builtin_tm_load, builtin_tm_store): Remove.
8499         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
8500         (ix86_builtin_tm_store): Remove.
8501         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8502         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8503         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
8504         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
8505         * doc/tm.texi: Rebuild.
8507         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
8508         (BUILT_IN_TM_MEMCPY_RTWN): New.
8509         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
8510         fallback from vector to integer helpers.
8511         (build_tm_load): Handle vector types directly, instead of
8512         via target hook.
8513         (build_tm_store): Likewise.
8514         (expand_assign_tm): Prepare for register types not handled by
8515         the above.  Copy them to memory and use memcpy.
8516         * tree.c (tm_define_builtin): New.
8517         (find_tm_vector_type): New.
8518         (build_tm_vector_builtins): New.
8519         (build_common_builtin_nodes): Call it.
8521 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
8523         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
8524         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
8526 2016-01-13  Tom de Vries  <tom@codesourcery.com>
8528         PR tree-optimization/69169
8529         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
8530         handled_struct_type param.
8531         (create_variable_info_for, intra_create_variable_infos): Call
8532         create_variable_info_for_1 with extra arg.
8534 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
8536         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
8537         and "armv8.1-a+crc" entries.
8539 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
8541         PR target/69228
8542         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
8543         Change first operand predicate from register_or_constm1_operand
8544         to register_operand.
8545         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
8546         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
8547         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
8548         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
8549         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
8550         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
8551         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
8552         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
8553         comparison with constm1_rtx from vec_prefetch_gen part.
8555 2016-01-13  Richard Biener  <rguenther@suse.de>
8557         PR tree-optimization/69013
8558         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
8559         Exchange assert for a test.
8561 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8563         PR target/69247
8564         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
8566 2016-01-13  Richard Biener  <rguenther@suse.de>
8568         PR tree-optimization/69242
8569         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
8570         assert with a check.
8572 2016-01-13  Richard Biener  <rguenther@suse.de>
8574         PR tree-optimization/69186
8575         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
8576         Properly guard vect_update_misalignment_for_peel call.
8578 2016-01-12  Jeff Law  <law@redhat.com>
8580         PR tree-optimization/pr67755
8581         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
8582         "need_profile_correction".
8583         (thread_block_1): Initialize new field to false by default.  If we
8584         have multiple thread paths through a common joiner to different
8585         final targets, then set new field to true.
8586         (compute_path_counts): Only do count adjustment when it's really
8587         needed.
8589 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8591         * doc/invoke.texi (Spec Files): Move section down in file, past
8592         all command-line option descriptions.
8594 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8596         PR middle-end/54809
8597         * doc/gty.texi: Remove documentation of mark_hook.
8598         * gengtype.c (struct write_types_data): Remove code to support
8599         mark_hook attribute.
8600         (walk_type): Likewise.
8601         (write_func_for_structure): Likewise.
8603 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8605         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
8606         Directory Options, and -specs= to Overall Options.
8607         (Overall Options): Adjust similarly.  Reorder to group related
8608         options together.  Make -specs= cross-reference the spec file details.
8609         (Directory Options): Adjust similarly.
8611 2016-01-12  Jeff Law  <law@redhat.com>
8613         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
8615 2016-01-12  Olivier Hainque  <hainque@adacore.com>
8617         * gcc.c (spec_undefvar_allowed): New global.
8618         (process_command): Set to true when running for --version or --help,
8619         alone or together.
8620         (getenv_spec_function): When the variable is not defined, use the
8621         variable name as the variable value if we're allowed not to issue
8622         a fatal error.
8624 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
8626         PR tree-optimization/68911
8627         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
8628         information computed for expression "init + nit * step".
8630 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
8632         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
8633         about name of GCC executable.  Remove deleted node from menu.
8634         (Directory Options) <-B>: Remove cross-reference to deleted node.
8635         (Target Options): Delete section.
8637 2016-01-12  Christian Bruel  <christian.bruel@st.com>
8639         PR target/69180
8640         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
8641         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
8643 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
8645         PR target/69198
8646         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
8647         aligned_mem is properly set for AVX512-VL floating point masked
8648         stores.
8650         PR target/69175
8651         * ifcvt.c (cond_exec_process_if_block): When removing the last
8652         insn from then_bb, remove also any possible barriers that follow it.
8654 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
8656         PR target/68456
8657         PR target/69226
8658         * config/i386/iamcu.h (SIZE_TYPE): New macro.
8659         (PTRDIFF_TYPE): Likewise.
8660         (WCHAR_TYPE): Likewise.
8661         (WCHAR_TYPE_SIZE): Likewise.
8662         (STDINT_LONG32): Likewise.
8664 2016-01-12  Richard Biener  <rguenther@suse.de>
8666         PR tree-optimization/69053
8667         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
8668         convert initial value for cond reductions.
8670 2016-01-12  Richard Biener  <rguenther@suse.de>
8672         PR tree-optimization/69007
8673         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
8674         widen_sum after dot_prod and sad.
8676 2016-01-12  Richard Biener  <rguenther@suse.de>
8678         PR tree-optimization/69168
8679         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
8680         pattern stmt SLP type.
8681         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
8682         end up unused so cope with that case.
8684 2016-01-12  Richard Biener  <rguenther@suse.de>
8686         PR tree-optimization/69157
8687         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
8688         stmts def type only during analyze phase.
8689         (vectorizable_call): Likewise.
8690         (vectorizable_simd_clone_call): Likewise.
8691         (vectorizable_conversion): Likewise.
8692         (vectorizable_assignment): Likewise.
8693         (vectorizable_shift): Likewise.
8694         (vectorizable_operation): Likewise.
8695         (vectorizable_store): Likewise.
8696         (vectorizable_load): Likewise.
8698 2016-01-12  Richard Biener  <rguenther@suse.de>
8700         PR tree-optimization/69174
8701         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
8702         space.
8703         (vectorizable_load): Properly compute the number of loads needed
8704         for permuted strided SLP loads and do not spuriously assign
8705         to SLP_TREE_VEC_STMTS.
8707 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
8709         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
8710         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
8711         (MD_EXEC_PREFIX): Remove.
8712         (MD_STARTFILE_PREFIX) Removee.
8713         (FILE_NAME_ABSOLUTE_P): Remove.
8714         (CPP_SPEC): Do not read macros from sys/version.h.
8715         (LINK_COMMAND_SPEC): Remove.
8716         (LOCAL_INCLUDE_DIR): Remove.
8717         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
8718         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
8719         (POST_LINK_SPEC): Define to invoke stubify after linker
8720         (LIBSTDCXX): Remove define
8721         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
8722         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
8723         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
8724         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
8725         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
8726         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
8727         (i386_djgpp_asm_named_section): Add propotype of new procedure
8729         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
8730         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
8731         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
8732         in config/i386/djgpp.h).
8733         (STANDARD_STARTFILE_PREFIX_2): Define identical to
8734         STANDARD_STARTFILE_PREFIX_1.
8735         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
8736         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
8737         installation errors.
8738         (MAX_OFILE_ALIGNMENT): Define to 128.
8739         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
8741         * config/i386/djgpp.c: New file. Add implementation of
8742         i386_djgpp_asm_named_section.
8744         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
8746         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
8747         Add rule for building djgpp.o.
8749 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8751         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
8752         (rtx_is_swappable_p): Reductions are swappable.
8753         (insn_is_swappable_p): V2DF reductions are swappable.
8755 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
8757         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
8758         reloads for other unsupported memory operands.
8760 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
8761             Jim Wilson  <jim.wilson@linaro.org>
8763         PR target/69194
8764         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
8765         copy_to_mode_reg instead of force_reg.
8767 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
8769         PR target/69225
8770         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
8771         TARGET_80387 is true.
8773 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
8775         PR target/69071
8776         * lra-eliminations.c (move_plus_up): Only move plus up
8777         if subreg of the constant can be simplified into constant
8778         and use the simplified subreg of the constant instead of
8779         the original constant.
8781         * fold-const.c (fold_convertible_p): Don't return true
8782         for conversion of VECTOR_TYPE to same sized integral type.
8783         (fold_convert_loc): Fix up formatting.  Fold conversion of
8784         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
8785         instead of NOP_EXPR.
8787         PR tree-optimization/69214
8788         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
8789         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
8790         Formatting fix.
8792         PR tree-optimization/69207
8793         * tree-vect-slp.c (vect_get_constant_vectors): For
8794         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
8795         fold_convertible_p to vector_type's element type, and always
8796         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
8798 2016-01-11  Richard Biener  <rguenther@suse.de>
8800         PR tree-optimization/69173
8801         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
8802         fixup the cycle if all stmts are in a pattern.
8804 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
8806         PR middle-end/68999
8807         * alias.c (base_alias_check): Move check for addresses with
8808         alignment ANDs before the call for compare_base_decls.
8809         (memrefs_conflict_p): Return -1 for different decls
8810         that went through alignment adjustments.
8812 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8814         PR rtl-optimization/68796
8815         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
8816         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
8817         and QImode comparisons against zero with CC_NZmode.
8818         * config/aarch64/iterators.md (short_mask): New mode_attr.
8820 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
8822         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
8823         (<avx512>_store<mode>_mask): Likewise.
8825 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
8826             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8828         PR rtl-optimization/68841
8829         * ifcvt.c (struct noce_if_info): Add orig_x field.
8830         (bbs_ok_for_cmove_arith): Add to_rename parameter.
8831         Don't record conflicts on to_rename if it's present.
8832         Allow memory destinations in sets.
8833         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
8834         blocks, passing orig_x to the checks.
8835         (noce_process_if_block): Set if_info->orig_x appropriately.
8837 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8839         PR tree-optimization/69069
8840         * tree-parloops.c (create_parallel_loop): Add missing phi args.
8842 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
8844         PR rtl-optimization/68920
8845         * config/i386/i386.c (ix86_option_override_internal): Restrict number
8846         of conditional moves for  RTL if-conversion to 1 for
8847         TARGET_ONE_IF_CONV_INSN.
8848         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
8849         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
8850         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
8851         parameter to restirct number of conditional moves for
8852         RTL if-conversion.
8853         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
8854         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
8855         conditionl moves.
8857 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
8859         PR bootstrap/69123
8860         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
8861         onepart vars.  Fix typo in comment.  Fix reversed condition in
8862         unshare test.
8863         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
8865         PR bootstrap/69123
8866         * var-tracking.c (dump_onepart_variable_differences): New.
8867         (dataflow_set_different): If a detailed dump is requested,
8868         delay early returns and dump differences between onepart
8869         variables present before and after, and added variables.
8871 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
8873         PR target/69010
8874         * expr.c (expand_expr_real_1): For boolean vector constants
8875         with a scalar mode use const_scalar_mask_from_tree.
8876         (const_scalar_mask_from_tree): New.
8877         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
8878         assigned to a mask type to handle constants.
8880 2016-01-11  Martin Jambor  <mjambor@suse.cz>
8882         PR ipa/69044
8883         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
8884         useless parameters if we cannot change function signature.
8886 2016-01-11  Martin Jambor  <mjambor@suse.cz>
8888         PR ipa/66616
8889         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
8890         flag.
8892 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8894         PR tree-optimization/69109
8895         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
8896         latch with phi.
8898 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8900         PR tree-optimization/69108
8901         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
8902         res is not used in a phi.
8904 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
8906         PR 67425
8907         * common.opt (frandom-seed): Fix parameter name.
8908         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
8910 2016-01-11  Tom de Vries  <tom@codesourcery.com>
8912         PR tree-optimization/69058
8913         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
8914         not supported.
8916 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
8918         * config/arc/arc.opt (mdiv-rem): Add period to the end.
8919         (mcode-density): Likewise.
8921 2016-01-10  Tom de Vries  <tom@codesourcery.com>
8923         PR tree-optimization/69062
8924         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
8925         (parallelize_loops): Don't paralelize loop that has phi with address
8926         arg.
8928 2016-01-10  Tom de Vries  <tom@codesourcery.com>
8930         PR tree-optimization/69039
8931         * tree-parloops.c (try_create_reduction_list): Only allow single exit
8932         phi for reduction.
8934 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
8936         PR middle-end/68743
8937         * match.pd: Require target has function_c99_misc before doing
8938         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
8940 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
8942         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
8943         use GMPINC.
8944         * configure: Regenerate.
8946 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
8948         PR middle-end/50865
8949         PR tree-optimization/69097
8950         * fold-const.h (expr_not_equal_to): New prototype.
8951         * fold-const.c: Include stringpool.h and tree-ssanames.h.
8952         (expr_not_equal_to): New function.
8953         * match.pd (X % -Y is the same as X % Y): Don't optimize
8954         unless X is known not to be equal to minimum or Y is known
8955         not to be equal to -1.
8956         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
8957         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
8958         (simplify_stmt_using_ranges): Adjust caller.
8959         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
8960         substitute_and_fold.
8962 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
8964         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
8965         w/o DECL_NAME.
8967 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
8969         PR tree-optimization/69167
8970         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
8971         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
8972         ops[0] comparison.
8973         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
8975 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
8976             Richard Biener  <rguenther@suse.de>
8978         PR tree-optimization/68707
8979         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
8980         instances that can be handled via vect_load_lanes.
8982 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
8984         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
8985         if we can't determine address equivalence.
8986         * alias.c (compare_base_decl): Update for changed return value of
8987         symtab_node::equal_address_to.
8989 2016-01-08  Jason Merrill  <jason@redhat.com>
8991         PR c++/68983
8992         PR c++/67557
8993         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
8994         * expr.c (store_field): Not here.
8995         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
8996         call with TREE_ADDRESSABLE type.
8997         * tree-cfg.c (verify_gimple_call): Adjust.
8999 2016-01-08  Olivier Hainque  <hainque@adacore.com>
9001         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9002         libc_internal.
9004 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9006         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9007         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9008         (reduc_smin_v2sf): Rename to...
9009         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9010         (reduc_splus_v2sf): Rename to...
9011         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9013 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9015         PR tree-optimization/69162
9016         * gimplify.c (gimplify_va_arg_expr): Encode original type of
9017         valist argument in another argument.
9018         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
9019         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9020         to determine the va_list type, build a MEM_REF instead of
9021         build_fold_indirect_ref.
9023         PR tree-optimization/69172
9024         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9025         gimple_build.
9027 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9029         PR tree-optimization/67781
9030         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9031         and cmpnop in two steps: first the ones not accessed in original
9032         gimple expression in a endian independent way and then the ones not
9033         accessed in the final result in an endian-specific way.
9035 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9037         PR tree-optimization/69083
9038         * tree-vect-slp.c (vect_get_constant_vectors): For
9039         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9040         element type.  If op is fold_convertible_p to vector_type's element
9041         type, use NOP_EXPR instead of VCE.
9043 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
9045         PR rtl-optimization/67778
9046         PR rtl-optimization/68634
9047         PR rtl-optimization/68909
9048         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
9049         block from the stack until done with it.  Remove a superfluous
9050         bitmap set.  Remove a superfluous bitmap test.
9052 2016-01-07  Martin Sebor  <msebor@redhat.com>
9054         PR c/68966
9055         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9056         constraint on the type of arguments.
9058 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
9060         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9061         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9062         unaligned_access on the gcc_options set.
9063         * config/arm/arm.c (arm_option_override_internal): Use
9064         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9066 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9068         PR target/69140
9069         * config/i386/i386.c (ix86_frame_pointer_required): Enable
9070         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9072 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9074         Revert
9075         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9077         PR target/69140
9078         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9079         depending on frame_pointer_needed before remaining integer and SSE
9080         registers are saved.
9082 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9084         PR 1078
9085         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9087 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9089         PR target/69171
9090         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9091         Use the "xBm" constraint.
9092         (float<sseintvecmodelower><mode>2<mask_name><round_name):
9093         Likewise.
9094         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9095         (sse_cvtsi2ssq<round_name>): Likewise.
9096         (sse_cvtss2si<round_name>): Likewise.
9097         (sse_cvtss2siq<round_name>): Likewise.
9098         (sse2_cvtsi2sdq<round_name>): Likewise.
9099         (sse2_cvtsd2si<round_name>): Likewise.
9100         (sse2_cvtsd2siq<round_name>): Likewise.
9101         * config/i386/subst.md (round_nimm_scalar_predicate): New
9102         predicate.
9104 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
9106         PR middle-end/67639
9107         * varasm.c (make_decl_rtl): Mark invalid register vars as
9108         DECL_EXTERNAL.
9110         PR rtl-optimization/66206
9111         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9112         All callers changed.
9114 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9116         PR tree-optimization/69141
9117         * tree-ssa-pre.c: Include langhooks.h.
9118         (eliminate_dom_walker::before_dom_children): Use
9119         lang_hooks.decl_printable_name instead of
9120         cgraph_node::get ()->name ().
9122         PR middle-end/68960
9123         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9124         it and DECL_ALIGN too.
9126 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
9128         * config/mips/mips-ftypes.def: Sort to lexicographical order.
9130 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9132         PR target/69140
9133         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9134         depending on frame_pointer_needed before remaining integer and SSE
9135         registers are saved.
9137 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9139         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9140         mode iterator with VSX_M2.
9141         (*p9_vecstore_<mode>): Likewise.
9142         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9143         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9144         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9145         (define_split for VSX_LE128 stores): Likewise.
9146         (define_peephole2 for TImode LE swaps): Likewise.
9147         (define_split for VSX_LE128 post-reload stores): Likewise.
9149 2016-01-06  Marek Polacek  <polacek@redhat.com>
9151         PR sanitizer/69099
9152         * convert.c (convert_to_integer_1): Adjust call to
9153         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
9154         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
9155         EXPR instead of ARG.
9156         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9158 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9160         PR 1078
9161         * doc/extend.texi (RL78 Variable Attributes): New section.
9163 2016-01-05  Marek Polacek  <polacek@redhat.com>
9165         PR c/69104
9166         * builtins.c (get_memmodel): Use expansion point location rather than
9167         the input location.  Call warning_at rather than warning.
9168         (expand_builtin_atomic_compare_exchange): Likewise.
9169         (expand_builtin_atomic_load): Likewise.
9170         (expand_builtin_atomic_store): Likewise.
9171         (expand_builtin_atomic_clear): Likewise.
9173 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9175         PR target/68991
9176         * config/i386/i386.c (ix86_expand_vector_logical_operator):
9177         Replace nonimmediate_operand with vector_operand.
9178         * config/i386/predicates.md (vector_operand): New predicate.
9179         (general_vector_operand): Replace nonimmediate_operand with
9180         vector_operand.
9181         * config/i386/sse.md: Replace nonimmediate_operand with
9182         vector_operand and m constraint with Bm constraint on SSE
9183         patterns with 16-byte memory operand.
9184         * config/i386/subst.md (round_nimm_predicate): Replace
9185         nonimmediate_operand with vector_operand.
9186         (round_saeonly_nimm_predicate): Likewise.
9187         (round_saeonly_nimm_scalar_predicate): New.
9189 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9191         PR target/68991
9192         * config/i386/constraints.md (Bm): New constraint.
9193         * config/i386/predicates.md (vector_memory_operand): New
9194         predicate.
9195         * config/i386/sse.md: Replace xm with xBm in plusminus and
9196         any_logic patterns.
9198 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9200         PR 1078
9201         * doc/extend.texi (V850 Function Attributes): New section.
9202         (V850 Variable Attributes): New section.
9204 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9206         PR 1078
9207         * doc/extend.texi (MicroBlaze Function Attributes): Document
9208         interrupt_handler and fast_interrupt attributes.
9210 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
9212         PR other/60465
9213         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9214         for local symbolic operands.
9215         * config/ia64/predicates.md (local_symbolic_operand64): New
9216         predicate.
9218 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9220         PR rtl-optimization/68651
9221         * combine.c (combine_simplify_rtx): Canonicalize x + x into
9222         x << 1.
9224 2016-01-05  Nathan Sidwell  <nathan@acm.org>
9226         * alias.c (compare_base_decls): Use symtab_node::get.
9228 2016-01-05  Nick Clifton  <nickc@redhat.com>
9230         PR target/68770
9231         * ira-costs.c (copy_cost): Initialise the t_icode field of the
9232         secondary_reload_info structure.
9234         PR target/66655
9235         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9236         decls if weak support is available.
9238 2016-01-04  Martin Sebor  <msebor@redhat.com>
9240         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9242 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
9244         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9245         OPTION_MASK_P9_DFORM.
9247         * config/rs6000/constraints.md (wo constraint): New constraint for
9248         ISA 3.0 (power9).
9250         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9251         for wo constraint.
9252         (rs6000_init_hard_regno_mode_ok): Likewise.
9254         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9255         wo constraint.
9257         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9258         expanders not to have constraints.  Add support for ISA 3.0 xxperm
9259         instruction.  Add support for fusing xxlor with xxperm.
9260         (altivec_vperm_<mode>_internal): Likewise.
9261         (altivec_vperm_v8hiv16qi): Likewise.
9262         (altivec_vperm_<mode>v16q): Likewise.
9263         (altivec_vperm_<mode>_uns): Likewise.
9264         (vperm_v8hiv4si): Likewise.
9265         (vperm_v16qiv8hi): Likewise.
9267         * doc/md.texi (RS/6000 constraints): Document wo constraint.
9269 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9271         Update copyright years.
9273         * gcc.c (process_command): Update copyright notice dates.
9274         * gcov-dump.c (print_version): Ditto.
9275         * gcov.c (print_version): Ditto.
9276         * gcov-tool.c (print_version): Ditto.
9277         * gengtype.c (create_file): Ditto.
9278         * doc/cpp.texi: Bump @copying's copyright year.
9279         * doc/cppinternals.texi: Ditto.
9280         * doc/gcc.texi: Ditto.
9281         * doc/gccint.texi: Ditto.
9282         * doc/gcov.texi: Ditto.
9283         * doc/install.texi: Ditto.
9284         * doc/invoke.texi: Ditto.
9286 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9288         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9289         modes larger than TImode as TImode if NEON is not enabled.
9291 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9293         PR target/69100
9294         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9295         mode for %f0-%f31 only if TARGET_FPU.
9297 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9299         PR target/69072
9300         * config/sparc/sparc.c (scan_record_type): Take into account subfields
9301         to compute the PACKED_P predicate.
9302         (function_arg_record_value): Minor tweaks.
9304 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9306         * doc/install.texi (--with-multilib-list): Describe the meaning of the
9307         option for arm*-*-* targets.
9309 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9311         * doc/extend.texi (Common Function Attributes): Move docs for
9312         MSP430-specific attributes to....
9313         (MSP430 Function Attributes): ...here.  Delete the redundant
9314         entries and copy-edit the remaining text.
9315         (MSP430 Variable Attributes): Use uniform format for index
9316         entries and add a cross-reference to the corresponding function
9317         attribute docs.
9319 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
9321         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9322         -finite-math typo.
9323         (x86 Options): Likewise.
9325 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
9327         PR 1078
9329         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9330         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9331         to corresponding attribute.
9333 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
9335         * doc/extend.texi (Common Function Attributes) <noplt>: Move
9336         to correct alphabetization of table.  Copy-edit and correct
9337         markup.
9338         <stack_protect>: Likewise.
9339         <target_clones>: Likewise.
9340         <simd>: Likewise.
9341         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9342         Correct punctuation.
9343         (Code Gen Options) <-fno-plt>: Copy-edit.
9345 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9347         PR target/68917
9348         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9349         SI values.  Explicitly convert SI to DI and vice-versa.
9351 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
9353         PR tree-optimization/69070
9354         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9355         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9357         PR sanitizer/69055
9358         * ubsan.c (ubsan_instrument_float_cast): Call
9359         initialize_sanitizer_builtins.
9361         PR target/69015
9362         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9364 Copyright (C) 2016 Free Software Foundation, Inc.
9366 Copying and distribution of this file, with or without modification,
9367 are permitted in any medium without royalty provided the copyright
9368 notice and this notice are preserved.