PR tree-optimization/56541
[official-gcc.git] / gcc / ChangeLog
blobffe45b718a5bc1fca6cb3683c07f12d7f1f08116
1 2016-05-03  bin cheng  <bin.cheng@arm.com>
3         PR tree-optimization/56541
4         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
5         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
6         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
7         (any_complicated_phi): new static variable.
8         (aggressive_if_conv): delete.
9         (if_convertible_phi_p): support phis with more than two arguments.
10         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
11         critical pred edges.
12         (ifcvt_split_critical_edges): support phis with more than two
13         arguments by checking new parameter.  only split critical edges
14         if needed.
15         (tree_if_conversion): handle simd pragma marked loop using new
16         local variable aggressive_if_conv.  check any_complicated_phi.
18 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
20         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
21         before using it.
23 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
25         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
26         cbase.
28 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
30         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
31         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
32         define_insn_and_split.
33         (mulsi3_i): New define_insn_and_split.
34         (mulsi3_call): Convert to define_insn.
35         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
36         Remove constraints.
38 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
40         * machmode.h (mode_complex): Add support to give the complex mode
41         for a given mode.
42         (GET_MODE_COMPLEX_MODE): Likewise.
43         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
44         stored by build_complex_type and gfc_build_complex_type instead of
45         trying to figure out the appropriate mode based on the size. Raise
46         an assertion error, if the type was not set.
47         * genmodes.c (struct mode_data): Add field for the complex type of
48         the given type.
49         (blank_mode): Likewise.
50         (make_complex_modes): Remember the complex mode created in the
51         base type.
52         (emit_mode_complex): Write out the mode_complex array to map a
53         type mode to the complex version.
54         (emit_insn_modes_c): Likewise.
55         * tree.c (build_complex_type): Set the complex type to use before
56         calling layout_type.
57         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
58         support for __float128 complex datatypes.
59         (rs6000_hard_regno_mode_ok): Likewise.
60         (rs6000_setup_reg_addr_masks): Likewise.
61         (rs6000_complex_function_value): Likewise.
62         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
63         __float128 and __ibm128 complex.
64         (FLOAT128_IBM_P): Likewise.
65         (ALTIVEC_ARG_MAX_RETURN): Likewise.
66         * doc/extend.texi (Additional Floating Types): Document that
67         -mfloat128 must be used to enable __float128.  Document complex
68         __float128 and __ibm128 support.
70 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
72         PR target/49244
73         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
74         char/short arguments promoted to int because of promote_prototypes.
76 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
78         * config/i386/predicates.md (register_ssemem_operand): New predicate.
79         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
80         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
81         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
82         alternatives using "enabled" attribute.  Use register_ssemem_operand
83         as operand 1 predicate.
84         (*cmpi<unord>xf_i387): Split XFmode pattern from
85         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
86         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
87         *absneg<mode>2_i387.  Disable unsupported alternatives using
88         "enabled" attribute.
89         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
91 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
93         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
94         marker.
95         (oacc_loop_process): Check mask for loop termination.
97 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
99         * cif-code.def (CIF_THUNK): Add.
100         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
101         accidental change.
103 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
105         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
106         (dump_inline_summary): Dump it.
107         (fp_expression_p): New predicate.
108         (estimate_function_body_sizes): Use it.
109         (inline_merge_summary): Merge fp_expressions.
110         (inline_read_section): Read fp_expressions.
111         (inline_write_summary): Write fp_expressions.
112         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
113         codegen boundary if either caller or callee is !fp_expressions.
114         * ipa-inline.h (inline_summary): Add fp_expressions.
115         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
116         to fp_expressions be sure the fp generation flags are updated.
118 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
120         PR rtl-optimization/70467
121         * cse.c (cse_insn): Handle no-op MEM moves after folding.
123         PR rtl-optimization/70467
124         * ipa-pure-const.c (check_call): Handle internal calls even in
125         ipa mode like in local mode.
127 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
129         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
131 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
133         * match.pd (X u< X, X u> X): New transformations.
135 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
137         * flag-types.h (enum warn_strict_overflow_code): Move ...
138         * coretypes.h: ... here.
139         * fold-const.h (fold_overflow_warning): Declare.
140         * fold-const.c (fold_overflow_warning): Make non-static.
141         (fold_comparison): Move the transformation of X +- C1 CMP C2
142         into X CMP C2 -+ C1 ...
143         * match.pd: ... here.
144         * gimple-fold.c (fold_stmt_1): Protect with
145         fold_defer_overflow_warnings.
147 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
149         * omp-low.c (struct oacc_loop): Add 'inner' field.
150         (new_oacc_loop_raw): Initialize it to zero.
151         (oacc_loop_fixed_partitions): Initialize it.
152         (oacc_loop_auto_partitions): Partition outermost loop to outermost
153         available partitioning.
155 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
157         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
158         register_operand.
159         (umulsidi3): Likewise.
160         (indirect_jump): Fix jump instruction assembly patterns.
162 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
164         PR target/70860
165         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
166         (nvptx_function_value): Assert non-NULL cfun.
168 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
170         PR rtl-optimization/70886
171         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
173         * cselib.h (rtx_equal_for_cselib_1): Declare.
174         (rtx_equal_for_cselib_p: New inline function.
175         * cselib.c (rtx_equal_for_cselib_p): Delete.
176         (rtx_equal_for_cselib_1): Make public.
178 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
180         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
181         (register_mixssei387nonimm_operand): Remove predicate.
182         * config/i386/i386.md (*fop_<mode>_comm): Merge from
183         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
184         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
185         for TARGET_MIX_SSE_I387 alternatives.
186         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
187         Disable unsupported alternatives using "enabled" attribute.  Use
188         nonimm_ssenomem_operand as operand 1 predicate.  Also check
189         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
191 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
193         * tree.c (cst_and_fits_in_hwi): Simplify.
195 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
197         * tree.h (wi::to_wide): New function.
198         * expr.c (expand_expr_real_1): Use wi::to_wide.
199         * fold-const.c (int_const_binop_1): Likewise.
200         (extract_muldiv_1): Likewise.
202 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
204         * wide-int.h: Update offset_int and widest_int documentation.
205         (WI_SIGNED_SHIFT_RESULT): New macro.
206         (wi::binary_shift): Define signed_shift_result_type for
207         shifts on offset_int- and widest_int-like types.
208         (generic_wide_int): Support <<= and >>= if << and >> are supported.
209         * tree.h (int_bit_position): Use shift operators instead of wi::
210          shifts.
211         * alias.c (adjust_offset_for_component_ref): Likewise.
212         * expr.c (get_inner_reference): Likewise.
213         * fold-const.c (fold_comparison): Likewise.
214         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
215         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
216         * tree-dfa.c (get_ref_base_and_extent): Likewise.
217         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
218         (stmt_kills_ref_p): Likewise.
219         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
220         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
221         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
222         (ao_ref_init_from_vn_reference): Likewise.
224 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
226         * wide-int.h: Update offset_int and widest_int documentation.
227         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
228         (wi::binary_traits): Allow ordered comparisons between offset_int and
229         offset_int, between widest_int and widest_int, and between either
230         of these types and basic C types.
231         (operator <, <=, >, >=): Define for the same combinations.
232         * tree.h (tree_int_cst_lt): Use comparison operators instead
233         of wi:: comparisons.
234         (tree_int_cst_le): Likewise.
235         * gimple-fold.c (fold_array_ctor_reference): Likewise.
236         (fold_nonarray_ctor_reference): Likewise.
237         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
238         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
239         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
240         * tree-sra.c (completely_scalarize): Likewise.
241         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
242         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
243         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
244         (check_for_binary_op_overflow): Likewise.
245         (search_for_addr_array): Likewise.
246         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
248 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
250         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
251         (arc_save_restore): Likewise.
252         (arc_dwarf_register_span): Likewise.
253         (arc_output_pic_addr_const): Initialize suffix variable.
255 2016-05-02  Martin Liska  <mliska@suse.cz>
257         * symbol-summary.h (function_summary::function_summary):
258         Remove checking assert for all cgraph nodes.
259         (function_summary::get): Check summary_uid.
260         (symtab_insertion): Check summary_uid.
262 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
264         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
265         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
266         bmaskn instruction.
267         (arc_dwarf_register_span): Remove enum keyword.
268         (compact_memory_operand_p): New function.
269         * config/arc/arc.h (reg_class): Add code density register classes.
270         (REG_CLASS_NAMES): Likewise.
271         (REG_CLASS_CONTENTS): Likewise.
272         * config/arc/arc.md (*movqi_insn): Add code density instructions.
273         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
274         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
275         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
276         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
277         constraints.
278         (h, Rcd, Rsd, Rzd): New register constraints.
279         (T): Use compact_memory_operand_p function.
280         * config/arc/predicates.md (compact_load_memory_operand): Remove.
282 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
284         * config/sh/sh.md (*negnegt, *movtt): Remove.
286 2016-05-02  Marek Polacek  <polacek@redhat.com>
287             Tom de Vries  <tom@codesourcery.com>
289         PR tree-optimization/70700
290         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
291         bigger than FIRST_REF_NODE.
293 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
295         PR target/52898
296         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
297         TARGET_CMPEQDI_T.
298         (prepare_cbranch_operands): Don't use scratch register.  Assume that
299         function is used when pseudos can be created.
300         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
301         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
302         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
303         define_expand.  Allow it only when pseudos can be created.
304         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
306 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
308         * config/i386/constraints.md (BC): Only allow -1 operands.
309         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
310         Add "enabled" attribute.  Update XI mode attribute calculation.
311         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
312         (*movoi_internal_avx): Update XI mode attribute calculation.
313         (*movti_internal): Ditto.
315 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
317         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
318         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
320 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
322         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
323         statement on instruction code.  Remove trailing spaces.
324         (altivec_expand_stv_builtin): Likewise.
326 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
328         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
329         (TARGET_FPU_DOUBLE): Simplify.
330         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
331         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
332         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
333         with 'TARGET_FPU_DOUBLE'.
334         * config/sh/sh.md: Likewise.
336 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
338         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
339         SH_DIV_STR_FOR_SIZE): Remove.
340         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
341         SH_DIV_STR_FOR_SIZE): Remove.
343 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
345         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
346         logical_reg_operand): Delete.
347         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
348         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
349         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
350         match_operand and match_test.
351         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
352         variables on their first use.  Return bool values.
353         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
354         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
355         arith_reg_operand for input operand.  Remove empty constraints.
356         (xorsi3): Delete.
357         (*xorsi3_compact): Rename to xorsi3.
358         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
359         (*zero_extend<mode>si2_disp_mem): Update comment.
360         (mov_nop): Delete.
362 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
364         * config/sh/t-sh: Remove SH5 support.
365         * config.gcc: Likewise.
366         * configure: Likewise.
368 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
370         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
372 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
374         * config/sh/sh.c (register_sh_passes, sh_option_override,
375         sh_print_operand, prepare_move_operands,
376         sh_can_follow_jump): Remove TARGET_SH1 checks.
377         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
378         PROMOTE_MODE): Likewise.
379         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
380         movdi): Likewise.
382 2016-04-30  Alan Modra  <amodra@gmail.com>
384         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
385         restoring when fixed_reg_p, but allow out-of-line or stmw save.
386         Check for user regs later to avoid unnecessary looping over regs.
387         Merge user reg check with non-saved reg check.  Don't force
388         inline VR restore when static chain used.
389         (rs6000_frame_related): Omit eh_frame info for user regs when
390         saving.
391         (fixed_regs_p): Delete.
393 2016-04-30  Alan Modra  <amodra@gmail.com>
395         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
396         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
397         Update all uses.
399 2016-04-30  Alan Modra  <amodra@gmail.com>
401         PR target/69645
402         * config/rs6000/rs6000.c (fixed_reg_p): New function.
403         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
404         Update all uses.
406 2016-04-30  Alan Modra  <amodra@gmail.com>
408         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
409         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
410         flag_pic test for Darwin.
412 2016-04-30  Alan Modra  <amodra@gmail.com>
414         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
415         throw_calls_crossed.
416         (REG_FREQ_CALLS_CROSSED): Delete.
417         (REG_N_THROWING_CALLS_CROSSED): Delete.
418         * regstat.c (regstat_bb_compute_ri): Don't calculate
419         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
420         (dump_reg_info): Don't print call cross frequency.
421         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
422         and REG_N_THROWING_CALLS_CROSSED.
424 2016-04-30  Alan Modra  <amodra@gmail.com>
426         * regs.h (struct reg_info_t): Delete live_length.
427         (REG_LIVE_LENGTH): Delete macro.
428         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
429         local_live, local_processed and local_live_last_luid params.
430         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
431         Formatting fixes.
432         (regstat_compute_ri): Adjust for above.  Don't set
433         REG_LIVE_LENGTH.
434         (dump_reg_info): Don't print live length.
435         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
436         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
437         Localize loop_depth var.
439 2016-04-30  Alan Modra  <amodra@gmail.com>
441         * ira.c (enum valid_equiv): New.
442         (validate_equiv_mem): Return enum.
443         (update_equiv_mem): Create replacement in more cases.
444         (add_store_equivs): Update validate_equiv_mem call.
446 2016-04-30  Alan Modra  <amodra@gmail.com>
448         * ira.c (combine_and_move_insns): Rather than scanning insns,
449         use DF infrastucture to find use and def insns.
451 2016-04-30  Alan Modra  <amodra@gmail.com>
453         ira.c (combine_and_move_insns): Move invariant conditions..
454         (ira.c): ..to here.  Call combine_and_move_insns before
455         add_store_equivs.  Call grow_reg_equivs later.  Allocate
456         req_equiv later using max_reg_num() rather than global max_regno.
457         (contains_replace_regs): Delete.
458         (add_store_equivs): Remove contains_replace_regs test.
460 2016-04-30  Alan Modra  <amodra@gmail.com>
462         * ira.c (struct equiv_mem_data): New.
463         (equiv_mem, equiv_mem_modified): Delete static vars.
464         (validate_equiv_mem_from_store): Use "data" param to communicate..
465         (validate_equiv_mem): ..from here.
467 2016-04-30  Alan Modra  <amodra@gmail.com>
469         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
470         split out from..
471         (update_reg_equivs): ..here.  Move allocation and freeing of
472         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
473         end_alias_analysis to..
474         (ira): ..here.
476 2016-04-30  Alan Modra  <amodra@gmail.com>
478         * ira.c (pdx_subregs): Delete.
479         (struct equivalence): Add pdx_subregs field.
480         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
481         pdx_subregs access.
482         (update_equiv_regs): Don't create or free pdx_subregs.  Update
483         pdx_subregs access.
485 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
487         * config/rs6000/altivec.h: Change definitions of vec_xl and
488         vec_xst.
489         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
490         (LD_ELEMREV_V2DI): New.
491         (LD_ELEMREV_V4SF): New.
492         (LD_ELEMREV_V4SI): New.
493         (LD_ELEMREV_V8HI): New.
494         (LD_ELEMREV_V16QI): New.
495         (ST_ELEMREV_V2DF): New.
496         (ST_ELEMREV_V2DI): New.
497         (ST_ELEMREV_V4SF): New.
498         (ST_ELEMREV_V4SI): New.
499         (ST_ELEMREV_V8HI): New.
500         (ST_ELEMREV_V16QI): New.
501         (XL): New.
502         (XST): New.
503         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
504         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
505         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
506         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
507         (altivec_expand_builtin): Add handling for
508         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
509         (rs6000_invalid_builtin): Add error-checking for
510         RS6000_BTM_P9_VECTOR.
511         (altivec_init_builtins): Define builtins used to implement vec_xl
512         and vec_xst.
513         (rs6000_builtin_mask_names): Define power9-vector.
514         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
515         (RS6000_BTM_P9_VECTOR): Define.
516         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
517         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
518         (vsx_ld_elemrev_v2df): Likewise.
519         (vsx_ld_elemrev_v4sf): Likewise.
520         (vsx_ld_elemrev_v4si): Likewise.
521         (vsx_ld_elemrev_v8hi): Likewise.
522         (vsx_ld_elemrev_v16qi): Likewise.
523         (vsx_st_elemrev_v2df): Likewise.
524         (vsx_st_elemrev_v2di): Likewise.
525         (vsx_st_elemrev_v4sf): Likewise.
526         (vsx_st_elemrev_v4si): Likewise.
527         (vsx_st_elemrev_v8hi): Likewise.
528         (vsx_st_elemrev_v16qi): Likewise.
529         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
530         grammar.
532 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
534         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
535         out into ...
536         (simplify_control_stmt_condition_1): ... here.  Recurse into
537         BIT_AND_EXPRs and BIT_IOR_EXPRs.
539 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
541         PR target/69810
542         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
543         (zero_extendqi<mode>2_dot): Revert earlier conversion from
544         define_insn_and_split to define_insn.
545         (zero_extendqi<mode>2_dot2): Same.
546         (extendqi<mode>2_dot): Same.
547         (extendqi<mode>2_dot2): Same.
549 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
551         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
552         (probe_stack): New expander.
553         (probe_stack_<mode>): New insn pattern.
555 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
557         * config/i386/i386.md
558         (operations with memory inputs setting flags peephole2):
559         Remove uneeded REG_P checks.  Cleanup pattern generation.
561 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
563         * tree-vect-loop.c (vect_transform_loop): Fix
564         nb_iterations_upper_bound computation for vectorized loop.
566 2016-04-29  Marek Polacek  <polacek@redhat.com>
567             Jakub Jelinek  <jakub@redhat.com>
569         PR sanitizer/70342
570         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
571         TARGET_EXPR_SLOT as a base.
573 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
575         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
576         with 'rCm2' constraints to limit possible immediate size.
577         (*load_zeroextendqisi_update): Likewise.
578         (*load_signextendqisi_update): Likewise.
579         (*loadhi_update): Likewise.
580         (*load_zeroextendhisi_update): Likewise.
581         (*load_signextendhisi_update): Likewise.
582         (*loadsi_update): Likewise.
583         (*loadsf_update): Likewise.
585 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
587         * config/i386/predicates.md (constm1_operand): Fix comparison.
589 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
591         * testsuite/gcc.target/arc/ieee_eq.c: New test.
593 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
595         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
596         remaining SH5 related settings.
597         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
598         shmedia_prepare_call_address): Delete.
599         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
600         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
601         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
602         UNSUPPORTED_SH2A): Remove m5 checks.
603         (sh_divide_strategy_e): Remove SH5 division strategies.
604         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
605         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
607 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
609         * config/s390/s390.c (s390_rtx_costs): Update documentation.
611 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
613         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
614         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
615         Change lder to ldr.
616         * config/s390/vector.md ("mov<mode>"): Likewise.
618 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
620         * config/s390/constraints.md ("U", "W"): Invoke
621         s390_mem_constraint with "ZR" and "ZT".
622         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
623         addresses when using LRA.  Accept also short displacements for S
624         and T constraints.  Do not check for long displacement target for
625         S and T constraints.
626         (s390_mem_constraint): Remove handling of U and W constraints.
627         * config/s390/s390.md (various patterns): Remove the short
628         displacement constraints (Q and R) if a long displacement
629         constraint is present.  Add longdisp as required CPU capability.
630         * config/s390/vector.md: Likewise.
631         * config/s390/vx-builtins.md: Likewise.
633 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
635         PR target/60040
636         * reload1.c (reload): Call finish_spills before
637         restarting reload loop. Skip select_reload_regs
638         if update_eliminables_and_spill returns true.
640 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
642         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
643         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
644         (umulhisi3_imm): Update predicates and constraint letters.
645         (umulhisi3_reg): Declare instruction as commutative.
646         * config/arc/constraints.md (J12, J16): New constraints.
647         * config/arc/predicates.md (short_unsigned_const_operand): New
648         predicate.
649         (arc_short_operand): Likewise.
650         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
652 2016-04-29  Richard Biener  <rguenther@suse.de>
654         PR tree-optimization/13962
655         PR tree-optimization/65686
656         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
657         * tree-ssa-alias.c (ptrs_compare_unequal): New function
658         using PTA to compare pointers.
659         * match.pd: Add pattern for pointer equality compare simplification
660         using ptrs_compare_unequal.
662 2016-04-29  Richard Biener  <rguenther@suse.de>
664         * stor-layout.c (layout_type): Do not build a pointer-to-element
665         type for arrays.
667 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
669         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
670         Use SWI mode iterator.  Use general_reg_operand predicate.
671         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
672         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
673         predicates.
675 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
677         PR middle-end/70843
678         * fold-const.c (operand_equal_p): Don't verify hash value equality
679         if arg0 == arg1.
680         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
681         and OMP_CLAUSE.
683 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
685         PR target/70858
686         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
687         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
688         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
689         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
690         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
692 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
694         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
695         to info.  Don't initialize separate fields to 0.  Clean up
696         formatting a bit.
698 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
700         * config/i386/i386.md (peephole2s for operations with memory inputs):
701         Use SWI mode iterator.
702         (peephole2s for operations with memory outputs): Ditto.
703         Do not check for stack checking probe.
705         (probe_stack): Remove expander.
707 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
708             Andrew Burgess  <andrew.burgess@embecosm.com>
710         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
711         operands as 32-bits.
713 2016-04-28  Jason Merrill  <jason@redhat.com>
715         * gdbinit.in: Skip line-map.h.
717 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
718             Andrew Burgess  <andrew.burgess@embecosm.com>
720         * config/arc/arc.c (arc_conditional_register_usage): Take
721         TARGET_RRQ_CLASS into account.
722         (arc_print_operand): Support printing 'p' and 's' operands.
723         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
724         as 0.
725         (TARGET_RRQ_CLASS): Define.
726         (IS_POWEROF2_OR_0_P): Define.
727         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
728         alternatives.
729         (*tst_movb): New define_insn.
730         (*tst): Avoid recognition if it could prevent '*tst_movb'
731         combination; replace c/CnL with c/Chs alternative.
732         (*tst_bitfield_tst): New define_insn.
733         (*tst_bitfield_asr): New define_insn.
734         (*tst_bitfield): New define_insn.
735         (andsi3_i): Add Rrq variant.
736         (extzv): New define_expand.
737         (insv): New define_expand.
738         (*insv_i): New define_insn.
739         (*movb): New define_insn.
740         (*movb_signed): New define_insn.
741         (*movb_high): New define_insn.
742         (*movb_high_signed): New define_insn.
743         (*movb_high_signed + 1): New define_split pattern.
744         (*mrgb): New define_insn.
745         (*mrgb + 1): New define_peephole2 pattern.
746         (*mrgb + 2): New define_peephole2 pattern.
747         * config/arc/arc.opt (mbitops): New option for nps400, uses
748         TARGET_NPS_BITOPS_DEFAULT.
749         * config/arc/constraints.md (q): Make register class conditional.
750         (Rrq): New register constraint.
751         (Chs): New constraint.
752         (Clo): New constraint.
753         (Chi): New constraint.
754         (Cbf): New constraint.
755         (Cbn): New constraint.
756         (C18): New constraint.
757         (Cbi): New constraint.
759 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
761         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
762         dst->popcount.
763         (bitmap_intersection_of_preds): Ditto.
764         (bitmap_union_of_succs): Ditto.
765         (bitmap_union_of_preds): Ditto.
766         * sbitmap.c (do_popcount): Delete.
767         (BITMAP_DEBUGGING): Delete.
768         (sbitmap_verify_popcount): Delete.
769         (sbitmap_alloc): Don't initialize the popcount field.
770         (sbitmap_alloc_with_popcount): Delete.
771         (sbitmap_resize): Don't resize the popcount array.
772         (sbitmap_vector_alloc): Don't initialize the popcount field.
773         (bitmap_copy): Don't copy the popcount array.
774         (bitmap_clear): Don't clear the popcount array.
775         (bitmap_clear): Delete the popcount array handling.
776         (bitmap_ior_and_compl): Delete the popcount assert.
777         (bitmap_not): Ditto.
778         (bitmap_and_compl): Ditto.
779         (bitmap_and): Delete the popcount array handling.
780         (bitmap_xor): Ditto.
781         (bitmap_ior): Ditto.
782         (bitmap_or_and): Delete the popcount assert.
783         (bitmap_and_or): Ditto.
784         (popcount_table): Delete.
785         (sbitmap_elt_popcount): Delete.
786         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
787         (bitmap_set_bit): Delete the popcount assert.
788         (bitmap_clear_bit): Ditto.
789         (sbitmap_free): Don't free the popcount array.
790         (sbitmap_alloc_with_popcount): Delete declaration.
791         (sbitmap_popcount): Ditto.
793 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
794             Andrew Burgess  <andrew.burgess@embecosm.com>
796         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
797         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
798         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
799         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
800         * config/arc/arc.opt (mcmem): New option.
801         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
802         supply length for r/m alternative.
803         (*extendqisi2_ac): Likewise.
804         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
805         r/Uex alternative.
806         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
807         (movhi_insn): Likewise.
808         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
809         (*zero_extendqihi2_i): Add r/Ucm alternative.
810         (*zero_extendqisi2_ac): Likewise.
811         (*zero_extendhisi2_i): Likewise.
812         * config/arc/constraints.md (Uex): New memory constraint.
813         (Ucm): New define_constraint.
814         * config/arc/predicates.md (long_immediate_loadstore_operand):
815         Return 0 for MEM with cmem_address address.
816         (cmem_address_0): New predicates.
817         (cmem_address_1): Likewise.
818         (cmem_address_2): Likewise.
819         (cmem_address): Likewise.
821 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
823         * config/rs6000/rs6000.c (machine_function): Rename
824         insn_chain_scanned_p to spe_insn_chain_scanned_p.
825         (rs6000_stack_info): Adjust.
827 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
828             Andrew Burgess  <andrew.burgess@embecosm.com>
830         * config/arc/constraints.md (Usd): Convert to define_constraint.
831         (Us<): Likewise.
832         (Us>): Likewise.
834 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
836         PR target/70821
837         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
838         Add new peephole2 where the first insn is *mov<mode>_or instead of
839         *mov<mode>_internal.
841 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
843         * tracer.c (bb_seen): Make static.
845 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
847         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
848         support, setup defaults.
849         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
850         * config/arc/arc.c (arc_init): Add NPS400 support.
851         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
852         (TARGET_ARC700): NPS400 is also an ARC700.
853         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
855 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
857         PR target/70668
858         * config/nds32/nds32.md (casesi): Don't access the operands array
859         out of bounds.
861 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
863         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
864         (or $-1,reg peephole2): Ditto.
865         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
867 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
869         * doc/extend.texi (Common Function Attributes) [optimize]:
870         Discourage use of the optimize attribute.
872 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
874         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
875         special case builtin.
876         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
877         ALTIVEC_BUILTIN_VEC_ADDE.
878         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
879         support for ALTIVEC_BUILTIN_VEC_ADDE.
880         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
881         for __builtin_vec_adde.
883 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
885         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
886         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
888 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
890         PR testsuite/70595
891         * doc/sourcebuild.texi (Effective-Target Keywords, Other
892         attributes): Document cilkplus_runtime.
894 2016-04-28  Martin Jambor  <mjambor@suse.cz>
896         * tree-cfg.c (verify_expr): Verify that local declarations belong to
897         this function.  Call verify_expr on MEM_REFs and bases of other
898         handled_components.
900 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
902         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
903         for WORD_REGISTER_OPERATIONS to runtime check.
905 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
907         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
909 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
911         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
912         big-endian compilation.
913         * config/arc/arc.md (addf3): Likewise.
914         (subdf3): Likewise.
915         (muldf3): Likewise.
917 2016-04-28  Richard Biener  <rguenther@suse.de>
919         PR tree-optimization/70840
920         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
921         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
922         Mark x * pow(x,c) -> pow(x,c+1) commutative.
923         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
925 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
927         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
928         and explain why in a comment.
930 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
932         * config/arc/arc.md (cpu_facility): Add fpx variant.
933         (subdf3): Prohibit use reverse sub when assist operations option
934         is enabled.
935         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
936         instructions only when FPX is enabled.
937         * testsuite/gcc.target/arc/trsub.c: New test.
939 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
941         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
942         mult_operator when calculating "type" attribute.
943         (*fop_<mode>_1_i387): Ditto.
944         (*fop_xf_1_i387): Ditto.
945         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
946         Use std::swap to swap operands.  Use RTL expressions to generate
947         converted pattern.
949 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
950             Joern Rennecke  <joern.rennecke@embecosm.com>
952         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
953         declaration.
954         (emit_pic_move): Remove.
955         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
956         * config/arc/arc.c (emit_pic_move): Removed.
957         (TARGET_HAVE_TLS): Define.
958         (arc_conditional_register_usage): Test for arc_tp_regno.
959         (arc_print_operand, arc_print_operand_address): Handle TLS
960         unspecs.
961         (arc_needs_pcl_p): New function.
962         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
963         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
964         (arc_raw_symbolic_reference_mentioned_p): Likewise.
965         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
966         (arc_legitimize_tls_address): Likewise.
967         (DTPOFF_ZERO_SYM): Define.
968         (arc_legitimize_pic_address): Make it static, handle TLS cases.
969         (arc_output_pic_addr_const): Print TLS unspecs.
970         (prepare_pic_move): New function, replaces emit_pic_move.
971         (arc_legitimate_constant_p): Handle TLS unspecs.
972         (arc_legitimate_address_p): Likewise.
973         (arc_rewrite_small_data_p): Use assert for TLS constants.
974         (prepare_move_operands): Use prepare_pic_move.
975         (arc_legitimize_address): Legitimize tls addresses.
976         (arc_epilogue_uses): Check for arc_tp_regno.
977         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
978         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
979         Define.
980         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
981         Likewise.
982         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
983         %(arc_tls_extra_start_spec).
984         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
985         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
986         (EH_USES): Define.
987         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
988         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
989         (UNSPEC_TLS_OFF): Add.
990         (R10_REG): Define.
991         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
992         (get_thread_pointersi): New patterns.
993         * config/arc/arc.opt (mtp-regno): New option.
994         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
995         (move_dest_operand): Likewise.
996         * configure: Regenerate.
997         * configure.ac: Add arc*-*-* case to test for tls.
998         * doc/invoke.texi (ARC options): Document mtp-regno.
1000 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
1002         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
1003         the new ARC HS SIMD instructions.
1004         (arc_preferred_simd_mode): New function.
1005         (arc_autovectorize_vector_sizes): Likewise.
1006         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1007         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1008         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
1009         (arc_init_builtins): Add new SIMD builtin types.
1010         (arc_split_move): Handle 64 bit vector moves.
1011         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
1012         (TARGET_PLUS_QMACW): Define.
1013         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
1014         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
1015         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
1016         (VSUBADD4H): New builtins.
1017         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
1018         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
1020 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
1021             Matthias Klose  <doko@debian.org>
1023         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
1025 2016-04-28  Richard Biener  <rguenther@suse.de>
1027         PR middle-end/70777
1028         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
1029         canonicalization.
1031 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
1033         * common/config/sh/sh-common.c: Remove SH5 support.
1034         * config/sh/constraints.md: Likewise.
1035         * config/sh/config/sh/elf.h: Likewise.
1036         * config/sh/linux.h: Likewise.
1037         * config/sh/netbsd-elf.h: Likewise.
1038         * config/sh/predicates.md: Likewise.
1039         * config/sh/sh-c.c: Likewise.
1040         * config/sh/sh-protos.h: Likewise.
1041         * config/sh/sh.c: Likewise.
1042         * config/sh/sh.h: Likewise.
1043         * config/sh/sh.md: Likewise.
1044         * config/sh/sh.opt: Likewise.
1045         * config/sh/sync.md: Likewise.
1046         * config/sh/sh64.h: Delete.
1047         * config/sh/shmedia.h: Likewise.
1048         * config/sh/shmedia.md: Likewise.
1049         * config/sh/sshmedia.h: Likewise.
1050         * config/sh/t-netbsd-sh5-64: Likewise.
1051         * config/sh/t-sh64: Likewise.
1052         * config/sh/ushmedia.h: Likewise.
1054 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
1056         * config/i386/i386.md (sign_extend to memory peephole2s): Use
1057         general_reg_operand instead of register_operand predicate.
1059 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1061         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
1063 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
1065         * match.pd (A - B > A, A + B < A): New transformations.
1067 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
1069         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
1070         which defaults to true.  Emit an outer pair of parentheses only if
1071         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
1072         don't emit parentheses for the right-hand operand.
1074 2016-04-27  Jeff Law  <law@redhat.com>
1076         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
1078 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1080         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
1081         (altivec_lvx_<mode>_internal): Document.
1082         (altivec_lvx_<mode>_2op): New define_insn.
1083         (altivec_lvx_<mode>_1op): Likewise.
1084         (altivec_lvx_<mode>_2op_si): Likewise.
1085         (altivec_lvx_<mode>_1op_si): Likewise.
1086         (altivec_stvx_<mode>): Remove.
1087         (altivec_stvx_<mode>_internal): Document.
1088         (altivec_stvx_<mode>_2op): New define_insn.
1089         (altivec_stvx_<mode>_1op): Likewise.
1090         (altivec_stvx_<mode>_2op_si): Likewise.
1091         (altivec_stvx_<mode>_1op_si): Likewise.
1092         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1093         Expand vec_ld and vec_st during parsing.
1094         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
1095         changes.
1096         (altivec_expand_stvx_be): Likewise.
1097         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
1098         address-masking behavior in RTL.
1099         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
1100         address-masking behavior in RTL.
1101         (altivec_expand_builtin): Change builtin code arguments for calls
1102         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
1103         (insn_is_swappable_p): Avoid incorrect swap optimization in the
1104         presence of lvx/stvx patterns.
1105         (alignment_with_canonical_addr): New function.
1106         (alignment_mask): Likewise.
1107         (find_alignment_op): Likewise.
1108         (recombine_lvx_pattern): Likewise.
1109         (recombine_stvx_pattern): Likewise.
1110         (recombine_lvx_stvx_patterns): Likewise.
1111         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
1112         stvx patterns from expand.
1113         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
1114         expansions.
1115         (vector_altivec_store_<mode>): Likewise.
1117 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
1119         * config/aarch64/aarch64.md
1120         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
1121         remove the "fp" attributes.
1122         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
1123         add the "simd" attributes.
1124         (*movdf_aarch64): Likewise.
1125         (*movtf_aarch64): Remove the "fp" attributes.
1126         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
1127         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
1129 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1131         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
1132         rtx to rtx_code_label *.
1133         * rtl.h (maybe_set_first_label_num): Likewise.
1135 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1137         * df-core.c (df_add_problem): Make the problem param be const.
1138         (df_remove_problem): Make local "problem" be const.
1139         * df-problems.c (problem_RD): Make const.
1140         (problem_LR): Likewise.
1141         (problem_LIVE): Likewise.
1142         (problem_MIR): Likewise.
1143         (problem_CHAIN): Likewise.
1144         (problem_WORD_LR): Likewise.
1145         (problem_NOTE): Likewise.
1146         (problem_MD): Likewise.
1147         * df-scan.c (problem_SCAN): Likewise.
1148         * df.h (struct df_problem): Make field "dependent_problem" be
1149         const.
1150         (struct dataflow): Likewise for field "problem".
1151         (df_add_problem): Make param const.
1153 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
1155         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
1156         inter-unit moves to/from vector registers are enabled.  Do not disable
1157         for TARGET_MMX.
1159 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1161         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
1162         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
1163         #define to...
1164         (enum df_problem_id): ...this new enum.
1165         (struct df_problem): Convert field "id" from "int" to
1166         enum df_problem_id.
1168 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1170         * rtl.def: Update comment for "things in the instruction chain" to
1171         reflect the removal of the leading "i" field for INSN_UID in
1172         r210360.  Fix bogus apostrophe.
1174 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
1176         * config/i386/i386.md
1177         (lea arith with mem operand + setcc peephole2): Set operator mode.
1179 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1181         PR target/70155
1182         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
1183         (dimode_scalar_to_vector_candidate_p): This.
1184         (timode_scalar_to_vector_candidate_p): New function.
1185         (scalar_to_vector_candidate_p): Likewise.
1186         (timode_check_non_convertible_regs): Likewise.
1187         (timode_remove_non_convertible_regs): Likewise.
1188         (remove_non_convertible_regs): Likewise.
1189         (remove_non_convertible_regs): Renamed to ...
1190         (dimode_remove_non_convertible_regs): This.
1191         (scalar_chain::~scalar_chain): Make it virtual.
1192         (scalar_chain::compute_convert_gain): Make it pure virtual.
1193         (scalar_chain::mark_dual_mode_def): Likewise.
1194         (scalar_chain::convert_insn): Likewise.
1195         (scalar_chain::convert_registers): Likewise.
1196         (scalar_chain::add_to_queue): Make it protected.
1197         (scalar_chain::emit_conversion_insns): Likewise.
1198         (scalar_chain::replace_with_subreg): Likewise.
1199         (scalar_chain::replace_with_subreg_in_insn): Likewise.
1200         (scalar_chain::convert_op): Likewise.
1201         (scalar_chain::convert_reg): Likewise.
1202         (scalar_chain::make_vector_copies): Likewise.
1203         (scalar_chain::convert_registers): New pure virtual function.
1204         (class dimode_scalar_chain): New class.
1205         (class timode_scalar_chain): Likewise.
1206         (scalar_chain::mark_dual_mode_def): Renamed to ...
1207         (dimode_scalar_chain::mark_dual_mode_def): This.
1208         (timode_scalar_chain::mark_dual_mode_def): New function.
1209         (timode_scalar_chain::convert_insn): Likewise.
1210         (dimode_scalar_chain::convert_registers): Likewise.
1211         (scalar_chain::compute_convert_gain): Renamed to ...
1212         (dimode_scalar_chain::compute_convert_gain): This.
1213         (scalar_chain::replace_with_subreg): Renamed to ...
1214         (dimode_scalar_chain::replace_with_subreg): This.
1215         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1216         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1217         (scalar_chain::make_vector_copies): Renamed to ...
1218         (dimode_scalar_chain::make_vector_copies): This.
1219         (scalar_chain::convert_reg): Renamed to ...
1220         (dimode_scalar_chain::convert_reg ): This.
1221         (scalar_chain::convert_op): Renamed to ...
1222         (dimode_scalar_chain::convert_op): This.
1223         (scalar_chain::convert_insn): Renamed to ...
1224         (dimode_scalar_chain::convert_insn): This.
1225         (scalar_chain::convert): Call convert_registers.
1226         (convert_scalars_to_vector): Change to scalar_chain pointer to
1227         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1228         in 32-bit mode.  Delete scalar_chain pointer.  Call
1229         free_dominance_info in 64-bit mode.
1230         (pass_stv::gate): Remove TARGET_64BIT check.
1231         (ix86_option_override): Put the 64-bit STV pass before the CSE
1232         pass.
1234 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
1236         * dwarf2out.h (struct dw_loc_descr_node): Remove the
1237         dw_loc_frame_offset field.
1238         * dwarf2out.c (new_loc_descr): Likewise.
1239         (resolve_args_picking_1): Turn the VISITED hash set into a
1240         FRAME_OFFSET hash map. Use it to associate a frame offset to
1241         visited nodes. Remove uses of the CHECKING_P macro.
1242         (resolve_args_picking): Update call to resolve_args_picking_1.
1244 2016-04-27  Martin Liska  <mliska@suse.cz>
1246         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1247         (free_loop_data): Release vuses of groups.
1249 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
1251         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1252         instead of redundant use_id and boolean have_use_for.
1253         (struct iv_use): Change sub_id into group_id.  Remove field next.
1254         Move fields: related_cands, n_map_members, cost_map and selected
1255         to ...
1256         (struct iv_group): ... here.  New structure.
1257         (struct iv_common_cand): Use structure declaration directly.
1258         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1259         (MAX_CONSIDERED_USES): Rename macro to ...
1260         (MAX_CONSIDERED_GROUPS): ... here.
1261         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1262         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1263         (dump_uses): Rename to ...
1264         (dump_groups): ... here.  Update all uses.
1265         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1266         (find_induction_variables): Refactor format of dump information.
1267         (record_sub_use): Delete.
1268         (record_use): Update all uses.
1269         (record_group): New function.
1270         (record_group_use, find_interesting_uses_op): Call above functions.
1271         Update all uses.
1272         (find_interesting_uses_cond): Ditto.
1273         (group_compare_offset): New function.
1274         (split_all_small_groups): Rename to ...
1275         (split_small_address_groups_p): ... here.  Update all uses.
1276         (split_address_groups):  Update all uses.
1277         (find_interesting_uses): Refactor format of dump information.
1278         (add_candidate_1): Update all uses.  Remove redundant check on iv,
1279         base and step.
1280         (add_candidate, record_common_cand): Remove redundant assert.
1281         (add_iv_candidate_for_biv): Update use.
1282         (add_iv_candidate_derived_from_uses): Update all uses.
1283         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1284         (alloc_use_cost_map): Ditto.
1285         (set_use_iv_cost, get_use_iv_cost): Rename to ...
1286         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
1287         (determine_use_iv_cost_generic): Ditto.
1288         (determine_group_iv_cost_generic): Ditto.
1289         (determine_use_iv_cost_address): Ditto.
1290         (determine_group_iv_cost_address): Ditto.
1291         (determine_use_iv_cost_condition): Ditto.
1292         (determine_group_iv_cost_cond): Ditto.
1293         (determine_use_iv_cost): Ditto.
1294         (determine_group_iv_cost): Ditto.
1295         (set_autoinc_for_original_candidates): Update all uses.
1296         (find_iv_candidates): Update all uses.  Refactor dump information.
1297         (determine_use_iv_costs): Ditto.
1298         (determine_iv_costs): Ditto.
1299         (iv_ca_cand_for_use): Rename to ...
1300         (iv_ca_cand_for_group): ... here.  Update all uses.
1301         (iv_ca_add_use, iv_ca_add_group): Ditto.
1302         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1303         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1304         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1305         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1306         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1307         (create_new_iv, adjust_iv_update_pos): Ditto.
1308         (rewrite_use_address): Delete.
1309         (rewrite_use_address_1): Rename to ...
1310         (rewrite_use_address): ... here.
1311         (rewrite_use_compare): Update all uses.
1312         (rewrite_use): Delete.
1313         (rewrite_uses): Rename to ...
1314         (rewrite_groups): ... here.  Update all uses.
1315         (remove_unused_ivs, free_loop_data): Update all uses.
1316         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1318 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1320         * rtlanal.c (nonzero_bits1): Convert preprocessor check
1321         for WORD_REGISTER_OPERATIONS to runtime check.
1323 2016-04-27  Richard Biener  <rguenther@suse.de>
1325         PR ipa/70760
1326         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1327         aggregate_value_p to determine if a function result is
1328         returned by reference.
1329         (ipa_pta_execute): Functions having their address taken are
1330         not automatically nonlocal.
1332 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
1334         PR sanitizer/70683
1335         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1336         * fold-const.c (operand_equal_p): If flag_checking and
1337         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1338         and if it returns non-zero, assert iterative_hash_expr on both
1339         args is the same.
1341 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1343         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1345 2016-04-27  Nick Clifton  <nickc@redhat.com>
1347         PR middle-end/49889
1348         * varasm.c (merge_weak): Generate an error if an attempt is made
1349         to convert a non-weak static function into a weak, public function.
1351 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1353         * params.def (MAX_PARTITION_SIZE): New param.
1354         * doc/invoke.texi: Document lto-max-partition.
1356 2016-04-27  Richard Biener  <rguenther@suse.de>
1358         PR ipa/70785
1359         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1360         function cummulating used_from_other_partition, externally_visible
1361         and force_output from aliases.
1362         (refered_from_nonlocal_var): Likewise.
1363         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1364         node flags properly.
1366 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1368         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1369         (-Wmemset-elt-size): New item.
1371 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
1373         PR ada/70759
1374         * stor-layout.h (internal_reference_types): Delete.
1375         * stor-layout.c (reference_types_internal): Likewise.
1376         (internal_reference_types): Likewise.
1377         (layout_type) <REFERENCE_TYPE>: Adjust.
1379 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
1381         PR sanitizer/70683
1382         * tree.h (inchash::add_expr): Add FLAGS argument.
1383         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
1384         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
1385         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1386         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
1387         if swap_tree_comparison (code) is smaller than code, hash that
1388         and arguments in the other order.  Hash CONVERT_EXPR the same
1389         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1390         of ADDR_EXPR of decl as the decl itself.  Add or remove
1391         OEP_ADDRESS_OF from recursive flags as needed.  For
1392         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1393         operands commutatively and only the third one normally.
1394         For internal CALL_EXPR hash in CALL_EXPR_IFN.
1396 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1398         * config/rtems.h (LIB_SPEC): Add -latomic.
1400 2016-04-27  Joel Sherrill  <joel@rtems.org>
1402         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1403         xilink.ld and flags not relevant to RTEMS.
1405 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
1407         * toplev.c (backend_init_target): Avoid calling init_reload when using
1408         LRA.
1410 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
1412         * reorg.c (try_merge_delay_insns): Declare i and j inside the
1413         for loops rather than one for the whole function.
1415 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
1417         * match.pd (X + CST CMP X): New transformation.
1419 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
1421         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1422         * fold-const.c (fold_binary_loc): Remove 2 transformations
1423         superseded by match.pd.
1424         * match.pd (x+x -> x*2): Generalize to integers.
1426 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
1428         * config/i386/i386.md (operation on memory peephole): Duplicate an
1429         existing peephole and adapt it to match lea rather than an operation
1430         that clobbers CC.
1432         PR rtl-optimization/57193
1433         * opts.c (default_options_table): Add OPT_frename_registers at -O2
1434         and above.
1435         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1437 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
1439         * tree-if-conv.c (any_pred_load_store): New static variable.
1440         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
1441         any_pred_load_store instead of and_mask_load_store.
1442         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1443         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1444         (combine_blocks, tree_if_conversion): Ditto.
1446 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
1448         PR tree-optimization/70771
1449         PR tree-optimization/70775
1450         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1451         virtual PHI nodes.  Delete parameter.
1452         (if_convertible_loop_p_1): Delete argument to above function.
1453         (predicate_all_scalar_phis): Delete code handling single-argument
1454         PHIs.
1455         (tree_if_conversion): Mark and update virtual SSA.
1457 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1459         PR target/61821
1460         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1461         (x86_elf_aligned_common): Rename to ...
1462         (x86_elf_aligned_decl_common): ... this.
1463         Add decl arg.  Switch to .lbss for largecomm object.  Use
1464         LARGECOMM_SECTION_ASM_OP.
1465         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1466         renaming.
1467         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1468         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1469         Pass new decl arg.
1470         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1471         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1473 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1475         PR target/59407
1476         * config/i386/i386.c (SECTION_LARGE): Define.
1477         (x86_64_elf_select_section): Set it for large data/bss sections.
1478         Only clear SECTION_WRITE for .lrodata.
1479         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1480         data/bss sections.
1481         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1482         * varasm.c (default_elf_asm_named_section): Grow flagchars.
1483         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1484         SECTION_MACH_DEP.
1485         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1486         * doc/tm.texi: Regenerate.
1488 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
1490         PR bootstrap/70704
1491         * configure.ac (--enable-checking): Document extra flag, for
1492         non-release builds default to --enable-checking=yes,extra.
1493         If misc checking and extra checking, define CHECKING_P to 2 instead
1494         of 1.
1495         * common.opt (fchecking=): Add.
1496         * doc/invoke.texi (-fchecking=): Document.
1497         * doc/install.texi: Document --enable-checking changes.
1498         * configure: Regenerated.
1499         * config.in: Regenerated.
1501 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1503         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1504         attribute instead of which_alternative.
1505         * config/i386/sse.md (*mov<mode>_internal): Ditto.
1506         Use EXT_REX_SSE_REG_P where appropriate.
1508 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1510         * config/i386/predicates.md (const0_operand): Do not match
1511         const_wide_int code.
1512         (const1_operand): Ditto.
1514 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1516         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1517         for SSE constm1 operands and TARGET_AVX512VL.
1518         (*movti_internal): Ditto.
1519         (*mov<mode>_or): Use constm1_operand predicate.
1520         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1521         for SSE vector_all_ones operands and TARGET_AVX512VL.
1522         * config/i386/predicates.md (constm1_operand): New predicate.
1523         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1524         emission of constant -1 load.
1526 2016-04-25  Jason Merrill  <jason@redhat.com>
1528         * gdbinit.in: Skip is-a.h.
1530         * attribs.c (register_scoped_attributes): Fix logic.
1531         * attribs.h: Declare register_scoped_attributes.
1533 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1535         * config/rs6000/rs6000-builtin.def: Correct pasto error for
1536         stxvd2x and stxvw4x built-in functions.
1538 2016-04-25  DJ Delorie  <dj@redhat.com>
1540         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1541         (ashrhi3): Likewise.
1542         (lshrhi3): Likewise.
1544 2016-04-25  Richard Biener  <rguenther@suse.de>
1546         PR tree-optimization/70780
1547         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1548         wasn't visited yet.
1549         (compute_antic): Mark blocks with abnormal preds as visited as
1550         they have a final empty antic-in solution already.
1552 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1554         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1556 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1558         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1559         mode is VQI to improve mixed mode vectorization.
1560         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1561         define_insn to match low half of signed vaddw.
1562         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1563         define_insn to match high half of signed vaddw.
1564         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1565         define_insn to match low half of unsigned vaddw.
1566         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1567         define_insn to match high half of unsigned vaddw.
1568         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1569         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1570         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1571         for new function.
1572         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1573         * config/arm/predicates.md (vect_par_constant_high): Support
1574         big endian and simplify by calling
1575         arm_simd_check_vect_par_cnst_half
1576         (vect_par_constant_low): Likewise.
1578 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1580         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1581         predicate for operand 2.
1583 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
1584             H.J. Lu  <hongjiu.lu@intel.com>
1586         * config/i386/i386-protos.h (standard_sse_constant_p): Add
1587         machine_mode argument.
1588         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1589         constm1_rtx operands.  For VOIDmode constants, get mode from
1590         pred_mode.  Check mode size if the mode is supported by ABI.
1591         (standard_sse_constant_opcode): Do not use standard_constant_p.
1592         Strictly check ABI support for all-ones operands.
1593         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1594         immediates. Update calls to standard_sse_constant_p.
1595         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1596         (ix86_rtx_costs): Ditto.
1597         * config/i386/i386.md (*movxi_internal_avx512f): Use
1598         nonimmediate_or_sse_const_operand instead of vector_move_operand.
1599         Use (v,BC) alternative instead of (v,C). Use register_operand
1600         checks instead of MEM_P.
1601         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1602         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
1603         isa attribute.  Use register_operand checks instead of MEM_P.
1604         (*movti_internal): Use nonimmediate_or_sse_const_operand for
1605         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
1606         alternative and corresponding sse2 isa attribute.
1607         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1608         to standard_sse_constant_p.
1609         (FP constant splitters): Ditto.
1610         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1611         (C): Ditto.
1612         * config/i386/predicates.md (constm1_operand): Remove.
1613         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1614         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1615         vector_all_ones_operand instead of constm1_operand.
1617 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1619         * print-rtl.c (print_rtx_insn_vec): New function.
1620         * print-rtl.h: New prototype.
1621         * store-motion.c (struct st_expr): Make avail_stores a vector.
1622         (st_expr_entry): Adjust.
1623         (free_st_expr_entry): Likewise.
1624         (print_store_motion_mems): Likewise.
1625         (find_moveable_store): Likewise.
1626         (compute_store_table): Likewise.
1627         (delete_store): Likewise.
1628         (build_store_vectors): Likewise.
1630 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1632         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1634 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1636         * vec.h (vec_safe_contains): New function.
1637         (vec::contains): Likewise.
1638         (vec::begin): Likewise.
1639         (vec::end): Likewise.
1641 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
1643         PR sanitizer/70712
1644         * cfgexpand.c (expand_stack_vars): Fix typo.
1646 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1648         * system.h (list, map, set, vector): Include conditionally.
1649         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1650         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1651         * ipa-icf.c (INCLUDE_LIST): Define.
1652         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1653         * config/sh/sh.c (INCLUDE_VECTOR): Define.
1654         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1655         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1656         * cp/logic.cc (INCLUDE_LIST): Define.
1657         * fortran/trans-common.c (INCLUDE_MAP): Define.
1659 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1661         * auto-profile.c: Remove <string.h> include.
1662         * ipa-icf-gimple.c: Remove <list> include.
1663         * diagnostic.c: Remove <new> include.
1664         * genmatch.c: Likewise.
1665         * pretty-print.c: Likewise.
1666         * toplev.c: Likewise
1667         * c/c-objc-common.c: Likewise.
1668         * cp/error.c: Likewise.
1669         * fortran/error.c: Likewise.
1671 2016-04-22  Richard Biener  <rguenther@suse.de>
1673         * lto-streamer-in.c (input_ssa_names): Do not allocate
1674         GIMPLE_NOP for all SSA names.
1675         * lto-streamer-out.c (output_ssa_names): Do not output
1676         SSA names that should have been released.
1678 2016-04-22  Richard Biener  <rguenther@suse.de>
1680         PR tree-optimization/70740
1681         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1682         VDEF.
1684 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
1686         PR target/70750
1687         * config/i386/predicates.md (call_insn_operand): Replace
1688         sibcall_memory_operand with memory_operand.
1690 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
1692         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1693         has_single_use() tests.
1694         (register_edge_assert_for_1): Likewise.
1695         (find_assert_locations_1): Check the liveness bitmap instead of
1696         checking has_single_use().
1698 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1700         PR target/70728
1701         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1702         Extract AVX-512BW constraint from AVX.
1704 2016-04-21  Richard Biener  <rguenther@suse.de>
1706         PR tree-optimization/70725
1707         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1708         for phi_convertible_by_degenerating_args.
1709         (predicate_all_scalar_phis): Handle single-argument PHIs.
1711 2016-04-21  Richard Biener  <rguenther@suse.de>
1713         PR middle-end/70747
1714         * fold-const.c (fold_comparison): Return properly typed
1715         constant boolean.
1717 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
1719         PR tree-optimization/70715
1720         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1721         after expanding BASE using expand_simple_operations.
1723 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1725         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1726         New transformations.
1728 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1730         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
1732 2016-04-20  Jan Hubicka  <jh@suse.cz>
1734         * ipa-inline.c (can_inline_edge_p): Pass caller info to
1735         ultiimate_alias_target.
1736         (update_callee_keys): Likewise.
1737         (lookup_recursive_calls): Likewise.
1738         (speculation_useful_p): Likewise.
1740 2016-04-20  Jan Hubicka  <jh@suse.cz>
1742         PR ipa/70018
1743         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
1744         (set_nothrow_flag_1): ... this; handle interposition correctly;
1745         recurse on aliases and thunks.
1746         (cgraph_node::set_nothrow_flag): New.
1747         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
1748         functions compiled with non-call exceptions that binds to current
1749         def.
1750         (propagate_nothrow): Be safe WRT interposition.
1751         * cgraph.h (set_nothrow_flag): Update prototype.
1753 2016-04-18  Jan Hubicka  <jh@suse.cz>
1755         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
1756         max_loop_iterations_int.
1757         (tree_unswitch_outer_loop): Likewise.
1759 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1761         PR tree-optimization/69489
1762         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
1763         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
1764         Revise dump message.
1765         (if_convertible_bb_p): Remove check on edge count of basic block's
1766         predecessors.
1768 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1770         PR tree-optimization/56625
1771         PR tree-optimization/69489
1772         * tree-data-ref.h (DR_INNERMOST): New macro.
1773         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
1774         hashing struct innermost_loop_behavior.
1775         (ref_DR_map): Remove.
1776         (innermost_DR_map): New map.
1777         (baseref_DR_map): Revise comment.
1778         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
1779         to innermost_DR_map accroding to its innermost loop behavior.
1780         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
1781         to its innermost loop behavior.
1782         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
1783         Add initialization for innermost_DR_map.  Record memory reference
1784         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
1785         have innermost loop behavior.
1786         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
1787         innermost_DR_map.
1789 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
1791         * config/i386/i386.md (*lea<mode>_general_1): Rename from
1792         *lea_general_1.  Use explicit SWI12 mode interator.
1793         (*lea<mode>_general_2): Rename from *lea_general_2.
1794         Use explicit SWI12 mode interator.
1795         (*lea<mode>_general_3): Rename from *lea_general_3.
1796         Use explicit SWI12 mode interator.
1797         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
1798         Use explicit SWI12 mode interator.
1799         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
1800         Use explicit SWI48 mode interator.
1802 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1804         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
1805         Short-cut unaligned load and store cases.  Handle all integer
1806         vector modes.
1807         (ix86_expand_vector_move_misalign): Short-cut unaligned load
1808         and store cases.  Call ix86_avx256_split_vector_move_misalign
1809         directly without checking mode class.
1811 2016-04-20  Andrew Pinski  <apinski@cavium.com>
1812             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1814         PR target/64971
1815         * config/aarch64/aarch64.md (sibcall): Force call
1816         address to be DImode for ILP32.
1817         (sibcall_value): Likewise.
1819 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
1821         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
1823 2016-04-20  Richard Biener  <rguenther@suse.de>
1825         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
1826         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
1827         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
1828         (maybe_push_res_to_seq): Adjust.
1829         * gimple-fold.c (maybe_build_generic_op): Likewise.
1831 2016-04-20  Marek Polacek  <polacek@redhat.com>
1833         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
1834         rather than true.
1836 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
1838         * config/i386/sse.md (vec_unpacks_lo_hi): Always
1839         use kmovw to support AVX512F target.
1841 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
1843         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
1845 2016-04-20  Marek Polacek  <polacek@redhat.com>
1847         PR tree-optimization/70725
1848         * tree-if-conv.c (is_false_predicate): New function.
1849         (predicate_mem_writes): Use it.
1851 2016-04-20  Richard Biener  <rguenther@suse.de>
1853         PR tree-optimization/70726
1854         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
1855         shift amounts from a pattern stmt operand.
1857 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1859         PR target/70674
1860         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
1861         stack_restore_from_fpr pattern when restoring r15.
1862         (s390_optimize_prologue): Strip away the memory barrier in the
1863         parallel when trying to get rid of restore insns.
1864         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
1865         definition for loading the stack pointer from an FPR.  Compared to
1866         the normal move insn this pattern includes a full memory barrier.
1868 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
1870         PR middle-end/70680
1871         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
1872         implicitly linear or lastprivate iterator on the outer context.
1874 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1876         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
1877         alignment check.
1878         * config/i386/i386.md (ssememalign): Removed.
1879         * config/i386/sse.md: Remove ssememalign attribute from patterns.
1881 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
1883         PR target/69201
1884         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
1885         const short * to __builtin_ia32_loaddquhi512_mask.
1886         (_mm512_maskz_loadu_epi16): Likewise.
1887         (_mm512_mask_storeu_epi16): Pass short * to
1888         __builtin_ia32_storedquhi512_mask.
1889         (_mm512_mask_loadu_epi8): Pass const char * to
1890         __builtin_ia32_loaddquqi512_mask.
1891         (_mm512_maskz_loadu_epi8): Likewise.
1892         (_mm512_mask_storeu_epi8): Pass char * to
1893         __builtin_ia32_storedquqi512_mask.
1894         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
1895         const double * to __builtin_ia32_loadupd512_mask.
1896         (_mm512_mask_loadu_pd): Likewise.
1897         (_mm512_maskz_loadu_pd): Likewise.
1898         (_mm512_storeu_pd): Pass double * to
1899         __builtin_ia32_storeupd512_mask.
1900         (_mm512_mask_storeu_pd): Likewise.
1901         (_mm512_loadu_ps): Pass const float * to
1902         __builtin_ia32_loadups512_mask.
1903         (_mm512_mask_loadu_ps): Likewise.
1904         (_mm512_maskz_loadu_ps): Likewise.
1905         (_mm512_storeu_ps): Pass float * to
1906         __builtin_ia32_storeups512_mask.
1907         (_mm512_mask_storeu_ps): Likewise.
1908         (_mm512_mask_loadu_epi64): Pass const long long * to
1909         __builtin_ia32_loaddqudi512_mask.
1910         (_mm512_maskz_loadu_epi64): Likewise.
1911         (_mm512_mask_storeu_epi64): Pass long long *
1912         to __builtin_ia32_storedqudi512_mask.
1913         (_mm512_loadu_si512): Pass const int * to
1914         __builtin_ia32_loaddqusi512_mask.
1915         (_mm512_mask_loadu_epi32): Likewise.
1916         (_mm512_maskz_loadu_epi32): Likewise.
1917         (_mm512_storeu_si512): Pass int * to
1918         __builtin_ia32_storedqusi512_mask.
1919         (_mm512_mask_storeu_epi32): Likewise.
1920         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
1921         char * to __builtin_ia32_storedquqi256_mask.
1922         (_mm_mask_storeu_epi8): Likewise.
1923         (_mm256_mask_loadu_epi16): Pass const short * to
1924         __builtin_ia32_loaddquhi256_mask.
1925         (_mm256_maskz_loadu_epi16): Likewise.
1926         (_mm_mask_loadu_epi16): Pass const short * to
1927         __builtin_ia32_loaddquhi128_mask.
1928         (_mm_maskz_loadu_epi16): Likewise.
1929         (_mm256_mask_loadu_epi8): Pass const char * to
1930         __builtin_ia32_loaddquqi256_mask.
1931         (_mm256_maskz_loadu_epi8): Likewise.
1932         (_mm_mask_loadu_epi8): Pass const char * to
1933         __builtin_ia32_loaddquqi128_mask.
1934         (_mm_maskz_loadu_epi8): Likewise.
1935         (_mm256_mask_storeu_epi16): Pass short * to.
1936         __builtin_ia32_storedquhi256_mask.
1937         (_mm_mask_storeu_epi16): Pass short * to.
1938         __builtin_ia32_storedquhi128_mask.
1939         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
1940         const double * to __builtin_ia32_loadupd256_mask.
1941         (_mm256_maskz_loadu_pd): Likewise.
1942         (_mm_mask_loadu_pd): Pass onst double * to
1943         __builtin_ia32_loadupd128_mask.
1944         (_mm_maskz_loadu_pd): Likewise.
1945         (_mm256_mask_storeu_pd): Pass double * to
1946         __builtin_ia32_storeupd256_mask.
1947         (_mm_mask_storeu_pd): Pass double * to
1948         __builtin_ia32_storeupd128_mask.
1949         (_mm256_mask_loadu_ps): Pass const float * to
1950         __builtin_ia32_loadups256_mask.
1951         (_mm256_maskz_loadu_ps): Likewise.
1952         (_mm_mask_loadu_ps): Pass const float * to
1953         __builtin_ia32_loadups128_mask.
1954         (_mm_maskz_loadu_ps): Likewise.
1955         (_mm256_mask_storeu_ps): Pass float * to
1956         __builtin_ia32_storeups256_mask.
1957         (_mm_mask_storeu_ps): ass float * to
1958         __builtin_ia32_storeups128_mask.
1959         (_mm256_mask_loadu_epi64): Pass const long long * to
1960         __builtin_ia32_loaddqudi256_mask.
1961         (_mm256_maskz_loadu_epi64): Likewise.
1962         (_mm_mask_loadu_epi64): Pass const long long * to
1963         __builtin_ia32_loaddqudi128_mask.
1964         (_mm_maskz_loadu_epi64): Likewise.
1965         (_mm256_mask_storeu_epi64): Pass long long * to
1966         __builtin_ia32_storedqudi256_mask.
1967         (_mm_mask_storeu_epi64): Pass long long * to
1968         __builtin_ia32_storedqudi128_mask.
1969         (_mm256_mask_loadu_epi32): Pass const int * to
1970         __builtin_ia32_loaddqusi256_mask.
1971         (_mm256_maskz_loadu_epi32): Likewise.
1972         (_mm_mask_loadu_epi32): Pass const int * to
1973         __builtin_ia32_loaddqusi128_mask.
1974         (_mm_maskz_loadu_epi32): Likewise.
1975         (_mm256_mask_storeu_epi32): Pass int * to
1976         __builtin_ia32_storedqusi256_mask.
1977         (_mm_mask_storeu_epi32): Pass int * to
1978         __builtin_ia32_storedqusi128_mask.
1979         * config/i386/i386-builtin-types.def (PCSHORT): New.
1980         (PINT64): Likewise.
1981         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
1982         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
1983         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
1984         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
1985         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
1986         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
1987         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
1988         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
1989         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
1990         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
1991         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
1992         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
1993         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
1994         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
1995         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
1996         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
1997         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
1998         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
1999         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
2000         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
2001         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
2002         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
2003         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
2004         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
2005         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
2006         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
2007         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
2008         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
2009         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
2010         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
2011         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
2012         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
2013         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
2014         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
2015         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
2016         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
2017         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
2018         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
2019         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
2020         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
2021         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
2022         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
2023         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
2024         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
2025         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
2026         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
2027         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
2028         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
2029         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
2030         use UNSPEC_STOREU.
2031         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
2032         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
2033         load nor store.
2034         (ix86_expand_vector_move_misalign): Likewise.
2035         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
2036         to scalar function prototype for unaligned load/store builtins.
2037         (ix86_expand_special_args_builtin): Updated.
2038         * config/i386/sse.md (UNSPEC_LOADU): Removed.
2039         (UNSPEC_STOREU): Likewise.
2040         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
2041         (VI_ULOADSTORE_F_AVX512VL): Likewise.
2042         (ssescalarsize): Handle V4TI, V2TI and V1TI.
2043         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2044         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2045         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
2046         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
2047         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
2048         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
2049         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
2050         (<avx512>_storedqu<mode>_mask): Likewise.
2051         (*sse4_2_pcmpestr_unaligned): Likewise.
2052         (*sse4_2_pcmpistr_unaligned): Likewise.
2053         (*mov<mode>_internal): Renamed to ...
2054         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
2055         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
2056         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
2057         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
2059 2016-04-19  Richard Biener  <rguenther@suse.de>
2061         PR tree-optimization/70171
2062         * tree-ssa-phiprop.c: Include stor-layout.h.
2063         (phiprop_insert_phi): Handle the aggregate copy case.
2064         (propagate_with_phi): Likewise.
2066 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
2068         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
2069         instead of simplify_gen_subreg (... , 0).
2070         (ix86_delegitimize_address): Ditto.
2071         (ix86_split_divmod): Ditto.
2072         (ix86_split_copysign_const): Ditto.
2073         (ix86_split_copysign_var): Ditto.
2074         (ix86_expand_args_builtin): Ditto.
2075         (ix86_expand_round_builtin): Ditto.
2076         (ix86_expand_special_args_builtin): Ditto.
2077         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
2078         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
2079         (udivmodqi4): Ditto.
2080         (absneg splitters): Ditto.
2081         (*jcc_bt<mode>_1): Ditto.
2083 2016-04-19  Richard Biener  <rguenther@suse.de>
2085         PR tree-optimization/70724
2086         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
2087         restoring out from ...
2088         (free_scc_vn): ... here.
2089         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
2090         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
2091         tail merging.
2092         (pass_fre::execute): Restore SSA info.
2094 2016-04-19  Richard Biener  <rguenther@suse.de>
2096         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
2097         * gimple-walk.c (walk_gimple_op): Initialize it.
2098         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
2099         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
2100         remapping SSA names of defs.
2101         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
2102         adjustment.
2104 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
2106         PR middle-end/70689
2107         * lra-constraints.c (equiv_substition_p): New.
2108         (process_alt_operands): Use it.
2109         (swap_operands): Swap it.
2110         (curr_insn_transform): Update it.
2112 2016-04-18  Michael Matz  <matz@suse.de>
2114         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
2115         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
2116         * tree-core.h (tree_type_common.align): Use bit-field.
2117         (tree_type_common.spare): New.
2118         (tree_decl_common.off_align): Make smaller.
2119         (tree_decl_common.align): Use bit-field.
2121         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
2122         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
2123         (scan_sharing_clauses): Ditto.
2124         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2125         (omp_finish_file): Ditto.
2126         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
2127         (layout_decl): Ditto.
2128         (relayout_decl): Ditto.
2129         (finalize_record_size): Use SET_TYPE_ALIGN.
2130         (finalize_type_size): Ditto.
2131         (finish_builtin_struct): Ditto.
2132         (layout_type): Ditto.
2133         (initialize_sizetypes): Ditto.
2134         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
2135         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
2136         (lookup_field_for_decl): Use SET_DECL_ALIGN.
2137         (get_chain_field): Ditto.
2138         (get_trampoline_type): Ditto.
2139         (get_nl_goto_field): Ditto.
2140         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2141         SET_DECL_ALIGN.
2142         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
2143         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
2144         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2145         (build_qualified_type): Use SET_TYPE_ALIGN.
2146         (build_aligned_type, build_range_type_1): Ditto.
2147         (build_atomic_base): Ditto.
2148         (build_common_tree_nodes): Ditto.
2149         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
2150         (expand_one_stack_var_at): Ditto.
2151         * coverage.c (build_var): Use SET_DECL_ALIGN.
2152         * except.c (init_eh): Ditto.
2153         * function.c (assign_parm_setup_block): Ditto.
2154         * symtab.c (increase_alignment_1): Ditto.
2155         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
2156         * tree-vect-stmts.c (ensure_base_align): Ditto.
2157         * varasm.c (align_variable): Ditto.
2158         (assemble_variable): Ditto.
2159         (build_constant_desc): Ditto.
2160         (output_constant_def_contents): Ditto.
2162         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
2163         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
2164         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
2165         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
2166         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
2168 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
2170         PR target/70708
2171         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
2172         replace %vmovsd with "%vmovq".
2173         (vec_concatv2df): Likewise.
2175 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
2177         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
2178         (*vec_extractv2si_0): Ditto.
2179         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
2180         (zero_extended_scalar_load_operand splitters): Ditto.
2181         (vec_extract splitters): Ditto.
2182         (*vec_extractv4si_0_zext): Ditto.
2183         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
2184         and lowpart_subreg.
2185         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
2186         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
2187         (*sse4_1_extractps): Use lowpart_subreg.
2189 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2191         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2192         gld requirements.
2193         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2194         Mention Solaris 11 packaging changes.
2195         Update gas and gld requirements.
2196         Remove reference to pre-Solaris 10 bug.
2197         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2198         systems and bugs.
2199         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2200         with cc.
2202 2016-04-17  Jan Hubicka  <jh@suse.cz>
2204         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2205         max_loop_iterations_int.
2207 2016-04-18  Richard Biener  <rguenther@suse.de>
2209         PR tree-optimization/43434
2210         * tree-ssa-structalias.c (struct vls_data): New.
2211         (visit_loadstore): Handle all pointer-based accesses.
2212         (compute_dependence_clique): Compute a bitmap of restrict tags
2213         assigned bases and pass it to visit_loadstore.
2215 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
2217         PR target/70711
2218         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2219         armv8.1-a and armv8.1-a+crc.
2221 2016-04-18  Richard Biener  <rguenther@suse.de>
2223         PR tree-optimization/70701
2224         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2225         references after translating through a memcpy.
2227 2016-04-18  Richard Biener  <rguenther@suse.de>
2229         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2230         (compute_antic): ... here.  For partial antic use regular
2231         postorder and scrap iteration.
2232         (compute_partial_antic_aux): Remove unused return value.
2233         (init_pre): Do not allocate postorder.
2234         (fini_pre): Do not free postorder.
2236 2016-04-18  Richard Biener  <rguenther@suse.de>
2238         PR middle-end/37870
2239         * expmed.c (extract_bit_field_1): Remove broken case
2240         using a wider MODE_INT mode.
2242 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
2244         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2245         unless compiling with at least GCC-4.8.
2247 2016-04-17  Jan Hubicka  <jh@suse.cz>
2249         PR bootstrap/70706
2250         * graphite.c (graphite_finalize): Update call to
2251         tree_estimate_probability.
2252         * predict.h (tree_estimate_probability): Update prototype.
2254 2016-04-17  Jan Hubicka  <jh@suse.cz>
2256         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2257         (tree_estimate_probability): Likewise.
2258         (pass_profile::execute): Update.
2259         (report_predictor_hitrates): New function.
2260         * profile.c (compute_branch_probabilities): Use it.
2261         * predict.h (report_predictor_hitrates): Declare.
2263 2016-04-17  Jan Hubicka  <jh@suse.cz>
2265         PR ipa/70018
2266         * cgraph.h (cgraph_node::set_const_flag,
2267         cgraph_node::set_pure_flag): Update prototype to return bool;
2268         update comment.
2269         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2270         of interposable symbol are interposable, too.
2271         (cgraph_set_const_flag_1): Rename to ...
2272         (set_const_flag_1): ... this one; change to self recursive function
2273         instead of call_for_symbol_thunks_and_aliases. Handle correctly
2274         clearnig the flag in all variants and also virtual thunks of const
2275         functions are pure; track if any change was done.
2276         (cgraph_node::set_const_flag): Update.
2277         (struct set_pure_flag_info): New struct.
2278         (cgraph_set_pure_flag_1): Rename to ...
2279         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2280         rather than pointer encoded flags; track if any changes was done;
2281         handle correctly clearning flag and setting flag of aliases already
2282         declared const.
2283         (cgraph_node::set_pure_flag): Update.
2284         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2286 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2288         PR other/70433
2289         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2290         backslash in label.
2292 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2294         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2295         '{}<> ' as escape-for-record.
2297 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2299         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2300         structure.
2302 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2304         PR other/70185
2305         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2306         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2307         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2308         * passes.c (finish_optimization_passes): Only call
2309         finish_graph_dump_file if dfi->graph_dump_initialized.
2310         (execute_function_dump, pass_init_dump_file): Use
2311         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2313 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2315         PR tree-optimization/70256
2316         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2317         (debug_varmap): New function.
2319 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2321         PR other/70183
2322         * passes.c (pass_manager::register_pass): Propagate pflags.
2324 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2326         PR other/68875
2327         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2328         * passes.c (pass_manager::pass_manager): Declare and init p_start in
2329         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
2330         check if it's equal to p_start.
2331         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2333 2016-04-15  Jan Hubicka  <jh@suse.cz>
2335         PR ipa/70018
2336         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2337         function does not bind to current def.
2338         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2339         handle conservatively calls to functions that does not need to bind
2340         to current def.
2341         (check_call): Update call of worse_state.
2342         (ignore_edge_for_nothrow): Update.
2343         (ignore_edge_for_pure_const): Likewise.
2344         (propagate_pure_const): Update calls to worse_state.
2345         (skip_function_for_local_pure_const): Reformat comments.
2347 2016-04-15  Jan Hubicka  <jh@suse.cz>
2349         PR ipa/70018
2350         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2351         (cgraph_node::function_symbol): Likewise.
2352         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2353         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2354         (symtab_node::ultimate_alias_target): Add REF parameter.
2355         (symtab_node::binds_to_current_def_p): Declare.
2356         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2357         (cgraph_node::function_symbol): Likewise.
2358         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2359         (cgraph_node::get_availability): Likewise.
2360         (cgraph_edge::binds_to_current_def_p): New inline function.
2361         (varpool_node::get_availability): Add REF parameter.
2362         (varpool_node::ultimate_alias_target): Likewise.
2363         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2364         (symtab_node::binds_to_current_def_p): Likewise.
2365         * varpool.c (varpool_node::get_availability): Likewise.
2367 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
2369         PR target/70662
2370         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2371         Fix mode size check.
2373 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
2375         * BASE-VER: Set to 7.0.0.
2377 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
2379         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2381 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2383         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2384         architecture revisions.
2386 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
2388         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2389         * config/i386/i386.c (ix86_using_red_zone): No longer static.
2390         * config/i386/i386.md (stack decrement to push peepholes): Guard
2391         with !x86_using_red_zone ().
2393 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
2395         PR c++/70675
2396         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2397         to dump_generic_node.
2398         (NIY): Pass also flags to do_niy.
2400 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
2402         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2403         (simd_clone_vector_of_formal_parm_types)
2404         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2405         (simd_clone_mangle, simd_clone_create)
2406         (simd_clone_adjust_return_type, create_tmp_simd_array)
2407         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2408         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2409         (ipa_simd_modify_function_body, simd_clone_linear_addend)
2410         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2411         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2412         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2413         * omp-simd-clone.c: ... this new file.
2414         (simd_clone_vector_of_formal_parm_types): Make it static.
2415         * Makefile.in (OBJS): Add omp-simd-clone.o.
2417 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
2419         PR target/70662
2420         * config/i386/sse.md: Use proper memory operand modifiers.
2423 2016-04-15  Richard Biener  <rguenther@suse.de>
2424         Alan Modra  <amodra@gmail.com>
2426         PR tree-optimization/70130
2427         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2428         when alignment stays not the same and no not use the realign
2429         scheme then.
2431 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2433         PR target/70669
2434         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2435         direct move handlers for KFmode. Change TFmode handlers test from
2436         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2438 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
2440         PR c++/70594
2441         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2442         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2443         (inlined_polymorphic_ctor_dtor_block_p): Use it.
2444         * tree-ssa-live.c (remove_unused_scope_block_p): When
2445         in_ctor_dtor_block, avoid discarding not just BLOCKs with
2446         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2447         block_ultimate_origin is FUNCTION_DECL.
2448         (remove_unused_locals): If current_function_decl is
2449         polymorphic_ctor_dtor_p, pass initial true to
2450         remove_unused_scope_block_p' is_ctor_dtor_block.
2452 2016-04-14  Martin Sebor  <msebor@redhat.com>
2454         PR c++/69517
2455         PR c++/70019
2456         PR c++/70588
2457         * doc/extend.texi (Variable Length): Revert.
2459 2016-04-14  Marek Polacek  <polacek@redhat.com>
2460             Jan Hubicka  <hubicka@ucw.cz>
2462         PR c++/70029
2463         * tree.c (verify_type): Disable the canonical type of main variant
2464         check.
2466 2016-04-14  Jason Merrill  <jason@redhat.com>
2468         * cfgexpand.c, expr.c: Revert previous change.
2470 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
2472         PR middle-end/70643
2473         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2474         when building a mem ref for the incoming reduction variable.
2476 2016-04-14  Richard Biener  <rguenther@suse.de>
2478         PR tree-optimization/70614
2479         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2480         loop if the evolution dropped to chrec_dont_know.
2481         (interpret_condition_phi): Likewise.
2483 2016-04-14  Richard Biener  <rguenther@suse.de>
2485         PR tree-optimization/70623
2486         * tree-ssa-pre.c (changed_blocks): Make global ...
2487         (compute_antic): ... local here.  Move and fix worklist
2488         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2489         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
2490         worklist handling, dump when ANTIC_IN changed.
2491         (compute_partial_antic_aux): Remove worklist handling.
2492         (init_pre): Do not compute post dominators.  Add a comment about
2493         the CFG order chosen.
2494         (fini_pre): Do not free post dominators.
2496 2016-04-13  Martin Sebor  <msebor@redhat.com>
2498         PR c++/69517
2499         PR c++/70019
2500         PR c++/70588
2501         * doc/extend.texi (Variable Length): Document C++ specifics.
2503 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
2505         PR c++/70641
2506         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2507         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
2508         eh edges have been purged.
2510         PR c++/70594
2511         * tree-sra.c (create_access_replacement,
2512         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2513         gets fancy name.
2514         * tree-pretty-print.c (dump_fancy_name): New function.
2515         (dump_decl_name, dump_generic_node): Use it.
2517 2016-04-13  Jason Merrill  <jason@redhat.com>
2519         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2520         * expr.c (expand_expr_real_1): Likewise.
2522 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2524         * config/i386/i386.md (kunpckhi): Swap operands.
2525         (kunpcksi): Likewise.
2526         (kunpckdi): Likewise.
2527         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2528         (vec_pack_trunc_<mode>): Likewise.
2530 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
2532         PR debug/70628
2533         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2535         PR middle-end/70633
2536         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2537         gimplification turns some element into non-constant.
2539         PR debug/70628
2540         * rtl.h (convert_memory_address_addr_space_1): New prototype.
2541         * explow.c (convert_memory_address_addr_space_1): No longer static,
2542         add NO_EMIT argument and don't call convert_modes if true, pass
2543         it down recursively, remove break after return.
2544         (convert_memory_address_addr_space): Adjust caller.
2545         * simplify-rtx.c (simplify_unary_operation_1): Call
2546         convert_memory_address_addr_space_1 instead of convert_memory_address,
2547         if it returns NULL, don't simplify.
2549 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2551         PR target/70630
2552         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2554 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2556         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2557         Bump the upper SIMDLEN limits, so that if the return type or
2558         characteristic type if the return type is void can be passed in
2559         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2560         allowed.
2562 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2564         PR target/70640
2565         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2566         Do not use "=" constraint on an input constraint.
2567         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2568         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2569         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2570         generates (neg (abs ...)) instead of (abs ...).
2572 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2574         PR rtl-optimization/70596
2575         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2576         just invalidate LRA data and reset them.  Adjust dump wording.
2578 2016-04-12  Martin Liska  <mliska@suse.cz>
2580         Revert
2581         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2583         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2584         estimates here.
2585         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2586         max_loop_iterations_int.
2587         (tree_unswitch_outer_loop): Likewise.
2588         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2589         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2591 2016-04-12  Tom de Vries  <tom@codesourcery.com>
2593         PR tree-optimization/68756
2594         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2595         instead of new_name.
2597 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2599         PR tree-optimization/70602
2600         * tree-sra.c (generate_subtree_copies): Don't write anything into
2601         constant pool decls.
2603         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2604         regardless whether there are depend clauses or not.
2606 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2608         PR target/70381
2609         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2610         target attribute and pragma from changing the -mfloat128
2611         and -mfloat128-hardware options.
2613         * doc/extend.texi (Additional Floating Types): Document PowerPC
2614         __float128 restrictions.
2616 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2618         PR target/70133
2619         * config/aarch64/driver-aarch64.c
2620         (aarch64_get_extension_string_for_isa_flags): New.
2621         (arch_extension): Rename to...
2622         (aarch64_arch_extension): ...This.
2623         (ext_to_feat_string): Rename to...
2624         (aarch64_extensions): ...This.
2625         (aarch64_core_data): Keep track of architecture extension flags.
2626         (cpu_data): Rename to...
2627         (aarch64_cpu_data): ...This.
2628         (aarch64_arch_driver_info): Keep track of architecture extension
2629         flags.
2630         (get_arch_name_from_id): Rename to...
2631         (get_arch_from_id): ...This, change return type.
2632         (host_detect_local_cpu): Update and reformat for renames, handle
2633         extensions through common infrastructure.
2635 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2637         PR target/70133
2638         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2639         track of a canonical flag name.
2640         (all_extensions): Likewise.
2641         (arch_to_arch_name): Also track extension flags enabled by the arch.
2642         (all_architectures): Likewise.
2643         (aarch64_parse_extension): Move to here.
2644         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2645         rework.
2646         (aarch64_rewrite_selected_cpu): Update for above change.
2647         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2648         are handled, such that the single explicit value enabled by an
2649         extension is kept seperate from the implicit values it also enables.
2650         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2651         to here.
2652         (aarch64_parse_extension): New.
2653         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2654         here to config/aarch64/aarch64-protos.h.
2655         (aarch64_parse_extension): Move from here to
2656         common/config/aarch64/aarch64-common.c.
2657         (aarch64_option_print): Update.
2658         (aarch64_declare_function_name): Likewise.
2659         (aarch64_start_file): Likewise.
2660         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2661         the canonical flag for extensions.
2662         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2663         flags.
2665 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2667         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2668         AARCH64_FL_CRC.
2670 2016-04-09  Tom de Vries  <tom@codesourcery.com>
2672         PR tree-optimization/68953
2673         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2674         first to last subscript.
2676 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
2678         PR tree-optimization/70586
2679         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2680         for any calls.
2682 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
2684         PR lto/70289
2685         PR ipa/70348
2686         PR tree-optimization/70373
2687         PR middle-end/70533
2688         PR middle-end/70534
2689         PR middle-end/70535
2690         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2691         clauses for acc parallel reductions as necessary.  Error on those
2692         that are private.
2693         * omp-low.c (scan_sharing_clauses): Don't install variables which
2694         are used in acc parallel reductions.
2695         (lower_rec_input_clauses): Remove dead code.
2696         (lower_oacc_reductions): Add support for reference reductions.
2697         (lower_reduction_clauses): Remove dead code.
2698         (lower_omp_target): Don't remap variables appearing in acc parallel
2699         reductions.
2700         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2702 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
2704         PR middle-end/70593
2705         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2706         with multiple SSA_NAME defs, force the outputs other than first
2707         to be live before calling live_track_process_def on each output.
2709         PR rtl-optimization/70574
2710         * fwprop.c (forward_propagate_and_simplify): Don't add
2711         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2712         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2713         paradoxical subregs within *loc.
2715 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
2717         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2718         -ftree-parallelize-loops={0,1}.
2719         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2720         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2721         * config/ia64/hpux.h (LIB_SPEC): Likewise.
2722         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2723         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2725 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
2727         PR sanitizer/70541
2728         * asan.c (instrument_derefs): If we get unknown location, extract it
2729         with EXPR_LOCATION.
2730         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
2732 2016-04-08  Tom de Vries  <tom@codesourcery.com>
2734         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
2735         implicit firstprivate clause.
2737 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2739         PR target/70566
2740         * config/arm/thumb2.md (tst + branch-> lsls + branch
2741         peephole below *orsi_not_shiftsi_si): Require that condition
2742         register is dead after the peephole.
2743         (second peephole after the above): Likewise.
2745 2016-04-08  Alan Modra  <amodra@gmail.com>
2747         PR target/70117
2748         * builtins.c (fold_builtin_classify): For IBM extended precision,
2749         look at just the high-order double to test for NaN.
2750         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
2751         test just the high double for Inf but both doubles for subnormal
2752         limit.
2754 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
2756         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
2757         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
2758         node->simdclone->mask_mode != VOIDmode masks.
2759         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
2760         earlier, use it instead of node->simdclone.
2761         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2762         Set clonei->mask_mode.
2764 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
2766         PR c/70436
2767         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
2768         Pass it through to cp_parser_already_scoped_statement.
2769         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
2770         it through to cp_parser_statement.
2771         (cp_parser_statement): Pass IF_P through to
2772         cp_parser_iteration_statement.
2773         (cp_parser_pragma): Adjust call to
2774         cp_parser_iteration_statement.
2776 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
2778         PR c/70436
2779         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
2780         resolve a future -Wparentheses warning.
2781         * omp-low.c (scan_sharing_clauses): Likewise.
2782         * tree-parloops.c (eliminate_local_variables): Likewise.
2784 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
2786         PR rtl-optimization/70398
2787         * lra-constraints.c (process_address_1): Check zero scale and code
2788         for reloading with zero scale.
2790 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
2792         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
2793         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
2795 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
2797         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2798         Add support for AVX512F clones, include them by default for
2799         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
2800         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
2801         up to 128.
2803         PR middle-end/70550
2804         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
2805         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
2806         firstprivate clauses.
2807         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
2808         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
2809         (lower_omp_target): Set TREE_NO_WARNING for
2810         non-addressable possibly uninitialized vars which are copied into
2811         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
2813 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
2815         * config/pa/predicates.md (integer_store_memory_operand): Accept
2816         REG+D operands with a large offset when reload_in_progress is true.
2817         (floating_point_store_memory_operand): Likewise.
2819 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2821         PR c++/70336
2822         * match.pd (nested int casts): Limit to GIMPLE.
2824 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
2826         PR ipa/66223
2827         * ipa-devirt.c (maybe_record_node): Fix comment; use
2828         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
2830 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2832         PR rtl-optimization/70542
2833         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
2834         if there are any uses other than insn or debug insns.
2836 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
2837             Jakub Jelinek  <jakub@redhat.com>
2839         PR tree-optimization/70509
2840         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
2841         Shift HOST_WIDE_INT_1U instead of 1.
2843 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
2845         PR tree-optimization/70509
2846         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
2847         of the vector base type for index.
2849 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
2851         PR target/70510
2852         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
2854 2016-04-05  Richard Biener  <rguenther@suse.de>
2856         PR tree-optimization/70526
2857         * tree-sra.c (build_ref_for_offset): Use prev_base to
2858         extract the alias pointer type.
2860 2016-04-05  Richard Biener  <rguenther@suse.de>
2862         * dse.c (struct store_info): Remove alias_set member.
2863         (struct read_info_type): Likewise.
2864         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
2865         spill_deleted, clear_alias_set_lookup): Remove.
2866         (get_group_info): Remove dead base == NULL_RTX case.
2867         (dse_step0): Remove initialization of removed variables.
2868         (delete_dead_store_insn): Reomve alias set dumping.
2869         (free_read_records): Remove alias_set handling.
2870         (canon_address): Remove alias_set_out parameter.
2871         (record_store): Remove spill_alias_set, it's always zero.
2872         (check_mem_read_rtx): Likewise.
2873         (dse_step2): Rename from ...
2874         (dse_step2_nospill): ... this.  Adjust.
2875         (scan_stores): Rename from ...
2876         (scan_stores_nospill): ... this.
2877         (scan_reads): Rename from ...
2878         (scan_reads_nospill): ... this.
2879         (scan_stores_spill, scan_reads_spill): Remove.
2880         (dse_step3_scan): Remove for_spills argument which is always false.
2881         (dse_step3): Likewise.
2882         (dse_step5): Rename from ...
2883         (dse_step5_nospill): ... this.  Remove alias_set handling.
2884         (rest_of_handle_dse): Adjust.
2886 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
2888         PR target/70525
2889         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
2890         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
2891         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
2892         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
2894 2016-04-05  Richard Biener  <rguenther@suse.de>
2896         PR middle-end/70499
2897         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
2898         non-register type temporaries into SSA.
2900 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
2902         PR ipa/66223
2903         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
2904         calls when sanitizing.
2905         (possible_polymorphic_call_target_p): Fix formatting.
2907 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
2908             Jakub Jelinek <jakub@redhat.com>
2910         PR middle-end/70457
2911         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
2912         to ensure a call statement is compatible with a built-in's
2913         prototype.
2914         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
2915         Likewise.
2917 2016-04-04  Richard Biener  <rguenther@suse.de>
2919         PR rtl-optimization/70484
2920         * rtl.h (canon_output_dependence): Declare.
2921         * alias.c (canon_output_dependence): New function.
2922         * dse.c (record_store): Use canon_output_dependence rather
2923         than canon_true_dependence.
2925 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2927         PR ipa/68881
2928         * cgraph.h (symtab_node::copy_visibility_from): New function.
2929         * symtab.c (symtab_node::copy_visibility_from): New function.
2930         * ipa-visibility.c (optimize_weakref): New function.
2931         (function_and_variable_visibility): Use it.
2933 2016-04-04  Martin Liska  <mliska@suse.cz>
2935         PR hsa/70402
2936         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
2937         value that is really in range handled by SBR instruction.
2938         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
2939         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
2940         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
2942 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
2944         PR target/70416
2945         PR target/67391
2946         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
2947         set, but not for SP_REG operands.
2949 2016-04-02  Martin Sebor  <msebor@redhat.com>
2951         PR c++/67376
2952         * fold-const.c (maybe_nonzero_address): New function.
2953         (fold_comparison): Call it.  Fold equality and relational
2954         expressions involving null pointers.
2955         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
2957 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
2959         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
2960         the "Y" constraint (scalar FP 0.0 immediate).
2962         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
2963         Add the "const_double" to the list of operand constraints.
2965 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
2967         PR rtl-optimization/70467
2968         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
2969         If low word of the last operand is 0, just emit addition/subtraction
2970         for the high word.
2972 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2974         PR target/70404
2975         * config/s390/s390.c (s390_expand_insv): Check for everything
2976         constant instead of just VOIDmode stuff.
2978 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
2980         PR target/70496
2981         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
2983 2016-04-01  Nathan Sidwell  <nathan@acm.org>
2985         * tree.def (TRY_CATCH_EXPR): Correct documentation.
2987 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
2989         PR rtl-optimization/70461
2990         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
2991         is necessary.
2993 2016-03-31  Martin Liska  <mliska@suse.cz>
2995         PR hsa/70399
2996         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
2997         a tree value or an immediate integer value to a buffer
2998         that is eventually copied to a BRIG section.
2999         (emit_immediate_operand): Call the function here.
3000         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
3001         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
3002         of class' fields that are removed.
3003         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
3004         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
3005         m_brig_repr_size fields.
3007 2016-03-31  Martin Liska  <mliska@suse.cz>
3009         PR hsa/70391
3010         * hsa-gen.c (hsa_function_representation::update_dominance): New
3011         function.
3012         (convert_addr_to_flat_segment): Likewise.
3013         (gen_hsa_memory_set): New alignment argument.
3014         (gen_hsa_ctor_assignment): Likewise.
3015         (gen_hsa_insns_for_single_assignment): Provide alignment
3016         to gen_hsa_ctor_assignment.
3017         (gen_hsa_insns_for_direct_call): Add new argument.
3018         (expand_lhs_of_string_op): New function.
3019         (expand_string_operation_builtin): Likewise.
3020         (expand_memory_copy): New function.
3021         (expand_memory_set): New function.
3022         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
3023         (convert_switch_statements): Change signature.
3024         (generate_hsa): Use a return value of the function.
3025         (pass_gen_hsail::execute): Do not call
3026         convert_switch_statements here.
3027         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
3028         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
3029         (hsa_function_representation::update_dominance): New function.
3031 2016-03-31  Martin Liska  <mliska@suse.cz>
3033         PR hsa/70391
3034         * hsa-brig.c (emit_directive_variable): Emit alignment
3035         according to hsa_symbol::m_align.
3036         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
3037         (dump_hsa_symbol): Dump alignment of HSA symbols.
3038         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
3039         (gen_hsa_addr_with_align): New function.
3040         (hsa_bitmemref_alignment): Use newly added function.
3041         (gen_hsa_insns_for_load): Likewise.
3042         (gen_hsa_insns_for_store): Likewise.
3043         (gen_hsa_memory_copy): New argument added.
3044         (gen_hsa_insns_for_single_assignment): Respect
3045         alignment for assignments processed via gen_hsa_memory_copy.
3046         (gen_hsa_insns_for_direct_call): Likewise.
3047         (gen_hsa_insns_for_return): Likewise.
3048         (gen_function_def_parameters): Set default alignment.
3049         * hsa.c (hsa_object_alignment): New function.
3050         (hsa_byte_alignment): Pasted function.
3051         * hsa.h (hsa_symbol::m_align): New field.
3053 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
3055         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
3056         scratch field for goto case.
3058 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
3060         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
3062 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
3064         PR target/70442
3065         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
3066         (scalar_chain::convert_insn): Call convert_op for reg
3067         moves to handle undefined registers.
3069 2016-03-31  Nathan Sidwell  <nathan@acm.org>
3071         PR c++/70393
3072         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
3073         Assert we don't want to move backwards.
3075 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
3077         PR target/70453
3078         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
3080 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
3082         PR rtl-optimization/70460
3083         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
3084         with operand from REG_LABEL_OPERAND, instead substitute
3085         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
3086         Don't do anything for REG_NON_LOCAL_GOTO jumps.
3088 2016-03-31  Martin Liska  <mliska@suse.cz>
3090         * passes.c (execute_one_pass): Do not call
3091         todo_after for a discarded function.
3093 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
3095         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
3096         (no_cost, infinite_cost): Initialize the new field.
3097         (get_computation_cost_at): Record setup cost.
3098         (determine_use_iv_cost_address): Skip cost computation for sub
3099         uses if we can estimate it without losing accuracy.
3101 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
3103         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
3104         estimates here.
3105         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3106         max_loop_iterations_int.
3107         (tree_unswitch_outer_loop): Likewise.
3108         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3109         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3111 2016-03-30  Richard Biener  <rguenther@suse.de>
3113         PR middle-end/70450
3114         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
3116 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
3118         PR target/70421
3119         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
3120         in gen_blendm expander.
3122 2016-03-30  Nick Clifton  <nickc@redhat.com>
3124         PR target/62254
3125         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
3126         case where we are already provided with an SImode SUBREG.
3128 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3130         PR target/70439
3131         * config/i386/i386.c (ix86_expand_epilogue): Properly check
3132         conflict between DRAP register and __builtin_eh_return.
3134 2016-03-30  Michael Matz  <matz@suse.de>
3135             Richard Biener  <rguenther@suse.de>
3137         PR ipa/12392
3138         * ipa-polymorphic-call.c (struct type_change_info): Change
3139         speculative to an unsigned allowing to limit the work we do.
3140         (csftc_abort_walking_p): New inline function..
3141         (check_stmt_for_type_change): Limit the number of may-defs
3142         skipped for speculative devirtualization to
3143         max-speculative-devirt-maydefs.
3144         * params.def (max-speculative-devirt-maydefs): New param.
3145         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
3147 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
3149         PR target/63890
3150         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
3151         and TARGET_MACHO.
3153 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
3155         PR tree-optimization/59124
3156         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
3157         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
3159 2016-03-29  Jeff Law  <law@redhat.com>
3161         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
3163 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3165         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3166         to HOST_WIDE_INT.
3168 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
3170         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3171         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3172         gcrt0.o if linking dynamically.
3174 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3176         PR ipa/70283
3177         * ipa-devirt.c (methods_equal_p): New function.
3178         (compare_virtual_tables): Use it.
3179         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3180         * cgraphclones.c (clone_function_name_1): Use
3181         symbol_table::symbol_suffix_separator.
3182         * coverage.c (build_var): Likewise.
3183         * symtab.c (symbol_table::symbol_suffix_separator): New.
3185 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
3187         PR rtl-optimization/70429
3188         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3189         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3190         mode != result_mode.
3192         PR c++/70353
3193         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3195         PR tree-optimization/70405
3196         * ssa-iterators.h (num_imm_uses): Add missing braces.
3198 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3200         PR rtl-optimization/68695
3201         * ira-color.c (allocno_copy_cost_saving): New.
3202         (improve_allocation): Use it.
3204 2016-03-29  Richard Henderson  <rth@redhat.com>
3206         PR middle-end/70355
3207         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3209 2016-03-29  Richard Biener  <rguenther@suse.de>
3211         PR middle-end/70424
3212         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3213         use alignment returned by get_pointer_alignment_1 if it is
3214         bigger than BITS_PER_UNIT.
3215         * builtins.c (get_pointer_alignment_1): Do not return true
3216         for alignment extracted from SSA info.
3218 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
3220         * config/ft32/ft32.opt (mnodiv): New.
3221         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3222         * doc/invoke.texi (FT32 Options -mnodiv): New.
3224 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
3226         PR target/70406
3227         * config/i386/i386.md (define_split, andn): Fix modes.
3229 2016-03-26  Richard Biener  <rguenther@suse.de>
3230             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3232         PR ipa/70366
3233         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3234         instead of
3235         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3236         as 2nd argument to cl_optimization_restore().
3238 2016-03-25  Richard Henderson  <rth@redhat.com>
3240         PR target/70120
3241         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3242         * config/aarch64/aarch64-protos.h: Declare it.
3243         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3245 2016-03-25  Alan Modra  <amodra@gmail.com>
3247         PR target/70052
3248         * config/rs6000/constraints.md (j): Simplify.
3249         * config/rs6000/predicates.md (easy_fp_constant): Exclude
3250         decimal float 0.D.
3251         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3252         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3253          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3254         in all constraint alternatives.
3255         (movtd_64bit_nodm): Delete "j" constraint alternative.
3257 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
3259         * tree-ssa-propagate.c: Enhance docs for
3260         SSA_PROP_NOT_INTERESTING.
3262 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
3264         * doc/extend.texi: Fix typo in documentation to pure attribute.
3266 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
3268         PR target/70319
3269         * config/pa/pa.md (bswapdi2): Use a scratch register.
3271 2016-03-24  Richard Henderson  <rth@redhat.com>
3273         PR middle-end/69845
3274         * fold-const.c (extract_muldiv_1): Correct test for multiplication
3275         overflow.
3277 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
3279         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3280         using ix86_expand_binary_operator instead of gen_andsi3.
3282 2016-03-24  Richard Biener  <rguenther@suse.de>
3284         PR tree-optimization/70396
3285         * tree-vect-stmts.c (vectorizable_comparison): Use
3286         get_vectype_for_scalar_type.
3288 2016-03-24  Richard Biener  <rguenther@suse.de>
3290         PR middle-end/70370
3291         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3292         with register bases.
3294 2016-03-24  Richard Biener  <rguenther@suse.de>
3296         PR tree-optimization/70372
3297         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3298         build_all_ones_cst to also handle vector types correctly.
3300 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3302         PR target/70381
3303         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3304         -mfloat128 here.
3306 2016-03-23  Marek Polacek  <polacek@redhat.com>
3308         PR c++/69884
3309         * doc/invoke.texi: Document -Wignored-attributes.
3311 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
3313         PR tree-optimization/69042
3314         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3315         parameter from 30 to 40.
3317 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
3319         PR tree-optimization/69042
3320         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3321         for use with constant offset stripped in base.
3323 2016-03-23  Richard Biener  <rguenther@suse.de>
3325         PR middle-end/70251
3326         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3327         mode compatibility check.
3328         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3330 2016-03-23  Jeff Law  <law@redhat.com>
3332         PR tree-optimization/64058
3333         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3334         CONFLICT_COUNT.
3335         (struct ssa_conflicts): Move up earlier in the file.
3336         (conflicts_, var_map_): New static variables.
3337         (initialize_conflict_count): New function to initialize the
3338         CONFLICT_COUNT field for each conflict pair.
3339         (compare_pairs): Lazily initialize the conflict count and use it
3340         as the first tie-breaker.
3341         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
3342         and wipe conflicts_ and map_ around the call to qsort.  Remove
3343         special case for 2 coalesce pairs.
3344         * bitmap.c (bitmap_count_unique_bits): New function.
3345         (bitmap_count_bits_in_word): New function, extracted from
3346         bitmap_count_bits.
3347         (bitmap_count_bits): Use bitmap_count_bits_in_word.
3348         * bitmap.h (bitmap_count_unique_bits): Declare it.
3350 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3352         PR target/69917
3353         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3354         transparent alias chain for decl assembler name.
3355         * config/sol2.c (solaris_assemble_visibility): Likewise.
3357 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3359         * config/arm/arm1020e.md (1020call_op): Reduce reservation
3360         duration.
3361         (v10_fdivs): Likewise.
3362         (v10_fdivd): Likewise.
3364 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3366         PR driver/70132
3367         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3368         to not call fclose twice on file.
3370 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
3372         PR tree-optimization/70354
3373         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3374         oprnd0 is wider than oprnd1 and there is a cast from the wider
3375         type to oprnd1, mask it with the mask of the narrower type.
3377         PR target/70321
3378         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3379         Optimize TARGET_STV splitters, if high or low word of last argument
3380         is 0 or -1.
3382 2016-03-22  Jeff Law  <law@redhat.com>
3384         PR target/70232
3385         tree-ssa-threadbackward.c
3386         (fsm_find_control_statement_thread_paths): Correctly distinguish
3387         between old style jump threads vs FSM jump threads.
3389 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
3391         PR target/70302
3392         * config/i386/i386.c (scalar_chain::convert_op): Support
3393         uninitialized register usage case.
3395 2016-03-22  Richard Biener  <rguenther@suse.de>
3397         PR middle-end/70251
3398         * genmatch.c (gen_transform): Adjust last parameter to a three-state
3399         int...
3400         (capture::gen_transform): ... to change behavior when substituting
3401         a condition into cond or not-cond expr context.
3402         (dt_simplify::gen_1): Adjust.
3403         * gimple-match-head.c: Include gimplify.h for unshare_expr.
3404         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3405         last change and instead change to
3406         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3407         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3409 2016-03-22  Anthony Green  <green@moxielogic.com>
3411         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
3412         issue for moxiebox targets.
3413         (CC1PLUS_SPEC): Ditto.
3415 2016-03-22  Richard Biener  <rguenther@suse.de>
3417         PR middle-end/70333
3418         * fold-const.c (extract_muldiv_1): Properly perform multiplication
3419         in the wide type.
3421 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3423         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3425 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3427         PR target/70325
3428         * config/i386/i386.c (def_builtin): Handle
3429         OPTION_MASK_ISA_AVX512VL to be and-ed with other
3430         bits.
3431         (const struct builtin_description bdesc_special_args[]):
3432         Remove duplicate ISA bits.
3434 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
3436         PR target/70329
3437         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3438         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
3439         in a way that works also for AVX512BW.
3441         PR target/70300
3442         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3443         instead of source if operands[1] is xmm16 and above and
3444         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
3445         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3447         PR c++/70295
3448         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3449         on assign if (*from_p) is a comparison, set it to
3450         TREE_NO_WARNING (*from_p).
3452 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
3454         PR middle-end/70326
3455         * lra.c (restore_scratches): Ignore deleted insns.
3457 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
3458             Jakub Jelinek  <jakub@redhat.com>
3460         PR tree-optimization/70317
3461         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3462         to HONOR_NANS.
3464 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
3466         PR target/70327
3467         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3468         of ix86_expand_move.
3469         (movoi): Ditto.
3470         (movti): Use general_operand for operand 1 predicate.
3472 2016-03-21  Martin Liska  <mliska@suse.cz>
3474         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3475         insns.
3476         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3478 2016-03-21  Martin Liska  <mliska@suse.cz>
3480         PR ipa/70306
3481         * ipa-icf.c (sem_function::parse): Skip static
3482         constructors and destructors.
3484 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
3486         PR target/70296
3487         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3488         function-like macro, peek following token(s) if it is followed
3489         by CPP_OPEN_PAREN token with optional padding in between, and
3490         if not, don't treat it like a macro.
3492 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3493             Alexander Monakov  <amonakov@ispras.ru>
3495         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3496         for the stabs debug format.
3498 2016-03-21  Richard Biener  <rguenther@suse.de>
3500         PR tree-optimization/70310
3501         * tree-vect-generic.c (expand_vector_condition): Fold the built
3502         condition.
3504 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3506         PR target/70293
3507         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3508         Block third alternative for AVX-512VL target,
3510 2016-03-21  Martin Liska  <mliska@suse.cz>
3512         PR hsa/70234
3513         * hsa-brig.c (emit_function_directives): Mark unemitted
3514         global variables for emission.
3515         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3516         (get_symbol_for_decl): Likewise.
3517         * hsa.h (struct hsa_symbol): New flag.
3519 2016-03-21  Richard Biener  <rguenther@suse.de>
3521         PR tree-optimization/70288
3522         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3523         we do not estimate unsimplified all-constant conditionals or
3524         switches as optimized away.
3526 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
3528         PR rtl-optimization/69102
3529         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3530         when we have a readonly dependency context.
3532 2016-03-18  Jeff Law  <law@redhat.com>
3534         PR rtl-optimization/70263
3535         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3536         (update_equiv_regs): When trying to move a store to after the insn
3537         that sets the source of the store, make sure the store occurs after
3538         the insn that sets the source of the store.  When successful note
3539         the REG_EQUIV note created in the dump file.
3541 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
3542             Bernd Schmidt  <bschmidt@redhat.com>
3544         * doc/extend.texi: Document more potential problems with basic asms.
3546 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
3548         PR rtl-optimization/70278
3549         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3550         VOIDmode.
3552 2016-03-18  Jason Merrill  <jason@redhat.com>
3554         * calls.c (load_register_parameters): Fix zero size sibcall logic.
3556 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3558         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3559         values to 128b regs.
3561 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3563         PR tree-optimization/70252
3564         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3565         boolean vector has a proper number of elements.
3566         (supportable_narrowing_operation): Likewise.
3568 2016-03-18  Tom de Vries  <tom@codesourcery.com>
3570         PR ipa/70269
3571         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3573 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
3575         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3576         instead of replace_rtx for DEBUG_INSNs.
3578 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3580         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3581         load type reservations.
3583 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
3585         PR target/70188
3586         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
3587         define_constraint for "Q" and "T" constraints.
3589 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
3591         Tweak the pipeline model for Exynos M1
3593         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
3594         model.
3596 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
3598         PR c/70264
3599         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3600         where one or both locations aren't within a line_map.
3602 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3604         PR driver/70192
3605         * opts.c (finish_options): Don't set flag_pie to the default if
3606         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
3607         if it is -1.
3609 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
3611         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3612         true as ALL_REGS argument to replace_rtx.
3614 2016-03-17  Richard Biener  <rguenther@suse.de>
3616         PR debug/70271
3617         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3618         last.
3620 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3622         PR target/70245
3623         * rtl.h (replace_rtx): Add ALL_REGS argument.
3624         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
3625         equality and assert mode is the same, instead of just rtx pointer
3626         equality.
3627         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3628         true as ALL_REGS argument to replace_rtx.
3630 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3632         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3633         for boolean vector with vector mode only.
3634         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3636 2016-03-17  Nick Clifton  <nickc@redhat.com>
3638         PR target/70162
3639         * config/rx/rx.c (rx_print_integer): Print negative constants in
3640         decimal.
3642 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3644         PR target/70261
3645         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3647 2016-03-16  Richard Henderson  <rth@redhat.com>
3648             Richard Biener  <rguenth@suse.de>
3650         PR middle-end/70240
3651         PR middle-end/68215
3652         PR tree-opt/68714
3653         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3654         first operand as is_gimple_condexpr.
3656         PR middle-end/70240
3657         PR middle-end/68215
3658         Revert r231575
3659         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
3660         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3661         Do not gimplify the result.
3662         (do_unop): Adjust call to tree_vec_extract.
3663         (do_binop): Likewise.
3664         (do_compare): Likewise.
3665         (do_plus_minus): Likewise.
3666         (do_negate): Likewise.
3667         (expand_vector_condition): Likewise.
3668         (do_cond): Likewise.
3670 2016-03-16  Richard Henderson  <rth@redhat.com>
3672         PR target/70048
3673         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3674         (aarch64_classify_address): Use it.
3675         (aarch64_legitimize_address): Force all subexpressions of PLUS
3676         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
3678 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
3679             Richard Biener  <rguenth@suse.de>
3681         PR target/70245
3682         * rtlanal.c (replace_rtx): For REG, if from is a REG,
3683         return to even if only REGNO is equal, and assert
3684         mode is the same.
3686 2016-03-11  Jeff Law  <law@redhat.com>
3688         PR rtl-optimization/70224
3689         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3691 2016-03-16  Richard Henderson  <rth@redhat.com>
3693         PR middle-end/70199
3694         * function.h (struct function): Add has_forced_label_in_static.
3695         * gimplify.c (force_labels_r): Set it.
3696         * lto-streamer-in.c (input_struct_function_base): Read it.
3697         * lto-streamer-out.c (output_struct_function_base): Write it.
3698         * tree-inline.c (has_label_address_in_static_1): Remove.
3699         (copy_forbidden): Remove fndecl parameter; test
3700         has_forced_label_in_static.
3701         (inline_forbidden_p): Update call to copy_forbidden.
3702         (tree_versionable_function_p): Likewise.
3703         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3704         (chkp_versioning): Likewise.
3705         * tree-inline.h (copy_forbidden): Update decl.
3707 2016-03-16  Marek Polacek  <polacek@redhat.com>
3709         PR c/70093
3710         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3711         function being thunked if the result type doesn't have fixed size.
3712         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3713         doesn't have fixed size.
3715 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
3717         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3718         reporting malformed loop nest.
3720 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3722         PR lto/70187
3723         * ipa-devirt.c (possible_polymorphic_call_targets): Move
3724         nodes.length () == 1 test to before first nodes[0] access.
3726 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3728         PR tree-optimization/68715
3729         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
3730         single_pred_p test.
3732 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3734         PR tree-optimization/68809
3735         * graphite-scop-detection.c (same_close_phi_node): Test if result types
3736         are the same.
3738 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
3739             Sandra Loosemore  <sandra@codesourcery.com>
3741         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
3742         on leaf attribute. Mention ELF interposition problems.
3744 2016-03-16  Alan Modra  <amodra@gmail.com>
3746         PR rtl-optimization/69195
3747         PR rtl-optimization/47992
3748         * ira.c (indirect_jump_optimize): Ignore artificial defs.
3749         Add comments.
3751 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
3753         PR bootstrap/69513
3754         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
3756 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
3758         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
3760 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
3762         PR rtl-optimization/70222
3763         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
3764         optimization if mode is different from result_mode, queue up masking
3765         of the result in outer_op.  Formatting fix.
3767         PR middle-end/70239
3768         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
3769         of safe_grow.
3771 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3773         PR rtl-optimization/69032
3774         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
3775         looping backwards over basic block insns.
3777 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3779         PR target/66660
3780         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
3781         to non-speculative when propagating trap bits.
3783 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3785         PR rtl-optimization/63384
3786         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
3787         DEBUG_INSN_P insns.
3789 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
3791         PR target/64411
3792         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
3793         factored out from ...
3794         (sched_analyze_insn): ... here.
3795         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
3796         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
3797         get_implicit_reg_pending_clobbers in it.
3798         (setup_id_reg_sets): Use setup_id_implicit_regs.
3799         (deps_init_id): Ditto.
3801 2016-03-15  Tom de Vries  <tom@codesourcery.com>
3803         PR ipa/70161
3804         * cgraph.c (cgraph_node::get_body): Save, reset and restore
3805         dump_file_name.
3806         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
3807         execute_function_dump.
3808         (execute_one_pass): Don't dump function if it will be dumped after ipa
3809         transform.
3811 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
3813         * genrecog.c (match_pattern_2): If pred is NULL don't call
3814         safe_predicate_mode on it.
3816 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
3818         PR middle-end/70219
3819         * lra-constraints.c (delete_move_and_clobber): Change assertion
3820         to also allow dregno == 0.
3822 2016-03-14  Richard Henderson  <rth@redhat.com>
3824         PR tree-opt/68714
3825         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
3826         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
3827         (reassociate_bb): Use optimize_vec_cond_expr; avoid
3828         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
3829         on vectors.
3831 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
3833         PR target/70083
3834         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
3835         regs.
3836         (lra_create_live_ranges_1): initialize hard register biggest_mode to
3837         VOIDmode.
3838         * lra-constraints.c (split_reg): For hard regs, try to find the
3839         biggest single-register mode used in the function.
3841 2016-03-14  Richard Biener  <rguenther@suse.de>
3843         PR tree-optimization/56365
3844         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
3845         constants to compare against.
3847 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
3849         PR target/70098
3850         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
3851         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
3852         (define_split for the GPR case): Use int_reg_operand instead of
3853         gpc_reg_operand for the output.
3855 2016-03-14  Tom de Vries  <tom@codesourcery.com>
3857         PR tree-optimization/70045
3858         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
3859         create_empty_if_region_on_edge argument.
3861 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
3863         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
3864         (STACK_CHECK_PROTECT): Likewise.
3865         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3866         (STACK_CHECK_PROTECT): Likewise.
3867         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
3868         (STACK_CHECK_PROTECT): Likewise.
3869         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
3870         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
3871         (STACK_CHECK_PROTECT): Likewise.
3873 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
3875         PR rtl-optimization/69307
3876         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
3877         registers in modes that span more than one register.
3879 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
3881         PR target/69614
3882         * lra-constraints.c (delete_move_and_clobber): New.
3883         (remove_inheritance_pseudos): Use it.
3885 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
3887         PR ada/70017
3888         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
3889         the libcall is LCT_THROW.
3890         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
3891         for the checking routine.
3893 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
3895         PR target/70131
3896         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
3897         optimization if we have direct move.
3898         (roundu32<mode>2_fprs): Likewise.
3900 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
3902         PR target/70123
3903         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
3904         be rematerialized.
3905         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
3906         Arguments swapped.  All callers changed.  Take reg_renumber into
3907         account, and Calculate and compare register ranges for hard regs.
3909 2016-03-11  Jeff Law  <law@redhat.com>
3911         PR tree-optimization/70190
3912         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
3913         Handle cases where we can not extract the taken edge, even though we
3914         found a constant value.
3916         PR tree-optimization/64058
3917         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
3918         (num_coalesce_pairs): Move up earlier in file.
3919         (find_coalesce_pair): Initialize the INDEX field for each pair
3920         discovered.
3921         (compare_pairs): No longer sort on the elements in each pair.
3922         Instead break ties with the index of the coalesce pair.
3924 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3926         PR target/70002
3927         * config/aarch64/aarch64-protos.h
3928         (aarch64_save_restore_target_globals): New prototype.
3929         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
3930         Call the above when popping pragma.
3931         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
3932         New function.
3933         (aarch64_set_current_function): Rewrite using the above.
3935 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
3937         PR tree-optimization/70177
3938         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
3939         (extract_ops_from_tree): ... this.  In the 2 argument
3940         overload remove _1 suffix.
3941         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
3942         (extract_ops_from_tree): ... this.
3943         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
3944         Adjust callers.
3945         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
3946         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
3947         extract_ops_from_tree instead of 2 operand one.
3949 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
3951         PR tree-optimization/70013
3952         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
3953         for constant-pool entries.
3955 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
3957         PR rtl-optimization/70174
3958         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
3959         followed by gen_lowpart on force_reg instead of just gen_lowpart.
3961         PR tree-optimization/70169
3962         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
3963         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
3964         for unknown codes.
3966 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
3967             Jakub Jelinek  <jakub@redhat.com>
3969         PR target/70160
3970         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
3971         of uninitialized values.
3973 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3975         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
3976         define_expand.
3977         ("*trunctddd2"): New pattern definition.
3978         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
3979         TD->DD truncation.
3981 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3983         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
3984         definitions for BFP and DFP rounding modes.
3985         ("fixuns_truncdddi2", "fixuns_trunctddi2")
3986         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
3987         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
3988         ("fix_trunctf<mode>2"): Use the new constants instead of magic
3989         numbers.
3991 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3993         * config/s390/constraints.md: Adjust comment.
3994         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
3995         s390_decompose_addrstyle_without_index.
3996         * config/s390/predicates.md (shift_count_or_setmem_operand):
3997         Rename to setmem_operand.
3998         * config/s390/s390-protos.h
3999         (s390_decompose_shift_count): Rename to
4000         s390_decompose_addrstyle_without_index.
4001         * config/s390/s390.c (s390_decompose_shift_count)
4002         (s390_mem_constraint, print_shift_count_operand)
4003         (print_operand_address, print_operand): Rename
4004         s390_decompose_shift_count to
4005         s390_decompose_addrstyle_without_index and rename
4006         print_shift_count_operand to print_addrstyle_operand troughout the
4007         file.
4008         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
4009         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
4010         Rename shift_count_or_setmem_operand to setmem_operand.
4011         * config/s390/vx-builtins.md ("vec_insert<mode>")
4012         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
4013         nonmemory_operand.
4015 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4017         PR target/70168
4018         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4019         Handle overlapping retval and newval.
4021 2016-03-10  Nick Clifton  <nickc@redhat.com>
4023         PR target/7044
4024         * config/aarch64/aarch64.c
4025         (aarch64_override_options_after_change_1): When forcing
4026         flag_omit_frame_pointer to be true, use a special value that can
4027         be detected if this function is called again, thus preventing
4028         flag_omit_leaf_frame_pointer from being forced to be false.
4030 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4032         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4033         Set x_flag_omit_leaf_frame_pointer when handling
4034         -momit-leaf-frame-pointer.
4036 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4038         PR lto/69589
4039         * cgraph.c (cgraph_node::dump): Dump split_part and
4040         indirect_call_target.
4041         * cgraph.h (cgraph_node): Add indirect_call_target flag.
4042         * ipa.c (has_addr_references_p): Cleanup.
4043         (is_indirect_call_target_p): New.
4044         (walk_polymorphic_call_targets): Do not mark virtuals that may be
4045         called indirectly as local.
4046         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
4048 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4050         PR ipa/69630
4051         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4052         on cxa_pure_virtual.
4054 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4056         PR lto/69589
4057         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
4059 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4061         PR lto/69589
4062         * tree.c (need_assembler_name_p): Only record main variant type names.
4064 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
4066         PR target/70113.
4067         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
4068         Always define to 0 or 1.
4069         (TARGET_FIX_ERR_A53_843419): New macro.
4070         * config/aarch64/aarch64-elf-raw.h
4071         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
4072         * config/aarch64/aarch64-linux.h: Likewise.
4073         * config/aarch64/aarch64.c
4074         (aarch64_override_options_after_change_1): Do not default
4075         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
4076         843419 is on.
4077         (aarch64_attributes): Handle fix-cortex-a53-843419.
4078         (aarch64_can_inline_p): Likewise.
4079         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
4081 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
4082         Jakub Jelinek <jakub@redhat.com>
4084         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
4085         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
4086         DECL_COMMONS if flag_unconstrained_commons is set.
4087         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4088         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
4089         (funconstrained-commons): Document.
4091 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
4093         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
4094         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
4096 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4098         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
4099         has a proper number of elements.
4101 2016-03-10  Alan Modra  <amodra@gmail.com>
4103         PR rtl-optimization/69195
4104         PR rtl-optimization/47992
4105         * ira.c (recorded_label_ref): Delete.
4106         (update_equiv_regs): Return void.
4107         (indirect_jump_optimize): New function.
4108         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
4109         before regstat_compute_ri.  Don't rebuild_jump_labels here.
4110         Delete update_regstat.
4112 2016-03-10  Richard Biener  <rguenther@suse.de>
4114         PR tree-optimization/70128
4115         * tree-ssa-structalias.c (set_uids_in_ptset): Set
4116         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
4118 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
4120         PR tree-optimization/70152
4121         * tree-sra.c (replace_removed_params_ssa_names): Copy over
4122         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
4124         PR target/70086
4125         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
4126         instead of gen_sse2_loadlpd.
4127         * config/i386/sse.md (*vec_concatv2df): Rename to...
4128         (vec_concatv2df): ... this.
4130         PR tree-optimization/70127
4131         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
4133 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
4135         PR c/68473
4136         PR c++/70105
4137         * diagnostic-show-locus.c (compatible_locations_p): New function.
4138         (layout::layout): Sanitize ranges using compatible_locations_p.
4140 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
4142         PR c/68473
4143         PR c++/70105
4144         * diagnostic-show-locus.c (layout_range::layout_range): Replace
4145         location_range param with three const expanded_locations * and a
4146         bool.
4147         (layout::layout): Replace call to
4148         rich_location::lazily_expand_location with get_expanded_location.
4149         Extract the range and perform location expansion here, passing
4150         the results to the layout_range ctor.
4151         * diagnostic.c (source_range::debug): Delete.
4152         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
4153         of rich_location::get_expanded_location.
4154         * gcc-rich-location.c (get_range_for_expr): Delete.
4155         (gcc_rich_location::add_expr): Reimplement to avoid the
4156         rich_location::add_range overload that took a location_range,
4157         passing a location_t instead.
4159 2016-03-09  Richard Biener  <rguenther@suse.de>
4160         Jakub Jelinek  <jakub@redhat.com>
4162         PR tree-optimization/70138
4163         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4164         Also skip vect_double_reduction_def.
4166 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
4168         PR target/70049
4169         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4170         if the operand is "m".
4172 2016-03-09  Nathan Sidwell  <nathan@acm.org>
4174         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4176 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4178         * config/i386/i386.c (processor_target_table): Fix cost table
4179         intialization order for znver1.
4181 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
4183         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4184         - becuase -> because.
4185         * ipa-reference.c (ignore_module_statics): Likewise.
4186         * cgraph.c (cgraph_node::get_body): Likewise.
4187         * ipa-inline.c (early_inliner): Likewise.
4188         * ipa-devirt.c (types_same_for_odr): Likewise.
4189         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4190         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4192 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4194         * tree-ssa-math-opts.c: Fix typo in comment.
4196 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
4198         PR target/70110
4199         * config/i386/i386.c (scalar_chain::make_vector_copies,
4200         scalar_chain::convert_reg): Call end_sequence in between
4201         get_insns and emit_conversion_insns rather than after both
4202         calls.
4204 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
4206         PR target/70064
4207         * config/i386/i386.h (machine_function): Add
4208         pc_thunk_call_expanded flag.
4209         (ix86_pc_thunk_call_expanded): New define.
4210         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4211         (*set_got): Rename insn pattern from set_got.
4212         (*set_got_labelled): Rename inst pattern from set_got_labelled.
4213         * config/i386/i386.c (ix86_compute_frame_layout): Use
4214         ix86_pc_thunk_call_expanded to prevent red-zone.
4216 2016-03-07  Martin Jambor  <mjambor@suse.cz>
4218         * hsa.h (hsa_get_ctor_statements): Declare.
4219         (hsa_get_dtor_statements): Likewise.
4220         (hsa_get_kernel_dispatch_type): Likewise.
4221         * hsa.c (hsa_get_ctor_statements): New function.
4222         (hsa_get_dtor_statements): Likewise.
4223         (hsa_get_kernel_dispatch_type): Likewise.
4224         * hsa-brig.c (hsa_cdtor_statements): Removed.
4225         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4226         hsa_get_dtor_statements.
4227         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4228         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4230 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4232         * config/arm/arm-cores.def (cortex-r8): New.
4233         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4234         * config/arm/arm-tune.md: Likewise.
4235         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4237 2016-03-07  Martin Sebor  <msebor@redhat.com>
4239         PR rtl-optimization/19705
4240         * doc/invoke.texi (Options That Control Optimization): Clarify
4241         -fno-branch-count-reg.
4243 2016-02-26  Richard Biener  <rguenther@suse.de>
4244             Jeff Law  <law@redhat.com>
4246         PR tree-optimization/69740
4247         * cfghooks.c (remove_edge): Request loop fixups if we delete
4248         an edge that might turn an irreducible loop into a natural
4249         loop.
4250         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4251         Move after definition of loops_state_clear.
4253 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
4255         PR rtl-optimization/69052
4256         * rtlanal.c (commutative_operand_precedence): Set higher precedence
4257         to CONST_WIDE_INT.
4259 2016-03-07  Tom de Vries  <tom@codesourcery.com>
4261         PR tree-optimization/70116
4262         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4263         is_tm_ending stmts and ubsan/asan internal functions.
4264         (find_duplicate): Use it.  Don't test is_tm_ending here.
4266 2016-03-07  Richard Biener  <rguenther@suse.de>
4268         PR tree-optimization/70115
4269         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4270         (propagate_constants_for_unrolling): Use replace_uses_by.
4272 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
4274         PR middle-end/69916
4275         * omp-low.c (struct oacc_loop): Add ifns.
4276         (new_oacc_loop_raw): Initialize it.
4277         (finish_oacc_loop): Clear mask & flags if no ifns.
4278         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4279         (oacc_loop_xform_loop): Add ifns arg & adjust.
4280         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4282 2016-03-07  Richard Henderson  <rth@redhat.com>
4284         PR rtl-opt/70061
4285         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4286         (insert_value_copy_on_edge): Likewise.
4288 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4290         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4292 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4294         PR target/62281
4295         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4297 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4299         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4301 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4303         Fix sseimul type attribute.
4304         * config/i386/znver1.md
4305         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4306         znver1_sseimul_avx256_load) : Fix the type attribute.
4307         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4308         pipe usage and latency.
4310 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
4312         PR c++/70084
4313         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4314         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4315         to the right type.
4317 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
4319         PR c/69973
4320         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4322         PR rtl-optimization/69941
4323         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4324         the reg share its mode.
4326 2016-03-04  Jeff Law  <law@redhat.com>
4328         PR tree-optimization/69196
4329         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4330         If the both SSA_NAMEs are anonymous, then consider them unassociated
4331         and include the PHI in the statement count.
4333 2016-03-05  Tom de Vries  <tom@codesourcery.com>
4335         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4336         construct in oacc routine.  Check for oacc region in oacc routine.
4338 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
4340         PR target/70062
4341         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
4342         2016-02-22 changes, instead don't recurse if RECUR is already true.
4343         Don't change *dynamic_check if RECUR.  Adjust recursive caller
4344         to pass true to the new argument.
4345         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4347         PR target/70059
4348         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4349         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4350         fixes.
4351         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
4353 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
4355         PR rtl-optimization/57676
4356         * lra-assigns.c (lra_assign): Guard test for maximum iterations
4357         with flag_checking.
4359 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
4361         * tree-vect-patterns.c (search_type_for_mask): Handle
4362         comparison of booleans.
4364 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
4366         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4367         Fix @xref usage.
4369         PR debug/69947
4370         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4371         all other ops that have dw_val_class_die_ref operands,
4372         and DW_OP_GNU_entry_value.
4374 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4376         PR rtl-optimization/69904
4377         * config/arm/arm.c (arm_cannot_copy_insn_p):
4378         Return true for load-exclusive instructions.
4380 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
4382         PR target/70021
4383         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4384         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4385         the pattern no matter if it is used just by non-pattern, pattern
4386         or mix thereof.
4387         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4388         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4389         oprnd1 def_stmt is in pattern, don't look through it.
4391 2016-03-03  Marek Polacek  <polacek@redhat.com>
4393         PR middle-end/70050
4394         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4396 2016-03-03  Martin Liska  <mliska@suse.cz>
4398         PR tree-optimization/70043
4399         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4400         previous statement if we see a debug statement.
4402 2016-03-03  Richard Biener  <rguenther@suse.de>
4404         PR tree-optimization/55936
4405         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4406         parameter and guard unsafe equivalence use.
4407         (vrp_evaluate_conditional_warnv_with_ops): Always use
4408         safe equivalences but not via the quadratic compare_names
4409         helper.
4411 2016-03-03  Michael Collison  <michael.collison@linaro.org>
4413         PR target/70014
4414         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4415         for operand 1 to s_register_operand. Change predicate for operand
4416         2 to arm_not_immediate_operand.
4418 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
4420         * doc/tm.texi: Regenerated.
4422 2016-03-02  Richard Henderson  <rth@redhat.com>
4424         PR rtl-opt/67145
4425         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4426         simplification when all args are positive non-fixed registers.
4428 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4430         * target.def (lra_p): Specify that new ports should use LRA.
4432 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
4434         PR libgomp/69555
4435         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4436         gimplify_type_sizes the type they refer to.
4437         (omp_notice_variable): Handle reference vars to VLAs.
4438         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4439         reference to VLA decls in the second pass instead of first pass.
4441 2016-03-02  Tom de Vries  <tom@codesourcery.com>
4443         PR tree-optimization/68659
4444         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4445         new_expr == NULL_TREE.
4446         (get_new_name): Handle ADDR_EXPR.
4448 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
4450         PR rtl-optimization/69052
4451         * loop-invariant.c (canonicalize_address): New function.
4452         (inv_can_prop_to_addr_use): Check validity of address expression
4453         which is canonicalized by above function.
4455 2016-03-02  Alan Modra  <amodra@gmail.com>
4457         PR ipa/69990
4458         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4459         larger alignment.
4461 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
4463         PR target/70028
4464         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4465         (*movhi_internal): Put mask moves from and to memory separately
4466         from moves from/to GPRs.
4468 2016-03-02  Richard Biener  <rguenther@suse.de>
4470         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4471         GENERIC expressions in GIMPLE.
4473 2016-03-02  Richard Biener  <rguenther@suse.de>
4475         * config/i386/i386.c (type_natural_mode): Fix typo.
4477 2016-03-02  Nick Clifton  <nickc@redhat.com>
4479         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4481 2016-03-02  Richard Biener  <rguenther@suse.de>
4482             Uros Bizjak  <ubizjak@gmail.com>
4484         PR target/67278
4485         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4487 2016-03-02  Richard Biener  <rguenther@suse.de>
4489         PR middle-end/67278
4490         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4492 2016-03-02  Marek Polacek  <polacek@redhat.com>
4494         PR c/67854
4495         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4496         "is promoted to" warning.
4498 2016-03-01  DJ Delorie  <dj@redhat.com>
4500         * config.gcc: Deprecate mep-*.
4502 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4504         PR middle-end/70025
4505         * lra-constraints.c (regno_val_use_in): New.
4506         (match_reload): Use it instead of regno_use_in.
4508 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4510         PR rtl-optimization/70007
4511         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4512         references present in REG_EQUAL notes attached to non-SET patterns.
4514 2016-03-01  Jeff Law  <law@redhat.com>
4516         PR tree-optimization/69196
4517         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4518         Appropriately clamp the number of statements to copy when the
4519         thread path does not traverse a loop backedge.
4521         PR tree-optimization/69196
4522         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4523         Do count some PHIs in the thread path against the insn count.  Decrease
4524         final statement count by one as the control statement in the last
4525         block will get removed.  Remove special cased code for handling PHIs
4526         in the last block.
4528 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
4530         PR target/70027
4531         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4532         asm dialect alternatives to explicit GOTPCREL calls.
4534 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4536         PR ada/70017
4537         * ira.c (do_reload): Issue warning for generic stack checking here...
4538         * reload1.c (reload): ...instead of here and streamline it.
4540 2016-03-01  Nick Clifton  <nickc@redhat.com>
4542         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4544 2016-03-01  Richard Biener  <rguenther@suse.de>
4546         PR tree-optimization/69983
4547         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4548         types and fall back to operand_equal_p.
4550 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4552         Revert
4553         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4555         * config/s390/constraints.md ("jm8"): New constraint.
4556         * config/s390/predicates.md ("const_int_8bitset_operand"): New
4557         predicate.
4558         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4559         into ...
4560         ("*setmem_long<setmem_and>"): New pattern.
4561         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4562         into ...
4563         ("*setmem_long_31z<setmem_and>"): New pattern.
4564         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4565         New substitution rules with the required attributes.
4568 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4570         Revert
4571         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4573         * gensupport.c (process_substs_on_one_elem): Split loop to
4574         complete mark_operands_used_in_match_dup on all expressions in the
4575         vector first.
4576         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4577         and remove function.
4579 2016-03-01  Richard Biener  <rguenther@suse.de>
4581         PR middle-end/70022
4582         * fold-const.c (fold_indirect_ref_1): Fix range checking for
4583         vector BIT_FIELD_REF extract.
4585 2016-03-01  Richard Biener  <rguenther@suse.de>
4587         PR tree-optimization/69994
4588         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4590 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
4592         PR tree-optimization/69956
4593         * tree-vect-stmts.c (supportable_widening_operation): Support
4594         multi-step conversion of boolean vectors.
4595         (supportable_narrowing_operation): Likewise.
4597 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4599         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4600         anymore.
4602 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4604         * config/s390/subst.md (DSI_VI): New mode iterator.
4605         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4606         * config/s390/vector.md ("vec_set<mode>"): Move expander before
4607         the insn definition.
4608         ("*vec_set<mode>"): Change predicate and add alternative to
4609         support only either register or const_int operands as element
4610         selector.
4611         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4612         operands.
4613         ("vec_extract<mode>"): New expander.
4614         ("*vec_extract<mode>"): New insn definition supporting reg and
4615         const_int element selectors.
4616         ("*vec_extract<mode>_plus"): New insn definition supporting
4617         reg+const_int element selectors.
4618         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4619         following expander+insn definition.
4620         ("<vec_shifts_name><mode>3"): New expander.
4621         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4623 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4625         * config/s390/s390.md ("*tabort_1"): Change predicate to
4626         nonmemory_operand.  Add a second alternative to cover
4627         register as well as const int operands.
4628         ("*tabort_1_plus"): New pattern definition.
4630 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4632         * config/s390/s390.md ("*ashrdi3_cc_31")
4633         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4634         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4635         Merge insn definitions into ...
4636         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4637         New pattern definition.
4638         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4639         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4640         ("*ashr<mode>3_and"): Merge insn definitions into ...
4641         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4642         New pattern definition.
4643         * config/s390/subst.md ("addr_style_op_cc_subst")
4644         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4645         substitutions patterns plus attributes.
4646         Add ashiftrt to SUBST iterator.
4648 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4650         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4651         op2 to nonmemory_operand.
4652         ("*<shift>di3_31", "*<shift>di3_31_and"):
4653         Merge into single pattern definition ...
4654         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4655         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4656         pattern definition ...
4657         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4658         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4659         iterator.
4661 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4663         * config/s390/predicates.md (const_int_6bitset_operand): New
4664         predicate.
4665         * config/s390/s390.md: Include subst.md.
4666         ("rotl<mode>3"): New expander.
4667         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4668         ...
4669         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4670         * config/s390/subst.md: New file.
4672 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4674         * config/s390/s390.md ("op_type", "atype", "length" attributes):
4675         Remove RRR type.  It doesn't really exist.
4676         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4677         attributes.
4678         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4679         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4680         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4681         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4682         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4683         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4684         `enabled' attribute.
4686 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4688         * gensupport.c (process_substs_on_one_elem): Split loop to
4689         complete mark_operands_used_in_match_dup on all expressions in the
4690         vector first.
4691         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4692         and remove function.
4694 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4696         PR target/69706
4697         * config/sparc/sparc.c (NWORDS_UP): Rename to...
4698         (CEIL_NWORDS): ...this.  Use CEIL macro.
4699         (compute_fp_layout): Adjust to above renaming.
4700         (function_arg_union_value): Likewise.
4701         (sparc_arg_partial_bytes): Likewise.
4702         (sparc_function_arg_advance): Likewise.
4704 2016-02-29  Jeff Law  <law@redhat.com>
4706         PR tree-optimization/70005
4707         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4708         where an object with a boolean range is compared against a value
4709         outside [0..1].
4711         PR tree-optimization/69999
4712         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4713         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4714         loop cleanups.
4716 2016-02-29  Richard Biener  <rguenther@suse.de>
4718         PR tree-optimization/69994
4719         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4720         (get_unary_op): Look through nop conversions.
4721         (ops_equal_values_p): New function, look for equality diregarding
4722         nop conversions.
4723         (eliminate_plus_minus_pair): Use ops_equal_values_p
4724         (repropagate_negates): Do not use get_unary_op here.
4726 2016-02-29  Martin Liska  <mliska@suse.cz>
4728         * system.h: Poison ENABLE_CHECKING macro.
4730 2016-02-29  Martin Liska  <mliska@suse.cz>
4732         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
4733         is presented in dump flags.
4734         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4735         (hsa_regalloc): Likewise.
4737 2016-02-19  Richard Biener  <rguenther@suse.de>
4739         PR tree-optimization/69980
4740         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
4741         permutation of those we need to keep.
4743 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4745         PR target/69706
4746         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
4747         (NWORDS_UP): ...this
4748         (init_cumulative_args): Minor tweaks.
4749         (sparc_promote_function_mode): Likewise.
4750         (scan_record_type): Delete.
4751         (traverse_record_type): New function template.
4752         (classify_data_t): New structure type.
4753         (classify_registers): New inline function.
4754         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
4755         exhausted.  Instantiate traverse_record_type on classify_registers and
4756         deal with the case of a structure passed in slot #15 with no FP field
4757         in the first word.
4758         (assign_data_t): New structure type.
4759         (compute_int_layout): New static function.
4760         (compute_fp_layout): Likewise.
4761         (count_registers): New inline function.
4762         (assign_int_registers): New static function.
4763         (assign_fp_registers): Likewise.
4764         (assign_registers): New inline function.
4765         (function_arg_record_value_1): Delete.
4766         (function_arg_record_value_2): Likewise.
4767         (function_arg_record_value_3): Likewise.
4768         (function_arg_record_value): Adjust to above changes.  Instantiate
4769         traverse_record_type on count_registers to first count the number of
4770         registers to be used and then on assign_registers to assign them.
4771         (function_arg_union_value): Adjust to above renaming.
4772         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
4773         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
4774         case of a structure passed in slot #15
4775         (sparc_function_arg_advance): Likewise.
4776         (function_arg_padding): Minor tweak.
4778 2016-02-29  Richard Biener  <rguenther@suse.de>
4780         PR tree-optimization/69720
4781         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
4782         the adjustment_def path for possibly vectorized defs.
4783         (vect_create_epilog_for_reduction): Handle vectorized initial
4784         defs properly.
4786 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
4788         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
4790 2016-02-27  Jeff Law  <law@redhat.com>
4792         Revert
4793         2016-02-26  Richard Biener  <rguenther@suse.de>
4794                     Jeff Law  <law@redhat.com>
4796         PR tree-optimization/69740
4797         * cfghooks.c (remove_edge): Request loop fixups if we delete
4798         an edge that might turn an irreducible loop into a natural
4799         loop.
4801 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
4803         PR rtl-optimization/69896
4804         * tree-vect-generic.c (get_compute_type): Avoid single element
4805         vector types.
4807 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
4809         Rename the AArch64 tuning option and related functions to enable the
4810         Newton series for the reciprocal square root to reflect its
4811         approximative characteristic.
4813         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
4814         function to "aarch64_emit_approx_rsqrt".
4815         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
4816         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
4817         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
4818         (xgene1_tunings): Likewise.
4819         (use_rsqrt_p): Likewise.
4820         (aarch64_emit_swrsqrt): Use new function name.
4821         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
4822         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
4823         text explaining this option.
4824         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
4826 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
4828         PR target/69969
4829         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
4830         complain about -mallow-movmisalign without -mvsx if
4831         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
4833 2016-02-26  Joel Sherrill  <joel@rtems.org>
4835         * config.gcc: Add x86_64-*-rtems*.
4836         * gcc/config/i386/rtems-64.h: New file.
4838 2016-02-26  Joel Sherrill  <joel@rtems.org>
4840         * config.gcc: Add aarch64-*-rtems*.
4841         * gcc/config/aarch64/rtems.h: New file.
4843 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
4845         PR target/69946
4846         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
4847         shift amount using %h.  Add comment.
4849 2016-02-26  Richard Biener  <rguenther@suse.de>
4850             Jeff Law  <law@redhat.com>
4852         PR tree-optimization/69740
4853         * cfghooks.c (remove_edge): Request loop fixups if we delete
4854         an edge that might turn an irreducible loop into a natural
4855         loop.
4857 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4859         PR middle-end/69920
4860         * tree-sra.c (sra_modify_assign): Do not remove loads of
4861         uninitialized aggregates to SSA_NAMEs.
4863 2016-02-26  Richard Henderson  <rth@redhat.com>
4865         PR target/69709
4866         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
4867         pseudo in case the target rtx matches the source of the left
4868         shift.
4870 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4872         PR hsa/69568
4873         * hsa.h (hsa_type_packed_p): Declare.
4874         * hsa.c (hsa_type_packed_p): New function.
4875         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
4876         loads.
4877         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
4878         * hsa-brig.c (emit_basic_insn): Likewise.
4880 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4882         pr hsa/69674
4883         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
4884         pointers.
4885         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
4887 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4889         * hsa.h (is_a_helper): New overload for hsa_op_immed for
4890         hsa_op_with_type operands.
4891         (hsa_unsigned_type_for_type): Declare.
4892         * hsa.c (hsa_unsigned_type_for_type): New function.
4893         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
4894         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
4895         the finalizer.  Do not emit extra move.
4897 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4899         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
4900         atomic operations in private segment.
4902 2016-02-26  Martin Jambor  <mjambor@suse.cz>
4904         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
4905         statements to wi->info.  Also disallow omp simd constructs.
4906         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
4907         for not gridifying.  Dump special string for omp_for.
4909 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4911         PR target/69245
4912         * config/aarch64/aarch64.c (aarch64_set_current_function):
4913         Save/restore target globals when switching to
4914         target_option_default_node.
4916 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4918         PR target/69613
4919         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
4920         Return 0 if !SHIFT_COUNT_TRUNCATED.
4922 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
4923             Eric Botcazou  <ebotcazou@adacore.com>
4925         PR rtl-optimization/69891
4926         * dse.c (scan_insn): If we can't figure out memset arguments
4927         or they are non-constant, call clear_rhs_from_active_local_stores.
4929 2016-02-26  Martin Liska  <mliska@suse.cz>
4931         * doc/extend.texi: Mention clog10, clog10f an clog10l
4932         in Builtins section.
4934 2016-02-26  Martin Liska  <mliska@suse.cz>
4936         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
4937         CHECKING_P.
4938         (resolve_args_picking_1): Likewise.
4939         * dwarf2out.h (struct GTY): Likewise.
4941 2016-02-26  Martin Liska  <mliska@suse.cz>
4943         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
4944         with flag_checking.
4945         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
4947 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
4948             Martin Liska  <mliska@suse.cz>
4950         * doc/install.texi: Mention --enable-valgrind-annotations.
4952 2016-02-26  Richard Biener  <rguenther@suse.de>
4954         PR tree-optimization/69551
4955         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
4956         looking through aliases adjust DECL_PT_UID to refer to the
4957         ultimate alias target.
4959 2016-02-25  Martin Liska  <mliska@suse.cz>
4961         PR middle-end/69919
4962         * alloc-pool.c (after_memory_report): New variable.
4963         * alloc-pool.h (base_pool_allocator ::release): Do not use
4964         the infrastructure if after_memory_report.
4965         * toplev.c (toplev::main): Mark after memory report.
4967 2016-02-25  Richard Biener  <rguenther@suse.de>
4969         PR tree-optimization/48795
4970         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
4972 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
4974         PR driver/68463
4975         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
4976         offloading is enabled and -fopenacc or -fopenmp is specified.
4977         (CRTOFFLOADEND): Likewise.
4978         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
4979         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
4980         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
4981         (offload_objects_file_name): New static var.
4982         (tool_cleanup): Remove offload_objects_file_name file.
4983         (find_offloadbeginend): Replace with ...
4984         (find_crtoffloadtable): ... this.
4985         (run_gcc): Remove offload_argc and offload_argv.
4986         Get offload_objects_file_name from -foffload-objects=... option.
4987         Read names of object files with offload from this file, pass them to
4988         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
4989         don't pass offloadbegin and offloadend to the linker.  Don't pass
4990         offload non-LTO files to the linker, because now they're not claimed.
4992 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
4994         PR ipa/69630
4995         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4996         on builtin_unreachable.
4998 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
5000         PR rtl-optimization/69896
5001         * regcprop.c: Include cfgrtl.h.
5002         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
5003         than remembered mode, either delete it (if noop_move_p), or
5004         treat like copy_p but not noop_p instruction.
5006 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5008         PR debug/69705
5009         * dwarf2out.c (gen_variable_die): Work around buggy LTO
5010         - allow NULL decl for Fortran DW_TAG_common_block variables.
5012 2016-02-24  Jason Merrill  <jason@redhat.com>
5014         * common.opt (flifetime-dse): Add -flifetime-dse=1.
5016 2016-02-24  Richard Biener  <rguenther@suse.de>
5017             Jakub Jelinek  <jakub@redhat.com>
5019         PR middle-end/69760
5020         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
5021         conditionally executed ops to well-defined overflow behavior.
5023 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5025         PR middle-end/69915
5026         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
5027         elements.
5029 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5031         PR rtl-optimization/69886
5032         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
5033         argument.  Use it when checking validity of set instructions.
5034         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
5035         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
5036         callsite.
5037         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
5038         * store-motion.c (find_moveable_store): Update
5039         can_assign_to_reg_without_clobbers_p callsite.
5041 2016-02-24  Richard Biener  <rguenther@suse.de>
5043         PR middle-end/68963
5044         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
5045         bogus check.
5046         (record_nonwrapping_iv): Do not fall back to the low/high bound
5047         for non-constant IV bases if the stmt is not always executed.
5049 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5051         * config/arm/arm-cores.def (cortex-a32): New entry.
5052         * config/arm/arm-tables.opt: Regenerate.
5053         * config/arm/arm-tune.md: Regenerate.
5054         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
5055         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
5056         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
5057         for -mcpu and -mtune.
5059 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5061         PR target/69875
5062         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
5063         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
5064         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
5065         (atomic_loaddi_1): Delete.
5066         (atomic_loaddi): Rewrite expander using the above changes.
5068 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5070         PR c/69918
5071         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
5072         2 to 3.
5074 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5075             Richard Biener  <rguenth@suse.de>
5077         PR middle-end/69909
5078         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
5079         set_mem_attributes if tem is SSA_NAME which got expanded
5080         as a MEM.
5082 2016-02-24  Richard Biener  <rguenther@suse.de>
5084         PR tree-optimization/69907
5085         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
5086         end of permutations for BB vectorization.
5088 2016-02-24  Christian Bruel  <christian.bruel@st.com>
5090         * config/arm/arm-c.c (arm_option_override): Initialize
5091         target_option_current_node.
5092         * config/arm/arm.c (arm_pragma_target_parse): Replace
5093         build_target_option_node call by target_option_current_node.
5094         Set target_option_current_node.
5095         Fix comments.
5097 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
5099         PR target/69810
5100         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
5101         define_insn_and_split to define_insn.
5102         (zero_extendqi<mode>2_dot2): Same.
5103         (extendqi<mode>2_dot): Same.
5104         (extendqi<mode>2_dot2): Same.
5106 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
5108         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
5109         and add bypass for AES{D,E} and AESMC pairs.
5110         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
5111         and AESMC pairs.
5113 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
5115         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
5116         series for reciprocal square root in Exynos M1.
5118 2016-02-23  Martin Sebor  <msebor@redhat.com>
5120         PR c/69759
5121         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
5122         __builtin_alloca_with_align.
5124 2016-02-23  Richard Henderson  <rth@redhat.com>
5126         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
5127         (ix86_register_pragmas): Remove __seg_tls.
5128         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
5129         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
5130         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
5131         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
5132         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
5133         * doc/extend.texi (__seg_tls): Remove item.
5135 2016-02-23  Richard Biener  <rguenther@suse.de>
5137         * alloc-pool.h (struct allocation_object): Make id member
5138         conditional on CHECKING_P again.
5139         (get_instance): Adjust.
5140         (base_pool_allocator): Likewise.
5142 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
5144         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
5145         (parallelize_loops): In OpenACC kernels mode, set n_threads to
5146         zero.
5147         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
5148         flag_openacc.
5149         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5151 2016-02-23  Richard Biener  <rguenther@suse.de>
5153         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
5154         * bitmap.h (struct bitmap_usage): Likewise.
5155         (bitmap_move): Declare.
5156         * bitmap.c (register_overhead): Take size_t argument.
5157         (bitmap_move): New function.
5158         * df-problems.c (df_rd_transfer_function): Use bitmap_move
5159         to properly account overhead.
5160         * tree.c (free_node): Use tree_size.
5162 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
5164         PR c++/69902
5165         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5166         when inverting comparison.
5168         PR c/69900
5169         * common.opt (Wunreachable-code): Add Warning flag.
5171 2016-02-23  Mark Wielaard  <mjw@redhat.com>
5172             Jakub Jelinek  <jakub@redhat.com>
5174         PR c/69911
5175         * cgraphunit.c (check_global_declaration): Check main_input_filename
5176         and DECL_SOURCE_FILE are not NULL.
5178 2016-02-23  Martin Jambor  <mjambor@suse.cz>
5180         PR tree-optimization/69666
5181         * tree-sra.c (sra_modify_assign): Do not attempt to create
5182         default_def replacements for unscalarizable regions.
5184 2016-02-20  Mark Wielaard  <mjw@redhat.com>
5186         PR c/28901
5187         * cgraphunit.c (check_global_declaration): Check level of
5188         warn_unused_const_variable and main_input_filename.
5189         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5190         (-Wunused-variable): For C implies -Wunused-const-variable=1.
5191         (-Wunused-const-variable): Explain levels 1 and 2.
5193 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
5195         PR target/69888
5196         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5197         identical arguments.  Formatting and spelling fixes.
5199         PR target/69885
5200         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5201         be specified.
5203         PR target/69894
5204         PR target/69895
5205         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5206         and m68k-devices.def.
5207         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5208         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5210 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
5212         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5213         and HImode registers.
5215 2016-02-22  Richard Biener  <rguenther@suse.de>
5217         PR tree-optimization/69882
5218         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5219         preserve permutations present because of gaps.
5220         (vect_supported_load_permutation_p): Always continue checking
5221         permutations after vect_attempt_slp_rearrange_stmts.
5223 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
5225         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5226         min_profitable_estimate, rather than min_profitable_iters.
5228 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
5230         PR target/69885
5231         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5232         SImode for last match_operand.
5234 2016-02-22  Martin Liska  <mliska@suse.cz>
5236         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5237         return bitsize - 1 as the return value.
5239 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
5241         PR target/69806
5242         PR target/54089
5243         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5244         Handle negative shift counts.
5245         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5246         force_reg on the shift constant.
5247         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
5248         (lshrsi3_d): Handle negative shift counts.
5250 2016-02-22  Richard Biener  <rguenther@suse.de>
5251             Tom de Vries  <tom@codesourcery.com>
5253         * graph.c: Include dumpfile.h.
5254         (print_graph_cfg): Split into three overloads.
5255         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5257 2016-02-22  Tom de Vries  <tom@codesourcery.com>
5259         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5260         dump-fn.
5262 2016-02-22  Richard Biener  <rguenther@suse.de>
5264         PR ipa/37448
5265         * ipa-inline-transform.c (inline_call): When not updating
5266         overall summaries adjust self size by the growth estimate.
5267         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5268         hash-set, do not update overall summaries here.  Renamed from ...
5269         (inline_to_all_callers): ... this which is now wrapping the
5270         above and performing delayed overall summary update.
5271         (early_inline_small_functions): Delay updating of the overall
5272         summary.
5274 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5276         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5277         variable.
5279 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
5281         PR driver/69805
5282         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5283         :%* in %:gt() argument.
5284         (greater_than_spec_func): Adjust for expecting only numbers,
5285         if there are more than two numbers, compare the last two.
5287 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
5289         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5290         -Wnarrowing with -std.
5292 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
5294         PR c++/69851
5295         * expr.c (store_field): Don't use bit-field path if exp is
5296         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5297         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5298         and the assignment can be performed by bitwise copy.  Formatting
5299         fix.
5301         PR middle-end/69838
5302         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5303         call copy_reg_eh_region_note_forward on before and/or after sequences
5304         and remove note from insn if it no longer can throw.
5306         PR target/69820
5307         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5308         if TARGET_AVX512BW.
5310 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5312         * config/s390/vector.md: Add missing commutative operand markers
5313         to the patterns which qualify for one.
5314         * config/s390/vx-builtins.md: Likewise.
5316 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5318         * config/s390/vector.md (VI, VI_QHS): Add single element vector
5319         types to mode iterators.
5320         (vec_double): ... and mode attribute.
5321         * config/s390/vx-builtins.md (non_vec_int): Likewise.
5323 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5325         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5326         Change the predicate of op2 from nonimmediate to general and let
5327         reload fix it if necessary.
5329 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5331         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5333 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5335         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5336         mode.
5338 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5340         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5341         * config/s390/s390.c (s390_expand_vec_movstr): New function.
5342         * config/s390/s390.md ("movstr<P:mode>"): Call
5343         s390_expand_vec_movstr.
5345 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5347         * config/s390/s390.md: Add missing output modifier for operand 1
5348         to print it as address properly.
5350 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5352         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5353         * config/s390/2964.md: New file.
5354         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5355         of insn grouping attributes depending on the CPU level.
5356         (s390_get_unit_mask): New function.
5357         (s390_sched_score): Remove the OOO from the scheduling macros.
5358         Add loop to calculate a score for the instruction mix.
5359         (s390_sched_reorder): Likewise plus improve debug output.
5360         (s390_sched_variable_issue): Rename macros as above.  Calculate
5361         the unit distances after actually scheduling an insn.  Improve
5362         debug output.
5363         (s390_sched_init): Clear last_scheduled_unit_distance array.
5364         * config/s390/s390.md: Include 2964.md.
5366 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
5368         PR target/69671
5369         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5370         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5371         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5372         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5373         *avx512f_<code>v8div16qi2_mask_1): New insns.
5375 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5377         PR target/68404
5378         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5379         2016-02-09 change.
5381         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5382         earlyclobber from target.  Use wF constraint for fused memory
5383         address.
5384         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5386 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
5387             Martin Liska  <mliska@suse.cz>
5389         PR sanitizer/69863
5390         * cfgexpand.c (asan_sanitize_stack_p): New function.
5391         (partition_stack_vars): Use the function.
5392         (expand_stack_vars): Likewise.
5393         (defer_stack_allocation): Likewise.
5394         (expand_used_vars): Likewise.
5396 2016-02-18  Richard Biener  <rguenther@suse.de>
5398         PR middle-end/69553
5399         * fold-const.c (operand_equal_p): Properly compare offsets for
5400         IMAGPART_EXPR and ARRAY_REF.
5402 2016-02-18  Nick Clifton  <nickc@redhat.com>
5404         PR target/62254
5405         PR target/69610
5406         * config/arm/arm.c (arm_option_override_internal): Disable
5407         interworking if the target does not support thumb instructions.
5408         (arm_reload_in_hi): Handle the case where a register to register
5409         move needs reloading because there is no simple pattern to handle
5410         it.
5411         (arm_reload_out_hi): Likewise.
5413 2016-02-18  Richard Biener  <rguenther@suse.de>
5415         PR middle-end/69854
5416         * match.pd: Don't use fold_binary or fold_unary for folding
5417         constants.
5419 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
5421         PR c++/69850
5422         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5423         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5424         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5425         warn on gimple_no_warning_p statements.
5427 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
5429         * doc/extend.texi (C++ Attributes): Correct description of
5430         warn_unused type attribute.
5432 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5434         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5435         correct instruction.
5437 2016-02-17  Richard Biener  <rguenther@suse.de>
5439         PR rtl-optimization/69609
5440         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5441         (find_traces_1_round): When ending a trace update cached priority
5442         of successors.
5443         (bb_to_key): Use cached priority when available.
5444         (copy_bb): Initialize cached priority.
5445         (reorder_basic_blocks_software_trace_cache): Likewise.
5447 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5449         PR target/69161
5450         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5451         New predicate.
5452         (aarch64_comparison_operator): Break overly long line into two.
5453         (aarch64_comparison_operation): Likewise.
5454         * config/aarch64/aarch64.md (cstorecc4): Use
5455         aarch64_comparison_operator_mode instead of
5456         aarch64_comparison_operator.
5457         (cstore<mode>4): Likewise.
5458         (aarch64_cstore<mode>): Likewise.
5459         (*cstoresi_insn_uxtw): Likewise.
5460         (cstore<mode>_neg): Likewise.
5461         (*cstoresi_neg_uxtw): Likewise.
5463 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5465         PR target/69161
5466         * config/arm/predicates.md (arm_comparison_operator_mode):
5467         New predicate.
5468         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5469         instead of arm_comparison_operator.
5470         (*mov_negscc): Likewise.
5471         (*mov_notscc): Likewise.
5472         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5473         (*thumb2_mov_negscc): Likewise.
5474         (*thumb2_mov_negscc_strict_it): Likewise.
5475         (*thumb2_mov_notscc): Likewise.
5476         (*thumb2_mov_notscc_strict_it): Likewise.
5478 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
5480         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5481         Add missing return.
5483 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
5485         * config/visium/visium.c (machine_libfunc_index): New enum.
5486         (machine_libfuncs): New structure.
5487         (visium_libfuncs): New static variable.
5488         (TARGET_INIT_LIBFUNCS): Define to...
5489         (visium_init_libfuncs): ...this.  New function.
5490         (expand_block_move_4): Use the appropriate libfunc.
5491         (expand_block_move_2): Likewise.
5492         (expand_block_move_1): Likewise.
5493         (expand_block_set_4): Likewise.
5494         (expand_block_set_2): Likewise.
5495         (expand_block_set_1): Likewise.
5496         (visium_trampoline_init): Likewise.
5498 2016-02-17  Nick Clifton  <nickc@redhat.com>
5500         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5501         TI's devices.csv file as of March 2016.
5503 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5505         PR Target/48344
5506         * opts-global.c (handle_common_deferred_options): Introduce and
5507         initialize two global variables to remember command-line options
5508         specifying a stack-limiting register.
5509         * opts.h: Add extern declarations of the two new global variables.
5510         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5511         variable based on the values of the two new global variables.
5513 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5515         PR c/69835
5516         * common.opt (Wnonnull-compare): New warning.
5517         * doc/invoke.texi (-Wnonnull): Remove text about comparison
5518         of arguments against NULL.
5519         (-Wnonnull-compare): Document.
5520         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5521         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5522         * passes.def (pass_warn_nonnull_compare): Add.
5523         * gimple-ssa-nonnull-compare.c: New file.
5525 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5527         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5528         AARCH64_EXTRA_TUNE_RECIP_SQRT.
5530 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5532         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5533         reciprocal sqrt for -mlow-precision-recip-sqrt.
5535 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5536             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5538         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5539         always use lane loads to construct non-constant vectors.
5541 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5543         * config/aarch64/aarch64.md
5544         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5545         constraints for operand 3.
5546         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5548 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5549             Richard Biener  <rguenther@suse.de>
5551         PR tree-optimization/69820
5552         * tree-vect-patterns.c (type_conversion_p): Return false if
5553         *orig_type is unsigned single precision or boolean.
5554         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5555         Formatting fix.
5557 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5559         PR rtl-optimization/69764
5560         PR rtl-optimization/69771
5561         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5562         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5564 2016-02-16  Richard Biener  <rguenther@suse.de>
5566         PR tree-optimization/69776
5567         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5568         sets from caller.
5569         (indirect_refs_may_alias_p): Likewise.
5570         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5571         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5572         according to tbaa_p.
5573         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5574         (optimize_stmt): For redundant store discovery do not allow tbaa.
5576 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
5578         PR tree-optimization/69714
5579         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5580         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5582 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
5584         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5585         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5586         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5587         * config/arc/arc.c (arc_init): Check FPU options.
5588         (get_arc_condition_code): Handle new CC_FPU* modes.
5589         (arc_select_cc_mode): Likewise.
5590         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5591         register pair only. Allow access for ARCv2 accumulator.
5592         (gen_compare_reg): Whenever we have FPU support use FPU compare
5593         instructions.
5594         (arc_reorg): Don't generate brcc insns when FPU compare
5595         instructions are involved.
5596         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5597         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5598         floating point emulation.
5599         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5600         (REVERSE_CONDITION): Add new CC_FPU* modes.
5601         (TARGET_FP_SP_BASE): Define.
5602         (TARGET_FP_DP_BASE): Likewise.
5603         (TARGET_FP_SP_FUSED): Likewise.
5604         (TARGET_FP_DP_FUSED): Likewise.
5605         (TARGET_FP_SP_CONV): Likewise.
5606         (TARGET_FP_DP_CONV): Likewise.
5607         (TARGET_FP_SP_SQRT): Likewise.
5608         (TARGET_FP_DP_SQRT): Likewise.
5609         (TARGET_FP_DP_AX): Likewise.
5610         * config/arc/arc.md (ARCV2_ACC): New constant.
5611         (type): New fpu type attribute.
5612         (SDF): Conditional iterator.
5613         (cstore<mode>, cbranch<mode>): Change expand condition.
5614         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5615         handles FPU/FPX cases as well.
5616         * config/arc/arc.opt (mfpu): New option.
5617         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5618         Renamed.
5619         (adddf3, muldf3, subdf3): Removed.
5620         * config/arc/predicates.md (proper_comparison_operator): Recognize
5621         CC_FPU* modes.
5622         * config/arc/fpu.md: New file.
5623         * doc/invoke.texi (ARC Options): Document mfpu option.
5625 2016-02-16  Richard Biener  <rguenther@suse.de>
5627         PR rtl-optimization/69291
5628         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5629         noce_operand_ok check.
5631 2016-02-16  Tom de Vries  <tom@codesourcery.com>
5633         PR lto/67709
5634         * omp-low.c (simd_clone_create): Remove call to
5635         symtab->call_cgraph_insertion_hooks.
5637 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5639         PR tree-optimization/69802
5640         * tree-ssa-reassoc.c (update_range_test): If op is
5641         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5642         op == 1 test of precision 1 integral op, otherwise handle
5643         that case as op itself.  Fix up formatting.
5644         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5645         up formatting.
5647 2016-02-16  Richard Biener  <rguenther@suse.de>
5649         PR tree-optimization/69586
5650         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5651         types for conversion sources.
5653 2016-02-16  Richard Biener  <rguenther@suse.de>
5655         PR middle-end/69801
5656         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5657         mask OEP_ADDRESS_OF.
5659 2016-02-16  Alan Modra  <amodra@gmail.com>
5661         PR target/68973
5662         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5663         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5664         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5665         (p8_mtvsrwz): New.
5666         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5667         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5668         (p8_fmrgow_<mode>): Likewise.
5669         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
5670         changes.
5671         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5672         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5673         to use movdi_internal64.  Remove op0_di.
5674         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5676 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
5678         Add support for the FCCMP insn types
5680         * config/aarch64/aarch64.md (fccmp): Change insn type.
5681         (fccmpe): Likewise.
5682         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5683         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5684         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5685         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5686         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5687         * config/arm/types.md (fccmps): Add new insn type.
5688         (fccmpd): Likewise.
5690 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5692         * alias.c (get_alias_set): Fix a typo in comment.
5694 2016-02-15  Richard Biener  <rguenther@suse.de>
5696         PR tree-optimization/69595
5697         * match.pd: Complete range test simplification to true.
5699 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
5701         PR rtl-optimization/69648
5702         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5703         pic_offset_table_rtx.
5705         PR rtl-optimization/69752
5706         * ira.c (update_equiv_regs): When looking for more than a single SET,
5707         also take other side effects into account.
5709 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5711         * config/s390/s390.c (s390_function_profiler): Add a new sequence
5712         for z900+ CPUs in 31-bit mode.
5714 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5716         * common/config/s390/s390-common.c (s390_supports_split_stack):
5717         New function.
5718         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5719         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5720         * config/s390/s390.c (struct machine_function): New field
5721         split_stack_varargs_pointer.
5722         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5723         in s390_emit_prologue.
5724         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5725         vararg pointer.
5726         (morestack_ref): New global.
5727         (SPLIT_STACK_AVAILABLE): New macro.
5728         (s390_expand_split_stack_prologue): New function.
5729         (s390_live_on_entry): New function.
5730         (s390_va_start): Use split-stack vararg pointer if appropriate.
5731         (s390_asm_file_end): Emit the split-stack note sections.
5732         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
5733         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
5734         (UNSPECV_SPLIT_STACK_CALL): New unspec.
5735         (UNSPECV_SPLIT_STACK_DATA): New unspec.
5736         (split_stack_prologue): New expand.
5737         (split_stack_space_check): New expand.
5738         (split_stack_data): New insn.
5739         (split_stack_call): New expand.
5740         (split_stack_call_*): New insn.
5741         (split_stack_cond_call): New expand.
5742         (split_stack_cond_call_*): New insn.
5744 2016-02-15  Richard Biener  <rguenther@suse.de>
5746         PR tree-optimization/69783
5747         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
5748         Add trivially correct cases.
5750 2016-02-15  Tom de Vries  <tom@codesourcery.com>
5752         PR lto/69655
5753         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
5754         do_force_output.
5755         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
5757 2016-02-15  Richard Biener  <rguenther@suse.de>
5759         PR tree-optimization/69776
5760         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
5761         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
5762         indicate whether we can use TBAA to disambiguate against stores.
5763         Use alias-set zero if not.
5764         (visit_reference_op_store): Do not use TBAA when looking up
5765         redundant stores.
5766         * tree-ssa-pre.c (compute_avail): Use TBAA here.
5767         (eliminate_dom_walker::before_dom_children): But not when looking
5768         up redundant stores.
5770 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
5772         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
5774 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
5776         *  config/i386/znver1.md
5777         (znver1_pop, znver1_pop_mem,
5778         znver1_load_imov_double_store,
5779         znver1_load_imov_direct_store,
5780         znver1_load_imov_direct_load,
5781         znver1_load_imov_double_load): Add new.
5782         (znver1_insn, znver1_insn_load): Add icmov type.
5783         (znver1_sseavx_fma,
5784         znver1_sseavx_fma_load,
5785         znver1_avx256_fma,
5786         znver1_avx256_fma_load): Fix pipe usage.
5788 2016-02-14  Alan Modra  <amodra@gmail.com>
5790         PR target/68973
5791         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
5792         with an invalid hard reg, reload just the reg not the entire
5793         pre/post-inc/dec address expression.
5795 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
5797         PR target/67260
5798         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
5799         fixed R1_REG scratch reg.
5800         (sibcall_value_pcrel_fdpic): Likewise.
5802 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
5804         PR target/67636
5805         PR target/64345
5806         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
5808 2016-02-12  Walter Lee  <walt@tilera.com>
5810         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
5811         * config/tilegx/t-tilegx: Likewise.
5813 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5815         PR other/69554
5816         * diagnostic-show-locus.c (struct line_span): New struct.
5817         (layout::get_first_line): Delete.
5818         (layout::get_last_line): Delete.
5819         (layout::get_num_line_spans): New member function.
5820         (layout::get_line_span): Likewise.
5821         (layout::print_heading_for_line_span_index_p): Likewise.
5822         (layout::get_expanded_location): Likewise.
5823         (layout::calculate_line_spans): Likewise.
5824         (layout::m_first_line): Delete.
5825         (layout::m_last_line): Delete.
5826         (layout::m_line_spans): New field.
5827         (layout::layout): Update comment.  Replace m_first_line and
5828         m_last_line with m_line_spans, replacing their initialization
5829         with a call to calculate_line_spans.
5830         (diagnostic_show_locus): When printing source lines and
5831         annotations, rather than looping over a single span
5832         of lines, instead loop over each line_span within
5833         the layout, with an inner loop over the lines within them.
5834         Call the context's start_span callback when changing line spans.
5835         * diagnostic.c (diagnostic_initialize): Initialize start_span.
5836         (diagnostic_build_prefix): Break out the building of the location
5837         part of the string into...
5838         (diagnostic_get_location_text): ...this new function, rewriting
5839         it from nested ternary expressions to a sequence of "if"
5840         statements.
5841         (default_diagnostic_start_span_fn): New function.
5842         * diagnostic.h (diagnostic_start_span_fn): New typedef.
5843         (diagnostic_context::start_span): New field.
5844         (default_diagnostic_start_span_fn): New prototype.
5846 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5848         PR driver/69779
5849         * gcc.c (driver::finalize): Fix cleanup of "specs".
5851 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
5853         PR driver/69265
5854         PR driver/69453
5855         * gcc.c (driver::driver): Initialize m_option_suggestions.
5856         (driver::~driver): Clean up m_option_suggestions.
5857         (suggest_option): Convert to...
5858         (driver::suggest_option): ...this, and split out into
5859         driver::build_option_suggestions and find_closest_string.
5860         (driver::build_option_suggestions): New function, from
5861         first half of suggest_option.  Special-case
5862         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
5863         the sanitizer_opts array.  For options of enum types, add the
5864         various enum values to the candidate strings.
5865         (driver::handle_unrecognized_options): Remove "const".
5866         * gcc.h (driver::handle_unrecognized_options): Likewise.
5867         (driver::build_option_suggestions): New decl.
5868         (driver::suggest_option): New decl.
5869         (driver::m_option_suggestions): New field.
5870         * opts-common.c (add_misspelling_candidates): New function.
5871         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
5872         and make non-static.
5873         * opts.h (sanitizer_opts): New array decl.
5874         (add_misspelling_candidates): New function decl.
5875         * spellcheck.c (find_closest_string): New function.
5876         * spellcheck.h (find_closest_string): New function decl.
5878 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5880         PR rtl-optimization/69764
5881         PR rtl-optimization/69771
5882         * optabs.c (expand_binop_directly): For shift_optab_p, force
5883         convert_modes with VOIDmode if xop1 has VOIDmode.
5885 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
5887         PR target/69729
5888         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
5889         to correctly determine instrumentation thunks.
5891 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5893         PR ipa/69241
5894         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
5895         type by reference, force lhs on the call.
5897         PR ipa/68672
5898         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
5899         Compute retval and retbnd early in all cases if split_part_return_p
5900         and return_bb is not EXIT.  Remove all clobber stmts and reset
5901         all debug stmts that refer to SSA_NAMEs defined in split part,
5902         except if it is retval, in that case replace the old retval with the
5903         lhs of the call to the split part.
5905 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5907         revert:
5908         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5910         PR middle-end/66726
5911         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5912         whose result is used in PHI.
5913         (maybe_optimize_range_tests): Likewise.
5914         (final_range_test_p): Likweise.
5916 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
5918         PR middle-end/66726
5919         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
5920         whose result is used in PHI.
5921         (maybe_optimize_range_tests): Likewise.
5922         (final_range_test_p): Likweise.
5924 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
5926         * cgraph.c: Spelling fixes - behaviour -> behavior and
5927         neighbour -> neighbor.
5928         * target.def: Likewise.
5929         * sel-sched.c: Likewise.
5930         * config/mips/mips.c: Likewise.
5931         * config/arc/arc.md: Likewise.
5932         * config/arm/cortex-a57.md: Likewise.
5933         * config/arm/arm.c: Likewise.
5934         * config/arm/neon.md: Likewise.
5935         * config/arm/arm-c.c: Likewise.
5936         * config/vms/vms-c.c: Likewise.
5937         * config/s390/s390.c: Likewise.
5938         * config/i386/znver1.md: Likewise.
5939         * config/i386/i386.c: Likewise.
5940         * config/ia64/hpux-unix2003.h: Likewise.
5941         * config/msp430/msp430.md: Likewise.
5942         * config/rx/rx.c: Likewise.
5943         * config/rx/rx.md: Likewise.
5944         * config/aarch64/aarch64-simd.md: Likewise.
5945         * config/aarch64/aarch64.c: Likewise.
5946         * config/nvptx/nvptx.c: Likewise.
5947         * config/bfin/bfin.c: Likewise.
5948         * config/cris/cris.opt: Likewise.
5949         * config/rs6000/rs6000.c: Likewise.
5950         * target.h: Likewise.
5951         * spellcheck.c: Likewise.
5952         * ira-build.c: Likewise.
5953         * tree-inline.c: Likewise.
5954         * builtins.c: Likewise.
5955         * lra-constraints.c: Likewise.
5956         * explow.c: Likewise.
5957         * hwint.h: Likewise.
5958         * targhooks.c: Likewise.
5959         * tree-vect-data-refs.c: Likewise.
5960         * expr.c: Likewise.
5961         * doc/tm.texi: Likewise.
5962         * doc/extend.texi: Likewise.
5963         * doc/install.texi: Likewise.
5964         * doc/md.texi: Likewise.
5965         * tree-ssa-tail-merge.c: Likewise.
5966         * sched-int.h: Likewise.
5967         * match.pd: Likewise.
5968         * sched-ebb.c: Likewise.
5969         * target.def (omit_struct_return_reg): Likewise.
5970         * gimple-ssa-isolate-paths.c: Likewise.
5971         (find_implicit_erroneous_behaviour): Renamed to...
5972         (find_implicit_erroneous_behavior): ... this.
5973         (find_explicit_erroneous_behaviour): Renamed to...
5974         (find_explicit_erroneous_behavior): ... this.
5975         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
5977 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
5979         PR rtl-optimization/64682
5980         PR rtl-optimization/69567
5981         PR rtl-optimization/69737
5982         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
5983         in I2 as well, just lose it.
5985 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5987         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
5988         New variable.
5989         (aarch64_last_printed_tune_string): Likewise.
5990         (aarch64_declare_function_name): Only output .arch assembler
5991         directive if it will be different from the previously output
5992         directive.  Same for .tune comment but only if -dA is set.
5993         (aarch64_start_file): New function.
5994         (TARGET_ASM_FILE_START): Define.
5996 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
5998         PR plugins/69758
5999         * Makefile.in (PLUGIN_HEADERS): Add params.list.
6001 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
6003         PR target/65313
6004         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
6005         -Wmaybe-uninitialized warning.
6007 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
6009         PR target/69713
6010         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
6012 2016-02-11  Richard Biener  <rguenther@suse.de>
6014         PR rtl-optimization/69291
6015         * ifcvt.c (noce_try_store_flag_constants): Do not allow
6016         subexpressions affected by changing the result.
6018 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
6020         PR target/69148
6021         * lra-constraints.c (curr_insn_transform): Find in/out operands
6022         for secondary memory moves.  Update dups.
6024 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
6026         PR tree-optimization/69652
6027         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
6028         to nested loop, did source re-formatting, skip debug statements,
6029         add check on statement with volatile operand, remove dead scalar
6030         statements.
6032 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
6033             Patrick Palka  <ppalka@gcc.gnu.org>
6035         PR ipa/69241
6036         PR c++/69649
6037         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
6038         calls if the return type is TREE_ADDRESSABLE.
6039         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
6040         * ipa-split.c (split_function): Fix doubled "we" in comment.
6041         Use void return type for the split part even if
6042         !split_point->split_part_set_retval.
6044 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
6046         PR tree-optimization/68021
6047         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
6048         when computing the value of biv cand by itself.
6050 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
6052         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
6053         (cortexa57_tunings): Likewise.
6054         (cortexa72_tunings): Likewise.
6055         (arch_macro_fusion_pair_p): Add support for AES fusion.
6056         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
6057         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6058         Allow virtual registers before reload so early scheduling works.
6059         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
6060         correct latency and pipeline.
6061         (cortex_a57_crypto_complex): Likewise.
6062         (cortex_a57_crypto_xor): Likewise.
6063         (define_bypass): Add AES bypass.
6065 2016-02-10  Richard Biener  <rguenther@suse.de>
6067         PR tree-optimization/69726
6068         * passes.def: Add DCE pass before late uninit.
6069         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
6070         really fixup if-conversions job.
6072 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
6074         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
6075         (arm_cortex_a57_tune): Likewise.
6076         (aarch_macro_fusion_pair_p): Add support for AES fusion.
6077         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
6079 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
6081         * timevar.def (TV_PHASE_DBGINFO): Delete.
6082         (TV_PHASE_CHECK_DBGINFO): Likewise.
6083         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
6085 2016-02-10  Richard Biener  <rguenther@suse.de>
6087         PR tree-optimization/69719
6088         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6089         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
6091 2016-02-09  Andrew Pinski  <apinski@cavium.com>
6093         PR tree-opt/69282
6094         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
6095         get_vcond_mask_icode returns false.
6097 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6099         PR target/68404
6100         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
6101         an ADDIS that adds a pointer to a large constant that sets the
6102         upper16 bits with a load operation.
6104 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
6106         PR target/68532
6107         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
6108         order.
6109         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
6110         endian.
6111         (vzipq_s16): Likewise.
6112         (vzipq_s32): Likewise.
6113         (vzipq_f32): Likewise.
6114         (vzipq_u8): Likewise.
6115         (vzipq_u16): Likewise.
6116         (vzipq_u32): Likewise.
6117         (vzipq_p8): Likewise.
6118         (vzipq_p16): Likewise.
6120 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
6122         PR target/68532
6123         * config/arm/arm.c (neon_endian_lane_map): New function.
6124         (neon_vector_pair_endian_lane_map): New function.
6125         (arm_evpc_neon_vuzp): Allow for big endian lane order.
6126         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
6127         endian.
6128         (vuzpq_s16): Likewise.
6129         (vuzpq_s32): Likewise.
6130         (vuzpq_f32): Likewise.
6131         (vuzpq_u8): Likewise.
6132         (vuzpq_u16): Likewise.
6133         (vuzpq_u32): Likewise.
6134         (vuzpq_p8): Likewise.
6135         (vuzpq_p16): Likewise.
6137 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
6139         PR target/69634
6140         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
6141         debug insns.
6143 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
6145         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
6146         truncate const_int operand 1 to QImode.
6148 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
6150         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
6151         corresponding to an abnormal edge.
6153 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6155         PR tree-optimization/69599
6156         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
6157         function.
6158         (find_func_aliases_for_builtin_call, find_func_clobbers)
6159         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
6160         partition.
6162 2016-02-09  Richard Biener  <rguenther@suse.de>
6164         PR tree-optimization/69715
6165         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6166         LHS on calls as non-rewritable.
6168 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6170         PR lto/69707
6171         * lto-wrapper.c (append_diag_options): New function.
6172         (compile_offload_image): Call append_diag_options.
6174 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
6176         PR other/69722
6177         * doc/extend.texi (Flag Output Operands): Correct sectioning.
6178         Minor copy-edit to fix verb tenses.
6180 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
6182         PR tree-optimization/69209
6183         * ipa-split.c (split_function): If split part is not
6184         returning retval, retval has gimple type but is not
6185         gimple value, force it into a SSA_NAME first.
6187 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
6189         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6190         outdated section.
6192 2016-02-08  Jason Merrill  <jason@redhat.com>
6194         PR c++/69631
6195         * convert.c (convert_to_integer_1): Check dofold on truncation
6196         distribution.
6197         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6198         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6199         Rename from *_nofold.
6200         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6201         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6203 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
6205         PR target/60410
6206         * tree.c (build_common_tree_nodes): Remove short_double argument.
6207         All callers changed.
6208         * tree.h (build_common_tree_nodes): Adjust declaration.
6209         * doc/invoke.texi (-fshort-double): Remove documentation.
6210         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6211         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6212         * lto-wrapper.c (merge_and_complain, append_compiler_options)
6213         (append_linker_options): Don't handle OPT_fshort_double.
6215         PR rtl-optimization/68730
6216         * lra-remat.c (insn_to_cand_activation): New static variable.
6217         (lra_remat): Allocate and free it.
6218         (create_cand): New arg activation. Initialize a field in
6219         insn_to_cand_activation if it is nonnull.
6220         (create_cands): Pass the activation insn to create_cand when making
6221         a candidate involving an output reload.  Reorganize code a little.
6222         (do_remat): Keep track of active status of candidates in a separate
6223         bitmap.
6225 2016-02-08  Richard Biener  <rguenther@suse.de>
6227         PR tree-optimization/69719
6228         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6229         Properly use absolute of the difference of the two offsets to
6230         compare or adjust the segment length.
6232 2016-02-08  Richard Biener  <rguenther@suse.de>
6233             Jeff Law  <law@redhat.com>
6235         PR target/68273
6236         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6237         types for anonymous SSA names.
6239 2016-02-08   Richard Biener  <rguenther@suse.de>
6241         PR rtl-optimization/69274
6242         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6244 2016-02-08  Jeff Law  <law@redhat.com>
6246         PR tree-optimization/65917
6247         * tree-ssa-dom.c (record_temporary_equivalences): Record both
6248         equivalences from if (x == y) style conditionals.
6249         (loop_depth_of_name): Remove.
6250         (record_equality): Remove loop depth check.
6251         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6252         (const_and_copies::record_const_or_copy_raw): New member function.
6253         * tree-ssa-scopedtables.c
6254         (const_and_copies::record_const_or_copy_raw): New, factored out of
6255         (const_and_copies::record_const_or_copy): Call new member function.
6257 2016-02-05  Jeff Law  <law@redhat.com>
6259         PR tree-optimization/68541
6260         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6261         (count_stmts_in_block): New function.
6262         (poor_ifcvt_candidate_code): Likewise.
6263         (is_feasible_trace): Add some heuristics to determine when path
6264         splitting is profitable.
6265         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6266         is a diamond with a single exit.
6268 2016-02-05  Martin Sebor  <msebor@redhat.com>
6270         PR c++/69662
6271         * doc/invoke.texi: Update -Wplacement-new to take an optional
6272         argument.
6274 2016-02-06  Richard Henderson  <rth@redhat.com>
6276         PR c/69643
6277         * tree.c (tree_nop_conversion_p): Do not strip casts into or
6278         out of non-standard address spaces.
6280 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
6282         PR rtl-optimization/69691
6283         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6285 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
6287         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6288         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6289         (*ieee128_mfvsrd_64bit): Likewise.
6290         (*ieee128_mfvsrd_32bit): Likewise.
6292 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6294         PR target/69369
6295         Revert r232560:
6296         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
6298         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6299         instrumented_version.
6301 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
6303         * doc/invoke.texi (Optimize Options): In table of --param options
6304         rename second occurrence of tracer-min-branch-ratio to
6305         tracer-min-branch-probability, rename
6306         tracer-min-branch-ratio-feedback to
6307         tracer-min-branch-probability-feedback and clarify description,
6308         rename sched-spec-state-edge-prob-cutoff to
6309         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6310         to selsched-insns-to-rename, rename lto-minpartition to
6311         lto-min-partition, delete reorder-blocks-duplicate and
6312         reorder-blocks-duplicate-feedback.
6314 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6316         * config/s390/s390.c (s390_register_info_set_ranges): Remove
6317         superfluous loops.
6319 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6321         * doc/extend.texi: S/390: Correct some typos.
6323 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6325         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6327 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6329         PR target/69625
6330         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6331         (s390_register_info_gprtofpr): Use new macros above.
6332         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6333         its name.
6334         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6335         its name.  Adjust restore and save gpr ranges.
6336         (s390_register_info_set_ranges): New function.
6337         (s390_register_info): Use new macros above.  Call
6338         s390_register_info_set_ranges.
6339         (s390_optimize_register_info): Likewise.
6340         (s390_hard_regno_rename_ok): Use new macros.
6341         (s390_hard_regno_scratch_ok): Likewise.
6342         (s390_emit_epilogue): Likewise.
6343         (s390_can_use_return_insn): Likewise.
6344         (s390_optimize_prologue): Likewise.
6345         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6347 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
6349         PR bootstrap/69677
6350         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6351         alignment fixes.
6352         (ix86_option_override_internal): Disable TARGET_STV even for
6353         -m{incoming,preferred}-stack-boundary=3.
6355 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6357         * config.gcc: Mark deprecated rtems targets as obsolete.
6359 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
6361         PR rtl-optimization/64682
6362         PR rtl-optimization/69567
6363         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6364         before I2 only if the register is both used and set in I2.
6366 2016-02-04  DJ Delorie  <dj@redhat.com>
6368         * config/msp430/msp430.c (msp430_start_function): Add function type.
6370 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
6372         PR fortran/69368
6373         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6375 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
6377         PR rtl-optimization/69577
6378         Revert:
6379         2015-10-29  Richard Henderson  <rth@redhat.com>
6381         PR target/68124
6382         PR rtl-opt/67609
6383         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6384         sse check to the exact conditions of PR 67609.
6386 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
6388         PR target/69667
6389         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6390         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6391         not allowed into the traditional Altivec registers.
6392         (movtd_64bit_nodm): Likewise.
6393         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6395 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
6397         * config/aarch64/cortex-a57-fma-steering.c
6398         (aarch64_register_fma_steering): Remove "static" from arguments
6399         to register_pass.
6401 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
6403         PR target/69619
6404         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6405         twice when complex.
6407 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
6409         * doc/invoke.texi: Delete -mno-fma4.
6411 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
6413         PR rtl-optimization/69577
6414         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6415         (find_subregs_of_mode): Update accordingly.  Iterate over partial
6416         definitions.
6418 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
6420         * config/arm/arm-protos.h (neon_reinterpret): Remove.
6421         * config/arm/arm.c (neon_reinterpret): Remove.
6422         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6423         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6424         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6425         vreinterpretti): Remove.
6426         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6427         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6428         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6429         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6430         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6431         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6432         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6433         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6434         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6435         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6436         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6437         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6438         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6439         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6440         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6441         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6442         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6443         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6444         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6445         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6446         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6447         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6448         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6449         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6450         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6451         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6452         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6453         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6454         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6455         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6456         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6457         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6458         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6459         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6460         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6461         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6462         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6463         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6464         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6465         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6466         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6467         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6468         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6469         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6470         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6471         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6472         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6473         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6474         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6475         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6476         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6477         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6478         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6479         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6480         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6481         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6482         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6483         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6484         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6485         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6486         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6487         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6488         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6489         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6490         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6491         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6492         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6493         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6494         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6495         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6496         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6497         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6498         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6499         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6500         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6501         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6502         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6503         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6504         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6505         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6506         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6507         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6508         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6509         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6510         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6511         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6512         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6513         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6514         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6515         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6516         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6517         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6518         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6519         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6520         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6521         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6522         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6523         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6524         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6525         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6526         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6527         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6528         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6530 2016-02-04  Martin Liska  <mliska@suse.cz>
6532         PR sanitizer/69276
6533         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6534         that are gimple_store_p.
6535         (maybe_instrument_call): Likewise.
6537 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
6539         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6540         register scaling out of memory reference and comment why.
6542 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6544         PR target/65932
6545         PR target/67714
6546         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6547         folding the source of a SET.
6549 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6551         PR target/65932
6552         PR target/67714
6553         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6554         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6556 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
6558         PR target/65932
6559         PR target/67714
6560         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6561         HImode.
6563 2016-02-04  Christian Bruel  <christian.bruel@st.com>
6565         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6566         * config/arm/arm.c (arm_set_current_function): Likewise.
6568 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
6569             Ilya Enkovich  <enkovich.gnu@gmail.com>
6570             H.J. Lu  <hongjiu.lu@intel.com>
6572         PR target/69454
6573         * config/i386/i386.c (convert_scalars_to_vector): Remove
6574         stack alignment fixes.
6575         (ix86_option_override_internal): Disable TARGET_STV if stack
6576         might not be aligned enough.
6577         (ix86_minimum_alignment): Assert that TARGET_STV is false.
6579 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
6581         * gcc/config/i386/x86-tune.def: Disable default prefetching
6582         for -march=znver1.
6584 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6585             Vladimir Makarov  <vmakarov@redhat.com>
6587         PR target/69461
6588         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6589         in validating fused toc addresses.
6591 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
6593         PR c/69627
6594         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6595         range->m_caret fields if range->m_show_caret_p is false.
6597         PR target/69644
6598         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6599         Force oldval into register if it does not satisfy reg_or_short_operand
6600         predicate.  Fix up formatting.
6602 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
6603             Alexandre Oliva  <aoliva@redhat.com>
6605         PR target/69461
6606         * lra-constraints.c (simplify_operand_subreg): Check additionally
6607         address validity after potential reloading.
6608         (process_address_1): Check insns validity.  In case of failure do
6609         nothing.
6611 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
6613         PR target/69118
6614         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6615         Fix target.
6617 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
6619         * wide-int.cc (canonize_uhwi): New function.
6620         (wi::divmod_internal): Use it.
6622 2016-02-02  James Norris  <jnorris@codesourcery.com
6624         * gimplify.c (omp_notice_variable): Add usage check.
6626 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6628         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6629         like LE, GE, LT, GT when emitting relational operator.
6631 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6633         * ira-costs.c (find_costs_and_classes): Add extra argument.
6634         * target.def (ira_change_pseudo_allocno_class): Add parameter.
6635         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6636         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6637         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6638         Add best_class parameter, and return it if not ALL_REGS.
6639         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6640         Add parameter.
6641         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6642         Update target hook.
6644 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6646         * config/aarch64/aarch64.c
6647         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6648         (aarch64_ira_change_pseudo_allocno_class): New function.
6650 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
6652         PR target/67032
6653         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6655 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6657         * config/avr/avr.c (avr_option_override): Set
6658         PARAM_ALLOW_STORE_DATA_RACES to 1.
6660 2016-02-02  Richard Biener  <rguenther@suse.de>
6662         PR tree-optimization/69595
6663         * match.pd: Add range test simplifications to true/false.
6665 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6667         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6668         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6669         instead.
6671 2016-02-02  Richard Biener  <rguenther@suse.de>
6673         PR tree-optimization/69606
6674         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6675         info on the result before moving a stmt.
6677 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
6679         PR middle-end/68542
6680         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6681         branch with vector comparison.
6682         * config/i386/sse.md (VI48_AVX): New mode iterator.
6683         (define_expand "cbranch<mode>4): Add support for conditional branch
6684         with vector comparison.
6685         * tree-vect-loop.c (optimize_mask_stores): New function.
6686         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6687         has_mask_store field of vect_info.
6688         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6689         vectorized loops having masked stores after vec_info destroy.
6690         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6691         correspondent macros.
6692         (optimize_mask_stores): Add prototype.
6694 2016-02-02  Alan Modra  <amodra@gmail.com>
6696         PR target/69548
6697         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6698         allow subregs.
6700 2016-02-02  Alan Modra  <amodra@gmail.com>
6702         PR target/68662
6703         * config/rs6000/rs6000.c (need_toc_init): New var, set it
6704         whenever toc_label_name used.
6705         (rs6000_file_start): Don't set up toc section here,
6706         (rs6000_output_function_epilogue): do so here instead,
6707         (rs6000_xcoff_file_start): and here.
6708         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6709         (load_toc_aix_di): Likewise.
6711 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6713         PR rtl-optimization/69592
6714         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6715         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6716         (num_sign_bit_copies_binary_arith_p): New inline function.
6717         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6719 2016-02-01  Jeff Law  <law@redhat.com>
6721         PR tree-optimization/69580
6722         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6723         * tree-ssa-threadbackward.c
6724         (fsm_find_control_statement_thread_paths): Do not try to walk
6725         through large PHI nodes.
6727 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6729         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
6730         when count is incremented above limit, don't analyze further
6731         insns afterwards.
6733         * omp-low.c (oacc_parse_default_dims): Avoid
6734         -Wsign-compare warning, make sure value fits into int
6735         rather than just unsigned int.
6737 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
6739         PR tree-optimization/67921
6740         * fold-const.c (split_tree): New parameters.  Convert pointer
6741         type variable part to proper type before negating.
6742         (fold_binary_loc): Pass new arguments to split_tree.
6744 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
6746         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
6747         (nvptx_goacc_validate_dims): Extend to handle global defaults.
6748         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
6749         * doc/tm.texti: Rebuilt.
6750         * doc/invoke.texi (fopenacc-dim): Document.
6751         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
6752         (append_compiler_options): Likewise.
6753         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
6754         (oacc_parse_default_dims): New.
6755         (oacc_validate_dims): Add USED arg.  Select non-unity default when
6756         possible.
6757         (oacc_loop_fixed_partitions): Return mask of used partitions.
6758         (oacc_loop_auto_partitions): Emit dump info.
6759         (oacc_loop_partition): Return mask of used partitions.
6760         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
6761         loop partitioning and validation calls.
6763 2016-02-01  Richard Biener  <rguenther@suse.de>
6765         PR middle-end/69556
6766         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
6768 2016-02-01  Richard Biener  <rguenther@suse.de>
6770         PR tree-optimization/69574
6771         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
6772         of asserting return chrec_dont_know.
6774 2016-02-01  Martin Liska  <mliska@suse.cz>
6776         * mem-stats-traits.h: Add copyright header.
6777         * mem-stats.h: Likewise.
6779 2016-02-01  Richard Biener  <rguenther@suse.de>
6781         PR tree-optimization/69579
6782         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
6783         Do not propagate through abnormal PHI results.
6785 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
6787         * postreload.c (reload_cse_simplify): Remove dead code.
6789 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6791         PR rtl-optimization/69570
6792         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
6793         if there is more than one set, not if there is a single set.
6795 2016-02-01  Richard Henderson  <rth@redhat.com>
6797         PR rtl-opt/69535
6798         * combine.c (make_compound_operation): When looking through a
6799         subreg, make sure to re-extend to the width of the outer mode.
6801 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
6803         PR tree-optimization/69546
6804         * wide-int.cc (wi::divmod_internal): For unsigned division
6805         where both operands fit into uhwi, if o1 is 1 and o0 has
6806         msb set, if divident_prec is larger than bits per hwi,
6807         clear another quotient word and return 2 instead of 1.
6808         Similarly for remainder with msb in HWI set, if dividend_prec
6809         is larger than bits per hwi.
6811 2016-01-29  Martin Jambor  <mjambor@suse.cz>
6813         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
6814         Use short lowercase names.
6815         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
6816         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
6817         acq_rel one.  Protect warning agains segfaults if
6818         get_memory_order_name returns NULL.
6819         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
6820         with release semantics.  Do not warn if get_memory_order already did.
6821         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
6822         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
6823         if get_memory_order already did.
6825 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
6827         * doc/install.texi: Document that isl-0.16 is supported.
6829 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
6831         PR target/69299
6832         * config/i386/constraints.md (Bm): Describe as special memory
6833         constraint.
6834         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
6835         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6836         * genpreds.c (struct constraint_data): Add is_special_memory.
6837         (have_special_memory_constraints, special_memory_start): New
6838         static vars.
6839         (special_memory_end): Ditto.
6840         (add_constraint): Add new arg is_special_memory.  Add code to
6841         process its true value.  Update have_special_memory_constraints.
6842         (process_define_constraint): Pass the new arg.
6843         (process_define_register_constraint): Ditto.
6844         (choose_enum_order): Process special memory.
6845         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
6846         function insn_extra_special_memory_constraint.
6847         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6848         * gensupport.c (process_rtx): Process
6849         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
6850         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
6851         * ira-lives.c (single_reg_class): Use
6852         insn_extra_special_memory_constraint.
6853         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
6854         * lra-constraints.c (process_alt_operands): Ditto.
6855         (curr_insn_transform): Use insn_extra_special_memory_constraint.
6856         * recog.c (asm_operand_ok, preprocess_constraints): Process
6857         CT_SPECIAL_MEMORY.
6858         * reload.c (find_reloads): Ditto.
6859         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
6860         * stmt.c (parse_input_constraint): Use
6861         insn_extra_special_memory_constraint.
6863 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6865         PR target/69530
6866         * lra-splill.c (lra_final_code_change): Revert r229087 by
6867         removing all sub-registers.
6869 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
6871         PR target/65604
6872         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
6874 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
6876         PR target/69551
6877         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
6878         SSE1, copy target into the temporary reg first before recursing
6879         on it.
6881 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
6883         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
6884         with vm.
6886 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
6888         * ginclude/stdarg.h: Test __cplusplus instead of
6889         __GXX_EXPERIMENTAL_CXX0X__.
6891 2016-01-29  Richard Biener  <rguenther@suse.de>
6893         PR tree-optimization/69547
6894         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
6895         Do not mark clobbers necessary.
6896         (mark_all_reaching_defs_necessary_1): Likewise.
6898 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6900         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
6901         declaration name with %qs and print it in both error messages.
6902         Also fix indentation.
6904 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6906         PR other/69006
6907         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
6908         trailing blank line from error message.
6910 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
6912         PR c++/69462
6913         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
6914         for C++-11.
6916 2016-01-29  Richard Biener  <rguenther@suse.de>
6918         PR middle-end/69537
6919         * match.pd: Allow all integral types when simplifying a
6920         widening or sign-changing conversion.
6922 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6924         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
6925         back to setting codegen_error to fail codegen.
6927 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
6929         PR target/69459
6930         * config/i386/constraints.md (C): Only accept constant zero operand.
6931         (BC): New constraint.
6932         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
6933         instead of C constraint.
6934         * doc/md.texi (Machine Constraints): Update description
6935         of C constraint.
6937 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
6939         PR target/68400
6940         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
6942 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
6944         PR middle-end/69542
6945         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
6946         non-debug insns.
6948 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
6950         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
6951         branches if using guessed profile.
6953 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
6955         * graphite-optimize-isl.c (optimize_isl): Fix dump.
6957 2016-01-28  Richard Henderson  <rth@redhat.com>
6959         PR target/69305
6960         * config/aarch64/aarch64-modes.def (CC_Cmode): New
6961         * config/aarch64/aarch64-protos.h: Update.
6962         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
6963         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
6964         (aarch64_get_condition_code_1): Handle CC_Cmode.
6965         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
6966         (*add<mode>3_compareC_cconly_imm): New.
6967         (*add<mode>3_compareC_cconly): New.
6968         (*add<mode>3_compareC_imm): New.
6969         (add<mode>3_compareC): New.
6970         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
6971         to be first.  Use aarch64_carry_operation.
6972         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
6973         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
6974         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
6975         (subti3): Use subdi3_compare1.
6976         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
6977         (sub<mode>3_compare1): New.
6978         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
6979         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
6980         (*subsi3_carryin_uxtw): Likewise.
6981         (*ngc<mode>, *ngcsi_uxtw): Likewise.
6982         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
6983         * config/aarch64/iterators.md (DWI): New.
6984         * config/aarch64/predicates.md (aarch64_carry_operation): New.
6985         (aarch64_borrow_operation): New.
6987 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
6989         * graphite-optimize-isl.c (optimize_isl): Print a different debug
6990         message when isl does not return a valid schedule.
6992 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
6994         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
6995         Remove comments from class declarations: they are already in the code
6996         close by the defs.
6998 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
7000         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
7001         codegen_error_p.
7002         (ternary_op_to_tree): Same.
7003         (unary_op_to_tree): Same.
7004         (nary_op_to_tree): Same.
7005         (gcc_expression_from_isl_expr_op): Same.
7006         (gcc_expression_from_isl_expression): Same.
7007         (graphite_create_new_loop): Same.
7008         (graphite_create_new_loop_guard): Same.
7009         (build_iv_mapping): Same.
7010         (graphite_create_new_guard): Same.
7011         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
7012         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
7014 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
7016         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
7017         instead of setting codegen_error to fail codegen.
7019 2016-01-28  Jason Merrill  <jason@redhat.com>
7021         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
7023 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
7025         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7026         Remove CONST_INT_P check in CCMP cost calculation.
7028 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
7030         * config/aarch64/aarch64.c (generic_vector_cost):
7031         Set vec_permute_cost.
7032         (cortexa57_vector_cost): Likewise.
7033         (exynosm1_vector_cost): Likewise.
7034         (xgene1_vector_cost): Likewise.
7035         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
7036         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
7037         Add vec_permute_cost entry.
7039 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
7041         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
7042         immediate as %1.
7043         (add<mode>3_compare0): Likewise.
7044         (addsi3_compare0_uxtw): Likewise.
7045         (add<mode>3nr_compare0): Likewise.
7046         (compare_neg<mode>): Likewise.
7047         (<optab><mode>3): Likewise.
7049 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
7051         * tree-vect-stmts.c (vectorizable_comparison): Add
7052         NULL check for vectype.
7054 2016-01-28  Richard Biener  <rguenther@suse.de>
7056         PR tree-optimization/69466
7057         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7058         Account for PHIs we couldn't duplicate.
7060 2016-01-28  Martin Liska  <mliska@suse.cz>
7062         PR pch/68758
7063         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
7064         instead of ENABLE_VALGRIND_CHECKING.
7066 2016-01-27  Richard Henderson  <rth@redhat.com>
7068         PR rtl-opt/69447
7069         * lra-remat.c (subreg_regs): New.
7070         (dump_candidates_and_remat_bb_data): Dump it.
7071         (operand_to_remat): Reject if operand in subreg_regs.
7072         (set_bb_regs): Collect subreg_regs.
7073         (lra_remat): Init and free subreg_regs.  Compute
7074         calculate_local_reg_remat_bb_data before create_cands.
7076 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
7078         PR target/68986
7079         * config/i386/i386.c (ix86_update_stack_boundary): Don't
7080         change stack_alignment_needed for __tls_get_addr call.
7082 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
7084         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
7086 2016-01-27  Jeff Law  <law@redhat.com>
7088         PR tree-optimization/68398
7089         PR tree-optimization/69196
7090         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
7091         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
7092         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7093         Only count PHIs in the last block in the path.  The others will
7094         const/copy propagate away.  Add heuristic to allow more irreducible
7095         subloops to be created when it is likely profitable to do so.
7097         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7098         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
7099         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
7101 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
7103         PR lto/69254
7104         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
7105         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
7106         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
7107         * tree-streamer-in.c: Include asan.h.
7108         (streamer_get_builtin_tree): For builtins in sanitizer
7109         range call initialize_sanitizer_builtins and retry.
7111 2016-01-27  Ian Lance Taylor  <iant@google.com>
7113         * common.opt (fkeep-gc-roots-live): New undocumented option.
7114         * tree-ssa-loop-ivopts.c (add_candidate_1): If
7115         -fkeep-gc-roots-live, skip pointers.
7116         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
7117         NULL.
7119 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
7121         PR target/69512
7122         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
7123         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
7125 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
7127         PR target/68380
7128         * configure.ac: NetBSD provides SSP in its C library.
7129         * configure: Updated.
7131 2016-01-27  Richard Biener  <rguenther@suse.de>
7133         PR tree-optimization/69166
7134         * tree-vect-loop.c (vect_is_simple_reduction): Always check
7135         reduction code for commutativity / associativity.
7137 2016-01-27  Martin Jambor  <mjambor@suse.cz>
7139         PR tree-optimization/69355
7140         * tree-sra.c (analyze_access_subtree): Correct hole detection when
7141         total_scalarization fails.
7143 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
7145         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
7146         power9.
7148 2016-01-27  Christian Bruel  <christian.bruel@st.com>
7150         PR target/69245
7151         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
7152         Move arm_reset_previous_fndecl and set_target_option_current_node in
7153         the conditional part.  Call save_restore_target_globals.
7154         * config/arm/arm.c (arm_set_current_function):
7155         Refactor to better support #pragma target and attribute mix.
7156         Call save_restore_target_globals.
7157         * config/arm/arm-protos.h (save_restore_target_globals): New function.
7159 2016-01-27  Martin Liska  <mliska@suse.cz>
7161         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
7162         reference for an HSA kernel and its host function.
7164 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
7166         PR tree-optimization/69399
7167         * wide-int.h (wi::lrshift): For larger precisions, only
7168         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7170 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
7172         * config/arc/predicates.md (proper_comparison_operator): Reject
7173         constant-constant comparison.
7175 2016-01-26  Tom de Vries  <tom@codesourcery.com>
7177         PR tree-optimization/69110
7178         * tree-data-ref.c (initialize_data_dependence_relation): Handle
7179         DR_NUM_DIMENSIONS == 0.
7181 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7182             Sebastian Pop  <s.pop@samsung.com>
7184         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7185         isl_ast_op_cond and isl_ast_op_select.
7186         (gcc_expression_from_isl_expr_op): Same.
7188 2016-01-26  Jason Merrill  <jason@redhat.com>
7190         PR c++/68782
7191         * tree.c (recompute_constructor_flags): Split out from
7192         build_constructor.
7193         (verify_constructor_flags): New.
7194         * tree.h: Declare them.
7196 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
7198         PR rtl-optimization/69217
7199         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7200         are no TYPE_FIELDS set for the record type.
7202 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7204         PR target/68662
7205         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7206         toc_label_name unconditionally.
7207         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7208         SYMBOL_REF string.  Use toc_label_name instead of constructing
7209         LCTOC1.
7210         (rs6000_elf_declare_function_name): Use toc_label_name instead of
7211         constructing LCTOC1.
7213 2016-01-26  Martin Sebor  <msebor@redhat.com>
7215         PR other/69477
7216         * doc/extend.texi (Common Type Attributes): Move text that talks about
7217         attribute packed from attribute aligned to the section discussing
7218         the former attribute for clarity.
7220 2016-01-26  Richard Henderson  <rth@redhat.com>
7222         PR middle-end/60908
7223         * trans-mem.c (tm_region_init): Mark entry block as visited.
7225 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
7227         PR other/69006
7228         * diagnostic-show-locus.c (layout::print_source_line): Replace
7229         call to pp_newline with call to layout::print_newline.
7230         (layout::print_annotation_line): Likewise.
7231         (layout::move_to_column): Likewise.
7232         (layout::print_any_fixits): After printing any fixits, print a
7233         trailing newline, if necessary.
7234         (layout::print_newline): New method, resetting any colorization
7235         before a newline.
7236         (diagnostic_show_locus): Move the pp_newline to before the
7237         early bailout.  Remove dummy block enclosing the layout instance.
7238         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7239         of pp_newline_and_flush with pp_flush.
7240         (diagnostic_append_note): Delete use of pp_newline.
7241         (diagnostic_append_note_at_rich_loc): Delete.
7242         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7243         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7244         when newline characters are added to the buffer.
7246 2016-01-26  Michael Matz  <matz@suse.de>
7248         * configure.ac (ac_cv_std_swap_in_utility): New test.
7249         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7250         * configure: Regenerate.
7251         * config.in: Regenerate.
7253 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
7255         * config/arc/arc.md (cstoresi4): Force operand into register.
7256         (arcset<code>): Fix predicate.
7257         (arcsetltu): Likewise.
7258         (arcsetgeu): Likewise.
7259         (arcsethi): Likewise.
7260         (arcsetls): Likewise.
7262 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7264         PR tree-optimization/69483
7265         * gimple-fold.c (canonicalize_constructor_val): Return NULL
7266         if base has error_mark_node type.
7268 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
7270         PR target/68620
7271         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7272         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7273         New helper macros.
7274         (vget_lane_f16): Handle big-endian.
7275         (vgetq_lane_f16): Likewise.
7276         (vset_lane_f16): Likewise.
7277         (vsetq_lane_f16): Likewise.
7278         * config/arm/iterators.md (VQXMOV): Add V8HF.
7279         (VDQ): Add V4HF and V8HF.
7280         (V_reg): Handle V4HF and V8HF.
7281         (Is_float_mode): Likewise.
7282         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7283         neon_vdup_nv8hf): New patterns.
7284         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7285         Use VD_LANE iterator.
7286         (neon_vld1_dup<mode>): Use VQ2 iterator.
7288 2016-01-26  Nathan Sidwell  <nathan@acm.org>
7290         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7291         (set_oacc_fn_attrib): Add IS_KERNEL arg.
7292         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7293         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7294         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7295         (oacc_validate_dims): Add LEVEL arg, don't return level.
7296         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7297         oacc_validate_dims.
7298         (execute_oacc_device_lower): Adjust, add more dump output.
7299         * tree-ssa-loop.c (gate_oacc_kernels): Use
7300         oacc_fn_attrib_kernels_p.
7301         * tree-parloops.c (create_parallel_loop): Adjust
7302         set_oacc_fn_attrib call.
7304 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7306         PR lto/69254
7307         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7308         (append_compiler_options): Handle -fcilkplus.
7309         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7311 2016-01-26  Nick Clifton  <nickc@redhat.com>
7313         PR target/66655
7314         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7315         been marked as DECL_ONE_ONLY but we do not the means to make it
7316         so, then do not allow it to bind locally.
7318 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7320         PR lto/69254
7321         * opts.h (parse_sanitizer_options): New prototype.
7322         * opts.c (sanitizer_opts): New array.
7323         (parse_sanitizer_options): New function.
7324         (common_handle_option): Use parse_sanitizer_options.
7326 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
7328         PR target/68986
7329         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7330         alignment adjustment to ...
7331         (ix86_update_stack_boundary): Here.  Don't over-align stack for
7332         __tls_get_addr.
7333         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7334         if __tls_get_addr is called.
7336 2016-01-26  Christian Bruel  <christian.bruel@st.com>
7338         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7340 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7342         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7344 2016-01-26  Richard Biener  <rguenther@suse.de>
7346         PR middle-end/69467
7347         * match.pd: Guard X * CST CMP 0 pattern with single_use.
7349 2016-01-26  Richard Biener  <rguenther@suse.de>
7351         PR tree-optimization/69452
7352         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7353         (move_computations_dom_walker::before_dom_children): Rename
7354         to ...
7355         (move_computations_worker): This.
7356         (move_computations): Perform an RPO rather than a DOM walk.
7358 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7360         PR target/69442
7361         * combine.c (combine_instructions): For REG_EQUAL note with
7362         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7363         to the underlying register.
7364         * doc/rtl.texi (REG_EQUAL): Document the behavior of
7365         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7367 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
7369         PR target/67896
7370         * config/aarch64/aarch64-builtins.c
7371         (aarch64_init_simd_builtin_types): Do not set structural
7372         equality to __Poly{8,16,64,128}_t types.
7374 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
7376         PR tree-optimization/69400
7377         * wide-int.cc (wi_pack): Take the precision as argument and
7378         perform canonicalization here rather than in the callers.
7379         Use the main loop to handle all full-width HWIs.  Add a
7380         zero HWI if in_len isn't a full result.
7381         (wi::divmod_internal): Update accordingly.
7382         (wi::mul_internal): Likewise.  Simplify.
7384 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
7385             Sebastian Pop  <s.pop@samsung.com>
7387         * graphite-poly.c (apply_poly_transforms): Simplify.
7388         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7389         (print_isl_map): Same.
7390         (print_isl_union_map): Same.
7391         (print_isl_schedule): New.
7392         (debug_isl_schedule): New.
7393         * graphite-dependences.c (scop_get_reads): Do not call
7394         isl_union_map_add_map that is undocumented isl functionality.
7395         (scop_get_must_writes): Same.
7396         (scop_get_may_writes): Same.
7397         (scop_get_original_schedule): Remove.
7398         (scop_get_dependences): Do not call isl_union_map_compute_flow that
7399         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
7400         (compute_deps): Remove.
7401         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7402         (debug_schedule_ast): New.
7403         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7404         set_separate_option.
7405         (graphite_regenerate_ast_isl): Add dump.
7406         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7407         from scop->transformed_schedule.
7408         (graphite_regenerate_ast_isl): Add more dump.
7409         * graphite-optimize-isl.c (optimize_isl): Set
7410         scop->transformed_schedule.  Check whether schedules are equal.
7411         (apply_poly_transforms): Move here.
7412         * graphite-poly.c (apply_poly_transforms): ... from here.
7413         (free_poly_bb): Static.
7414         (free_scop): Static.
7415         (pbb_number_of_iterations_at_time): Remove.
7416         (print_isl_ast): New.
7417         (debug_isl_ast): New.
7418         (debug_scop_pbb): New.
7419         * graphite-scop-detection.c (print_edge): Move.
7420         (print_sese): Move.
7421         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7422         (build_scop_scattering): Remove.
7423         (create_pw_aff_from_tree): Assert instead of bailing out.
7424         (add_condition_to_pbb): Remove unused code, do not fail.
7425         (add_conditions_to_domain): Same.
7426         (add_conditions_to_constraints): Remove.
7427         (build_scop_context): New.
7428         (add_iter_domain_dimension): New.
7429         (build_iteration_domains): Initialize pbb->iterators.
7430         Call add_conditions_to_domain.
7431         (nested_in): New.
7432         (loop_at): New.
7433         (index_outermost_in_loop): New.
7434         (index_pbb_in_loop): New.
7435         (outermost_pbb_in): New.
7436         (add_in_sequence): New.
7437         (add_outer_projection): New.
7438         (outer_projection_mupa): New.
7439         (add_loop_schedule): New.
7440         (build_schedule_pbb): New.
7441         (build_schedule_loop): New.
7442         (embed_in_surrounding_loops): New.
7443         (build_schedule_loop_nest): New.
7444         (build_original_schedule): New.
7445         (build_poly_scop): Call build_original_schedule.
7446         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7447         (free_poly_dr): Remove.
7448         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
7449         (free_poly_bb): Remove.
7450         (debug_loop_vec): Remove.
7451         (print_isl_ast): Declare.
7452         (debug_isl_ast): Declare.
7453         (scop_do_interchange): Remove.
7454         (scop_do_strip_mine): Remove.
7455         (scop_do_block): Remove.
7456         (flatten_all_loops): Remove.
7457         (optimize_isl): Remove.
7458         (pbb_number_of_iterations_at_time): Remove.
7459         (debug_scop_pbb): Declare.
7460         (print_schedule_ast): Declare.
7461         (debug_schedule_ast): Declare.
7462         (struct scop): Remove schedule.  Add original_schedule,
7463         transformed_schedule.
7464         (free_gimple_poly_bb): Remove.
7465         (print_generated_program): Remove.
7466         (debug_generated_program): Remove.
7467         (unify_scattering_dimensions): Remove.
7468         * sese.c (print_edge): ... here.
7469         (print_sese): ... here.
7470         (debug_edge): ... here.
7471         (debug_sese): ... here.
7472         * sese.h (print_edge): Declare.
7473         (print_sese): Declare.
7474         (dump_edge): Declare.
7475         (dump_sese): Declare.
7477 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
7478             Sebastian Pop  <s.pop@samsung.com>
7480         * Makefile.in: Set ISLVER in site.exp.
7482 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
7484         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7485         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
7486         through DECL_VALUE_EXPR for expansion.
7488 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7490         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7491         the frame info after reload completed.
7493 2016-01-25  Jeff Law  <law@redhat.com>
7495         PR tree-optimization/69196
7496         PR tree-optimization/68398
7497         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7498         tree-ssa-threadupdate.c.
7499         (determine_bb_domination_status): Prototype
7500         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7501         (determine_bb_domination_status): No longer static.
7502         (valid_jump_thread_path): Remove code to detect characteristics
7503         of the jump thread path not associated with correctness.
7504         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7505         Correct test for thread path length.  Count PHIs for real operands as
7506         statements that need to be copied.  Do not count ASSERT_EXPRs.
7507         Look at all the blocks in the thread path.  Compute and selectively
7508         filter thread paths based on threading through the latch, threading
7509         a multiway branch or crossing a multiway branch.
7511 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7513         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
7514         decl with __attribute__ ((unused)) annotation.
7516 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
7518         PR target/69421
7519         * tree-vect-stmts.c (vectorizable_condition): Check vectype
7520         of operands is compatible with a statement vectype.
7522 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
7524         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7525         improve wording for mixed storage order support.
7527 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
7529         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7530         (vcvt_u64_f64): Likewise.
7531         (vcvta_s64_f64): Likewise.
7532         (vcvta_u64_f64): Likewise.
7533         (vcvtm_s64_f64): Likewise.
7534         (vcvtm_u64_f64): Likewise.
7535         (vcvtn_s64_f64): Likewise.
7536         (vcvtn_u64_f64): Likewise.
7537         (vcvtp_s64_f64): Likewise.
7538         (vcvtp_u64_f64): Likewise.
7540 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
7542         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7543         (arc_init): Check validity mll64 option.
7544         (arc_save_restore): Use double load/store instruction.
7545         (arc_expand_movmem): Likewise.
7546         (arc_split_move): Don't split if we have double load/store
7547         instructions. Returns a boolean.
7548         (arc_process_double_reg_moves): Change function to return boolean
7549         instead of a sequence of instructions.
7550         (arc_dwarf_register_span): New function.
7551         * config/arc/arc-protos.h (arc_split_move): Change prototype.
7552         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7553         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7554         (*movdf_insn): Likewise.
7555         * config/arc/arc.opt (mll64): New option.
7556         * config/arc/predicates.md (even_register_operand): New predicate.
7557         * doc/invoke.texi (ARC Options): Add mll64 documentation.
7559 2016-01-25  Richard Biener  <rguenther@suse.de>
7561         PR lto/69393
7562         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7563         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7564         DECL_NAMELESS.
7565         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7567 2016-01-25  Richard Biener  <rguenther@suse.de>
7569         PR tree-optimization/69376
7570         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7571         flag.
7572         (VN_INFO_ANTI_RANGE_P): New inline.
7573         (VN_INFO_RANGE_TYPE): Likewise.
7574         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7575         SSA_NAME_ANTI_RANGE_P.
7576         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7577         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7578         Properly query VN_INFO_RANGE_TYPE.
7580 2016-01-25  Nick Clifton  <nickc@redhat.com>
7582         PR target/66655
7583         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7585 2016-01-23  Tom de Vries  <tom@codesourcery.com>
7587         PR tree-optimization/69426
7588         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7589         removed clobber.
7591 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
7593         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7594         "the the" with "the" in the comments.
7595         * ipa-devirt.c (build_type_inheritance_graph,
7596         update_type_inheritance_graph): Likewise.
7597         * tree.c (build_function_type_list_1): Likewise.
7598         * cfgloopmanip.c (scale_loop_profile): Likewise.
7599         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7600         * gimple-ssa-split-paths.c
7601         (find_block_to_duplicate_for_splitting_paths): Likewise.
7602         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7603         * expr.c (convert_move): Likewise.
7604         * var-tracking.c (vt_stack_adjustments): Likewise.
7605         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7606         * tree-vrp.c (test_for_singularity): Likewise.
7608         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7609         directly instead of building a temporary tree.
7611         PR bootstrap/69434
7612         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7613         remove <algorithm> include.
7615 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7617         PR target/69432
7618         * config/i386/i386.c: Include dojump.h.
7619         (expand_small_movmem_or_setmem,
7620         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7621         fixes.
7622         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7623         if dynamic_check != -1.
7625 2016-01-21  Jeff Law  <law@redhat.com>
7627         PR middle-end/69347
7628         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7629         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
7630         into dominated_by_p.
7631         (cprop_into_successor_phis): Avoid unnecessary tests.
7633 2016-01-22  Richard Henderson  <rth@redhat.com>
7635         PR target/69416
7636         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7637         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7639 2016-01-22  Michael Matz  <matz@suse.de>
7641         * system.h (string, algorithm): Include only conditionally.
7642         (new): Include always under C++.
7643         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7644         * final.c (toplevel): Ditto.
7645         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7646         * genconditions.c (write_header): Make gencondmd.c define
7647         INCLUDE_STRING.
7648         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7650         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7651         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7653 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7655         PR target/68674
7656         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7658 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7660         PR target/69403
7661         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7662         define_insn_and_split.  Ensure operands[1] and operands[0] do not
7663         get assigned the same register.
7665 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7667         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7669 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7671         * config/arm/arm-c.c (arm_pragma_target_parse):
7672         Remove warn_builtin_macro_redefined overwrite.
7674 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7676         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7677         flag_non_call_exceptions compatibility.
7679 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7681         PR debug/66668
7682         * dwarf2out.c (add_child_die_after): New function.
7683         (dwarf_qual_info_t): New type.
7684         (dwarf_qual_info): New variable.
7685         (qualified_die_p): New function.
7686         (modified_type_die): For -fdebug-types-section, ensure
7687         canonical order of qualifiers.  Put qualified DIEs adjacent
7688         to the corresponding non-qualified type DIE and search there
7689         for existing qualified DIEs.
7691 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7693         * doc/extend.texi (scalar_storage_order type attribute): Document
7694         restriction on type punning and aliasing, and remove future tense.
7696 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
7698         PR target/69252
7699         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7700         first stage.
7702 2016-01-21  Jeff Law  <law@redhat.com>
7704         PR middle-end/69347
7705         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7706         useless call to record_temporary_equivalences.
7707         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7708         allocate 10 slots in the bb_path vector and let it grow as needed.
7709         (fsm_find_control_statement_thread_paths): Similarly for the next_path
7710         vector.
7712 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7714         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7715         Detangle.
7716         * configure: Regenerate.
7718 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
7720         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7721         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7723 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
7725         PR middle-end/66178
7726         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7727         drop EXPAND_INITIALIZER.
7728         * rtl.h (contains_symbolic_reference_p): Declare.
7729         * rtlanal.c (contains_symbolic_reference_p): New function.
7730         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
7731         a subtraction into a NOT if symbolic constants are involved.
7733 2016-01-21  Anton Blanchard  <anton@samba.org>
7734             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7736         PR target/63354
7737         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
7738         #define.
7739         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
7740         function.
7742 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7744         * config/microblaze/microblaze.c
7745         (get_branch_target): New.
7746         (insert_wic_for_ilb_runout): New.
7747         (insert_wic): New.
7748         (microblaze_machine_dependent_reorg): New.
7749         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
7750         * config/microblaze/microblaze.md
7751         (UNSPEC_IPREFETCH): Define.
7752         (iprefetch): New pattern
7753         * config/microblaze/microblaze.opt
7754         (mxl-prefetch): New flag.
7756 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
7758         * config/microblaze/microblaze.h
7759         (FIXED_REGISTERS): Update in macro.
7760         (CALL_USED_REGISTERS): Update in macro.
7762 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
7764         PR rtl-optimization/68920
7765         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
7766         moves.
7768 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
7770         PR rtl-optimization/68990
7771         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
7772         pseudo instead of inheritance ones.
7774 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7775             Nick Clifton  <nickc@redhat.com>
7777         PR target/69129
7778         PR target/69012
7779         * config/mips/mips.c (mips_compute_frame_info): Initialise
7780         args_size and hard_frame_pointer_offset fields of the frame
7781         structure before calling mips_global_pointer.
7783 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7785         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
7786         label reference.
7787         * configure: Regenerate.
7789 2016-01-21  Richard Biener  <rguenther@suse.de>
7791         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
7793 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
7795         * config/s390/s390.c (s390_asm_declare_function_size): Add code
7796         to actually emit the .size directive.
7798 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
7799              Jakub Jelinek  <jakub@redhat.com>
7801         PR target/69187
7802         PR target/65624
7803         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
7804         args array size by one to avoid buffer overflow.
7806 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
7808         * config/s390/s390.md (pool_section_start): Use switch_to_section
7809         to select proper read-only data section instead of hardcoding
7810         .rodata.
7811         (pool_section_end): Use switch_to_section to match the above.
7813 2016-01-21  Richard Biener  <rguenther@suse.de>
7815         PR tree-optimization/69378
7816         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
7817         (set_ssa_val_to): Use it for dominance checks taking into
7818         account not executable edges.
7820 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
7822         PR c++/69355
7823         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
7824         for bitsize instead of GET_MODE_PRECISION (mode).
7826 2016-01-20  Martin Sebor  <msebor@redhat.com>
7828         PR c/52291
7829         * extend.texi (__sync Builtins): Clarify the semantics of
7830         __sync_fetch_and_OP built-ins on pointers.
7831         (__atomic Builtins): Same.
7833 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7834             Sebastian Pop  <s.pop@samsung.com>
7836         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
7837         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
7838         (is_valid_rename): Same.
7839         (translate_isl_ast_to_gimple::get_rename): Same.
7840         (translate_isl_ast_to_gimple::rename_all_uses): Same.
7841         (translate_isl_ast_to_gimple::rename_uses): Same.
7842         (get_new_name): Check for close_phi nodes.
7843         (copy_loop_phi_args): Use phi_node_kind.
7844         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
7845         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
7847 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7848             Sebastian Pop  <s.pop@samsung.com>
7850         Revert commit r229783.
7851         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
7852         Remove use of parameter_rename_map.
7853         (copy_def): Remove.
7854         (copy_internal_parameters): Remove.
7855         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
7856         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
7857         (free_sese_info): Do not free parameter_rename_map.
7858         (set_rename): Do not use parameter_rename_map.
7859         (rename_uses): Update call to set_rename.
7860         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
7861         * sese.h (parameter_rename_map_t): Remove.
7862         (struct sese_info_t): Remove field parameter_rename_map.
7864 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7865             Sebastian Pop  <s.pop@samsung.com>
7867         * graphite-isl-ast-to-gimple.c: Fix comment.
7868         * graphite-scop-detection.c (defined_in_loop_p): New.
7869         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
7870         names defined in loop.
7872 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7873             Sebastian Pop  <s.pop@samsung.com>
7875         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
7876         Discard unstructured if-then-else regions.
7878 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7879             Sebastian Pop  <s.pop@samsung.com>
7881         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
7882         (cleanup_loop_iter_dom): Remove.
7883         (build_loop_iteration_domains): Remove.
7884         (build_scop_context): Remove.
7885         (build_scop_iteration_domain): Remove.
7886         (add_loop_constraints): New.
7887         (build_iteration_domains): New.
7888         (build_poly_scop): Call build_iteration_domains.
7890 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7891             Sebastian Pop  <s.pop@samsung.com>
7893         * graphite-scop-detection.c
7894         (scop_detection::harmful_loop_in_region): Free dom and loops.
7895         (scop_detection::loop_body_is_valid_scop): Free bbs.
7897 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7898             Sebastian Pop  <s.pop@samsung.com>
7900         * graphite-scop-detection.c (record_loop_in_sese): New.
7901         (gather_bbs::before_dom_children): Call record_loop_in_sese.
7902         (build_scops): Remove call to build_sese_loop_nests.
7903         * sese.c (sese_record_loop): Remove.
7904         (build_sese_loop_nests): Remove.
7905         (new_sese_info): Remove region->loops.
7906         (free_sese_info): Same.
7907         * sese.h (sese_contains_loop): Same.
7908         (build_sese_loop_nests): Remove.
7909         (sese_contains_loop): Remove.
7911 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7912             Sebastian Pop  <s.pop@samsung.com>
7914         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
7915         loop_is_valid_in_scop.
7916         (scop_detection::harmful_stmt_in_region): Renamed
7917         harmful_loop_in_region.
7918         Call loop_is_valid_in_scop.
7920 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7921             Sebastian Pop  <s.pop@samsung.com>
7923         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
7924         isl_ast_node_mark.
7926 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7927             Sebastian Pop  <s.pop@samsung.com>
7929         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
7930         * graphite.h (struct poly_bb): Remove field is_reduction.
7931         (PBB_IS_REDUCTION): Remove.
7933 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
7934             Sebastian Pop  <s.pop@samsung.com>
7936         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
7937         (add_pdr_constraints): Same.
7938         (scop_get_reads): Same.
7939         (scop_get_must_writes): Same.
7940         (scop_get_may_writes): Same.
7941         (scop_get_original_schedule): Same.
7942         (extend_schedule): Same.
7943         (apply_schedule_on_deps): Same.
7944         (carries_deps): Same.
7945         (compute_deps): Same.
7946         (scop_get_dependences): Same.
7947         * graphite-isl-ast-to-gimple.c
7948         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
7949         * graphite-optimize-isl.c (get_schedule_for_band): Same.
7950         (get_schedule_for_band_list): Same.
7951         (get_schedule_map): Same.
7952         (apply_schedule_map_to_scop): Same.
7953         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
7954         (build_loop_iteration_domains): Same.
7955         (add_condition_to_pbb): Same.
7956         (add_param_constraints): Same.
7957         (pdr_add_memory_accesses): Same.
7958         (pdr_add_data_dimensions): Same.
7960 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
7962         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
7963         requirements.
7965 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
7967         * common.opt (feliminate-dwarf2-dups): Replace references to
7968         "DWARF 2" with just "DWARF".
7969         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
7970         * doc/extend.texi: Likewise.
7971         * doc/cpp.texi: Likewise.
7972         * doc/invoke.texi: Likewise.
7973         (Option Summary): Add -gdwarf to list of Debugging Options.
7974         (Debugging Options): Document -gdwarf.
7975         * doc/contrib.texi: Spell "DWARF" like that.
7977 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
7979         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
7980         warning.  Fix up formatting.
7982         PR middle-end/67653
7983         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
7984         attempt to mark memory input operand addressable and
7985         call prepare_gimple_addressable in that case.  Don't adjust
7986         input_location for diagnostics, use error_at instead.
7988 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
7990         * config/rs6000/ppc-auxv.h: New file.
7991         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
7992         (cpu_is): Likewise.
7993         (cpu_supports): Likewise.
7994         * config/rs6000/rs6000.c: include "ppc-auxv.h".
7995         (cpu_is_info): New variable.
7996         (cpu_supports_info): Likewise.
7997         (tcb_verification_symbol): Likewise.
7998         (cpu_builtin_p): Likewise.
7999         (cpu_expand_builtin): New function.
8000         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
8001         (rs6000_init_builtins): Likewise.
8002         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
8003         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
8004         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
8005         * configure: Regenerate.
8006         * config.in: Likewise.
8007         * doc/extend.texi (PowerPC Built-in Functions): Document
8008         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
8010 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
8012         PR target/68609
8013         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
8014         domain check.
8015         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
8016         for V4SFmode.
8018 2016-01-20  Richard Henderson  <rth@redhat.com>
8020         PR bootstrap/69343
8021         PR bootstrap/69339
8022         PR tree-opt/68964
8023         Revert:
8024         * tree.c (tm_define_builtin): New.
8025         (find_tm_vector_type): New.
8026         (build_tm_vector_builtins): New.
8027         (build_common_builtin_nodes): Call it.
8029 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
8031         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
8032         (arm_fp_ok): Likewise.
8033         (arm_fp): Likewise.
8034         (arm_crypto): Likewise.
8036 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
8037             Richard Biener  <rguenther@suse.de>
8039         PR tree-optimization/69328
8040         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
8041         vectors have same number of elements.
8042         (vectorizable_condition): Fix masked version recognition.
8044 2016-01-20  Richard Biener  <rguenther@suse.de>
8046         PR tree-optimization/69345
8047         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
8048         (VN_INFO_PTR_INFO): Likewise.
8049         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
8050         info when it is equal between non-dominating SSA names.
8051         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8052         Make sure to look at original SSA infos.
8054 2016-01-20  Jeff Law  <law@redhat.com>
8056         PR target/25114
8057         * config/m68k/predicates.md (pow2_m1_operand): New predicate
8058         extracted from ...
8059         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
8060         (pc_or_label_operand): New predicate.
8061         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
8062         tests for small integers that are 2^n - 1.
8064 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
8066         * doc/invoke.texi (Options Summary): Add '.' after @xref.
8068 2016-01-19  Jeff Law  <law@redhat.com>
8070         PR middle-end/69347
8071         * tree-ssa-threadbackwards.c
8072         (fsm_find_control_statement_thread_paths): Do not try to lookup
8073         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
8075 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
8077         * doc/lto.texi: Remove text that says only Gold has linker plugin
8078         support.
8080 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
8082         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
8083         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
8084         the DIE accordingly.
8085         (modified_type_die): Add REVERSE parameter and pass it recursively,
8086         as well as to base_type_die.  Adjust presence check accordingly.
8087         (base_type_for_mode): Adjust call to modified_type_die.
8088         (add_type_attribute): Add REVERSE parameter and pass it to
8089         modified_type_die.
8090         (generic_parameter_die): Adjust call to add_type_attribute.
8091         (add_scalar_info): Likewise.
8092         (add_subscript_info): Likewise.
8093         (gen_array_type_die): Likewise.
8094         (gen_descr_array_type_die): Likewise.
8095         (gen_entry_point_die): Likewise.
8096         (gen_enumeration_type_die): Likewise.
8097         (gen_formal_parameter_die): Likewise.
8098         (gen_subprogram_die): Likewise.
8099         (gen_variable_die ): Likewise.
8100         (gen_const_die): Likewise.
8101         (gen_field_die): Likewise.
8102         (gen_pointer_type_die): Likewise.
8103         (gen_reference_type_die): Likewise.
8104         (gen_ptr_to_mbr_type_die): Likewise.
8105         (gen_inheritance_die): Likewise.
8106         (gen_subroutine_type_die): Likewise.
8107         (gen_typedef_die): Likewise.
8108         (force_type_die): Adjust call to modified_type_die.
8110 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
8112         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
8113         flow throughout the file.  Fix broken link to Objective-C 2.0
8114         documentation.
8115         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
8116         errors.
8118 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8120         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
8122 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8124         PR ipa/66223
8125         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
8126         (maybe_record_node): Record cxa_pure_virtual as the only possible
8127         target if there are not ohter candidates.
8128         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
8130 2016-01-19  Richard Biener  <rguenther@suse.de>
8132         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
8133         (get_memory_order): Likewise.
8135 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
8137         * tree-vect-stmts.c (vectorizable_store): Check
8138         rhs vectype.
8140 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
8142         PR jit/68446
8143         * gcc.c (driver::decode_argv): Add call to
8144         init_opts_obstack before init_options_struct.
8145         * opts.c (init_opts_obstack): Remove idempotency.
8146         (init_options_struct): Replace call to init_opts_obstack
8147         with a gcc_assert to verify that it has already been called.
8148         * toplev.c (toplev::main): Add call to init_opts_obstack before
8149         calls to init_options_struct.
8150         (toplev::finalize): Move cleanup of opts_obstack next to
8151         cleanup of save_decoded_options, clearing the latter, and
8152         save_decoded_options_count.
8154 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8156         PR target/69135
8157         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
8158         attribute to unconditional.  Remove %? from output template.
8160 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8161             Jiong Wang  <jiong.wang@arm.com>
8163         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
8164         generated from different expand order.
8166 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8168         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8169         Add support for CCMP costing.
8171 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8173         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8174         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8175         (fccmpe<mode>): Likewise.
8176         (fcmp): Rename to fcmp and globalize pattern.
8177         (fcmpe): Likewise.
8178         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8179         (aarch64_gen_ccmp_next): Add FP support.
8181 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8183         * target.def (gen_ccmp_first): Update documentation.
8184         (gen_ccmp_next): Likewise.
8185         * doc/tm.texi (gen_ccmp_first): Update documentation.
8186         (gen_ccmp_next): Likewise.
8187         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8188         expand_ccmp_expr_1.  Improve comments.
8189         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8190         (ccmp_ior<mode>): Remove pattern.
8191         (cmp<mode>): Remove expand.
8192         (cmp): Globalize pattern.
8193         (cstorecc4): Use cc_register.
8194         (mov<mode>cc): Remove ccmp_cc_register check.
8195         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8196         Simplify after removal of CC_DNE/* modes.
8197         (aarch64_ccmp_mode_to_code): Remove.
8198         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
8199         In 'k' case use integer as condition.
8200         (aarch64_nzcv_codes): Remove inverted cases.
8201         (aarch64_code_to_ccmode): Remove.
8202         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
8203         comparison with CC register to be used in folowing CCMP/branch/CSEL.
8204         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8205         pattern.  Return the comparison with CC register.  Invert conditions
8206         when bitcode is OR.
8207         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8208         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8210 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8212         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8213         instrumented_version.
8215 2016-01-19  Richard Biener  <rguenther@suse.de>
8217         PR tree-optimization/69336
8218         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8219         handled components with get_ref_base_and_extent.
8220         (equal_mem_array_ref_p): Adjust.
8222 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
8224         PR debug/65779
8225         * shrink-wrap.c: Include valtrack.h.
8226         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
8227         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8228         in between insn and where it will be moved to.  Call
8229         dead_debug_insert_temp.
8230         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
8231         first and dead_debug_local_finish at the end.
8232         For uses and defs bitmap, handle all regs in between REGNO and
8233         END_REGNO, not just the first one.
8235 2016-01-19  Richard Biener  <rguenther@suse.de>
8237         PR tree-optimization/69352
8238         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8239         (equal_mem_array_ref_p): Constrain size and max size properly.
8240         Compare the reverse flag.
8242 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
8244         * ira.c (ira): Update regstat data if we deleted insns.
8246 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
8248         PR rtl-optimization/68955
8249         PR rtl-optimization/64557
8250         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8251         here.  Fix up formatting.
8252         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8254 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8256         PR lto/69133
8257         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8258         assume that the node has body.
8259         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8260         check.
8262 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8264         * lto-streamer-out.c (lto_output): Do not stream instrumentation
8265         thunks.
8267 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8269         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8270         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8272 2016-01-19  Martin Jambor  <mjambor@suse.cz>
8273             Martin Liska  <mliska@suse.cz>
8274             Michael Matz  <matz@suse.de>
8276         * Makefile.in (OBJS): Add new source files.
8277         (GTFILES): Add hsa.c.
8278         * common.opt (disable_hsa): New variable.
8279         (-Whsa): New warning.
8280         * config.in (ENABLE_HSA): New.
8281         * configure.ac: Treat hsa differently from other accelerators.
8282         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8283         $enable_offloading.
8284         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8285         * doc/install.texi (Configuration): Document --with-hsa-runtime,
8286         --with-hsa-runtime-include, --with-hsa-runtime-lib and
8287         --with-hsa-kmt-lib.
8288         * doc/invoke.texi (-Whsa): Document.
8289         (hsa-gen-debug-stores): Likewise.
8290         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8291         to invoke offload compiler for hsa acclerator.
8292         * opts.c (common_handle_option): Determine whether HSA offloading
8293         should be performed.
8294         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8295         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8296         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8297         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8298         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8299         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8300         GF_OMP_FOR_KIND_GRID_LOOP.
8301         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8302         (pp_gimple_stmt_1): Likewise.
8303         * gimple-walk.c (walk_gimple_stmt): Likewise.
8304         * gimple.c (gimple_build_omp_grid_body): New function.
8305         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8306         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8307         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8308         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8309         GF_OMP_TEAMS_GRID_PHONY.
8310         (gimple_statement_omp_single_layout): Updated comments.
8311         (gimple_build_omp_grid_body): New function.
8312         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8313         (gimple_omp_for_grid_phony): New function.
8314         (gimple_omp_for_set_grid_phony): Likewise.
8315         (gimple_omp_parallel_grid_phony): Likewise.
8316         (gimple_omp_parallel_set_grid_phony): Likewise.
8317         (gimple_omp_teams_grid_phony): Likewise.
8318         (gimple_omp_teams_set_grid_phony): Likewise.
8319         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8320         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8321         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8322         (BUILT_IN_GOMP_TARGET): Updated type.
8323         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8324         (adjust_for_condition): New function.
8325         (get_omp_for_step_from_incr): Likewise.
8326         (extract_omp_for_data): Moved parts to adjust_for_condition and
8327         get_omp_for_step_from_incr.
8328         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8329         (fixup_child_record_type): Bail out if receiver_decl is NULL.
8330         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8331         (scan_omp_parallel): Do not create child functions for phony
8332         constructs.
8333         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8334         (scan_omp_1_op): Checking assert we are not remapping to
8335         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
8336         (parallel_needs_hsa_kernel_p): New function.
8337         (expand_parallel_call): Register apprpriate parallel child
8338         functions as HSA kernels.
8339         (grid_launch_attributes_trees): New type.
8340         (grid_attr_trees): New variable.
8341         (grid_create_kernel_launch_attr_types): New function.
8342         (grid_insert_store_range_dim): Likewise.
8343         (grid_get_kernel_launch_attributes): Likewise.
8344         (get_target_argument_identifier_1): Likewise.
8345         (get_target_argument_identifier): Likewise.
8346         (get_target_argument_value): Likewise.
8347         (push_target_argument_according_to_value): Likewise.
8348         (get_target_arguments): Likewise.
8349         (expand_omp_target): Call get_target_arguments instead of looking
8350         up for teams and thread limit.
8351         (grid_expand_omp_for_loop): New function.
8352         (grid_arg_decl_map): New type.
8353         (grid_remap_kernel_arg_accesses): New function.
8354         (grid_expand_target_kernel_body): New function.
8355         (expand_omp): Call it.
8356         (lower_omp_for): Do not emit phony constructs.
8357         (lower_omp_taskreg): Do not emit phony constructs but create for them
8358         a temporary variable receiver_decl.
8359         (lower_omp_taskreg): Do not emit phony constructs.
8360         (lower_omp_teams): Likewise.
8361         (lower_omp_grid_body): New function.
8362         (lower_omp_1): Call it.
8363         (grid_reg_assignment_to_local_var_p): New function.
8364         (grid_seq_only_contains_local_assignments): Likewise.
8365         (grid_find_single_omp_among_assignments_1): Likewise.
8366         (grid_find_single_omp_among_assignments): Likewise.
8367         (grid_find_ungridifiable_statement): Likewise.
8368         (grid_target_follows_gridifiable_pattern): Likewise.
8369         (grid_remap_prebody_decls): Likewise.
8370         (grid_copy_leading_local_assignments): Likewise.
8371         (grid_process_kernel_body_copy): Likewise.
8372         (grid_attempt_target_gridification): Likewise.
8373         (grid_gridify_all_targets_stmt): Likewise.
8374         (grid_gridify_all_targets): Likewise.
8375         (execute_lower_omp): Call grid_gridify_all_targets.
8376         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8377         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8378         (tree_omp_clause): Added union field dimension.
8379         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8380         * tree.c (omp_clause_num_ops): Added number of arguments of
8381         OMP_CLAUSE__GRIDDIM_.
8382         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8383         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8384         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8385         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8386         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8387         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8388         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8389         * tree-pass.h (make_pass_gen_hsail): Declare.
8390         (make_pass_ipa_hsa): Likewise.
8391         * ipa-hsa.c: New file.
8392         * lto-section-in.c (lto_section_name): Add hsa section name.
8393         * lto-streamer.h (lto_section_type): Add hsa section.
8394         * timevar.def (TV_IPA_HSA): New.
8395         * hsa-brig-format.h: New file.
8396         * hsa-brig.c: New file.
8397         * hsa-dump.c: Likewise.
8398         * hsa-gen.c: Likewise.
8399         * hsa.c: Likewise.
8400         * hsa.h: Likewise.
8401         * toplev.c (compile_file): Call hsa_output_brig.
8402         * hsa-regalloc.c: New file.
8404 2016-01-18  Jeff Law  <law@redhat.com>
8406         PR tree-optimization/69320
8407         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8408         ranged object, do nothing if the RHS constant is not [0..1].
8409         (optimize_stmt): Comparing a boolean ranged object against a
8410         constant outside [0..1] results in a compile-time constant.
8412         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8413         test.
8415 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
8417         * doc/invoke.texi (Invoking GCC): Add new section to menu.
8418         (Option Summary): Update to reflect new section and moved options.
8419         (C++ Dialect Options): Move -fstats to new section.
8420         (Debugging Options): Move all dump, statistics, and other GCC
8421         developer options to new section.  Rewrite section introduction
8422         and re-order remaining options to put the more basic ones first.
8423         (Optimization Options): Move -fira-verbose and -flto-report* to
8424         new section.
8425         (Developer Options): New section incorporating moved options.
8426         * doc/cppopts.texi (-dM): Update cross-reference.
8428 2016-01-18  Richard Henderson  <rth@redhat.com>
8430         PR target/69176
8431         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8432         operands to pseudo only if CSE is expected.  Split long immediate
8433         operands only after reload, and for the stack pointer.
8434         (*add<GPI>3_pluslong): Remove.
8435         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8436         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
8437         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8438         (*add<GPI>3 peepholes): New.
8439         (*add<GPI>3 splitters): New.
8440         * config/aarch64/constraints.md (Upl): New.
8441         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8443 2016-01-18  Richard Biener  <rguenther@suse.de>
8445         PR tree-optimization/69297
8446         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8447         stmt at most once.
8448         (vect_bb_vectorization_profitable_p): Clear visited flag again.
8450 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
8452         PR middle-end/68542
8453         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8454         of mixind vector and scalar types.
8455         (fold_relational_const): Add handling of vector
8456         comparison with boolean result.
8457         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8458         comparison of vector operands with boolean result for EQ/NE only.
8459         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8460         (verify_gimple_cond): Likewise.
8461         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8462         valid type of VAL.
8464 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
8466         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8467         !TARGET_OCTEON.
8469 2016-01-18  Richard Biener  <rguenther@suse.de>
8471         PR middle-end/69308
8472         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8474 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8476         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8478 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8480         * omp-low.c (set_oacc_fn_attrib): Make extern.
8481         * omp-low.h (set_oacc_fn_attrib): Declare.
8482         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8483         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8484         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8485         Add and handle function parameter oacc_kernels_p.
8486         (find_reduc_addr, get_omp_data_i_param): New function.
8487         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8488         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8489         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8490         Calculate dominance info.  Skip loops that are not in a kernels region
8491         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
8492         (pass_parallelize_loops::execute): Call parallelize_loops with
8493         oacc_kernels_p argument.
8494         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8495         New member function.
8496         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8497         * passes.def: Add argument to pass_parallelize_loops instantation.
8499 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8501         * tree-parloops.c (pass_parallelize_loops::execute): Allow
8502         pass_parallelize_loops to be run outside the loop pipeline.
8504 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8506         * tree-scalar-evolution.c (follow_copies_to_constant): New.
8507         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8509 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8511         PR target/63679
8512         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8513         using get_ref_base_and_extent.
8514         (equal_mem_array_ref_p): New.
8515         (hashable_expr_equal_p): Add call to previous.
8517 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8519         PR target/63679
8520         * tree-sra.c (disqualified_constants, constant_decl_p): New.
8521         (sra_initialize): Allocate disqualified_constants.
8522         (sra_deinitialize): Free disqualified_constants.
8523         (disqualify_candidate): Update disqualified_constants when appropriate.
8524         (create_access): Scan for constant-pool entries as we go along.
8525         (scalarizable_type_p): Add check against type_contains_placeholder_p.
8526         (maybe_add_sra_candidate): Allow constant-pool entries.
8527         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8528         (initialize_constant_pool_replacements): New.
8529         (sra_modify_assign): Avoid mangling assignments created by previous,
8530         and don't generate writes into constant pool.
8531         (sra_modify_function_body): Call initialize_constant_pool_replacements.
8533 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8535         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8536         andnot instruction.
8537         (scalar_chain::convert_op): Likewise.
8538         * config/i386/i386.md (*andndi3_doubleword): New.
8540 2016-01-18  Richard Biener  <rguenther@suse.de>
8542         PR tree-optimization/69170
8543         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8544         building a vector from scalar results of a pattern stmt.
8546 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
8548         * haifa-sched.c (autopref_multipass_init): Work around
8549         -Wmaybe-uninitialized warning.
8551 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8553         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8554         against the constant 0.
8556 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8558         PR tree-optimization/68799
8559         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8560         look up phi candidates in the statement-candidate map.
8561         (phi_add_costs): Likewise.
8562         (record_phi_increments): Likewise.
8563         (phi_incr_cost): Likewise.
8564         (ncd_with_phi): Likewise.
8565         (all_phi_incrs_profitable): Likewise.
8567 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
8569         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8570         -Wmaybe-uninitialized warning.
8572 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
8574         * doc/invoke.texi (Invoking GCC): Add new section to menu.
8575         (Option Summary): Update to reflect new section and moved options.
8576         (C++ Dialect Options): Move -fvtable-verify and related options.
8577         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8578         and profiling-related options.
8579         (Optimization Options): Move profile generation options and
8580         -fstack-protector and related options.
8581         (Instrumentation Options): New section incorporating moved options.
8582         (Code Generation Options): Move -finstrument-functions and
8583         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8585 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8587         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8589 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8591         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
8593 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
8595         * hash-table.h (hash_table::empty): Turn into an inline wrapper
8596         that checks whether the table is already empty.  Rename the
8597         original implementation to...
8598         (hash_table::empty_slot): ...this new private function.
8600 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
8602         PR diagnostic/68899
8603         * diagnostic-show-locus.c (layout::print_source_line): Move x
8604         offset of line until after call to
8605         get_line_width_without_trailing_whitespace.
8607 2016-01-15  Jeff Law  <law@redhat.com>
8609         PR tree-optimization/69270
8610         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8611         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
8612         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8613         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8614         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8615         ssa_name_has_boolean_range and constant_boolean_node.
8617 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8619         PR rtl-optimization/69030
8620         * lra-spills.c (remove_pseudos): Check nrefs and make the function
8621         returning bool.
8622         (spill_pseudos): Delete debug insn for dead pseudo.
8623         (lra_spill): Initiate spill_hard_reg and slots memory separately.
8625 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
8627         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8628         New.
8629         (TYPES_UNOPUS): Likewise.
8630         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8631         builtin type, from UNOP to UNOPUS.
8632         (lbtruncuv4sf): Likewise.
8633         (lbtruncuv2df): Likewise.
8634         (lrounduv2sf): Likewise.
8635         (lrounduv4sf): Likewise.
8636         (lrounduv2df): Likewise.
8637         (lroundusf): Likewise.
8638         (lroundusf): Likewise.
8639         (lceiluv2sf): Likewise.
8640         (lceiluv4sf): Likewise.
8641         (lceiluv2df): Likewise.
8642         (lceilusf): Likewise.
8643         (lceiludf): Likewise.
8644         (lflooruv2sf): Likewise.
8645         (lflooruv4sf): Likewise.
8646         (lflooruv2df): Likewise.
8647         (lfloorusf): Likewise.
8648         (lfloorudf): Likewise.
8649         (lfrintnuv2sf): Likewise.
8650         (lfrintnuv4sf): Likewise.
8651         (lfrintnuv2df): Likewise.
8652         (lfrintnusf): Likewise.
8653         (lfrintnudf): Likewise.
8654         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8655         conversion.
8656         (vcvtq_u32_f32): Likewise.
8657         (vcvtq_u64_f64): Likewise.
8658         (vcvta_u32_f32): Likewise.
8659         (vcvtaq_u32_f32): Likewise.
8660         (vcvtaq_u64_f64): Likewise.
8661         (vcvtm_u32_f32): Likewise.
8662         (vcvtmq_u32_f32): Likewise.
8663         (vcvtmq_u64_f64): Likewise.
8664         (vcvtn_u32_f32): Likwise.
8665         (vcvtnq_u32_f32): Likewise.
8666         (vcvtnq_u64_f64): Likewise.
8667         (vcvtp_u32_f32): Likewise.
8668         (vcvtpq_u32_f32): Likewise.
8669         (vcvtpq_u64_f64): Likewise.
8670         (vcvtmd_u64_f64): Likewise.
8671         (vcvtms_u32_f32): Likewise.
8672         (vcvtad_u64_f64): Likewise.
8673         (vcvtas_u32_f32): Likewise.
8674         (vcvtnd_u64_f64): Likewise.
8675         (vcvtns_u32_f32): Likewise.
8676         (vcvtpd_u64_f64): Likewise.
8677         (vcvtps_u32_f32): Likewise.
8679 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8681         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8682         CSEL of zero_extended registers.
8684 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8686         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8687         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8689 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8691         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8692         false when argument string is not found in the attributes table
8693         at all.
8695 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
8697         PR target/68609
8698         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8699         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8700         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8701         precision estimate.
8703 2016-01-15  Richard Biener  <rguenther@suse.de>
8705         PR tree-optimization/66856
8706         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8707         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8708         (vect_create_new_slp_node): Increment stmt reference count.
8709         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8710         an SLP tree before swapping operands.
8711         (vect_build_slp_tree): Likewise.
8712         (destroy_bb_vec_info): Free stmt info after SLP instances.
8713         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8714         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8715         (STMT_VINFO_NUM_SLP_USES): New macro.
8717 2016-01-15  Richard Biener  <rguenther@suse.de>
8719         PR debug/69137
8720         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8721         (add_linkage_name): ... here.
8722         (gen_typedef_die): Use add_linkage_name_raw instead of
8723         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8724         if necessary.
8726 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
8728         * gimplify.c (oacc_default_clause): Decode reference and pointer
8729         types for both kernels and parallel regions.
8731 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
8733         PR middle-end/69246
8734         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
8736 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8738         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
8739         (convert_scalars_to_vector): Likewise.
8741 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
8743         * doc/extend.texi (Type Traits): Fix grammar.
8745 2016-01-15  Martin Jambor  <mjambor@suse.cz>
8747         * tree-inline.c (remap_decl): Use existing dclarations if
8748         remapping a type and prevent_decl_creation_for_types.
8749         (replace_locals_stmt): Do an initial remapping of non-VLA typed
8750         decls first.  Do real remapping with
8751         prevent_decl_creation_for_types set.
8752         * tree-inline.h (copy_body_data): New field
8753         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
8754         padding.
8756 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8758         * config/s390/s390.opt (mmvcle): More verbose help text.
8760 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8762         * config/s390/s390.opt: Add period to -mzvector option text.
8764 2016-01-15  Richard Biener  <rguenther@suse.de>
8766         PR tree-optimization/68961
8767         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
8768         of invariants in stores again.
8770 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
8772         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
8774 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
8776         * config/i386/i386.c (ix86_expand_branch): Don't split
8777         DI mode xor instruction to SI mode.
8779 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
8781         PR ipa/68148
8782         * ipa-icf.c (sem_function::merge): Virtual functions may become
8783         reachable even if they address is not taken and there are no
8784         idrect calls.
8786 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
8788         * lto-streamer-out.c (subtract_estimated_size): New function.
8789         (get_symbol_initial_value): Use it.
8791 2016-01-15  Christian Bruel  <christian.bruel@st.com>
8793         PR target/65837
8794         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
8795         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
8796         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
8797         use add_builtin_function_ext_scope instead of add_builtin_function.
8798         (neon_set_p, neon_crypto_set_p): Remove.
8799         (arm_init_builtins): Always call arm_init_neon_builtins and
8800         arm_init_crypto_builtins.
8801         (arm_expand_builtin): Check that builtins are allowed for the arch.
8802         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
8803         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
8804         arm_init_neon_builtins call.
8806 2016-01-15  Richard Biener  <rguenther@suse.de>
8808         PR tree-optimization/69117
8809         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
8810         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
8811         of the leader conservatively.
8812         (free_scc_vn): Restore original SSA name infos.
8814 2016-01-14  Jeff Law  <law@redhat.com>
8816         PR tree-optimization/69270
8817         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
8818         single bit of precision, verify it's also unsigned.
8819         (record_edge_info): Use constant_boolean_node rather than fold_convert
8820         to convert boolean_true/boolean_false to the right type.
8822 2016-01-14  Richard Henderson  <rth@redhat.com>
8824         PR rtl-opt/69014
8825         * loop-doloop.c (record_reg_sets): New.
8826         (doloop_optimize): Reject the transform if the sequence
8827         clobbers registers live at the end of the loop block.
8828         (doloop_optimize_loops): Enable df_live if needed.
8830 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
8832         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
8833         * gcc/config/rs6000/rs6000.c: Likewise.
8834         * gcc/config/rs6000/rs6000.h: Likewise.
8835         * gcc/config/rs6000/rs6000.md: Likewise.
8836         * gcc/doc/extend.texi: Likewsie.
8838 2016-01-14  Jeff Law  <law@redhat.com>
8840         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
8841         typo.
8843 2016-01-14  Richard Henderson  <rth@redhat.com>
8845         PR c/69272
8846         PR tree-opt/68964
8847         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
8848         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
8849         instead of builtin_decl_declared_p to test for declaration.
8851 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
8853         * doc/loop.texi (Loop Analysis and Representation): Document
8854         loop_depth function.
8856 2016-01-14  Tom de Vries  <tom@codesourcery.com>
8858         PR tree-optimization/68773
8859         * omp-low.c (expand_omp_target): Don't set force_output.
8860         * varpool.c (varpool_node::get_create): Same.
8861         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
8862         offload_funcs with force_output.
8864 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8866         PR debug/69244
8867         * lra-eliminations.c (move_plus_up): Don't change anything if either
8868         the outer or inner subreg mode is not MODE_INT.
8869         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
8870         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
8872 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
8874         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
8875         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
8876         reduc_uplus_@var{m}): Remove.
8877         * expr.c (expand_expr_real_2): Remove expansion path for
8878         reduc_[us](min|max|plus) optabs.
8879         * optabs-tree.c (scalar_reduc_to_vector): Remove.
8880         * optabs-tree.h (scalar_reduc_to_vector): Remove.
8881         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
8882         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
8883         * tree-vect-loop.c (vectorizable_reduction): Remove test for
8884         reduc_[us](min|max|plus) optabs.
8886 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
8888         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
8889         (reduc_plus_scal_v2sf): New.
8890         (reduc_smax_v2sf): Rename to...
8891         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
8892         (reduc_smin_v2sf): Rename to...
8893         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
8895 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
8897         * alias.c (compare_base_symbol_refs): New function.
8898         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
8899         it.
8901 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8903         PR middle-end/68146
8904         PR tree-optimization/69155
8905         * tree-complex.c: Include cfganal.h.
8906         (phis_to_revisit): New variable.
8907         (extract_component): Add phiarg_p argument.  Assert that returned
8908         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
8909         (update_phi_components): Partly rewrite to use loop over real/imag
8910         components instead of code duplication.  If extract_component returns
8911         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
8912         create_tmp_reg into the PHI node instead, and mention the phi triplet
8913         in phis_to_revisit.
8914         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
8915         in phis_to_revisit at the end.
8917 2016-01-14  Richard Biener  <rguenther@suse.de>
8919         PR tree-optimization/68060
8920         * tree-vect-loop.c (vect_is_simple_reduction): Check the
8921         outer loop reduction is only used in the inner loop before
8922         detecting a double reduction.
8924 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
8926         PR target/68269
8927         * combine.c (expand_field_assignment): Punt if compute_mode is
8928         unsupported scalar mode.
8930 2016-01-14  Richard Biener  <rguenther@suse.de>
8932         PR tree-optimization/66856
8933         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
8934         SLP node only if it built successfully.
8935         (vect_analyze_slp_instance): Adjust.
8937 2016-01-14  Jeff Law  <law@redhat.com>
8939         PR tree-optimization/69270
8940         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
8941         (record_edge_info): Use it.  Convert boolean_{true,false}_node
8942         to the type of op0.
8944 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
8946         PR ipa/66487
8947         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
8948         use block_ultimate_origin
8949         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
8951 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
8953         * doc/invoke.texi (Submodel Options): Rename section to
8954         "Machine-Dependent Options" to better reflect its content.
8955         Rewrite introductory text to remove archaic CPU names.
8956         Update references.
8958 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
8960         * doc/invoke.texi (Code Gen Options): Move section up in file,
8961         before target-specific options.  Update menu and option summary
8962         to reflect the new section ordering.
8964 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
8966         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
8967         (C++ Dialect Options): Add cross-reference to -std option.
8968         * doc/standards.texi (C++ Language): Document C++14 support.
8970 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
8972         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
8973         for pack/unpack functions for __ibm128.
8974         (PACK_IF): Likewise.
8975         (UNPACK_IF): Likewise.
8977         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
8978         support for __ibm128 pack/unpack functions.
8979         (rs6000_invalid_builtin): Likewise.
8980         (rs6000_init_builtins): Likewise.
8981         (rs6000_opt_masks): Likewise.
8983         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
8984         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
8985         functions
8986         (RS6000_BTM_COMMON): Likewise.
8988         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
8989         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
8990         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
8991         128-bit floating point.  Add support for the double values to be
8992         in Altivec registers for TF/IF packing and unpacking, but restrict
8993         TD packing sub-fields to be FPR registers.  Don't allow overlapped
8994         register support for packing.  Allow pack inputs to be memory
8995         locations.  Don't build generator functions for unpack<mode>_dm
8996         and unpack<mode>_nodm.
8997         (unpack<mode>_dm): Likewise.
8998         (unpack<mode>_nodm): Likewise.
8999         (pack<mode>): Likewise.
9001         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
9002         built-in functions to pack/unpack explicit __ibm128 values.
9003         (__builtin_unpack_ibm128): Likewise.
9005         * doc/extend.texi (PowerPC Built-in Functions): Document
9006         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
9008 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
9010         PR c/66208
9011         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
9012         Add new arg loc and pass it down as context.
9013         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
9014         to the location to use for the warning.
9015         (check_function_arguments): New arg loc.  All callers changed.  Pass
9016         it to check_function_nonnull.
9017         * c-common.h (check_function_arguments): Adjust declaration.
9019 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
9021         PR tree-optimization/69156
9022         * gimple.c (validate_type): Removed.
9023         (gimple_builtin_call_types_compatible_p): Use
9024         useless_type_conversion_p instead of validate_type.
9025         * value-prof.c (gimple_stringop_fixed_value): Fold
9026         icall_size to correct type.
9028 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
9030         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
9031         effects.
9033 2016-01-13  Richard Henderson  <rth@redhat.com>
9035         PR tree-opt/68964
9036         * target.def (builtin_tm_load, builtin_tm_store): Remove.
9037         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
9038         (ix86_builtin_tm_store): Remove.
9039         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9040         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9041         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9042         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9043         * doc/tm.texi: Rebuild.
9045         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
9046         (BUILT_IN_TM_MEMCPY_RTWN): New.
9047         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
9048         fallback from vector to integer helpers.
9049         (build_tm_load): Handle vector types directly, instead of
9050         via target hook.
9051         (build_tm_store): Likewise.
9052         (expand_assign_tm): Prepare for register types not handled by
9053         the above.  Copy them to memory and use memcpy.
9054         * tree.c (tm_define_builtin): New.
9055         (find_tm_vector_type): New.
9056         (build_tm_vector_builtins): New.
9057         (build_common_builtin_nodes): Call it.
9059 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
9061         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
9062         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
9064 2016-01-13  Tom de Vries  <tom@codesourcery.com>
9066         PR tree-optimization/69169
9067         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
9068         handled_struct_type param.
9069         (create_variable_info_for, intra_create_variable_infos): Call
9070         create_variable_info_for_1 with extra arg.
9072 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
9074         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
9075         and "armv8.1-a+crc" entries.
9077 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
9079         PR target/69228
9080         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
9081         Change first operand predicate from register_or_constm1_operand
9082         to register_operand.
9083         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
9084         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
9085         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
9086         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
9087         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
9088         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
9089         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
9090         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
9091         comparison with constm1_rtx from vec_prefetch_gen part.
9093 2016-01-13  Richard Biener  <rguenther@suse.de>
9095         PR tree-optimization/69013
9096         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
9097         Exchange assert for a test.
9099 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9101         PR target/69247
9102         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
9104 2016-01-13  Richard Biener  <rguenther@suse.de>
9106         PR tree-optimization/69242
9107         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
9108         assert with a check.
9110 2016-01-13  Richard Biener  <rguenther@suse.de>
9112         PR tree-optimization/69186
9113         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9114         Properly guard vect_update_misalignment_for_peel call.
9116 2016-01-12  Jeff Law  <law@redhat.com>
9118         PR tree-optimization/pr67755
9119         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
9120         "need_profile_correction".
9121         (thread_block_1): Initialize new field to false by default.  If we
9122         have multiple thread paths through a common joiner to different
9123         final targets, then set new field to true.
9124         (compute_path_counts): Only do count adjustment when it's really
9125         needed.
9127 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9129         * doc/invoke.texi (Spec Files): Move section down in file, past
9130         all command-line option descriptions.
9132 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9134         PR middle-end/54809
9135         * doc/gty.texi: Remove documentation of mark_hook.
9136         * gengtype.c (struct write_types_data): Remove code to support
9137         mark_hook attribute.
9138         (walk_type): Likewise.
9139         (write_func_for_structure): Likewise.
9141 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9143         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
9144         Directory Options, and -specs= to Overall Options.
9145         (Overall Options): Adjust similarly.  Reorder to group related
9146         options together.  Make -specs= cross-reference the spec file details.
9147         (Directory Options): Adjust similarly.
9149 2016-01-12  Jeff Law  <law@redhat.com>
9151         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
9153 2016-01-12  Olivier Hainque  <hainque@adacore.com>
9155         * gcc.c (spec_undefvar_allowed): New global.
9156         (process_command): Set to true when running for --version or --help,
9157         alone or together.
9158         (getenv_spec_function): When the variable is not defined, use the
9159         variable name as the variable value if we're allowed not to issue
9160         a fatal error.
9162 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
9164         PR tree-optimization/68911
9165         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9166         information computed for expression "init + nit * step".
9168 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9170         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
9171         about name of GCC executable.  Remove deleted node from menu.
9172         (Directory Options) <-B>: Remove cross-reference to deleted node.
9173         (Target Options): Delete section.
9175 2016-01-12  Christian Bruel  <christian.bruel@st.com>
9177         PR target/69180
9178         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9179         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9181 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
9183         PR target/69198
9184         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9185         aligned_mem is properly set for AVX512-VL floating point masked
9186         stores.
9188         PR target/69175
9189         * ifcvt.c (cond_exec_process_if_block): When removing the last
9190         insn from then_bb, remove also any possible barriers that follow it.
9192 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
9194         PR target/68456
9195         PR target/69226
9196         * config/i386/iamcu.h (SIZE_TYPE): New macro.
9197         (PTRDIFF_TYPE): Likewise.
9198         (WCHAR_TYPE): Likewise.
9199         (WCHAR_TYPE_SIZE): Likewise.
9200         (STDINT_LONG32): Likewise.
9202 2016-01-12  Richard Biener  <rguenther@suse.de>
9204         PR tree-optimization/69053
9205         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9206         convert initial value for cond reductions.
9208 2016-01-12  Richard Biener  <rguenther@suse.de>
9210         PR tree-optimization/69007
9211         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9212         widen_sum after dot_prod and sad.
9214 2016-01-12  Richard Biener  <rguenther@suse.de>
9216         PR tree-optimization/69168
9217         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9218         pattern stmt SLP type.
9219         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9220         end up unused so cope with that case.
9222 2016-01-12  Richard Biener  <rguenther@suse.de>
9224         PR tree-optimization/69157
9225         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9226         stmts def type only during analyze phase.
9227         (vectorizable_call): Likewise.
9228         (vectorizable_simd_clone_call): Likewise.
9229         (vectorizable_conversion): Likewise.
9230         (vectorizable_assignment): Likewise.
9231         (vectorizable_shift): Likewise.
9232         (vectorizable_operation): Likewise.
9233         (vectorizable_store): Likewise.
9234         (vectorizable_load): Likewise.
9236 2016-01-12  Richard Biener  <rguenther@suse.de>
9238         PR tree-optimization/69174
9239         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9240         space.
9241         (vectorizable_load): Properly compute the number of loads needed
9242         for permuted strided SLP loads and do not spuriously assign
9243         to SLP_TREE_VEC_STMTS.
9245 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
9247         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9248         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9249         (MD_EXEC_PREFIX): Remove.
9250         (MD_STARTFILE_PREFIX) Removee.
9251         (FILE_NAME_ABSOLUTE_P): Remove.
9252         (CPP_SPEC): Do not read macros from sys/version.h.
9253         (LINK_COMMAND_SPEC): Remove.
9254         (LOCAL_INCLUDE_DIR): Remove.
9255         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9256         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9257         (POST_LINK_SPEC): Define to invoke stubify after linker
9258         (LIBSTDCXX): Remove define
9259         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9260         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9261         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9262         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9263         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9264         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9265         (i386_djgpp_asm_named_section): Add propotype of new procedure
9267         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9268         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9269         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9270         in config/i386/djgpp.h).
9271         (STANDARD_STARTFILE_PREFIX_2): Define identical to
9272         STANDARD_STARTFILE_PREFIX_1.
9273         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9274         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9275         installation errors.
9276         (MAX_OFILE_ALIGNMENT): Define to 128.
9277         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9279         * config/i386/djgpp.c: New file. Add implementation of
9280         i386_djgpp_asm_named_section.
9282         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9284         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9285         Add rule for building djgpp.o.
9287 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9289         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9290         (rtx_is_swappable_p): Reductions are swappable.
9291         (insn_is_swappable_p): V2DF reductions are swappable.
9293 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
9295         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9296         reloads for other unsupported memory operands.
9298 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9299             Jim Wilson  <jim.wilson@linaro.org>
9301         PR target/69194
9302         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9303         copy_to_mode_reg instead of force_reg.
9305 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9307         PR target/69225
9308         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9309         TARGET_80387 is true.
9311 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
9313         PR target/69071
9314         * lra-eliminations.c (move_plus_up): Only move plus up
9315         if subreg of the constant can be simplified into constant
9316         and use the simplified subreg of the constant instead of
9317         the original constant.
9319         * fold-const.c (fold_convertible_p): Don't return true
9320         for conversion of VECTOR_TYPE to same sized integral type.
9321         (fold_convert_loc): Fix up formatting.  Fold conversion of
9322         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9323         instead of NOP_EXPR.
9325         PR tree-optimization/69214
9326         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9327         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9328         Formatting fix.
9330         PR tree-optimization/69207
9331         * tree-vect-slp.c (vect_get_constant_vectors): For
9332         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9333         fold_convertible_p to vector_type's element type, and always
9334         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9336 2016-01-11  Richard Biener  <rguenther@suse.de>
9338         PR tree-optimization/69173
9339         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9340         fixup the cycle if all stmts are in a pattern.
9342 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
9344         PR middle-end/68999
9345         * alias.c (base_alias_check): Move check for addresses with
9346         alignment ANDs before the call for compare_base_decls.
9347         (memrefs_conflict_p): Return -1 for different decls
9348         that went through alignment adjustments.
9350 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9352         PR rtl-optimization/68796
9353         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9354         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9355         and QImode comparisons against zero with CC_NZmode.
9356         * config/aarch64/iterators.md (short_mask): New mode_attr.
9358 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9360         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9361         (<avx512>_store<mode>_mask): Likewise.
9363 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
9364             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9366         PR rtl-optimization/68841
9367         * ifcvt.c (struct noce_if_info): Add orig_x field.
9368         (bbs_ok_for_cmove_arith): Add to_rename parameter.
9369         Don't record conflicts on to_rename if it's present.
9370         Allow memory destinations in sets.
9371         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9372         blocks, passing orig_x to the checks.
9373         (noce_process_if_block): Set if_info->orig_x appropriately.
9375 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9377         PR tree-optimization/69069
9378         * tree-parloops.c (create_parallel_loop): Add missing phi args.
9380 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
9382         PR rtl-optimization/68920
9383         * config/i386/i386.c (ix86_option_override_internal): Restrict number
9384         of conditional moves for  RTL if-conversion to 1 for
9385         TARGET_ONE_IF_CONV_INSN.
9386         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9387         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9388         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9389         parameter to restirct number of conditional moves for
9390         RTL if-conversion.
9391         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9392         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9393         conditionl moves.
9395 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
9397         PR bootstrap/69123
9398         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9399         onepart vars.  Fix typo in comment.  Fix reversed condition in
9400         unshare test.
9401         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9403         PR bootstrap/69123
9404         * var-tracking.c (dump_onepart_variable_differences): New.
9405         (dataflow_set_different): If a detailed dump is requested,
9406         delay early returns and dump differences between onepart
9407         variables present before and after, and added variables.
9409 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
9411         PR target/69010
9412         * expr.c (expand_expr_real_1): For boolean vector constants
9413         with a scalar mode use const_scalar_mask_from_tree.
9414         (const_scalar_mask_from_tree): New.
9415         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9416         assigned to a mask type to handle constants.
9418 2016-01-11  Martin Jambor  <mjambor@suse.cz>
9420         PR ipa/69044
9421         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9422         useless parameters if we cannot change function signature.
9424 2016-01-11  Martin Jambor  <mjambor@suse.cz>
9426         PR ipa/66616
9427         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9428         flag.
9430 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9432         PR tree-optimization/69109
9433         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9434         latch with phi.
9436 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9438         PR tree-optimization/69108
9439         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9440         res is not used in a phi.
9442 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
9444         PR 67425
9445         * common.opt (frandom-seed): Fix parameter name.
9446         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9448 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9450         PR tree-optimization/69058
9451         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9452         not supported.
9454 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9456         * config/arc/arc.opt (mdiv-rem): Add period to the end.
9457         (mcode-density): Likewise.
9459 2016-01-10  Tom de Vries  <tom@codesourcery.com>
9461         PR tree-optimization/69062
9462         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9463         (parallelize_loops): Don't paralelize loop that has phi with address
9464         arg.
9466 2016-01-10  Tom de Vries  <tom@codesourcery.com>
9468         PR tree-optimization/69039
9469         * tree-parloops.c (try_create_reduction_list): Only allow single exit
9470         phi for reduction.
9472 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
9474         PR middle-end/68743
9475         * match.pd: Require target has function_c99_misc before doing
9476         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9478 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
9480         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9481         use GMPINC.
9482         * configure: Regenerate.
9484 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
9486         PR middle-end/50865
9487         PR tree-optimization/69097
9488         * fold-const.h (expr_not_equal_to): New prototype.
9489         * fold-const.c: Include stringpool.h and tree-ssanames.h.
9490         (expr_not_equal_to): New function.
9491         * match.pd (X % -Y is the same as X % Y): Don't optimize
9492         unless X is known not to be equal to minimum or Y is known
9493         not to be equal to -1.
9494         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9495         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9496         (simplify_stmt_using_ranges): Adjust caller.
9497         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9498         substitute_and_fold.
9500 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
9502         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9503         w/o DECL_NAME.
9505 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9507         PR tree-optimization/69167
9508         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9509         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9510         ops[0] comparison.
9511         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9513 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9514             Richard Biener  <rguenther@suse.de>
9516         PR tree-optimization/68707
9517         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9518         instances that can be handled via vect_load_lanes.
9520 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
9522         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9523         if we can't determine address equivalence.
9524         * alias.c (compare_base_decl): Update for changed return value of
9525         symtab_node::equal_address_to.
9527 2016-01-08  Jason Merrill  <jason@redhat.com>
9529         PR c++/68983
9530         PR c++/67557
9531         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9532         * expr.c (store_field): Not here.
9533         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9534         call with TREE_ADDRESSABLE type.
9535         * tree-cfg.c (verify_gimple_call): Adjust.
9537 2016-01-08  Olivier Hainque  <hainque@adacore.com>
9539         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9540         libc_internal.
9542 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9544         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9545         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9546         (reduc_smin_v2sf): Rename to...
9547         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9548         (reduc_splus_v2sf): Rename to...
9549         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9551 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9553         PR tree-optimization/69162
9554         * gimplify.c (gimplify_va_arg_expr): Encode original type of
9555         valist argument in another argument.
9556         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
9557         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9558         to determine the va_list type, build a MEM_REF instead of
9559         build_fold_indirect_ref.
9561         PR tree-optimization/69172
9562         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9563         gimple_build.
9565 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9567         PR tree-optimization/67781
9568         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9569         and cmpnop in two steps: first the ones not accessed in original
9570         gimple expression in a endian independent way and then the ones not
9571         accessed in the final result in an endian-specific way.
9573 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9575         PR tree-optimization/69083
9576         * tree-vect-slp.c (vect_get_constant_vectors): For
9577         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9578         element type.  If op is fold_convertible_p to vector_type's element
9579         type, use NOP_EXPR instead of VCE.
9581 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
9583         PR rtl-optimization/67778
9584         PR rtl-optimization/68634
9585         PR rtl-optimization/68909
9586         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
9587         block from the stack until done with it.  Remove a superfluous
9588         bitmap set.  Remove a superfluous bitmap test.
9590 2016-01-07  Martin Sebor  <msebor@redhat.com>
9592         PR c/68966
9593         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9594         constraint on the type of arguments.
9596 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
9598         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9599         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9600         unaligned_access on the gcc_options set.
9601         * config/arm/arm.c (arm_option_override_internal): Use
9602         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9604 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9606         PR target/69140
9607         * config/i386/i386.c (ix86_frame_pointer_required): Enable
9608         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9610 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9612         Revert
9613         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9615         PR target/69140
9616         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9617         depending on frame_pointer_needed before remaining integer and SSE
9618         registers are saved.
9620 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9622         PR 1078
9623         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9625 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9627         PR target/69171
9628         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9629         Use the "xBm" constraint.
9630         (float<sseintvecmodelower><mode>2<mask_name><round_name):
9631         Likewise.
9632         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9633         (sse_cvtsi2ssq<round_name>): Likewise.
9634         (sse_cvtss2si<round_name>): Likewise.
9635         (sse_cvtss2siq<round_name>): Likewise.
9636         (sse2_cvtsi2sdq<round_name>): Likewise.
9637         (sse2_cvtsd2si<round_name>): Likewise.
9638         (sse2_cvtsd2siq<round_name>): Likewise.
9639         * config/i386/subst.md (round_nimm_scalar_predicate): New
9640         predicate.
9642 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
9644         PR middle-end/67639
9645         * varasm.c (make_decl_rtl): Mark invalid register vars as
9646         DECL_EXTERNAL.
9648         PR rtl-optimization/66206
9649         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9650         All callers changed.
9652 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9654         PR tree-optimization/69141
9655         * tree-ssa-pre.c: Include langhooks.h.
9656         (eliminate_dom_walker::before_dom_children): Use
9657         lang_hooks.decl_printable_name instead of
9658         cgraph_node::get ()->name ().
9660         PR middle-end/68960
9661         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9662         it and DECL_ALIGN too.
9664 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
9666         * config/mips/mips-ftypes.def: Sort to lexicographical order.
9668 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9670         PR target/69140
9671         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9672         depending on frame_pointer_needed before remaining integer and SSE
9673         registers are saved.
9675 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9677         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9678         mode iterator with VSX_M2.
9679         (*p9_vecstore_<mode>): Likewise.
9680         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9681         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9682         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9683         (define_split for VSX_LE128 stores): Likewise.
9684         (define_peephole2 for TImode LE swaps): Likewise.
9685         (define_split for VSX_LE128 post-reload stores): Likewise.
9687 2016-01-06  Marek Polacek  <polacek@redhat.com>
9689         PR sanitizer/69099
9690         * convert.c (convert_to_integer_1): Adjust call to
9691         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
9692         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
9693         EXPR instead of ARG.
9694         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9696 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9698         PR 1078
9699         * doc/extend.texi (RL78 Variable Attributes): New section.
9701 2016-01-05  Marek Polacek  <polacek@redhat.com>
9703         PR c/69104
9704         * builtins.c (get_memmodel): Use expansion point location rather than
9705         the input location.  Call warning_at rather than warning.
9706         (expand_builtin_atomic_compare_exchange): Likewise.
9707         (expand_builtin_atomic_load): Likewise.
9708         (expand_builtin_atomic_store): Likewise.
9709         (expand_builtin_atomic_clear): Likewise.
9711 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9713         PR target/68991
9714         * config/i386/i386.c (ix86_expand_vector_logical_operator):
9715         Replace nonimmediate_operand with vector_operand.
9716         * config/i386/predicates.md (vector_operand): New predicate.
9717         (general_vector_operand): Replace nonimmediate_operand with
9718         vector_operand.
9719         * config/i386/sse.md: Replace nonimmediate_operand with
9720         vector_operand and m constraint with Bm constraint on SSE
9721         patterns with 16-byte memory operand.
9722         * config/i386/subst.md (round_nimm_predicate): Replace
9723         nonimmediate_operand with vector_operand.
9724         (round_saeonly_nimm_predicate): Likewise.
9725         (round_saeonly_nimm_scalar_predicate): New.
9727 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9729         PR target/68991
9730         * config/i386/constraints.md (Bm): New constraint.
9731         * config/i386/predicates.md (vector_memory_operand): New
9732         predicate.
9733         * config/i386/sse.md: Replace xm with xBm in plusminus and
9734         any_logic patterns.
9736 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9738         PR 1078
9739         * doc/extend.texi (V850 Function Attributes): New section.
9740         (V850 Variable Attributes): New section.
9742 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9744         PR 1078
9745         * doc/extend.texi (MicroBlaze Function Attributes): Document
9746         interrupt_handler and fast_interrupt attributes.
9748 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
9750         PR other/60465
9751         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
9752         for local symbolic operands.
9753         * config/ia64/predicates.md (local_symbolic_operand64): New
9754         predicate.
9756 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9758         PR rtl-optimization/68651
9759         * combine.c (combine_simplify_rtx): Canonicalize x + x into
9760         x << 1.
9762 2016-01-05  Nathan Sidwell  <nathan@acm.org>
9764         * alias.c (compare_base_decls): Use symtab_node::get.
9766 2016-01-05  Nick Clifton  <nickc@redhat.com>
9768         PR target/68770
9769         * ira-costs.c (copy_cost): Initialise the t_icode field of the
9770         secondary_reload_info structure.
9772         PR target/66655
9773         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
9774         decls if weak support is available.
9776 2016-01-04  Martin Sebor  <msebor@redhat.com>
9778         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
9780 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
9782         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9783         OPTION_MASK_P9_DFORM.
9785         * config/rs6000/constraints.md (wo constraint): New constraint for
9786         ISA 3.0 (power9).
9788         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
9789         for wo constraint.
9790         (rs6000_init_hard_regno_mode_ok): Likewise.
9792         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
9793         wo constraint.
9795         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
9796         expanders not to have constraints.  Add support for ISA 3.0 xxperm
9797         instruction.  Add support for fusing xxlor with xxperm.
9798         (altivec_vperm_<mode>_internal): Likewise.
9799         (altivec_vperm_v8hiv16qi): Likewise.
9800         (altivec_vperm_<mode>v16q): Likewise.
9801         (altivec_vperm_<mode>_uns): Likewise.
9802         (vperm_v8hiv4si): Likewise.
9803         (vperm_v16qiv8hi): Likewise.
9805         * doc/md.texi (RS/6000 constraints): Document wo constraint.
9807 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
9809         Update copyright years.
9811         * gcc.c (process_command): Update copyright notice dates.
9812         * gcov-dump.c (print_version): Ditto.
9813         * gcov.c (print_version): Ditto.
9814         * gcov-tool.c (print_version): Ditto.
9815         * gengtype.c (create_file): Ditto.
9816         * doc/cpp.texi: Bump @copying's copyright year.
9817         * doc/cppinternals.texi: Ditto.
9818         * doc/gcc.texi: Ditto.
9819         * doc/gccint.texi: Ditto.
9820         * doc/gcov.texi: Ditto.
9821         * doc/install.texi: Ditto.
9822         * doc/invoke.texi: Ditto.
9824 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9826         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
9827         modes larger than TImode as TImode if NEON is not enabled.
9829 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9831         PR target/69100
9832         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
9833         mode for %f0-%f31 only if TARGET_FPU.
9835 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
9837         PR target/69072
9838         * config/sparc/sparc.c (scan_record_type): Take into account subfields
9839         to compute the PACKED_P predicate.
9840         (function_arg_record_value): Minor tweaks.
9842 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9844         * doc/install.texi (--with-multilib-list): Describe the meaning of the
9845         option for arm*-*-* targets.
9847 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
9849         * doc/extend.texi (Common Function Attributes): Move docs for
9850         MSP430-specific attributes to....
9851         (MSP430 Function Attributes): ...here.  Delete the redundant
9852         entries and copy-edit the remaining text.
9853         (MSP430 Variable Attributes): Use uniform format for index
9854         entries and add a cross-reference to the corresponding function
9855         attribute docs.
9857 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
9859         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
9860         -finite-math typo.
9861         (x86 Options): Likewise.
9863 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
9865         PR 1078
9867         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
9868         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
9869         to corresponding attribute.
9871 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
9873         * doc/extend.texi (Common Function Attributes) <noplt>: Move
9874         to correct alphabetization of table.  Copy-edit and correct
9875         markup.
9876         <stack_protect>: Likewise.
9877         <target_clones>: Likewise.
9878         <simd>: Likewise.
9879         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
9880         Correct punctuation.
9881         (Code Gen Options) <-fno-plt>: Copy-edit.
9883 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9885         PR target/68917
9886         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
9887         SI values.  Explicitly convert SI to DI and vice-versa.
9889 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
9891         PR tree-optimization/69070
9892         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
9893         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
9895         PR sanitizer/69055
9896         * ubsan.c (ubsan_instrument_float_cast): Call
9897         initialize_sanitizer_builtins.
9899         PR target/69015
9900         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
9902 Copyright (C) 2016 Free Software Foundation, Inc.
9904 Copying and distribution of this file, with or without modification,
9905 are permitted in any medium without royalty provided the copyright
9906 notice and this notice are preserved.