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