2016-05-04 Thomas Preud'homme <thomas.preudhomme@arm.com>
[official-gcc.git] / gcc / ChangeLog
blobc99daeb457f4a46450629d7dea1d373356f47d2c
1 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
3         * config.gcc: Error out when conflicting multilib is detected.  Do not
4         loop over multilibs since no combination is legal.
6 2016-05-04  Alan Modra  <amodra@gmail.com>
8         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
9         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
10         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
11         Align .toc.
13 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
16         Clean up p5600 comments.
18 2016-05-04  Richard Biener  <rguenther@suse.de>
20         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
21         constructor simplifications.
22         * fold-const.c (fold_ternary_loc): Remove duplicate functionality
23         here.
25 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
27         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
28         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
29         result.set_rtx is null instead of aborting.
30         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
31         Always enable.
32         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
33         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
34         *mov<mode>_store_postinc): New patterns.
36 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
38         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
39         as commutative.  Check both conversions are NOP.
40         ((A & B) OP (C & B)): Remove.
42 2016-05-04  Alan Modra  <amodra@gmail.com>
44         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
46 2016-05-04  Alan Modra  <amodra@gmail.com>
48         PR target/70866
49         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
50         when cr2,3,4 are all fixed regs.
52 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
54         PR rtl-optimization/57193
55         * opts.c (default_options_table): Revert OPT_frename_registers change.
56         * doc/invoke.texi (-frename-registers, -O2): Likewise.
58 2016-05-03  Martin Sebor  <msebor@redhat.com>
60         PR c++/66561
61         * builtins.c (fold_builtin_FILE): New function.
62         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
63         (fold_builtin_0): Call them.
64         * gimplify.c (gimplify_call_expr): Remove the handling of
65         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
67         PR c++/66561
68         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
69         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
70         constants.
72         PR c++/66639
73         * doc/extend.texi (Function Names as Strings): Update __func__,
74         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
75         constants.
77 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
78             Richard Biener  <rguenther@suse.de>
80         PR tree-optimization/70916
81         * tree-if-conv.c: Include cfganal.h.
82         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
83         and remove_fake_exit_edges around the optimization pass.
85 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
87         * cgraph.c (symbol_table::create_edge): Set inline_failed.
88         (cgraph_edge::make_direct): Likewise.
89         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
90         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
91         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
92         (CIF_THUNK): New code.
93         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
94         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
95         (compute_inline_parameters): Set inline_failed for thunks.
96         (inline_analyze_function): Cleanup.
97         * ipa-inline.c (can_inline_edge_p): Do not deal with
98         call_stmt_cannot_inline_p.
99         (can_early_inline_edge_p): Likewise.
100         (early_inliner): Initialize inline_failed.
101         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
103 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
105         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
106         from nonimm_ssenomem_operand.
107         (nonimm_ssenomem_operand): New predicate.
108         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
109         as operand 0 predicate.
110         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
111         Disable unsupported alternatives using "enabled" attribute.
112         Use register_ssemem_operand as operand 0 predicate.
113         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
115 2016-05-03  Marek Polacek  <polacek@redhat.com>
117         PR c/70859
118         * input.c (expansion_point_location): New function.
119         * input.h (expansion_point_location): Declare.
121 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
123         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
124         occurence with frame_offset_ ones.
126 2016-05-03  Alan Modra  <amodra@gmail.com>
128         PR rtl-optimization/70890
129         * ira.c (combine_and_move_insns): When moving def_insn, remove
130         equivs on use_insn.
132 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
134         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
135         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
136         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
137         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
139 2016-05-03  Alan Modra  <amodra@gmail.com>
141         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
142         for SAVE_MULTIPLE/STORE_MULTIPLE.
144 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
146         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
147         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead
148         of x.
150 2016-05-03  Richard Biener  <rguenther@suse.de>
152         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
153         default true.
154         (gimplify_arg): Likewise.
155         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
156         re-writing the result to a decl if required.
157         (internal_get_tmp_var): Add allow_ssa parameter
158         and override into_ssa with it.
159         (get_formal_tmp_var): Adjust.
160         (get_initialized_tmp_var): Add allow_ssa parameter.
161         (gimplify_arg): Add allow_ssa parameter and avoid generating
162         SSA names for the result false.
163         (gimplify_call_expr): If the call may return twice do not
164         gimplify parameters into SSA.
165         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
166         (gimplify_modify_expr): Adjust assert.  For noreturn calls
167         with a SSA name LHS adjust its def.
168         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
169         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
170         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
171         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
172         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
173         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
174         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
175         (optimize_target_teams): Do not allow SSA names for clause operands.
176         (gimplify_expr): Likewise for where we mark the result addressable.
177         * passes.def (pass_init_datastructures): Remove.
178         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
179         (rewrite_stmt): Likewise.
180         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
181         (replace_locals_op): Replace SSA names.
182         (copy_gimple_seq_and_replace_locals): Init src_cfun.
183         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
184         * cgraph.c (release_function_body): Free CFG annotations only
185         when we have a CFG.  Simplify.
186         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
187         force_gimple_operand instead of get_initialized_tmp_var.
188         * tree-pass.h (make_pass_init_datastructures): Remove.
189         * tree-ssa.c (execute_init_datastructures): Remove.
190         (pass_data_init_datastructures): Likewise.
191         (class pass_init_datastructures): Likewise.
192         (make_pass_init_datastructures): Likewise.
193         * omp-low.c (create_omp_child_function): Init SSA data structures.
194         (grid_expand_target_grid_body): Likewise.
195         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
196         name before adding it to names_to_release.
197         (remove_bb): Always release SSA defs.
198         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
199         before dereferencing it.
200         * cgraphunit.c (init_lowered_empty_function): Always
201         int SSA data structures.
202         * tree-ssanames.c (release_defs): Remove assert that we are in
203         SSA form.
204         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
206 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
207             Uros Bizjak  <ubizjak@gmail.com>
209         PR rtl-optimization/70467
210         * config/i386/predicates.md (x86_64_hilo_int_operand,
211         x86_64_hilo_general_operand): New predicates.
212         * config/i386/constraints.md (Wd): New constraint.
213         * config/i386/i386.md (mode attr di): Use Wd instead of e.
214         (general_hilo_operand): New mode attr.
215         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
216         instead of <general_operand>.
217         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
218         x86_64_hilo_general_operand instead of <general_operand>.
220 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
222         PR tree-optimization/70916
223         * tree-if-conv.c (constant_or_ssa_name): Removed.
224         (fold_build_cond_expr): Use is_gimple_val instead of
225         constant_or_ssa_name.
227         PR tree-optimization/70916
228         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
229         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
231         PR target/49244
232         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
233         (optimize_atomic_bit_test_and): New function.
234         (pass_fold_builtins::execute): Use it.
235         * optabs.def (atomic_bit_test_and_set_optab,
236         atomic_bit_test_and_complement_optab,
237         atomic_bit_test_and_reset_optab): New optabs.
238         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
239         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
240         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
241         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
242         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
243         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
244         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
245         * doc/md.texi (atomic_bit_test_and_set@var{mode},
246         atomic_bit_test_and_complement@var{mode},
247         atomic_bit_test_and_reset@var{mode}): Document.
248         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
249         atomic_bit_test_and_complement<mode>,
250         atomic_bit_test_and_reset<mode>): New expanders.
251         (atomic_bit_test_and_set<mode>_1,
252         atomic_bit_test_and_complement<mode>_1,
253         atomic_bit_test_and_reset<mode>_1): New insns.
255 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
257         PR rtl-optimization/70687
258         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
259         instead of unsigned HOST_WIDE_INT.
261 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
263         PR rtl-optimization/44281
264         * hard-reg-set.h (struct target_hard_regs): New field
265         x_fixed_nonglobal_reg_set.
266         (fixed_nonglobal_reg_set): New macro.
267         * reginfo.c (init_reg_sets_1): Initialize it.
268         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
269         of fixed_reg_set.
270         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
272 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
274         PR tree-optimization/56541
275         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
276         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
277         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
278         (any_complicated_phi): new static variable.
279         (aggressive_if_conv): delete.
280         (if_convertible_phi_p): support phis with more than two arguments.
281         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
282         critical pred edges.
283         (ifcvt_split_critical_edges): support phis with more than two
284         arguments by checking new parameter.  only split critical edges
285         if needed.
286         (tree_if_conversion): handle simd pragma marked loop using new
287         local variable aggressive_if_conv.  check any_complicated_phi.
289 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
291         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
292         before using it.
294 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
296         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
297         cbase.
299 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
301         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
302         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
303         define_insn_and_split.
304         (mulsi3_i): New define_insn_and_split.
305         (mulsi3_call): Convert to define_insn.
306         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
307         Remove constraints.
309 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
311         * machmode.h (mode_complex): Add support to give the complex mode
312         for a given mode.
313         (GET_MODE_COMPLEX_MODE): Likewise.
314         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
315         stored by build_complex_type and gfc_build_complex_type instead of
316         trying to figure out the appropriate mode based on the size. Raise
317         an assertion error, if the type was not set.
318         * genmodes.c (struct mode_data): Add field for the complex type of
319         the given type.
320         (blank_mode): Likewise.
321         (make_complex_modes): Remember the complex mode created in the
322         base type.
323         (emit_mode_complex): Write out the mode_complex array to map a
324         type mode to the complex version.
325         (emit_insn_modes_c): Likewise.
326         * tree.c (build_complex_type): Set the complex type to use before
327         calling layout_type.
328         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
329         support for __float128 complex datatypes.
330         (rs6000_hard_regno_mode_ok): Likewise.
331         (rs6000_setup_reg_addr_masks): Likewise.
332         (rs6000_complex_function_value): Likewise.
333         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
334         __float128 and __ibm128 complex.
335         (FLOAT128_IBM_P): Likewise.
336         (ALTIVEC_ARG_MAX_RETURN): Likewise.
337         * doc/extend.texi (Additional Floating Types): Document that
338         -mfloat128 must be used to enable __float128.  Document complex
339         __float128 and __ibm128 support.
341 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
343         PR target/49244
344         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
345         char/short arguments promoted to int because of promote_prototypes.
347 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
349         * config/i386/predicates.md (register_ssemem_operand): New predicate.
350         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
351         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
352         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
353         alternatives using "enabled" attribute.  Use register_ssemem_operand
354         as operand 1 predicate.
355         (*cmpi<unord>xf_i387): Split XFmode pattern from
356         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
357         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
358         *absneg<mode>2_i387.  Disable unsupported alternatives using
359         "enabled" attribute.
360         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
362 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
364         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
365         marker.
366         (oacc_loop_process): Check mask for loop termination.
368 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
370         * cif-code.def (CIF_THUNK): Add.
371         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
372         accidental change.
374 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
376         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
377         (dump_inline_summary): Dump it.
378         (fp_expression_p): New predicate.
379         (estimate_function_body_sizes): Use it.
380         (inline_merge_summary): Merge fp_expressions.
381         (inline_read_section): Read fp_expressions.
382         (inline_write_summary): Write fp_expressions.
383         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
384         codegen boundary if either caller or callee is !fp_expressions.
385         * ipa-inline.h (inline_summary): Add fp_expressions.
386         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
387         to fp_expressions be sure the fp generation flags are updated.
389 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
391         PR rtl-optimization/70467
392         * cse.c (cse_insn): Handle no-op MEM moves after folding.
394         PR rtl-optimization/70467
395         * ipa-pure-const.c (check_call): Handle internal calls even in
396         ipa mode like in local mode.
398 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
400         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
402 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
404         * match.pd (X u< X, X u> X): New transformations.
406 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
408         * flag-types.h (enum warn_strict_overflow_code): Move ...
409         * coretypes.h: ... here.
410         * fold-const.h (fold_overflow_warning): Declare.
411         * fold-const.c (fold_overflow_warning): Make non-static.
412         (fold_comparison): Move the transformation of X +- C1 CMP C2
413         into X CMP C2 -+ C1 ...
414         * match.pd: ... here.
415         * gimple-fold.c (fold_stmt_1): Protect with
416         fold_defer_overflow_warnings.
418 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
420         * omp-low.c (struct oacc_loop): Add 'inner' field.
421         (new_oacc_loop_raw): Initialize it to zero.
422         (oacc_loop_fixed_partitions): Initialize it.
423         (oacc_loop_auto_partitions): Partition outermost loop to outermost
424         available partitioning.
426 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
428         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
429         register_operand.
430         (umulsidi3): Likewise.
431         (indirect_jump): Fix jump instruction assembly patterns.
433 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
435         PR target/70860
436         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
437         (nvptx_function_value): Assert non-NULL cfun.
439 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
441         PR rtl-optimization/70886
442         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
444         * cselib.h (rtx_equal_for_cselib_1): Declare.
445         (rtx_equal_for_cselib_p: New inline function.
446         * cselib.c (rtx_equal_for_cselib_p): Delete.
447         (rtx_equal_for_cselib_1): Make public.
449 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
451         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
452         (register_mixssei387nonimm_operand): Remove predicate.
453         * config/i386/i386.md (*fop_<mode>_comm): Merge from
454         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
455         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
456         for TARGET_MIX_SSE_I387 alternatives.
457         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
458         Disable unsupported alternatives using "enabled" attribute.  Use
459         nonimm_ssenomem_operand as operand 1 predicate.  Also check
460         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
462 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
464         * tree.c (cst_and_fits_in_hwi): Simplify.
466 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
468         * tree.h (wi::to_wide): New function.
469         * expr.c (expand_expr_real_1): Use wi::to_wide.
470         * fold-const.c (int_const_binop_1): Likewise.
471         (extract_muldiv_1): Likewise.
473 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
475         * wide-int.h: Update offset_int and widest_int documentation.
476         (WI_SIGNED_SHIFT_RESULT): New macro.
477         (wi::binary_shift): Define signed_shift_result_type for
478         shifts on offset_int- and widest_int-like types.
479         (generic_wide_int): Support <<= and >>= if << and >> are supported.
480         * tree.h (int_bit_position): Use shift operators instead of wi::
481          shifts.
482         * alias.c (adjust_offset_for_component_ref): Likewise.
483         * expr.c (get_inner_reference): Likewise.
484         * fold-const.c (fold_comparison): Likewise.
485         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
486         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
487         * tree-dfa.c (get_ref_base_and_extent): Likewise.
488         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
489         (stmt_kills_ref_p): Likewise.
490         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
491         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
492         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
493         (ao_ref_init_from_vn_reference): Likewise.
495 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
497         * wide-int.h: Update offset_int and widest_int documentation.
498         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
499         (wi::binary_traits): Allow ordered comparisons between offset_int and
500         offset_int, between widest_int and widest_int, and between either
501         of these types and basic C types.
502         (operator <, <=, >, >=): Define for the same combinations.
503         * tree.h (tree_int_cst_lt): Use comparison operators instead
504         of wi:: comparisons.
505         (tree_int_cst_le): Likewise.
506         * gimple-fold.c (fold_array_ctor_reference): Likewise.
507         (fold_nonarray_ctor_reference): Likewise.
508         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
509         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
510         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
511         * tree-sra.c (completely_scalarize): Likewise.
512         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
513         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
514         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
515         (check_for_binary_op_overflow): Likewise.
516         (search_for_addr_array): Likewise.
517         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
519 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
521         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
522         (arc_save_restore): Likewise.
523         (arc_dwarf_register_span): Likewise.
524         (arc_output_pic_addr_const): Initialize suffix variable.
526 2016-05-02  Martin Liska  <mliska@suse.cz>
528         * symbol-summary.h (function_summary::function_summary):
529         Remove checking assert for all cgraph nodes.
530         (function_summary::get): Check summary_uid.
531         (symtab_insertion): Check summary_uid.
533 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
535         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
536         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
537         bmaskn instruction.
538         (arc_dwarf_register_span): Remove enum keyword.
539         (compact_memory_operand_p): New function.
540         * config/arc/arc.h (reg_class): Add code density register classes.
541         (REG_CLASS_NAMES): Likewise.
542         (REG_CLASS_CONTENTS): Likewise.
543         * config/arc/arc.md (*movqi_insn): Add code density instructions.
544         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
545         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
546         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
547         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
548         constraints.
549         (h, Rcd, Rsd, Rzd): New register constraints.
550         (T): Use compact_memory_operand_p function.
551         * config/arc/predicates.md (compact_load_memory_operand): Remove.
553 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
555         * config/sh/sh.md (*negnegt, *movtt): Remove.
557 2016-05-02  Marek Polacek  <polacek@redhat.com>
558             Tom de Vries  <tom@codesourcery.com>
560         PR tree-optimization/70700
561         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
562         bigger than FIRST_REF_NODE.
564 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
566         PR target/52898
567         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
568         TARGET_CMPEQDI_T.
569         (prepare_cbranch_operands): Don't use scratch register.  Assume that
570         function is used when pseudos can be created.
571         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
572         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
573         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
574         define_expand.  Allow it only when pseudos can be created.
575         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
577 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
579         * config/i386/constraints.md (BC): Only allow -1 operands.
580         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
581         Add "enabled" attribute.  Update XI mode attribute calculation.
582         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
583         (*movoi_internal_avx): Update XI mode attribute calculation.
584         (*movti_internal): Ditto.
586 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
588         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
589         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
591 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
593         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
594         statement on instruction code.  Remove trailing spaces.
595         (altivec_expand_stv_builtin): Likewise.
597 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
599         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
600         (TARGET_FPU_DOUBLE): Simplify.
601         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
602         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
603         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
604         with 'TARGET_FPU_DOUBLE'.
605         * config/sh/sh.md: Likewise.
607 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
609         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
610         SH_DIV_STR_FOR_SIZE): Remove.
611         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
612         SH_DIV_STR_FOR_SIZE): Remove.
614 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
616         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
617         logical_reg_operand): Delete.
618         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
619         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
620         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
621         match_operand and match_test.
622         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
623         variables on their first use.  Return bool values.
624         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
625         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
626         arith_reg_operand for input operand.  Remove empty constraints.
627         (xorsi3): Delete.
628         (*xorsi3_compact): Rename to xorsi3.
629         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
630         (*zero_extend<mode>si2_disp_mem): Update comment.
631         (mov_nop): Delete.
633 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
635         * config/sh/t-sh: Remove SH5 support.
636         * config.gcc: Likewise.
637         * configure: Likewise.
639 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
641         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
643 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
645         * config/sh/sh.c (register_sh_passes, sh_option_override,
646         sh_print_operand, prepare_move_operands,
647         sh_can_follow_jump): Remove TARGET_SH1 checks.
648         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
649         PROMOTE_MODE): Likewise.
650         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
651         movdi): Likewise.
653 2016-04-30  Alan Modra  <amodra@gmail.com>
655         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
656         restoring when fixed_reg_p, but allow out-of-line or stmw save.
657         Check for user regs later to avoid unnecessary looping over regs.
658         Merge user reg check with non-saved reg check.  Don't force
659         inline VR restore when static chain used.
660         (rs6000_frame_related): Omit eh_frame info for user regs when
661         saving.
662         (fixed_regs_p): Delete.
664 2016-04-30  Alan Modra  <amodra@gmail.com>
666         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
667         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
668         Update all uses.
670 2016-04-30  Alan Modra  <amodra@gmail.com>
672         PR target/69645
673         * config/rs6000/rs6000.c (fixed_reg_p): New function.
674         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
675         Update all uses.
677 2016-04-30  Alan Modra  <amodra@gmail.com>
679         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
680         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
681         flag_pic test for Darwin.
683 2016-04-30  Alan Modra  <amodra@gmail.com>
685         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
686         throw_calls_crossed.
687         (REG_FREQ_CALLS_CROSSED): Delete.
688         (REG_N_THROWING_CALLS_CROSSED): Delete.
689         * regstat.c (regstat_bb_compute_ri): Don't calculate
690         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
691         (dump_reg_info): Don't print call cross frequency.
692         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
693         and REG_N_THROWING_CALLS_CROSSED.
695 2016-04-30  Alan Modra  <amodra@gmail.com>
697         * regs.h (struct reg_info_t): Delete live_length.
698         (REG_LIVE_LENGTH): Delete macro.
699         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
700         local_live, local_processed and local_live_last_luid params.
701         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
702         Formatting fixes.
703         (regstat_compute_ri): Adjust for above.  Don't set
704         REG_LIVE_LENGTH.
705         (dump_reg_info): Don't print live length.
706         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
707         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
708         Localize loop_depth var.
710 2016-04-30  Alan Modra  <amodra@gmail.com>
712         * ira.c (enum valid_equiv): New.
713         (validate_equiv_mem): Return enum.
714         (update_equiv_mem): Create replacement in more cases.
715         (add_store_equivs): Update validate_equiv_mem call.
717 2016-04-30  Alan Modra  <amodra@gmail.com>
719         * ira.c (combine_and_move_insns): Rather than scanning insns,
720         use DF infrastucture to find use and def insns.
722 2016-04-30  Alan Modra  <amodra@gmail.com>
724         ira.c (combine_and_move_insns): Move invariant conditions..
725         (ira.c): ..to here.  Call combine_and_move_insns before
726         add_store_equivs.  Call grow_reg_equivs later.  Allocate
727         req_equiv later using max_reg_num() rather than global max_regno.
728         (contains_replace_regs): Delete.
729         (add_store_equivs): Remove contains_replace_regs test.
731 2016-04-30  Alan Modra  <amodra@gmail.com>
733         * ira.c (struct equiv_mem_data): New.
734         (equiv_mem, equiv_mem_modified): Delete static vars.
735         (validate_equiv_mem_from_store): Use "data" param to communicate..
736         (validate_equiv_mem): ..from here.
738 2016-04-30  Alan Modra  <amodra@gmail.com>
740         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
741         split out from..
742         (update_reg_equivs): ..here.  Move allocation and freeing of
743         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
744         end_alias_analysis to..
745         (ira): ..here.
747 2016-04-30  Alan Modra  <amodra@gmail.com>
749         * ira.c (pdx_subregs): Delete.
750         (struct equivalence): Add pdx_subregs field.
751         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
752         pdx_subregs access.
753         (update_equiv_regs): Don't create or free pdx_subregs.  Update
754         pdx_subregs access.
756 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
758         * config/rs6000/altivec.h: Change definitions of vec_xl and
759         vec_xst.
760         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
761         (LD_ELEMREV_V2DI): New.
762         (LD_ELEMREV_V4SF): New.
763         (LD_ELEMREV_V4SI): New.
764         (LD_ELEMREV_V8HI): New.
765         (LD_ELEMREV_V16QI): New.
766         (ST_ELEMREV_V2DF): New.
767         (ST_ELEMREV_V2DI): New.
768         (ST_ELEMREV_V4SF): New.
769         (ST_ELEMREV_V4SI): New.
770         (ST_ELEMREV_V8HI): New.
771         (ST_ELEMREV_V16QI): New.
772         (XL): New.
773         (XST): New.
774         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
775         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
776         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
777         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
778         (altivec_expand_builtin): Add handling for
779         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
780         (rs6000_invalid_builtin): Add error-checking for
781         RS6000_BTM_P9_VECTOR.
782         (altivec_init_builtins): Define builtins used to implement vec_xl
783         and vec_xst.
784         (rs6000_builtin_mask_names): Define power9-vector.
785         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
786         (RS6000_BTM_P9_VECTOR): Define.
787         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
788         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
789         (vsx_ld_elemrev_v2df): Likewise.
790         (vsx_ld_elemrev_v4sf): Likewise.
791         (vsx_ld_elemrev_v4si): Likewise.
792         (vsx_ld_elemrev_v8hi): Likewise.
793         (vsx_ld_elemrev_v16qi): Likewise.
794         (vsx_st_elemrev_v2df): Likewise.
795         (vsx_st_elemrev_v2di): Likewise.
796         (vsx_st_elemrev_v4sf): Likewise.
797         (vsx_st_elemrev_v4si): Likewise.
798         (vsx_st_elemrev_v8hi): Likewise.
799         (vsx_st_elemrev_v16qi): Likewise.
800         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
801         grammar.
803 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
805         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
806         out into ...
807         (simplify_control_stmt_condition_1): ... here.  Recurse into
808         BIT_AND_EXPRs and BIT_IOR_EXPRs.
810 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
812         PR target/69810
813         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
814         (zero_extendqi<mode>2_dot): Revert earlier conversion from
815         define_insn_and_split to define_insn.
816         (zero_extendqi<mode>2_dot2): Same.
817         (extendqi<mode>2_dot): Same.
818         (extendqi<mode>2_dot2): Same.
820 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
822         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
823         (probe_stack): New expander.
824         (probe_stack_<mode>): New insn pattern.
826 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
828         * config/i386/i386.md
829         (operations with memory inputs setting flags peephole2):
830         Remove uneeded REG_P checks.  Cleanup pattern generation.
832 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
834         * tree-vect-loop.c (vect_transform_loop): Fix
835         nb_iterations_upper_bound computation for vectorized loop.
837 2016-04-29  Marek Polacek  <polacek@redhat.com>
838             Jakub Jelinek  <jakub@redhat.com>
840         PR sanitizer/70342
841         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
842         TARGET_EXPR_SLOT as a base.
844 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
846         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
847         with 'rCm2' constraints to limit possible immediate size.
848         (*load_zeroextendqisi_update): Likewise.
849         (*load_signextendqisi_update): Likewise.
850         (*loadhi_update): Likewise.
851         (*load_zeroextendhisi_update): Likewise.
852         (*load_signextendhisi_update): Likewise.
853         (*loadsi_update): Likewise.
854         (*loadsf_update): Likewise.
856 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
858         * config/i386/predicates.md (constm1_operand): Fix comparison.
860 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
862         * testsuite/gcc.target/arc/ieee_eq.c: New test.
864 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
866         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
867         remaining SH5 related settings.
868         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
869         shmedia_prepare_call_address): Delete.
870         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
871         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
872         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
873         UNSUPPORTED_SH2A): Remove m5 checks.
874         (sh_divide_strategy_e): Remove SH5 division strategies.
875         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
876         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
878 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
880         * config/s390/s390.c (s390_rtx_costs): Update documentation.
882 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
884         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
885         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
886         Change lder to ldr.
887         * config/s390/vector.md ("mov<mode>"): Likewise.
889 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
891         * config/s390/constraints.md ("U", "W"): Invoke
892         s390_mem_constraint with "ZR" and "ZT".
893         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
894         addresses when using LRA.  Accept also short displacements for S
895         and T constraints.  Do not check for long displacement target for
896         S and T constraints.
897         (s390_mem_constraint): Remove handling of U and W constraints.
898         * config/s390/s390.md (various patterns): Remove the short
899         displacement constraints (Q and R) if a long displacement
900         constraint is present.  Add longdisp as required CPU capability.
901         * config/s390/vector.md: Likewise.
902         * config/s390/vx-builtins.md: Likewise.
904 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
906         PR target/60040
907         * reload1.c (reload): Call finish_spills before
908         restarting reload loop. Skip select_reload_regs
909         if update_eliminables_and_spill returns true.
911 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
913         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
914         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
915         (umulhisi3_imm): Update predicates and constraint letters.
916         (umulhisi3_reg): Declare instruction as commutative.
917         * config/arc/constraints.md (J12, J16): New constraints.
918         * config/arc/predicates.md (short_unsigned_const_operand): New
919         predicate.
920         (arc_short_operand): Likewise.
921         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
923 2016-04-29  Richard Biener  <rguenther@suse.de>
925         PR tree-optimization/13962
926         PR tree-optimization/65686
927         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
928         * tree-ssa-alias.c (ptrs_compare_unequal): New function
929         using PTA to compare pointers.
930         * match.pd: Add pattern for pointer equality compare simplification
931         using ptrs_compare_unequal.
933 2016-04-29  Richard Biener  <rguenther@suse.de>
935         * stor-layout.c (layout_type): Do not build a pointer-to-element
936         type for arrays.
938 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
940         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
941         Use SWI mode iterator.  Use general_reg_operand predicate.
942         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
943         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
944         predicates.
946 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
948         PR middle-end/70843
949         * fold-const.c (operand_equal_p): Don't verify hash value equality
950         if arg0 == arg1.
951         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
952         and OMP_CLAUSE.
954 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
956         PR target/70858
957         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
958         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
959         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
960         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
961         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
963 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
965         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
966         to info.  Don't initialize separate fields to 0.  Clean up
967         formatting a bit.
969 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
971         * config/i386/i386.md (peephole2s for operations with memory inputs):
972         Use SWI mode iterator.
973         (peephole2s for operations with memory outputs): Ditto.
974         Do not check for stack checking probe.
976         (probe_stack): Remove expander.
978 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
979             Andrew Burgess  <andrew.burgess@embecosm.com>
981         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
982         operands as 32-bits.
984 2016-04-28  Jason Merrill  <jason@redhat.com>
986         * gdbinit.in: Skip line-map.h.
988 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
989             Andrew Burgess  <andrew.burgess@embecosm.com>
991         * config/arc/arc.c (arc_conditional_register_usage): Take
992         TARGET_RRQ_CLASS into account.
993         (arc_print_operand): Support printing 'p' and 's' operands.
994         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
995         as 0.
996         (TARGET_RRQ_CLASS): Define.
997         (IS_POWEROF2_OR_0_P): Define.
998         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
999         alternatives.
1000         (*tst_movb): New define_insn.
1001         (*tst): Avoid recognition if it could prevent '*tst_movb'
1002         combination; replace c/CnL with c/Chs alternative.
1003         (*tst_bitfield_tst): New define_insn.
1004         (*tst_bitfield_asr): New define_insn.
1005         (*tst_bitfield): New define_insn.
1006         (andsi3_i): Add Rrq variant.
1007         (extzv): New define_expand.
1008         (insv): New define_expand.
1009         (*insv_i): New define_insn.
1010         (*movb): New define_insn.
1011         (*movb_signed): New define_insn.
1012         (*movb_high): New define_insn.
1013         (*movb_high_signed): New define_insn.
1014         (*movb_high_signed + 1): New define_split pattern.
1015         (*mrgb): New define_insn.
1016         (*mrgb + 1): New define_peephole2 pattern.
1017         (*mrgb + 2): New define_peephole2 pattern.
1018         * config/arc/arc.opt (mbitops): New option for nps400, uses
1019         TARGET_NPS_BITOPS_DEFAULT.
1020         * config/arc/constraints.md (q): Make register class conditional.
1021         (Rrq): New register constraint.
1022         (Chs): New constraint.
1023         (Clo): New constraint.
1024         (Chi): New constraint.
1025         (Cbf): New constraint.
1026         (Cbn): New constraint.
1027         (C18): New constraint.
1028         (Cbi): New constraint.
1030 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
1032         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
1033         dst->popcount.
1034         (bitmap_intersection_of_preds): Ditto.
1035         (bitmap_union_of_succs): Ditto.
1036         (bitmap_union_of_preds): Ditto.
1037         * sbitmap.c (do_popcount): Delete.
1038         (BITMAP_DEBUGGING): Delete.
1039         (sbitmap_verify_popcount): Delete.
1040         (sbitmap_alloc): Don't initialize the popcount field.
1041         (sbitmap_alloc_with_popcount): Delete.
1042         (sbitmap_resize): Don't resize the popcount array.
1043         (sbitmap_vector_alloc): Don't initialize the popcount field.
1044         (bitmap_copy): Don't copy the popcount array.
1045         (bitmap_clear): Don't clear the popcount array.
1046         (bitmap_clear): Delete the popcount array handling.
1047         (bitmap_ior_and_compl): Delete the popcount assert.
1048         (bitmap_not): Ditto.
1049         (bitmap_and_compl): Ditto.
1050         (bitmap_and): Delete the popcount array handling.
1051         (bitmap_xor): Ditto.
1052         (bitmap_ior): Ditto.
1053         (bitmap_or_and): Delete the popcount assert.
1054         (bitmap_and_or): Ditto.
1055         (popcount_table): Delete.
1056         (sbitmap_elt_popcount): Delete.
1057         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
1058         (bitmap_set_bit): Delete the popcount assert.
1059         (bitmap_clear_bit): Ditto.
1060         (sbitmap_free): Don't free the popcount array.
1061         (sbitmap_alloc_with_popcount): Delete declaration.
1062         (sbitmap_popcount): Ditto.
1064 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
1065             Andrew Burgess  <andrew.burgess@embecosm.com>
1067         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
1068         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
1069         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
1070         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
1071         * config/arc/arc.opt (mcmem): New option.
1072         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
1073         supply length for r/m alternative.
1074         (*extendqisi2_ac): Likewise.
1075         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
1076         r/Uex alternative.
1077         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
1078         (movhi_insn): Likewise.
1079         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
1080         (*zero_extendqihi2_i): Add r/Ucm alternative.
1081         (*zero_extendqisi2_ac): Likewise.
1082         (*zero_extendhisi2_i): Likewise.
1083         * config/arc/constraints.md (Uex): New memory constraint.
1084         (Ucm): New define_constraint.
1085         * config/arc/predicates.md (long_immediate_loadstore_operand):
1086         Return 0 for MEM with cmem_address address.
1087         (cmem_address_0): New predicates.
1088         (cmem_address_1): Likewise.
1089         (cmem_address_2): Likewise.
1090         (cmem_address): Likewise.
1092 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
1094         * config/rs6000/rs6000.c (machine_function): Rename
1095         insn_chain_scanned_p to spe_insn_chain_scanned_p.
1096         (rs6000_stack_info): Adjust.
1098 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
1099             Andrew Burgess  <andrew.burgess@embecosm.com>
1101         * config/arc/constraints.md (Usd): Convert to define_constraint.
1102         (Us<): Likewise.
1103         (Us>): Likewise.
1105 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
1107         PR target/70821
1108         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
1109         Add new peephole2 where the first insn is *mov<mode>_or instead of
1110         *mov<mode>_internal.
1112 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
1114         * tracer.c (bb_seen): Make static.
1116 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
1118         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
1119         support, setup defaults.
1120         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
1121         * config/arc/arc.c (arc_init): Add NPS400 support.
1122         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
1123         (TARGET_ARC700): NPS400 is also an ARC700.
1124         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
1126 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
1128         PR target/70668
1129         * config/nds32/nds32.md (casesi): Don't access the operands array
1130         out of bounds.
1132 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
1134         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
1135         (or $-1,reg peephole2): Ditto.
1136         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
1138 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
1140         * doc/extend.texi (Common Function Attributes) [optimize]:
1141         Discourage use of the optimize attribute.
1143 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
1145         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
1146         special case builtin.
1147         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
1148         ALTIVEC_BUILTIN_VEC_ADDE.
1149         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
1150         support for ALTIVEC_BUILTIN_VEC_ADDE.
1151         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
1152         for __builtin_vec_adde.
1154 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
1156         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
1157         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
1159 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1161         PR testsuite/70595
1162         * doc/sourcebuild.texi (Effective-Target Keywords, Other
1163         attributes): Document cilkplus_runtime.
1165 2016-04-28  Martin Jambor  <mjambor@suse.cz>
1167         * tree-cfg.c (verify_expr): Verify that local declarations belong to
1168         this function.  Call verify_expr on MEM_REFs and bases of other
1169         handled_components.
1171 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1173         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
1174         for WORD_REGISTER_OPERATIONS to runtime check.
1176 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
1178         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
1180 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
1182         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
1183         big-endian compilation.
1184         * config/arc/arc.md (addf3): Likewise.
1185         (subdf3): Likewise.
1186         (muldf3): Likewise.
1188 2016-04-28  Richard Biener  <rguenther@suse.de>
1190         PR tree-optimization/70840
1191         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
1192         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
1193         Mark x * pow(x,c) -> pow(x,c+1) commutative.
1194         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
1196 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1198         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
1199         and explain why in a comment.
1201 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
1203         * config/arc/arc.md (cpu_facility): Add fpx variant.
1204         (subdf3): Prohibit use reverse sub when assist operations option
1205         is enabled.
1206         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
1207         instructions only when FPX is enabled.
1208         * testsuite/gcc.target/arc/trsub.c: New test.
1210 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
1212         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
1213         mult_operator when calculating "type" attribute.
1214         (*fop_<mode>_1_i387): Ditto.
1215         (*fop_xf_1_i387): Ditto.
1216         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
1217         Use std::swap to swap operands.  Use RTL expressions to generate
1218         converted pattern.
1220 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
1221             Joern Rennecke  <joern.rennecke@embecosm.com>
1223         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
1224         declaration.
1225         (emit_pic_move): Remove.
1226         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
1227         * config/arc/arc.c (emit_pic_move): Removed.
1228         (TARGET_HAVE_TLS): Define.
1229         (arc_conditional_register_usage): Test for arc_tp_regno.
1230         (arc_print_operand, arc_print_operand_address): Handle TLS
1231         unspecs.
1232         (arc_needs_pcl_p): New function.
1233         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
1234         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
1235         (arc_raw_symbolic_reference_mentioned_p): Likewise.
1236         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
1237         (arc_legitimize_tls_address): Likewise.
1238         (DTPOFF_ZERO_SYM): Define.
1239         (arc_legitimize_pic_address): Make it static, handle TLS cases.
1240         (arc_output_pic_addr_const): Print TLS unspecs.
1241         (prepare_pic_move): New function, replaces emit_pic_move.
1242         (arc_legitimate_constant_p): Handle TLS unspecs.
1243         (arc_legitimate_address_p): Likewise.
1244         (arc_rewrite_small_data_p): Use assert for TLS constants.
1245         (prepare_move_operands): Use prepare_pic_move.
1246         (arc_legitimize_address): Legitimize tls addresses.
1247         (arc_epilogue_uses): Check for arc_tp_regno.
1248         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
1249         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
1250         Define.
1251         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
1252         Likewise.
1253         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
1254         %(arc_tls_extra_start_spec).
1255         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
1256         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
1257         (EH_USES): Define.
1258         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
1259         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
1260         (UNSPEC_TLS_OFF): Add.
1261         (R10_REG): Define.
1262         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
1263         (get_thread_pointersi): New patterns.
1264         * config/arc/arc.opt (mtp-regno): New option.
1265         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
1266         (move_dest_operand): Likewise.
1267         * configure: Regenerate.
1268         * configure.ac: Add arc*-*-* case to test for tls.
1269         * doc/invoke.texi (ARC options): Document mtp-regno.
1271 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
1273         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
1274         the new ARC HS SIMD instructions.
1275         (arc_preferred_simd_mode): New function.
1276         (arc_autovectorize_vector_sizes): Likewise.
1277         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
1278         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
1279         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
1280         (arc_init_builtins): Add new SIMD builtin types.
1281         (arc_split_move): Handle 64 bit vector moves.
1282         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
1283         (TARGET_PLUS_QMACW): Define.
1284         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
1285         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
1286         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
1287         (VSUBADD4H): New builtins.
1288         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
1289         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
1291 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
1292             Matthias Klose  <doko@debian.org>
1294         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
1296 2016-04-28  Richard Biener  <rguenther@suse.de>
1298         PR middle-end/70777
1299         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
1300         canonicalization.
1302 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
1304         * common/config/sh/sh-common.c: Remove SH5 support.
1305         * config/sh/constraints.md: Likewise.
1306         * config/sh/config/sh/elf.h: Likewise.
1307         * config/sh/linux.h: Likewise.
1308         * config/sh/netbsd-elf.h: Likewise.
1309         * config/sh/predicates.md: Likewise.
1310         * config/sh/sh-c.c: Likewise.
1311         * config/sh/sh-protos.h: Likewise.
1312         * config/sh/sh.c: Likewise.
1313         * config/sh/sh.h: Likewise.
1314         * config/sh/sh.md: Likewise.
1315         * config/sh/sh.opt: Likewise.
1316         * config/sh/sync.md: Likewise.
1317         * config/sh/sh64.h: Delete.
1318         * config/sh/shmedia.h: Likewise.
1319         * config/sh/shmedia.md: Likewise.
1320         * config/sh/sshmedia.h: Likewise.
1321         * config/sh/t-netbsd-sh5-64: Likewise.
1322         * config/sh/t-sh64: Likewise.
1323         * config/sh/ushmedia.h: Likewise.
1325 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
1327         * config/i386/i386.md (sign_extend to memory peephole2s): Use
1328         general_reg_operand instead of register_operand predicate.
1330 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1332         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
1334 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
1336         * match.pd (A - B > A, A + B < A): New transformations.
1338 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
1340         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
1341         which defaults to true.  Emit an outer pair of parentheses only if
1342         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
1343         don't emit parentheses for the right-hand operand.
1345 2016-04-27  Jeff Law  <law@redhat.com>
1347         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
1349 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1351         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
1352         (altivec_lvx_<mode>_internal): Document.
1353         (altivec_lvx_<mode>_2op): New define_insn.
1354         (altivec_lvx_<mode>_1op): Likewise.
1355         (altivec_lvx_<mode>_2op_si): Likewise.
1356         (altivec_lvx_<mode>_1op_si): Likewise.
1357         (altivec_stvx_<mode>): Remove.
1358         (altivec_stvx_<mode>_internal): Document.
1359         (altivec_stvx_<mode>_2op): New define_insn.
1360         (altivec_stvx_<mode>_1op): Likewise.
1361         (altivec_stvx_<mode>_2op_si): Likewise.
1362         (altivec_stvx_<mode>_1op_si): Likewise.
1363         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
1364         Expand vec_ld and vec_st during parsing.
1365         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
1366         changes.
1367         (altivec_expand_stvx_be): Likewise.
1368         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
1369         address-masking behavior in RTL.
1370         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
1371         address-masking behavior in RTL.
1372         (altivec_expand_builtin): Change builtin code arguments for calls
1373         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
1374         (insn_is_swappable_p): Avoid incorrect swap optimization in the
1375         presence of lvx/stvx patterns.
1376         (alignment_with_canonical_addr): New function.
1377         (alignment_mask): Likewise.
1378         (find_alignment_op): Likewise.
1379         (recombine_lvx_pattern): Likewise.
1380         (recombine_stvx_pattern): Likewise.
1381         (recombine_lvx_stvx_patterns): Likewise.
1382         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
1383         stvx patterns from expand.
1384         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
1385         expansions.
1386         (vector_altivec_store_<mode>): Likewise.
1388 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
1390         * config/aarch64/aarch64.md
1391         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
1392         remove the "fp" attributes.
1393         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
1394         add the "simd" attributes.
1395         (*movdf_aarch64): Likewise.
1396         (*movtf_aarch64): Remove the "fp" attributes.
1397         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
1398         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
1400 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1402         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
1403         rtx to rtx_code_label *.
1404         * rtl.h (maybe_set_first_label_num): Likewise.
1406 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1408         * df-core.c (df_add_problem): Make the problem param be const.
1409         (df_remove_problem): Make local "problem" be const.
1410         * df-problems.c (problem_RD): Make const.
1411         (problem_LR): Likewise.
1412         (problem_LIVE): Likewise.
1413         (problem_MIR): Likewise.
1414         (problem_CHAIN): Likewise.
1415         (problem_WORD_LR): Likewise.
1416         (problem_NOTE): Likewise.
1417         (problem_MD): Likewise.
1418         * df-scan.c (problem_SCAN): Likewise.
1419         * df.h (struct df_problem): Make field "dependent_problem" be
1420         const.
1421         (struct dataflow): Likewise for field "problem".
1422         (df_add_problem): Make param const.
1424 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
1426         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
1427         inter-unit moves to/from vector registers are enabled.  Do not disable
1428         for TARGET_MMX.
1430 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1432         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
1433         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
1434         #define to...
1435         (enum df_problem_id): ...this new enum.
1436         (struct df_problem): Convert field "id" from "int" to
1437         enum df_problem_id.
1439 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
1441         * rtl.def: Update comment for "things in the instruction chain" to
1442         reflect the removal of the leading "i" field for INSN_UID in
1443         r210360.  Fix bogus apostrophe.
1445 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
1447         * config/i386/i386.md
1448         (lea arith with mem operand + setcc peephole2): Set operator mode.
1450 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
1452         PR target/70155
1453         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
1454         (dimode_scalar_to_vector_candidate_p): This.
1455         (timode_scalar_to_vector_candidate_p): New function.
1456         (scalar_to_vector_candidate_p): Likewise.
1457         (timode_check_non_convertible_regs): Likewise.
1458         (timode_remove_non_convertible_regs): Likewise.
1459         (remove_non_convertible_regs): Likewise.
1460         (remove_non_convertible_regs): Renamed to ...
1461         (dimode_remove_non_convertible_regs): This.
1462         (scalar_chain::~scalar_chain): Make it virtual.
1463         (scalar_chain::compute_convert_gain): Make it pure virtual.
1464         (scalar_chain::mark_dual_mode_def): Likewise.
1465         (scalar_chain::convert_insn): Likewise.
1466         (scalar_chain::convert_registers): Likewise.
1467         (scalar_chain::add_to_queue): Make it protected.
1468         (scalar_chain::emit_conversion_insns): Likewise.
1469         (scalar_chain::replace_with_subreg): Likewise.
1470         (scalar_chain::replace_with_subreg_in_insn): Likewise.
1471         (scalar_chain::convert_op): Likewise.
1472         (scalar_chain::convert_reg): Likewise.
1473         (scalar_chain::make_vector_copies): Likewise.
1474         (scalar_chain::convert_registers): New pure virtual function.
1475         (class dimode_scalar_chain): New class.
1476         (class timode_scalar_chain): Likewise.
1477         (scalar_chain::mark_dual_mode_def): Renamed to ...
1478         (dimode_scalar_chain::mark_dual_mode_def): This.
1479         (timode_scalar_chain::mark_dual_mode_def): New function.
1480         (timode_scalar_chain::convert_insn): Likewise.
1481         (dimode_scalar_chain::convert_registers): Likewise.
1482         (scalar_chain::compute_convert_gain): Renamed to ...
1483         (dimode_scalar_chain::compute_convert_gain): This.
1484         (scalar_chain::replace_with_subreg): Renamed to ...
1485         (dimode_scalar_chain::replace_with_subreg): This.
1486         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
1487         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
1488         (scalar_chain::make_vector_copies): Renamed to ...
1489         (dimode_scalar_chain::make_vector_copies): This.
1490         (scalar_chain::convert_reg): Renamed to ...
1491         (dimode_scalar_chain::convert_reg ): This.
1492         (scalar_chain::convert_op): Renamed to ...
1493         (dimode_scalar_chain::convert_op): This.
1494         (scalar_chain::convert_insn): Renamed to ...
1495         (dimode_scalar_chain::convert_insn): This.
1496         (scalar_chain::convert): Call convert_registers.
1497         (convert_scalars_to_vector): Change to scalar_chain pointer to
1498         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
1499         in 32-bit mode.  Delete scalar_chain pointer.  Call
1500         free_dominance_info in 64-bit mode.
1501         (pass_stv::gate): Remove TARGET_64BIT check.
1502         (ix86_option_override): Put the 64-bit STV pass before the CSE
1503         pass.
1505 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
1507         * dwarf2out.h (struct dw_loc_descr_node): Remove the
1508         dw_loc_frame_offset field.
1509         * dwarf2out.c (new_loc_descr): Likewise.
1510         (resolve_args_picking_1): Turn the VISITED hash set into a
1511         FRAME_OFFSET hash map. Use it to associate a frame offset to
1512         visited nodes. Remove uses of the CHECKING_P macro.
1513         (resolve_args_picking): Update call to resolve_args_picking_1.
1515 2016-04-27  Martin Liska  <mliska@suse.cz>
1517         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
1518         (free_loop_data): Release vuses of groups.
1520 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
1522         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
1523         instead of redundant use_id and boolean have_use_for.
1524         (struct iv_use): Change sub_id into group_id.  Remove field next.
1525         Move fields: related_cands, n_map_members, cost_map and selected
1526         to ...
1527         (struct iv_group): ... here.  New structure.
1528         (struct iv_common_cand): Use structure declaration directly.
1529         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
1530         (MAX_CONSIDERED_USES): Rename macro to ...
1531         (MAX_CONSIDERED_GROUPS): ... here.
1532         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
1533         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
1534         (dump_uses): Rename to ...
1535         (dump_groups): ... here.  Update all uses.
1536         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
1537         (find_induction_variables): Refactor format of dump information.
1538         (record_sub_use): Delete.
1539         (record_use): Update all uses.
1540         (record_group): New function.
1541         (record_group_use, find_interesting_uses_op): Call above functions.
1542         Update all uses.
1543         (find_interesting_uses_cond): Ditto.
1544         (group_compare_offset): New function.
1545         (split_all_small_groups): Rename to ...
1546         (split_small_address_groups_p): ... here.  Update all uses.
1547         (split_address_groups):  Update all uses.
1548         (find_interesting_uses): Refactor format of dump information.
1549         (add_candidate_1): Update all uses.  Remove redundant check on iv,
1550         base and step.
1551         (add_candidate, record_common_cand): Remove redundant assert.
1552         (add_iv_candidate_for_biv): Update use.
1553         (add_iv_candidate_derived_from_uses): Update all uses.
1554         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
1555         (alloc_use_cost_map): Ditto.
1556         (set_use_iv_cost, get_use_iv_cost): Rename to ...
1557         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
1558         (determine_use_iv_cost_generic): Ditto.
1559         (determine_group_iv_cost_generic): Ditto.
1560         (determine_use_iv_cost_address): Ditto.
1561         (determine_group_iv_cost_address): Ditto.
1562         (determine_use_iv_cost_condition): Ditto.
1563         (determine_group_iv_cost_cond): Ditto.
1564         (determine_use_iv_cost): Ditto.
1565         (determine_group_iv_cost): Ditto.
1566         (set_autoinc_for_original_candidates): Update all uses.
1567         (find_iv_candidates): Update all uses.  Refactor dump information.
1568         (determine_use_iv_costs): Ditto.
1569         (determine_iv_costs): Ditto.
1570         (iv_ca_cand_for_use): Rename to ...
1571         (iv_ca_cand_for_group): ... here.  Update all uses.
1572         (iv_ca_add_use, iv_ca_add_group): Ditto.
1573         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
1574         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
1575         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
1576         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
1577         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
1578         (create_new_iv, adjust_iv_update_pos): Ditto.
1579         (rewrite_use_address): Delete.
1580         (rewrite_use_address_1): Rename to ...
1581         (rewrite_use_address): ... here.
1582         (rewrite_use_compare): Update all uses.
1583         (rewrite_use): Delete.
1584         (rewrite_uses): Rename to ...
1585         (rewrite_groups): ... here.  Update all uses.
1586         (remove_unused_ivs, free_loop_data): Update all uses.
1587         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
1589 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1591         * rtlanal.c (nonzero_bits1): Convert preprocessor check
1592         for WORD_REGISTER_OPERATIONS to runtime check.
1594 2016-04-27  Richard Biener  <rguenther@suse.de>
1596         PR ipa/70760
1597         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
1598         aggregate_value_p to determine if a function result is
1599         returned by reference.
1600         (ipa_pta_execute): Functions having their address taken are
1601         not automatically nonlocal.
1603 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
1605         PR sanitizer/70683
1606         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
1607         * fold-const.c (operand_equal_p): If flag_checking and
1608         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
1609         and if it returns non-zero, assert iterative_hash_expr on both
1610         args is the same.
1612 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1614         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
1616 2016-04-27  Nick Clifton  <nickc@redhat.com>
1618         PR middle-end/49889
1619         * varasm.c (merge_weak): Generate an error if an attempt is made
1620         to convert a non-weak static function into a weak, public function.
1622 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1624         * params.def (MAX_PARTITION_SIZE): New param.
1625         * doc/invoke.texi: Document lto-max-partition.
1627 2016-04-27  Richard Biener  <rguenther@suse.de>
1629         PR ipa/70785
1630         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
1631         function cummulating used_from_other_partition, externally_visible
1632         and force_output from aliases.
1633         (refered_from_nonlocal_var): Likewise.
1634         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
1635         node flags properly.
1637 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
1639         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
1640         (-Wmemset-elt-size): New item.
1642 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
1644         PR ada/70759
1645         * stor-layout.h (internal_reference_types): Delete.
1646         * stor-layout.c (reference_types_internal): Likewise.
1647         (internal_reference_types): Likewise.
1648         (layout_type) <REFERENCE_TYPE>: Adjust.
1650 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
1652         PR sanitizer/70683
1653         * tree.h (inchash::add_expr): Add FLAGS argument.
1654         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
1655         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
1656         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
1657         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
1658         if swap_tree_comparison (code) is smaller than code, hash that
1659         and arguments in the other order.  Hash CONVERT_EXPR the same
1660         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
1661         of ADDR_EXPR of decl as the decl itself.  Add or remove
1662         OEP_ADDRESS_OF from recursive flags as needed.  For
1663         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
1664         operands commutatively and only the third one normally.
1665         For internal CALL_EXPR hash in CALL_EXPR_IFN.
1667 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
1669         * config/rtems.h (LIB_SPEC): Add -latomic.
1671 2016-04-27  Joel Sherrill  <joel@rtems.org>
1673         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
1674         xilink.ld and flags not relevant to RTEMS.
1676 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
1678         * toplev.c (backend_init_target): Avoid calling init_reload when using
1679         LRA.
1681 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
1683         * reorg.c (try_merge_delay_insns): Declare i and j inside the
1684         for loops rather than one for the whole function.
1686 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
1688         * match.pd (X + CST CMP X): New transformation.
1690 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
1692         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
1693         * fold-const.c (fold_binary_loc): Remove 2 transformations
1694         superseded by match.pd.
1695         * match.pd (x+x -> x*2): Generalize to integers.
1697 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
1699         * config/i386/i386.md (operation on memory peephole): Duplicate an
1700         existing peephole and adapt it to match lea rather than an operation
1701         that clobbers CC.
1703         PR rtl-optimization/57193
1704         * opts.c (default_options_table): Add OPT_frename_registers at -O2
1705         and above.
1706         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
1708 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
1710         * tree-if-conv.c (any_pred_load_store): New static variable.
1711         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
1712         any_pred_load_store instead of and_mask_load_store.
1713         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
1714         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
1715         (combine_blocks, tree_if_conversion): Ditto.
1717 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
1719         PR tree-optimization/70771
1720         PR tree-optimization/70775
1721         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
1722         virtual PHI nodes.  Delete parameter.
1723         (if_convertible_loop_p_1): Delete argument to above function.
1724         (predicate_all_scalar_phis): Delete code handling single-argument
1725         PHIs.
1726         (tree_if_conversion): Mark and update virtual SSA.
1728 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1730         PR target/61821
1731         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
1732         (x86_elf_aligned_common): Rename to ...
1733         (x86_elf_aligned_decl_common): ... this.
1734         Add decl arg.  Switch to .lbss for largecomm object.  Use
1735         LARGECOMM_SECTION_ASM_OP.
1736         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
1737         renaming.
1738         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
1739         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
1740         Pass new decl arg.
1741         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
1742         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
1744 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1746         PR target/59407
1747         * config/i386/i386.c (SECTION_LARGE): Define.
1748         (x86_64_elf_select_section): Set it for large data/bss sections.
1749         Only clear SECTION_WRITE for .lrodata.
1750         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
1751         data/bss sections.
1752         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
1753         * varasm.c (default_elf_asm_named_section): Grow flagchars.
1754         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
1755         SECTION_MACH_DEP.
1756         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
1757         * doc/tm.texi: Regenerate.
1759 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
1761         PR bootstrap/70704
1762         * configure.ac (--enable-checking): Document extra flag, for
1763         non-release builds default to --enable-checking=yes,extra.
1764         If misc checking and extra checking, define CHECKING_P to 2 instead
1765         of 1.
1766         * common.opt (fchecking=): Add.
1767         * doc/invoke.texi (-fchecking=): Document.
1768         * doc/install.texi: Document --enable-checking changes.
1769         * configure: Regenerated.
1770         * config.in: Regenerated.
1772 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1774         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
1775         attribute instead of which_alternative.
1776         * config/i386/sse.md (*mov<mode>_internal): Ditto.
1777         Use EXT_REX_SSE_REG_P where appropriate.
1779 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1781         * config/i386/predicates.md (const0_operand): Do not match
1782         const_wide_int code.
1783         (const1_operand): Ditto.
1785 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1787         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
1788         for SSE constm1 operands and TARGET_AVX512VL.
1789         (*movti_internal): Ditto.
1790         (*mov<mode>_or): Use constm1_operand predicate.
1791         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
1792         for SSE vector_all_ones operands and TARGET_AVX512VL.
1793         * config/i386/predicates.md (constm1_operand): New predicate.
1794         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
1795         emission of constant -1 load.
1797 2016-04-25  Jason Merrill  <jason@redhat.com>
1799         * gdbinit.in: Skip is-a.h.
1801         * attribs.c (register_scoped_attributes): Fix logic.
1802         * attribs.h: Declare register_scoped_attributes.
1804 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
1806         * config/rs6000/rs6000-builtin.def: Correct pasto error for
1807         stxvd2x and stxvw4x built-in functions.
1809 2016-04-25  DJ Delorie  <dj@redhat.com>
1811         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
1812         (ashrhi3): Likewise.
1813         (lshrhi3): Likewise.
1815 2016-04-25  Richard Biener  <rguenther@suse.de>
1817         PR tree-optimization/70780
1818         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
1819         wasn't visited yet.
1820         (compute_antic): Mark blocks with abnormal preds as visited as
1821         they have a final empty antic-in solution already.
1823 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1825         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
1827 2016-04-25  Michael Collison  <michael.collison@linaro.org>
1829         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
1830         mode is VQI to improve mixed mode vectorization.
1831         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
1832         define_insn to match low half of signed vaddw.
1833         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
1834         define_insn to match high half of signed vaddw.
1835         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
1836         define_insn to match low half of unsigned vaddw.
1837         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
1838         define_insn to match high half of unsigned vaddw.
1839         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
1840         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1841         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
1842         for new function.
1843         (arm_simd_check_vect_par_cnst_half_p): Likewise.
1844         * config/arm/predicates.md (vect_par_constant_high): Support
1845         big endian and simplify by calling
1846         arm_simd_check_vect_par_cnst_half
1847         (vect_par_constant_low): Likewise.
1849 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
1851         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
1852         predicate for operand 2.
1854 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
1855             H.J. Lu  <hongjiu.lu@intel.com>
1857         * config/i386/i386-protos.h (standard_sse_constant_p): Add
1858         machine_mode argument.
1859         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
1860         constm1_rtx operands.  For VOIDmode constants, get mode from
1861         pred_mode.  Check mode size if the mode is supported by ABI.
1862         (standard_sse_constant_opcode): Do not use standard_constant_p.
1863         Strictly check ABI support for all-ones operands.
1864         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
1865         immediates. Update calls to standard_sse_constant_p.
1866         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
1867         (ix86_rtx_costs): Ditto.
1868         * config/i386/i386.md (*movxi_internal_avx512f): Use
1869         nonimmediate_or_sse_const_operand instead of vector_move_operand.
1870         Use (v,BC) alternative instead of (v,C). Use register_operand
1871         checks instead of MEM_P.
1872         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
1873         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
1874         isa attribute.  Use register_operand checks instead of MEM_P.
1875         (*movti_internal): Use nonimmediate_or_sse_const_operand for
1876         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
1877         alternative and corresponding sse2 isa attribute.
1878         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
1879         to standard_sse_constant_p.
1880         (FP constant splitters): Ditto.
1881         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
1882         (C): Ditto.
1883         * config/i386/predicates.md (constm1_operand): Remove.
1884         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
1885         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
1886         vector_all_ones_operand instead of constm1_operand.
1888 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1890         * print-rtl.c (print_rtx_insn_vec): New function.
1891         * print-rtl.h: New prototype.
1892         * store-motion.c (struct st_expr): Make avail_stores a vector.
1893         (st_expr_entry): Adjust.
1894         (free_st_expr_entry): Likewise.
1895         (print_store_motion_mems): Likewise.
1896         (find_moveable_store): Likewise.
1897         (compute_store_table): Likewise.
1898         (delete_store): Likewise.
1899         (build_store_vectors): Likewise.
1901 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1903         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
1905 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
1907         * vec.h (vec_safe_contains): New function.
1908         (vec::contains): Likewise.
1909         (vec::begin): Likewise.
1910         (vec::end): Likewise.
1912 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
1914         PR sanitizer/70712
1915         * cfgexpand.c (expand_stack_vars): Fix typo.
1917 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1919         * system.h (list, map, set, vector): Include conditionally.
1920         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
1921         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
1922         * ipa-icf.c (INCLUDE_LIST): Define.
1923         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
1924         * config/sh/sh.c (INCLUDE_VECTOR): Define.
1925         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
1926         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
1927         * cp/logic.cc (INCLUDE_LIST): Define.
1928         * fortran/trans-common.c (INCLUDE_MAP): Define.
1930 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
1932         * auto-profile.c: Remove <string.h> include.
1933         * ipa-icf-gimple.c: Remove <list> include.
1934         * diagnostic.c: Remove <new> include.
1935         * genmatch.c: Likewise.
1936         * pretty-print.c: Likewise.
1937         * toplev.c: Likewise
1938         * c/c-objc-common.c: Likewise.
1939         * cp/error.c: Likewise.
1940         * fortran/error.c: Likewise.
1942 2016-04-22  Richard Biener  <rguenther@suse.de>
1944         * lto-streamer-in.c (input_ssa_names): Do not allocate
1945         GIMPLE_NOP for all SSA names.
1946         * lto-streamer-out.c (output_ssa_names): Do not output
1947         SSA names that should have been released.
1949 2016-04-22  Richard Biener  <rguenther@suse.de>
1951         PR tree-optimization/70740
1952         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
1953         VDEF.
1955 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
1957         PR target/70750
1958         * config/i386/predicates.md (call_insn_operand): Replace
1959         sibcall_memory_operand with memory_operand.
1961 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
1963         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
1964         has_single_use() tests.
1965         (register_edge_assert_for_1): Likewise.
1966         (find_assert_locations_1): Check the liveness bitmap instead of
1967         checking has_single_use().
1969 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
1971         PR target/70728
1972         * gcc/config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
1973         Extract AVX-512BW constraint from AVX.
1975 2016-04-21  Richard Biener  <rguenther@suse.de>
1977         PR tree-optimization/70725
1978         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
1979         for phi_convertible_by_degenerating_args.
1980         (predicate_all_scalar_phis): Handle single-argument PHIs.
1982 2016-04-21  Richard Biener  <rguenther@suse.de>
1984         PR middle-end/70747
1985         * fold-const.c (fold_comparison): Return properly typed
1986         constant boolean.
1988 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
1990         PR tree-optimization/70715
1991         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
1992         after expanding BASE using expand_simple_operations.
1994 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
1996         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
1997         New transformations.
1999 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
2001         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
2003 2016-04-20  Jan Hubicka  <jh@suse.cz>
2005         * ipa-inline.c (can_inline_edge_p): Pass caller info to
2006         ultiimate_alias_target.
2007         (update_callee_keys): Likewise.
2008         (lookup_recursive_calls): Likewise.
2009         (speculation_useful_p): Likewise.
2011 2016-04-20  Jan Hubicka  <jh@suse.cz>
2013         PR ipa/70018
2014         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
2015         (set_nothrow_flag_1): ... this; handle interposition correctly;
2016         recurse on aliases and thunks.
2017         (cgraph_node::set_nothrow_flag): New.
2018         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
2019         functions compiled with non-call exceptions that binds to current
2020         def.
2021         (propagate_nothrow): Be safe WRT interposition.
2022         * cgraph.h (set_nothrow_flag): Update prototype.
2024 2016-04-18  Jan Hubicka  <jh@suse.cz>
2026         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2027         max_loop_iterations_int.
2028         (tree_unswitch_outer_loop): Likewise.
2030 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
2032         PR tree-optimization/69489
2033         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
2034         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
2035         Revise dump message.
2036         (if_convertible_bb_p): Remove check on edge count of basic block's
2037         predecessors.
2039 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
2041         PR tree-optimization/56625
2042         PR tree-optimization/69489
2043         * tree-data-ref.h (DR_INNERMOST): New macro.
2044         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
2045         hashing struct innermost_loop_behavior.
2046         (ref_DR_map): Remove.
2047         (innermost_DR_map): New map.
2048         (baseref_DR_map): Revise comment.
2049         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
2050         to innermost_DR_map accroding to its innermost loop behavior.
2051         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
2052         to its innermost loop behavior.
2053         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
2054         Add initialization for innermost_DR_map.  Record memory reference
2055         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
2056         have innermost loop behavior.
2057         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
2058         innermost_DR_map.
2060 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
2062         * config/i386/i386.md (*lea<mode>_general_1): Rename from
2063         *lea_general_1.  Use explicit SWI12 mode interator.
2064         (*lea<mode>_general_2): Rename from *lea_general_2.
2065         Use explicit SWI12 mode interator.
2066         (*lea<mode>_general_3): Rename from *lea_general_3.
2067         Use explicit SWI12 mode interator.
2068         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
2069         Use explicit SWI12 mode interator.
2070         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
2071         Use explicit SWI48 mode interator.
2073 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2075         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
2076         Short-cut unaligned load and store cases.  Handle all integer
2077         vector modes.
2078         (ix86_expand_vector_move_misalign): Short-cut unaligned load
2079         and store cases.  Call ix86_avx256_split_vector_move_misalign
2080         directly without checking mode class.
2082 2016-04-20  Andrew Pinski  <apinski@cavium.com>
2083             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2085         PR target/64971
2086         * config/aarch64/aarch64.md (sibcall): Force call
2087         address to be DImode for ILP32.
2088         (sibcall_value): Likewise.
2090 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
2092         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
2094 2016-04-20  Richard Biener  <rguenther@suse.de>
2096         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
2097         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
2098         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
2099         (maybe_push_res_to_seq): Adjust.
2100         * gimple-fold.c (maybe_build_generic_op): Likewise.
2102 2016-04-20  Marek Polacek  <polacek@redhat.com>
2104         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
2105         rather than true.
2107 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
2109         * config/i386/sse.md (vec_unpacks_lo_hi): Always
2110         use kmovw to support AVX512F target.
2112 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
2114         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
2116 2016-04-20  Marek Polacek  <polacek@redhat.com>
2118         PR tree-optimization/70725
2119         * tree-if-conv.c (is_false_predicate): New function.
2120         (predicate_mem_writes): Use it.
2122 2016-04-20  Richard Biener  <rguenther@suse.de>
2124         PR tree-optimization/70726
2125         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
2126         shift amounts from a pattern stmt operand.
2128 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
2130         PR target/70674
2131         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
2132         stack_restore_from_fpr pattern when restoring r15.
2133         (s390_optimize_prologue): Strip away the memory barrier in the
2134         parallel when trying to get rid of restore insns.
2135         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
2136         definition for loading the stack pointer from an FPR.  Compared to
2137         the normal move insn this pattern includes a full memory barrier.
2139 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
2141         PR middle-end/70680
2142         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
2143         implicitly linear or lastprivate iterator on the outer context.
2145 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
2147         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
2148         alignment check.
2149         * config/i386/i386.md (ssememalign): Removed.
2150         * config/i386/sse.md: Remove ssememalign attribute from patterns.
2152 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
2154         PR target/69201
2155         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
2156         const short * to __builtin_ia32_loaddquhi512_mask.
2157         (_mm512_maskz_loadu_epi16): Likewise.
2158         (_mm512_mask_storeu_epi16): Pass short * to
2159         __builtin_ia32_storedquhi512_mask.
2160         (_mm512_mask_loadu_epi8): Pass const char * to
2161         __builtin_ia32_loaddquqi512_mask.
2162         (_mm512_maskz_loadu_epi8): Likewise.
2163         (_mm512_mask_storeu_epi8): Pass char * to
2164         __builtin_ia32_storedquqi512_mask.
2165         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
2166         const double * to __builtin_ia32_loadupd512_mask.
2167         (_mm512_mask_loadu_pd): Likewise.
2168         (_mm512_maskz_loadu_pd): Likewise.
2169         (_mm512_storeu_pd): Pass double * to
2170         __builtin_ia32_storeupd512_mask.
2171         (_mm512_mask_storeu_pd): Likewise.
2172         (_mm512_loadu_ps): Pass const float * to
2173         __builtin_ia32_loadups512_mask.
2174         (_mm512_mask_loadu_ps): Likewise.
2175         (_mm512_maskz_loadu_ps): Likewise.
2176         (_mm512_storeu_ps): Pass float * to
2177         __builtin_ia32_storeups512_mask.
2178         (_mm512_mask_storeu_ps): Likewise.
2179         (_mm512_mask_loadu_epi64): Pass const long long * to
2180         __builtin_ia32_loaddqudi512_mask.
2181         (_mm512_maskz_loadu_epi64): Likewise.
2182         (_mm512_mask_storeu_epi64): Pass long long *
2183         to __builtin_ia32_storedqudi512_mask.
2184         (_mm512_loadu_si512): Pass const int * to
2185         __builtin_ia32_loaddqusi512_mask.
2186         (_mm512_mask_loadu_epi32): Likewise.
2187         (_mm512_maskz_loadu_epi32): Likewise.
2188         (_mm512_storeu_si512): Pass int * to
2189         __builtin_ia32_storedqusi512_mask.
2190         (_mm512_mask_storeu_epi32): Likewise.
2191         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
2192         char * to __builtin_ia32_storedquqi256_mask.
2193         (_mm_mask_storeu_epi8): Likewise.
2194         (_mm256_mask_loadu_epi16): Pass const short * to
2195         __builtin_ia32_loaddquhi256_mask.
2196         (_mm256_maskz_loadu_epi16): Likewise.
2197         (_mm_mask_loadu_epi16): Pass const short * to
2198         __builtin_ia32_loaddquhi128_mask.
2199         (_mm_maskz_loadu_epi16): Likewise.
2200         (_mm256_mask_loadu_epi8): Pass const char * to
2201         __builtin_ia32_loaddquqi256_mask.
2202         (_mm256_maskz_loadu_epi8): Likewise.
2203         (_mm_mask_loadu_epi8): Pass const char * to
2204         __builtin_ia32_loaddquqi128_mask.
2205         (_mm_maskz_loadu_epi8): Likewise.
2206         (_mm256_mask_storeu_epi16): Pass short * to.
2207         __builtin_ia32_storedquhi256_mask.
2208         (_mm_mask_storeu_epi16): Pass short * to.
2209         __builtin_ia32_storedquhi128_mask.
2210         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
2211         const double * to __builtin_ia32_loadupd256_mask.
2212         (_mm256_maskz_loadu_pd): Likewise.
2213         (_mm_mask_loadu_pd): Pass onst double * to
2214         __builtin_ia32_loadupd128_mask.
2215         (_mm_maskz_loadu_pd): Likewise.
2216         (_mm256_mask_storeu_pd): Pass double * to
2217         __builtin_ia32_storeupd256_mask.
2218         (_mm_mask_storeu_pd): Pass double * to
2219         __builtin_ia32_storeupd128_mask.
2220         (_mm256_mask_loadu_ps): Pass const float * to
2221         __builtin_ia32_loadups256_mask.
2222         (_mm256_maskz_loadu_ps): Likewise.
2223         (_mm_mask_loadu_ps): Pass const float * to
2224         __builtin_ia32_loadups128_mask.
2225         (_mm_maskz_loadu_ps): Likewise.
2226         (_mm256_mask_storeu_ps): Pass float * to
2227         __builtin_ia32_storeups256_mask.
2228         (_mm_mask_storeu_ps): ass float * to
2229         __builtin_ia32_storeups128_mask.
2230         (_mm256_mask_loadu_epi64): Pass const long long * to
2231         __builtin_ia32_loaddqudi256_mask.
2232         (_mm256_maskz_loadu_epi64): Likewise.
2233         (_mm_mask_loadu_epi64): Pass const long long * to
2234         __builtin_ia32_loaddqudi128_mask.
2235         (_mm_maskz_loadu_epi64): Likewise.
2236         (_mm256_mask_storeu_epi64): Pass long long * to
2237         __builtin_ia32_storedqudi256_mask.
2238         (_mm_mask_storeu_epi64): Pass long long * to
2239         __builtin_ia32_storedqudi128_mask.
2240         (_mm256_mask_loadu_epi32): Pass const int * to
2241         __builtin_ia32_loaddqusi256_mask.
2242         (_mm256_maskz_loadu_epi32): Likewise.
2243         (_mm_mask_loadu_epi32): Pass const int * to
2244         __builtin_ia32_loaddqusi128_mask.
2245         (_mm_maskz_loadu_epi32): Likewise.
2246         (_mm256_mask_storeu_epi32): Pass int * to
2247         __builtin_ia32_storedqusi256_mask.
2248         (_mm_mask_storeu_epi32): Pass int * to
2249         __builtin_ia32_storedqusi128_mask.
2250         * config/i386/i386-builtin-types.def (PCSHORT): New.
2251         (PINT64): Likewise.
2252         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
2253         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
2254         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
2255         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
2256         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
2257         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
2258         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
2259         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
2260         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
2261         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
2262         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
2263         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
2264         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
2265         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
2266         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
2267         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
2268         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
2269         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
2270         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
2271         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
2272         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
2273         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
2274         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
2275         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
2276         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
2277         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
2278         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
2279         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
2280         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
2281         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
2282         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
2283         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
2284         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
2285         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
2286         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
2287         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
2288         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
2289         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
2290         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
2291         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
2292         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
2293         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
2294         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
2295         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
2296         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
2297         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
2298         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
2299         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
2300         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
2301         use UNSPEC_STOREU.
2302         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
2303         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
2304         load nor store.
2305         (ix86_expand_vector_move_misalign): Likewise.
2306         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
2307         to scalar function prototype for unaligned load/store builtins.
2308         (ix86_expand_special_args_builtin): Updated.
2309         * config/i386/sse.md (UNSPEC_LOADU): Removed.
2310         (UNSPEC_STOREU): Likewise.
2311         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
2312         (VI_ULOADSTORE_F_AVX512VL): Likewise.
2313         (ssescalarsize): Handle V4TI, V2TI and V1TI.
2314         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2315         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
2316         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
2317         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
2318         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
2319         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
2320         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
2321         (<avx512>_storedqu<mode>_mask): Likewise.
2322         (*sse4_2_pcmpestr_unaligned): Likewise.
2323         (*sse4_2_pcmpistr_unaligned): Likewise.
2324         (*mov<mode>_internal): Renamed to ...
2325         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
2326         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
2327         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
2328         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
2330 2016-04-19  Richard Biener  <rguenther@suse.de>
2332         PR tree-optimization/70171
2333         * tree-ssa-phiprop.c: Include stor-layout.h.
2334         (phiprop_insert_phi): Handle the aggregate copy case.
2335         (propagate_with_phi): Likewise.
2337 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
2339         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
2340         instead of simplify_gen_subreg (... , 0).
2341         (ix86_delegitimize_address): Ditto.
2342         (ix86_split_divmod): Ditto.
2343         (ix86_split_copysign_const): Ditto.
2344         (ix86_split_copysign_var): Ditto.
2345         (ix86_expand_args_builtin): Ditto.
2346         (ix86_expand_round_builtin): Ditto.
2347         (ix86_expand_special_args_builtin): Ditto.
2348         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
2349         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
2350         (udivmodqi4): Ditto.
2351         (absneg splitters): Ditto.
2352         (*jcc_bt<mode>_1): Ditto.
2354 2016-04-19  Richard Biener  <rguenther@suse.de>
2356         PR tree-optimization/70724
2357         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
2358         restoring out from ...
2359         (free_scc_vn): ... here.
2360         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
2361         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
2362         tail merging.
2363         (pass_fre::execute): Restore SSA info.
2365 2016-04-19  Richard Biener  <rguenther@suse.de>
2367         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
2368         * gimple-walk.c (walk_gimple_op): Initialize it.
2369         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
2370         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
2371         remapping SSA names of defs.
2372         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
2373         adjustment.
2375 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
2377         PR middle-end/70689
2378         * lra-constraints.c (equiv_substition_p): New.
2379         (process_alt_operands): Use it.
2380         (swap_operands): Swap it.
2381         (curr_insn_transform): Update it.
2383 2016-04-18  Michael Matz  <matz@suse.de>
2385         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
2386         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
2387         * tree-core.h (tree_type_common.align): Use bit-field.
2388         (tree_type_common.spare): New.
2389         (tree_decl_common.off_align): Make smaller.
2390         (tree_decl_common.align): Use bit-field.
2392         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
2393         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
2394         (scan_sharing_clauses): Ditto.
2395         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2396         (omp_finish_file): Ditto.
2397         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
2398         (layout_decl): Ditto.
2399         (relayout_decl): Ditto.
2400         (finalize_record_size): Use SET_TYPE_ALIGN.
2401         (finalize_type_size): Ditto.
2402         (finish_builtin_struct): Ditto.
2403         (layout_type): Ditto.
2404         (initialize_sizetypes): Ditto.
2405         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
2406         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
2407         (lookup_field_for_decl): Use SET_DECL_ALIGN.
2408         (get_chain_field): Ditto.
2409         (get_trampoline_type): Ditto.
2410         (get_nl_goto_field): Ditto.
2411         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
2412         SET_DECL_ALIGN.
2413         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
2414         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
2415         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
2416         (build_qualified_type): Use SET_TYPE_ALIGN.
2417         (build_aligned_type, build_range_type_1): Ditto.
2418         (build_atomic_base): Ditto.
2419         (build_common_tree_nodes): Ditto.
2420         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
2421         (expand_one_stack_var_at): Ditto.
2422         * coverage.c (build_var): Use SET_DECL_ALIGN.
2423         * except.c (init_eh): Ditto.
2424         * function.c (assign_parm_setup_block): Ditto.
2425         * symtab.c (increase_alignment_1): Ditto.
2426         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
2427         * tree-vect-stmts.c (ensure_base_align): Ditto.
2428         * varasm.c (align_variable): Ditto.
2429         (assemble_variable): Ditto.
2430         (build_constant_desc): Ditto.
2431         (output_constant_def_contents): Ditto.
2433         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
2434         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
2435         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
2436         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
2437         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
2439 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
2441         PR target/70708
2442         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
2443         replace %vmovsd with "%vmovq".
2444         (vec_concatv2df): Likewise.
2446 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
2448         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
2449         (*vec_extractv2si_0): Ditto.
2450         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
2451         (zero_extended_scalar_load_operand splitters): Ditto.
2452         (vec_extract splitters): Ditto.
2453         (*vec_extractv4si_0_zext): Ditto.
2454         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
2455         and lowpart_subreg.
2456         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
2457         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
2458         (*sse4_1_extractps): Use lowpart_subreg.
2460 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2462         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
2463         gld requirements.
2464         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
2465         Mention Solaris 11 packaging changes.
2466         Update gas and gld requirements.
2467         Remove reference to pre-Solaris 10 bug.
2468         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
2469         systems and bugs.
2470         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
2471         with cc.
2473 2016-04-17  Jan Hubicka  <jh@suse.cz>
2475         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
2476         max_loop_iterations_int.
2478 2016-04-18  Richard Biener  <rguenther@suse.de>
2480         PR tree-optimization/43434
2481         * tree-ssa-structalias.c (struct vls_data): New.
2482         (visit_loadstore): Handle all pointer-based accesses.
2483         (compute_dependence_clique): Compute a bitmap of restrict tags
2484         assigned bases and pass it to visit_loadstore.
2486 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
2488         PR target/70711
2489         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
2490         armv8.1-a and armv8.1-a+crc.
2492 2016-04-18  Richard Biener  <rguenther@suse.de>
2494         PR tree-optimization/70701
2495         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
2496         references after translating through a memcpy.
2498 2016-04-18  Richard Biener  <rguenther@suse.de>
2500         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
2501         (compute_antic): ... here.  For partial antic use regular
2502         postorder and scrap iteration.
2503         (compute_partial_antic_aux): Remove unused return value.
2504         (init_pre): Do not allocate postorder.
2505         (fini_pre): Do not free postorder.
2507 2016-04-18  Richard Biener  <rguenther@suse.de>
2509         PR middle-end/37870
2510         * expmed.c (extract_bit_field_1): Remove broken case
2511         using a wider MODE_INT mode.
2513 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
2515         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
2516         unless compiling with at least GCC-4.8.
2518 2016-04-17  Jan Hubicka  <jh@suse.cz>
2520         PR bootstrap/70706
2521         * graphite.c (graphite_finalize): Update call to
2522         tree_estimate_probability.
2523         * predict.h (tree_estimate_probability): Update prototype.
2525 2016-04-17  Jan Hubicka  <jh@suse.cz>
2527         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
2528         (tree_estimate_probability): Likewise.
2529         (pass_profile::execute): Update.
2530         (report_predictor_hitrates): New function.
2531         * profile.c (compute_branch_probabilities): Use it.
2532         * predict.h (report_predictor_hitrates): Declare.
2534 2016-04-17  Jan Hubicka  <jh@suse.cz>
2536         PR ipa/70018
2537         * cgraph.h (cgraph_node::set_const_flag,
2538         cgraph_node::set_pure_flag): Update prototype to return bool;
2539         update comment.
2540         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
2541         of interposable symbol are interposable, too.
2542         (cgraph_set_const_flag_1): Rename to ...
2543         (set_const_flag_1): ... this one; change to self recursive function
2544         instead of call_for_symbol_thunks_and_aliases. Handle correctly
2545         clearnig the flag in all variants and also virtual thunks of const
2546         functions are pure; track if any change was done.
2547         (cgraph_node::set_const_flag): Update.
2548         (struct set_pure_flag_info): New struct.
2549         (cgraph_set_pure_flag_1): Rename to ...
2550         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
2551         rather than pointer encoded flags; track if any changes was done;
2552         handle correctly clearning flag and setting flag of aliases already
2553         declared const.
2554         (cgraph_node::set_pure_flag): Update.
2555         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
2557 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2559         PR other/70433
2560         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
2561         backslash in label.
2563 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2565         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
2566         '{}<> ' as escape-for-record.
2568 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2570         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
2571         structure.
2573 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2575         PR other/70185
2576         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
2577         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
2578         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
2579         * passes.c (finish_optimization_passes): Only call
2580         finish_graph_dump_file if dfi->graph_dump_initialized.
2581         (execute_function_dump, pass_init_dump_file): Use
2582         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
2584 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2586         PR tree-optimization/70256
2587         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
2588         (debug_varmap): New function.
2590 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2592         PR other/70183
2593         * passes.c (pass_manager::register_pass): Propagate pflags.
2595 2016-04-17  Tom de Vries  <tom@codesourcery.com>
2597         PR other/68875
2598         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
2599         * passes.c (pass_manager::pass_manager): Declare and init p_start in
2600         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
2601         check if it's equal to p_start.
2602         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
2604 2016-04-15  Jan Hubicka  <jh@suse.cz>
2606         PR ipa/70018
2607         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
2608         function does not bind to current def.
2609         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
2610         handle conservatively calls to functions that does not need to bind
2611         to current def.
2612         (check_call): Update call of worse_state.
2613         (ignore_edge_for_nothrow): Update.
2614         (ignore_edge_for_pure_const): Likewise.
2615         (propagate_pure_const): Update calls to worse_state.
2616         (skip_function_for_local_pure_const): Reformat comments.
2618 2016-04-15  Jan Hubicka  <jh@suse.cz>
2620         PR ipa/70018
2621         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
2622         (cgraph_node::function_symbol): Likewise.
2623         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2624         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
2625         (symtab_node::ultimate_alias_target): Add REF parameter.
2626         (symtab_node::binds_to_current_def_p): Declare.
2627         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
2628         (cgraph_node::function_symbol): Likewise.
2629         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
2630         (cgraph_node::get_availability): Likewise.
2631         (cgraph_edge::binds_to_current_def_p): New inline function.
2632         (varpool_node::get_availability): Add REF parameter.
2633         (varpool_node::ultimate_alias_target): Likewise.
2634         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
2635         (symtab_node::binds_to_current_def_p): Likewise.
2636         * varpool.c (varpool_node::get_availability): Likewise.
2638 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
2640         PR target/70662
2641         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
2642         Fix mode size check.
2644 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
2646         * BASE-VER: Set to 7.0.0.
2648 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
2650         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
2652 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2654         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
2655         architecture revisions.
2657 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
2659         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
2660         * config/i386/i386.c (ix86_using_red_zone): No longer static.
2661         * config/i386/i386.md (stack decrement to push peepholes): Guard
2662         with !x86_using_red_zone ().
2664 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
2666         PR c++/70675
2667         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
2668         to dump_generic_node.
2669         (NIY): Pass also flags to do_niy.
2671 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
2673         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
2674         (simd_clone_vector_of_formal_parm_types)
2675         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
2676         (simd_clone_mangle, simd_clone_create)
2677         (simd_clone_adjust_return_type, create_tmp_simd_array)
2678         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
2679         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
2680         (ipa_simd_modify_function_body, simd_clone_linear_addend)
2681         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
2682         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
2683         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
2684         * omp-simd-clone.c: ... this new file.
2685         (simd_clone_vector_of_formal_parm_types): Make it static.
2686         * Makefile.in (OBJS): Add omp-simd-clone.o.
2688 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
2690         PR target/70662
2691         * config/i386/sse.md: Use proper memory operand modifiers.
2694 2016-04-15  Richard Biener  <rguenther@suse.de>
2695         Alan Modra  <amodra@gmail.com>
2697         PR tree-optimization/70130
2698         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
2699         when alignment stays not the same and no not use the realign
2700         scheme then.
2702 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
2704         PR target/70669
2705         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
2706         direct move handlers for KFmode. Change TFmode handlers test from
2707         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
2709 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
2711         PR c++/70594
2712         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
2713         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
2714         (inlined_polymorphic_ctor_dtor_block_p): Use it.
2715         * tree-ssa-live.c (remove_unused_scope_block_p): When
2716         in_ctor_dtor_block, avoid discarding not just BLOCKs with
2717         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
2718         block_ultimate_origin is FUNCTION_DECL.
2719         (remove_unused_locals): If current_function_decl is
2720         polymorphic_ctor_dtor_p, pass initial true to
2721         remove_unused_scope_block_p' is_ctor_dtor_block.
2723 2016-04-14  Martin Sebor  <msebor@redhat.com>
2725         PR c++/69517
2726         PR c++/70019
2727         PR c++/70588
2728         * doc/extend.texi (Variable Length): Revert.
2730 2016-04-14  Marek Polacek  <polacek@redhat.com>
2731             Jan Hubicka  <hubicka@ucw.cz>
2733         PR c++/70029
2734         * tree.c (verify_type): Disable the canonical type of main variant
2735         check.
2737 2016-04-14  Jason Merrill  <jason@redhat.com>
2739         * cfgexpand.c, expr.c: Revert previous change.
2741 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
2743         PR middle-end/70643
2744         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
2745         when building a mem ref for the incoming reduction variable.
2747 2016-04-14  Richard Biener  <rguenther@suse.de>
2749         PR tree-optimization/70614
2750         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
2751         loop if the evolution dropped to chrec_dont_know.
2752         (interpret_condition_phi): Likewise.
2754 2016-04-14  Richard Biener  <rguenther@suse.de>
2756         PR tree-optimization/70623
2757         * tree-ssa-pre.c (changed_blocks): Make global ...
2758         (compute_antic): ... local here.  Move and fix worklist
2759         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
2760         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
2761         worklist handling, dump when ANTIC_IN changed.
2762         (compute_partial_antic_aux): Remove worklist handling.
2763         (init_pre): Do not compute post dominators.  Add a comment about
2764         the CFG order chosen.
2765         (fini_pre): Do not free post dominators.
2767 2016-04-13  Martin Sebor  <msebor@redhat.com>
2769         PR c++/69517
2770         PR c++/70019
2771         PR c++/70588
2772         * doc/extend.texi (Variable Length): Document C++ specifics.
2774 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
2776         PR c++/70641
2777         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
2778         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
2779         eh edges have been purged.
2781         PR c++/70594
2782         * tree-sra.c (create_access_replacement,
2783         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
2784         gets fancy name.
2785         * tree-pretty-print.c (dump_fancy_name): New function.
2786         (dump_decl_name, dump_generic_node): Use it.
2788 2016-04-13  Jason Merrill  <jason@redhat.com>
2790         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
2791         * expr.c (expand_expr_real_1): Likewise.
2793 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
2795         * config/i386/i386.md (kunpckhi): Swap operands.
2796         (kunpcksi): Likewise.
2797         (kunpckdi): Likewise.
2798         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
2799         (vec_pack_trunc_<mode>): Likewise.
2801 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
2803         PR debug/70628
2804         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
2806         PR middle-end/70633
2807         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
2808         gimplification turns some element into non-constant.
2810         PR debug/70628
2811         * rtl.h (convert_memory_address_addr_space_1): New prototype.
2812         * explow.c (convert_memory_address_addr_space_1): No longer static,
2813         add NO_EMIT argument and don't call convert_modes if true, pass
2814         it down recursively, remove break after return.
2815         (convert_memory_address_addr_space): Adjust caller.
2816         * simplify-rtx.c (simplify_unary_operation_1): Call
2817         convert_memory_address_addr_space_1 instead of convert_memory_address,
2818         if it returns NULL, don't simplify.
2820 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
2822         PR target/70630
2823         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
2825 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2827         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
2828         Bump the upper SIMDLEN limits, so that if the return type or
2829         characteristic type if the return type is void can be passed in
2830         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
2831         allowed.
2833 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
2835         PR target/70640
2836         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
2837         Do not use "=" constraint on an input constraint.
2838         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
2839         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
2840         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
2841         generates (neg (abs ...)) instead of (abs ...).
2843 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2845         PR rtl-optimization/70596
2846         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
2847         just invalidate LRA data and reset them.  Adjust dump wording.
2849 2016-04-12  Martin Liska  <mliska@suse.cz>
2851         Revert
2852         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
2854         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
2855         estimates here.
2856         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
2857         max_loop_iterations_int.
2858         (tree_unswitch_outer_loop): Likewise.
2859         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
2860         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
2862 2016-04-12  Tom de Vries  <tom@codesourcery.com>
2864         PR tree-optimization/68756
2865         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
2866         instead of new_name.
2868 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
2870         PR tree-optimization/70602
2871         * tree-sra.c (generate_subtree_copies): Don't write anything into
2872         constant pool decls.
2874         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
2875         regardless whether there are depend clauses or not.
2877 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
2879         PR target/70381
2880         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
2881         target attribute and pragma from changing the -mfloat128
2882         and -mfloat128-hardware options.
2884         * doc/extend.texi (Additional Floating Types): Document PowerPC
2885         __float128 restrictions.
2887 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2889         PR target/70133
2890         * config/aarch64/driver-aarch64.c
2891         (aarch64_get_extension_string_for_isa_flags): New.
2892         (arch_extension): Rename to...
2893         (aarch64_arch_extension): ...This.
2894         (ext_to_feat_string): Rename to...
2895         (aarch64_extensions): ...This.
2896         (aarch64_core_data): Keep track of architecture extension flags.
2897         (cpu_data): Rename to...
2898         (aarch64_cpu_data): ...This.
2899         (aarch64_arch_driver_info): Keep track of architecture extension
2900         flags.
2901         (get_arch_name_from_id): Rename to...
2902         (get_arch_from_id): ...This, change return type.
2903         (host_detect_local_cpu): Update and reformat for renames, handle
2904         extensions through common infrastructure.
2906 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2908         PR target/70133
2909         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
2910         track of a canonical flag name.
2911         (all_extensions): Likewise.
2912         (arch_to_arch_name): Also track extension flags enabled by the arch.
2913         (all_architectures): Likewise.
2914         (aarch64_parse_extension): Move to here.
2915         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
2916         rework.
2917         (aarch64_rewrite_selected_cpu): Update for above change.
2918         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
2919         are handled, such that the single explicit value enabled by an
2920         extension is kept seperate from the implicit values it also enables.
2921         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
2922         to here.
2923         (aarch64_parse_extension): New.
2924         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
2925         here to config/aarch64/aarch64-protos.h.
2926         (aarch64_parse_extension): Move from here to
2927         common/config/aarch64/aarch64-common.c.
2928         (aarch64_option_print): Update.
2929         (aarch64_declare_function_name): Likewise.
2930         (aarch64_start_file): Likewise.
2931         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
2932         the canonical flag for extensions.
2933         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
2934         flags.
2936 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
2938         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
2939         AARCH64_FL_CRC.
2941 2016-04-09  Tom de Vries  <tom@codesourcery.com>
2943         PR tree-optimization/68953
2944         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
2945         first to last subscript.
2947 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
2949         PR tree-optimization/70586
2950         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
2951         for any calls.
2953 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
2955         PR lto/70289
2956         PR ipa/70348
2957         PR tree-optimization/70373
2958         PR middle-end/70533
2959         PR middle-end/70534
2960         PR middle-end/70535
2961         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
2962         clauses for acc parallel reductions as necessary.  Error on those
2963         that are private.
2964         * omp-low.c (scan_sharing_clauses): Don't install variables which
2965         are used in acc parallel reductions.
2966         (lower_rec_input_clauses): Remove dead code.
2967         (lower_oacc_reductions): Add support for reference reductions.
2968         (lower_reduction_clauses): Remove dead code.
2969         (lower_omp_target): Don't remap variables appearing in acc parallel
2970         reductions.
2971         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
2973 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
2975         PR middle-end/70593
2976         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
2977         with multiple SSA_NAME defs, force the outputs other than first
2978         to be live before calling live_track_process_def on each output.
2980         PR rtl-optimization/70574
2981         * fwprop.c (forward_propagate_and_simplify): Don't add
2982         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
2983         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
2984         paradoxical subregs within *loc.
2986 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
2988         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
2989         -ftree-parallelize-loops={0,1}.
2990         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
2991         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
2992         * config/ia64/hpux.h (LIB_SPEC): Likewise.
2993         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
2994         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
2996 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
2998         PR sanitizer/70541
2999         * asan.c (instrument_derefs): If we get unknown location, extract it
3000         with EXPR_LOCATION.
3001         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
3003 2016-04-08  Tom de Vries  <tom@codesourcery.com>
3005         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
3006         implicit firstprivate clause.
3008 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3010         PR target/70566
3011         * config/arm/thumb2.md (tst + branch-> lsls + branch
3012         peephole below *orsi_not_shiftsi_si): Require that condition
3013         register is dead after the peephole.
3014         (second peephole after the above): Likewise.
3016 2016-04-08  Alan Modra  <amodra@gmail.com>
3018         PR target/70117
3019         * builtins.c (fold_builtin_classify): For IBM extended precision,
3020         look at just the high-order double to test for NaN.
3021         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
3022         test just the high double for Inf but both doubles for subnormal
3023         limit.
3025 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
3027         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
3028         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
3029         node->simdclone->mask_mode != VOIDmode masks.
3030         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
3031         earlier, use it instead of node->simdclone.
3032         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3033         Set clonei->mask_mode.
3035 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
3037         PR c/70436
3038         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
3039         Pass it through to cp_parser_already_scoped_statement.
3040         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
3041         it through to cp_parser_statement.
3042         (cp_parser_statement): Pass IF_P through to
3043         cp_parser_iteration_statement.
3044         (cp_parser_pragma): Adjust call to
3045         cp_parser_iteration_statement.
3047 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
3049         PR c/70436
3050         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
3051         resolve a future -Wparentheses warning.
3052         * omp-low.c (scan_sharing_clauses): Likewise.
3053         * tree-parloops.c (eliminate_local_variables): Likewise.
3055 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
3057         PR rtl-optimization/70398
3058         * lra-constraints.c (process_address_1): Check zero scale and code
3059         for reloading with zero scale.
3061 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
3063         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
3064         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
3066 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
3068         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
3069         Add support for AVX512F clones, include them by default for
3070         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
3071         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
3072         up to 128.
3074         PR middle-end/70550
3075         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
3076         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
3077         firstprivate clauses.
3078         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
3079         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
3080         (lower_omp_target): Set TREE_NO_WARNING for
3081         non-addressable possibly uninitialized vars which are copied into
3082         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
3084 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
3086         * config/pa/predicates.md (integer_store_memory_operand): Accept
3087         REG+D operands with a large offset when reload_in_progress is true.
3088         (floating_point_store_memory_operand): Likewise.
3090 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
3092         PR c++/70336
3093         * match.pd (nested int casts): Limit to GIMPLE.
3095 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
3097         PR ipa/66223
3098         * ipa-devirt.c (maybe_record_node): Fix comment; use
3099         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
3101 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
3103         PR rtl-optimization/70542
3104         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
3105         if there are any uses other than insn or debug insns.
3107 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
3108             Jakub Jelinek  <jakub@redhat.com>
3110         PR tree-optimization/70509
3111         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
3112         Shift HOST_WIDE_INT_1U instead of 1.
3114 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
3116         PR tree-optimization/70509
3117         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
3118         of the vector base type for index.
3120 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
3122         PR target/70510
3123         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
3125 2016-04-05  Richard Biener  <rguenther@suse.de>
3127         PR tree-optimization/70526
3128         * tree-sra.c (build_ref_for_offset): Use prev_base to
3129         extract the alias pointer type.
3131 2016-04-05  Richard Biener  <rguenther@suse.de>
3133         * dse.c (struct store_info): Remove alias_set member.
3134         (struct read_info_type): Likewise.
3135         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
3136         spill_deleted, clear_alias_set_lookup): Remove.
3137         (get_group_info): Remove dead base == NULL_RTX case.
3138         (dse_step0): Remove initialization of removed variables.
3139         (delete_dead_store_insn): Reomve alias set dumping.
3140         (free_read_records): Remove alias_set handling.
3141         (canon_address): Remove alias_set_out parameter.
3142         (record_store): Remove spill_alias_set, it's always zero.
3143         (check_mem_read_rtx): Likewise.
3144         (dse_step2): Rename from ...
3145         (dse_step2_nospill): ... this.  Adjust.
3146         (scan_stores): Rename from ...
3147         (scan_stores_nospill): ... this.
3148         (scan_reads): Rename from ...
3149         (scan_reads_nospill): ... this.
3150         (scan_stores_spill, scan_reads_spill): Remove.
3151         (dse_step3_scan): Remove for_spills argument which is always false.
3152         (dse_step3): Likewise.
3153         (dse_step5): Rename from ...
3154         (dse_step5_nospill): ... this.  Remove alias_set handling.
3155         (rest_of_handle_dse): Adjust.
3157 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
3159         PR target/70525
3160         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
3161         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
3162         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
3163         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
3165 2016-04-05  Richard Biener  <rguenther@suse.de>
3167         PR middle-end/70499
3168         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
3169         non-register type temporaries into SSA.
3171 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
3173         PR ipa/66223
3174         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
3175         calls when sanitizing.
3176         (possible_polymorphic_call_target_p): Fix formatting.
3178 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3179             Jakub Jelinek <jakub@redhat.com>
3181         PR middle-end/70457
3182         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
3183         to ensure a call statement is compatible with a built-in's
3184         prototype.
3185         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
3186         Likewise.
3188 2016-04-04  Richard Biener  <rguenther@suse.de>
3190         PR rtl-optimization/70484
3191         * rtl.h (canon_output_dependence): Declare.
3192         * alias.c (canon_output_dependence): New function.
3193         * dse.c (record_store): Use canon_output_dependence rather
3194         than canon_true_dependence.
3196 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
3198         PR ipa/68881
3199         * cgraph.h (symtab_node::copy_visibility_from): New function.
3200         * symtab.c (symtab_node::copy_visibility_from): New function.
3201         * ipa-visibility.c (optimize_weakref): New function.
3202         (function_and_variable_visibility): Use it.
3204 2016-04-04  Martin Liska  <mliska@suse.cz>
3206         PR hsa/70402
3207         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
3208         value that is really in range handled by SBR instruction.
3209         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
3210         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
3211         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
3213 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
3215         PR target/70416
3216         PR target/67391
3217         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
3218         set, but not for SP_REG operands.
3220 2016-04-02  Martin Sebor  <msebor@redhat.com>
3222         PR c++/67376
3223         * fold-const.c (maybe_nonzero_address): New function.
3224         (fold_comparison): Call it.  Fold equality and relational
3225         expressions involving null pointers.
3226         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
3228 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
3230         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
3231         the "Y" constraint (scalar FP 0.0 immediate).
3233         * gcc/config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
3234         Add the "const_double" to the list of operand constraints.
3236 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
3238         PR rtl-optimization/70467
3239         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
3240         If low word of the last operand is 0, just emit addition/subtraction
3241         for the high word.
3243 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
3245         PR target/70404
3246         * config/s390/s390.c (s390_expand_insv): Check for everything
3247         constant instead of just VOIDmode stuff.
3249 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
3251         PR target/70496
3252         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
3254 2016-04-01  Nathan Sidwell  <nathan@acm.org>
3256         * tree.def (TRY_CATCH_EXPR): Correct documentation.
3258 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
3260         PR rtl-optimization/70461
3261         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
3262         is necessary.
3264 2016-03-31  Martin Liska  <mliska@suse.cz>
3266         PR hsa/70399
3267         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
3268         a tree value or an immediate integer value to a buffer
3269         that is eventually copied to a BRIG section.
3270         (emit_immediate_operand): Call the function here.
3271         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
3272         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
3273         of class' fields that are removed.
3274         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
3275         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
3276         m_brig_repr_size fields.
3278 2016-03-31  Martin Liska  <mliska@suse.cz>
3280         PR hsa/70391
3281         * hsa-gen.c (hsa_function_representation::update_dominance): New
3282         function.
3283         (convert_addr_to_flat_segment): Likewise.
3284         (gen_hsa_memory_set): New alignment argument.
3285         (gen_hsa_ctor_assignment): Likewise.
3286         (gen_hsa_insns_for_single_assignment): Provide alignment
3287         to gen_hsa_ctor_assignment.
3288         (gen_hsa_insns_for_direct_call): Add new argument.
3289         (expand_lhs_of_string_op): New function.
3290         (expand_string_operation_builtin): Likewise.
3291         (expand_memory_copy): New function.
3292         (expand_memory_set): New function.
3293         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
3294         (convert_switch_statements): Change signature.
3295         (generate_hsa): Use a return value of the function.
3296         (pass_gen_hsail::execute): Do not call
3297         convert_switch_statements here.
3298         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
3299         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
3300         (hsa_function_representation::update_dominance): New function.
3302 2016-03-31  Martin Liska  <mliska@suse.cz>
3304         PR hsa/70391
3305         * hsa-brig.c (emit_directive_variable): Emit alignment
3306         according to hsa_symbol::m_align.
3307         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
3308         (dump_hsa_symbol): Dump alignment of HSA symbols.
3309         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
3310         (gen_hsa_addr_with_align): New function.
3311         (hsa_bitmemref_alignment): Use newly added function.
3312         (gen_hsa_insns_for_load): Likewise.
3313         (gen_hsa_insns_for_store): Likewise.
3314         (gen_hsa_memory_copy): New argument added.
3315         (gen_hsa_insns_for_single_assignment): Respect
3316         alignment for assignments processed via gen_hsa_memory_copy.
3317         (gen_hsa_insns_for_direct_call): Likewise.
3318         (gen_hsa_insns_for_return): Likewise.
3319         (gen_function_def_parameters): Set default alignment.
3320         * hsa.c (hsa_object_alignment): New function.
3321         (hsa_byte_alignment): Pasted function.
3322         * hsa.h (hsa_symbol::m_align): New field.
3324 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
3326         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
3327         scratch field for goto case.
3329 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
3331         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
3333 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
3335         PR target/70442
3336         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
3337         (scalar_chain::convert_insn): Call convert_op for reg
3338         moves to handle undefined registers.
3340 2016-03-31  Nathan Sidwell  <nathan@acm.org>
3342         PR c++/70393
3343         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
3344         Assert we don't want to move backwards.
3346 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
3348         PR target/70453
3349         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
3351 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
3353         PR rtl-optimization/70460
3354         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
3355         with operand from REG_LABEL_OPERAND, instead substitute
3356         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
3357         Don't do anything for REG_NON_LOCAL_GOTO jumps.
3359 2016-03-31  Martin Liska  <mliska@suse.cz>
3361         * passes.c (execute_one_pass): Do not call
3362         todo_after for a discarded function.
3364 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
3366         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
3367         (no_cost, infinite_cost): Initialize the new field.
3368         (get_computation_cost_at): Record setup cost.
3369         (determine_use_iv_cost_address): Skip cost computation for sub
3370         uses if we can estimate it without losing accuracy.
3372 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
3374         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
3375         estimates here.
3376         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
3377         max_loop_iterations_int.
3378         (tree_unswitch_outer_loop): Likewise.
3379         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
3380         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
3382 2016-03-30  Richard Biener  <rguenther@suse.de>
3384         PR middle-end/70450
3385         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
3387 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
3389         PR target/70421
3390         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
3391         in gen_blendm expander.
3393 2016-03-30  Nick Clifton  <nickc@redhat.com>
3395         PR target/62254
3396         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
3397         case where we are already provided with an SImode SUBREG.
3399 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
3401         PR target/70439
3402         * config/i386/i386.c (ix86_expand_epilogue): Properly check
3403         conflict between DRAP register and __builtin_eh_return.
3405 2016-03-30  Michael Matz  <matz@suse.de>
3406             Richard Biener  <rguenther@suse.de>
3408         PR ipa/12392
3409         * ipa-polymorphic-call.c (struct type_change_info): Change
3410         speculative to an unsigned allowing to limit the work we do.
3411         (csftc_abort_walking_p): New inline function..
3412         (check_stmt_for_type_change): Limit the number of may-defs
3413         skipped for speculative devirtualization to
3414         max-speculative-devirt-maydefs.
3415         * params.def (max-speculative-devirt-maydefs): New param.
3416         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
3418 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
3420         PR target/63890
3421         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
3422         and TARGET_MACHO.
3424 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
3426         PR tree-optimization/59124
3427         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
3428         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
3430 2016-03-29  Jeff Law  <law@redhat.com>
3432         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
3434 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3436         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
3437         to HOST_WIDE_INT.
3439 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
3441         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
3442         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
3443         gcrt0.o if linking dynamically.
3445 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
3447         PR ipa/70283
3448         * ipa-devirt.c (methods_equal_p): New function.
3449         (compare_virtual_tables): Use it.
3450         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
3451         * cgraphclones.c (clone_function_name_1): Use
3452         symbol_table::symbol_suffix_separator.
3453         * coverage.c (build_var): Likewise.
3454         * symtab.c (symbol_table::symbol_suffix_separator): New.
3456 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
3458         PR rtl-optimization/70429
3459         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
3460         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
3461         mode != result_mode.
3463         PR c++/70353
3464         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
3466         PR tree-optimization/70405
3467         * ssa-iterators.h (num_imm_uses): Add missing braces.
3469 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
3471         PR rtl-optimization/68695
3472         * ira-color.c (allocno_copy_cost_saving): New.
3473         (improve_allocation): Use it.
3475 2016-03-29  Richard Henderson  <rth@redhat.com>
3477         PR middle-end/70355
3478         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
3480 2016-03-29  Richard Biener  <rguenther@suse.de>
3482         PR middle-end/70424
3483         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
3484         use alignment returned by get_pointer_alignment_1 if it is
3485         bigger than BITS_PER_UNIT.
3486         * builtins.c (get_pointer_alignment_1): Do not return true
3487         for alignment extracted from SSA info.
3489 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
3491         * config/ft32/ft32.opt (mnodiv): New.
3492         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
3493         * doc/invoke.texi (FT32 Options -mnodiv): New.
3495 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
3497         PR target/70406
3498         * config/i386/i386.md (define_split, andn): Fix modes.
3500 2016-03-26  Richard Biener  <rguenther@suse.de>
3501             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3503         PR ipa/70366
3504         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
3505         instead of
3506         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
3507         as 2nd argument to cl_optimization_restore().
3509 2016-03-25  Richard Henderson  <rth@redhat.com>
3511         PR target/70120
3512         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
3513         * config/aarch64/aarch64-protos.h: Declare it.
3514         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
3516 2016-03-25  Alan Modra  <amodra@gmail.com>
3518         PR target/70052
3519         * config/rs6000/constraints.md (j): Simplify.
3520         * config/rs6000/predicates.md (easy_fp_constant): Exclude
3521         decimal float 0.D.
3522         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
3523         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
3524          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
3525         in all constraint alternatives.
3526         (movtd_64bit_nodm): Delete "j" constraint alternative.
3528 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
3530         * tree-ssa-propagate.c: Enhance docs for
3531         SSA_PROP_NOT_INTERESTING.
3533 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
3535         * doc/extend.texi: Fix typo in documentation to pure attribute.
3537 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
3539         PR target/70319
3540         * config/pa/pa.md (bswapdi2): Use a scratch register.
3542 2016-03-24  Richard Henderson  <rth@redhat.com>
3544         PR middle-end/69845
3545         * fold-const.c (extract_muldiv_1): Correct test for multiplication
3546         overflow.
3548 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
3550         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
3551         using ix86_expand_binary_operator instead of gen_andsi3.
3553 2016-03-24  Richard Biener  <rguenther@suse.de>
3555         PR tree-optimization/70396
3556         * tree-vect-stmts.c (vectorizable_comparison): Use
3557         get_vectype_for_scalar_type.
3559 2016-03-24  Richard Biener  <rguenther@suse.de>
3561         PR middle-end/70370
3562         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
3563         with register bases.
3565 2016-03-24  Richard Biener  <rguenther@suse.de>
3567         PR tree-optimization/70372
3568         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
3569         build_all_ones_cst to also handle vector types correctly.
3571 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
3573         PR target/70381
3574         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
3575         -mfloat128 here.
3577 2016-03-23  Marek Polacek  <polacek@redhat.com>
3579         PR c++/69884
3580         * doc/invoke.texi: Document -Wignored-attributes.
3582 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
3584         PR tree-optimization/69042
3585         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
3586         parameter from 30 to 40.
3588 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
3590         PR tree-optimization/69042
3591         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
3592         for use with constant offset stripped in base.
3594 2016-03-23  Richard Biener  <rguenther@suse.de>
3596         PR middle-end/70251
3597         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
3598         mode compatibility check.
3599         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3601 2016-03-23  Jeff Law  <law@redhat.com>
3603         PR tree-optimization/64058
3604         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
3605         CONFLICT_COUNT.
3606         (struct ssa_conflicts): Move up earlier in the file.
3607         (conflicts_, var_map_): New static variables.
3608         (initialize_conflict_count): New function to initialize the
3609         CONFLICT_COUNT field for each conflict pair.
3610         (compare_pairs): Lazily initialize the conflict count and use it
3611         as the first tie-breaker.
3612         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
3613         and wipe conflicts_ and map_ around the call to qsort.  Remove
3614         special case for 2 coalesce pairs.
3615         * bitmap.c (bitmap_count_unique_bits): New function.
3616         (bitmap_count_bits_in_word): New function, extracted from
3617         bitmap_count_bits.
3618         (bitmap_count_bits): Use bitmap_count_bits_in_word.
3619         * bitmap.h (bitmap_count_unique_bits): Declare it.
3621 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
3623         PR target/69917
3624         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
3625         transparent alias chain for decl assembler name.
3626         * config/sol2.c (solaris_assemble_visibility): Likewise.
3628 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3630         * config/arm/arm1020e.md (1020call_op): Reduce reservation
3631         duration.
3632         (v10_fdivs): Likewise.
3633         (v10_fdivd): Likewise.
3635 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3637         PR driver/70132
3638         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
3639         to not call fclose twice on file.
3641 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
3643         PR tree-optimization/70354
3644         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
3645         oprnd0 is wider than oprnd1 and there is a cast from the wider
3646         type to oprnd1, mask it with the mask of the narrower type.
3648         PR target/70321
3649         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
3650         Optimize TARGET_STV splitters, if high or low word of last argument
3651         is 0 or -1.
3653 2016-03-22  Jeff Law  <law@redhat.com>
3655         PR target/70232
3656         tree-ssa-threadbackward.c
3657         (fsm_find_control_statement_thread_paths): Correctly distinguish
3658         between old style jump threads vs FSM jump threads.
3660 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
3662         PR target/70302
3663         * config/i386/i386.c (scalar_chain::convert_op): Support
3664         uninitialized register usage case.
3666 2016-03-22  Richard Biener  <rguenther@suse.de>
3668         PR middle-end/70251
3669         * genmatch.c (gen_transform): Adjust last parameter to a three-state
3670         int...
3671         (capture::gen_transform): ... to change behavior when substituting
3672         a condition into cond or not-cond expr context.
3673         (dt_simplify::gen_1): Adjust.
3674         * gimple-match-head.c: Include gimplify.h for unshare_expr.
3675         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
3676         last change and instead change to
3677         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
3678         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3680 2016-03-22  Anthony Green  <green@moxielogic.com>
3682         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
3683         issue for moxiebox targets.
3684         (CC1PLUS_SPEC): Ditto.
3686 2016-03-22  Richard Biener  <rguenther@suse.de>
3688         PR middle-end/70333
3689         * fold-const.c (extract_muldiv_1): Properly perform multiplication
3690         in the wide type.
3692 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3694         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
3696 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
3698         PR target/70325
3699         * config/i386/i386.c (def_builtin): Handle
3700         OPTION_MASK_ISA_AVX512VL to be and-ed with other
3701         bits.
3702         (const struct builtin_description bdesc_special_args[]):
3703         Remove duplicate ISA bits.
3705 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
3707         PR target/70329
3708         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
3709         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
3710         in a way that works also for AVX512BW.
3712         PR target/70300
3713         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
3714         instead of source if operands[1] is xmm16 and above and
3715         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
3716         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
3718         PR c++/70295
3719         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
3720         on assign if (*from_p) is a comparison, set it to
3721         TREE_NO_WARNING (*from_p).
3723 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
3725         PR middle-end/70326
3726         * lra.c (restore_scratches): Ignore deleted insns.
3728 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
3729             Jakub Jelinek  <jakub@redhat.com>
3731         PR tree-optimization/70317
3732         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
3733         to HONOR_NANS.
3735 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
3737         PR target/70327
3738         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
3739         of ix86_expand_move.
3740         (movoi): Ditto.
3741         (movti): Use general_operand for operand 1 predicate.
3743 2016-03-21  Martin Liska  <mliska@suse.cz>
3745         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
3746         insns.
3747         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
3749 2016-03-21  Martin Liska  <mliska@suse.cz>
3751         PR ipa/70306
3752         * ipa-icf.c (sem_function::parse): Skip static
3753         constructors and destructors.
3755 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
3757         PR target/70296
3758         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
3759         function-like macro, peek following token(s) if it is followed
3760         by CPP_OPEN_PAREN token with optional padding in between, and
3761         if not, don't treat it like a macro.
3763 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
3764             Alexander Monakov  <amonakov@ispras.ru>
3766         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
3767         for the stabs debug format.
3769 2016-03-21  Richard Biener  <rguenther@suse.de>
3771         PR tree-optimization/70310
3772         * tree-vect-generic.c (expand_vector_condition): Fold the built
3773         condition.
3775 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
3777         PR target/70293
3778         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
3779         Block third alternative for AVX-512VL target,
3781 2016-03-21  Martin Liska  <mliska@suse.cz>
3783         PR hsa/70234
3784         * hsa-brig.c (emit_function_directives): Mark unemitted
3785         global variables for emission.
3786         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
3787         (get_symbol_for_decl): Likewise.
3788         * hsa.h (struct hsa_symbol): New flag.
3790 2016-03-21  Richard Biener  <rguenther@suse.de>
3792         PR tree-optimization/70288
3793         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
3794         we do not estimate unsimplified all-constant conditionals or
3795         switches as optimized away.
3797 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
3799         PR rtl-optimization/69102
3800         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
3801         when we have a readonly dependency context.
3803 2016-03-18  Jeff Law  <law@redhat.com>
3805         PR rtl-optimization/70263
3806         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
3807         (update_equiv_regs): When trying to move a store to after the insn
3808         that sets the source of the store, make sure the store occurs after
3809         the insn that sets the source of the store.  When successful note
3810         the REG_EQUIV note created in the dump file.
3812 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
3813             Bernd Schmidt  <bschmidt@redhat.com>
3815         * doc/extend.texi: Document more potential problems with basic asms.
3817 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
3819         PR rtl-optimization/70278
3820         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
3821         VOIDmode.
3823 2016-03-18  Jason Merrill  <jason@redhat.com>
3825         * calls.c (load_register_parameters): Fix zero size sibcall logic.
3827 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
3829         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
3830         values to 128b regs.
3832 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
3834         PR tree-optimization/70252
3835         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
3836         boolean vector has a proper number of elements.
3837         (supportable_narrowing_operation): Likewise.
3839 2016-03-18  Tom de Vries  <tom@codesourcery.com>
3841         PR ipa/70269
3842         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
3844 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
3846         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
3847         instead of replace_rtx for DEBUG_INSNs.
3849 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
3851         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
3852         load type reservations.
3854 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
3856         PR target/70188
3857         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
3858         define_constraint for "Q" and "T" constraints.
3860 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
3862         Tweak the pipeline model for Exynos M1
3864         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
3865         model.
3867 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
3869         PR c/70264
3870         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
3871         where one or both locations aren't within a line_map.
3873 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
3875         PR driver/70192
3876         * opts.c (finish_options): Don't set flag_pie to the default if
3877         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
3878         if it is -1.
3880 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
3882         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
3883         true as ALL_REGS argument to replace_rtx.
3885 2016-03-17  Richard Biener  <rguenther@suse.de>
3887         PR debug/70271
3888         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
3889         last.
3891 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3893         PR target/70245
3894         * rtl.h (replace_rtx): Add ALL_REGS argument.
3895         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
3896         equality and assert mode is the same, instead of just rtx pointer
3897         equality.
3898         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
3899         true as ALL_REGS argument to replace_rtx.
3901 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
3903         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
3904         for boolean vector with vector mode only.
3905         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
3907 2016-03-17  Nick Clifton  <nickc@redhat.com>
3909         PR target/70162
3910         * config/rx/rx.c (rx_print_integer): Print negative constants in
3911         decimal.
3913 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
3915         PR target/70261
3916         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
3918 2016-03-16  Richard Henderson  <rth@redhat.com>
3919             Richard Biener  <rguenth@suse.de>
3921         PR middle-end/70240
3922         PR middle-end/68215
3923         PR tree-opt/68714
3924         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
3925         first operand as is_gimple_condexpr.
3927         PR middle-end/70240
3928         PR middle-end/68215
3929         Revert r231575
3930         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
3931         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
3932         Do not gimplify the result.
3933         (do_unop): Adjust call to tree_vec_extract.
3934         (do_binop): Likewise.
3935         (do_compare): Likewise.
3936         (do_plus_minus): Likewise.
3937         (do_negate): Likewise.
3938         (expand_vector_condition): Likewise.
3939         (do_cond): Likewise.
3941 2016-03-16  Richard Henderson  <rth@redhat.com>
3943         PR target/70048
3944         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
3945         (aarch64_classify_address): Use it.
3946         (aarch64_legitimize_address): Force all subexpressions of PLUS
3947         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
3949 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
3950             Richard Biener  <rguenth@suse.de>
3952         PR target/70245
3953         * rtlanal.c (replace_rtx): For REG, if from is a REG,
3954         return to even if only REGNO is equal, and assert
3955         mode is the same.
3957 2016-03-11  Jeff Law  <law@redhat.com>
3959         PR rtl-optimization/70224
3960         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
3962 2016-03-16  Richard Henderson  <rth@redhat.com>
3964         PR middle-end/70199
3965         * function.h (struct function): Add has_forced_label_in_static.
3966         * gimplify.c (force_labels_r): Set it.
3967         * lto-streamer-in.c (input_struct_function_base): Read it.
3968         * lto-streamer-out.c (output_struct_function_base): Write it.
3969         * tree-inline.c (has_label_address_in_static_1): Remove.
3970         (copy_forbidden): Remove fndecl parameter; test
3971         has_forced_label_in_static.
3972         (inline_forbidden_p): Update call to copy_forbidden.
3973         (tree_versionable_function_p): Likewise.
3974         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
3975         (chkp_versioning): Likewise.
3976         * tree-inline.h (copy_forbidden): Update decl.
3978 2016-03-16  Marek Polacek  <polacek@redhat.com>
3980         PR c/70093
3981         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
3982         function being thunked if the result type doesn't have fixed size.
3983         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
3984         doesn't have fixed size.
3986 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
3988         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
3989         reporting malformed loop nest.
3991 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3993         PR lto/70187
3994         * ipa-devirt.c (possible_polymorphic_call_targets): Move
3995         nodes.length () == 1 test to before first nodes[0] access.
3997 2016-03-16  Tom de Vries  <tom@codesourcery.com>
3999         PR tree-optimization/68715
4000         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
4001         single_pred_p test.
4003 2016-03-16  Tom de Vries  <tom@codesourcery.com>
4005         PR tree-optimization/68809
4006         * graphite-scop-detection.c (same_close_phi_node): Test if result types
4007         are the same.
4009 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
4010             Sandra Loosemore  <sandra@codesourcery.com>
4012         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
4013         on leaf attribute. Mention ELF interposition problems.
4015 2016-03-16  Alan Modra  <amodra@gmail.com>
4017         PR rtl-optimization/69195
4018         PR rtl-optimization/47992
4019         * ira.c (indirect_jump_optimize): Ignore artificial defs.
4020         Add comments.
4022 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
4024         PR bootstrap/69513
4025         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
4027 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
4029         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
4031 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
4033         PR rtl-optimization/70222
4034         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
4035         optimization if mode is different from result_mode, queue up masking
4036         of the result in outer_op.  Formatting fix.
4038         PR middle-end/70239
4039         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
4040         of safe_grow.
4042 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
4044         PR rtl-optimization/69032
4045         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
4046         looping backwards over basic block insns.
4048 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
4050         PR target/66660
4051         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
4052         to non-speculative when propagating trap bits.
4054 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
4056         PR rtl-optimization/63384
4057         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
4058         DEBUG_INSN_P insns.
4060 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
4062         PR target/64411
4063         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
4064         factored out from ...
4065         (sched_analyze_insn): ... here.
4066         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
4067         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
4068         get_implicit_reg_pending_clobbers in it.
4069         (setup_id_reg_sets): Use setup_id_implicit_regs.
4070         (deps_init_id): Ditto.
4072 2016-03-15  Tom de Vries  <tom@codesourcery.com>
4074         PR ipa/70161
4075         * cgraph.c (cgraph_node::get_body): Save, reset and restore
4076         dump_file_name.
4077         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
4078         execute_function_dump.
4079         (execute_one_pass): Don't dump function if it will be dumped after ipa
4080         transform.
4082 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
4084         * genrecog.c (match_pattern_2): If pred is NULL don't call
4085         safe_predicate_mode on it.
4087 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
4089         PR middle-end/70219
4090         * lra-constraints.c (delete_move_and_clobber): Change assertion
4091         to also allow dregno == 0.
4093 2016-03-14  Richard Henderson  <rth@redhat.com>
4095         PR tree-opt/68714
4096         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
4097         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
4098         (reassociate_bb): Use optimize_vec_cond_expr; avoid
4099         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
4100         on vectors.
4102 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
4104         PR target/70083
4105         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
4106         regs.
4107         (lra_create_live_ranges_1): initialize hard register biggest_mode to
4108         VOIDmode.
4109         * lra-constraints.c (split_reg): For hard regs, try to find the
4110         biggest single-register mode used in the function.
4112 2016-03-14  Richard Biener  <rguenther@suse.de>
4114         PR tree-optimization/56365
4115         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
4116         constants to compare against.
4118 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
4120         PR target/70098
4121         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
4122         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
4123         (define_split for the GPR case): Use int_reg_operand instead of
4124         gpc_reg_operand for the output.
4126 2016-03-14  Tom de Vries  <tom@codesourcery.com>
4128         PR tree-optimization/70045
4129         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
4130         create_empty_if_region_on_edge argument.
4132 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
4134         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
4135         (STACK_CHECK_PROTECT): Likewise.
4136         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
4137         (STACK_CHECK_PROTECT): Likewise.
4138         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
4139         (STACK_CHECK_PROTECT): Likewise.
4140         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
4141         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
4142         (STACK_CHECK_PROTECT): Likewise.
4144 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
4146         PR rtl-optimization/69307
4147         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
4148         registers in modes that span more than one register.
4150 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
4152         PR target/69614
4153         * lra-constraints.c (delete_move_and_clobber): New.
4154         (remove_inheritance_pseudos): Use it.
4156 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
4158         PR ada/70017
4159         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
4160         the libcall is LCT_THROW.
4161         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
4162         for the checking routine.
4164 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
4166         PR target/70131
4167         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
4168         optimization if we have direct move.
4169         (roundu32<mode>2_fprs): Likewise.
4171 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
4173         PR target/70123
4174         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
4175         be rematerialized.
4176         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
4177         Arguments swapped.  All callers changed.  Take reg_renumber into
4178         account, and Calculate and compare register ranges for hard regs.
4180 2016-03-11  Jeff Law  <law@redhat.com>
4182         PR tree-optimization/70190
4183         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4184         Handle cases where we can not extract the taken edge, even though we
4185         found a constant value.
4187         PR tree-optimization/64058
4188         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
4189         (num_coalesce_pairs): Move up earlier in file.
4190         (find_coalesce_pair): Initialize the INDEX field for each pair
4191         discovered.
4192         (compare_pairs): No longer sort on the elements in each pair.
4193         Instead break ties with the index of the coalesce pair.
4195 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4197         PR target/70002
4198         * config/aarch64/aarch64-protos.h
4199         (aarch64_save_restore_target_globals): New prototype.
4200         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
4201         Call the above when popping pragma.
4202         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
4203         New function.
4204         (aarch64_set_current_function): Rewrite using the above.
4206 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
4208         PR tree-optimization/70177
4209         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
4210         (extract_ops_from_tree): ... this.  In the 2 argument
4211         overload remove _1 suffix.
4212         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
4213         (extract_ops_from_tree): ... this.
4214         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
4215         Adjust callers.
4216         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
4217         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
4218         extract_ops_from_tree instead of 2 operand one.
4220 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
4222         PR tree-optimization/70013
4223         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
4224         for constant-pool entries.
4226 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
4228         PR rtl-optimization/70174
4229         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
4230         followed by gen_lowpart on force_reg instead of just gen_lowpart.
4232         PR tree-optimization/70169
4233         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
4234         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
4235         for unknown codes.
4237 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
4238             Jakub Jelinek  <jakub@redhat.com>
4240         PR target/70160
4241         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
4242         of uninitialized values.
4244 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4246         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
4247         define_expand.
4248         ("*trunctddd2"): New pattern definition.
4249         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
4250         TD->DD truncation.
4252 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4254         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
4255         definitions for BFP and DFP rounding modes.
4256         ("fixuns_truncdddi2", "fixuns_trunctddi2")
4257         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
4258         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
4259         ("fix_trunctf<mode>2"): Use the new constants instead of magic
4260         numbers.
4262 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4264         * config/s390/constraints.md: Adjust comment.
4265         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
4266         s390_decompose_addrstyle_without_index.
4267         * config/s390/predicates.md (shift_count_or_setmem_operand):
4268         Rename to setmem_operand.
4269         * config/s390/s390-protos.h
4270         (s390_decompose_shift_count): Rename to
4271         s390_decompose_addrstyle_without_index.
4272         * config/s390/s390.c (s390_decompose_shift_count)
4273         (s390_mem_constraint, print_shift_count_operand)
4274         (print_operand_address, print_operand): Rename
4275         s390_decompose_shift_count to
4276         s390_decompose_addrstyle_without_index and rename
4277         print_shift_count_operand to print_addrstyle_operand troughout the
4278         file.
4279         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
4280         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
4281         Rename shift_count_or_setmem_operand to setmem_operand.
4282         * config/s390/vx-builtins.md ("vec_insert<mode>")
4283         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
4284         nonmemory_operand.
4286 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
4288         PR target/70168
4289         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
4290         Handle overlapping retval and newval.
4292 2016-03-10  Nick Clifton  <nickc@redhat.com>
4294         PR target/7044
4295         * config/aarch64/aarch64.c
4296         (aarch64_override_options_after_change_1): When forcing
4297         flag_omit_frame_pointer to be true, use a special value that can
4298         be detected if this function is called again, thus preventing
4299         flag_omit_leaf_frame_pointer from being forced to be false.
4301 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4303         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
4304         Set x_flag_omit_leaf_frame_pointer when handling
4305         -momit-leaf-frame-pointer.
4307 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4309         PR lto/69589
4310         * cgraph.c (cgraph_node::dump): Dump split_part and
4311         indirect_call_target.
4312         * cgraph.h (cgraph_node): Add indirect_call_target flag.
4313         * ipa.c (has_addr_references_p): Cleanup.
4314         (is_indirect_call_target_p): New.
4315         (walk_polymorphic_call_targets): Do not mark virtuals that may be
4316         called indirectly as local.
4317         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
4319 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4321         PR ipa/69630
4322         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
4323         on cxa_pure_virtual.
4325 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4327         PR lto/69589
4328         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
4330 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
4332         PR lto/69589
4333         * tree.c (need_assembler_name_p): Only record main variant type names.
4335 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
4337         PR target/70113.
4338         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
4339         Always define to 0 or 1.
4340         (TARGET_FIX_ERR_A53_843419): New macro.
4341         * config/aarch64/aarch64-elf-raw.h
4342         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
4343         * config/aarch64/aarch64-linux.h: Likewise.
4344         * config/aarch64/aarch64.c
4345         (aarch64_override_options_after_change_1): Do not default
4346         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
4347         843419 is on.
4348         (aarch64_attributes): Handle fix-cortex-a53-843419.
4349         (aarch64_can_inline_p): Likewise.
4350         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
4352 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
4353         Jakub Jelinek <jakub@redhat.com>
4355         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
4356         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
4357         DECL_COMMONS if flag_unconstrained_commons is set.
4358         * tree-dfa.c (get_ref_base_and_extent): Likewise.
4359         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
4360         (funconstrained-commons): Document.
4362 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
4364         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
4365         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
4367 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
4369         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
4370         has a proper number of elements.
4372 2016-03-10  Alan Modra  <amodra@gmail.com>
4374         PR rtl-optimization/69195
4375         PR rtl-optimization/47992
4376         * ira.c (recorded_label_ref): Delete.
4377         (update_equiv_regs): Return void.
4378         (indirect_jump_optimize): New function.
4379         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
4380         before regstat_compute_ri.  Don't rebuild_jump_labels here.
4381         Delete update_regstat.
4383 2016-03-10  Richard Biener  <rguenther@suse.de>
4385         PR tree-optimization/70128
4386         * tree-ssa-structalias.c (set_uids_in_ptset): Set
4387         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
4389 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
4391         PR tree-optimization/70152
4392         * tree-sra.c (replace_removed_params_ssa_names): Copy over
4393         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
4395         PR target/70086
4396         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
4397         instead of gen_sse2_loadlpd.
4398         * config/i386/sse.md (*vec_concatv2df): Rename to...
4399         (vec_concatv2df): ... this.
4401         PR tree-optimization/70127
4402         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
4404 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
4406         PR c/68473
4407         PR c++/70105
4408         * diagnostic-show-locus.c (compatible_locations_p): New function.
4409         (layout::layout): Sanitize ranges using compatible_locations_p.
4411 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
4413         PR c/68473
4414         PR c++/70105
4415         * diagnostic-show-locus.c (layout_range::layout_range): Replace
4416         location_range param with three const expanded_locations * and a
4417         bool.
4418         (layout::layout): Replace call to
4419         rich_location::lazily_expand_location with get_expanded_location.
4420         Extract the range and perform location expansion here, passing
4421         the results to the layout_range ctor.
4422         * diagnostic.c (source_range::debug): Delete.
4423         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
4424         of rich_location::get_expanded_location.
4425         * gcc-rich-location.c (get_range_for_expr): Delete.
4426         (gcc_rich_location::add_expr): Reimplement to avoid the
4427         rich_location::add_range overload that took a location_range,
4428         passing a location_t instead.
4430 2016-03-09  Richard Biener  <rguenther@suse.de>
4431         Jakub Jelinek  <jakub@redhat.com>
4433         PR tree-optimization/70138
4434         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
4435         Also skip vect_double_reduction_def.
4437 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
4439         PR target/70049
4440         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
4441         if the operand is "m".
4443 2016-03-09  Nathan Sidwell  <nathan@acm.org>
4445         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
4447 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4449         * config/i386/i386.c (processor_target_table): Fix cost table
4450         intialization order for znver1.
4452 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
4454         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
4455         - becuase -> because.
4456         * ipa-reference.c (ignore_module_statics): Likewise.
4457         * cgraph.c (cgraph_node::get_body): Likewise.
4458         * ipa-inline.c (early_inliner): Likewise.
4459         * ipa-devirt.c (types_same_for_odr): Likewise.
4460         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
4461         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
4463 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4465         * tree-ssa-math-opts.c: Fix typo in comment.
4467 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
4469         PR target/70110
4470         * config/i386/i386.c (scalar_chain::make_vector_copies,
4471         scalar_chain::convert_reg): Call end_sequence in between
4472         get_insns and emit_conversion_insns rather than after both
4473         calls.
4475 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
4477         PR target/70064
4478         * config/i386/i386.h (machine_function): Add
4479         pc_thunk_call_expanded flag.
4480         (ix86_pc_thunk_call_expanded): New define.
4481         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
4482         (*set_got): Rename insn pattern from set_got.
4483         (*set_got_labelled): Rename inst pattern from set_got_labelled.
4484         * config/i386/i386.c (ix86_compute_frame_layout): Use
4485         ix86_pc_thunk_call_expanded to prevent red-zone.
4487 2016-03-07  Martin Jambor  <mjambor@suse.cz>
4489         * hsa.h (hsa_get_ctor_statements): Declare.
4490         (hsa_get_dtor_statements): Likewise.
4491         (hsa_get_kernel_dispatch_type): Likewise.
4492         * hsa.c (hsa_get_ctor_statements): New function.
4493         (hsa_get_dtor_statements): Likewise.
4494         (hsa_get_kernel_dispatch_type): Likewise.
4495         * hsa-brig.c (hsa_cdtor_statements): Removed.
4496         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
4497         hsa_get_dtor_statements.
4498         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
4499         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
4501 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
4503         * config/arm/arm-cores.def (cortex-r8): New.
4504         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
4505         * config/arm/arm-tune.md: Likewise.
4506         * gcc/doc/invoke.texi: Add cortex-r8 to list of cpu values.
4508 2016-03-07  Martin Sebor  <msebor@redhat.com>
4510         PR rtl-optimization/19705
4511         * doc/invoke.texi (Options That Control Optimization): Clarify
4512         -fno-branch-count-reg.
4514 2016-02-26  Richard Biener  <rguenther@suse.de>
4515             Jeff Law  <law@redhat.com>
4517         PR tree-optimization/69740
4518         * cfghooks.c (remove_edge): Request loop fixups if we delete
4519         an edge that might turn an irreducible loop into a natural
4520         loop.
4521         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
4522         Move after definition of loops_state_clear.
4524 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
4526         PR rtl-optimization/69052
4527         * rtlanal.c (commutative_operand_precedence): Set higher precedence
4528         to CONST_WIDE_INT.
4530 2016-03-07  Tom de Vries  <tom@codesourcery.com>
4532         PR tree-optimization/70116
4533         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
4534         is_tm_ending stmts and ubsan/asan internal functions.
4535         (find_duplicate): Use it.  Don't test is_tm_ending here.
4537 2016-03-07  Richard Biener  <rguenther@suse.de>
4539         PR tree-optimization/70115
4540         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
4541         (propagate_constants_for_unrolling): Use replace_uses_by.
4543 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
4545         PR middle-end/69916
4546         * omp-low.c (struct oacc_loop): Add ifns.
4547         (new_oacc_loop_raw): Initialize it.
4548         (finish_oacc_loop): Clear mask & flags if no ifns.
4549         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
4550         (oacc_loop_xform_loop): Add ifns arg & adjust.
4551         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
4553 2016-03-07  Richard Henderson  <rth@redhat.com>
4555         PR rtl-opt/70061
4556         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
4557         (insert_value_copy_on_edge): Likewise.
4559 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4561         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
4563 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
4565         PR target/62281
4566         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
4568 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4570         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
4572 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
4574         Fix sseimul type attribute.
4575         * config/i386/znver1.md
4576         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
4577         znver1_sseimul_avx256_load) : Fix the type attribute.
4578         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
4579         pipe usage and latency.
4581 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
4583         PR c++/70084
4584         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
4585         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
4586         to the right type.
4588 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
4590         PR c/69973
4591         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
4593         PR rtl-optimization/69941
4594         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
4595         the reg share its mode.
4597 2016-03-04  Jeff Law  <law@redhat.com>
4599         PR tree-optimization/69196
4600         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4601         If the both SSA_NAMEs are anonymous, then consider them unassociated
4602         and include the PHI in the statement count.
4604 2016-03-05  Tom de Vries  <tom@codesourcery.com>
4606         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
4607         construct in oacc routine.  Check for oacc region in oacc routine.
4609 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
4611         PR target/70062
4612         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
4613         2016-02-22 changes, instead don't recurse if RECUR is already true.
4614         Don't change *dynamic_check if RECUR.  Adjust recursive caller
4615         to pass true to the new argument.
4616         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
4618         PR target/70059
4619         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
4620         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
4621         fixes.
4622         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
4624 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
4626         PR rtl-optimization/57676
4627         * lra-assigns.c (lra_assign): Guard test for maximum iterations
4628         with flag_checking.
4630 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
4632         * tree-vect-patterns.c (search_type_for_mask): Handle
4633         comparison of booleans.
4635 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
4637         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
4638         Fix @xref usage.
4640         PR debug/69947
4641         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
4642         all other ops that have dw_val_class_die_ref operands,
4643         and DW_OP_GNU_entry_value.
4645 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4647         PR rtl-optimization/69904
4648         * config/arm/arm.c (arm_cannot_copy_insn_p):
4649         Return true for load-exclusive instructions.
4651 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
4653         PR target/70021
4654         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
4655         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
4656         the pattern no matter if it is used just by non-pattern, pattern
4657         or mix thereof.
4658         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
4659         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
4660         oprnd1 def_stmt is in pattern, don't look through it.
4662 2016-03-03  Marek Polacek  <polacek@redhat.com>
4664         PR middle-end/70050
4665         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
4667 2016-03-03  Martin Liska  <mliska@suse.cz>
4669         PR tree-optimization/70043
4670         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
4671         previous statement if we see a debug statement.
4673 2016-03-03  Richard Biener  <rguenther@suse.de>
4675         PR tree-optimization/55936
4676         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
4677         parameter and guard unsafe equivalence use.
4678         (vrp_evaluate_conditional_warnv_with_ops): Always use
4679         safe equivalences but not via the quadratic compare_names
4680         helper.
4682 2016-03-03  Michael Collison  <michael.collison@linaro.org>
4684         PR target/70014
4685         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
4686         for operand 1 to s_register_operand. Change predicate for operand
4687         2 to arm_not_immediate_operand.
4689 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
4691         * doc/tm.texi: Regenerated.
4693 2016-03-02  Richard Henderson  <rth@redhat.com>
4695         PR rtl-opt/67145
4696         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
4697         simplification when all args are positive non-fixed registers.
4699 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
4701         * target.def (lra_p): Specify that new ports should use LRA.
4703 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
4705         PR libgomp/69555
4706         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
4707         gimplify_type_sizes the type they refer to.
4708         (omp_notice_variable): Handle reference vars to VLAs.
4709         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
4710         reference to VLA decls in the second pass instead of first pass.
4712 2016-03-02  Tom de Vries  <tom@codesourcery.com>
4714         PR tree-optimization/68659
4715         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
4716         new_expr == NULL_TREE.
4717         (get_new_name): Handle ADDR_EXPR.
4719 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
4721         PR rtl-optimization/69052
4722         * loop-invariant.c (canonicalize_address): New function.
4723         (inv_can_prop_to_addr_use): Check validity of address expression
4724         which is canonicalized by above function.
4726 2016-03-02  Alan Modra  <amodra@gmail.com>
4728         PR ipa/69990
4729         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
4730         larger alignment.
4732 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
4734         PR target/70028
4735         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
4736         (*movhi_internal): Put mask moves from and to memory separately
4737         from moves from/to GPRs.
4739 2016-03-02  Richard Biener  <rguenther@suse.de>
4741         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
4742         GENERIC expressions in GIMPLE.
4744 2016-03-02  Richard Biener  <rguenther@suse.de>
4746         * config/i386/i386.c (type_natural_mode): Fix typo.
4748 2016-03-02  Nick Clifton  <nickc@redhat.com>
4750         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
4752 2016-03-02  Richard Biener  <rguenther@suse.de>
4753             Uros Bizjak  <ubizjak@gmail.com>
4755         PR target/67278
4756         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
4758 2016-03-02  Richard Biener  <rguenther@suse.de>
4760         PR middle-end/67278
4761         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
4763 2016-03-02  Marek Polacek  <polacek@redhat.com>
4765         PR c/67854
4766         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
4767         "is promoted to" warning.
4769 2016-03-01  DJ Delorie  <dj@redhat.com>
4771         * config.gcc: Deprecate mep-*.
4773 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
4775         PR middle-end/70025
4776         * lra-constraints.c (regno_val_use_in): New.
4777         (match_reload): Use it instead of regno_use_in.
4779 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4781         PR rtl-optimization/70007
4782         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
4783         references present in REG_EQUAL notes attached to non-SET patterns.
4785 2016-03-01  Jeff Law  <law@redhat.com>
4787         PR tree-optimization/69196
4788         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4789         Appropriately clamp the number of statements to copy when the
4790         thread path does not traverse a loop backedge.
4792         PR tree-optimization/69196
4793         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
4794         Do count some PHIs in the thread path against the insn count.  Decrease
4795         final statement count by one as the control statement in the last
4796         block will get removed.  Remove special cased code for handling PHIs
4797         in the last block.
4799 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
4801         PR target/70027
4802         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
4803         asm dialect alternatives to explicit GOTPCREL calls.
4805 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
4807         PR ada/70017
4808         * ira.c (do_reload): Issue warning for generic stack checking here...
4809         * reload1.c (reload): ...instead of here and streamline it.
4811 2016-03-01  Nick Clifton  <nickc@redhat.com>
4813         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
4815 2016-03-01  Richard Biener  <rguenther@suse.de>
4817         PR tree-optimization/69983
4818         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
4819         types and fall back to operand_equal_p.
4821 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4823         Revert
4824         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4826         * config/s390/constraints.md ("jm8"): New constraint.
4827         * config/s390/predicates.md ("const_int_8bitset_operand"): New
4828         predicate.
4829         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
4830         into ...
4831         ("*setmem_long<setmem_and>"): New pattern.
4832         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
4833         into ...
4834         ("*setmem_long_31z<setmem_and>"): New pattern.
4835         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
4836         New substitution rules with the required attributes.
4839 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4841         Revert
4842         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4844         * gensupport.c (process_substs_on_one_elem): Split loop to
4845         complete mark_operands_used_in_match_dup on all expressions in the
4846         vector first.
4847         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4848         and remove function.
4850 2016-03-01  Richard Biener  <rguenther@suse.de>
4852         PR middle-end/70022
4853         * fold-const.c (fold_indirect_ref_1): Fix range checking for
4854         vector BIT_FIELD_REF extract.
4856 2016-03-01  Richard Biener  <rguenther@suse.de>
4858         PR tree-optimization/69994
4859         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
4861 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
4863         PR tree-optimization/69956
4864         * tree-vect-stmts.c (supportable_widening_operation): Support
4865         multi-step conversion of boolean vectors.
4866         (supportable_narrowing_operation): Likewise.
4868 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4870         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
4871         anymore.
4873 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4875         * config/s390/subst.md (DSI_VI): New mode iterator.
4876         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
4877         * config/s390/vector.md ("vec_set<mode>"): Move expander before
4878         the insn definition.
4879         ("*vec_set<mode>"): Change predicate and add alternative to
4880         support only either register or const_int operands as element
4881         selector.
4882         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
4883         operands.
4884         ("vec_extract<mode>"): New expander.
4885         ("*vec_extract<mode>"): New insn definition supporting reg and
4886         const_int element selectors.
4887         ("*vec_extract<mode>_plus"): New insn definition supporting
4888         reg+const_int element selectors.
4889         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
4890         following expander+insn definition.
4891         ("<vec_shifts_name><mode>3"): New expander.
4892         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
4894 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4896         * config/s390/s390.md ("*tabort_1"): Change predicate to
4897         nonmemory_operand.  Add a second alternative to cover
4898         register as well as const int operands.
4899         ("*tabort_1_plus"): New pattern definition.
4901 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4903         * config/s390/s390.md ("*ashrdi3_cc_31")
4904         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
4905         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
4906         Merge insn definitions into ...
4907         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4908         New pattern definition.
4909         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
4910         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
4911         ("*ashr<mode>3_and"): Merge insn definitions into ...
4912         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
4913         New pattern definition.
4914         * config/s390/subst.md ("addr_style_op_cc_subst")
4915         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
4916         substitutions patterns plus attributes.
4917         Add ashiftrt to SUBST iterator.
4919 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4921         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
4922         op2 to nonmemory_operand.
4923         ("*<shift>di3_31", "*<shift>di3_31_and"):
4924         Merge into single pattern definition ...
4925         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
4926         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
4927         pattern definition ...
4928         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
4929         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
4930         iterator.
4932 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4934         * config/s390/predicates.md (const_int_6bitset_operand): New
4935         predicate.
4936         * config/s390/s390.md: Include subst.md.
4937         ("rotl<mode>3"): New expander.
4938         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
4939         ...
4940         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
4941         * config/s390/subst.md: New file.
4943 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4945         * config/s390/s390.md ("op_type", "atype", "length" attributes):
4946         Remove RRR type.  It doesn't really exist.
4947         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
4948         attributes.
4949         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
4950         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
4951         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
4952         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
4953         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
4954         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
4955         `enabled' attribute.
4957 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4959         * gensupport.c (process_substs_on_one_elem): Split loop to
4960         complete mark_operands_used_in_match_dup on all expressions in the
4961         vector first.
4962         (adjust_operands_numbers): Inline into process_substs_on_one_elem
4963         and remove function.
4965 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
4967         PR target/69706
4968         * config/sparc/sparc.c (NWORDS_UP): Rename to...
4969         (CEIL_NWORDS): ...this.  Use CEIL macro.
4970         (compute_fp_layout): Adjust to above renaming.
4971         (function_arg_union_value): Likewise.
4972         (sparc_arg_partial_bytes): Likewise.
4973         (sparc_function_arg_advance): Likewise.
4975 2016-02-29  Jeff Law  <law@redhat.com>
4977         PR tree-optimization/70005
4978         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
4979         where an object with a boolean range is compared against a value
4980         outside [0..1].
4982         PR tree-optimization/69999
4983         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
4984         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
4985         loop cleanups.
4987 2016-02-29  Richard Biener  <rguenther@suse.de>
4989         PR tree-optimization/69994
4990         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
4991         (get_unary_op): Look through nop conversions.
4992         (ops_equal_values_p): New function, look for equality diregarding
4993         nop conversions.
4994         (eliminate_plus_minus_pair): Use ops_equal_values_p
4995         (repropagate_negates): Do not use get_unary_op here.
4997 2016-02-29  Martin Liska  <mliska@suse.cz>
4999         * system.h: Poison ENABLE_CHECKING macro.
5001 2016-02-29  Martin Liska  <mliska@suse.cz>
5003         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
5004         is presented in dump flags.
5005         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
5006         (hsa_regalloc): Likewise.
5008 2016-02-19  Richard Biener  <rguenther@suse.de>
5010         PR tree-optimization/69980
5011         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
5012         permutation of those we need to keep.
5014 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
5016         PR target/69706
5017         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
5018         (NWORDS_UP): ...this
5019         (init_cumulative_args): Minor tweaks.
5020         (sparc_promote_function_mode): Likewise.
5021         (scan_record_type): Delete.
5022         (traverse_record_type): New function template.
5023         (classify_data_t): New structure type.
5024         (classify_registers): New inline function.
5025         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
5026         exhausted.  Instantiate traverse_record_type on classify_registers and
5027         deal with the case of a structure passed in slot #15 with no FP field
5028         in the first word.
5029         (assign_data_t): New structure type.
5030         (compute_int_layout): New static function.
5031         (compute_fp_layout): Likewise.
5032         (count_registers): New inline function.
5033         (assign_int_registers): New static function.
5034         (assign_fp_registers): Likewise.
5035         (assign_registers): New inline function.
5036         (function_arg_record_value_1): Delete.
5037         (function_arg_record_value_2): Likewise.
5038         (function_arg_record_value_3): Likewise.
5039         (function_arg_record_value): Adjust to above changes.  Instantiate
5040         traverse_record_type on count_registers to first count the number of
5041         registers to be used and then on assign_registers to assign them.
5042         (function_arg_union_value): Adjust to above renaming.
5043         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
5044         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
5045         case of a structure passed in slot #15
5046         (sparc_function_arg_advance): Likewise.
5047         (function_arg_padding): Minor tweak.
5049 2016-02-29  Richard Biener  <rguenther@suse.de>
5051         PR tree-optimization/69720
5052         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
5053         the adjustment_def path for possibly vectorized defs.
5054         (vect_create_epilog_for_reduction): Handle vectorized initial
5055         defs properly.
5057 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
5059         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
5061 2016-02-27  Jeff Law  <law@redhat.com>
5063         Revert
5064         2016-02-26  Richard Biener  <rguenther@suse.de>
5065                     Jeff Law  <law@redhat.com>
5067         PR tree-optimization/69740
5068         * cfghooks.c (remove_edge): Request loop fixups if we delete
5069         an edge that might turn an irreducible loop into a natural
5070         loop.
5072 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
5074         PR rtl-optimization/69896
5075         * tree-vect-generic.c (get_compute_type): Avoid single element
5076         vector types.
5078 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
5080         Rename the AArch64 tuning option and related functions to enable the
5081         Newton series for the reciprocal square root to reflect its
5082         approximative characteristic.
5084         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
5085         function to "aarch64_emit_approx_rsqrt".
5086         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
5087         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
5088         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
5089         (xgene1_tunings): Likewise.
5090         (use_rsqrt_p): Likewise.
5091         (aarch64_emit_swrsqrt): Use new function name.
5092         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
5093         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
5094         text explaining this option.
5095         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
5097 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
5099         PR target/69969
5100         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
5101         complain about -mallow-movmisalign without -mvsx if
5102         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
5104 2016-02-26  Joel Sherrill  <joel@rtems.org>
5106         * config.gcc: Add x86_64-*-rtems*.
5107         * gcc/config/i386/rtems-64.h: New file.
5109 2016-02-26  Joel Sherrill  <joel@rtems.org>
5111         * config.gcc: Add aarch64-*-rtems*.
5112         * gcc/config/aarch64/rtems.h: New file.
5114 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
5116         PR target/69946
5117         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
5118         shift amount using %h.  Add comment.
5120 2016-02-26  Richard Biener  <rguenther@suse.de>
5121             Jeff Law  <law@redhat.com>
5123         PR tree-optimization/69740
5124         * cfghooks.c (remove_edge): Request loop fixups if we delete
5125         an edge that might turn an irreducible loop into a natural
5126         loop.
5128 2016-02-26  Martin Jambor  <mjambor@suse.cz>
5130         PR middle-end/69920
5131         * tree-sra.c (sra_modify_assign): Do not remove loads of
5132         uninitialized aggregates to SSA_NAMEs.
5134 2016-02-26  Richard Henderson  <rth@redhat.com>
5136         PR target/69709
5137         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
5138         pseudo in case the target rtx matches the source of the left
5139         shift.
5141 2016-02-26  Martin Jambor  <mjambor@suse.cz>
5143         PR hsa/69568
5144         * hsa.h (hsa_type_packed_p): Declare.
5145         * hsa.c (hsa_type_packed_p): New function.
5146         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
5147         loads.
5148         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
5149         * hsa-brig.c (emit_basic_insn): Likewise.
5151 2016-02-26  Martin Jambor  <mjambor@suse.cz>
5153         pr hsa/69674
5154         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
5155         pointers.
5156         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
5158 2016-02-26  Martin Jambor  <mjambor@suse.cz>
5160         * hsa.h (is_a_helper): New overload for hsa_op_immed for
5161         hsa_op_with_type operands.
5162         (hsa_unsigned_type_for_type): Declare.
5163         * hsa.c (hsa_unsigned_type_for_type): New function.
5164         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
5165         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
5166         the finalizer.  Do not emit extra move.
5168 2016-02-26  Martin Jambor  <mjambor@suse.cz>
5170         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
5171         atomic operations in private segment.
5173 2016-02-26  Martin Jambor  <mjambor@suse.cz>
5175         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
5176         statements to wi->info.  Also disallow omp simd constructs.
5177         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
5178         for not gridifying.  Dump special string for omp_for.
5180 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5182         PR target/69245
5183         * config/aarch64/aarch64.c (aarch64_set_current_function):
5184         Save/restore target globals when switching to
5185         target_option_default_node.
5187 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5189         PR target/69613
5190         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
5191         Return 0 if !SHIFT_COUNT_TRUNCATED.
5193 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
5194             Eric Botcazou  <ebotcazou@adacore.com>
5196         PR rtl-optimization/69891
5197         * dse.c (scan_insn): If we can't figure out memset arguments
5198         or they are non-constant, call clear_rhs_from_active_local_stores.
5200 2016-02-26  Martin Liska  <mliska@suse.cz>
5202         * doc/extend.texi: Mention clog10, clog10f an clog10l
5203         in Builtins section.
5205 2016-02-26  Martin Liska  <mliska@suse.cz>
5207         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
5208         CHECKING_P.
5209         (resolve_args_picking_1): Likewise.
5210         * dwarf2out.h (struct GTY): Likewise.
5212 2016-02-26  Martin Liska  <mliska@suse.cz>
5214         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
5215         with flag_checking.
5216         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
5218 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
5219             Martin Liska  <mliska@suse.cz>
5221         * doc/install.texi: Mention --enable-valgrind-annotations.
5223 2016-02-26  Richard Biener  <rguenther@suse.de>
5225         PR tree-optimization/69551
5226         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
5227         looking through aliases adjust DECL_PT_UID to refer to the
5228         ultimate alias target.
5230 2016-02-25  Martin Liska  <mliska@suse.cz>
5232         PR middle-end/69919
5233         * alloc-pool.c (after_memory_report): New variable.
5234         * alloc-pool.h (base_pool_allocator ::release): Do not use
5235         the infrastructure if after_memory_report.
5236         * toplev.c (toplev::main): Mark after memory report.
5238 2016-02-25  Richard Biener  <rguenther@suse.de>
5240         PR tree-optimization/48795
5241         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
5243 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
5245         PR driver/68463
5246         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
5247         offloading is enabled and -fopenacc or -fopenmp is specified.
5248         (CRTOFFLOADEND): Likewise.
5249         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
5250         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
5251         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
5252         (offload_objects_file_name): New static var.
5253         (tool_cleanup): Remove offload_objects_file_name file.
5254         (find_offloadbeginend): Replace with ...
5255         (find_crtoffloadtable): ... this.
5256         (run_gcc): Remove offload_argc and offload_argv.
5257         Get offload_objects_file_name from -foffload-objects=... option.
5258         Read names of object files with offload from this file, pass them to
5259         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
5260         don't pass offloadbegin and offloadend to the linker.  Don't pass
5261         offload non-LTO files to the linker, because now they're not claimed.
5263 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
5265         PR ipa/69630
5266         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
5267         on builtin_unreachable.
5269 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
5271         PR rtl-optimization/69896
5272         * regcprop.c: Include cfgrtl.h.
5273         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
5274         than remembered mode, either delete it (if noop_move_p), or
5275         treat like copy_p but not noop_p instruction.
5277 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5279         PR debug/69705
5280         * dwarf2out.c (gen_variable_die): Work around buggy LTO
5281         - allow NULL decl for Fortran DW_TAG_common_block variables.
5283 2016-02-24  Jason Merrill  <jason@redhat.com>
5285         * common.opt (flifetime-dse): Add -flifetime-dse=1.
5287 2016-02-24  Richard Biener  <rguenther@suse.de>
5288             Jakub Jelinek  <jakub@redhat.com>
5290         PR middle-end/69760
5291         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
5292         conditionally executed ops to well-defined overflow behavior.
5294 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5296         PR middle-end/69915
5297         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
5298         elements.
5300 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5302         PR rtl-optimization/69886
5303         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
5304         argument.  Use it when checking validity of set instructions.
5305         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
5306         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
5307         callsite.
5308         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
5309         * store-motion.c (find_moveable_store): Update
5310         can_assign_to_reg_without_clobbers_p callsite.
5312 2016-02-24  Richard Biener  <rguenther@suse.de>
5314         PR middle-end/68963
5315         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
5316         bogus check.
5317         (record_nonwrapping_iv): Do not fall back to the low/high bound
5318         for non-constant IV bases if the stmt is not always executed.
5320 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5322         * config/arm/arm-cores.def (cortex-a32): New entry.
5323         * config/arm/arm-tables.opt: Regenerate.
5324         * config/arm/arm-tune.md: Regenerate.
5325         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
5326         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
5327         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
5328         for -mcpu and -mtune.
5330 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5332         PR target/69875
5333         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
5334         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
5335         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
5336         (atomic_loaddi_1): Delete.
5337         (atomic_loaddi): Rewrite expander using the above changes.
5339 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5341         PR c/69918
5342         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
5343         2 to 3.
5345 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
5346             Richard Biener  <rguenth@suse.de>
5348         PR middle-end/69909
5349         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
5350         set_mem_attributes if tem is SSA_NAME which got expanded
5351         as a MEM.
5353 2016-02-24  Richard Biener  <rguenther@suse.de>
5355         PR tree-optimization/69907
5356         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
5357         end of permutations for BB vectorization.
5359 2016-02-24  Christian Bruel  <christian.bruel@st.com>
5361         * config/arm/arm-c.c (arm_option_override): Initialize
5362         target_option_current_node.
5363         * config/arm/arm.c (arm_pragma_target_parse): Replace
5364         build_target_option_node call by target_option_current_node.
5365         Set target_option_current_node.
5366         Fix comments.
5368 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
5370         PR target/69810
5371         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
5372         define_insn_and_split to define_insn.
5373         (zero_extendqi<mode>2_dot2): Same.
5374         (extendqi<mode>2_dot): Same.
5375         (extendqi<mode>2_dot2): Same.
5377 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
5379         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
5380         and add bypass for AES{D,E} and AESMC pairs.
5381         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
5382         and AESMC pairs.
5384 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
5386         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
5387         series for reciprocal square root in Exynos M1.
5389 2016-02-23  Martin Sebor  <msebor@redhat.com>
5391         PR c/69759
5392         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
5393         __builtin_alloca_with_align.
5395 2016-02-23  Richard Henderson  <rth@redhat.com>
5397         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
5398         (ix86_register_pragmas): Remove __seg_tls.
5399         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
5400         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
5401         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
5402         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
5403         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
5404         * doc/extend.texi (__seg_tls): Remove item.
5406 2016-02-23  Richard Biener  <rguenther@suse.de>
5408         * alloc-pool.h (struct allocation_object): Make id member
5409         conditional on CHECKING_P again.
5410         (get_instance): Adjust.
5411         (base_pool_allocator): Likewise.
5413 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
5415         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
5416         (parallelize_loops): In OpenACC kernels mode, set n_threads to
5417         zero.
5418         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
5419         flag_openacc.
5420         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
5422 2016-02-23  Richard Biener  <rguenther@suse.de>
5424         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
5425         * bitmap.h (struct bitmap_usage): Likewise.
5426         (bitmap_move): Declare.
5427         * bitmap.c (register_overhead): Take size_t argument.
5428         (bitmap_move): New function.
5429         * df-problems.c (df_rd_transfer_function): Use bitmap_move
5430         to properly account overhead.
5431         * tree.c (free_node): Use tree_size.
5433 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
5435         PR c++/69902
5436         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
5437         when inverting comparison.
5439         PR c/69900
5440         * common.opt (Wunreachable-code): Add Warning flag.
5442 2016-02-23  Mark Wielaard  <mjw@redhat.com>
5443             Jakub Jelinek  <jakub@redhat.com>
5445         PR c/69911
5446         * cgraphunit.c (check_global_declaration): Check main_input_filename
5447         and DECL_SOURCE_FILE are not NULL.
5449 2016-02-23  Martin Jambor  <mjambor@suse.cz>
5451         PR tree-optimization/69666
5452         * tree-sra.c (sra_modify_assign): Do not attempt to create
5453         default_def replacements for unscalarizable regions.
5455 2016-02-20  Mark Wielaard  <mjw@redhat.com>
5457         PR c/28901
5458         * cgraphunit.c (check_global_declaration): Check level of
5459         warn_unused_const_variable and main_input_filename.
5460         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
5461         (-Wunused-variable): For C implies -Wunused-const-variable=1.
5462         (-Wunused-const-variable): Explain levels 1 and 2.
5464 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
5466         PR target/69888
5467         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
5468         identical arguments.  Formatting and spelling fixes.
5470         PR target/69885
5471         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
5472         be specified.
5474         PR target/69894
5475         PR target/69895
5476         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
5477         and m68k-devices.def.
5478         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
5479         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
5481 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
5483         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
5484         and HImode registers.
5486 2016-02-22  Richard Biener  <rguenther@suse.de>
5488         PR tree-optimization/69882
5489         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
5490         preserve permutations present because of gaps.
5491         (vect_supported_load_permutation_p): Always continue checking
5492         permutations after vect_attempt_slp_rearrange_stmts.
5494 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
5496         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
5497         min_profitable_estimate, rather than min_profitable_iters.
5499 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
5501         PR target/69885
5502         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
5503         SImode for last match_operand.
5505 2016-02-22  Martin Liska  <mliska@suse.cz>
5507         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
5508         return bitsize - 1 as the return value.
5510 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
5512         PR target/69806
5513         PR target/54089
5514         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
5515         Handle negative shift counts.
5516         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
5517         force_reg on the shift constant.
5518         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
5519         (lshrsi3_d): Handle negative shift counts.
5521 2016-02-22  Richard Biener  <rguenther@suse.de>
5522             Tom de Vries  <tom@codesourcery.com>
5524         * graph.c: Include dumpfile.h.
5525         (print_graph_cfg): Split into three overloads.
5526         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
5528 2016-02-22  Tom de Vries  <tom@codesourcery.com>
5530         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
5531         dump-fn.
5533 2016-02-22  Richard Biener  <rguenther@suse.de>
5535         PR ipa/37448
5536         * ipa-inline-transform.c (inline_call): When not updating
5537         overall summaries adjust self size by the growth estimate.
5538         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
5539         hash-set, do not update overall summaries here.  Renamed from ...
5540         (inline_to_all_callers): ... this which is now wrapping the
5541         above and performing delayed overall summary update.
5542         (early_inline_small_functions): Delay updating of the overall
5543         summary.
5545 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
5547         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
5548         variable.
5550 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
5552         PR driver/69805
5553         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
5554         :%* in %:gt() argument.
5555         (greater_than_spec_func): Adjust for expecting only numbers,
5556         if there are more than two numbers, compare the last two.
5558 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
5560         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
5561         -Wnarrowing with -std.
5563 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
5565         PR c++/69851
5566         * expr.c (store_field): Don't use bit-field path if exp is
5567         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
5568         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
5569         and the assignment can be performed by bitwise copy.  Formatting
5570         fix.
5572         PR middle-end/69838
5573         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
5574         call copy_reg_eh_region_note_forward on before and/or after sequences
5575         and remove note from insn if it no longer can throw.
5577         PR target/69820
5578         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
5579         if TARGET_AVX512BW.
5581 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5583         * config/s390/vector.md: Add missing commutative operand markers
5584         to the patterns which qualify for one.
5585         * config/s390/vx-builtins.md: Likewise.
5587 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5589         * config/s390/vector.md (VI, VI_QHS): Add single element vector
5590         types to mode iterators.
5591         (vec_double): ... and mode attribute.
5592         * config/s390/vx-builtins.md (non_vec_int): Likewise.
5594 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5596         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
5597         Change the predicate of op2 from nonimmediate to general and let
5598         reload fix it if necessary.
5600 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5602         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
5604 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5606         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
5607         mode.
5609 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5611         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
5612         * config/s390/s390.c (s390_expand_vec_movstr): New function.
5613         * config/s390/s390.md ("movstr<P:mode>"): Call
5614         s390_expand_vec_movstr.
5616 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5618         * config/s390/s390.md: Add missing output modifier for operand 1
5619         to print it as address properly.
5621 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5623         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
5624         * config/s390/2964.md: New file.
5625         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
5626         of insn grouping attributes depending on the CPU level.
5627         (s390_get_unit_mask): New function.
5628         (s390_sched_score): Remove the OOO from the scheduling macros.
5629         Add loop to calculate a score for the instruction mix.
5630         (s390_sched_reorder): Likewise plus improve debug output.
5631         (s390_sched_variable_issue): Rename macros as above.  Calculate
5632         the unit distances after actually scheduling an insn.  Improve
5633         debug output.
5634         (s390_sched_init): Clear last_scheduled_unit_distance array.
5635         * config/s390/s390.md: Include 2964.md.
5637 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
5639         PR target/69671
5640         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
5641         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
5642         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
5643         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
5644         *avx512f_<code>v8div16qi2_mask_1): New insns.
5646 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
5648         PR target/68404
5649         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
5650         2016-02-09 change.
5652         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
5653         earlyclobber from target.  Use wF constraint for fused memory
5654         address.
5655         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
5657 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
5658             Martin Liska  <mliska@suse.cz>
5660         PR sanitizer/69863
5661         * cfgexpand.c (asan_sanitize_stack_p): New function.
5662         (partition_stack_vars): Use the function.
5663         (expand_stack_vars): Likewise.
5664         (defer_stack_allocation): Likewise.
5665         (expand_used_vars): Likewise.
5667 2016-02-18  Richard Biener  <rguenther@suse.de>
5669         PR middle-end/69553
5670         * fold-const.c (operand_equal_p): Properly compare offsets for
5671         IMAGPART_EXPR and ARRAY_REF.
5673 2016-02-18  Nick Clifton  <nickc@redhat.com>
5675         PR target/62254
5676         PR target/69610
5677         * config/arm/arm.c (arm_option_override_internal): Disable
5678         interworking if the target does not support thumb instructions.
5679         (arm_reload_in_hi): Handle the case where a register to register
5680         move needs reloading because there is no simple pattern to handle
5681         it.
5682         (arm_reload_out_hi): Likewise.
5684 2016-02-18  Richard Biener  <rguenther@suse.de>
5686         PR middle-end/69854
5687         * match.pd: Don't use fold_binary or fold_unary for folding
5688         constants.
5690 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
5692         PR c++/69850
5693         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
5694         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
5695         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
5696         warn on gimple_no_warning_p statements.
5698 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
5700         * doc/extend.texi (C++ Attributes): Correct description of
5701         warn_unused type attribute.
5703 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5705         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
5706         correct instruction.
5708 2016-02-17  Richard Biener  <rguenther@suse.de>
5710         PR rtl-optimization/69609
5711         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
5712         (find_traces_1_round): When ending a trace update cached priority
5713         of successors.
5714         (bb_to_key): Use cached priority when available.
5715         (copy_bb): Initialize cached priority.
5716         (reorder_basic_blocks_software_trace_cache): Likewise.
5718 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5720         PR target/69161
5721         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
5722         New predicate.
5723         (aarch64_comparison_operator): Break overly long line into two.
5724         (aarch64_comparison_operation): Likewise.
5725         * config/aarch64/aarch64.md (cstorecc4): Use
5726         aarch64_comparison_operator_mode instead of
5727         aarch64_comparison_operator.
5728         (cstore<mode>4): Likewise.
5729         (aarch64_cstore<mode>): Likewise.
5730         (*cstoresi_insn_uxtw): Likewise.
5731         (cstore<mode>_neg): Likewise.
5732         (*cstoresi_neg_uxtw): Likewise.
5734 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5736         PR target/69161
5737         * config/arm/predicates.md (arm_comparison_operator_mode):
5738         New predicate.
5739         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
5740         instead of arm_comparison_operator.
5741         (*mov_negscc): Likewise.
5742         (*mov_notscc): Likewise.
5743         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
5744         (*thumb2_mov_negscc): Likewise.
5745         (*thumb2_mov_negscc_strict_it): Likewise.
5746         (*thumb2_mov_notscc): Likewise.
5747         (*thumb2_mov_notscc_strict_it): Likewise.
5749 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
5751         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
5752         Add missing return.
5754 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
5756         * config/visium/visium.c (machine_libfunc_index): New enum.
5757         (machine_libfuncs): New structure.
5758         (visium_libfuncs): New static variable.
5759         (TARGET_INIT_LIBFUNCS): Define to...
5760         (visium_init_libfuncs): ...this.  New function.
5761         (expand_block_move_4): Use the appropriate libfunc.
5762         (expand_block_move_2): Likewise.
5763         (expand_block_move_1): Likewise.
5764         (expand_block_set_4): Likewise.
5765         (expand_block_set_2): Likewise.
5766         (expand_block_set_1): Likewise.
5767         (visium_trampoline_init): Likewise.
5769 2016-02-17  Nick Clifton  <nickc@redhat.com>
5771         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
5772         TI's devices.csv file as of March 2016.
5774 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5776         PR Target/48344
5777         * opts-global.c (handle_common_deferred_options): Introduce and
5778         initialize two global variables to remember command-line options
5779         specifying a stack-limiting register.
5780         * opts.h: Add extern declarations of the two new global variables.
5781         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
5782         variable based on the values of the two new global variables.
5784 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5786         PR c/69835
5787         * common.opt (Wnonnull-compare): New warning.
5788         * doc/invoke.texi (-Wnonnull): Remove text about comparison
5789         of arguments against NULL.
5790         (-Wnonnull-compare): Document.
5791         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
5792         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
5793         * passes.def (pass_warn_nonnull_compare): Add.
5794         * gimple-ssa-nonnull-compare.c: New file.
5796 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5798         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
5799         AARCH64_EXTRA_TUNE_RECIP_SQRT.
5801 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5803         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
5804         reciprocal sqrt for -mlow-precision-recip-sqrt.
5806 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5807             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5809         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
5810         always use lane loads to construct non-constant vectors.
5812 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
5814         * config/aarch64/aarch64.md
5815         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
5816         constraints for operand 3.
5817         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
5819 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5820             Richard Biener  <rguenther@suse.de>
5822         PR tree-optimization/69820
5823         * tree-vect-patterns.c (type_conversion_p): Return false if
5824         *orig_type is unsigned single precision or boolean.
5825         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
5826         Formatting fix.
5828 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5830         PR rtl-optimization/69764
5831         PR rtl-optimization/69771
5832         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
5833         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
5835 2016-02-16  Richard Biener  <rguenther@suse.de>
5837         PR tree-optimization/69776
5838         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
5839         sets from caller.
5840         (indirect_refs_may_alias_p): Likewise.
5841         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
5842         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
5843         according to tbaa_p.
5844         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
5845         (optimize_stmt): For redundant store discovery do not allow tbaa.
5847 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
5849         PR tree-optimization/69714
5850         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
5851         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
5853 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
5855         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
5856         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
5857         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
5858         * config/arc/arc.c (arc_init): Check FPU options.
5859         (get_arc_condition_code): Handle new CC_FPU* modes.
5860         (arc_select_cc_mode): Likewise.
5861         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
5862         register pair only. Allow access for ARCv2 accumulator.
5863         (gen_compare_reg): Whenever we have FPU support use FPU compare
5864         instructions.
5865         (arc_reorg): Don't generate brcc insns when FPU compare
5866         instructions are involved.
5867         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
5868         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
5869         floating point emulation.
5870         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
5871         (REVERSE_CONDITION): Add new CC_FPU* modes.
5872         (TARGET_FP_SP_BASE): Define.
5873         (TARGET_FP_DP_BASE): Likewise.
5874         (TARGET_FP_SP_FUSED): Likewise.
5875         (TARGET_FP_DP_FUSED): Likewise.
5876         (TARGET_FP_SP_CONV): Likewise.
5877         (TARGET_FP_DP_CONV): Likewise.
5878         (TARGET_FP_SP_SQRT): Likewise.
5879         (TARGET_FP_DP_SQRT): Likewise.
5880         (TARGET_FP_DP_AX): Likewise.
5881         * config/arc/arc.md (ARCV2_ACC): New constant.
5882         (type): New fpu type attribute.
5883         (SDF): Conditional iterator.
5884         (cstore<mode>, cbranch<mode>): Change expand condition.
5885         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
5886         handles FPU/FPX cases as well.
5887         * config/arc/arc.opt (mfpu): New option.
5888         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
5889         Renamed.
5890         (adddf3, muldf3, subdf3): Removed.
5891         * config/arc/predicates.md (proper_comparison_operator): Recognize
5892         CC_FPU* modes.
5893         * config/arc/fpu.md: New file.
5894         * doc/invoke.texi (ARC Options): Document mfpu option.
5896 2016-02-16  Richard Biener  <rguenther@suse.de>
5898         PR rtl-optimization/69291
5899         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
5900         noce_operand_ok check.
5902 2016-02-16  Tom de Vries  <tom@codesourcery.com>
5904         PR lto/67709
5905         * omp-low.c (simd_clone_create): Remove call to
5906         symtab->call_cgraph_insertion_hooks.
5908 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
5910         PR tree-optimization/69802
5911         * tree-ssa-reassoc.c (update_range_test): If op is
5912         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
5913         op == 1 test of precision 1 integral op, otherwise handle
5914         that case as op itself.  Fix up formatting.
5915         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
5916         up formatting.
5918 2016-02-16  Richard Biener  <rguenther@suse.de>
5920         PR tree-optimization/69586
5921         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
5922         types for conversion sources.
5924 2016-02-16  Richard Biener  <rguenther@suse.de>
5926         PR middle-end/69801
5927         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
5928         mask OEP_ADDRESS_OF.
5930 2016-02-16  Alan Modra  <amodra@gmail.com>
5932         PR target/68973
5933         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
5934         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
5935         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
5936         (p8_mtvsrwz): New.
5937         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
5938         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
5939         (p8_fmrgow_<mode>): Likewise.
5940         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
5941         changes.
5942         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
5943         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
5944         to use movdi_internal64.  Remove op0_di.
5945         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
5947 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
5949         Add support for the FCCMP insn types
5951         * config/aarch64/aarch64.md (fccmp): Change insn type.
5952         (fccmpe): Likewise.
5953         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
5954         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
5955         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
5956         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
5957         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
5958         * config/arm/types.md (fccmps): Add new insn type.
5959         (fccmpd): Likewise.
5961 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5963         * alias.c (get_alias_set): Fix a typo in comment.
5965 2016-02-15  Richard Biener  <rguenther@suse.de>
5967         PR tree-optimization/69595
5968         * match.pd: Complete range test simplification to true.
5970 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
5972         PR rtl-optimization/69648
5973         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
5974         pic_offset_table_rtx.
5976         PR rtl-optimization/69752
5977         * ira.c (update_equiv_regs): When looking for more than a single SET,
5978         also take other side effects into account.
5980 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5982         * config/s390/s390.c (s390_function_profiler): Add a new sequence
5983         for z900+ CPUs in 31-bit mode.
5985 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
5987         * common/config/s390/s390-common.c (s390_supports_split_stack):
5988         New function.
5989         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
5990         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
5991         * config/s390/s390.c (struct machine_function): New field
5992         split_stack_varargs_pointer.
5993         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
5994         in s390_emit_prologue.
5995         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
5996         vararg pointer.
5997         (morestack_ref): New global.
5998         (SPLIT_STACK_AVAILABLE): New macro.
5999         (s390_expand_split_stack_prologue): New function.
6000         (s390_live_on_entry): New function.
6001         (s390_va_start): Use split-stack vararg pointer if appropriate.
6002         (s390_asm_file_end): Emit the split-stack note sections.
6003         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
6004         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
6005         (UNSPECV_SPLIT_STACK_CALL): New unspec.
6006         (UNSPECV_SPLIT_STACK_DATA): New unspec.
6007         (split_stack_prologue): New expand.
6008         (split_stack_space_check): New expand.
6009         (split_stack_data): New insn.
6010         (split_stack_call): New expand.
6011         (split_stack_call_*): New insn.
6012         (split_stack_cond_call): New expand.
6013         (split_stack_cond_call_*): New insn.
6015 2016-02-15  Richard Biener  <rguenther@suse.de>
6017         PR tree-optimization/69783
6018         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6019         Add trivially correct cases.
6021 2016-02-15  Tom de Vries  <tom@codesourcery.com>
6023         PR lto/69655
6024         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
6025         do_force_output.
6026         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
6028 2016-02-15  Richard Biener  <rguenther@suse.de>
6030         PR tree-optimization/69776
6031         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
6032         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
6033         indicate whether we can use TBAA to disambiguate against stores.
6034         Use alias-set zero if not.
6035         (visit_reference_op_store): Do not use TBAA when looking up
6036         redundant stores.
6037         * tree-ssa-pre.c (compute_avail): Use TBAA here.
6038         (eliminate_dom_walker::before_dom_children): But not when looking
6039         up redundant stores.
6041 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
6043         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
6045 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
6047         *  config/i386/znver1.md
6048         (znver1_pop, znver1_pop_mem,
6049         znver1_load_imov_double_store,
6050         znver1_load_imov_direct_store,
6051         znver1_load_imov_direct_load,
6052         znver1_load_imov_double_load): Add new.
6053         (znver1_insn, znver1_insn_load): Add icmov type.
6054         (znver1_sseavx_fma,
6055         znver1_sseavx_fma_load,
6056         znver1_avx256_fma,
6057         znver1_avx256_fma_load): Fix pipe usage.
6059 2016-02-14  Alan Modra  <amodra@gmail.com>
6061         PR target/68973
6062         * reloads.c (find_reloads_address_1): For pre/post-inc/dec
6063         with an invalid hard reg, reload just the reg not the entire
6064         pre/post-inc/dec address expression.
6066 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
6068         PR target/67260
6069         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
6070         fixed R1_REG scratch reg.
6071         (sibcall_value_pcrel_fdpic): Likewise.
6073 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
6075         PR target/67636
6076         PR target/64345
6077         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
6079 2016-02-12  Walter Lee  <walt@tilera.com>
6081         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
6082         * config/tilegx/t-tilegx: Likewise.
6084 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
6086         PR other/69554
6087         * diagnostic-show-locus.c (struct line_span): New struct.
6088         (layout::get_first_line): Delete.
6089         (layout::get_last_line): Delete.
6090         (layout::get_num_line_spans): New member function.
6091         (layout::get_line_span): Likewise.
6092         (layout::print_heading_for_line_span_index_p): Likewise.
6093         (layout::get_expanded_location): Likewise.
6094         (layout::calculate_line_spans): Likewise.
6095         (layout::m_first_line): Delete.
6096         (layout::m_last_line): Delete.
6097         (layout::m_line_spans): New field.
6098         (layout::layout): Update comment.  Replace m_first_line and
6099         m_last_line with m_line_spans, replacing their initialization
6100         with a call to calculate_line_spans.
6101         (diagnostic_show_locus): When printing source lines and
6102         annotations, rather than looping over a single span
6103         of lines, instead loop over each line_span within
6104         the layout, with an inner loop over the lines within them.
6105         Call the context's start_span callback when changing line spans.
6106         * diagnostic.c (diagnostic_initialize): Initialize start_span.
6107         (diagnostic_build_prefix): Break out the building of the location
6108         part of the string into...
6109         (diagnostic_get_location_text): ...this new function, rewriting
6110         it from nested ternary expressions to a sequence of "if"
6111         statements.
6112         (default_diagnostic_start_span_fn): New function.
6113         * diagnostic.h (diagnostic_start_span_fn): New typedef.
6114         (diagnostic_context::start_span): New field.
6115         (default_diagnostic_start_span_fn): New prototype.
6117 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
6119         PR driver/69779
6120         * gcc.c (driver::finalize): Fix cleanup of "specs".
6122 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
6124         PR driver/69265
6125         PR driver/69453
6126         * gcc.c (driver::driver): Initialize m_option_suggestions.
6127         (driver::~driver): Clean up m_option_suggestions.
6128         (suggest_option): Convert to...
6129         (driver::suggest_option): ...this, and split out into
6130         driver::build_option_suggestions and find_closest_string.
6131         (driver::build_option_suggestions): New function, from
6132         first half of suggest_option.  Special-case
6133         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
6134         the sanitizer_opts array.  For options of enum types, add the
6135         various enum values to the candidate strings.
6136         (driver::handle_unrecognized_options): Remove "const".
6137         * gcc.h (driver::handle_unrecognized_options): Likewise.
6138         (driver::build_option_suggestions): New decl.
6139         (driver::suggest_option): New decl.
6140         (driver::m_option_suggestions): New field.
6141         * opts-common.c (add_misspelling_candidates): New function.
6142         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
6143         and make non-static.
6144         * opts.h (sanitizer_opts): New array decl.
6145         (add_misspelling_candidates): New function decl.
6146         * spellcheck.c (find_closest_string): New function.
6147         * spellcheck.h (find_closest_string): New function decl.
6149 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
6151         PR rtl-optimization/69764
6152         PR rtl-optimization/69771
6153         * optabs.c (expand_binop_directly): For shift_optab_p, force
6154         convert_modes with VOIDmode if xop1 has VOIDmode.
6156 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
6158         PR target/69729
6159         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
6160         to correctly determine instrumentation thunks.
6162 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
6164         PR ipa/69241
6165         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
6166         type by reference, force lhs on the call.
6168         PR ipa/68672
6169         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
6170         Compute retval and retbnd early in all cases if split_part_return_p
6171         and return_bb is not EXIT.  Remove all clobber stmts and reset
6172         all debug stmts that refer to SSA_NAMEs defined in split part,
6173         except if it is retval, in that case replace the old retval with the
6174         lhs of the call to the split part.
6176 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6178         revert:
6179         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6181         PR middle-end/66726
6182         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6183         whose result is used in PHI.
6184         (maybe_optimize_range_tests): Likewise.
6185         (final_range_test_p): Likweise.
6187 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
6189         PR middle-end/66726
6190         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
6191         whose result is used in PHI.
6192         (maybe_optimize_range_tests): Likewise.
6193         (final_range_test_p): Likweise.
6195 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
6197         * cgraph.c: Spelling fixes - behaviour -> behavior and
6198         neighbour -> neighbor.
6199         * target.def: Likewise.
6200         * sel-sched.c: Likewise.
6201         * config/mips/mips.c: Likewise.
6202         * config/arc/arc.md: Likewise.
6203         * config/arm/cortex-a57.md: Likewise.
6204         * config/arm/arm.c: Likewise.
6205         * config/arm/neon.md: Likewise.
6206         * config/arm/arm-c.c: Likewise.
6207         * config/vms/vms-c.c: Likewise.
6208         * config/s390/s390.c: Likewise.
6209         * config/i386/znver1.md: Likewise.
6210         * config/i386/i386.c: Likewise.
6211         * config/ia64/hpux-unix2003.h: Likewise.
6212         * config/msp430/msp430.md: Likewise.
6213         * config/rx/rx.c: Likewise.
6214         * config/rx/rx.md: Likewise.
6215         * config/aarch64/aarch64-simd.md: Likewise.
6216         * config/aarch64/aarch64.c: Likewise.
6217         * config/nvptx/nvptx.c: Likewise.
6218         * config/bfin/bfin.c: Likewise.
6219         * config/cris/cris.opt: Likewise.
6220         * config/rs6000/rs6000.c: Likewise.
6221         * target.h: Likewise.
6222         * spellcheck.c: Likewise.
6223         * ira-build.c: Likewise.
6224         * tree-inline.c: Likewise.
6225         * builtins.c: Likewise.
6226         * lra-constraints.c: Likewise.
6227         * explow.c: Likewise.
6228         * hwint.h: Likewise.
6229         * targhooks.c: Likewise.
6230         * tree-vect-data-refs.c: Likewise.
6231         * expr.c: Likewise.
6232         * doc/tm.texi: Likewise.
6233         * doc/extend.texi: Likewise.
6234         * doc/install.texi: Likewise.
6235         * doc/md.texi: Likewise.
6236         * tree-ssa-tail-merge.c: Likewise.
6237         * sched-int.h: Likewise.
6238         * match.pd: Likewise.
6239         * sched-ebb.c: Likewise.
6240         * target.def (omit_struct_return_reg): Likewise.
6241         * gimple-ssa-isolate-paths.c: Likewise.
6242         (find_implicit_erroneous_behaviour): Renamed to...
6243         (find_implicit_erroneous_behavior): ... this.
6244         (find_explicit_erroneous_behaviour): Renamed to...
6245         (find_explicit_erroneous_behavior): ... this.
6246         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
6248 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
6250         PR rtl-optimization/64682
6251         PR rtl-optimization/69567
6252         PR rtl-optimization/69737
6253         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
6254         in I2 as well, just lose it.
6256 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6258         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
6259         New variable.
6260         (aarch64_last_printed_tune_string): Likewise.
6261         (aarch64_declare_function_name): Only output .arch assembler
6262         directive if it will be different from the previously output
6263         directive.  Same for .tune comment but only if -dA is set.
6264         (aarch64_start_file): New function.
6265         (TARGET_ASM_FILE_START): Define.
6267 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
6269         PR plugins/69758
6270         * Makefile.in (PLUGIN_HEADERS): Add params.list.
6272 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
6274         PR target/65313
6275         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
6276         -Wmaybe-uninitialized warning.
6278 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
6280         PR target/69713
6281         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
6283 2016-02-11  Richard Biener  <rguenther@suse.de>
6285         PR rtl-optimization/69291
6286         * ifcvt.c (noce_try_store_flag_constants): Do not allow
6287         subexpressions affected by changing the result.
6289 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
6291         PR target/69148
6292         * lra-constraints.c (curr_insn_transform): Find in/out operands
6293         for secondary memory moves.  Update dups.
6295 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
6297         PR tree-optimization/69652
6298         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
6299         to nested loop, did source re-formatting, skip debug statements,
6300         add check on statement with volatile operand, remove dead scalar
6301         statements.
6303 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
6304             Patrick Palka  <ppalka@gcc.gnu.org>
6306         PR ipa/69241
6307         PR c++/69649
6308         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
6309         calls if the return type is TREE_ADDRESSABLE.
6310         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
6311         * ipa-split.c (split_function): Fix doubled "we" in comment.
6312         Use void return type for the split part even if
6313         !split_point->split_part_set_retval.
6315 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
6317         PR tree-optimization/68021
6318         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
6319         when computing the value of biv cand by itself.
6321 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
6323         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
6324         (cortexa57_tunings): Likewise.
6325         (cortexa72_tunings): Likewise.
6326         (arch_macro_fusion_pair_p): Add support for AES fusion.
6327         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
6328         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
6329         Allow virtual registers before reload so early scheduling works.
6330         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
6331         correct latency and pipeline.
6332         (cortex_a57_crypto_complex): Likewise.
6333         (cortex_a57_crypto_xor): Likewise.
6334         (define_bypass): Add AES bypass.
6336 2016-02-10  Richard Biener  <rguenther@suse.de>
6338         PR tree-optimization/69726
6339         * passes.def: Add DCE pass before late uninit.
6340         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
6341         really fixup if-conversions job.
6343 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
6345         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
6346         (arm_cortex_a57_tune): Likewise.
6347         (aarch_macro_fusion_pair_p): Add support for AES fusion.
6348         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
6350 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
6352         * timevar.def (TV_PHASE_DBGINFO): Delete.
6353         (TV_PHASE_CHECK_DBGINFO): Likewise.
6354         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
6356 2016-02-10  Richard Biener  <rguenther@suse.de>
6358         PR tree-optimization/69719
6359         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6360         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
6362 2016-02-09  Andrew Pinski  <apinski@cavium.com>
6364         PR tree-opt/69282
6365         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
6366         get_vcond_mask_icode returns false.
6368 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
6370         PR target/68404
6371         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
6372         an ADDIS that adds a pointer to a large constant that sets the
6373         upper16 bits with a load operation.
6375 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
6377         PR target/68532
6378         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
6379         order.
6380         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
6381         endian.
6382         (vzipq_s16): Likewise.
6383         (vzipq_s32): Likewise.
6384         (vzipq_f32): Likewise.
6385         (vzipq_u8): Likewise.
6386         (vzipq_u16): Likewise.
6387         (vzipq_u32): Likewise.
6388         (vzipq_p8): Likewise.
6389         (vzipq_p16): Likewise.
6391 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
6393         PR target/68532
6394         * config/arm/arm.c (neon_endian_lane_map): New function.
6395         (neon_vector_pair_endian_lane_map): New function.
6396         (arm_evpc_neon_vuzp): Allow for big endian lane order.
6397         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
6398         endian.
6399         (vuzpq_s16): Likewise.
6400         (vuzpq_s32): Likewise.
6401         (vuzpq_f32): Likewise.
6402         (vuzpq_u8): Likewise.
6403         (vuzpq_u16): Likewise.
6404         (vuzpq_u32): Likewise.
6405         (vuzpq_p8): Likewise.
6406         (vuzpq_p16): Likewise.
6408 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
6410         PR target/69634
6411         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
6412         debug insns.
6414 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
6416         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
6417         truncate const_int operand 1 to QImode.
6419 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
6421         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
6422         corresponding to an abnormal edge.
6424 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6426         PR tree-optimization/69599
6427         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
6428         function.
6429         (find_func_aliases_for_builtin_call, find_func_clobbers)
6430         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
6431         partition.
6433 2016-02-09  Richard Biener  <rguenther@suse.de>
6435         PR tree-optimization/69715
6436         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
6437         LHS on calls as non-rewritable.
6439 2016-02-09  Tom de Vries  <tom@codesourcery.com>
6441         PR lto/69707
6442         * lto-wrapper.c (append_diag_options): New function.
6443         (compile_offload_image): Call append_diag_options.
6445 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
6447         PR other/69722
6448         * doc/extend.texi (Flag Output Operands): Correct sectioning.
6449         Minor copy-edit to fix verb tenses.
6451 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
6453         PR tree-optimization/69209
6454         * ipa-split.c (split_function): If split part is not
6455         returning retval, retval has gimple type but is not
6456         gimple value, force it into a SSA_NAME first.
6458 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
6460         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
6461         outdated section.
6463 2016-02-08  Jason Merrill  <jason@redhat.com>
6465         PR c++/69631
6466         * convert.c (convert_to_integer_1): Check dofold on truncation
6467         distribution.
6468         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
6469         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
6470         Rename from *_nofold.
6471         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
6472         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
6474 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
6476         PR target/60410
6477         * tree.c (build_common_tree_nodes): Remove short_double argument.
6478         All callers changed.
6479         * tree.h (build_common_tree_nodes): Adjust declaration.
6480         * doc/invoke.texi (-fshort-double): Remove documentation.
6481         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
6482         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
6483         * lto-wrapper.c (merge_and_complain, append_compiler_options)
6484         (append_linker_options): Don't handle OPT_fshort_double.
6486         PR rtl-optimization/68730
6487         * lra-remat.c (insn_to_cand_activation): New static variable.
6488         (lra_remat): Allocate and free it.
6489         (create_cand): New arg activation. Initialize a field in
6490         insn_to_cand_activation if it is nonnull.
6491         (create_cands): Pass the activation insn to create_cand when making
6492         a candidate involving an output reload.  Reorganize code a little.
6493         (do_remat): Keep track of active status of candidates in a separate
6494         bitmap.
6496 2016-02-08  Richard Biener  <rguenther@suse.de>
6498         PR tree-optimization/69719
6499         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
6500         Properly use absolute of the difference of the two offsets to
6501         compare or adjust the segment length.
6503 2016-02-08  Richard Biener  <rguenther@suse.de>
6504             Jeff Law  <law@redhat.com>
6506         PR target/68273
6507         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
6508         types for anonymous SSA names.
6510 2016-02-08   Richard Biener  <rguenther@suse.de>
6512         PR rtl-optimization/69274
6513         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
6515 2016-02-08  Jeff Law  <law@redhat.com>
6517         PR tree-optimization/65917
6518         * tree-ssa-dom.c (record_temporary_equivalences): Record both
6519         equivalences from if (x == y) style conditionals.
6520         (loop_depth_of_name): Remove.
6521         (record_equality): Remove loop depth check.
6522         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
6523         (const_and_copies::record_const_or_copy_raw): New member function.
6524         * tree-ssa-scopedtables.c
6525         (const_and_copies::record_const_or_copy_raw): New, factored out of
6526         (const_and_copies::record_const_or_copy): Call new member function.
6528 2016-02-05  Jeff Law  <law@redhat.com>
6530         PR tree-optimization/68541
6531         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
6532         (count_stmts_in_block): New function.
6533         (poor_ifcvt_candidate_code): Likewise.
6534         (is_feasible_trace): Add some heuristics to determine when path
6535         splitting is profitable.
6536         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
6537         is a diamond with a single exit.
6539 2016-02-05  Martin Sebor  <msebor@redhat.com>
6541         PR c++/69662
6542         * doc/invoke.texi: Update -Wplacement-new to take an optional
6543         argument.
6545 2016-02-06  Richard Henderson  <rth@redhat.com>
6547         PR c/69643
6548         * tree.c (tree_nop_conversion_p): Do not strip casts into or
6549         out of non-standard address spaces.
6551 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
6553         PR rtl-optimization/69691
6554         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
6556 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
6558         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
6559         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
6560         (*ieee128_mfvsrd_64bit): Likewise.
6561         (*ieee128_mfvsrd_32bit): Likewise.
6563 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
6565         PR target/69369
6566         Revert r232560:
6567         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
6569         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
6570         instrumented_version.
6572 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
6574         * doc/invoke.texi (Optimize Options): In table of --param options
6575         rename second occurrence of tracer-min-branch-ratio to
6576         tracer-min-branch-probability, rename
6577         tracer-min-branch-ratio-feedback to
6578         tracer-min-branch-probability-feedback and clarify description,
6579         rename sched-spec-state-edge-prob-cutoff to
6580         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
6581         to selsched-insns-to-rename, rename lto-minpartition to
6582         lto-min-partition, delete reorder-blocks-duplicate and
6583         reorder-blocks-duplicate-feedback.
6585 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6587         * config/s390/s390.c (s390_register_info_set_ranges): Remove
6588         superfluous loops.
6590 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
6592         * doc/extend.texi: S/390: Correct some typos.
6594 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6596         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
6598 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
6600         PR target/69625
6601         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
6602         (s390_register_info_gprtofpr): Use new macros above.
6603         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
6604         its name.
6605         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
6606         its name.  Adjust restore and save gpr ranges.
6607         (s390_register_info_set_ranges): New function.
6608         (s390_register_info): Use new macros above.  Call
6609         s390_register_info_set_ranges.
6610         (s390_optimize_register_info): Likewise.
6611         (s390_hard_regno_rename_ok): Use new macros.
6612         (s390_hard_regno_scratch_ok): Likewise.
6613         (s390_emit_epilogue): Likewise.
6614         (s390_can_use_return_insn): Likewise.
6615         (s390_optimize_prologue): Likewise.
6616         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
6618 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
6620         PR bootstrap/69677
6621         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
6622         alignment fixes.
6623         (ix86_option_override_internal): Disable TARGET_STV even for
6624         -m{incoming,preferred}-stack-boundary=3.
6626 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6628         * config.gcc: Mark deprecated rtems targets as obsolete.
6630 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
6632         PR rtl-optimization/64682
6633         PR rtl-optimization/69567
6634         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
6635         before I2 only if the register is both used and set in I2.
6637 2016-02-04  DJ Delorie  <dj@redhat.com>
6639         * config/msp430/msp430.c (msp430_start_function): Add function type.
6641 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
6643         PR fortran/69368
6644         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
6646 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
6648         PR rtl-optimization/69577
6649         Revert:
6650         2015-10-29  Richard Henderson  <rth@redhat.com>
6652         PR target/68124
6653         PR rtl-opt/67609
6654         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
6655         sse check to the exact conditions of PR 67609.
6657 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
6659         PR target/69667
6660         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
6661         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
6662         not allowed into the traditional Altivec registers.
6663         (movtd_64bit_nodm): Likewise.
6664         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
6666 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
6668         * config/aarch64/cortex-a57-fma-steering.c
6669         (aarch64_register_fma_steering): Remove "static" from arguments
6670         to register_pass.
6672 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
6674         PR target/69619
6675         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
6676         twice when complex.
6678 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
6680         * doc/invoke.texi: Delete -mno-fma4.
6682 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
6684         PR rtl-optimization/69577
6685         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
6686         (find_subregs_of_mode): Update accordingly.  Iterate over partial
6687         definitions.
6689 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
6691         * config/arm/arm-protos.h (neon_reinterpret): Remove.
6692         * config/arm/arm.c (neon_reinterpret): Remove.
6693         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
6694         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
6695         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
6696         vreinterpretti): Remove.
6697         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
6698         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
6699         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
6700         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
6701         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
6702         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
6703         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
6704         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
6705         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
6706         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
6707         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
6708         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
6709         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
6710         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
6711         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
6712         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
6713         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
6714         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
6715         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
6716         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
6717         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
6718         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
6719         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
6720         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
6721         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
6722         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
6723         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
6724         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
6725         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
6726         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
6727         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
6728         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
6729         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
6730         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
6731         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
6732         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
6733         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
6734         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
6735         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
6736         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
6737         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
6738         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
6739         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
6740         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
6741         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
6742         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
6743         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
6744         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
6745         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
6746         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
6747         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
6748         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
6749         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
6750         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
6751         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
6752         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
6753         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
6754         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
6755         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
6756         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
6757         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
6758         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
6759         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
6760         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
6761         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
6762         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
6763         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
6764         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
6765         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
6766         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
6767         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
6768         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
6769         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
6770         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
6771         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
6772         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
6773         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
6774         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
6775         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
6776         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
6777         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
6778         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
6779         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
6780         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
6781         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
6782         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
6783         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
6784         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
6785         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
6786         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
6787         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
6788         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
6789         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
6790         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
6791         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
6792         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
6793         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
6794         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
6795         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
6796         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
6797         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
6798         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
6799         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
6801 2016-02-04  Martin Liska  <mliska@suse.cz>
6803         PR sanitizer/69276
6804         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
6805         that are gimple_store_p.
6806         (maybe_instrument_call): Likewise.
6808 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
6810         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
6811         register scaling out of memory reference and comment why.
6813 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6815         PR target/65932
6816         PR target/67714
6817         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
6818         folding the source of a SET.
6820 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6822         PR target/65932
6823         PR target/67714
6824         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
6825         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
6827 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
6829         PR target/65932
6830         PR target/67714
6831         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
6832         HImode.
6834 2016-02-04  Christian Bruel  <christian.bruel@st.com>
6836         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
6837         * config/arm/arm.c (arm_set_current_function): Likewise.
6839 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
6840             Ilya Enkovich  <enkovich.gnu@gmail.com>
6841             H.J. Lu  <hongjiu.lu@intel.com>
6843         PR target/69454
6844         * config/i386/i386.c (convert_scalars_to_vector): Remove
6845         stack alignment fixes.
6846         (ix86_option_override_internal): Disable TARGET_STV if stack
6847         might not be aligned enough.
6848         (ix86_minimum_alignment): Assert that TARGET_STV is false.
6850 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
6852         * gcc/config/i386/x86-tune.def: Disable default prefetching
6853         for -march=znver1.
6855 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
6856             Vladimir Makarov  <vmakarov@redhat.com>
6858         PR target/69461
6859         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
6860         in validating fused toc addresses.
6862 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
6864         PR c/69627
6865         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
6866         range->m_caret fields if range->m_show_caret_p is false.
6868         PR target/69644
6869         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
6870         Force oldval into register if it does not satisfy reg_or_short_operand
6871         predicate.  Fix up formatting.
6873 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
6874             Alexandre Oliva  <aoliva@redhat.com>
6876         PR target/69461
6877         * lra-constraints.c (simplify_operand_subreg): Check additionally
6878         address validity after potential reloading.
6879         (process_address_1): Check insns validity.  In case of failure do
6880         nothing.
6882 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
6884         PR target/69118
6885         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
6886         Fix target.
6888 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
6890         * wide-int.cc (canonize_uhwi): New function.
6891         (wi::divmod_internal): Use it.
6893 2016-02-02  James Norris  <jnorris@codesourcery.com
6895         * gimplify.c (omp_notice_variable): Add usage check.
6897 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
6899         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
6900         like LE, GE, LT, GT when emitting relational operator.
6902 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6904         * ira-costs.c (find_costs_and_classes): Add extra argument.
6905         * target.def (ira_change_pseudo_allocno_class): Add parameter.
6906         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
6907         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
6908         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
6909         Add best_class parameter, and return it if not ALL_REGS.
6910         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
6911         Add parameter.
6912         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
6913         Update target hook.
6915 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
6917         * config/aarch64/aarch64.c
6918         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
6919         (aarch64_ira_change_pseudo_allocno_class): New function.
6921 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
6923         PR target/67032
6924         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
6926 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
6928         * config/avr/avr.c (avr_option_override): Set
6929         PARAM_ALLOW_STORE_DATA_RACES to 1.
6931 2016-02-02  Richard Biener  <rguenther@suse.de>
6933         PR tree-optimization/69595
6934         * match.pd: Add range test simplifications to true/false.
6936 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
6938         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
6939         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
6940         instead.
6942 2016-02-02  Richard Biener  <rguenther@suse.de>
6944         PR tree-optimization/69606
6945         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
6946         info on the result before moving a stmt.
6948 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
6950         PR middle-end/68542
6951         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
6952         branch with vector comparison.
6953         * config/i386/sse.md (VI48_AVX): New mode iterator.
6954         (define_expand "cbranch<mode>4): Add support for conditional branch
6955         with vector comparison.
6956         * tree-vect-loop.c (optimize_mask_stores): New function.
6957         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
6958         has_mask_store field of vect_info.
6959         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
6960         vectorized loops having masked stores after vec_info destroy.
6961         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
6962         correspondent macros.
6963         (optimize_mask_stores): Add prototype.
6965 2016-02-02  Alan Modra  <amodra@gmail.com>
6967         PR target/69548
6968         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
6969         allow subregs.
6971 2016-02-02  Alan Modra  <amodra@gmail.com>
6973         PR target/68662
6974         * config/rs6000/rs6000.c (need_toc_init): New var, set it
6975         whenever toc_label_name used.
6976         (rs6000_file_start): Don't set up toc section here,
6977         (rs6000_output_function_epilogue): do so here instead,
6978         (rs6000_xcoff_file_start): and here.
6979         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
6980         (load_toc_aix_di): Likewise.
6982 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
6984         PR rtl-optimization/69592
6985         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
6986         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
6987         (num_sign_bit_copies_binary_arith_p): New inline function.
6988         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
6990 2016-02-01  Jeff Law  <law@redhat.com>
6992         PR tree-optimization/69580
6993         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
6994         * tree-ssa-threadbackward.c
6995         (fsm_find_control_statement_thread_paths): Do not try to walk
6996         through large PHI nodes.
6998 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
7000         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
7001         when count is incremented above limit, don't analyze further
7002         insns afterwards.
7004         * omp-low.c (oacc_parse_default_dims): Avoid
7005         -Wsign-compare warning, make sure value fits into int
7006         rather than just unsigned int.
7008 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
7010         PR tree-optimization/67921
7011         * fold-const.c (split_tree): New parameters.  Convert pointer
7012         type variable part to proper type before negating.
7013         (fold_binary_loc): Pass new arguments to split_tree.
7015 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
7017         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
7018         (nvptx_goacc_validate_dims): Extend to handle global defaults.
7019         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
7020         * doc/tm.texti: Rebuilt.
7021         * doc/invoke.texi (fopenacc-dim): Document.
7022         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
7023         (append_compiler_options): Likewise.
7024         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
7025         (oacc_parse_default_dims): New.
7026         (oacc_validate_dims): Add USED arg.  Select non-unity default when
7027         possible.
7028         (oacc_loop_fixed_partitions): Return mask of used partitions.
7029         (oacc_loop_auto_partitions): Emit dump info.
7030         (oacc_loop_partition): Return mask of used partitions.
7031         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
7032         loop partitioning and validation calls.
7034 2016-02-01  Richard Biener  <rguenther@suse.de>
7036         PR middle-end/69556
7037         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
7039 2016-02-01  Richard Biener  <rguenther@suse.de>
7041         PR tree-optimization/69574
7042         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
7043         of asserting return chrec_dont_know.
7045 2016-02-01  Martin Liska  <mliska@suse.cz>
7047         * mem-stats-traits.h: Add copyright header.
7048         * mem-stats.h: Likewise.
7050 2016-02-01  Richard Biener  <rguenther@suse.de>
7052         PR tree-optimization/69579
7053         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
7054         Do not propagate through abnormal PHI results.
7056 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
7058         * postreload.c (reload_cse_simplify): Remove dead code.
7060 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
7062         PR rtl-optimization/69570
7063         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
7064         if there is more than one set, not if there is a single set.
7066 2016-02-01  Richard Henderson  <rth@redhat.com>
7068         PR rtl-opt/69535
7069         * combine.c (make_compound_operation): When looking through a
7070         subreg, make sure to re-extend to the width of the outer mode.
7072 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
7074         PR tree-optimization/69546
7075         * wide-int.cc (wi::divmod_internal): For unsigned division
7076         where both operands fit into uhwi, if o1 is 1 and o0 has
7077         msb set, if divident_prec is larger than bits per hwi,
7078         clear another quotient word and return 2 instead of 1.
7079         Similarly for remainder with msb in HWI set, if dividend_prec
7080         is larger than bits per hwi.
7082 2016-01-29  Martin Jambor  <mjambor@suse.cz>
7084         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
7085         Use short lowercase names.
7086         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
7087         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
7088         acq_rel one.  Protect warning agains segfaults if
7089         get_memory_order_name returns NULL.
7090         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
7091         with release semantics.  Do not warn if get_memory_order already did.
7092         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
7093         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
7094         if get_memory_order already did.
7096 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
7098         * doc/install.texi: Document that isl-0.16 is supported.
7100 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
7102         PR target/69299
7103         * config/i386/constraints.md (Bm): Describe as special memory
7104         constraint.
7105         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
7106         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
7107         * genpreds.c (struct constraint_data): Add is_special_memory.
7108         (have_special_memory_constraints, special_memory_start): New
7109         static vars.
7110         (special_memory_end): Ditto.
7111         (add_constraint): Add new arg is_special_memory.  Add code to
7112         process its true value.  Update have_special_memory_constraints.
7113         (process_define_constraint): Pass the new arg.
7114         (process_define_register_constraint): Ditto.
7115         (choose_enum_order): Process special memory.
7116         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
7117         function insn_extra_special_memory_constraint.
7118         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
7119         * gensupport.c (process_rtx): Process
7120         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
7121         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
7122         * ira-lives.c (single_reg_class): Use
7123         insn_extra_special_memory_constraint.
7124         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
7125         * lra-constraints.c (process_alt_operands): Ditto.
7126         (curr_insn_transform): Use insn_extra_special_memory_constraint.
7127         * recog.c (asm_operand_ok, preprocess_constraints): Process
7128         CT_SPECIAL_MEMORY.
7129         * reload.c (find_reloads): Ditto.
7130         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
7131         * stmt.c (parse_input_constraint): Use
7132         insn_extra_special_memory_constraint.
7134 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
7136         PR target/69530
7137         * lra-splill.c (lra_final_code_change): Revert r229087 by
7138         removing all sub-registers.
7140 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
7142         PR target/65604
7143         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
7145 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
7147         PR target/69551
7148         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
7149         SSE1, copy target into the temporary reg first before recursing
7150         on it.
7152 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
7154         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
7155         with vm.
7157 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
7159         * ginclude/stdarg.h: Test __cplusplus instead of
7160         __GXX_EXPERIMENTAL_CXX0X__.
7162 2016-01-29  Richard Biener  <rguenther@suse.de>
7164         PR tree-optimization/69547
7165         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
7166         Do not mark clobbers necessary.
7167         (mark_all_reaching_defs_necessary_1): Likewise.
7169 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7171         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
7172         declaration name with %qs and print it in both error messages.
7173         Also fix indentation.
7175 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7177         PR other/69006
7178         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
7179         trailing blank line from error message.
7181 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
7183         PR c++/69462
7184         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
7185         for C++-11.
7187 2016-01-29  Richard Biener  <rguenther@suse.de>
7189         PR middle-end/69537
7190         * match.pd: Allow all integral types when simplifying a
7191         widening or sign-changing conversion.
7193 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
7195         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
7196         back to setting codegen_error to fail codegen.
7198 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
7200         PR target/69459
7201         * config/i386/constraints.md (C): Only accept constant zero operand.
7202         (BC): New constraint.
7203         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
7204         instead of C constraint.
7205         * doc/md.texi (Machine Constraints): Update description
7206         of C constraint.
7208 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
7210         PR target/68400
7211         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
7213 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
7215         PR middle-end/69542
7216         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
7217         non-debug insns.
7219 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
7221         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
7222         branches if using guessed profile.
7224 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
7226         * graphite-optimize-isl.c (optimize_isl): Fix dump.
7228 2016-01-28  Richard Henderson  <rth@redhat.com>
7230         PR target/69305
7231         * config/aarch64/aarch64-modes.def (CC_Cmode): New
7232         * config/aarch64/aarch64-protos.h: Update.
7233         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
7234         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
7235         (aarch64_get_condition_code_1): Handle CC_Cmode.
7236         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
7237         (*add<mode>3_compareC_cconly_imm): New.
7238         (*add<mode>3_compareC_cconly): New.
7239         (*add<mode>3_compareC_imm): New.
7240         (add<mode>3_compareC): New.
7241         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
7242         to be first.  Use aarch64_carry_operation.
7243         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
7244         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
7245         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
7246         (subti3): Use subdi3_compare1.
7247         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
7248         (sub<mode>3_compare1): New.
7249         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
7250         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
7251         (*subsi3_carryin_uxtw): Likewise.
7252         (*ngc<mode>, *ngcsi_uxtw): Likewise.
7253         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
7254         * config/aarch64/iterators.md (DWI): New.
7255         * config/aarch64/predicates.md (aarch64_carry_operation): New.
7256         (aarch64_borrow_operation): New.
7258 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7260         * graphite-optimize-isl.c (optimize_isl): Print a different debug
7261         message when isl does not return a valid schedule.
7263 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
7265         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
7266         Remove comments from class declarations: they are already in the code
7267         close by the defs.
7269 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
7271         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
7272         codegen_error_p.
7273         (ternary_op_to_tree): Same.
7274         (unary_op_to_tree): Same.
7275         (nary_op_to_tree): Same.
7276         (gcc_expression_from_isl_expr_op): Same.
7277         (gcc_expression_from_isl_expression): Same.
7278         (graphite_create_new_loop): Same.
7279         (graphite_create_new_loop_guard): Same.
7280         (build_iv_mapping): Same.
7281         (graphite_create_new_guard): Same.
7282         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
7283         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
7285 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
7287         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
7288         instead of setting codegen_error to fail codegen.
7290 2016-01-28  Jason Merrill  <jason@redhat.com>
7292         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
7294 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
7296         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
7297         Remove CONST_INT_P check in CCMP cost calculation.
7299 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
7301         * config/aarch64/aarch64.c (generic_vector_cost):
7302         Set vec_permute_cost.
7303         (cortexa57_vector_cost): Likewise.
7304         (exynosm1_vector_cost): Likewise.
7305         (xgene1_vector_cost): Likewise.
7306         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
7307         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
7308         Add vec_permute_cost entry.
7310 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
7312         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
7313         immediate as %1.
7314         (add<mode>3_compare0): Likewise.
7315         (addsi3_compare0_uxtw): Likewise.
7316         (add<mode>3nr_compare0): Likewise.
7317         (compare_neg<mode>): Likewise.
7318         (<optab><mode>3): Likewise.
7320 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
7322         * tree-vect-stmts.c (vectorizable_comparison): Add
7323         NULL check for vectype.
7325 2016-01-28  Richard Biener  <rguenther@suse.de>
7327         PR tree-optimization/69466
7328         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
7329         Account for PHIs we couldn't duplicate.
7331 2016-01-28  Martin Liska  <mliska@suse.cz>
7333         PR pch/68758
7334         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
7335         instead of ENABLE_VALGRIND_CHECKING.
7337 2016-01-27  Richard Henderson  <rth@redhat.com>
7339         PR rtl-opt/69447
7340         * lra-remat.c (subreg_regs): New.
7341         (dump_candidates_and_remat_bb_data): Dump it.
7342         (operand_to_remat): Reject if operand in subreg_regs.
7343         (set_bb_regs): Collect subreg_regs.
7344         (lra_remat): Init and free subreg_regs.  Compute
7345         calculate_local_reg_remat_bb_data before create_cands.
7347 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
7349         PR target/68986
7350         * config/i386/i386.c (ix86_update_stack_boundary): Don't
7351         change stack_alignment_needed for __tls_get_addr call.
7353 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
7355         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
7357 2016-01-27  Jeff Law  <law@redhat.com>
7359         PR tree-optimization/68398
7360         PR tree-optimization/69196
7361         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
7362         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
7363         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7364         Only count PHIs in the last block in the path.  The others will
7365         const/copy propagate away.  Add heuristic to allow more irreducible
7366         subloops to be created when it is likely profitable to do so.
7368         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
7369         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
7370         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
7372 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
7374         PR lto/69254
7375         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
7376         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
7377         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
7378         * tree-streamer-in.c: Include asan.h.
7379         (streamer_get_builtin_tree): For builtins in sanitizer
7380         range call initialize_sanitizer_builtins and retry.
7382 2016-01-27  Ian Lance Taylor  <iant@google.com>
7384         * common.opt (fkeep-gc-roots-live): New undocumented option.
7385         * tree-ssa-loop-ivopts.c (add_candidate_1): If
7386         -fkeep-gc-roots-live, skip pointers.
7387         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
7388         NULL.
7390 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
7392         PR target/69512
7393         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
7394         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
7396 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
7398         PR target/68380
7399         * configure.ac: NetBSD provides SSP in its C library.
7400         * configure: Updated.
7402 2016-01-27  Richard Biener  <rguenther@suse.de>
7404         PR tree-optimization/69166
7405         * tree-vect-loop.c (vect_is_simple_reduction): Always check
7406         reduction code for commutativity / associativity.
7408 2016-01-27  Martin Jambor  <mjambor@suse.cz>
7410         PR tree-optimization/69355
7411         * tree-sra.c (analyze_access_subtree): Correct hole detection when
7412         total_scalarization fails.
7414 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
7416         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
7417         power9.
7419 2016-01-27  Christian Bruel  <christian.bruel@st.com>
7421         PR target/69245
7422         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
7423         Move arm_reset_previous_fndecl and set_target_option_current_node in
7424         the conditional part.  Call save_restore_target_globals.
7425         * config/arm/arm.c (arm_set_current_function):
7426         Refactor to better support #pragma target and attribute mix.
7427         Call save_restore_target_globals.
7428         * config/arm/arm-protos.h (save_restore_target_globals): New function.
7430 2016-01-27  Martin Liska  <mliska@suse.cz>
7432         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
7433         reference for an HSA kernel and its host function.
7435 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
7437         PR tree-optimization/69399
7438         * wide-int.h (wi::lrshift): For larger precisions, only
7439         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
7441 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
7443         * config/arc/predicates.md (proper_comparison_operator): Reject
7444         constant-constant comparison.
7446 2016-01-26  Tom de Vries  <tom@codesourcery.com>
7448         PR tree-optimization/69110
7449         * tree-data-ref.c (initialize_data_dependence_relation): Handle
7450         DR_NUM_DIMENSIONS == 0.
7452 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
7453             Sebastian Pop  <s.pop@samsung.com>
7455         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
7456         isl_ast_op_cond and isl_ast_op_select.
7457         (gcc_expression_from_isl_expr_op): Same.
7459 2016-01-26  Jason Merrill  <jason@redhat.com>
7461         PR c++/68782
7462         * tree.c (recompute_constructor_flags): Split out from
7463         build_constructor.
7464         (verify_constructor_flags): New.
7465         * tree.h: Declare them.
7467 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
7469         PR rtl-optimization/69217
7470         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
7471         are no TYPE_FIELDS set for the record type.
7473 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7475         PR target/68662
7476         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
7477         toc_label_name unconditionally.
7478         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
7479         SYMBOL_REF string.  Use toc_label_name instead of constructing
7480         LCTOC1.
7481         (rs6000_elf_declare_function_name): Use toc_label_name instead of
7482         constructing LCTOC1.
7484 2016-01-26  Martin Sebor  <msebor@redhat.com>
7486         PR other/69477
7487         * doc/extend.texi (Common Type Attributes): Move text that talks about
7488         attribute packed from attribute aligned to the section discussing
7489         the former attribute for clarity.
7491 2016-01-26  Richard Henderson  <rth@redhat.com>
7493         PR middle-end/60908
7494         * trans-mem.c (tm_region_init): Mark entry block as visited.
7496 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
7498         PR other/69006
7499         * diagnostic-show-locus.c (layout::print_source_line): Replace
7500         call to pp_newline with call to layout::print_newline.
7501         (layout::print_annotation_line): Likewise.
7502         (layout::move_to_column): Likewise.
7503         (layout::print_any_fixits): After printing any fixits, print a
7504         trailing newline, if necessary.
7505         (layout::print_newline): New method, resetting any colorization
7506         before a newline.
7507         (diagnostic_show_locus): Move the pp_newline to before the
7508         early bailout.  Remove dummy block enclosing the layout instance.
7509         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
7510         of pp_newline_and_flush with pp_flush.
7511         (diagnostic_append_note): Delete use of pp_newline.
7512         (diagnostic_append_note_at_rich_loc): Delete.
7513         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
7514         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
7515         when newline characters are added to the buffer.
7517 2016-01-26  Michael Matz  <matz@suse.de>
7519         * configure.ac (ac_cv_std_swap_in_utility): New test.
7520         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
7521         * configure: Regenerate.
7522         * config.in: Regenerate.
7524 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
7526         * config/arc/arc.md (cstoresi4): Force operand into register.
7527         (arcset<code>): Fix predicate.
7528         (arcsetltu): Likewise.
7529         (arcsetgeu): Likewise.
7530         (arcsethi): Likewise.
7531         (arcsetls): Likewise.
7533 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7535         PR tree-optimization/69483
7536         * gimple-fold.c (canonicalize_constructor_val): Return NULL
7537         if base has error_mark_node type.
7539 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
7541         PR target/68620
7542         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
7543         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
7544         New helper macros.
7545         (vget_lane_f16): Handle big-endian.
7546         (vgetq_lane_f16): Likewise.
7547         (vset_lane_f16): Likewise.
7548         (vsetq_lane_f16): Likewise.
7549         * config/arm/iterators.md (VQXMOV): Add V8HF.
7550         (VDQ): Add V4HF and V8HF.
7551         (V_reg): Handle V4HF and V8HF.
7552         (Is_float_mode): Likewise.
7553         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
7554         neon_vdup_nv8hf): New patterns.
7555         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
7556         Use VD_LANE iterator.
7557         (neon_vld1_dup<mode>): Use VQ2 iterator.
7559 2016-01-26  Nathan Sidwell  <nathan@acm.org>
7561         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
7562         (set_oacc_fn_attrib): Add IS_KERNEL arg.
7563         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
7564         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
7565         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
7566         (oacc_validate_dims): Add LEVEL arg, don't return level.
7567         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
7568         oacc_validate_dims.
7569         (execute_oacc_device_lower): Adjust, add more dump output.
7570         * tree-ssa-loop.c (gate_oacc_kernels): Use
7571         oacc_fn_attrib_kernels_p.
7572         * tree-parloops.c (create_parallel_loop): Adjust
7573         set_oacc_fn_attrib call.
7575 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7577         PR lto/69254
7578         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
7579         (append_compiler_options): Handle -fcilkplus.
7580         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
7582 2016-01-26  Nick Clifton  <nickc@redhat.com>
7584         PR target/66655
7585         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
7586         been marked as DECL_ONE_ONLY but we do not the means to make it
7587         so, then do not allow it to bind locally.
7589 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7591         PR lto/69254
7592         * opts.h (parse_sanitizer_options): New prototype.
7593         * opts.c (sanitizer_opts): New array.
7594         (parse_sanitizer_options): New function.
7595         (common_handle_option): Use parse_sanitizer_options.
7597 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
7599         PR target/68986
7600         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
7601         alignment adjustment to ...
7602         (ix86_update_stack_boundary): Here.  Don't over-align stack for
7603         __tls_get_addr.
7604         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
7605         if __tls_get_addr is called.
7607 2016-01-26  Christian Bruel  <christian.bruel@st.com>
7609         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
7611 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
7613         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
7615 2016-01-26  Richard Biener  <rguenther@suse.de>
7617         PR middle-end/69467
7618         * match.pd: Guard X * CST CMP 0 pattern with single_use.
7620 2016-01-26  Richard Biener  <rguenther@suse.de>
7622         PR tree-optimization/69452
7623         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
7624         (move_computations_dom_walker::before_dom_children): Rename
7625         to ...
7626         (move_computations_worker): This.
7627         (move_computations): Perform an RPO rather than a DOM walk.
7629 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
7631         PR target/69442
7632         * combine.c (combine_instructions): For REG_EQUAL note with
7633         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
7634         to the underlying register.
7635         * doc/rtl.texi (REG_EQUAL): Document the behavior of
7636         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
7638 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
7640         PR target/67896
7641         * config/aarch64/aarch64-builtins.c
7642         (aarch64_init_simd_builtin_types): Do not set structural
7643         equality to __Poly{8,16,64,128}_t types.
7645 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
7647         PR tree-optimization/69400
7648         * wide-int.cc (wi_pack): Take the precision as argument and
7649         perform canonicalization here rather than in the callers.
7650         Use the main loop to handle all full-width HWIs.  Add a
7651         zero HWI if in_len isn't a full result.
7652         (wi::divmod_internal): Update accordingly.
7653         (wi::mul_internal): Likewise.  Simplify.
7655 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
7656             Sebastian Pop  <s.pop@samsung.com>
7658         * graphite-poly.c (apply_poly_transforms): Simplify.
7659         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
7660         (print_isl_map): Same.
7661         (print_isl_union_map): Same.
7662         (print_isl_schedule): New.
7663         (debug_isl_schedule): New.
7664         * graphite-dependences.c (scop_get_reads): Do not call
7665         isl_union_map_add_map that is undocumented isl functionality.
7666         (scop_get_must_writes): Same.
7667         (scop_get_may_writes): Same.
7668         (scop_get_original_schedule): Remove.
7669         (scop_get_dependences): Do not call isl_union_map_compute_flow that
7670         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
7671         (compute_deps): Remove.
7672         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
7673         (debug_schedule_ast): New.
7674         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
7675         set_separate_option.
7676         (graphite_regenerate_ast_isl): Add dump.
7677         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
7678         from scop->transformed_schedule.
7679         (graphite_regenerate_ast_isl): Add more dump.
7680         * graphite-optimize-isl.c (optimize_isl): Set
7681         scop->transformed_schedule.  Check whether schedules are equal.
7682         (apply_poly_transforms): Move here.
7683         * graphite-poly.c (apply_poly_transforms): ... from here.
7684         (free_poly_bb): Static.
7685         (free_scop): Static.
7686         (pbb_number_of_iterations_at_time): Remove.
7687         (print_isl_ast): New.
7688         (debug_isl_ast): New.
7689         (debug_scop_pbb): New.
7690         * graphite-scop-detection.c (print_edge): Move.
7691         (print_sese): Move.
7692         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
7693         (build_scop_scattering): Remove.
7694         (create_pw_aff_from_tree): Assert instead of bailing out.
7695         (add_condition_to_pbb): Remove unused code, do not fail.
7696         (add_conditions_to_domain): Same.
7697         (add_conditions_to_constraints): Remove.
7698         (build_scop_context): New.
7699         (add_iter_domain_dimension): New.
7700         (build_iteration_domains): Initialize pbb->iterators.
7701         Call add_conditions_to_domain.
7702         (nested_in): New.
7703         (loop_at): New.
7704         (index_outermost_in_loop): New.
7705         (index_pbb_in_loop): New.
7706         (outermost_pbb_in): New.
7707         (add_in_sequence): New.
7708         (add_outer_projection): New.
7709         (outer_projection_mupa): New.
7710         (add_loop_schedule): New.
7711         (build_schedule_pbb): New.
7712         (build_schedule_loop): New.
7713         (embed_in_surrounding_loops): New.
7714         (build_schedule_loop_nest): New.
7715         (build_original_schedule): New.
7716         (build_poly_scop): Call build_original_schedule.
7717         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
7718         (free_poly_dr): Remove.
7719         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
7720         (free_poly_bb): Remove.
7721         (debug_loop_vec): Remove.
7722         (print_isl_ast): Declare.
7723         (debug_isl_ast): Declare.
7724         (scop_do_interchange): Remove.
7725         (scop_do_strip_mine): Remove.
7726         (scop_do_block): Remove.
7727         (flatten_all_loops): Remove.
7728         (optimize_isl): Remove.
7729         (pbb_number_of_iterations_at_time): Remove.
7730         (debug_scop_pbb): Declare.
7731         (print_schedule_ast): Declare.
7732         (debug_schedule_ast): Declare.
7733         (struct scop): Remove schedule.  Add original_schedule,
7734         transformed_schedule.
7735         (free_gimple_poly_bb): Remove.
7736         (print_generated_program): Remove.
7737         (debug_generated_program): Remove.
7738         (unify_scattering_dimensions): Remove.
7739         * sese.c (print_edge): ... here.
7740         (print_sese): ... here.
7741         (debug_edge): ... here.
7742         (debug_sese): ... here.
7743         * sese.h (print_edge): Declare.
7744         (print_sese): Declare.
7745         (dump_edge): Declare.
7746         (dump_sese): Declare.
7748 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
7749             Sebastian Pop  <s.pop@samsung.com>
7751         * Makefile.in: Set ISLVER in site.exp.
7753 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
7755         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
7756         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
7757         through DECL_VALUE_EXPR for expansion.
7759 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7761         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
7762         the frame info after reload completed.
7764 2016-01-25  Jeff Law  <law@redhat.com>
7766         PR tree-optimization/69196
7767         PR tree-optimization/68398
7768         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
7769         tree-ssa-threadupdate.c.
7770         (determine_bb_domination_status): Prototype
7771         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
7772         (determine_bb_domination_status): No longer static.
7773         (valid_jump_thread_path): Remove code to detect characteristics
7774         of the jump thread path not associated with correctness.
7775         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
7776         Correct test for thread path length.  Count PHIs for real operands as
7777         statements that need to be copied.  Do not count ASSERT_EXPRs.
7778         Look at all the blocks in the thread path.  Compute and selectively
7779         filter thread paths based on threading through the latch, threading
7780         a multiway branch or crossing a multiway branch.
7782 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
7784         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
7785         decl with __attribute__ ((unused)) annotation.
7787 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
7789         PR target/69421
7790         * tree-vect-stmts.c (vectorizable_condition): Check vectype
7791         of operands is compatible with a statement vectype.
7793 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
7795         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
7796         improve wording for mixed storage order support.
7798 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
7800         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
7801         (vcvt_u64_f64): Likewise.
7802         (vcvta_s64_f64): Likewise.
7803         (vcvta_u64_f64): Likewise.
7804         (vcvtm_s64_f64): Likewise.
7805         (vcvtm_u64_f64): Likewise.
7806         (vcvtn_s64_f64): Likewise.
7807         (vcvtn_u64_f64): Likewise.
7808         (vcvtp_s64_f64): Likewise.
7809         (vcvtp_u64_f64): Likewise.
7811 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
7813         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
7814         (arc_init): Check validity mll64 option.
7815         (arc_save_restore): Use double load/store instruction.
7816         (arc_expand_movmem): Likewise.
7817         (arc_split_move): Don't split if we have double load/store
7818         instructions. Returns a boolean.
7819         (arc_process_double_reg_moves): Change function to return boolean
7820         instead of a sequence of instructions.
7821         (arc_dwarf_register_span): New function.
7822         * config/arc/arc-protos.h (arc_split_move): Change prototype.
7823         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
7824         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
7825         (*movdf_insn): Likewise.
7826         * config/arc/arc.opt (mll64): New option.
7827         * config/arc/predicates.md (even_register_operand): New predicate.
7828         * doc/invoke.texi (ARC Options): Add mll64 documentation.
7830 2016-01-25  Richard Biener  <rguenther@suse.de>
7832         PR lto/69393
7833         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
7834         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
7835         DECL_NAMELESS.
7836         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
7838 2016-01-25  Richard Biener  <rguenther@suse.de>
7840         PR tree-optimization/69376
7841         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
7842         flag.
7843         (VN_INFO_ANTI_RANGE_P): New inline.
7844         (VN_INFO_RANGE_TYPE): Likewise.
7845         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
7846         SSA_NAME_ANTI_RANGE_P.
7847         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
7848         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
7849         Properly query VN_INFO_RANGE_TYPE.
7851 2016-01-25  Nick Clifton  <nickc@redhat.com>
7853         PR target/66655
7854         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
7856 2016-01-23  Tom de Vries  <tom@codesourcery.com>
7858         PR tree-optimization/69426
7859         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
7860         removed clobber.
7862 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
7864         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
7865         "the the" with "the" in the comments.
7866         * ipa-devirt.c (build_type_inheritance_graph,
7867         update_type_inheritance_graph): Likewise.
7868         * tree.c (build_function_type_list_1): Likewise.
7869         * cfgloopmanip.c (scale_loop_profile): Likewise.
7870         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
7871         * gimple-ssa-split-paths.c
7872         (find_block_to_duplicate_for_splitting_paths): Likewise.
7873         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
7874         * expr.c (convert_move): Likewise.
7875         * var-tracking.c (vt_stack_adjustments): Likewise.
7876         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
7877         * tree-vrp.c (test_for_singularity): Likewise.
7879         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
7880         directly instead of building a temporary tree.
7882         PR bootstrap/69434
7883         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
7884         remove <algorithm> include.
7886 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7888         PR target/69432
7889         * config/i386/i386.c: Include dojump.h.
7890         (expand_small_movmem_or_setmem,
7891         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
7892         fixes.
7893         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
7894         if dynamic_check != -1.
7896 2016-01-21  Jeff Law  <law@redhat.com>
7898         PR middle-end/69347
7899         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
7900         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
7901         into dominated_by_p.
7902         (cprop_into_successor_phis): Avoid unnecessary tests.
7904 2016-01-22  Richard Henderson  <rth@redhat.com>
7906         PR target/69416
7907         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
7908         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
7910 2016-01-22  Michael Matz  <matz@suse.de>
7912         * system.h (string, algorithm): Include only conditionally.
7913         (new): Include always under C++.
7914         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
7915         * final.c (toplevel): Ditto.
7916         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
7917         * genconditions.c (write_header): Make gencondmd.c define
7918         INCLUDE_STRING.
7919         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
7921         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
7922         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
7924 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7926         PR target/68674
7927         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
7929 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7931         PR target/69403
7932         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
7933         define_insn_and_split.  Ensure operands[1] and operands[0] do not
7934         get assigned the same register.
7936 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
7938         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
7940 2016-01-22  Christian Bruel  <christian.bruel@st.com>
7942         * config/arm/arm-c.c (arm_pragma_target_parse):
7943         Remove warn_builtin_macro_redefined overwrite.
7945 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7947         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
7948         flag_non_call_exceptions compatibility.
7950 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
7952         PR debug/66668
7953         * dwarf2out.c (add_child_die_after): New function.
7954         (dwarf_qual_info_t): New type.
7955         (dwarf_qual_info): New variable.
7956         (qualified_die_p): New function.
7957         (modified_type_die): For -fdebug-types-section, ensure
7958         canonical order of qualifiers.  Put qualified DIEs adjacent
7959         to the corresponding non-qualified type DIE and search there
7960         for existing qualified DIEs.
7962 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
7964         * doc/extend.texi (scalar_storage_order type attribute): Document
7965         restriction on type punning and aliasing, and remove future tense.
7967 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
7969         PR target/69252
7970         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
7971         first stage.
7973 2016-01-21  Jeff Law  <law@redhat.com>
7975         PR middle-end/69347
7976         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
7977         useless call to record_temporary_equivalences.
7978         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
7979         allocate 10 slots in the bb_path vector and let it grow as needed.
7980         (fsm_find_control_statement_thread_paths): Similarly for the next_path
7981         vector.
7983 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
7985         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
7986         Detangle.
7987         * configure: Regenerate.
7989 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
7991         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
7992         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
7994 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
7996         PR middle-end/66178
7997         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
7998         drop EXPAND_INITIALIZER.
7999         * rtl.h (contains_symbolic_reference_p): Declare.
8000         * rtlanal.c (contains_symbolic_reference_p): New function.
8001         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
8002         a subtraction into a NOT if symbolic constants are involved.
8004 2016-01-21  Anton Blanchard  <anton@samba.org>
8005             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8007         PR target/63354
8008         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
8009         #define.
8010         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
8011         function.
8013 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
8015         * config/microblaze/microblaze.c
8016         (get_branch_target): New.
8017         (insert_wic_for_ilb_runout): New.
8018         (insert_wic): New.
8019         (microblaze_machine_dependent_reorg): New.
8020         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
8021         * config/microblaze/microblaze.md
8022         (UNSPEC_IPREFETCH): Define.
8023         (iprefetch): New pattern
8024         * config/microblaze/microblaze.opt
8025         (mxl-prefetch): New flag.
8027 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
8029         * config/microblaze/microblaze.h
8030         (FIXED_REGISTERS): Update in macro.
8031         (CALL_USED_REGISTERS): Update in macro.
8033 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
8035         PR rtl-optimization/68920
8036         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
8037         moves.
8039 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
8041         PR rtl-optimization/68990
8042         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
8043         pseudo instead of inheritance ones.
8045 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8046             Nick Clifton  <nickc@redhat.com>
8048         PR target/69129
8049         PR target/69012
8050         * config/mips/mips.c (mips_compute_frame_info): Initialise
8051         args_size and hard_frame_pointer_offset fields of the frame
8052         structure before calling mips_global_pointer.
8054 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
8056         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
8057         label reference.
8058         * configure: Regenerate.
8060 2016-01-21  Richard Biener  <rguenther@suse.de>
8062         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
8064 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
8066         * config/s390/s390.c (s390_asm_declare_function_size): Add code
8067         to actually emit the .size directive.
8069 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
8070              Jakub Jelinek  <jakub@redhat.com>
8072         PR target/69187
8073         PR target/65624
8074         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
8075         args array size by one to avoid buffer overflow.
8077 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
8079         * config/s390/s390.md (pool_section_start): Use switch_to_section
8080         to select proper read-only data section instead of hardcoding
8081         .rodata.
8082         (pool_section_end): Use switch_to_section to match the above.
8084 2016-01-21  Richard Biener  <rguenther@suse.de>
8086         PR tree-optimization/69378
8087         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
8088         (set_ssa_val_to): Use it for dominance checks taking into
8089         account not executable edges.
8091 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
8093         PR c++/69355
8094         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
8095         for bitsize instead of GET_MODE_PRECISION (mode).
8097 2016-01-20  Martin Sebor  <msebor@redhat.com>
8099         PR c/52291
8100         * extend.texi (__sync Builtins): Clarify the semantics of
8101         __sync_fetch_and_OP built-ins on pointers.
8102         (__atomic Builtins): Same.
8104 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8105             Sebastian Pop  <s.pop@samsung.com>
8107         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
8108         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
8109         (is_valid_rename): Same.
8110         (translate_isl_ast_to_gimple::get_rename): Same.
8111         (translate_isl_ast_to_gimple::rename_all_uses): Same.
8112         (translate_isl_ast_to_gimple::rename_uses): Same.
8113         (get_new_name): Check for close_phi nodes.
8114         (copy_loop_phi_args): Use phi_node_kind.
8115         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
8116         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
8118 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8119             Sebastian Pop  <s.pop@samsung.com>
8121         Revert commit r229783.
8122         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
8123         Remove use of parameter_rename_map.
8124         (copy_def): Remove.
8125         (copy_internal_parameters): Remove.
8126         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
8127         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
8128         (free_sese_info): Do not free parameter_rename_map.
8129         (set_rename): Do not use parameter_rename_map.
8130         (rename_uses): Update call to set_rename.
8131         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
8132         * sese.h (parameter_rename_map_t): Remove.
8133         (struct sese_info_t): Remove field parameter_rename_map.
8135 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8136             Sebastian Pop  <s.pop@samsung.com>
8138         * graphite-isl-ast-to-gimple.c: Fix comment.
8139         * graphite-scop-detection.c (defined_in_loop_p): New.
8140         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
8141         names defined in loop.
8143 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8144             Sebastian Pop  <s.pop@samsung.com>
8146         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
8147         Discard unstructured if-then-else regions.
8149 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8150             Sebastian Pop  <s.pop@samsung.com>
8152         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
8153         (cleanup_loop_iter_dom): Remove.
8154         (build_loop_iteration_domains): Remove.
8155         (build_scop_context): Remove.
8156         (build_scop_iteration_domain): Remove.
8157         (add_loop_constraints): New.
8158         (build_iteration_domains): New.
8159         (build_poly_scop): Call build_iteration_domains.
8161 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8162             Sebastian Pop  <s.pop@samsung.com>
8164         * graphite-scop-detection.c
8165         (scop_detection::harmful_loop_in_region): Free dom and loops.
8166         (scop_detection::loop_body_is_valid_scop): Free bbs.
8168 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8169             Sebastian Pop  <s.pop@samsung.com>
8171         * graphite-scop-detection.c (record_loop_in_sese): New.
8172         (gather_bbs::before_dom_children): Call record_loop_in_sese.
8173         (build_scops): Remove call to build_sese_loop_nests.
8174         * sese.c (sese_record_loop): Remove.
8175         (build_sese_loop_nests): Remove.
8176         (new_sese_info): Remove region->loops.
8177         (free_sese_info): Same.
8178         * sese.h (sese_contains_loop): Same.
8179         (build_sese_loop_nests): Remove.
8180         (sese_contains_loop): Remove.
8182 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8183             Sebastian Pop  <s.pop@samsung.com>
8185         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
8186         loop_is_valid_in_scop.
8187         (scop_detection::harmful_stmt_in_region): Renamed
8188         harmful_loop_in_region.
8189         Call loop_is_valid_in_scop.
8191 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8192             Sebastian Pop  <s.pop@samsung.com>
8194         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
8195         isl_ast_node_mark.
8197 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8198             Sebastian Pop  <s.pop@samsung.com>
8200         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
8201         * graphite.h (struct poly_bb): Remove field is_reduction.
8202         (PBB_IS_REDUCTION): Remove.
8204 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
8205             Sebastian Pop  <s.pop@samsung.com>
8207         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
8208         (add_pdr_constraints): Same.
8209         (scop_get_reads): Same.
8210         (scop_get_must_writes): Same.
8211         (scop_get_may_writes): Same.
8212         (scop_get_original_schedule): Same.
8213         (extend_schedule): Same.
8214         (apply_schedule_on_deps): Same.
8215         (carries_deps): Same.
8216         (compute_deps): Same.
8217         (scop_get_dependences): Same.
8218         * graphite-isl-ast-to-gimple.c
8219         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
8220         * graphite-optimize-isl.c (get_schedule_for_band): Same.
8221         (get_schedule_for_band_list): Same.
8222         (get_schedule_map): Same.
8223         (apply_schedule_map_to_scop): Same.
8224         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
8225         (build_loop_iteration_domains): Same.
8226         (add_condition_to_pbb): Same.
8227         (add_param_constraints): Same.
8228         (pdr_add_memory_accesses): Same.
8229         (pdr_add_data_dimensions): Same.
8231 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
8233         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
8234         requirements.
8236 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
8238         * common.opt (feliminate-dwarf2-dups): Replace references to
8239         "DWARF 2" with just "DWARF".
8240         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
8241         * doc/extend.texi: Likewise.
8242         * doc/cpp.texi: Likewise.
8243         * doc/invoke.texi: Likewise.
8244         (Option Summary): Add -gdwarf to list of Debugging Options.
8245         (Debugging Options): Document -gdwarf.
8246         * doc/contrib.texi: Spell "DWARF" like that.
8248 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
8250         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
8251         warning.  Fix up formatting.
8253         PR middle-end/67653
8254         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
8255         attempt to mark memory input operand addressable and
8256         call prepare_gimple_addressable in that case.  Don't adjust
8257         input_location for diagnostics, use error_at instead.
8259 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
8261         * config/rs6000/ppc-auxv.h: New file.
8262         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
8263         (cpu_is): Likewise.
8264         (cpu_supports): Likewise.
8265         * config/rs6000/rs6000.c: include "ppc-auxv.h".
8266         (cpu_is_info): New variable.
8267         (cpu_supports_info): Likewise.
8268         (tcb_verification_symbol): Likewise.
8269         (cpu_builtin_p): Likewise.
8270         (cpu_expand_builtin): New function.
8271         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
8272         (rs6000_init_builtins): Likewise.
8273         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
8274         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
8275         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
8276         * configure: Regenerate.
8277         * config.in: Likewise.
8278         * doc/extend.texi (PowerPC Built-in Functions): Document
8279         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
8281 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
8283         PR target/68609
8284         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
8285         domain check.
8286         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
8287         for V4SFmode.
8289 2016-01-20  Richard Henderson  <rth@redhat.com>
8291         PR bootstrap/69343
8292         PR bootstrap/69339
8293         PR tree-opt/68964
8294         Revert:
8295         * tree.c (tm_define_builtin): New.
8296         (find_tm_vector_type): New.
8297         (build_tm_vector_builtins): New.
8298         (build_common_builtin_nodes): Call it.
8300 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
8302         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
8303         (arm_fp_ok): Likewise.
8304         (arm_fp): Likewise.
8305         (arm_crypto): Likewise.
8307 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
8308             Richard Biener  <rguenther@suse.de>
8310         PR tree-optimization/69328
8311         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
8312         vectors have same number of elements.
8313         (vectorizable_condition): Fix masked version recognition.
8315 2016-01-20  Richard Biener  <rguenther@suse.de>
8317         PR tree-optimization/69345
8318         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
8319         (VN_INFO_PTR_INFO): Likewise.
8320         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
8321         info when it is equal between non-dominating SSA names.
8322         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
8323         Make sure to look at original SSA infos.
8325 2016-01-20  Jeff Law  <law@redhat.com>
8327         PR target/25114
8328         * config/m68k/predicates.md (pow2_m1_operand): New predicate
8329         extracted from ...
8330         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
8331         (pc_or_label_operand): New predicate.
8332         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
8333         tests for small integers that are 2^n - 1.
8335 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
8337         * doc/invoke.texi (Options Summary): Add '.' after @xref.
8339 2016-01-19  Jeff Law  <law@redhat.com>
8341         PR middle-end/69347
8342         * tree-ssa-threadbackwards.c
8343         (fsm_find_control_statement_thread_paths): Do not try to lookup
8344         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
8346 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
8348         * doc/lto.texi: Remove text that says only Gold has linker plugin
8349         support.
8351 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
8353         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
8354         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
8355         the DIE accordingly.
8356         (modified_type_die): Add REVERSE parameter and pass it recursively,
8357         as well as to base_type_die.  Adjust presence check accordingly.
8358         (base_type_for_mode): Adjust call to modified_type_die.
8359         (add_type_attribute): Add REVERSE parameter and pass it to
8360         modified_type_die.
8361         (generic_parameter_die): Adjust call to add_type_attribute.
8362         (add_scalar_info): Likewise.
8363         (add_subscript_info): Likewise.
8364         (gen_array_type_die): Likewise.
8365         (gen_descr_array_type_die): Likewise.
8366         (gen_entry_point_die): Likewise.
8367         (gen_enumeration_type_die): Likewise.
8368         (gen_formal_parameter_die): Likewise.
8369         (gen_subprogram_die): Likewise.
8370         (gen_variable_die ): Likewise.
8371         (gen_const_die): Likewise.
8372         (gen_field_die): Likewise.
8373         (gen_pointer_type_die): Likewise.
8374         (gen_reference_type_die): Likewise.
8375         (gen_ptr_to_mbr_type_die): Likewise.
8376         (gen_inheritance_die): Likewise.
8377         (gen_subroutine_type_die): Likewise.
8378         (gen_typedef_die): Likewise.
8379         (force_type_die): Adjust call to modified_type_die.
8381 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
8383         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
8384         flow throughout the file.  Fix broken link to Objective-C 2.0
8385         documentation.
8386         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
8387         errors.
8389 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8391         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
8393 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8395         PR ipa/66223
8396         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
8397         (maybe_record_node): Record cxa_pure_virtual as the only possible
8398         target if there are not ohter candidates.
8399         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
8401 2016-01-19  Richard Biener  <rguenther@suse.de>
8403         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
8404         (get_memory_order): Likewise.
8406 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
8408         * tree-vect-stmts.c (vectorizable_store): Check
8409         rhs vectype.
8411 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
8413         PR jit/68446
8414         * gcc.c (driver::decode_argv): Add call to
8415         init_opts_obstack before init_options_struct.
8416         * opts.c (init_opts_obstack): Remove idempotency.
8417         (init_options_struct): Replace call to init_opts_obstack
8418         with a gcc_assert to verify that it has already been called.
8419         * toplev.c (toplev::main): Add call to init_opts_obstack before
8420         calls to init_options_struct.
8421         (toplev::finalize): Move cleanup of opts_obstack next to
8422         cleanup of save_decoded_options, clearing the latter, and
8423         save_decoded_options_count.
8425 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8427         PR target/69135
8428         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
8429         attribute to unconditional.  Remove %? from output template.
8431 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8432             Jiong Wang  <jiong.wang@arm.com>
8434         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
8435         generated from different expand order.
8437 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8439         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
8440         Add support for CCMP costing.
8442 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8444         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
8445         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
8446         (fccmpe<mode>): Likewise.
8447         (fcmp): Rename to fcmp and globalize pattern.
8448         (fcmpe): Likewise.
8449         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
8450         (aarch64_gen_ccmp_next): Add FP support.
8452 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
8454         * target.def (gen_ccmp_first): Update documentation.
8455         (gen_ccmp_next): Likewise.
8456         * doc/tm.texi (gen_ccmp_first): Update documentation.
8457         (gen_ccmp_next): Likewise.
8458         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
8459         expand_ccmp_expr_1.  Improve comments.
8460         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
8461         (ccmp_ior<mode>): Remove pattern.
8462         (cmp<mode>): Remove expand.
8463         (cmp): Globalize pattern.
8464         (cstorecc4): Use cc_register.
8465         (mov<mode>cc): Remove ccmp_cc_register check.
8466         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
8467         Simplify after removal of CC_DNE/* modes.
8468         (aarch64_ccmp_mode_to_code): Remove.
8469         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
8470         In 'k' case use integer as condition.
8471         (aarch64_nzcv_codes): Remove inverted cases.
8472         (aarch64_code_to_ccmode): Remove.
8473         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
8474         comparison with CC register to be used in folowing CCMP/branch/CSEL.
8475         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
8476         pattern.  Return the comparison with CC register.  Invert conditions
8477         when bitcode is OR.
8478         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
8479         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
8481 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8483         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
8484         instrumented_version.
8486 2016-01-19  Richard Biener  <rguenther@suse.de>
8488         PR tree-optimization/69336
8489         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
8490         handled components with get_ref_base_and_extent.
8491         (equal_mem_array_ref_p): Adjust.
8493 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
8495         PR debug/65779
8496         * shrink-wrap.c: Include valtrack.h.
8497         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
8498         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
8499         in between insn and where it will be moved to.  Call
8500         dead_debug_insert_temp.
8501         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
8502         first and dead_debug_local_finish at the end.
8503         For uses and defs bitmap, handle all regs in between REGNO and
8504         END_REGNO, not just the first one.
8506 2016-01-19  Richard Biener  <rguenther@suse.de>
8508         PR tree-optimization/69352
8509         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
8510         (equal_mem_array_ref_p): Constrain size and max size properly.
8511         Compare the reverse flag.
8513 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
8515         * ira.c (ira): Update regstat data if we deleted insns.
8517 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
8519         PR rtl-optimization/68955
8520         PR rtl-optimization/64557
8521         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
8522         here.  Fix up formatting.
8523         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
8525 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8527         PR lto/69133
8528         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
8529         assume that the node has body.
8530         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
8531         check.
8533 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8535         * lto-streamer-out.c (lto_output): Do not stream instrumentation
8536         thunks.
8538 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
8540         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
8541         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
8543 2016-01-19  Martin Jambor  <mjambor@suse.cz>
8544             Martin Liska  <mliska@suse.cz>
8545             Michael Matz  <matz@suse.de>
8547         * Makefile.in (OBJS): Add new source files.
8548         (GTFILES): Add hsa.c.
8549         * common.opt (disable_hsa): New variable.
8550         (-Whsa): New warning.
8551         * config.in (ENABLE_HSA): New.
8552         * configure.ac: Treat hsa differently from other accelerators.
8553         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
8554         $enable_offloading.
8555         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
8556         * doc/install.texi (Configuration): Document --with-hsa-runtime,
8557         --with-hsa-runtime-include, --with-hsa-runtime-lib and
8558         --with-hsa-kmt-lib.
8559         * doc/invoke.texi (-Whsa): Document.
8560         (hsa-gen-debug-stores): Likewise.
8561         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
8562         to invoke offload compiler for hsa acclerator.
8563         * opts.c (common_handle_option): Determine whether HSA offloading
8564         should be performed.
8565         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
8566         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
8567         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
8568         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
8569         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
8570         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
8571         GF_OMP_FOR_KIND_GRID_LOOP.
8572         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
8573         (pp_gimple_stmt_1): Likewise.
8574         * gimple-walk.c (walk_gimple_stmt): Likewise.
8575         * gimple.c (gimple_build_omp_grid_body): New function.
8576         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
8577         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
8578         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
8579         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
8580         GF_OMP_TEAMS_GRID_PHONY.
8581         (gimple_statement_omp_single_layout): Updated comments.
8582         (gimple_build_omp_grid_body): New function.
8583         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
8584         (gimple_omp_for_grid_phony): New function.
8585         (gimple_omp_for_set_grid_phony): Likewise.
8586         (gimple_omp_parallel_grid_phony): Likewise.
8587         (gimple_omp_parallel_set_grid_phony): Likewise.
8588         (gimple_omp_teams_grid_phony): Likewise.
8589         (gimple_omp_teams_set_grid_phony): Likewise.
8590         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
8591         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
8592         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
8593         (BUILT_IN_GOMP_TARGET): Updated type.
8594         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
8595         (adjust_for_condition): New function.
8596         (get_omp_for_step_from_incr): Likewise.
8597         (extract_omp_for_data): Moved parts to adjust_for_condition and
8598         get_omp_for_step_from_incr.
8599         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
8600         (fixup_child_record_type): Bail out if receiver_decl is NULL.
8601         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
8602         (scan_omp_parallel): Do not create child functions for phony
8603         constructs.
8604         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
8605         (scan_omp_1_op): Checking assert we are not remapping to
8606         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
8607         (parallel_needs_hsa_kernel_p): New function.
8608         (expand_parallel_call): Register apprpriate parallel child
8609         functions as HSA kernels.
8610         (grid_launch_attributes_trees): New type.
8611         (grid_attr_trees): New variable.
8612         (grid_create_kernel_launch_attr_types): New function.
8613         (grid_insert_store_range_dim): Likewise.
8614         (grid_get_kernel_launch_attributes): Likewise.
8615         (get_target_argument_identifier_1): Likewise.
8616         (get_target_argument_identifier): Likewise.
8617         (get_target_argument_value): Likewise.
8618         (push_target_argument_according_to_value): Likewise.
8619         (get_target_arguments): Likewise.
8620         (expand_omp_target): Call get_target_arguments instead of looking
8621         up for teams and thread limit.
8622         (grid_expand_omp_for_loop): New function.
8623         (grid_arg_decl_map): New type.
8624         (grid_remap_kernel_arg_accesses): New function.
8625         (grid_expand_target_kernel_body): New function.
8626         (expand_omp): Call it.
8627         (lower_omp_for): Do not emit phony constructs.
8628         (lower_omp_taskreg): Do not emit phony constructs but create for them
8629         a temporary variable receiver_decl.
8630         (lower_omp_taskreg): Do not emit phony constructs.
8631         (lower_omp_teams): Likewise.
8632         (lower_omp_grid_body): New function.
8633         (lower_omp_1): Call it.
8634         (grid_reg_assignment_to_local_var_p): New function.
8635         (grid_seq_only_contains_local_assignments): Likewise.
8636         (grid_find_single_omp_among_assignments_1): Likewise.
8637         (grid_find_single_omp_among_assignments): Likewise.
8638         (grid_find_ungridifiable_statement): Likewise.
8639         (grid_target_follows_gridifiable_pattern): Likewise.
8640         (grid_remap_prebody_decls): Likewise.
8641         (grid_copy_leading_local_assignments): Likewise.
8642         (grid_process_kernel_body_copy): Likewise.
8643         (grid_attempt_target_gridification): Likewise.
8644         (grid_gridify_all_targets_stmt): Likewise.
8645         (grid_gridify_all_targets): Likewise.
8646         (execute_lower_omp): Call grid_gridify_all_targets.
8647         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
8648         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
8649         (tree_omp_clause): Added union field dimension.
8650         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
8651         * tree.c (omp_clause_num_ops): Added number of arguments of
8652         OMP_CLAUSE__GRIDDIM_.
8653         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
8654         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
8655         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
8656         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
8657         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
8658         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
8659         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
8660         * tree-pass.h (make_pass_gen_hsail): Declare.
8661         (make_pass_ipa_hsa): Likewise.
8662         * ipa-hsa.c: New file.
8663         * lto-section-in.c (lto_section_name): Add hsa section name.
8664         * lto-streamer.h (lto_section_type): Add hsa section.
8665         * timevar.def (TV_IPA_HSA): New.
8666         * hsa-brig-format.h: New file.
8667         * hsa-brig.c: New file.
8668         * hsa-dump.c: Likewise.
8669         * hsa-gen.c: Likewise.
8670         * hsa.c: Likewise.
8671         * hsa.h: Likewise.
8672         * toplev.c (compile_file): Call hsa_output_brig.
8673         * hsa-regalloc.c: New file.
8675 2016-01-18  Jeff Law  <law@redhat.com>
8677         PR tree-optimization/69320
8678         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
8679         ranged object, do nothing if the RHS constant is not [0..1].
8680         (optimize_stmt): Comparing a boolean ranged object against a
8681         constant outside [0..1] results in a compile-time constant.
8683         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
8684         test.
8686 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
8688         * doc/invoke.texi (Invoking GCC): Add new section to menu.
8689         (Option Summary): Update to reflect new section and moved options.
8690         (C++ Dialect Options): Move -fstats to new section.
8691         (Debugging Options): Move all dump, statistics, and other GCC
8692         developer options to new section.  Rewrite section introduction
8693         and re-order remaining options to put the more basic ones first.
8694         (Optimization Options): Move -fira-verbose and -flto-report* to
8695         new section.
8696         (Developer Options): New section incorporating moved options.
8697         * doc/cppopts.texi (-dM): Update cross-reference.
8699 2016-01-18  Richard Henderson  <rth@redhat.com>
8701         PR target/69176
8702         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
8703         operands to pseudo only if CSE is expected.  Split long immediate
8704         operands only after reload, and for the stack pointer.
8705         (*add<GPI>3_pluslong): Remove.
8706         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
8707         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
8708         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
8709         (*add<GPI>3 peepholes): New.
8710         (*add<GPI>3 splitters): New.
8711         * config/aarch64/constraints.md (Upl): New.
8712         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
8714 2016-01-18  Richard Biener  <rguenther@suse.de>
8716         PR tree-optimization/69297
8717         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
8718         stmt at most once.
8719         (vect_bb_vectorization_profitable_p): Clear visited flag again.
8721 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
8723         PR middle-end/68542
8724         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
8725         of mixind vector and scalar types.
8726         (fold_relational_const): Add handling of vector
8727         comparison with boolean result.
8728         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
8729         comparison of vector operands with boolean result for EQ/NE only.
8730         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
8731         (verify_gimple_cond): Likewise.
8732         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
8733         valid type of VAL.
8735 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
8737         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
8738         !TARGET_OCTEON.
8740 2016-01-18  Richard Biener  <rguenther@suse.de>
8742         PR middle-end/69308
8743         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
8745 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8747         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
8749 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8751         * omp-low.c (set_oacc_fn_attrib): Make extern.
8752         * omp-low.h (set_oacc_fn_attrib): Declare.
8753         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
8754         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
8755         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
8756         Add and handle function parameter oacc_kernels_p.
8757         (find_reduc_addr, get_omp_data_i_param): New function.
8758         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
8759         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
8760         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
8761         Calculate dominance info.  Skip loops that are not in a kernels region
8762         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
8763         (pass_parallelize_loops::execute): Call parallelize_loops with
8764         oacc_kernels_p argument.
8765         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
8766         New member function.
8767         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
8768         * passes.def: Add argument to pass_parallelize_loops instantation.
8770 2016-01-18  Tom de Vries  <tom@codesourcery.com>
8772         * tree-parloops.c (pass_parallelize_loops::execute): Allow
8773         pass_parallelize_loops to be run outside the loop pipeline.
8775 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8777         * tree-scalar-evolution.c (follow_copies_to_constant): New.
8778         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
8780 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8782         PR target/63679
8783         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
8784         using get_ref_base_and_extent.
8785         (equal_mem_array_ref_p): New.
8786         (hashable_expr_equal_p): Add call to previous.
8788 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
8790         PR target/63679
8791         * tree-sra.c (disqualified_constants, constant_decl_p): New.
8792         (sra_initialize): Allocate disqualified_constants.
8793         (sra_deinitialize): Free disqualified_constants.
8794         (disqualify_candidate): Update disqualified_constants when appropriate.
8795         (create_access): Scan for constant-pool entries as we go along.
8796         (scalarizable_type_p): Add check against type_contains_placeholder_p.
8797         (maybe_add_sra_candidate): Allow constant-pool entries.
8798         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
8799         (initialize_constant_pool_replacements): New.
8800         (sra_modify_assign): Avoid mangling assignments created by previous,
8801         and don't generate writes into constant pool.
8802         (sra_modify_function_body): Call initialize_constant_pool_replacements.
8804 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
8806         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
8807         andnot instruction.
8808         (scalar_chain::convert_op): Likewise.
8809         * config/i386/i386.md (*andndi3_doubleword): New.
8811 2016-01-18  Richard Biener  <rguenther@suse.de>
8813         PR tree-optimization/69170
8814         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
8815         building a vector from scalar results of a pattern stmt.
8817 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
8819         * haifa-sched.c (autopref_multipass_init): Work around
8820         -Wmaybe-uninitialized warning.
8822 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8824         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
8825         against the constant 0.
8827 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8829         PR tree-optimization/68799
8830         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
8831         look up phi candidates in the statement-candidate map.
8832         (phi_add_costs): Likewise.
8833         (record_phi_increments): Likewise.
8834         (phi_incr_cost): Likewise.
8835         (ncd_with_phi): Likewise.
8836         (all_phi_incrs_profitable): Likewise.
8838 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
8840         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
8841         -Wmaybe-uninitialized warning.
8843 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
8845         * doc/invoke.texi (Invoking GCC): Add new section to menu.
8846         (Option Summary): Update to reflect new section and moved options.
8847         (C++ Dialect Options): Move -fvtable-verify and related options.
8848         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
8849         and profiling-related options.
8850         (Optimization Options): Move profile generation options and
8851         -fstack-protector and related options.
8852         (Instrumentation Options): New section incorporating moved options.
8853         (Code Generation Options): Move -finstrument-functions and
8854         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
8856 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8858         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
8860 2016-01-16  Tom de Vries  <tom@codesourcery.com>
8862         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
8864 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
8866         * hash-table.h (hash_table::empty): Turn into an inline wrapper
8867         that checks whether the table is already empty.  Rename the
8868         original implementation to...
8869         (hash_table::empty_slot): ...this new private function.
8871 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
8873         PR diagnostic/68899
8874         * diagnostic-show-locus.c (layout::print_source_line): Move x
8875         offset of line until after call to
8876         get_line_width_without_trailing_whitespace.
8878 2016-01-15  Jeff Law  <law@redhat.com>
8880         PR tree-optimization/69270
8881         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
8882         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
8883         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
8884         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
8885         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
8886         ssa_name_has_boolean_range and constant_boolean_node.
8888 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
8890         PR rtl-optimization/69030
8891         * lra-spills.c (remove_pseudos): Check nrefs and make the function
8892         returning bool.
8893         (spill_pseudos): Delete debug insn for dead pseudo.
8894         (lra_spill): Initiate spill_hard_reg and slots memory separately.
8896 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
8898         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
8899         New.
8900         (TYPES_UNOPUS): Likewise.
8901         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
8902         builtin type, from UNOP to UNOPUS.
8903         (lbtruncuv4sf): Likewise.
8904         (lbtruncuv2df): Likewise.
8905         (lrounduv2sf): Likewise.
8906         (lrounduv4sf): Likewise.
8907         (lrounduv2df): Likewise.
8908         (lroundusf): Likewise.
8909         (lroundusf): Likewise.
8910         (lceiluv2sf): Likewise.
8911         (lceiluv4sf): Likewise.
8912         (lceiluv2df): Likewise.
8913         (lceilusf): Likewise.
8914         (lceiludf): Likewise.
8915         (lflooruv2sf): Likewise.
8916         (lflooruv4sf): Likewise.
8917         (lflooruv2df): Likewise.
8918         (lfloorusf): Likewise.
8919         (lfloorudf): Likewise.
8920         (lfrintnuv2sf): Likewise.
8921         (lfrintnuv4sf): Likewise.
8922         (lfrintnuv2df): Likewise.
8923         (lfrintnusf): Likewise.
8924         (lfrintnudf): Likewise.
8925         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
8926         conversion.
8927         (vcvtq_u32_f32): Likewise.
8928         (vcvtq_u64_f64): Likewise.
8929         (vcvta_u32_f32): Likewise.
8930         (vcvtaq_u32_f32): Likewise.
8931         (vcvtaq_u64_f64): Likewise.
8932         (vcvtm_u32_f32): Likewise.
8933         (vcvtmq_u32_f32): Likewise.
8934         (vcvtmq_u64_f64): Likewise.
8935         (vcvtn_u32_f32): Likwise.
8936         (vcvtnq_u32_f32): Likewise.
8937         (vcvtnq_u64_f64): Likewise.
8938         (vcvtp_u32_f32): Likewise.
8939         (vcvtpq_u32_f32): Likewise.
8940         (vcvtpq_u64_f64): Likewise.
8941         (vcvtmd_u64_f64): Likewise.
8942         (vcvtms_u32_f32): Likewise.
8943         (vcvtad_u64_f64): Likewise.
8944         (vcvtas_u32_f32): Likewise.
8945         (vcvtnd_u64_f64): Likewise.
8946         (vcvtns_u32_f32): Likewise.
8947         (vcvtpd_u64_f64): Likewise.
8948         (vcvtps_u32_f32): Likewise.
8950 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8952         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
8953         CSEL of zero_extended registers.
8955 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8957         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
8958         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
8960 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8962         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
8963         false when argument string is not found in the attributes table
8964         at all.
8966 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
8968         PR target/68609
8969         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
8970         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
8971         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
8972         precision estimate.
8974 2016-01-15  Richard Biener  <rguenther@suse.de>
8976         PR tree-optimization/66856
8977         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
8978         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
8979         (vect_create_new_slp_node): Increment stmt reference count.
8980         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
8981         an SLP tree before swapping operands.
8982         (vect_build_slp_tree): Likewise.
8983         (destroy_bb_vec_info): Free stmt info after SLP instances.
8984         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
8985         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
8986         (STMT_VINFO_NUM_SLP_USES): New macro.
8988 2016-01-15  Richard Biener  <rguenther@suse.de>
8990         PR debug/69137
8991         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
8992         (add_linkage_name): ... here.
8993         (gen_typedef_die): Use add_linkage_name_raw instead of
8994         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
8995         if necessary.
8997 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
8999         * gimplify.c (oacc_default_clause): Decode reference and pointer
9000         types for both kernels and parallel regions.
9002 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
9004         PR middle-end/69246
9005         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
9007 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
9009         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
9010         (convert_scalars_to_vector): Likewise.
9012 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
9014         * doc/extend.texi (Type Traits): Fix grammar.
9016 2016-01-15  Martin Jambor  <mjambor@suse.cz>
9018         * tree-inline.c (remap_decl): Use existing dclarations if
9019         remapping a type and prevent_decl_creation_for_types.
9020         (replace_locals_stmt): Do an initial remapping of non-VLA typed
9021         decls first.  Do real remapping with
9022         prevent_decl_creation_for_types set.
9023         * tree-inline.h (copy_body_data): New field
9024         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
9025         padding.
9027 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9029         * config/s390/s390.opt (mmvcle): More verbose help text.
9031 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
9033         * config/s390/s390.opt: Add period to -mzvector option text.
9035 2016-01-15  Richard Biener  <rguenther@suse.de>
9037         PR tree-optimization/68961
9038         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
9039         of invariants in stores again.
9041 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
9043         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
9045 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
9047         * config/i386/i386.c (ix86_expand_branch): Don't split
9048         DI mode xor instruction to SI mode.
9050 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
9052         PR ipa/68148
9053         * ipa-icf.c (sem_function::merge): Virtual functions may become
9054         reachable even if they address is not taken and there are no
9055         idrect calls.
9057 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
9059         * lto-streamer-out.c (subtract_estimated_size): New function.
9060         (get_symbol_initial_value): Use it.
9062 2016-01-15  Christian Bruel  <christian.bruel@st.com>
9064         PR target/65837
9065         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
9066         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
9067         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
9068         use add_builtin_function_ext_scope instead of add_builtin_function.
9069         (neon_set_p, neon_crypto_set_p): Remove.
9070         (arm_init_builtins): Always call arm_init_neon_builtins and
9071         arm_init_crypto_builtins.
9072         (arm_expand_builtin): Check that builtins are allowed for the arch.
9073         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
9074         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
9075         arm_init_neon_builtins call.
9077 2016-01-15  Richard Biener  <rguenther@suse.de>
9079         PR tree-optimization/69117
9080         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
9081         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
9082         of the leader conservatively.
9083         (free_scc_vn): Restore original SSA name infos.
9085 2016-01-14  Jeff Law  <law@redhat.com>
9087         PR tree-optimization/69270
9088         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
9089         single bit of precision, verify it's also unsigned.
9090         (record_edge_info): Use constant_boolean_node rather than fold_convert
9091         to convert boolean_true/boolean_false to the right type.
9093 2016-01-14  Richard Henderson  <rth@redhat.com>
9095         PR rtl-opt/69014
9096         * loop-doloop.c (record_reg_sets): New.
9097         (doloop_optimize): Reject the transform if the sequence
9098         clobbers registers live at the end of the loop block.
9099         (doloop_optimize_loops): Enable df_live if needed.
9101 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
9103         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
9104         * gcc/config/rs6000/rs6000.c: Likewise.
9105         * gcc/config/rs6000/rs6000.h: Likewise.
9106         * gcc/config/rs6000/rs6000.md: Likewise.
9107         * gcc/doc/extend.texi: Likewsie.
9109 2016-01-14  Jeff Law  <law@redhat.com>
9111         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
9112         typo.
9114 2016-01-14  Richard Henderson  <rth@redhat.com>
9116         PR c/69272
9117         PR tree-opt/68964
9118         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
9119         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
9120         instead of builtin_decl_declared_p to test for declaration.
9122 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
9124         * doc/loop.texi (Loop Analysis and Representation): Document
9125         loop_depth function.
9127 2016-01-14  Tom de Vries  <tom@codesourcery.com>
9129         PR tree-optimization/68773
9130         * omp-low.c (expand_omp_target): Don't set force_output.
9131         * varpool.c (varpool_node::get_create): Same.
9132         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
9133         offload_funcs with force_output.
9135 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
9137         PR debug/69244
9138         * lra-eliminations.c (move_plus_up): Don't change anything if either
9139         the outer or inner subreg mode is not MODE_INT.
9140         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
9141         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
9143 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
9145         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
9146         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
9147         reduc_uplus_@var{m}): Remove.
9148         * expr.c (expand_expr_real_2): Remove expansion path for
9149         reduc_[us](min|max|plus) optabs.
9150         * optabs-tree.c (scalar_reduc_to_vector): Remove.
9151         * optabs-tree.h (scalar_reduc_to_vector): Remove.
9152         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
9153         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
9154         * tree-vect-loop.c (vectorizable_reduction): Remove test for
9155         reduc_[us](min|max|plus) optabs.
9157 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
9159         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
9160         (reduc_plus_scal_v2sf): New.
9161         (reduc_smax_v2sf): Rename to...
9162         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
9163         (reduc_smin_v2sf): Rename to...
9164         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
9166 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
9168         * alias.c (compare_base_symbol_refs): New function.
9169         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
9170         it.
9172 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
9174         PR middle-end/68146
9175         PR tree-optimization/69155
9176         * tree-complex.c: Include cfganal.h.
9177         (phis_to_revisit): New variable.
9178         (extract_component): Add phiarg_p argument.  Assert that returned
9179         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
9180         (update_phi_components): Partly rewrite to use loop over real/imag
9181         components instead of code duplication.  If extract_component returns
9182         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
9183         create_tmp_reg into the PHI node instead, and mention the phi triplet
9184         in phis_to_revisit.
9185         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
9186         in phis_to_revisit at the end.
9188 2016-01-14  Richard Biener  <rguenther@suse.de>
9190         PR tree-optimization/68060
9191         * tree-vect-loop.c (vect_is_simple_reduction): Check the
9192         outer loop reduction is only used in the inner loop before
9193         detecting a double reduction.
9195 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
9197         PR target/68269
9198         * combine.c (expand_field_assignment): Punt if compute_mode is
9199         unsupported scalar mode.
9201 2016-01-14  Richard Biener  <rguenther@suse.de>
9203         PR tree-optimization/66856
9204         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
9205         SLP node only if it built successfully.
9206         (vect_analyze_slp_instance): Adjust.
9208 2016-01-14  Jeff Law  <law@redhat.com>
9210         PR tree-optimization/69270
9211         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
9212         (record_edge_info): Use it.  Convert boolean_{true,false}_node
9213         to the type of op0.
9215 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
9217         PR ipa/66487
9218         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
9219         use block_ultimate_origin
9220         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
9222 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
9224         * doc/invoke.texi (Submodel Options): Rename section to
9225         "Machine-Dependent Options" to better reflect its content.
9226         Rewrite introductory text to remove archaic CPU names.
9227         Update references.
9229 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
9231         * doc/invoke.texi (Code Gen Options): Move section up in file,
9232         before target-specific options.  Update menu and option summary
9233         to reflect the new section ordering.
9235 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
9237         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
9238         (C++ Dialect Options): Add cross-reference to -std option.
9239         * doc/standards.texi (C++ Language): Document C++14 support.
9241 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
9243         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
9244         for pack/unpack functions for __ibm128.
9245         (PACK_IF): Likewise.
9246         (UNPACK_IF): Likewise.
9248         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
9249         support for __ibm128 pack/unpack functions.
9250         (rs6000_invalid_builtin): Likewise.
9251         (rs6000_init_builtins): Likewise.
9252         (rs6000_opt_masks): Likewise.
9254         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
9255         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
9256         functions
9257         (RS6000_BTM_COMMON): Likewise.
9259         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
9260         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
9261         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
9262         128-bit floating point.  Add support for the double values to be
9263         in Altivec registers for TF/IF packing and unpacking, but restrict
9264         TD packing sub-fields to be FPR registers.  Don't allow overlapped
9265         register support for packing.  Allow pack inputs to be memory
9266         locations.  Don't build generator functions for unpack<mode>_dm
9267         and unpack<mode>_nodm.
9268         (unpack<mode>_dm): Likewise.
9269         (unpack<mode>_nodm): Likewise.
9270         (pack<mode>): Likewise.
9272         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
9273         built-in functions to pack/unpack explicit __ibm128 values.
9274         (__builtin_unpack_ibm128): Likewise.
9276         * doc/extend.texi (PowerPC Built-in Functions): Document
9277         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
9279 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
9281         PR c/66208
9282         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
9283         Add new arg loc and pass it down as context.
9284         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
9285         to the location to use for the warning.
9286         (check_function_arguments): New arg loc.  All callers changed.  Pass
9287         it to check_function_nonnull.
9288         * c-common.h (check_function_arguments): Adjust declaration.
9290 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
9292         PR tree-optimization/69156
9293         * gimple.c (validate_type): Removed.
9294         (gimple_builtin_call_types_compatible_p): Use
9295         useless_type_conversion_p instead of validate_type.
9296         * value-prof.c (gimple_stringop_fixed_value): Fold
9297         icall_size to correct type.
9299 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
9301         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
9302         effects.
9304 2016-01-13  Richard Henderson  <rth@redhat.com>
9306         PR tree-opt/68964
9307         * target.def (builtin_tm_load, builtin_tm_store): Remove.
9308         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
9309         (ix86_builtin_tm_store): Remove.
9310         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9311         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9312         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
9313         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
9314         * doc/tm.texi: Rebuild.
9316         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
9317         (BUILT_IN_TM_MEMCPY_RTWN): New.
9318         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
9319         fallback from vector to integer helpers.
9320         (build_tm_load): Handle vector types directly, instead of
9321         via target hook.
9322         (build_tm_store): Likewise.
9323         (expand_assign_tm): Prepare for register types not handled by
9324         the above.  Copy them to memory and use memcpy.
9325         * tree.c (tm_define_builtin): New.
9326         (find_tm_vector_type): New.
9327         (build_tm_vector_builtins): New.
9328         (build_common_builtin_nodes): Call it.
9330 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
9332         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
9333         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
9335 2016-01-13  Tom de Vries  <tom@codesourcery.com>
9337         PR tree-optimization/69169
9338         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
9339         handled_struct_type param.
9340         (create_variable_info_for, intra_create_variable_infos): Call
9341         create_variable_info_for_1 with extra arg.
9343 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
9345         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
9346         and "armv8.1-a+crc" entries.
9348 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
9350         PR target/69228
9351         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
9352         Change first operand predicate from register_or_constm1_operand
9353         to register_operand.
9354         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
9355         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
9356         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
9357         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
9358         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
9359         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
9360         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
9361         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
9362         comparison with constm1_rtx from vec_prefetch_gen part.
9364 2016-01-13  Richard Biener  <rguenther@suse.de>
9366         PR tree-optimization/69013
9367         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
9368         Exchange assert for a test.
9370 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
9372         PR target/69247
9373         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
9375 2016-01-13  Richard Biener  <rguenther@suse.de>
9377         PR tree-optimization/69242
9378         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
9379         assert with a check.
9381 2016-01-13  Richard Biener  <rguenther@suse.de>
9383         PR tree-optimization/69186
9384         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
9385         Properly guard vect_update_misalignment_for_peel call.
9387 2016-01-12  Jeff Law  <law@redhat.com>
9389         PR tree-optimization/pr67755
9390         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
9391         "need_profile_correction".
9392         (thread_block_1): Initialize new field to false by default.  If we
9393         have multiple thread paths through a common joiner to different
9394         final targets, then set new field to true.
9395         (compute_path_counts): Only do count adjustment when it's really
9396         needed.
9398 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9400         * doc/invoke.texi (Spec Files): Move section down in file, past
9401         all command-line option descriptions.
9403 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9405         PR middle-end/54809
9406         * doc/gty.texi: Remove documentation of mark_hook.
9407         * gengtype.c (struct write_types_data): Remove code to support
9408         mark_hook attribute.
9409         (walk_type): Likewise.
9410         (write_func_for_structure): Likewise.
9412 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9414         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
9415         Directory Options, and -specs= to Overall Options.
9416         (Overall Options): Adjust similarly.  Reorder to group related
9417         options together.  Make -specs= cross-reference the spec file details.
9418         (Directory Options): Adjust similarly.
9420 2016-01-12  Jeff Law  <law@redhat.com>
9422         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
9424 2016-01-12  Olivier Hainque  <hainque@adacore.com>
9426         * gcc.c (spec_undefvar_allowed): New global.
9427         (process_command): Set to true when running for --version or --help,
9428         alone or together.
9429         (getenv_spec_function): When the variable is not defined, use the
9430         variable name as the variable value if we're allowed not to issue
9431         a fatal error.
9433 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
9435         PR tree-optimization/68911
9436         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
9437         information computed for expression "init + nit * step".
9439 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
9441         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
9442         about name of GCC executable.  Remove deleted node from menu.
9443         (Directory Options) <-B>: Remove cross-reference to deleted node.
9444         (Target Options): Delete section.
9446 2016-01-12  Christian Bruel  <christian.bruel@st.com>
9448         PR target/69180
9449         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
9450         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
9452 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
9454         PR target/69198
9455         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
9456         aligned_mem is properly set for AVX512-VL floating point masked
9457         stores.
9459         PR target/69175
9460         * ifcvt.c (cond_exec_process_if_block): When removing the last
9461         insn from then_bb, remove also any possible barriers that follow it.
9463 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
9465         PR target/68456
9466         PR target/69226
9467         * config/i386/iamcu.h (SIZE_TYPE): New macro.
9468         (PTRDIFF_TYPE): Likewise.
9469         (WCHAR_TYPE): Likewise.
9470         (WCHAR_TYPE_SIZE): Likewise.
9471         (STDINT_LONG32): Likewise.
9473 2016-01-12  Richard Biener  <rguenther@suse.de>
9475         PR tree-optimization/69053
9476         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
9477         convert initial value for cond reductions.
9479 2016-01-12  Richard Biener  <rguenther@suse.de>
9481         PR tree-optimization/69007
9482         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
9483         widen_sum after dot_prod and sad.
9485 2016-01-12  Richard Biener  <rguenther@suse.de>
9487         PR tree-optimization/69168
9488         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
9489         pattern stmt SLP type.
9490         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
9491         end up unused so cope with that case.
9493 2016-01-12  Richard Biener  <rguenther@suse.de>
9495         PR tree-optimization/69157
9496         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
9497         stmts def type only during analyze phase.
9498         (vectorizable_call): Likewise.
9499         (vectorizable_simd_clone_call): Likewise.
9500         (vectorizable_conversion): Likewise.
9501         (vectorizable_assignment): Likewise.
9502         (vectorizable_shift): Likewise.
9503         (vectorizable_operation): Likewise.
9504         (vectorizable_store): Likewise.
9505         (vectorizable_load): Likewise.
9507 2016-01-12  Richard Biener  <rguenther@suse.de>
9509         PR tree-optimization/69174
9510         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
9511         space.
9512         (vectorizable_load): Properly compute the number of loads needed
9513         for permuted strided SLP loads and do not spuriously assign
9514         to SLP_TREE_VEC_STMTS.
9516 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
9518         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
9519         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
9520         (MD_EXEC_PREFIX): Remove.
9521         (MD_STARTFILE_PREFIX) Removee.
9522         (FILE_NAME_ABSOLUTE_P): Remove.
9523         (CPP_SPEC): Do not read macros from sys/version.h.
9524         (LINK_COMMAND_SPEC): Remove.
9525         (LOCAL_INCLUDE_DIR): Remove.
9526         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
9527         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
9528         (POST_LINK_SPEC): Define to invoke stubify after linker
9529         (LIBSTDCXX): Remove define
9530         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
9531         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
9532         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
9533         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
9534         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
9535         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
9536         (i386_djgpp_asm_named_section): Add propotype of new procedure
9538         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
9539         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
9540         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
9541         in config/i386/djgpp.h).
9542         (STANDARD_STARTFILE_PREFIX_2): Define identical to
9543         STANDARD_STARTFILE_PREFIX_1.
9544         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
9545         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
9546         installation errors.
9547         (MAX_OFILE_ALIGNMENT): Define to 128.
9548         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
9550         * config/i386/djgpp.c: New file. Add implementation of
9551         i386_djgpp_asm_named_section.
9553         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
9555         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
9556         Add rule for building djgpp.o.
9558 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9560         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
9561         (rtx_is_swappable_p): Reductions are swappable.
9562         (insn_is_swappable_p): V2DF reductions are swappable.
9564 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
9566         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
9567         reloads for other unsupported memory operands.
9569 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
9570             Jim Wilson  <jim.wilson@linaro.org>
9572         PR target/69194
9573         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
9574         copy_to_mode_reg instead of force_reg.
9576 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9578         PR target/69225
9579         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
9580         TARGET_80387 is true.
9582 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
9584         PR target/69071
9585         * lra-eliminations.c (move_plus_up): Only move plus up
9586         if subreg of the constant can be simplified into constant
9587         and use the simplified subreg of the constant instead of
9588         the original constant.
9590         * fold-const.c (fold_convertible_p): Don't return true
9591         for conversion of VECTOR_TYPE to same sized integral type.
9592         (fold_convert_loc): Fix up formatting.  Fold conversion of
9593         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
9594         instead of NOP_EXPR.
9596         PR tree-optimization/69214
9597         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
9598         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
9599         Formatting fix.
9601         PR tree-optimization/69207
9602         * tree-vect-slp.c (vect_get_constant_vectors): For
9603         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
9604         fold_convertible_p to vector_type's element type, and always
9605         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
9607 2016-01-11  Richard Biener  <rguenther@suse.de>
9609         PR tree-optimization/69173
9610         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
9611         fixup the cycle if all stmts are in a pattern.
9613 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
9615         PR middle-end/68999
9616         * alias.c (base_alias_check): Move check for addresses with
9617         alignment ANDs before the call for compare_base_decls.
9618         (memrefs_conflict_p): Return -1 for different decls
9619         that went through alignment adjustments.
9621 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9623         PR rtl-optimization/68796
9624         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
9625         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
9626         and QImode comparisons against zero with CC_NZmode.
9627         * config/aarch64/iterators.md (short_mask): New mode_attr.
9629 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
9631         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
9632         (<avx512>_store<mode>_mask): Likewise.
9634 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
9635             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9637         PR rtl-optimization/68841
9638         * ifcvt.c (struct noce_if_info): Add orig_x field.
9639         (bbs_ok_for_cmove_arith): Add to_rename parameter.
9640         Don't record conflicts on to_rename if it's present.
9641         Allow memory destinations in sets.
9642         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
9643         blocks, passing orig_x to the checks.
9644         (noce_process_if_block): Set if_info->orig_x appropriately.
9646 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9648         PR tree-optimization/69069
9649         * tree-parloops.c (create_parallel_loop): Add missing phi args.
9651 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
9653         PR rtl-optimization/68920
9654         * config/i386/i386.c (ix86_option_override_internal): Restrict number
9655         of conditional moves for  RTL if-conversion to 1 for
9656         TARGET_ONE_IF_CONV_INSN.
9657         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
9658         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
9659         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
9660         parameter to restirct number of conditional moves for
9661         RTL if-conversion.
9662         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
9663         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
9664         conditionl moves.
9666 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
9668         PR bootstrap/69123
9669         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
9670         onepart vars.  Fix typo in comment.  Fix reversed condition in
9671         unshare test.
9672         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
9674         PR bootstrap/69123
9675         * var-tracking.c (dump_onepart_variable_differences): New.
9676         (dataflow_set_different): If a detailed dump is requested,
9677         delay early returns and dump differences between onepart
9678         variables present before and after, and added variables.
9680 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
9682         PR target/69010
9683         * expr.c (expand_expr_real_1): For boolean vector constants
9684         with a scalar mode use const_scalar_mask_from_tree.
9685         (const_scalar_mask_from_tree): New.
9686         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
9687         assigned to a mask type to handle constants.
9689 2016-01-11  Martin Jambor  <mjambor@suse.cz>
9691         PR ipa/69044
9692         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
9693         useless parameters if we cannot change function signature.
9695 2016-01-11  Martin Jambor  <mjambor@suse.cz>
9697         PR ipa/66616
9698         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
9699         flag.
9701 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9703         PR tree-optimization/69109
9704         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
9705         latch with phi.
9707 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9709         PR tree-optimization/69108
9710         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
9711         res is not used in a phi.
9713 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
9715         PR 67425
9716         * common.opt (frandom-seed): Fix parameter name.
9717         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
9719 2016-01-11  Tom de Vries  <tom@codesourcery.com>
9721         PR tree-optimization/69058
9722         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
9723         not supported.
9725 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
9727         * config/arc/arc.opt (mdiv-rem): Add period to the end.
9728         (mcode-density): Likewise.
9730 2016-01-10  Tom de Vries  <tom@codesourcery.com>
9732         PR tree-optimization/69062
9733         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
9734         (parallelize_loops): Don't paralelize loop that has phi with address
9735         arg.
9737 2016-01-10  Tom de Vries  <tom@codesourcery.com>
9739         PR tree-optimization/69039
9740         * tree-parloops.c (try_create_reduction_list): Only allow single exit
9741         phi for reduction.
9743 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
9745         PR middle-end/68743
9746         * match.pd: Require target has function_c99_misc before doing
9747         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
9749 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
9751         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
9752         use GMPINC.
9753         * configure: Regenerate.
9755 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
9757         PR middle-end/50865
9758         PR tree-optimization/69097
9759         * fold-const.h (expr_not_equal_to): New prototype.
9760         * fold-const.c: Include stringpool.h and tree-ssanames.h.
9761         (expr_not_equal_to): New function.
9762         * match.pd (X % -Y is the same as X % Y): Don't optimize
9763         unless X is known not to be equal to minimum or Y is known
9764         not to be equal to -1.
9765         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
9766         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
9767         (simplify_stmt_using_ranges): Adjust caller.
9768         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
9769         substitute_and_fold.
9771 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
9773         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
9774         w/o DECL_NAME.
9776 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9778         PR tree-optimization/69167
9779         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
9780         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
9781         ops[0] comparison.
9782         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
9784 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9785             Richard Biener  <rguenther@suse.de>
9787         PR tree-optimization/68707
9788         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
9789         instances that can be handled via vect_load_lanes.
9791 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
9793         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
9794         if we can't determine address equivalence.
9795         * alias.c (compare_base_decl): Update for changed return value of
9796         symtab_node::equal_address_to.
9798 2016-01-08  Jason Merrill  <jason@redhat.com>
9800         PR c++/68983
9801         PR c++/67557
9802         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
9803         * expr.c (store_field): Not here.
9804         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
9805         call with TREE_ADDRESSABLE type.
9806         * tree-cfg.c (verify_gimple_call): Adjust.
9808 2016-01-08  Olivier Hainque  <hainque@adacore.com>
9810         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
9811         libc_internal.
9813 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
9815         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
9816         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
9817         (reduc_smin_v2sf): Rename to...
9818         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
9819         (reduc_splus_v2sf): Rename to...
9820         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
9822 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9824         PR tree-optimization/69162
9825         * gimplify.c (gimplify_va_arg_expr): Encode original type of
9826         valist argument in another argument.
9827         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
9828         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
9829         to determine the va_list type, build a MEM_REF instead of
9830         build_fold_indirect_ref.
9832         PR tree-optimization/69172
9833         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
9834         gimple_build.
9836 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
9838         PR tree-optimization/67781
9839         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
9840         and cmpnop in two steps: first the ones not accessed in original
9841         gimple expression in a endian independent way and then the ones not
9842         accessed in the final result in an endian-specific way.
9844 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
9846         PR tree-optimization/69083
9847         * tree-vect-slp.c (vect_get_constant_vectors): For
9848         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
9849         element type.  If op is fold_convertible_p to vector_type's element
9850         type, use NOP_EXPR instead of VCE.
9852 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
9854         PR rtl-optimization/67778
9855         PR rtl-optimization/68634
9856         PR rtl-optimization/68909
9857         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
9858         block from the stack until done with it.  Remove a superfluous
9859         bitmap set.  Remove a superfluous bitmap test.
9861 2016-01-07  Martin Sebor  <msebor@redhat.com>
9863         PR c/68966
9864         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
9865         constraint on the type of arguments.
9867 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
9869         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
9870         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
9871         unaligned_access on the gcc_options set.
9872         * config/arm/arm.c (arm_option_override_internal): Use
9873         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
9875 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9877         PR target/69140
9878         * config/i386/i386.c (ix86_frame_pointer_required): Enable
9879         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
9881 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
9883         Revert
9884         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9886         PR target/69140
9887         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9888         depending on frame_pointer_needed before remaining integer and SSE
9889         registers are saved.
9891 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
9893         PR 1078
9894         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
9896 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
9898         PR target/69171
9899         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
9900         Use the "xBm" constraint.
9901         (float<sseintvecmodelower><mode>2<mask_name><round_name):
9902         Likewise.
9903         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
9904         (sse_cvtsi2ssq<round_name>): Likewise.
9905         (sse_cvtss2si<round_name>): Likewise.
9906         (sse_cvtss2siq<round_name>): Likewise.
9907         (sse2_cvtsi2sdq<round_name>): Likewise.
9908         (sse2_cvtsd2si<round_name>): Likewise.
9909         (sse2_cvtsd2siq<round_name>): Likewise.
9910         * config/i386/subst.md (round_nimm_scalar_predicate): New
9911         predicate.
9913 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
9915         PR middle-end/67639
9916         * varasm.c (make_decl_rtl): Mark invalid register vars as
9917         DECL_EXTERNAL.
9919         PR rtl-optimization/66206
9920         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
9921         All callers changed.
9923 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
9925         PR tree-optimization/69141
9926         * tree-ssa-pre.c: Include langhooks.h.
9927         (eliminate_dom_walker::before_dom_children): Use
9928         lang_hooks.decl_printable_name instead of
9929         cgraph_node::get ()->name ().
9931         PR middle-end/68960
9932         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
9933         it and DECL_ALIGN too.
9935 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
9937         * config/mips/mips-ftypes.def: Sort to lexicographical order.
9939 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
9941         PR target/69140
9942         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
9943         depending on frame_pointer_needed before remaining integer and SSE
9944         registers are saved.
9946 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9948         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
9949         mode iterator with VSX_M2.
9950         (*p9_vecstore_<mode>): Likewise.
9951         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
9952         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
9953         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
9954         (define_split for VSX_LE128 stores): Likewise.
9955         (define_peephole2 for TImode LE swaps): Likewise.
9956         (define_split for VSX_LE128 post-reload stores): Likewise.
9958 2016-01-06  Marek Polacek  <polacek@redhat.com>
9960         PR sanitizer/69099
9961         * convert.c (convert_to_integer_1): Adjust call to
9962         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
9963         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
9964         EXPR instead of ARG.
9965         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
9967 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
9969         PR 1078
9970         * doc/extend.texi (RL78 Variable Attributes): New section.
9972 2016-01-05  Marek Polacek  <polacek@redhat.com>
9974         PR c/69104
9975         * builtins.c (get_memmodel): Use expansion point location rather than
9976         the input location.  Call warning_at rather than warning.
9977         (expand_builtin_atomic_compare_exchange): Likewise.
9978         (expand_builtin_atomic_load): Likewise.
9979         (expand_builtin_atomic_store): Likewise.
9980         (expand_builtin_atomic_clear): Likewise.
9982 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
9984         PR target/68991
9985         * config/i386/i386.c (ix86_expand_vector_logical_operator):
9986         Replace nonimmediate_operand with vector_operand.
9987         * config/i386/predicates.md (vector_operand): New predicate.
9988         (general_vector_operand): Replace nonimmediate_operand with
9989         vector_operand.
9990         * config/i386/sse.md: Replace nonimmediate_operand with
9991         vector_operand and m constraint with Bm constraint on SSE
9992         patterns with 16-byte memory operand.
9993         * config/i386/subst.md (round_nimm_predicate): Replace
9994         nonimmediate_operand with vector_operand.
9995         (round_saeonly_nimm_predicate): Likewise.
9996         (round_saeonly_nimm_scalar_predicate): New.
9998 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
10000         PR target/68991
10001         * config/i386/constraints.md (Bm): New constraint.
10002         * config/i386/predicates.md (vector_memory_operand): New
10003         predicate.
10004         * config/i386/sse.md: Replace xm with xBm in plusminus and
10005         any_logic patterns.
10007 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
10009         PR 1078
10010         * doc/extend.texi (V850 Function Attributes): New section.
10011         (V850 Variable Attributes): New section.
10013 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
10015         PR 1078
10016         * doc/extend.texi (MicroBlaze Function Attributes): Document
10017         interrupt_handler and fast_interrupt attributes.
10019 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
10021         PR other/60465
10022         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
10023         for local symbolic operands.
10024         * config/ia64/predicates.md (local_symbolic_operand64): New
10025         predicate.
10027 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10029         PR rtl-optimization/68651
10030         * combine.c (combine_simplify_rtx): Canonicalize x + x into
10031         x << 1.
10033 2016-01-05  Nathan Sidwell  <nathan@acm.org>
10035         * alias.c (compare_base_decls): Use symtab_node::get.
10037 2016-01-05  Nick Clifton  <nickc@redhat.com>
10039         PR target/68770
10040         * ira-costs.c (copy_cost): Initialise the t_icode field of the
10041         secondary_reload_info structure.
10043         PR target/66655
10044         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
10045         decls if weak support is available.
10047 2016-01-04  Martin Sebor  <msebor@redhat.com>
10049         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
10051 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
10053         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
10054         OPTION_MASK_P9_DFORM.
10056         * config/rs6000/constraints.md (wo constraint): New constraint for
10057         ISA 3.0 (power9).
10059         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
10060         for wo constraint.
10061         (rs6000_init_hard_regno_mode_ok): Likewise.
10063         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
10064         wo constraint.
10066         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
10067         expanders not to have constraints.  Add support for ISA 3.0 xxperm
10068         instruction.  Add support for fusing xxlor with xxperm.
10069         (altivec_vperm_<mode>_internal): Likewise.
10070         (altivec_vperm_v8hiv16qi): Likewise.
10071         (altivec_vperm_<mode>v16q): Likewise.
10072         (altivec_vperm_<mode>_uns): Likewise.
10073         (vperm_v8hiv4si): Likewise.
10074         (vperm_v16qiv8hi): Likewise.
10076         * doc/md.texi (RS/6000 constraints): Document wo constraint.
10078 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
10080         Update copyright years.
10082         * gcc.c (process_command): Update copyright notice dates.
10083         * gcov-dump.c (print_version): Ditto.
10084         * gcov.c (print_version): Ditto.
10085         * gcov-tool.c (print_version): Ditto.
10086         * gengtype.c (create_file): Ditto.
10087         * doc/cpp.texi: Bump @copying's copyright year.
10088         * doc/cppinternals.texi: Ditto.
10089         * doc/gcc.texi: Ditto.
10090         * doc/gccint.texi: Ditto.
10091         * doc/gcov.texi: Ditto.
10092         * doc/install.texi: Ditto.
10093         * doc/invoke.texi: Ditto.
10095 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10097         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
10098         modes larger than TImode as TImode if NEON is not enabled.
10100 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10102         PR target/69100
10103         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
10104         mode for %f0-%f31 only if TARGET_FPU.
10106 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
10108         PR target/69072
10109         * config/sparc/sparc.c (scan_record_type): Take into account subfields
10110         to compute the PACKED_P predicate.
10111         (function_arg_record_value): Minor tweaks.
10113 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
10115         * doc/install.texi (--with-multilib-list): Describe the meaning of the
10116         option for arm*-*-* targets.
10118 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
10120         * doc/extend.texi (Common Function Attributes): Move docs for
10121         MSP430-specific attributes to....
10122         (MSP430 Function Attributes): ...here.  Delete the redundant
10123         entries and copy-edit the remaining text.
10124         (MSP430 Variable Attributes): Use uniform format for index
10125         entries and add a cross-reference to the corresponding function
10126         attribute docs.
10128 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
10130         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
10131         -finite-math typo.
10132         (x86 Options): Likewise.
10134 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
10136         PR 1078
10138         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
10139         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
10140         to corresponding attribute.
10142 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
10144         * doc/extend.texi (Common Function Attributes) <noplt>: Move
10145         to correct alphabetization of table.  Copy-edit and correct
10146         markup.
10147         <stack_protect>: Likewise.
10148         <target_clones>: Likewise.
10149         <simd>: Likewise.
10150         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
10151         Correct punctuation.
10152         (Code Gen Options) <-fno-plt>: Copy-edit.
10154 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10156         PR target/68917
10157         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
10158         SI values.  Explicitly convert SI to DI and vice-versa.
10160 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
10162         PR tree-optimization/69070
10163         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
10164         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
10166         PR sanitizer/69055
10167         * ubsan.c (ubsan_instrument_float_cast): Call
10168         initialize_sanitizer_builtins.
10170         PR target/69015
10171         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
10173 Copyright (C) 2016 Free Software Foundation, Inc.
10175 Copying and distribution of this file, with or without modification,
10176 are permitted in any medium without royalty provided the copyright
10177 notice and this notice are preserved.