2016-10-13 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob4bc6f6c4d01740ebf900fb5c9d2fd284453ccfe8
1 2016-10-13  Richard Biener  <rguenther@suse.de>
3         * dwarf2out.c (tree_add_const_value_attribute): Do not try
4         rtl_for_decl_init during early phase.
5         (gen_variable_die): Do not create locations during early phase.
6         (gen_label_die): Likewise.
7         (decls_for_scope): Do not waste time handling BLOCK_NONLOCALIZED_VARs
8         twice.
10 2016-10-12  Richard Biener  <rguenther@suse.de>
12         * tree-vrp.c (evrp_dom_walker::try_find_new_range): Renamed from
13         try_add_new_range and made to eturn new range.
14         (evrp_dom_walker::before_dom_children): Push op1 value range before
15         pushing op0 value range.
17 2016-10-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19         PR tree-optimization/77937
20         * gimple-ssa-strength-reduction.c (analyze_increments): Use
21         POINTER_TYPE_P on the candidate type to determine whether
22         candidates in this chain require pointer arithmetic.
24 2016-10-12  Eric Botcazou  <ebotcazou@adacore.com>
26         * config/visium/visium.c (visium_gimplify_va_arg): Emit a big-endian
27         correction if the type is smaller than a word.
28         (visium_select_cc_mode): Add ... fall through ... comment.
30 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
32         * config/rs6000/rs6000.c (machine_function): Add new fields
33         gpr_is_wrapped_separately and lr_is_wrapped_separately.
34         (TARGET_SHRINK_WRAP_GET_SEPARATE_COMPONENTS,
35         TARGET_SHRINK_WRAP_COMPONENTS_FOR_BB,
36         TARGET_SHRINK_WRAP_DISQUALIFY_COMPONENTS,
37         TARGET_SHRINK_WRAP_EMIT_PROLOGUE_COMPONENTS,
38         TARGET_SHRINK_WRAP_EMIT_EPILOGUE_COMPONENTS,
39         TARGET_SHRINK_WRAP_SET_HANDLED_COMPONENTS): Define.
40         (rs6000_get_separate_components): New function.
41         (rs6000_components_for_bb): New function.
42         (rs6000_disqualify_components): New function.
43         (rs6000_emit_prologue_components): New function.
44         (rs6000_emit_epilogue_components): New function.
45         (rs6000_set_handled_components): New function.
46         (rs6000_emit_prologue): Don't emit LR save if lr_is_wrapped_separately.
47         Don't emit GPR saves if gpr_is_wrapped_separately for that register.
48         (restore_saved_lr): Don't restore LR if lr_is_wrapped_separately.
49         (rs6000_emit_epilogue): Don't emit GPR restores if
50         gpr_is_wrapped_separately for that register.  Don't make a
51         REG_CFA_RESTORE note for registers we did not restore, either.
53 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
55         * function.c (thread_prologue_and_epilogue_insns): Call
56         try_shrink_wrapping_separate.  Compute the prologue_seq afterwards,
57         if it has possibly changed.  Compute the split_prologue_seq and
58         epilogue_seq later, too.
59         * shrink-wrap.c: #include cfgbuild.h and insn-config.h.
60         (dump_components): New function.
61         (struct sw): New struct.
62         (SW): New function.
63         (init_separate_shrink_wrap): New function.
64         (fini_separate_shrink_wrap): New function.
65         (place_prologue_for_one_component): New function.
66         (spread_components): New function.
67         (disqualify_problematic_components): New function.
68         (emit_common_heads_for_components): New function.
69         (emit_common_tails_for_components): New function.
70         (insert_prologue_epilogue_for_components): New function.
71         (try_shrink_wrapping_separate): New function.
72         * shrink-wrap.h: Declare try_shrink_wrapping_separate.
74 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
76         * regrename.c (build_def_use): Invalidate chains that have a
77         REG_CFA_RESTORE on some instruction.
79 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
81         * dce.c (delete_unmarked_insns): Don't delete instructions with
82         a REG_CFA_RESTORE note.
84 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
86         * common.opt (-fshrink-wrap-separate): New flag.
87         * doc/invoke.texi: Document it.
88         * doc/tm.texi.in (Shrink-wrapping separate components): New subsection.
89         * doc/tm.texi: Regenerate.
90         * emit-rtl.h (struct rtl_data): New field shrink_wrapped_separate.
91         * target.def (shrink_wrap): New hook vector.
92         (get_separate_components, components_for_bb, disqualify_components,
93         emit_prologue_components, emit_epilogue_components,
94         set_handled_components): New hooks.
96 2016-10-12  Segher Boessenkool  <segher@kernel.crashing.org>
98         * config/rs6000/rs6000.c (rs6000_return_in_memory): Warn for
99         vector return by reference only if -Wpsabi.
100         (rs6000_pass_by_reference): Similarly, for argument passing.
102 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
104         * function-tests.c: Include "print-rtl.h".
105         (selftest::test_expansion_to_rtl): Call print_rtx_function on the
106         function, and verify what is dumped.
107         * print-rtl-function.c (print_edge): New function.
108         (begin_any_block): New function.
109         (end_any_block): New function.
110         (can_have_basic_block_p): New function.
111         (print_rtx_function): Track the basic blocks of insns in the
112         chain, wrapping those that are within blocks within "(block)"
113         directives.  Remove the "(cfg)" directive.
115 2016-10-12  David Malcolm  <dmalcolm@redhat.com>
117         * selftest.c (selftest::read_file): New function.
118         (selftest::test_read_file): New function.
119         (selftest::selftest_c_tests): Call test_read_file.
120         * selftest.h (selftest::read_file): New decl.
122 2016-10-12  Richard Biener  <rguenther@suse.de>
124         PR debug/77947
125         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
126         function context.
128 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
130         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
132         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
133         dwarf2out_assembly_start.
135         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
137         * Makefile.in (SELFTEST_FLAGS): New variable.
138         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
140         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
141         early_finish hook.
143 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
145         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
146         dumped in RTL dumps.
148 2016-10-12  Martin Liska  <mliska@suse.cz>
150         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
151         (gimple_fold_builtin_memory_op): Use the function.
152         (gimple_fold_builtin_strchr): Likewise.
153         (gimple_fold_builtin_strcat): Likewise.
154         (gimple_build): Likewise.
156 2016-10-12  Nathan Sidwell  <nathan@acm.org>
158         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
160 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
162         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
163         equivalent 32-bit constant (modulo 2**32) when that yields
164         smaller instructions.
165         (size_of_int_loc_descriptor): Update accordingly.
167 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
169         * dwarf2out.c (dwarf2out_early_global_decl): For nested
170         functions, call dwarf2out_decl on the parent function first.
172 2016-10-12  Richard Biener  <rguenther@suse.de>
174         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
175         on the conversion.
177 2016-10-12  Richard Biener  <rguenther@suse.de>
179         * tree-ssa-propagate.c
180         (substitute_and_fold_dom_walker::before_dom_children): Do not
181         ignore ASSERT_EXPRs but only preserve them.
182         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
183         that have been propagated into.
184         (vrp_finalize): Enable DCE for substitute_and_fold.
186 2016-10-12  Richard Biener  <rguenther@suse.de>
188         PR tree-optimization/77920
189         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
190         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
191         (simplify_abs_using_ranges): Likewise.
192         (simplify_conversion_using_ranges): Likewise.
193         (simplify_stmt_using_ranges): Adjust.
195 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
197         PR tree-optimization/77929
198         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
199         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
201 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
203         PR target/77934
204         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
205         needs a base register for arg 1.
207 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
209         * common.opt (Wimplicit-fallthrough) Turn into alias to
210         -Wimplicit-fallthrough=3.  Remove EnabledBy.
211         (Wimplicit-fallthrough=): New option.
212         * gimplify.c (warn_implicit_fallthrough_r): Use
213         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
214         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
215         to -Wimplicit-fallthrough=3.
216         (-Wimplicit-fallthrough=): Document.
218 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
220         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
221         and GEU in DImode if TARGET_SUBXC.
222         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
223         (seqdi<W:mode>_zero_subxc): Delete.
224         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
225         (neg_seqdi<W:mode>_zero_vis3): Delete.
226         (plus_seqdi<W:mode>_zero): Likewise.
227         (minus_seqdi<W:mode>_zero): Likewise.
228         (plus_plus_sltu<W:mode>): Accept only register.
229         (addx<W:mode>): Likewise.
230         (plus_sltu<W:mode>_vis3): Likewise.
231         (plus_plus_sltu<W:mode>_vis3): Likewise.
232         (neg_sgeu<W:mode>_vis3): Delete.
233         (minus_sgeu<W:mode>_vis3): Likewise.
234         (addxc<W:mode>): Accept only registers.
235         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
236         (minus_neg_sltu<W:mode>_subxc): Accept only register.
237         (neg_plus_sltu<W:mode>_subxc): Likewise.
238         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
239         (minus_minus_sltu<W:mode>_subxc): Accept only register.
240         (sgeu<W:mode>_insn_subxc): Delete.
241         (plus_sgeu<W:mode>_subxc): Likewise.
242         (subxc<W:mode>): Accept only register.
243         (scc splitter): Split always GEU again.
245 2016-10-11  Jeff Law  <law@redhat.com>
247         PR tree-optimization/77424
248         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
249         dead conditionals.  Assert that all e->aux fields are NULL.
251 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
253         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
254         operand-printing "switch" statement into...
255         (print_rtx_operand_code_0): ...this new function, ...
256         (print_rtx_operand_code_e): ...this new function, ...
257         (print_rtx_operand_codes_E_and_V): ...this new function, ...
258         (print_rtx_operand_code_i): ...this new function, ...
259         (print_rtx_operand_code_r): ...this new function, ...
260         (print_rtx_operand_code_u): ...this new function, ...
261         (print_rtx_operand): ...and this new function.
263 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
265         * config/alpha/alpha-passes.def: New file.
266         * config/alpha/t-alpha: New file.
267         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
268         (make_pass_handle_trap_shadows): New prototype.
269         (make_pass_align_insns): Ditto.
270         * config/alpha/alpha.c (alpha_option_override): Don't register
271         passes here.
272         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
274 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
276         PR target/77924
277         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
278         distinct __ibm128 IBM extended double type if long doubles are
279         128-bits and the default format for long double is IEEE 128-bit.
281 2016-10-11  Richard Biener  <rguenther@suse.de>
283         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
284         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
285         (verify_die): New function.
286         (dwarf2out_finish): Call it.
287         (output_line_info): Handle case of -gsplit-dwarf without
288         DWARF2_ASM_LINE_DEBUG_INFO.
290 2016-10-11  Richard Biener  <rguenther@suse.de>
292         PR debug/77931
293         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
294         sub-chains of BLOCK_VARS and gimple_bind_vars.
296 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
298         * config/i386/znver1.md : Fix imov/imovx load type reservations.
300 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
302         * config/sparc/sparc.opt (msubxc): New option.
303         * doc/invoke.texi (SPARC options): Document it and tidy up.
304         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
305         * doc/tm.texi: Regenerate.
306         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
307         (CCNZ): ...this.
308         (CCX_NOOV): Rename into...
309         (CCXNZ): ...this.
310         (CCC): New.
311         (CCXC): Likewise.
312         * config/sparc/predicates.m (fcc_register_operand): Simplify.
313         (fcc0_register_operand): Likewise.
314         (icc_register_operand): New.
315         (icc_or_fcc_register_operand): Simplify.
316         (nz_comparison_operator): New.
317         (c_comparison_operator): Likewise.
318         (noov_compare_operator): Rename into...
319         (icc_comparison_operator): ...this.  Use above predicates.
320         (noov_compare64_operator): Rename into...
321         (v9_comparison_operator): ...this and tidy up.
322         (fcc_comparison_operator): New.
323         (icc_or_fcc_comparison_operator): Likewise.
324         (v9_register_compare_operator): Rename info...
325         (v9_register_comparison_operator): ...this.
326         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
327         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
328         for Niagara-7.
329         (sparc_fixed_condition_code_regs): New function.
330         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
331         renaming and add support for CCC/CCXC.
332         (output_cbranch): Likewise.
333         (sparc_print_operand): Likewise.
334         (gen_v9_scc): Remove obsolete assertion.
335         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
336         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
337         (output_cbcond): Remove bogus handling of CC modes.
338         (sparc_register_move_cost): Return 100 for NO_REGS.
339         * config/sparc/sparc.md (W): New mode iterator.
340         (length): Adjust for noov_compare64_operator renaming.
341         (cmpsi_sne): New instruction.
342         (cmpdi_sne): Likewise.
343         (seqdi_special): Delete.
344         (seqdi_special): Likewise.
345         (snesi<P:mode>_special): Likewise.
346         (snedi_special): Likewise.
347         (snedi_special_vis3): Likewise.
348         (snesi patterns): Use W iterator.
349         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
350         (sltu patterns): Likewise.
351         (sgeu patterns): Likewise.
352         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
353         (normal_branch): Use icc_comparison_operator predicate.
354         (inverted_branch): Likewise.
355         (cbcond_sp32): Use comparison_operator predicate.
356         (cbcond_sp64): Likewise.
357         (normal_int_branch_sp64): Adjust for renaming
358         (inverted_int_branch_sp64): Likewise.
359         (mov<I:mode>_cc_reg_sp64): Likewise.
360         (movsf_cc_reg_sp6): Likewise.
361         (movdf_cc_reg_sp64): Likewise.
362         (movtf_cc_reg_hq_sp64): Likewise.
363         (movtf_cc_reg_sp64): Likewise.
364         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
365         (movsf_cc_v9): Likewise.
366         (movdf_cc_v9): Likewise.
367         (movtf_cc_hq_v9): Likewise.
368         (movtf_cc_v9): Likewise.
369         (adddi3): Call gen_adddi3_sp32.
370         (adddi3_insn_sp32): Rename to...
371         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
372         and use CCCmode for the carry.
373         (addx_extend_sp32): Use CCCmode for the carry.
374         (addx_extend_sp64): Delete.
375         (adddi3_extend_sp32): Use CCCmode for the carry.
376         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
377         (subdi3): Call gen_subdi3_sp32.
378         (subdi3_insn_sp32): Rename to...
379         (subdi3_sp32): ...this and use CCmode for the carry.
380         (subx_extend_sp32): Use CCCmode for the carry.
381         (subx_extend_sp64): Delete.
382         (subdi3_extend_sp32): Use CCmode for the carry.
383         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
384         (negdi3): Call gen_negdi3_sp32.
385         (negdi3_sp32): Use CCCmode for the carry.
386         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
387         (cmp_nz_ashift_1): Use CCNZ mode.
388         (cmp_nz_set_ashift_1): Likewise.
389         (ctrapsi4): Use comparison_operator predicate.
390         (ctrapdi4): Likewise.
391         (trapsi_insn): Use icc_comparison_operator predicate.
392         (trapdi_insn): Likewise.
393         (edge8 patterns): Use CCNZmode.
394         (edge16 patterns): Likewise.
395         (edge32 patterns): Likewise.
397 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
399         * config/visium/visium-modes.def (CC_NOOV): Rename into...
400         (CCNZ): ...this.
401         (CC_BTST): Rename into...
402         (CCC): ...this.
403         * config/visium/predicates.md (real_add_operand): New.
404         (visium_btst_operator): Rename into...
405         (visium_equality_comparison_operator): ...this.
406         (visium_noov_operator): Rename into...
407         (visium_nz_comparison_operator): ...this.
408         (visium_c_comparison_operator): New.
409         (visium_branch_operator): Adjust and deal with all CC modes.
410         * config/visium/visium.c (visium_adjust_cost): Adjust.
411         (visium_split_double_add): Use the *_set_carry patterns.
412         (visium_select_cc_mode): Add support for CCC mode and adjust.
413         (output_cbranch): Adjust and use the carry-based operators for
414         floating-point comparisons.
415         * config/visium/visium.md (flags_subst_arith): Adjust.
416         (addsi3_insn_set_carry): New instruction.
417         (subsi3_insn_set_carry): Likewise.
418         (negsi2_insn_set_carry): Likewise.
419         (btst): Adjust.
420         (cmp<mode>_sne): Likewise.
421         (cbranch<mode>4): Use ordered_comparison_operator.
422         (cbranch<mode>4_insn): Likewise.
423         (cbranchsi4_btst_insn): Adjust.
425 2016-10-11  Tom de Vries  <tom@codesourcery.com>
427         PR middle-end/77558
428         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
429         special-casing.
431 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
433         * tree.h (build_complex_type): Add second parameter with default.
434         * tree.c (build_complex_type): Add NAMED second parameter and adjust
435         recursive call.  Create a TYPE_DECL only if NAMED is true.
436         (build_common_tree_nodes): Pass true in calls to build_complex_type.
438 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
440         New avr-passes.def to register AVR specific passes.
442         * config/avr/avr-passes.def: New file.
443         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
444         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
445         (make_avr_pass_recompute_note): New proto.
446         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
447         (avr_pass_recompute_notes): Use anonymous namespace.
448         (avr_register_passes): Remove function...
449         (avr_option_override): ...and its call.
451 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
453         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
454         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
455         PTF_AVOID_BRANCHLIKELY_SPEED for others.
456         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
457         flags.
458         * config/mips/mips.c (mips_option_override): Enable the branch
459         likely depending on the tune flags and optimization level.
460         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
461         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
462         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
463         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
465 2016-10-11  Richard Biener  <rguenther@suse.de>
467         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
468         (output_function): Properly stream the whole block tree.
469         * lto-streamer-in.c (input_function): Likewise.
471 2016-10-11  Marek Polacek  <polacek@redhat.com>
473         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
475 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
477         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
478         (evrp_dom_walker::before_dom_children): Infer and push new value
479         ranges for x in y < x.
481 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
483         PR target/77586
484         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
485         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
486         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
487         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
488         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
489         (IA64_NO_LIBGCC_TFMODE): Likewise.
491 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
493         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
494           copying.
496 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
498         * config.gcc: Add aarch64-*-freebsd* support.
499         * config.host: Likewise.
500         * config/aarch64/aarch64-freebsd.h: New file.
501         * config/aarch64/t-aarch64-freebsd: Ditto.
503 2016-10-10  Jeff Law  <law@redhat.com>
505         PR tree-optimization/71947
506         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
507         B with A within a single statement.
509 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
511         PR tree-optimization/77824
512         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
513         zero cost for copies.
514         (find_candidates_dom_walker::before_dom_children): Replace
515         MODIFY_EXPR with SSA_NAME.
516         (replace_mult_candidate): Likewise.
517         (replace_profitable_candidates): Likewise.
519 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
521         * config/s390/s390.h: Wrap more macros args in brackets and fix
523 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
525         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
527 2016-10-10  Andreas Schwab  <schwab@suse.de>
529         PR target/77738
530         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
531         pseudo is not DImode.
533 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
535         * common/config/arc/arc-common.c (arc_option_optimization_table):
536         Remove compact casesi option.
537         * config/arc/arc.c (arc_override_options): Use compact casesi
538         option only for pre-ARCv2 cores.
539         * doc/invoke.texi (mcompact-casesi): Update text.
541 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
543         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
544         Add macro to say we can efficiently handle overlapping unaligned
545         loads.
546         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
547         poor code for processors older than p8.
549 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
551         * gen-pass-instances.awk: Remove GNUism.
553 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
555         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
556         NULL of (*ipcp_transformations)][node->uid].
558 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
560         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
561         (MALLOC_ABI_ALIGNMENT): Define.
563 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
565         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
566         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
567         VAR_OR_FUNCTION_DECL_P macros.
568         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
569         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
570         chkp_find_bounds_1): Likewise.
571         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
572         * hsa-gen.c (get_symbol_for_decl): Likewise.
573         * cgraphunit.c (check_global_declaration, analyze_functions,
574         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
575         Likewise.
576         * gimple-fold.c (can_refer_decl_in_current_unit_p,
577         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
578         Likewise.
579         * tree.c (set_decl_section_name, copy_node_stat,
580         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
581         merge_dllimport_decl_attributes, handle_dll_attribute,
582         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
583         verify_type): Likewise.
584         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
585         find_explicit_erroneous_behavior): Likewise.
586         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
587         * ipa.c (process_references): Likewise.
588         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
589         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
590         notice_global_symbol, assemble_variable, mark_decl_referenced,
591         build_constant_desc, output_constant_def_contents, do_assemble_alias,
592         make_decl_one_only, default_section_type_flags,
593         categorize_decl_for_section, default_encode_section_info): Likewise.
594         * trans-mem.c (requires_barrier): Likewise.
595         * gimple-expr.c (mark_addressable): Likewise.
596         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
597         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
598         expand_debug_expr): Likewise.
599         * tree-dump.c (dequeue_and_dump): Likewise.
600         * ubsan.c (instrument_bool_enum_load): Likewise.
601         * tree-pretty-print.c (print_declaration): Likewise.
602         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
603         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
604         * asan.c (asan_protect_global, instrument_derefs): Likewise.
605         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
606         pass_build_ssa::execute): Likewise.
607         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
608         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
609         Likewise.
610         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
611         Likewise.
612         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
613         can_be_nonlocal, remap_decls, copy_debug_stmt,
614         initialize_inlined_parameters, add_local_variables,
615         reset_debug_binding, replace_locals_op): Likewise.
616         * dse.c (can_escape): Likewise.
617         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
618         Likewise.
619         * tree-diagnostic.c (default_tree_printer): Likewise.
620         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
621         unpack_ts_decl_with_vis_value_fields,
622         lto_input_ts_decl_common_tree_pointers): Likewise.
623         * builtins.c (builtin_save_expr, fold_builtin_expect,
624         readonly_data_expr): Likewise.
625         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
626         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
627         Likewise.
628         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
629         * gimplify.c (force_constant_size, gimplify_bind_expr,
630         gimplify_decl_expr, gimplify_var_or_parm_decl,
631         gimplify_compound_lval, gimplify_init_constructor,
632         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
633         gimplify_type_sizes): Likewise.
634         * cgraphbuild.c (record_reference, record_type_list, mark_address,
635         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
636         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
637         remove_unused_locals): Likewise.
638         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
639         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
640         * function.c (instantiate_expr, instantiate_decls_1,
641         setjmp_vars_warning, add_local_decl): Likewise.
642         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
643         Likewise.
644         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
645         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
646         optimize_va_list_gpr_fpr_size): Likewise.
647         * tree-nrv.c (pass_nrv::execute): Likewise.
648         * tsan.c (instrument_expr): Likewise.
649         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
650         * vtable-verify.c (verify_bb_vtables): Likewise.
651         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
652         get_ref_base_and_extent): Likewise.
653         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
654         Likewise.
655         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
656         analyze_all_variable_accesses): Likewise.
657         * tree-nested.c (get_nonlocal_debug_decl,
658         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
659         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
660         get_local_debug_decl, convert_local_omp_clauses,
661         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
662         Likewise.
663         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
664         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
665         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
666         dbxout_symbol, dbxout_common_check): Likewise.
667         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
668         string_constant): Likewise.
669         * hsa.c (hsa_get_declaration_name): Likewise.
670         * passes.c (rest_of_decl_compilation): Likewise.
671         * tree-ssanames.c (make_ssa_name_fn): Likewise.
672         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
673         pack_ts_decl_with_vis_value_fields,
674         write_ts_decl_common_tree_pointers): Likewise.
675         * stor-layout.c (place_field): Likewise.
676         * symtab.c (symtab_node::maybe_create_reference,
677         symtab_node::verify_base, symtab_node::make_decl_local,
678         symtab_node::copy_visibility_from,
679         symtab_node::can_increase_alignment_p): Likewise.
680         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
681         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
682         fortran_common, add_location_or_const_value_attribute,
683         add_scalar_info, add_linkage_name, set_block_abstract_flags,
684         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
685         optimize_one_addr_into_implicit_ptr,
686         optimize_location_into_implicit_ptr): Likewise.
687         * gimple-low.c (record_vars_into): Likewise.
688         * ipa-visibility.c (update_vtable_references): Likewise.
689         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
690         Likewise.
691         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
692         DFS::DFS_write_tree_body, write_symbol): Likewise.
693         * langhooks.c (lhd_warn_unused_global_decl,
694         lhd_set_decl_assembler_name): Likewise.
695         * attribs.c (decl_attributes): Likewise.
696         * except.c (output_ttype): Likewise.
697         * varpool.c (varpool_node::get_create, ctor_for_folding,
698         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
699         * fold-const.c (fold_unary_loc): Likewise.
700         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
701         ipa_find_agg_cst_from_init): Likewise.
702         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
703         expand_omp_target, lower_omp_regimplify_p,
704         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
705         find_link_var_op): Likewise.
706         * tree-chrec.c (chrec_contains_symbols): Likewise.
707         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
708         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
709         execute_fixup_cfg): Likewise.
711         PR tree-optimization/77901
712         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
713         if ranges[i].exp is SSA_NAME when looking for >= and only when
714         ranges[i].exp is NULL or SSA_NAME when looking for the other
715         comparison.
717 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
719         * ipa-cp.c (ipcp_alignment_lattice): Remove.
720         (ipcp_param_lattices): Remove field alignment.
721         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
722         (set_all_contains_variable): Remove call to
723         ipcp_alignment_lattice::set_to_bottom.
724         (initialize_node_lattices): Likewise.
725         (propagate_alignment_accross_jump_function): Remove.
726         (propagate_constants_accross_call): Remove call to
727         propagate_alignment_accross_jump_function.
728         (ipcp_store_alignment_results): Remove.
729         (ipcp_driver): Remove call to ipcp_store_alignment_results.
730         (propagate_bits_accross_jump_function): Handle ancestor jump function.
731         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
732         pretty-printing of alignment jump function.
733         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
734         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
735         alignments and remove computing ipa_alignment jump function.
736         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
737         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
738         (ipa_read_jump_function): Remove reading of ipa_alignment.
739         (write_ipcp_transformation_info): Remove streaming for alignment
740         propagation summary.
741         (read_ipcp_transformation_info): Remove reading of alignment
742         propagation summary.
743         (ipcp_update_alignments): Remove.
744         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
745         type.
746         (ipcp_transform_function): Remove call to ipcp_update_alignments()
747         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
748         * ipa-prop.h (ipa_alignment): Remove.
749         (ipa_jump_func): Remove field alignment.
750         (ipcp_transformation_summary): Remove field alignments.
751         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
752         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
753         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
755 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
757         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
759         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
760         change.
761         (visium_expand_fp_cstore): Likewise.
763 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
765         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
766         * diagnostic.c (warning_at_rich_loc_n): New function.
767         (diagnostic_n_impl_richloc): Likewise.
768         (diagnostic_n_impl): Move most of the function to
769         diagnostic_n_impl_richloc and call it.
771 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
773         * gen-pass-instances.awk: Rewritten.
774         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
775         $(PASSES_EXTRA) after passes.def to the script.
776         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
777         * config/i386/i386-passes.def: New file.
778         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
779         make_pass_stv): Declare.
780         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
781         false.
782         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
783         or !TARGET_64BIT.
784         (pass_stv::clone, pass_stv::set_pass_param): New methods.
785         (pass_stv::timode_p): New non-static data member.
786         (ix86_option_override): Don't register passes here.
788         * doc/invoke.texi: Document accepting Else, fallthrough.
790         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
791         style changes.
793         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
794         FALLTHRU comment styles.
796 2016-10-07  Andrew Pinski  <apinski@cavium.com>
798         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
799         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
800         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
801         Likewise.
802         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
803         Likewise.
804         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
805         Likewise.
806         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
807         (AARCH64_ARCH): Likewise.
808         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
809         Likewise.
810         (AARCH64_CORE): Likewise.
811         (AARCH64_ARCH): Likewise.
812         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
813         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
814         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
815         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
816         (AARCH64_ARCH): Likewise.
817         (AARCH64_CORE): Likewise.
818         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
819         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
820         (AARCH64_CORE): Likewise.
821         (AARCH64_ARCH): Likewise.
823 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
825         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
826         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
827         floating point type infrastructre, and -mfloat128 that enables the
828         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
829         if -mfloat128-type.  Define __ibm128 to be long double by default.
830         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
831         the IEEE 128-bit floating point type infrastructure should
832         automatically be enabled.
833         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
834         instead of -mfloat128 to enable KFmode.
835         (rs6000_option_override_internal): Split the option -mfloat128
836         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
837         systems, automatically set -mfloat128-type, but don't enable it on
838         other operating systems.  Move setting the long double size and
839         IEEE quad support before the IEEE 128-bit floating point changes.
840         (rs6000_init_builtins): Do not create a unique type for __ibm128
841         if long double is IBM extended double, instead rely on __ibm128
842         being defined as 'long double'.  If -mfloat128-type and not
843         -mfloat128, create the KFmode type with an undocumented __ieee128
844         keyword.
845         (rs6000_init_libfuncs): Use -mfloat128-type instead of
846         -mfloat128 for tests about the types, but keep tests for
847         -mfloat128 to enable the keyword support.
848         (rs6000_complex_function_value): Likewise.
849         (rs6000_scalar_mode_supported_p): Likewise.
850         (rs6000_floatn_mode): Likewise.
851         (rs6000_c_mode_for_suffix): Likewise.
852         (rs6000_opt_masks): Add -mfloat128-type.
853         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
854         -mfloat128-type being split from -mfloat128.  Add
855         -mfloat128-hardware, which was missing.
856         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
857         -mfloat128 and -mfloat128-type:
858         (-mfloat128-type): Likewise.
859         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
860         that 64-bit Linux systems with enable -mfloat128-type by default
861         on VSX systems.
862         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
863         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
864         -mfloat128-type instead of -mfloat128.
865         (FLOAT128_2REG_P): Likewise.
866         (MASK_FLOAT128_TYPE): Likewise.
867         (ALTIVEC_ARG_MAX_RETURN): Likewise.
868         (RS6000_BTM_FLOAT128): Likewise.
869         (TARGET_FLOAT128): Poison old identifiers.
870         (OPTION_MASK_FLOAT128): Likewise.
871         (MASK_FLOAT128): Likewise.
872         * config/rs6000/rs6000.md (FP): Likewise.
873         (FLOAT128): Likewise.
874         (fix_trunc<mode>di2): Likewise.
875         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
876         (floatdi<mode>2): Likewise.
877         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
878         (neg<mode>2, FLOAT128 iterator): Likewise.
879         (abs<mode>2, FLOAT128 iterator): Likewise.
880         (ieee_128bit_negative_zero): Likewise.
881         (ieee_128bit_vsx_neg<mode>2): Likewise.
882         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
883         (ieee_128bit_vsx_abs<mode>2): Likewise.
884         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
885         (ieee_128bit_vsx_nabs<mode>2): Likewise.
886         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
887         (extendiftf2): Likewise.
888         (extendifkf2): Likewise.
889         (extendtfkf2): Likewise.
890         (trunciftf2): Likewise.
891         (truncifkf2): Likewise.
892         (trunckftf2): Likewise.
893         (trunctfif2): Likewise.
894         (extendkftf2): Likewise.
895         (trunctfkf2): Likewise.
897 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
899         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
900         before merging in bytes to pass down to real_from_target.
902 2016-10-07  Richard Biener  <rguenther@suse.de>
904         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
905         required hack.
906         (substitute_and_fold_dom_walker::before_dom_children):
907         Substitute and fold before pass specific folding to avoid
908         feeding that with SSA names that will be later released.
909         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
910         introduced by folding and visited by evaluate_stmt called during
911         ccp_fold_stmt.
912         (likely_value): Likewise.
913         (evaluate_stmt): Likewise.
914         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
915         (simplify_div_or_mod_using_ranges): Likewise.
916         (simplify_min_or_max_using_ranges): Likewise.
917         (simplify_abs_using_ranges): Likewise.
918         (simplify_conversion_using_ranges): Likewise.
919         (simplify_float_conversion_using_ranges): Likewise.
920         (simplify_stmt_using_ranges): Likewise.
922 2016-10-07  Marek Polacek  <polacek@redhat.com>
924         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
925         FALLTHROUGH_LABEL_P here...
926         (warn_implicit_fallthrough_r): ...not here.
928 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
930         PR tree-optimization/77880
931         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
932         necessary.
934 2016-10-07  Marek Polacek  <polacek@redhat.com>
936         PR c++/77803
937         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
939 2016-10-07  Richard Biener  <rguenther@suse.de>
941         * bitmap.h: Document constraints on bitmap modification while
942         iterating over it.
944 2016-10-07  Richard Biener  <rguenther@suse.de>
946         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
947         * bitmap.h (bmp_iter_set): When advancing to the next element
948         check that we didn't remove the current one.
949         (bmp_iter_and): Likewise.
950         (bmp_iter_and_compl): Likewise.
951         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
952         we currently iterate on but keep a one-level queue.
953         * sched-deps.c (remove_from_deps): Do not clear current bit
954         but keep a one-level queue.
956 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
958         PR tree-optimization/77664
959         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
960         for the other ranges.
961         (optimize_range_tests_diff): Fix up formatting.
962         (optimize_range_tests_var_bound): New function.
963         (optimize_range_tests): Use it.
965 2016-10-07  Martin Liska  <mliska@suse.cz>
967         * coverage.c (build_gcov_exit_decl): Fix priority what
968         should be really 99.
970 2016-10-07  Richard Biener  <rguenther@suse.de>
972         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
973         vars in gimple_bind_vars but not in BLOCK_VARS.
975 2016-10-07  Richard Biener  <rguenther@suse.de>
977         PR tree-optimization/77879
978         * tree-ssa-structalias.c (handle_const_call): Properly handle
979         NRV return slots.
980         (handle_pure_call): Likewise.
982 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
984         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
985         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
986         possible overflow.
988 2016-10-06  Andrew Pinski  <apinski@cavium.com>
990         * config/aarch64/aarch64-cores.def: Add a comment before each
991         set of cores.
993 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
995         PR tree-optimization/77862
996         * tree-vrp.c (add_equivalence): Use get_value_range so that
997         num_vr_values is checked before accessing vr_values.
999 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
1001         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
1002           POINTER_TYPE_P.
1004 2016-10-05  Jeff Law  <law@redhat.com>
1006         PR tree-optimization/71661
1007         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
1008         removal of a forwarder exposes a new natural loop.
1010 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
1012         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
1013         Introduce ssesuffix variable.
1014         (<mask_codefor><code><mode>3<mask_name>): Ditto.
1015         (*<code><mode>3): Ditto.
1017 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
1019         * postreload.c (reload_cse_simplify): Skip also USE when detecting
1020         noop move.
1022 2016-10-06  Richard Biener  <rguenther@suse.de>
1024         PR tree-optimization/77855
1025         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
1026         instead of removing the current item while iterating over the set
1027         which is not safe.
1029 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
1030             Eric Botcazou  <ebotcazou@adacore.com>
1032         PR target/77759
1033         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
1034         (classify_registers): Don't set it
1035         (function_arg_slotno): Don't initialize and test it.  Tidy up.
1037 2016-10-06  Richard Biener  <rguenther@suse.de>
1039         PR tree-optimization/77839
1040         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
1041         lattice transition.
1043 2016-10-06  Martin Liska  <mliska@suse.cz>
1045         * gcc.c: Set -fprofile-update=atomic when profiling is
1046         enabled and -pthread is set.  Warn when one combines
1047         -pthread and -fprofile-update=single for an app using
1048         profiling code.
1050 2016-10-06  Martin Liska  <mliska@suse.cz>
1052         PR bootstrap/77788
1053         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
1054         * gimple-ssa-strength-reduction.c (slsr_process_cast):
1055         Initialize a pointer to NULL.
1056         (slsr_process_copy): Likewise.
1057         * input.c (location_get_source_line): Likewise.
1058         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
1060 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
1062         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
1063         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
1064         (ix86_handle_option): Deleted handle of OPT_mpcommit.
1065         * config.gcc: Deleted pcommitintrin.h
1066         * config/i386/pcommitintrin.h: Deleted file.
1067         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
1068         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
1069         detection.
1070         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
1071         __PCOMMIT__.
1072         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
1073         (PTA_PCOMMIT): Deleted define.
1074         (ix86_option_override_internal): Deleted handle of option.
1075         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
1076         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
1077         __builtin_ia32_pcommit): Deleted.
1078         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
1079         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
1080         (pcommit): Deleted instruction.
1081         * config/i386/i386.opt: Mention -mpcommit deprecation.
1082         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
1084 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
1086         PR target/77874
1087         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
1088         Remove wrong assert.
1089         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
1090         Use <round_constraint> as operand 1 constraint.
1092 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
1094         PR sanitizer/66343
1095         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
1096         (ubsan_instrument_float_cast): And not here.
1098         PR sanitizer/66343
1099         * ubsan.c (ubsan_ids): New GTY(()) array.
1100         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
1101         instead of static local counters.
1103 2016-10-05  Martin Sebor  <msebor@redhat.com>
1105         PR bootstrap/77819
1106         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
1107         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
1108         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
1109         (default_printf_pointer_format): Define function.
1110         * targhooks.c (linux_printf_pointer_format): Define new function.
1111         * targhooks.h (linux_printf_pointer_format): Declare.
1112         (gnu_libc_printf_pointer_format): Remove declaration.
1114 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1116         * fold-const.c (native_encode_real): Fix logic for selecting offset
1117         to write to when BYTES_BIG_ENDIAN.
1119 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
1121         * builtins.c (fold_builtin_strchr): Remove function.
1122         (fold_builtin_strrchr): Likewise.
1123         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1124         * gimple-fold.c (target_char_cst_p): New function.
1125         (gimple_fold_builtin_strchr) Add more foldings.
1126         (gimple_fold_builtin): Add index, strrchr, rindex cases.
1128 2016-10-05  Richard Biener  <rguenther@suse.de>
1130         PR middle-end/77863
1131         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1132         capture ids in c-exprs.
1134 2016-10-05  Richard Biener  <rguenther@suse.de>
1136         PR middle-end/77826
1137         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1138         with types_match for GIMPLE code gen to handle type mismatched
1139         constants properly.
1140         (dt_operand::gen): Adjust.
1141         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1142         and constant A.
1144 2016-10-05  Richard Biener  <rguenther@suse.de>
1146         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1148 2016-10-05  Richard Biener  <rguenther@suse.de>
1150         PR middle-end/77842
1151         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1153 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
1155         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1156         version check to protect only DW_TAG_imported_module generation.
1158 2016-10-05  Richard Biener  <rguenther@suse.de>
1160         PR middle-end/55152
1161         * match.pd (min(a,-a) -> -abs(a)): New pattern.
1163 2016-10-04  Ian Lance Taylor  <iant@golang.org>
1165         * explow.c (allocate_dynamic_stack_space): Call
1166         do_pending_stack_adjust before handling flag_split_stack.
1168 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
1170         * genattrtab.c (make_internal_attr): Supply dummy column number to
1171         file_location ctor.
1172         (main): Likewise.
1173         * genoutput.c (init_insn_for_nothing): Likewise.
1174         * gensupport.c (add_define_attr): Likewise.
1175         * read-md.c (message_at_1): Print column number.
1176         (fatal_with_file_and_line): Likewise.
1177         (rtx_reader::read_char): Track column numbers.
1178         (rtx_reader::unread_char): Likewise.
1179         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1180         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1181         (rtx_reader::handle_file): Initialize m_read_md_colno.
1182         (rtx_reader::get_current_location): Supply column number to
1183         file_location ctor.
1184         * read-md.h (struct file_location): Add field "colno".
1185         (file_location::file_location): Likewise.
1186         (rtx_reader::get_colno): New accessor.
1187         (rtx_reader::m_read_md_colno): New field.
1188         (rtx_reader::m_last_line_colno): New field.
1190 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1192         * doc/extend.texi (Java Exceptions): Remove.
1193         (java_interface): Remove.
1195 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
1197         PR tree-optimization/77808
1198         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1199         and addr are different before copying points-to information.
1201 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1203         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1204         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1205         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1206         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1208 2016-10-04  Richard Biener  <rguenther@suse.de>
1210         PR tree-optimization/77399
1211         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1212         verify the target can convert.
1214 2016-10-04  Richard Biener  <rguenther@suse.de>
1216         PR middle-end/77833
1217         * explow.c (plus_constant): Verify the mode of the constant
1218         pool offset before calling plus_constant.
1220 2016-10-04  Richard Biener  <rguenther@suse.de>
1222         PR middle-end/77407
1223         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1224         type support, mark with :C.
1225         (X / -X -> -1): Mark with :C.
1227 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1229         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1230         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1231         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1232         * doc/tm.texi: Regenerated.
1233         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1234         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1235         * config/darwin.h (JCR_SECTION_NAME): Remove.
1236         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1237         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1238         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1239         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1240         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1241         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1243 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1245         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1246         between "because" and "param" in dump message in call to fprintf.
1248 2016-10-03  Jeff Law  <law@redhat.com>
1250         PR tree-optimization/71550
1251         PR tree-optimization/71403
1252         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1253         (profitable_jump_thread_path): Also return boolean indicating if
1254         the realized path will create an irreducible loop.
1255         Remove loop depth tests from 71403.
1256         (fsm_find_control_statement_thread_paths): Remove loop depth tests
1257         from 71403.  If threading will create an irreducible loop, then
1258         throw away loop iteration and related information.
1260 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
1262         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1263         -Woverloaded-virtual checks for warning options.
1264         * configure: Regenerate.
1266 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1268         PR preprocessor/77699
1269         * input.c (maybe_grow): Don't allocate one byte extra headroom.
1270         (get_next_line): Return false on error.
1271         (read_next_line): Removed, use get_next_line instead.
1272         (read_line_num): Don't copy the line.
1273         (location_get_source_line): Don't use static data.
1274         (selftest::test_reading_source_line): Add more test cases.
1276 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1278         Revert
1279         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1281         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1282         (noce_process_if_block): Use it.
1284 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1286         * doc/invoke.texi: Update -Wint-in-bool-context.
1288 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
1290         * dwarf2out.c (output_fde, output_call_frame_info,
1291         dwarf2out_do_cfi_startproc, set_indirect_string,
1292         gen_internal_sym, output_die, output_line_info): Use
1293         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1294         ASM_GENERATE_INTERNAL_LABEL output.
1296 2016-10-01  Richard Biener  <rguenther@suse.de>
1298         PR middle-end/77798
1299         * genmatch.c (get_operand_type): Add operand position arg
1300         and handle COND_EXPR comparison operand with fixed boolean_type_node.
1301         (expr::gen_transform): Adjust.
1302         (dt_simplify::gen_1): Likewise.
1304 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
1306         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1307         comments.  Simplify asserts, remove unnecessary conditions.
1308         Formatting fixes.
1309         (*<code><mode>3): Likewise.
1311 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
1313         * doc/invoke.texi (-Wregister): Document.
1315 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1317         * configure.ac: Split CHECKING_P into CHECKING_P and
1318         ENABLE_EXTRA_CHECKING.
1319         * configure: Regenerated.
1320         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
1321         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1323 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
1325         PR other/31566
1326         * gcc.c (process_command): For @filename handling, output
1327         the correct name if the file does not exist.
1329 2016-09-30  Marek Polacek  <polacek@redhat.com>
1331         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1332         * config/alpha/predicates.md: Likewise.
1334 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1336         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1337         (noce_process_if_block): Use it.
1339 2016-09-30  Martin Liska  <mliska@suse.cz>
1341         * doc/invoke.texi: Document asan-use-after-return that
1342         it's disabled by default in runtime.
1344 2016-09-30  Richard Biener  <rguenther@suse.de>
1346         * tree-vrp.c (intersect_ranges): If we failed to handle
1347         the intersection choose a constant singleton range if available.
1349 2016-09-30  Richard Biener  <rguenther@suse.de>
1351         PR tree-optimization/77399
1352         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1353         float <-> int conversions.
1355 2016-09-30  Alan Modra  <amodra@gmail.com>
1357         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1359 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1361         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1362         ext_level before calling CPUID with 0x80000008.
1363         Simplify xgetbv checks.
1365 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
1367         * Makefile.in (OBJS): Add print-rtl-function.o.
1368         * print-rtl-function.c: New file.
1369         * print-rtl.h (print_rtx_function): New decl.
1371 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1373         PR target/77756
1374         * config/i386/cpuid.h (__get_cpuid_count): New.
1375         (__get_cpuid): Rename __level to __leaf.
1377 2016-09-29  Marek Polacek  <polacek@redhat.com>
1379         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1381 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
1383         * builtins.c (expand_builtin_memcmp): don't swap args unless
1384         result is only being compared with zero.
1386 2016-09-29  Marek Polacek  <polacek@redhat.com>
1388         * dwarf2out.c (loc_descriptor): Add fall through comment.
1389         (add_const_value_attribute): Likewise.
1391 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
1393         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1394         with "v6t2".  Move "arch" attribute above "pool_range".
1395         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1396         with "v6t2".
1397         (*thumb2_movhi_vfp): Likewise.
1398         (*arm_movhi_fp16): Likewise.
1399         (*thumb2_movhi_fp16): Likewise.
1400         (*arm_movsi_vfp): Remove "arch" attribute.
1401         (*thumb2_movsi_vfp): Likewise.
1403 2016-09-29  Martin Liska  <mliska@suse.cz>
1405         * doc/extend.texi: Remove limitation of Objective C for
1406         __attribute__((constructor)) and __attribute__((destructor)).
1408 2016-09-29  Richard Biener  <rguenther@suse.de>
1410         PR tree-optimization/77768
1411         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1412         Handle stores to readonly memory when removing redundant stores.
1414 2016-09-29  Richard Biener  <rguenther@suse.de>
1416         PR middle-end/77407
1417         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1418         X / -X -> -1 simplifications.
1420 2016-09-29  Richard Biener  <rguenther@suse.de>
1422         PR middle-end/55152
1423         * match.pd: Add max(a,-a) -> abs(a) pattern.
1424         * tree-ssa-phiopt.c (minmax_replacement): Disable for
1425         HONOR_SIGNED_ZEROS types.
1427 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1429         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1430         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1432 2016-09-29  Richard Biener  <rguenther@suse.de>
1434         * tree-vrp.c (set_defs_to_varying): New helper avoiding
1435         writing to vr_const_varying.
1436         (vrp_initialize): Call it.
1437         (vrp_visit_stmt): Likewise.
1438         (evrp_dom_walker::before_dom_children): Likewise.
1440 2016-09-29  Richard Biener  <rguenther@suse.de>
1442         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
1443         constructors with vector elements.
1445 2016-09-29  Richard Biener  <rguenther@suse.de>
1447         PR tree-optimization/77768
1448         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1449         with stores to a place we know has a constant value.
1451 2016-09-29  Alan Modra  <amodra@gmail.com>
1453         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
1454         * doc/invoke.texi: Document it.
1455         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
1456         (rs6000_passes_float): Comment.
1457         (rs6000_passes_long_double): New static var.
1458         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
1459         (init_cumulative_args): Set up to emit fp .gnu_attribute for
1460         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
1461         to include fp values returned in vectors.
1462         Set rs6000_passes_long_double.
1463         (rs6000_function_arg_advance_1): Likewise for function args.
1464         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
1465         and SPE.  Emit long double tag value too.
1466         (rs6000_opt_vars): Add gnu-attr.
1467         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
1468         * configure: Regenerate.
1469         * config.in: Regenerate.
1471 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
1473         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
1474         of 0 < x.
1475         (format_floating, format_string, format_directive,
1476         get_destination_size, pass_sprintf_length::handle_gimple_call):
1477         Likewise.
1479 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
1481         * gimple-ssa-sprintf.c: Fix comment formatting.
1482         (format_integer): Use is_gimple_assign.
1483         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
1484         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
1485         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
1486         (pass_sprintf_length::execute): Use is_gimple_call.
1488 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1490         * gimple-fold.c (gimple_fold_builtin): After failing to fold
1491         strchr, also try the generic folding.
1493 2016-09-28  Martin Sebor  <msebor@redhat.com>
1495         PR c/77762
1496         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1497         Fix typos.
1499 2016-09-28  Martin Sebor  <msebor@redhat.com>
1501         PR middle-end/77683
1502         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
1503         length modifier is not expected.
1504         (format_floating): Ignore l length modifier and fail gracefuly
1505         when it isn't one of the other expected ones.
1507 2016-09-28  Martin Sebor  <msebor@redhat.com>
1509         PR bootstrap/77753
1510         * varasm.c (assemble_addr_to_section): Increase local buffer size.
1512 2016-09-27  Richard Biener  <rguenther@suse.de>
1514         * dwarf2out.c (cu_die_list): New global.
1515         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
1516         main_comp_unit_die to cu_die_list if we created it.
1517         Move break_out_includes ...
1518         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
1519         the cu_die_list.
1521 2016-09-28  Richard Biener  <rguenther@suse.de>
1523         * dwarf2out.c (struct die_struct): Add removed flag.
1524         (lookup_type_die): If the DIE is marked as removed, clear
1525         TYPE_SYMTAB_DIE and return NULL.
1526         (lookup_decl_die): If the DIE is marked as removed, remove it
1527         from the hash and return NULL.
1528         (mark_removed): New helper.
1529         (prune_unused_types_prune): Call it for removed DIEs.
1530         (gen_subprogram_die): Move the premark_used_types call to after
1531         DIEs for the functions scopes are generated.
1532         (process_scope_var): Do not re-create pruned types or type decls.
1533         Make sure to also re-parent type decls.
1534         (dwarf2out_finish): Move unused type pruning and debug_types
1535         handling ...
1536         (dwarf2out_early_finish): ... here.
1538 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
1540         * config/arc/arc-c.c: New file.
1541         * config/arc/arc-c.def: Likewise.
1542         * config/arc/t-arc: Likewise.
1543         * config.gcc: Include arc-c.o as c and cpp object.
1544         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
1545         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
1546         arc_cpu_cpp_builtins.
1548 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
1550         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
1551         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
1553 2016-09-28  Nathan Sidwell  <nathan@acm.org>
1555         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
1556         printing.
1558 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1560         PR tree-optimization/61056
1561         * gimple-fold.c (gimple_fold_builtin_strchr):
1562         New function to optimize strchr (s, 0) to strlen.
1563         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
1565 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1567         PR tree-optimization/77724
1568         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
1569         Add tree_fits_shwi_p check.
1571 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1573         * auto-inc-dec.c (try_merge): Remove break after return.
1574         * cselib.c (autoinc_split): Likewise.
1575         * explow.c (promote_mode): Likewise.
1576         * fixed-value.c (fixed_arithmetic): Likewise.
1577         * hsa.c (hsa_internal_fn::get_arity): Likewise.
1578         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
1579         * trans-mem.c (get_attrs_for): Likewise.
1580         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1581         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
1582         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
1583         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
1584         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
1585         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
1586         * config/cris/cris.c (cris_op_str): Likewise.
1587         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
1588         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
1590 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
1592         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
1593         IFN_GOACC_REDUCTION_CODES): New.
1594         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
1595         ifn_goacc_reduction_kind): Use them.
1596         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
1597         of internal functions, when applicable.
1599 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
1601         * config/mips/constraints.md (d): Fix documentation.
1602         * doc/md.texi (Machine Constraints): Update accordingly.
1604 2016-09-27  Richard Biener  <rguenther@suse.de>
1606         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
1607         cur_line_info_table initialization ...
1608         (dwarf2out_assembly_start): ... here.
1610 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
1612         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
1613         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
1614         (*thumb2_movhi_vfp): Likewise.
1615         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
1616         template.  Expand predicable attribute to mark VMOV.F16 as not
1617         predicable.  Add "arch" attribute.
1618         (*thumb2_movhi_fp16): Likewise.
1619         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
1620         (*thumb2_movsi_vfp): Add "arch" attribute.
1622 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1624         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1625         VAR_DECL string.
1627 2016-09-27  Marek Polacek  <polacek@redhat.com>
1629         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
1630         comment.
1632         * config/c6x/c6x.h: Adjust fall through comment.
1633         * config/sh/sh.c (final_prescan_insn): Likewise.
1634         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
1635         (visium_expand_fp_cstore): Likewise.
1637 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1639         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
1640         expected by -Wimplicit-fallthrough.
1641         (thumb1_size_rtx_costs): Likewise.
1642         (thumb2_reorg): Likewise.
1643         (tls_mentioned_p): Add "Fall through" comment.
1644         (thumb2_reorg): Likewise.
1645         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
1646         comment form expected by -Wimplicit-fallthrough.
1648 2016-09-27  Martin Liska  <mliska@suse.cz>
1650         PR gcov-profile/46266
1651         * input.h (RESERVED_LOCATION_P): New macro.
1652         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
1653         instread of comparison with UNKNOWN_LOCATION.
1655 2016-09-27  Richard Biener  <rguenther@suse.de>
1657         PR tree-optimization/77745
1658         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1659         When removing redundant stores make sure to check compatibility
1660         of the TBAA state for downstream accesses.
1661         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1662         value-numbering virtual operands for store matches.
1664 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
1666         PR target/51244
1667         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
1668         movrt patterns.  Match them before anything else in the SET case.
1670 2016-09-27  Martin Liska  <mliska@suse.cz>
1672         PR gcov-profile/7970
1673         PR gcov-profile/16855
1674         PR gcov-profile/44779
1675         * coverage.c (build_gcov_exit_decl): New function.
1676         (coverage_obj_init): Call the function and generate __gcov_exit
1677         destructor.
1678         * doc/gcov.texi: Document when __gcov_exit function is called.
1680 2016-09-27  Marek Polacek  <polacek@redhat.com>
1682         PR bootstrap/77751
1683         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1684         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
1685         -Wno-error instead of -Wno-implicit-fallthrough.
1687 2016-09-27  Martin Liska  <mliska@suse.cz>
1689         PR bootstrap/77749
1690         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
1692 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1694         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
1695         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
1696         comments.  Remove break after return.
1697         (ix86_fp_compare_code_to_integer, has_dispatch,
1698         ix86_simd_clone_usable): Remove break after return.
1700 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1702         PR rlt-optimization/77714
1703         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
1704         REG_EQUAL note.
1706 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
1708         PR ipa/77677
1709         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
1710         extract_range_from_unary_expr to convert value_range.
1711         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
1712         (extract_range_from_unary_expr): This.
1713         * tree-vrp.h (extract_range_from_unary_expr): Declare.
1715 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
1717         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
1719 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1721         * config/i386/i386.c (ix86_print_operand)
1722         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
1723         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
1724         (epilogue_renumber): Likewise.
1726 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
1728         PR middle-end/77719
1729         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
1730         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
1732 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1734         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1735         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
1736         is_mm_seq_cst, is_mm_sync): Move to ...
1737         * memmodel.h: This.  New file.
1738         * builtins.c: Include memmodel.h.
1739         * optabs.c: Likewise.
1740         * tsan.c: Likewise.
1741         * config/aarch64/aarch64.c: Likewise.
1742         * config/alpha/alpha.c: Likewise.
1743         * config/arm/arm.c: Likewise.
1744         * config/i386/i386.c: Likewise.
1745         * config/ia64/ia64.c: Likewise.
1746         * config/mips/mips.c: Likewise.
1747         * config/rs6000/rs6000.c: Likewise.
1748         * config/sparc/sparc.c: Likewise.
1749         * genconditions.c: Include memmodel.h in generated file.
1750         * genemit.c: Likewise.
1751         * genoutput.c: Likewise.
1752         * genpeep.c: Likewise.
1753         * genpreds.c: Likewise.
1754         * genrecog.c: Likewise.
1756 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
1758         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
1759         "c" instead when parsing characters.  Move operand parsing into...
1760         (read_rtx_operand): ...this new function, renaming "i" to "idx",
1761         and tightening the scope of various locals.
1763 2016-09-26  Liu Hao  <lh_mouse@126.com>
1765         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
1767 2016-09-26  Marek Polacek  <polacek@redhat.com>
1769         * system.h: Use __has_attribute to check whether the fallthrough
1770         attribute is supported.
1772 2016-09-26  Marek Polacek  <polacek@redhat.com>
1774         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
1775         gimple_call_internal_p.
1776         * ipa-split.c (find_return_bb): Likewise.
1777         (execute_split_functions): Likewise.
1778         * omp-low.c (dump_oacc_loop_part): Likewise.
1779         (oacc_loop_xform_head_tail): Likewise.
1780         * predict.c (predict_loops): Likewise.
1781         * sanopt.c (pass_sanopt::execute): Likewise.
1782         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
1783         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
1784         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
1785         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
1786         (expand_ifn_va_arg): Likewise.
1787         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1788         (optimize_mask_stores): Likewise.
1789         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
1790         (vect_transform_stmt): Likewise.
1791         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
1792         * tsan.c (instrument_memory_accesses): Likewise.
1794 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1795             Alexander Monakov  <amonakov@ispras.ru>
1797         * regrename.c (rename_chains): Check
1798         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
1799         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
1800         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1802 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1804         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
1805         (s390_sched_score): Likewise.
1807 2016-09-26  Martin Liska  <mliska@suse.cz>
1809         * doc/gcov.texi: Update program output of gcov tool.
1811 2016-09-26  Martin Liska  <mliska@suse.cz>
1813         PR gcov-profile/23332
1814         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
1815         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
1816         * value-prof.c (dump_histogram_value): Do not handle
1817         HIST_TYPE_CONST_DELTA.
1818         (stream_in_histogram_value): Likewise.
1819         (gimple_find_values_to_profile): Likewise.
1820         * value-prof.h (enum hist_type): Likewise.
1822 2016-09-26  Martin Liska  <mliska@suse.cz>
1824         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
1825         from default sanitize recover values.
1826         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
1827         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
1828         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
1829         consistent.
1830         * opts.c (finish_options): Do a generic loop over options
1831         that can be recovered.
1832         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
1833         SANITIZE_RETURN.
1834         (common_handle_option): Likewise.
1835         * opts.h: Declare can_recover to sanitizer_opts_s.
1837 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1839         * target.def(elf_flags_numeric): Change documentation to present tense.
1840         * doc/tm.texi: Regenerate.
1842 2016-09-26  Marek Polacek  <polacek@redhat.com>
1844         PR c/7652
1845         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1846         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
1847         -Wno-switch-fallthrough.
1848         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
1849         (expand_builtin): Likewise.
1850         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
1851         * convert.c (convert_to_real_1): Likewise.
1852         (convert_to_integer_1): Likewise.
1853         * final.c (output_alternate_entry_point): Likewise.
1854         * genattrtab.c (make_canonical): Likewise.
1855         (write_test_expr): Likewise.
1856         * genpreds.c (validate_exp): Likewise.
1857         * gimple-ssa-strength-reduction.c
1858         (find_candidates_dom_walker::before_dom_children): Likewise.
1859         * godump.c (go_format_type): Likewise.
1860         * reload1.c (elimination_effects): Likewise.
1861         * resource.c (mark_referenced_resources): Likewise.
1862         (mark_set_resources): Likewise.
1863         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
1864         * varasm.c (output_addressed_constants): Likewise.
1866 2016-09-26  Marek Polacek  <polacek@redhat.com>
1868         PR c/7652
1869         * common.opt (Wimplicit-fallthrough): New option.
1870         * doc/extend.texi: Document statement attributes and the fallthrough
1871         attribute.
1872         * doc/invoke.texi: Document -Wimplicit-fallthrough.
1873         * gimple.h (gimple_call_internal_p): New function.
1874         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
1875         (struct label_entry): New struct.
1876         (find_label_entry): New function.
1877         (case_label_p): New function.
1878         (collect_fallthrough_labels): New function.
1879         (last_stmt_in_scope): New function.
1880         (should_warn_for_implicit_fallthrough): New function.
1881         (warn_implicit_fallthrough_r): New function.
1882         (maybe_warn_implicit_fallthrough): New function.
1883         (expand_FALLTHROUGH_r): New function.
1884         (expand_FALLTHROUGH): New function.
1885         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
1886         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
1887         (gimplify_label_expr): New function.
1888         (gimplify_case_label_expr): Set location.
1889         (gimplify_expr): Call gimplify_label_expr.
1890         * internal-fn.c (expand_FALLTHROUGH): New function.
1891         * internal-fn.def (FALLTHROUGH): New internal function.
1892         * langhooks.c (lang_GNU_OBJC): New function.
1893         * langhooks.h (lang_GNU_OBJC): Declare.
1894         * system.h (gcc_fallthrough): Define.
1895         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
1896         * tree.h (FALLTHROUGH_LABEL_P): Define.
1898 2016-09-26  Richard Biener  <rguenther@suse.de>
1900         * dwarf2out.c (stripattributes): Remove unused function.
1901         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
1902         Push dwarf_split_debug_info handling into init_sections_and_labels.
1903         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
1904         (DEBUG_MACRO_SECTION_FLAGS): Remove.
1905         (debug_macinfo_section_name): New global.
1906         (output_macinfo): Use debug_macinfo_section_name.
1907         (init_sections_and_labels): Split out section and label generation
1908         from dwarf2out_init.  Set debug_macinfo_section_name.
1909         (dwarf2out_init): Move text section label generation and emission
1910         to ...
1911         (dwarf2out_assembly_start): ... here.
1912         (dwarf2out_finish): Call init_sections_and_labels before DWARF
1913         output starts.
1915 2016-09-26  Richard Biener  <rguenther@suse.de>
1917         PR debug/77692
1918         * cgraphunit.c (analyze_functions): Before early removing
1919         global vars calls the late_global_decl debug handler mark
1920         the variable as readonly.
1922 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1924         PR target/51244
1925         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
1926         (sh_rtx_costs): Handle SET of movt and movrt patterns.
1927         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
1928         declare new overloads.
1929         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
1930         operand.
1932 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1934         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
1935         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
1937 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1939         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1940         * configure: Regenerate.
1942 2016-09-24  Marek Polacek  <polacek@redhat.com>
1944         PR c/77490
1945         * doc/invoke.texi: Document -Wbool-operation.
1947 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1949         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
1950         * config/rs6000/rs6000.c (expand_block_compare): New function used by
1951         cmpmemsi pattern to do builtin expansion of memcmp ().
1952         (compute_current_alignment): Add helper function for
1953         expand_block_compare used to compute alignment as the compare proceeds.
1954         (select_block_compare_mode): Used by expand_block_compare to select
1955         the mode used for reading the next chunk of bytes in the compare.
1956         (do_load_for_compare): Used by expand_block_compare to emit the load
1957         insns for the compare.
1958         (rs6000_emit_dot_insn): Moved this function to avoid a forward
1959         reference from expand_block_compare ().
1960         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
1961         prototype for this function.
1962         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
1963         target option for controlling how much code inline expansion of
1964         memcmp() will be allowed to generate.
1966 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1968         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
1969         hook_bool_mode_false, hook_bool_mode_true,
1970         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1971         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1972         hook_bool_const_rtx_insn_const_rtx_insn_true,
1973         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
1974         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
1975         hook_bool_const_tree_hwi_hwi_const_tree_false,
1976         hook_bool_const_tree_hwi_hwi_const_tree_true,
1977         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
1978         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1979         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
1980         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
1981         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
1982         hook_bool_const_tree_true, hook_bool_tree_tree_false,
1983         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
1984         hook_bool_rtx_insn_true, hook_bool_rtx_false,
1985         hook_bool_uintp_uintp_false,
1986         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
1987         hook_rtx_tree_int_null, hook_uint_mode_0,
1988         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
1989         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
1990         hook_constcharptr_const_rtx_insn_null,
1991         hook_constcharptr_const_tree_const_tree_null,
1992         hook_constcharptr_int_const_tree_null,
1993         hook_constcharptr_int_const_tree_const_tree_null,
1994         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
1995         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
1996         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
1998         * vec.h (vNULL): Extend comment to say = vNULL initialization
1999         isn't needed for static vars.
2001         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
2002         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
2003         = vNULL initialization of file scope vec.
2004         * passes.c (pass_tab, enabled_pass_uid_range_tab,
2005         disabled_pass_uid_range_tab): Likewise.
2006         * haifa-sched.c (sched_luids, h_i_d): Likewise.
2007         * tree-chkp-opt.c (check_infos): Likewise.
2008         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
2010         * vec.h (vnull::operator vec): Add constexpr keyword for
2011         C++11 and later.
2013 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
2015         PR tree-optimization/77654
2016         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
2017         to duplicate_ssa_name_ptr_info.
2019 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
2021         PR preprocessor/77672
2022         * input.c (selftest::test_lexer_string_locations_simple): Update
2023         test to expect location information of the terminator character
2024         at the location of the final closing quote.
2025         (selftest::test_lexer_string_locations_hex): Likewise.
2026         (selftest::test_lexer_string_locations_oct): Likewise.
2027         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
2028         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
2029         (selftest::test_lexer_string_locations_ucn4): Likewise.
2030         (selftest::test_lexer_string_locations_ucn8): Likewise.
2031         (selftest::test_lexer_string_locations_u8): Likewise.
2032         (selftest::test_lexer_string_locations_utf8_source): Likewise.
2033         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
2034         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
2035         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
2036         (selftest::test_lexer_string_locations_macro): Likewise.
2037         (selftest::test_lexer_string_locations_long_line): Likewise.
2039 2016-09-23  Richard Biener  <rguenther@suse.de>
2041         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
2042         virtual definition to virtual use if the call devirtualizes
2043         to a const or pure function.
2044         (visit_use): Also visit calls we can devirtualize to a
2045         const or pure function.
2047 2016-09-23  Richard Biener  <rguenther@suse.de>
2049         PR tree-optimization/77697
2050         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
2051         signal error if we have sth ternary or unhandled.
2053 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2055         * config/arm/arm_neon.h (vabd_f16): New.
2056         (vabdq_f16): New.
2057         (vabs_f16): New.
2058         (vabsq_f16): New.
2059         (vadd_f16): New.
2060         (vaddq_f16): New.
2061         (vcage_f16): New.
2062         (vcageq_f16): New.
2063         (vcagt_f16): New.
2064         (vcagtq_f16): New.
2065         (vcale_f16): New.
2066         (vcaleq_f16): New.
2067         (vcalt_f16): New.
2068         (vcaltq_f16): New.
2069         (vceq_f16): New.
2070         (vceqq_f16): New.
2071         (vceqz_f16): New.
2072         (vceqzq_f16): New.
2073         (vcge_f16): New.
2074         (vcgeq_f16): New.
2075         (vcgez_f16): New.
2076         (vcgezq_f16): New.
2077         (vcgt_f16): New.
2078         (vcgtq_f16): New.
2079         (vcgtz_f16): New.
2080         (vcgtzq_f16): New.
2081         (vcle_f16): New.
2082         (vcleq_f16): New.
2083         (vclez_f16): New.
2084         (vclezq_f16): New.
2085         (vclt_f16): New.
2086         (vcltq_f16): New.
2087         (vcltz_f16): New.
2088         (vcltzq_f16): New.
2089         (vcvt_f16_s16): New.
2090         (vcvt_f16_u16): New.
2091         (vcvt_s16_f16): New.
2092         (vcvt_u16_f16): New.
2093         (vcvtq_f16_s16): New.
2094         (vcvtq_f16_u16): New.
2095         (vcvtq_s16_f16): New.
2096         (vcvtq_u16_f16): New.
2097         (vcvta_s16_f16): New.
2098         (vcvta_u16_f16): New.
2099         (vcvtaq_s16_f16): New.
2100         (vcvtaq_u16_f16): New.
2101         (vcvtm_s16_f16): New.
2102         (vcvtm_u16_f16): New.
2103         (vcvtmq_s16_f16): New.
2104         (vcvtmq_u16_f16): New.
2105         (vcvtn_s16_f16): New.
2106         (vcvtn_u16_f16): New.
2107         (vcvtnq_s16_f16): New.
2108         (vcvtnq_u16_f16): New.
2109         (vcvtp_s16_f16): New.
2110         (vcvtp_u16_f16): New.
2111         (vcvtpq_s16_f16): New.
2112         (vcvtpq_u16_f16): New.
2113         (vcvt_n_f16_s16): New.
2114         (vcvt_n_f16_u16): New.
2115         (vcvtq_n_f16_s16): New.
2116         (vcvtq_n_f16_u16): New.
2117         (vcvt_n_s16_f16): New.
2118         (vcvt_n_u16_f16): New.
2119         (vcvtq_n_s16_f16): New.
2120         (vcvtq_n_u16_f16): New.
2121         (vfma_f16): New.
2122         (vfmaq_f16): New.
2123         (vfms_f16): New.
2124         (vfmsq_f16): New.
2125         (vmax_f16): New.
2126         (vmaxq_f16): New.
2127         (vmaxnm_f16): New.
2128         (vmaxnmq_f16): New.
2129         (vmin_f16): New.
2130         (vminq_f16): New.
2131         (vminnm_f16): New.
2132         (vminnmq_f16): New.
2133         (vmul_f16): New.
2134         (vmul_lane_f16): New.
2135         (vmul_n_f16): New.
2136         (vmulq_f16): New.
2137         (vmulq_lane_f16): New.
2138         (vmulq_n_f16): New.
2139         (vneg_f16): New.
2140         (vnegq_f16): New.
2141         (vpadd_f16): New.
2142         (vpmax_f16): New.
2143         (vpmin_f16): New.
2144         (vrecpe_f16): New.
2145         (vrecpeq_f16): New.
2146         (vrnd_f16): New.
2147         (vrndq_f16): New.
2148         (vrnda_f16): New.
2149         (vrndaq_f16): New.
2150         (vrndm_f16): New.
2151         (vrndmq_f16): New.
2152         (vrndn_f16): New.
2153         (vrndnq_f16): New.
2154         (vrndp_f16): New.
2155         (vrndpq_f16): New.
2156         (vrndx_f16): New.
2157         (vrndxq_f16): New.
2158         (vrsqrte_f16): New.
2159         (vrsqrteq_f16): New.
2160         (vrecps_f16): New.
2161         (vrecpsq_f16): New.
2162         (vrsqrts_f16): New.
2163         (vrsqrtsq_f16): New.
2164         (vsub_f16): New.
2165         (vsubq_f16): New.
2167 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2169         * config.gcc (extra_headers): Add arm_fp16.h
2170         * config/arm/arm_fp16.h: New.
2171         * config/arm/arm_neon.h: Include "arm_fp16.h".
2173 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2175         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2176         variants).
2177         (vmulf): New (v8hf, v4hf variants).
2178         (vfma): New (v8hf, v4hf variants).
2179         (vfms): New (v8hf, v4hf variants).
2180         (vsub): New (v8hf, v4hf variants).
2181         (vcage): New (v8hf, v4hf variants).
2182         (vcagt): New (v8hf, v4hf variants).
2183         (vcale): New (v8hf, v4hf variants).
2184         (vcalt): New (v8hf, v4hf variants).
2185         (vceq): New (v8hf, v4hf variants).
2186         (vcgt): New (v8hf, v4hf variants).
2187         (vcge): New (v8hf, v4hf variants).
2188         (vcle): New (v8hf, v4hf variants).
2189         (vclt): New (v8hf, v4hf variants).
2190         (vceqz): New (v8hf, v4hf variants).
2191         (vcgez): New (v8hf, v4hf variants).
2192         (vcgtz): New (v8hf, v4hf variants).
2193         (vcltz): New (v8hf, v4hf variants).
2194         (vclez): New (v8hf, v4hf variants).
2195         (vabd): New (v8hf, v4hf variants).
2196         (vmaxf): New (v8hf, v4hf variants).
2197         (vmaxnm): New (v8hf, v4hf variants).
2198         (vminf): New (v8hf, v4hf variants).
2199         (vminnm): New (v8hf, v4hf variants).
2200         (vpmaxf): New (v4hf variant).
2201         (vpminf): New (v4hf variant).
2202         (vpadd): New (v4hf variant).
2203         (vrecps): New (v8hf, v4hf variants).
2204         (vrsqrts): New (v8hf, v4hf variants).
2205         (vabs): New (v8hf, v4hf variants).
2206         (vneg): New (v8hf, v4hf variants).
2207         (vrecpe): New (v8hf, v4hf variants).
2208         (vrnd): New (v8hf, v4hf variants).
2209         (vrnda): New (v8hf, v4hf variants).
2210         (vrndm): New (v8hf, v4hf variants).
2211         (vrndn): New (v8hf, v4hf variants).
2212         (vrndp): New (v8hf, v4hf variants).
2213         (vrndx): New (v8hf, v4hf variants).
2214         (vrsqrte): New (v8hf, v4hf variants).
2215         (vmul_lane): Add v4hf and v8hf variants.
2216         (vmul_n): Add v4hf and v8hf variants.
2217         (vext): New (v8hf, v4hf variants).
2218         (vcvts): New (v8hi, v4hi variants).
2219         (vcvts): New (v8hf, v4hf variants).
2220         (vcvtu): New (v8hi, v4hi variants).
2221         (vcvtu): New (v8hf, v4hf variants).
2222         (vcvts_n): New (v8hf, v4hf variants).
2223         (vcvtu_n): New (v8hi, v4hi variants).
2224         (vcvts_n): New (v8hi, v4hi variants).
2225         (vcvtu_n): New (v8hf, v4hf variants).
2226         (vbsl): New (v8hf, v4hf variants).
2227         (vcvtas): New (v8hf, v4hf variants).
2228         (vcvtau): New (v8hf, v4hf variants).
2229         (vcvtms): New (v8hf, v4hf variants).
2230         (vcvtmu): New (v8hf, v4hf variants).
2231         (vcvtns): New (v8hf, v4hf variants).
2232         (vcvtnu): New (v8hf, v4hf variants).
2233         (vcvtps): New (v8hf, v4hf variants).
2234         (vcvtpu): New (v8hf, v4hf variants).
2236 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2238         * config/arm/arm-builtins.c (hf_UP): New.
2239         (si_UP): New.
2240         (vfp_builtin_data): New.  Update comment.
2241         (enum arm_builtins): Include "arm_vfp_builtins.def".
2242         (ARM_BUILTIN_VFP_PATTERN_START): New.
2243         (arm_init_vfp_builtins): New.
2244         (arm_init_builtins): Add arm_init_vfp_builtins.
2245         (arm_expand_vfp_builtin): New.
2246         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
2247         long line.
2248         * config/arm/arm_vfp_builtins.def: New file.
2249         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2250         (arm-builtins.o): Likewise.
2252 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2254         PR ipa/77677
2255         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2256         from constant while creating value range.
2258 2016-09-23  Renlin Li  <renlin.li@arm.com>
2260         * ira.c (ira): Move ira_use_lra_p initialization code to ...
2261         (ira_init_once): Here.
2263 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
2264             Jakub Jelinek  <jakub@redhat.com>
2266         * hooks.h (hook_uint_uintp_false): Rename to...
2267         (hook_bool_uint_uintp_false): ... this.
2268         * hooks.c (hook_uint_uintp_false): Rename to...
2269         (hook_bool_uint_uintp_false): ... this.
2270         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2271         instead of hook_uint_uintp_false.
2273 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2275         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2276         (arm_init_builtins): Move body of a loop to the standalone
2277         function arm_init_neon_builtin.
2278         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
2279         moved from arm_neon_builtin with some white-space fixes.
2280         (arm_expand_neon_builtin): Move code into the standalone function
2281         arm_expand_neon_builtin_1.
2283 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2285         * config/arm/iterators.md (VCVTHI): New.
2286         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
2287         (NEON_VAGLTE): New.
2288         (VFM_LANE_AS): New.
2289         (VH_CVTTO): New.
2290         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
2291         (V_HALF): Add V4HF.  Fix white-space.
2292         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
2293         (V_s_elem): Likewise.
2294         (V_sz_elem): Fix white-space.
2295         (V_elem_ch): Likewise.
2296         (VH_elem_ch): New.
2297         (scalar_mul_constraint): Add V8HF and V4HF.
2298         (Is_float_mode): Fix white-space.
2299         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
2300         (q): Add HF.  Fix white-space.
2301         (float_sup): New.
2302         (float_SUP): New.
2303         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2304         (neon_vfm_lane_as): New.
2305         * config/arm/neon.md (add<mode>3_fp16): New.
2306         (sub<mode>3_fp16): New.
2307         (mul<mode>3add<mode>_neon): New.
2308         (fma<VH:mode>4_intrinsic): New.
2309         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2310         (fmsub<VH:mode>4_intrinsic): New.
2311         (<absneg_str><mode>2): New.
2312         (neon_v<absneg_str><mode>): New.
2313         (neon_v<fp16_rnd_str><mode>): New.
2314         (neon_vrsqrte<mode>): New.
2315         (neon_vpaddv4hf): New.
2316         (neon_vadd<mode>): New.
2317         (neon_vsub<mode>): New.
2318         (neon_vmulf<mode>): New.
2319         (neon_vfma<VH:mode>): New.
2320         (neon_vfms<VH:mode>): New.
2321         (neon_vc<cmp_op><mode>): New.
2322         (neon_vc<cmp_op><mode>_fp16insn): New
2323         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2324         (neon_vca<cmp_op><mode>): New.
2325         (neon_vca<cmp_op><mode>_fp16insn): New.
2326         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2327         (neon_vc<cmp_op>z<mode>): New.
2328         (neon_vabd<mode>): New.
2329         (neon_v<maxmin>f<mode>): New.
2330         (neon_vp<maxmin>fv4hf: New.
2331         (neon_<fmaxmin_op><mode>): New.
2332         (neon_vrecps<mode>): New.
2333         (neon_vrsqrts<mode>): New.
2334         (neon_vrecpe<mode>): New (VH variant).
2335         (neon_vdup_lane<mode>_internal): New.
2336         (neon_vdup_lane<mode>): New.
2337         (neon_vcvt<sup><mode>): New (VCVTHI variant).
2338         (neon_vcvt<sup><mode>): New (VH variant).
2339         (neon_vcvt<sup>_n<mode>): New (VH variant).
2340         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2341         (neon_vcvt<vcvth_op><sup><mode>): New.
2342         (neon_vmul_lane<mode>): New.
2343         (neon_vmul_n<mode>): New.
2344         * config/arm/unspecs.md (UNSPEC_VCALE): New
2345         (UNSPEC_VCALT): New.
2346         (UNSPEC_VFMA_LANE): New.
2347         (UNSPECS_VFMS_LANE): New.
2349 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2351         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2352         ("*extzv<mode><clobbercc_or_nocc>"):
2353         Correct a typo in a comment.
2354         Merged patterns.
2355         ("*insv<mode>_zEC12", "*insv<mode>_z10")
2356         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2357         ("*insv<mode>_zEC12_appendbitsleft")
2358         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2359         ("*insv<mode>_z10_appendbitsleft"): Ditto.
2360         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2361         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2362         Provide pattern with operands switched.
2363         ("*pre_z10_extv<mode>"):
2364         Use new subst patterns.
2365         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2366         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2367         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2368         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2369         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2370         ("*<risbg_n>_sidi_ior_and_lshiftrt")
2371         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2372         New patterns.
2373         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2374         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2375         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2376         on zEC12.
2377         ("SINT"): New mode_iterator with SI, HI, QI.
2378         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2379         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2380         duplication.
2382 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2384         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2385         new interface of s390_contiguous_bitmask_p.
2386         ("contiguous_bitmask_nowrap_operand"): New predicate.
2387         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2388         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2389         of s390_contiguous_bitmask_p.
2390         ("NxxDw"): Rename NxxDq constraint to NxxDw.
2391         ("NxxSw"): New constraint.
2392         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2393         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2394         interface.
2395         (s390_contiguous_bitmask_nowrap_p): Export.
2396         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2397         former s390_contiguous_bitmask_p.
2398         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2399         detect contiguous bit ranges with wraparound.  Change signature to
2400         return START and END position instead of POS and LENGTH.
2401         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2402         ranges with wraparound.
2403         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2404         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2405         Adapt to new signature of s390_contiguous_bitmask_p.
2407 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
2409         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2410         (create_intersect_range_checks): New.
2411         (vect_create_cond_for_alias_checks): Call above function.
2413 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2415         * config/arm/iterators.md (Code iterators): Fix some white-space
2416         in the comments.
2417         (GLTE): New.
2418         (ABSNEG): New
2419         (FCVT): Moved from vfp.md.
2420         (VCVT_HF_US_N): New.
2421         (VCVT_SI_US_N): New.
2422         (VCVT_HF_US): New.
2423         (VCVTH_US): New.
2424         (FP16_RND): New.
2425         (absneg_str): New.
2426         (FCVTI32typename): Moved from vfp.md.
2427         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2428         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2429         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2430         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
2431         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2432         (vcvth_op): New.
2433         (fp16_rnd_str): New.
2434         (fp16_rnd_insn): New.
2435         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2436         (UNSPEC_VCVT_HF_U_N): New.
2437         (UNSPEC_VCVT_SI_S_N): New.
2438         (UNSPEC_VCVT_SI_U_N): New.
2439         (UNSPEC_VCVTH_S): New.
2440         (UNSPEC_VCVTH_U): New.
2441         (UNSPEC_VCVTA_S): New.
2442         (UNSPEC_VCVTA_U): New.
2443         (UNSPEC_VCVTM_S): New.
2444         (UNSPEC_VCVTM_U): New.
2445         (UNSPEC_VCVTN_S): New.
2446         (UNSPEC_VCVTN_U): New.
2447         (UNSPEC_VCVTP_S): New.
2448         (UNSPEC_VCVTP_U): New.
2449         (UNSPEC_VCVTP_S): New.
2450         (UNSPEC_VCVTP_U): New.
2451         (UNSPEC_VRND): New.
2452         (UNSPEC_VRNDA): New.
2453         (UNSPEC_VRNDI): New.
2454         (UNSPEC_VRNDM): New.
2455         (UNSPEC_VRNDN): New.
2456         (UNSPEC_VRNDP): New.
2457         (UNSPEC_VRNDX): New.
2458         * config/arm/vfp.md (<absneg_str>hf2): New.
2459         (neon_vabshf): New.
2460         (neon_v<fp16_rnd_str>hf): New.
2461         (neon_vrndihf): New.
2462         (addhf3): New.
2463         (subhf3): New.
2464         (divhf3): New.
2465         (mulhf3): New.
2466         (*mulsf3neghf_vfp): New.
2467         (*negmulhf3_vfp): New.
2468         (*mulsf3addhf_vfp): New.
2469         (*mulhf3subhf_vfp): New.
2470         (*mulhf3neghfaddhf_vfp): New.
2471         (*mulhf3neghfsubhf_vfp): New.
2472         (fmahf4): New.
2473         (neon_vfmahf): New.
2474         (fmsubhf4_fp16): New.
2475         (neon_vfmshf): New.
2476         (*fnmsubhf4): New.
2477         (*fnmaddhf4): New.
2478         (neon_vsqrthf): New.
2479         (neon_vrsqrtshf): New.
2480         (FCVT): Move to iterators.md.
2481         (FCVTI32typename): Likewise.
2482         (neon_vcvth<sup>hf): New.
2483         (neon_vcvth<sup>si): New.
2484         (neon_vcvth<sup>_nhf_unspec): New.
2485         (neon_vcvth<sup>_nhf): New.
2486         (neon_vcvth<sup>_nsi_unspec): New.
2487         (neon_vcvth<sup>_nsi): New.
2488         (neon_vcvt<vcvth_op>h<sup>si): New.
2489         (neon_<fmaxmin_op>hf): New.
2491 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2493         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
2494         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
2495         ("*insv<mode>_zEC12_appendbitsleft")
2496         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
2497         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
2499 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2501         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
2502         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
2503         construct values without normalization.
2504         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
2505         static local lhs_ops to vNULL.
2507 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2508             Jiong Wang <jiong.wang@arm.com>
2510         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
2511         available when FP16 instructions are available.
2512         (output_move_vfp): Add support for 16-bit data moves.
2513         (arm_validize_comparison): Fix some white-space.  Support HFmode
2514         by conversion to SFmode.
2515         * config/arm/arm.md (truncdfhf2): Fix a comment.
2516         (extendhfdf2): Likewise.
2517         (cstorehf4): New.
2518         (movsicc): Fix some white-space.
2519         (movhfcc): New.
2520         (movsfcc): Fix some white-space.
2521         (*cmovhf): New.
2522         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
2523         instructions are available.
2524         (*thumb2_movhi_vfp): Likewise.
2525         (*arm_movhi_fp16): New.
2526         (*thumb2_movhi_fp16): New.
2527         (*movhf_vfp_fp16): New.
2528         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
2529         (*movhf_vfp): Likewise.
2530         (extendhfsf2): Enable when VFP FP16 instructions are available.
2531         (truncsfhf2):  Enable when VFP FP16 instructions are available.
2533 2016-09-23  Martin Liska  <mliska@suse.cz>
2535         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
2537 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2539         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
2540         V4HF modes.
2541         (arm_evpc_neon_vtrn): Likewise.
2542         (arm_evpc_neon_vrev): Likewise.
2543         (arm_evpc_neon_vext): Likewise.
2544         * config/arm/arm_neon.h (vbsl_f16): New.
2545         (vbslq_f16): New.
2546         (vdup_n_f16): New.
2547         (vdupq_n_f16): New.
2548         (vdup_lane_f16): New.
2549         (vdupq_lane_f16): New.
2550         (vext_f16): New.
2551         (vextq_f16): New.
2552         (vmov_n_f16): New.
2553         (vmovq_n_f16): New.
2554         (vrev64_f16): New.
2555         (vrev64q_f16): New.
2556         (vtrn_f16): New.
2557         (vtrnq_f16): New.
2558         (vuzp_f16): New.
2559         (vuzpq_f16): New.
2560         (vzip_f16): New.
2561         (vzipq_f16): New.
2562         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
2563         (vdup_lane): New (v8hf, v4hf variants).
2564         (vext): New (v8hf, v4hf variants).
2565         (vbsl): New (v8hf, v4hf variants).
2566         * config/arm/iterators.md (VDQWH): New.
2567         (VH): New.
2568         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
2569         (Scalar_mul_8_16): Fix white-space.
2570         (Is_d_reg): Add V4HF and V8HF.
2571         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
2572         (neon_vdup_lane<mode>): New.
2573         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
2574         (*neon_vtrn<mode>_insn): Likewise.
2575         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
2576         (*neon_vzip<mode>_insn): Likewise
2577         (neon_vuzp<mode>_internal): Likewise.
2578         (*neon_vuzp<mode>_insn): Likewise
2579         * config/arm/vec-common.md (vec_perm_const<mode>): New.
2581 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
2582             Matthew Wahab  <matthew.wahab@arm.com>
2584         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
2585         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
2586         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
2587         available.  Also fix some white-space.
2588         * config/arm/vfp.md (*arm_movhi_vfp): New.
2589         (*thumb2_movhi_vfp): New.
2591 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2593         * config/arm/arm-c.c (arm_cpu_builtins): Define
2594         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
2595         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
2597 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2599         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
2600         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
2601         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
2602         arm_v8_2a_fp16_neon_hw.
2603         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
2604         arm_v8_2a_neon.
2606 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2608         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
2609         arm_fp16_alternative_ok and arm_fp16_none_ok.
2611 2016-09-23  Martin Liska  <mliska@suse.cz>
2613         * ipa-icf.c (sem_variable::merge): Replace adress with address.
2615 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2617         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
2618         ("armv8.2-a"): New.
2619         ("armv8.2-a+fp16"): New.
2620         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
2621         (FL2_FP16INST): New.
2622         (FL2_FOR_ARCH8_2A): New.
2623         * config/arm/arm-tables.opt: Regenerate.
2624         * config/arm/arm.c (arm_arch8_2): New.
2625         (arm_fp16_inst): New.
2626         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
2627         for incompatible fp16-format settings.
2628         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
2629         (TARGET_NEON_FP16INST): New.
2630         (arm_arch8_2): Declare.
2631         (arm_fp16_inst): Declare.
2632         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
2633         march=armv8.2-a and march=armv8.2-a+fp16.
2634         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
2635         and armv8.2-a+fp16.
2636         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
2637         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
2639 2016-09-23  Martin Liska  <mliska@suse.cz>
2641         * doc/extend.texi: Remove fused-madd from i386 target options.
2643 2016-09-23  Martin Liska  <mliska@suse.cz>
2645         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2646         Handle movbe.
2648 2016-09-23  Martin Liska  <mliska@suse.cz>
2650         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2651         Handle crc32.
2653 2016-09-23  Martin Liska  <mliska@suse.cz>
2655         PR target/71652
2656         * config/i386/i386.c (ix86_option_override_internal): Change
2657         signature and return false when there's an error related to
2658         arch string.
2659         (release_options_strings): New function.
2660         (ix86_valid_target_attribute_tree): Call the function.
2662 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2664         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
2665         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
2666         (gen_hsa_ctor_assignment): Likewise.
2667         * print-tree.c (print_node): Likewise.
2668         * tree-dump.c (dequeue_and_dump): Likewise.
2669         * tree-sra.c (sra_modify_constructor_assign): Likewise.
2670         * expr.c (store_constructor): Likewise.
2671         * fold-const.c (operand_equal_p): Likewise.
2672         * tree-pretty-print.c (dump_generic_node): Likewise.
2673         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
2674         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
2676 2016-09-23  Richard Biener  <rguenther@suse.de>
2678         * hooks.h (hook_uint_uintp_false): Declare.
2680 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2682         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
2683         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
2685 2016-09-22  Martin Sebor  <msebor@redhat.com>
2687         PR target/77676
2688         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
2689         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
2690         (target_int_min): Correct computation.
2691         (format_integer): Use long long as the argument for the ll length
2692         modifier.
2693         (format_floating): Use target_int_max().
2694         (get_string_length): Same.
2695         (format_string): Avoid setting the bounded flag for strings
2696         of unknown length.
2697         (try_substitute_return_value): Avoid setting range info when
2698         the result isn't bounded.
2699         * varasm.c (assemble_name): Increase buffer size.
2701 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2702             Terry Guo  <terry.guo@arm.com>
2704         * target.def (elf_flags_numeric): New target hook.
2705         * targhooks.h (default_asm_elf_flags_numeric): New.
2706         * varasm.c (default_asm_elf_flags_numeric): New.
2707         (default_elf_asm_named_section): Use new target hook.
2708         * config/arm/arm.opt (mpure-code): New.
2709         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
2710         * config/arm/arm.c (arm_asm_init_sections): Add section
2711         attribute to default text section if -mpure-code.
2712         (arm_option_check_internal): Diagnose use of option with
2713         non supported targets and/or options.
2714         (arm_asm_elf_flags_numeric): New.
2715         (arm_function_section): New.
2716         (arm_elf_section_type_flags): New.
2717         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
2718         for -mpure-code.
2719         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
2720         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
2722 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
2724         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
2726 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2728         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
2729         * rtl.h: Adjust prototype.
2731 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2733         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
2734         (prev_active_insn): Likewise.
2735         (active_insn_p): Likewise.
2736         * rtl.h: Adjust prototypes.
2737         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
2738         * config/arc/arc.md: Likewise.
2739         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
2740         (branch_needs_nop_p): Likewise.
2741         (use_skip_p): Likewise.
2742         * config/sh/sh.c (gen_block_redirect): Likewise.
2743         (split_branches): Likewise.
2744         * reorg.c (optimize_skip): Likewise.
2745         (fill_simple_delay_slots): Likewise.
2746         (fill_slots_from_thread): Likewise.
2747         (relax_delay_slots): Likewise.
2748         * resource.c (mark_target_live_regs): Likewise.
2750 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2752         * config/cris/cris.c (cris_asm_output_case_end): Change argument
2753         type to rtx_insn *.
2754         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
2755         (prev_nonnote_nondebug_insn): Likewise.
2756         * config/cris/cris-protos.h: Adjust prototype.
2757         * rtl.h: Likewise.
2758         * jump.c (rtx_renumbered_equal_p): Adjust.
2760 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2762         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
2763         * rtl.h: Adjust prototype.
2764         * config/sh/sh.md: Adjust.
2765         * dwarf2out.c (add_var_loc_to_decl): Likewise.
2767 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2769         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
2770         (prev_nondebug_insn): Likewise.
2771         * loop-doloop.c (doloop_condition_get): Likewise.
2772         * rtl.h: Adjust prototype.
2773         * cfgloop.h: Likewise.
2775 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2777         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
2778         (prev_nonnote_insn): Likewise.
2779         * jump.c (reversed_comparison_code_parts): Likewise.
2780         (reversed_comparison): Likewise.
2781         * rtl.h: Adjust prototypes.
2782         * config/arc/arc.md: Adjust.
2783         * cse.c (find_comparison_args): Likewise.
2784         * reorg.c (redundant_insn): Change return type to rtx_insn *.
2785         (fix_reg_dead_note): Change argument type to rtx_insn *.
2786         (delete_prior_computation): Likewise.
2787         (delete_computation): Likewise.
2788         (fill_slots_from_thread): Adjust.
2789         (relax_delay_slots): Likewise.
2790         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2791         (simplify_relational_operation_1): Likewise.
2792         (simplify_ternary_operation): Likewise.
2794 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2796         * config/arc/arc-protos.h (arc_label_align): Change type of
2797         variables from rtx to rtx_insn *.
2798         * config/arc/arc.c (arc_label_align): Likewise.
2799         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
2800         * config/bfin/bfin.c (workaround_speculation): Likewise.
2801         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
2802         (find_last_same_clock): Likewise.
2803         (reorg_split_calls): Likewise.
2804         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
2805         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
2806         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
2807         (same_cmp_following_p): Likewise.
2808         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
2809         (same_cmp_following_p): Likwise.
2810         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
2811         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
2812         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
2813         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
2814         (rl78_alloc_physical_registers_cmp): Likewise.
2815         (rl78_alloc_physical_registers_umul): Likewise.
2816         (rl78_calculate_death_notes): Likewise.
2817         * config/s390/s390-protos.h (s390_label_align): Likewise.
2818         * config/s390/s390.c (s390_label_align): Likewise.
2819         * config/sh/sh.c (barrier_align): Likewise.
2820         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
2821         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
2822         (emit_cbcond_nop): Likewise.
2824 2016-09-22  Martin Liska  <mliska@suse.cz>
2826         PR ipa/77653
2827         * ipa-icf.c (sem_variable::merge): Yield merge operation if
2828         alias address matters, not necessarily address of original.
2830 2016-09-22  Richard Biener  <rguenther@suse.de>
2832         PR middle-end/77697
2833         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
2834         fold fails.
2836 2016-09-22  Richard Biener  <rguenther@suse.de>
2838         PR middle-end/77677
2839         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
2840         from constant folding results.
2841         (gimple_resimplify2): Likewise.
2842         (gimple_resimplify3): Likewise.
2844 2016-09-22  Richard Biener  <rguenther@suse.de>
2846         PR middle-end/77678
2847         * expr.c (expand_expr_real_1): Guard array access against negative
2848         offset.
2850 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2852         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
2853         of MPFR_RNDN.
2854         (format_floating): Likewise.
2856 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
2858         PR fortran/77665
2859         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
2860         for all IFN_GOMP_SIMD_* internal fns, not just for
2861         IFN_GOMP_SIMD_ORDERED_*.
2863 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2865         PR target/77670
2866         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
2867         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
2868         instructions when you want to invert the test.
2869         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
2870         correct order for XXSEL.
2871         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
2872         for using XSCMP{EQ,GT,GE}DP.
2874 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
2876         * genconstants.c (main): Introduce noop_reader and convert call
2877         to read_md_files to a method call.
2878         * genenums.c (main): Likewise.
2879         * genmddeps.c (main): Likewise.
2880         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
2881         rtx_reader_ptr->get_top_level_filename ().
2882         (write_tm_preds_h): Likewise.
2883         (write_insn_preds_c): Likewise.
2884         * gensupport.c (class gen_reader): New subclass of rtx_reader.
2885         (rtx_handle_directive): Convert to...
2886         (gen_reader::handle_unknown_directive): ...this.
2887         (init_rtx_reader_args_cb): Convert return type from bool to
2888         rtx_reader *.  Create a gen_reader instance, using it for the
2889         call to read_md_files.  Return it if no errors occur.
2890         (init_rtx_reader_args): Convert return type from bool to
2891         rtx_reader *.
2892         * gensupport.h (init_rtx_reader_args_cb): Likewise.
2893         (init_rtx_reader_args_cb): Likewise.
2894         * read-md.c (struct file_name_list): Move to class rtx_reader.
2895         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
2896         (read_md_filename): Delete in favor of
2897         rtx_reader::m_read_md_filename.
2898         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
2899         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
2900         (base_dir): Delete in favor of rtx_reader::m_base_dir.
2901         (first_dir_md_include): Delete in favor of
2902         rtx_reader::m_first_dir_md_include.
2903         (last_dir_md_include_ptr): Delete in favor of
2904         rtx_reader::m_last_dir_md_include_ptr.
2905         (max_include_len): Delete.
2906         (rtx_reader_ptr): New.
2907         (fatal_with_file_and_line): Use get_filename and get_lineno
2908         accessors of rtx_reader_ptr.
2909         (require_char_ws): Likewise.
2910         (rtx_reader::read_char): New method, based on ::read_char.
2911         (rtx_reader::unread_char): New method, based on ::unread_char.
2912         (read_escape): Use get_filename and get_lineno accessors of
2913         rtx_reader_ptr.
2914         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
2915         (read_string): Use get_filename and get_lineno accessors of
2916         rtx_reader_ptr.
2917         (rtx_reader::rtx_reader): New ctor.
2918         (rtx_reader::~rtx_reader): New dtor.
2919         (handle_include): Convert from a function to...
2920         (rtx_reader::handle_include): ...this method, converting
2921         handle_directive from a callback to a virtual function.
2922         (handle_file): Likewise, converting to...
2923         (rtx_reader::handle_file): ...this method.
2924         (handle_toplevel_file): Likewise, converting to...
2925         (rtx_reader::handle_toplevel_file): ...this method.
2926         (rtx_reader::get_current_location): New method.
2927         (parse_include): Convert from a function to...
2928         (rtx_reader::add_include_path): ...this method, dropping redundant
2929         update to unused max_include_len.
2930         (read_md_files): Convert from a function to...
2931         (rtx_reader::read_md_files): ...this method, converting
2932         handle_directive from a callback to a virtual function.
2933         (noop_reader::handle_unknown_directive): New method.
2934         * read-md.h (directive_handler_t): Delete this typedef.
2935         (in_fname): Delete.
2936         (read_md_file): Delete.
2937         (read_md_lineno): Delete.
2938         (read_md_filename): Delete.
2939         (class rtx_reader): New class.
2940         (rtx_reader_ptr): New decl.
2941         (class noop_reader): New subclass of rtx_reader.
2942         (read_char): Reimplement in terms of rtx_reader::read_char.
2943         (unread_char): Reimplement in terms of rtx_reader::unread_char.
2944         (read_md_files): Delete.
2945         * read-rtl.c (read_rtx_code): Update for deletion of globals
2946         read_md_filename and read_md_lineno.
2948 2016-09-21  Jason Merrill  <jason@redhat.com>
2950         * input.h (from_macro_definition_at): New.
2952 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2954         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
2956 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2958         PR tree-optimization/77550
2959         * tree-vect-stmts.c (create_array_ref): Change parameters.
2960         (get_group_alias_ptr_type): New function.
2961         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
2963 2016-09-21  Marek Polacek  <polacek@redhat.com>
2965         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2966         Add falls through comment.
2968 2016-09-21  Richard Biener  <rguenther@suse.de>
2970         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
2971         (replace_child): Likewise.
2972         (remove_child_TAG): Adjust.
2973         (move_marked_base_types): Likewise.
2974         (prune_unused_types_prune): Clear die_sib of removed children.
2976 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
2978         PR target/77326
2979         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
2980         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
2982 2016-09-21  Richard Biener  <rguenther@suse.de>
2984         PR tree-optimization/77648
2985         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
2986         with complex RHS.
2987         (make_transitive_closure_constraints): Adjust comment.
2988         (make_any_offset_constraints): New function.
2989         (handle_rhs_call): Make sure to first expand a pointer to all
2990         subfields before transitively closing it.
2991         (handle_const_call): Likewise.  Properly expand returned
2992         pointers as well.
2993         (handle_pure_call): Likewise.
2995 2016-09-21  Richard Biener  <rguenther@suse.de>
2996             Jakub Jelinek  <jakub@redhat.com>
2998         PR tree-optimization/77621
2999         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
3000         group at non-vectorizable stmts.
3002 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3004         PR tree-optimization/72835
3005         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
3006         (make_new_ssa_for_all_defs): Likewise.
3007         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
3009 2016-09-20  Martin Sebor  <msebor@redhat.com>
3011         PR middle-end/49905
3012         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
3013         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
3014         * config/linux.c (gnu_libc_printf_pointer_format): New function.
3015         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
3016         * config/sol2.c (solaris_printf_pointer_format): New function.
3017         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
3018         options.
3019         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
3020         * doc/tm.texi: Regenerate.
3021         * gimple-fold.h (get_range_strlen): New function.
3022         (get_maxval_strlen): Declare existing function.
3023         * gimple-fold.c (get_range_strlen): Add arguments and compute both
3024         maximum and minimum.
3025          (get_range_strlen): Define overload.
3026         (get_maxval_strlen): Adjust.
3027         * gimple-ssa-sprintf.c: New file and pass.
3028         * passes.def (pass_sprintf_length): Add new pass.
3029         * targhooks.h (default_printf_pointer_format): Declare new function.
3030         (gnu_libc_printf_pointer_format): Same.
3031         (solaris_libc_printf_pointer_format): Same.
3032         * targhooks.c (default_printf_pointer_format): Define new function.
3033         * tree-pass.h (make_pass_sprintf_length): Declare new function.
3034         * print-tree.c: Increase buffer size.
3036 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3038         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
3040 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3042         * common.opt: New option -fipa-vrp.
3043         * ipa-cp.c (ipa_get_vr_lat): New.
3044         (ipcp_vr_lattice::print): Likewise.
3045         (print_all_lattices): Call ipcp_vr_lattice::print.
3046         (ipcp_vr_lattice::meet_with): New.
3047         (ipcp_vr_lattice::meet_with_1): Likewise.
3048         (ipcp_vr_lattice::top_p): Likewise.
3049         (ipcp_vr_lattice::bottom_p): Likewsie.
3050         (ipcp_vr_lattice::set_to_bottom): Likewise.
3051         (set_all_contains_variable): Call VR set_to_bottom.
3052         (initialize_node_lattices): Init VR lattices.
3053         (propagate_vr_accross_jump_function): New.
3054         (propagate_constants_accross_call): Call
3055         propagate_vr_accross_jump_function.
3056         (ipcp_store_vr_results): New.
3057         (ipcp_driver): Handle VR.
3058         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
3059         (ipa_set_jf_unknown): Likewise.
3060         (ipa_compute_jump_functions_for_edge): Likewise.
3061         (ipa_node_params_t::duplicate): Likewise.
3062         (ipa_write_jump_function): Likewise.
3063         (ipa_read_jump_function): Likewise.
3064         (write_ipcp_transformation_info): Likewise.
3065         (read_ipcp_transformation_info): Likewise.
3066         (ipcp_update_vr): New.
3067         (ipcp_transform_function): Handle VR.
3068         * ipa-prop.h (struct ipa_vr): New.
3069         * cgraph.c: Include tree-vrp.h.
3070         * cgraphunit.c: Likewise.
3071         * ipa-utils.c: Likewise.
3072         * ipa.c: Likewise.
3073         * opts.c: Likewise.
3074         * toplev.c: Likewise.
3075         * ipa-devirt.c: Likewise.
3076         * ipa-inline-transform.c: Likewise.
3077         * ipa-inline.c: Likewise.
3078         * ipa-profile.c: Likewise.
3080 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
3082         * doc/invoke.texi: Document -fdump-tree-evrp.
3083         * passes.def: Define new pass_early_vrp.
3084         * timevar.def: Define new TV_TREE_EARLY_VRP.
3085         * tree-pass.h (make_pass_early_vrp): New.
3086         * tree-ssa-propagate.c: Make replace_uses_in non static.
3087         * tree-ssa-propagate.h: Export replace_uses_in.
3088         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
3089         (extract_range_from_assert): Factor out
3090         extract_range_for_var_from_comparison_expr.
3091         (vrp_initialize_lattice): New.
3092         (vrp_initialize): Factor out vrp_initialize_lattice.
3093         (vrp_valueize): Fix it to reject complex value ranges.
3094         (vrp_free_lattice): New.
3095         (evrp_dom_walker::before_dom_children): Likewise.
3096         (evrp_dom_walker::after_dom_children): Likewise.
3097         (evrp_dom_walker::push_value_range): Likewise.
3098         (evrp_dom_walker::pop_value_range): Likewise.
3099         (execute_early_vrp): Likewise.
3100         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
3101         (make_pass_early_vrp): New.
3103 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
3105         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
3106         instead of exact_log2.
3108 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
3110         PR target/77621
3111         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
3112         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
3113         (ix86_add_stmt_cost): Penalize DFmode vector operations
3114         for !TARGET_VECTORIZE_DOUBLE.
3116 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
3118         * doc/invoke.texi (Warning Options): Simplify language.
3119         (Optimize Options): Complete sentence.
3121 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
3123         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
3124         early_finish hook.
3126 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3128         PR target/71395
3129         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3130         inits on power8 and above, use the VMRGEW instruction instead of a
3131         permute.
3133         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3134         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3135         initialization.
3137 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3139         * config/aarch64/arm_neon.h
3140         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3141         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3142         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3144 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3146         * config/var/vax.h (ELIMINABLE_REGS): Define.
3147         (INITIAL_ELIMINATION_OFFSET): Define.
3149 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
3151         PR middle-end/77624
3152         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3153         cast to void * if the cast is from some other pointer type.
3155 2016-09-20  Richard Biener  <rguenther@suse.de>
3157         PR tree-optimization/77646
3158         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3159         a VDEF.
3161 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3163         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3164         attributes to all inlined functions and make them extern.
3166 2016-09-20  Richard Biener  <rguenther@suse.de>
3168         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3169         hook.
3170         * debug.c (do_nothing_debug_hooks): Adjust.
3171         * dbxout.c (dbx_debug_hooks): Likewise.
3172         * sdbout.c (sdb_debug_hooks): Likewise.
3173         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3174         (dwarf2out_finish): Move producer, filename and
3175         path annotation ...
3176         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
3177         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3179 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3181         PR c++/77434
3182         * doc/invoke.texi: Document -Wint-in-bool-context.
3184         PR middle-end/77421
3185         * dwarf2out.c (output_loc_operands): Fix an assertion.
3187 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3189         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3190         (CR_DECIMAL_DIG): New macro.
3192 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3194         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3195         element.
3197 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
3199         PR rtl-optimization/77416
3200         * lra-remat.c (operand_to_remat): Process hard coded insn
3201         registers.
3203 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3205         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3206         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3208 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
3210         * target.def (lra_p): Wordsmithing.
3211         * doc/tm.texi: Regenerate.
3213 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
3214             Jan Hubicka  <jh@suse.cz>
3216         PR target/77587
3217         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3218         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3219         Call ultimate_alias_target just once, not up to 4 times.
3221 2016-09-19  Richard Biener  <rguenther@suse.de>
3223         * dwarf2out.c (early_dwarf_finished): New global.
3224         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3225         is false.
3226         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3227         if called from LTO exit early.
3228         (dwarf2out_late_global_decl): When being during the early
3229         debug phase do not add locations but only const value attributes.
3230         Adjust the way we generate early DIEs for LTO.
3232 2016-09-19  Richard Biener  <rguenther@suse.de>
3234         PR middle-end/77605
3235         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3236         proper niter to bound the loops.
3238 2016-09-19  Richard Biener  <rguenther@suse.de>
3240         PR tree-optimization/77514
3241         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3242         search for folded stmt.
3244 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
3246         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3247         * tree-pass.h (make_pass_early_thread_jumps): Declare.
3248         * tree-ssa-threadbackward.c (fsm_find_thread_path,
3249         fsm_find_thread_path, profitable_jump_thread_path,
3250         fsm_find_control_statement_thread_paths,
3251         find_jump_threads_backwards): Add speed_p parameter.
3252         (pass_data_early_thread_jumps): New pass.
3253         (make_pass_early_thread_jumps): New function.
3255 2016-09-17  Andreas Schwab  <schwab@suse.de>
3257         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3258         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3260 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
3262         * recog.c (rest_of_handle_split_after_reload): Delete.
3263         (pass_split_after_reload::gate): New method.
3264         (pass_split_after_reload::execute): Call split_all_insns directly.
3266 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
3268         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3269         parameters for functions taking long long arguments.
3271 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3273         PR target/77613
3274         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3275         splat with truncate.
3277 2016-09-16  Jason Merrill  <jason@redhat.com>
3279         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3280         New.
3281         * hwint.c (exact_log2): Use pow2p_hwi.
3282         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3283         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3284         * builtins.c (get_object_alignment_2, get_object_alignment)
3285         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3286         least_bit_hwi.
3287         * calls.c (compute_argument_addresses, store_one_arg): Use
3288         least_bit_hwi.
3289         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3290         * combine.c (force_to_mode): Use least_bit_hwi.
3291         (contains_muldiv, find_split_point, combine_simplify_rtx)
3292         (simplify_if_then_else, simplify_set, force_to_mode)
3293         (if_then_else_cond, simplify_and_const_int_1)
3294         (simplify_compare_const): Use pow2p_hwi.
3295         * cse.c (fold_rtx): Use pow2p_hwi.
3296         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3297         Use least_bit_hwi.
3298         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3299         (init_expmed_one_conv): Use pow2p_hwi.
3300         * expr.c (is_aligning_offset): Use pow2p_hwi.
3301         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3302         (fold_binary_loc): Use pow2p_hwi.
3303         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3304         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3305         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3306         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3307         Use least_bit_hwi.
3308         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3309         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3310         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3311         * omp-low.c (oacc_loop_fixed_partitions)
3312         (oacc_loop_auto_partitions): Use least_bit_hwi.
3313         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3314         * stor-layout.c (place_field): Use least_bit_hwi.
3315         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3316         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3317         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3318         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3319         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3320         * tree-vect-data-refs.c (vect_analyze_group_access_1)
3321         (vect_grouped_store_supported, vect_grouped_load_supported)
3322         (vect_permute_load_chain, vect_shift_permute_load_chain)
3323         (vect_transform_grouped_load): Use pow2p_hwi.
3324         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3325         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3326         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3327         least_bit_hwi.
3328         * tsan.c (instrument_expr): Use least_bit_hwi.
3329         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3331 2016-09-16  Andreas Schwab  <schwab@suse.de>
3333         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3334         OFFSET, not offset.
3335         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3337 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3339         PR target/77526
3340         * combine.c (rest_of_handle_combine): If any edges have been purged,
3341         free dominators if available.
3343 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3344             Eric Botcazou  <ebotcazou@adacore.com>
3346         PR middle-end/77594
3347         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3348         through into expand_addsub_overflow after expand_neg_overflow.
3350 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
3352         * diagnostic-show-locus.c
3353         (selftest::test_fixit_insert_containing_newline): New function.
3354         (selftest::test_fixit_replace_containing_newline): New function.
3355         (selftest::diagnostic_show_locus_c_tests): Call the above.
3357 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
3359         PR tree-optimization/77503
3360         * tree-vect-loop.c (vectorizable_reduction): Record reduction
3361         code for CONST_COND_REDUCTION at analysis stage and use it at
3362         transform stage.
3363         * tree-vectorizer.h (struct _stmt_vec_info): New field.
3364         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3365         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3366         field.
3368 2016-09-15  Richard Biener  <rguenther@suse.de>
3370         PR middle-end/77544
3371         * fold-const.c (split_tree): Do not split constant ~X.
3373 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
3375         PR rtl-optimization/77425
3376         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3377         is NULL.
3379         PR middle-end/77475
3380         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3381         use %qs instead of %s where desirable, use argument instead of arg in
3382         the diagnostic wording, add list of supported strategies and
3383         spellcheck hint.
3384         (ix86_option_override_internal): Emit target("m...") instead of
3385         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
3386         -march/-mtune option diagnostic.  Add list of supported arches/tunings
3387         and spellcheck hint.  Remove prefix, suffix and sw variables, use
3388         main_args_p ? "..." : "..." in diagnostics to make translation
3389         possible.
3391 2016-09-15  Richard Biener  <rguenther@suse.de>
3393         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3394         extra offset argument.
3395         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3396         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3397         to reflect new offset parameter.
3398         * doc/tm.texi: Regenerate.
3399         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3400         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3401         offset argument.
3402         (darwin_asm_output_dwarf_offset): Likewise.
3403         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3404         argument.
3405         (darwin_asm_output_dwarf_offset): Pass offset argument through.
3406         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3407         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3409 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
3411         PR fortran/72743
3412         * ipa-icf.c (set_alias_uids): New function.
3413         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3414         all the merged variable's referring aliases.
3416 2016-09-15  Richard Biener  <rguenther@suse.de>
3418         PR tree-optimization/77514
3419         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3420         only forced_stmts sequence.
3422 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
3424         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3425         * cfgexpand.c (update_alias_info_with_stack_vars): Use
3426         FOR_EACH_SSA_NAME to iterate over SSA variables.
3427         (pass_expand::execute): Likewise.
3428         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3429         * tree-cfg.c (dump_function_to_file): Likewise.
3430         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3431         (update_ssa): Likewise.
3432         * tree-ssa-alias.c (dump_alias_info): Likewise.
3433         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3434         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3435         (create_outofssa_var_map): Likewise.
3436         (coalesce_ssa_name): Likewise.
3437         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3438         * tree-ssa-pre.c (compute_avail): Likewise.
3439         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3440         (scc_vn_restore_ssa_info): Likewise.
3441         (free_scc_vn): Likwise.
3442         (run_scc_vn): Likewise.
3443         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3444         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
3445         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3446         * tree-ssa.c (verify_ssa): Likewise.
3448 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3450         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
3451         and mips64r2 as default 32-bit and 64-bit architectures.
3452         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
3453         as default 32-bit and 64-bit architectures.
3455 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
3457         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
3458         of succ edge.
3460 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3462         * target.def (lra_p): Change commentary (for the manual) for the
3463         new default.
3464         * doc/tm.texi: Regenerate.
3466 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3468         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
3469         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
3470         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
3471         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
3473 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3475         * targhooks.c (default_lra_p): Return true instead of false.
3477 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3479         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
3480         hook_bool_void_false.
3481         * config/avr/avr.c: Ditto.
3482         * config/bfin/bfin.c: Ditto.
3483         * config/c6x/c6x.c: Ditto.
3484         * config/cr16/cr16.c: Ditto.
3485         * config/cris/cris.c: Ditto.
3486         * config/epiphany/epiphany.c: Ditto.
3487         * config/fr30/fr30.c: Ditto.
3488         * config/frv/frv.c: Ditto.
3489         * config/h8300/h8300.c: Ditto.
3490         * config/ia64/ia64.c: Ditto.
3491         * config/iq2000/iq2000.c: Ditto.
3492         * config/lm32/lm32.c: Ditto.
3493         * config/m32c/m32c.c: Ditto.
3494         * config/m32r/m32r.c: Ditto.
3495         * config/m68k/m68k.c: Ditto.
3496         * config/mcore/mcore.c: Ditto.
3497         * config/microblaze/microblaze.c: Ditto.
3498         * config/mmix/mmix.c: Ditto.
3499         * config/mn10300/mn10300.c: Ditto.
3500         * config/moxie/moxie.c: Ditto.
3501         * config/msp430/msp430.c: Ditto.
3502         * config/nios2/nios2.c: Ditto.
3503         * config/nvptx/nvptx.c: Ditto.
3504         * config/pa/pa.c: Ditto.
3505         * config/pdp11/pdp11.c: Ditto.
3506         * config/rl78/rl78.c: Ditto.
3507         * config/sparc/sparc.c: Ditto.
3508         * config/spu/spu.c: Ditto.
3509         * config/stormy16/stormy16.c: Ditto.
3510         * config/tilegx/tilegx.c: Ditto.
3511         * config/tilepro/tilepro.c: Ditto.
3512         * config/v850/v850.c: Ditto.
3513         * config/vax/vax.c: Ditto.
3514         * config/visium/visium.c: Ditto.
3515         * config/xtensa/xtensa.c: Ditto.
3517 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
3519         PR sanitizer/68260
3520         * tsan.c: Include target.h.
3521         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3522         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3523         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3524         BUILT_IN_ATOMIC_TEST_AND_SET entries.
3525         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3527 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3528             Martin Liska  <mliska@suse.cz>
3530         PR middle-end/77574
3531         * predict.c (force_edge_cold): Add braces to a condition.
3533 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3535         PR rtl-optimization/77289
3536         * lra-constraints.c (get_final_hard_regno): Removed.
3537         (get_hard_regno): Add new parameter final_p.
3538         (get_reg_class): Directly call lra_get_elimination_hard_regno.
3539         (operands_match_p): Adjust call to get_hard_regno.
3540         (uses_hard_regs_p): Likewise.
3541         (process_alt_operands): Likewise.
3543 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
3545         PR target/70713
3546         * config/msp430/msp430.c (msp430_start_function): Emit an error
3547         if a function is both weak and specifies an interrupt number.
3549 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
3551         PR tree-optimization/77454
3552         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
3553         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
3554         Formatting fix.
3556 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
3558         * config/aarch64/aarch64-builtins.c
3559         (aarch64_init_simd_builtins): Fix builtin type signature printing.
3561 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
3563         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
3564         SFmode and SCmode arguments by reference.
3566 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
3568         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
3569         Rename to...
3570         (selftest::test_one_liner_fixit_insert_before): ...this, and update
3571         for renaming of add_fixit_insert to add_fixit_insert_before.
3572         (selftest::test_one_liner_fixit_insert_after): New function.
3573         (selftest::test_one_liner_fixit_validation_adhoc_locations):
3574         Update for renaming of add_fixit_insert to add_fixit_insert_before.
3575         (selftest::test_one_liner_many_fixits): Likewise.
3576         (selftest::test_diagnostic_show_locus_one_liner): Update for
3577         renaming, call new test function.
3578         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
3579         renaming of add_fixit_insert to add_fixit_insert_before.
3580         (selftest::test_fixit_consolidation): Likewise.
3581         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
3582         Likewise.
3583         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
3584         (selftest::test_applying_fixits_insert_before): ...this.
3585         (selftest::test_applying_fixits_insert): Update for renaming of
3586         add_fixit_insert to add_fixit_insert_before.
3587         (selftest::test_applying_fixits_insert_after): New function.
3588         (selftest::test_applying_fixits_insert_after_at_line_end): New
3589         function.
3590         (selftest::test_applying_fixits_insert_after_failure): New function.
3591         (selftest::test_applying_fixits_multiple): Update for renaming of
3592         add_fixit_insert to add_fixit_insert_before.
3593         (selftest::change_line): Likewise.
3594         (selftest::test_applying_fixits_unreadable_file): Likewise.
3595         (selftest::test_applying_fixits_line_out_of_range): Likewise.
3596         (selftest::test_applying_fixits_column_validation): Likewise.
3597         (selftest::test_applying_fixits_column_validation): Likewise.
3598         (selftest::edit_context_c_tests): Update for renamed test function;
3599         call new test functions.
3601 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
3603         PR tree-optimization/77536
3604         PR rtl-optimization/68212
3605         * config/rs6000/rs6000.md (div->recip splitter): Remove
3606         optimize_insn_for_speed_p condition.
3608 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
3610         * optabs.c (prepare_cmp_insn): Update documentation comment.
3612 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
3613             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3615         PR middle-end/77475
3616         * opts.h (candidates_list_and_hint): Declare.
3617         * opts-common.c (candidates_list_and_hint): New function.
3618         (cmdline_handle_error): Use it.
3620 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
3622         * edit-context.c (edited_line::get_len): New accessor.
3623         (edited_file::print_diff): Split out hunk-printing into...
3624         (edited_file::print_diff_hunk): New method.
3625         (edited_file::print_diff_line): New method.
3627 2016-09-12  Andrew Pinski  <apinski@cavium.com>
3629         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
3630         New tuning option.
3631         * config/aarch64/aarch64.c (thunderx_tunings): Enable
3632         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
3633         (aarch64_operands_ok_for_ldpstp): Return false if
3634         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
3635         was SImode and the alignment is less than 8 byte.
3636         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3638 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
3640         PR target/77570
3641         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
3643 2016-09-12  Marek Polacek  <polacek@redhat.com>
3645         * doc/extend.texi: Use lowercase "boolean".
3646         * doc/invoke.texi: Likewise.
3647         * doc/md.texi: Likewise.
3648         * target.def: Likewise.
3649         * doc/tm.texi: Regenerated.
3651 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3653         PR middle-end/77426
3654         * expmed.c (synth_mult): Delete duplicate mode check.
3656 2016-09-10  Tom de Vries  <tom@codesourcery.com>
3658         PR C/71602
3659         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
3660         va_list type only.
3661         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
3662         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
3664 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
3666         PR rtl-optimization/77289
3667         * lra-constraints.c (get_final_hard_regno): Add support for non hard
3668         register numbers.  Remove support for subregs.
3669         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
3670         (get_reg_class): Delete removed get_final_hard_regno() argument.
3671         (uses_hard_regs_p): Call get_final_hard_regno().
3673 2016-09-09  Martin Sebor  <msebor@redhat.com>
3675         PR c/77520
3676         PR c/77521
3677         * pretty-print.c (pp_quoted_string): New function.
3678         (pp_format): Call it for %c and %s directives.
3680 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3682         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
3683         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
3684         INITIAL_ELIMINATION_OFFSET) : Update documentation.
3685         * target.def (frame_pointer_required, can_eliminate): Likewise.
3686         * doc/tm.texi: Regenerated.
3687         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
3688         ELIMINABLE_REGS.
3689         * df-scan.c (df_hard_reg_init): Likewise.
3690         * ira.c (ira_setup_eliminable_regset): Likewise.
3691         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
3692         init_elim_table): Likewise.
3693         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
3694         set_initial_elim_offsets, update_eliminables,
3695         init_elim_table): Likewise.
3696         * rtlanal.c (get_initial_register_offset): Likewise.
3697         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3698         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3699         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3700         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3701         * config/fr30/fr30.h: Fix comment.
3702         * config/frv/frv.c: Likewise.
3703         * config/frv/frv.h: Likewise.
3704         * config/ft32/ft32.h: Likewise.
3705         * config/visium/visium.h: Likewise.
3706         * config/pa/pa64-linux.h: Likewise.
3707         * config/v850/v850.h: Likewise.
3708         * config/cris/cris.c: Likewise.
3709         * config/ia64/ia64.h: Likewise.
3710         * config/moxie/moxie.h: Likewise.
3711         * config/m32r/m32r.h: Likewise.
3713 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3715         PR target/77267
3716         * config.in: Regenerate.
3717         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
3718         New macro.
3719         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
3720         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
3721         static-libmpxwrappers case.
3722         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
3723         MPX_LD_AS_NEEDED_GUARD_POP.
3724         * configure: Regenerate.
3725         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
3726         defined if linker support "--push-state"/"--pop-state".
3728 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3730         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
3732 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
3734         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
3735         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
3736         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
3737         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
3738         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
3739         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
3740         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
3741         Document.
3742         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
3743         width macros from TS 18661-1.
3744         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
3746 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
3748         PR fortran/77516
3749         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
3750         OMP_CLAUSE_SAFELEN_EXPR.
3752 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
3754         * Makefile.in (OBJS): Add substring-locations.o.
3755         * langhooks-def.h (class substring_loc): New forward decl.
3756         (lhd_get_substring_location): New decl.
3757         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
3758         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
3759         * langhooks.c (lhd_get_substring_location): New function.
3760         * langhooks.h (class substring_loc): New forward decl.
3761         (struct lang_hooks): Add field get_substring_location.
3762         * substring-locations.c: New file, taking definition of
3763         format_warning_va and format_warning_at_substring from
3764         c-family/c-format.c, making them non-static.
3765         * substring-locations.h (class substring_loc): Move class here
3766         from c-family/c-common.h.  Add and rewrite comments.
3767         (format_warning_va): New decl.
3768         (format_warning_at_substring): New decl.
3769         (get_source_location_for_substring): Add comment.
3771 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
3773         * config/i386/i386.c: Add 'U' suffix to processor feature bits
3774         to avoid -Wnarrowing warning.
3775         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
3776         * opts.c: Likewise for SANITIZER_OPT bitmasks.
3778 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
3780         * config/aarch64/aarch64.c (aarch64_legitimize_address):
3781         Avoid use of base_offset if offset already in range.
3783 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3785         * config/sh/sh-protos.h (struct sh_atomic_model,
3786         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3787         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3788         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
3789         * config/sh/sh.h (struct sh_atomic_model,
3790         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3791         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3792         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
3793         Guard with __cplusplus.
3795 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
3797         PR target/69255
3798         * config/i386/i386.c (ix86_expand_builtin): For builtin with
3799         unsupported or unknown ISA, use expand_call.
3801 2016-09-06  Martin Liska  <mliska@suse.cz>
3803         PR gcov-profile/77378
3804         PR gcov-profile/77466
3805         * tree-profile.c (tree_profiling): Detect whether target can use
3806         -fprofile-update=atomic.
3808 2016-09-06  Richard Biener  <rguenther@suse.de>
3810         PR tree-optimization/77479
3811         * tree-vrp.c (update_value_range): Extend overflow handling to
3812         VARYING.
3814 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3816         PR target/77476
3817         * config/i386/i386.md (isa): Add x64_avx512bw.
3818         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
3819         (kmov_isa): New mode attr.
3820         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
3821         (*zero_extend<mode>si2): Likewise.
3822         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
3824 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
3826         * doc/invoke.texi (SPU Options): nops -> NOPs.
3827         (x86 Options): Ditto.
3829 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3831         PR middle-end/77475
3832         * toplev.c (process_options): Temporarily set input_location
3833         to UNKNOWN_LOCATION around targetm.target_option.override () call.
3835 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
3837         PR rtl-optimization/77452
3838         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
3839         inner-mode reference to a CONST_VECTOR constant in the constant pool.
3841 2016-09-05  Marek Polacek  <polacek@redhat.com>
3843         PR c/77423
3844         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
3846 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3848         PR other/77421
3849         * gensupport.c (alter_output_for_subst_insn): Remove redundant
3850         *insn_out == '*' test.  Don't copy unnecessary to yet another
3851         memory buffer, and don't leak it.
3853         PR rtl-optimization/77425
3854         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
3856 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
3858         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
3860 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3862         * common.opt (fdiagnostics-generate-patch): New option.
3863         * diagnostic.c: Include "edit-context.h".
3864         (diagnostic_initialize): Initialize context->edit_context_ptr.
3865         (diagnostic_finish): Delete context->edit_context_ptr.
3866         (diagnostic_report_diagnostic): Add fix-it hints from the
3867         diagnostic to context->edit_context_ptr, if any.
3868         * diagnostic.h (class edit_context): Add forward decl.
3869         (struct diagnostic_context): Add field "edit_context_ptr".
3870         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3871         -fdiagnostics-generate-patch.
3872         (-fdiagnostics-generate-patch): New item.
3873         * toplev.c: Include "edit-context.h".
3874         (process_options): Set global_dc->edit_context_ptr to a new
3875         edit_context if the options need one.
3876         (toplev::main): Handle -fdiagnostics-generate-patch by using
3877         global_dc->edit_context_ptr.
3879 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3881         PR c/65467
3882         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
3883         map and firstprivate clauses on target construct for _Atomic
3884         qualified decls.
3885         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
3886         on target construct for _Atomic qualified decls.
3887         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
3888         decls.
3889         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
3890         _Atomic qualified arguments not mentioned in uniform clause.
3892 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3894         * Makefile.in (OBJS-libcommon): Add edit-context.o.
3895         * diagnostic-color.c (color_dict): Add "diff-filename",
3896         "diff-hunk", "diff-delete", and "diff-insert".
3897         (parse_gcc_colors): Update default value of GCC_COLORS in comment
3898         to reflect above changes.
3899         * doc/invoke.texi (-fdiagnostics-color): Update description of
3900         default GCC_COLORS, and of the supported capabilities.
3901         * edit-context.c: New file.
3902         * edit-context.h: New file.
3903         * input.c (struct fcache): Add field "missing_trailing_newline".
3904         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
3905         true.
3906         (add_file_to_cache_tab): Likewise.
3907         (fcache::fcache): Likewise.
3908         (get_next_line): Update c->missing_trailing_newline.
3909         (location_missing_trailing_newline): New function.
3910         * input.h (location_missing_trailing_newline): New decl.
3911         * selftest-run-tests.c (selftest::run_tests): Call
3912         edit_context_c_tests.
3913         * selftest.h (edit_context_c_tests): New decl.
3915 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3916             Richard Biener  <rguenth@suse.de>
3918         PR tree-optimization/77444
3919         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
3920         as steptype, remove redundant initialization.
3922 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3924         PR sanitizer/77396
3925         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
3926         (sanopt_optimize_walker): Optimize away
3927         __asan_before_dynamic_init (...) followed by
3928         __asan_after_dynamic_init () without intervening memory loads/stores.
3929         * ipa-pure-const.c (special_builtin_state): Handle
3930         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
3931         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
3933 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3935         * cfg.c (free_original_copy_tables): Replace second assignment of
3936         bb_copy = NULL by bb_original = NULL.
3938 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3940         PR other/77421
3941         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
3942         assignment added in r216794.
3944 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3946         * Makefile.in (OBJS): Add typed-splay-tree.o.
3947         * selftest-run-tests.c (selftest::run_tests): Call
3948         typed_splay_tree_c_tests.
3949         * selftest.h (typed_splay_tree_c_tests): New decl.
3950         * typed-splay-tree.c: New file.
3951         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
3952         (typed_splay_tree::max): New method.
3953         (typed_splay_tree::min): New method.
3954         (typed_splay_tree::foreach): New method.
3955         (typed_splay_tree::closure): New struct.
3956         (typed_splay_tree::inner_foreach_fn): New function.
3958 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3960         * ipa-cp.c (ipcp_store_bits_results): Change option name from
3961         -fipa-cp-bit to -fipa-bit-cp.
3963 2016-09-01  Martin Sebor  <msebor@redhat.com>
3965         PR tree-optimization/71831
3966         * tree-object-size.h: Return bool instead of the size and add
3967         argument for the size.
3968         * tree-object-size.c (compute_object_offset): Update signature.
3969         (addr_object_size): Same.
3970         (compute_builtin_object_size): Return bool instead of the size
3971         and add argument for the size.  Handle POINTER_PLUS_EXPR when
3972         optimization is disabled.
3973         (expr_object_size): Adjust.
3974         (plus_stmt_object_size): Adjust.
3975         (pass_object_sizes::execute): Adjust.
3976         * builtins.c (fold_builtin_object_size): Adjust.
3977         * doc/extend.texi (Object Size Checking): Update.
3978         * ubsan.c (instrument_object_size): Adjust.
3980 2016-09-01  Martin Sebor  <msebor@redhat.com>
3982         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
3983         it fits the output of the formatted function regardless of its
3984         arguments.
3985         * gcc/genmodes.c (parser::parse_expr): Same.
3986         * gimplify.c (gimplify_asm_expr): Same.
3987         * passes.c (pass_manager::register_one_dump_file): Same.
3988         * print-tree.c (print_node): Same.
3990 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3992         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
3994 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3996         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
3998 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4000         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
4001         * config/rs6000/vector.md: Ditto.
4002         * config/rs6000/vsx.md: Ditto.
4004 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4006         * ipa-inline-analysis.c (param_change_prob): Get to the base object
4007         first in all cases.
4009 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4011         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
4012         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
4013         *return_and_restore_gpregs_<mode>_r11,
4014         *return_and_restore_gpregs_<mode>_r12,
4015         *return_and_restore_gpregs_<mode>_r1,
4016         *return_and_restore_fpregs_<mode>_r11,
4017         *return_and_restore_fpregs_<mode>_r12,
4018         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
4019         directly instead of via the "l" constraint.  Renumber operands.
4020         Fix whitespace.
4022 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4024         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
4025         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
4026         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
4027         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
4028         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
4029         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
4030         *call_value_nonlocal_darwin64, reload_macho_picbase,
4031         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
4032         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
4033         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
4034         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
4035         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
4036         *save_fpregs_<mode>_r1): Ditto.
4037         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
4038         *return_and_restore_gpregs_spe): Ditto.
4040 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
4042         * config/rs6000/rs6000.md
4043         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
4044         the use of the link register.
4045         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
4047 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
4048             Michael Meissner  <meissner@linux.vnet.ibm.com>
4050         PR target/72827
4051         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
4052         reg+reg addressing for TImode.
4053         (rs6000_legitimate_address_p): Only allow register indirect
4054         addressing for TImode, even without TARGET_QUAD_MEMORY.
4056 2016-09-01  Richard Biener  <rguenther@suse.de>
4058         PR middle-end/77436
4059         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
4060         check whether the result fits the desired result type.
4062 2016-09-01  Nathan Sidwell  <nathan@acm.org>
4064         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
4066 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
4068         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
4069         New function.
4070         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
4072 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4074         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
4075         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
4076         for comparisons of integer ZERO_EXTEND against zero.
4078 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4080         * config/i386/i386.c (ix86_option_override_internal): Also disable the
4081         STV pass if -mstackrealign is enabled.
4083 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
4085         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
4086         AVX512IFMA.
4088 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4090         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
4091         (layout_range::intersects_line_p): New method.
4092         (test_range_contains_point_for_single_point): Rename to...
4093         (test_layout_range_for_single_point): ...this, and add testing
4094         for layout_range::intersects_line_p.
4095         (test_range_contains_point_for_single_line): Rename to...
4096         (test_layout_range_for_single_line): ...this,  and add testing
4097         for layout_range::intersects_line_p.
4098         (test_range_contains_point_for_multiple_lines): Rename to...
4099         (test_layout_range_for_multiple_lines): ...this,  and add testing
4100         for layout_range::intersects_line_p.
4101         (layout::layout): Populate m_fixit_hints.
4102         (layout::get_expanded_location): Handle the case of a line-span
4103         for a fix-it hint.
4104         (layout::validate_fixit_hint_p): New method.
4105         (get_line_span_for_fixit_hint): New function.
4106         (layout::calculate_line_spans): Add spans for fixit-hints.
4107         (layout::should_print_annotation_line_p): New method.
4108         (layout::print_any_fixits): Drop param "richloc", instead using
4109         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
4110         (diagnostic_show_locus): Avoid printing blank annotation lines.
4111         (selftest::test_diagnostic_context::test_diagnostic_context):
4112         Initialize show_column and start_span.
4113         (selftest::test_diagnostic_context::start_span_cb): New static
4114         function.
4115         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
4116         (selftest::diagnostic_show_locus_c_tests): Update for function
4117         renamings.  Call test_diagnostic_show_locus_fixit_lines.
4119 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4121         PR tree-optimization/73714
4122         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4124 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4126         * selftest.c: Move "namespace selftest {" to top of file,
4127         removing explicit "selftest::" qualifiers throughout.
4129 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4131         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4132         New types.
4133         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4134         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4135         Replace builtin with vector extension.
4136         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4137         New types.
4138         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4139         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4140         Replace builtin with vector extension.
4141         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4142         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4143         Replace builtin with vector extension.
4144         * config/i386/xmmintrin.h (__m128_u): New type.
4145         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4146         (_mm_load_ps, _mm_store_ps): Simplify.
4148 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4150         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4152 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4154         * diagnostic-show-locus.c (colorizer::begin_state): Support more
4155         than 3 ranges per diagnostic by alternating between color 1 and
4156         color 2.
4157         (layout::layout): Replace use of rich_location::MAX_RANGES
4158         with richloc->get_num_locations ().
4159         (layout::calculate_line_spans): Replace use of
4160         rich_location::MAX_RANGES with m_layout_ranges.length ().
4161         (layout::print_annotation_line): Handle arbitrary numbers of
4162         ranges in caret-printing by defaulting to '^'.
4163         (selftest::test_one_liner_many_fixits): New function.
4164         (test_diagnostic_show_locus_one_liner): Call it.
4165         * diagnostic.c (diagnostic_initialize): Update for renaming
4166         of rich_location::MAX_RANGES to
4167         rich_location::STATICALLY_ALLOCATED_RANGES.
4168         * diagnostic.h (struct diagnostic_context): Likewise.
4170 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4172         * selftest.c (selftest::named_temp_file::named_temp_file): New
4173         ctor.
4174         (selftest::temp_source_file::~temp_source_file): Move to...
4175         (selftest::named_temp_file::~named_temp_file): ...here.
4176         (selftest::test_named_temp_file): New function.
4177         (selftest::selftest_c_tests): Call test_named_temp_file.
4178         * selftest.h (class named_temp_file): New class.
4179         (class temp_source_file): Convert to a subclass of named_temp_file.
4181 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
4183         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4184         USEs of LR_REGNO in returns and sibcalls.
4185         (rs6000_output_mi_thunk): Similar.
4186         (rs6000_sibcall_aix): Similar.
4187         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4188         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4189         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4190         Remove the USE of LR_REGNO from the patterns as well.  Delete an
4191         obsolete comment.
4192         (return_internal_<mode>): Delete.
4194 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
4196         * gcc/config/aarch64/aarch64-simd.md
4197         (aarch64_ld2<mode>_dreg_le): New.
4198         (aarch64_ld2<mode>_dreg_be): New.
4199         (aarch64_ld2<mode>_dreg): Removed.
4200         (aarch64_ld3<mode>_dreg_le): New.
4201         (aarch64_ld3<mode>_dreg_be): New.
4202         (aarch64_ld3<mode>_dreg): Removed.
4203         (aarch64_ld4<mode>_dreg_le): New.
4204         (aarch64_ld4<mode>_dreg_be): New.
4205         (aarch64_ld4<mode>_dreg): Removed.
4206         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4208 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4210         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4211         redundant location param.
4212         (test_one_liner_fixit_remove): Likewise.
4213         (test_one_liner_fixit_replace): Likewise.
4214         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4215         * gcc-rich-location.c
4216         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4217         get_range_from_loc.  Drop overload taking a const char *.
4218         * gcc-rich-location.h
4219         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4220         a const char *.
4222 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4224         * config/linux.c (linux_libc_has_function): Return true on musl.
4226 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4228         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4230 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4232         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4233         used for abnormal egdes.
4235 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
4237         PR tree-optimization/72866
4238         * tree-vect-patterns.c (search_type_for_mask): Turn into
4239         a small wrapper, move all code to ...
4240         (search_type_for_mask_1): ... this new function.  Add caching
4241         and adjust recursive calls.
4243         PR debug/77363
4244         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4245         instead of lookup_type_die (type_main_variant (type)) even for array
4246         types.
4248         PR middle-end/77377
4249         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4250         constant pool reference return x instead of c.
4252 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
4254         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4255         include MQ.
4257 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4259         * input.c
4260         (selftest::test_make_location_nonpure_range_endpoints): Fix
4261         header comment.
4263 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4265         * diagnostic-show-locus.c
4266         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4267         function.
4268         (selftest::test_diagnostic_show_locus_one_liner): Call it.
4269         * input.c (get_pure_location): Move to libcpp/line-map.c.
4270         * input.h (get_pure_location): Convert decl to an inline function
4271         calling implementation in libcpp.
4273 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
4275         PR target/77403
4276         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4277         template for intel asm dialect.
4278         (vec_set_hi_<mode><mask_name>): Ditto.
4280 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4282         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4283         (selftest::fail_formatted): Likewise.
4285 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4287         * input.c (make_location): Call get_start and get_finish
4288         on the endpoints to avoid storing packed ranges or ad-hoc
4289         ranges in them.
4290         (selftest::test_make_location_nonpure_range_endpoints): New function.
4291         (selftest::input_c_tests): Call it.
4292         * input.h (get_start): New inline function.
4294 2016-08-29  Tom de Vries  <tom@codesourcery.com>
4296         PR c/77398
4297         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4298         with assert.
4300 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4302         * Makefile.in (gcov-iov.h): Add dummy recipe.
4304 2016-08-29  Nathan Sidwell  <nathan@acm.org>
4306         * config/nvptx/nvptx.c: #include tree-vrp.h.
4308 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4310         PR target/77324
4311         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4312         HIGH+LO construct during reload.
4314 2016-08-28  Tom de Vries  <tom@codesourcery.com>
4316         PR lto/70955
4317         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4318         'sysv_abi va_list' attribute.
4319         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4320         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4321         attributes.
4323 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4325         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4326         * emit-rtl.c (unshare_all_rtl_1): Adjust.
4327         (unshare_all_rtl_again): Likewise.
4328         * function.c (assign_stack_local_1): Likewise.
4329         (assign_stack_temp_for_type): Likewise.
4331 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4333         * cfgbuild.c (make_edges): Adjust.
4334         * cfgrtl.c (can_delete_label_p): Likewise.
4335         * dwarf2cfi.c (create_trace_edges): Likewise.
4336         * except.c (sjlj_emit_dispatch_table): Likewise.
4337         * function.h (struct expr_status): make x_forced_labels a vector.
4338         * jump.c (rebuild_jump_labels_1): Adjust.
4339         * reload1.c (set_initial_label_offsets): Likewise.
4340         * stmt.c (force_label_rtx): Likewise.
4341         (expand_label): Likewise.
4343 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4345         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4347 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
4349         PR tree-optimization/71077
4350         PR tree-optimization/68542
4351         * fold-const.c (fold_relational_const): Fix folding of
4352         VECTOR_CST comparisons that have a scalar boolean result type.
4353         (selftest::test_vector_folding): New static function.
4354         (selftest::fold_const_c_tests): Call it.
4356 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
4358         * doc/extend.texi (SPU Built-in Functions): Remove stale
4359         references to material formerly at IBM and Sony.
4361 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
4363         PR target/77349
4364         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4366 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
4368         * diagnostic-show-locus.c
4369         (selftest::test_fixit_consolidation): New function.
4370         (selftest::diagnostic_show_locus_c_tests): Call it.
4371         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4372         constructor based on source_range.
4374 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
4376         * diagnostic-color.c (color_dict): Add "fixit-insert" and
4377         "fixit-delete".
4378         (parse_gcc_colors): Update description of default GCC_COLORS.
4379         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4380         (colorizer::set_fixit_insert): New method.
4381         (colorizer::set_fixit_delete): New method.
4382         (colorizer::get_color_by_name): New method.
4383         (colorizer::STATE_FIXIT_INSERT): New constant.
4384         (colorizer::STATE_FIXIT_DELETE): New constant.
4385         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
4386         fields in favor of new field "m_stop_color".  Add fields
4387         "m_fixit_insert" and "m_fixit_delete".
4388         (colorizer::colorizer): Update for above changes.  Replace
4389         colorize_start calls with calls to get_color_by_name.
4390         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4391         STATE_FIXIT_DELETE.  Update for field renamings.
4392         (colorizer::finish_state): Simplify by using m_stop_color,
4393         rather than multiple identical "*_ce" fields.
4394         (colorizer::get_color_by_name): New method.
4395         (layout::print_any_fixits): Print insertions and replacements
4396         using the "fixit-insert" color, and deletions using the
4397         "fixit-delete" color.
4398         * doc/invoke.texi (-fdiagnostics-color): Update description of
4399         default GCC_COLORS, and of the supported capabilities.
4401 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
4403         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4404         current_function_static_stack_size variable with the static
4405         stack frame size of the current function when
4406         flag_stack_usage_info is enabled.
4408 2016-08-26  Nathan Sidwell  <nathan@acm.org>
4410         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4411         assignment inside if condition.
4413 2016-08-26  Richard Biener  <rguenther@suse.de>
4415         PR tree-optimization/69047
4416         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4417         extracts similar to what FRE does.
4418         (non_rewritable_mem_ref_base): Likewise.
4420 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
4422         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4423         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4424         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4425         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4426         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4427         Likewise.
4428         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4429         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4430         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4431         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4432         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4434 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4436         PR target/70473
4437         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4438         reservation duration to 15 cycles.
4439         (cortex_a8_vfp_macs): Likewise.
4440         (cortex_a8_vfp_macd): Likewise.
4441         (cortex_a8_vfp_divs): Likewise.
4442         (cortex_a8_vfp_divd): Likewise.
4444 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4446         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
4447         (aarch_macro_fusion_pair_p): Use above to avoid early return.
4449 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4450             Martin Jambhor  <mjambor@suse.cz>
4452         * common.opt: New option -fipa-bit-cp.
4453         * doc/invoke.texi: Document -fipa-bit-cp.
4454         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
4455         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
4456         * tree-ssa-ccp.h: New header file.
4457         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
4458         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
4459         Replace all occurences of tree parameter by two new params: signop, int.
4460         (bit_value_unop_1): Change to bit_value_unop and export it.
4461         Replace all occurences of tree parameter by two new params: signop,
4462         int.
4463         (bit_value_binop): Change call from bit_value_binop_1 to
4464         bit_value_binop.
4465         (bit_value_assume_aligned): Likewise.
4466         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
4467         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
4468         to ccp_finalize.
4469         (ccp_finalize): Skip processing if val->mask == 0.
4470         * ipa-cp.c: Include tree-ssa-ccp.h
4471         (ipcp_bits_lattice): New class.
4472         (ipcp_param_lattice (bits_lattice): New member.
4473         (print_all_lattices): Call ipcp_bits_lattice::print.
4474         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
4475         (initialize_node_lattices): Likewise.
4476         (propagate_bits_accross_jump_function): New function.
4477         (propagate_constants_accross_call): Call
4478         propagate_bits_accross_jump_function.
4479         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
4480         (ipcp_store_bits_results): New function.
4481         (ipcp_driver): Call ipcp_store_bits_results.
4482         * ipa-prop.h (ipa_bits): New struct.
4483         (ipa_jump_func): Add new member bits of type ipa_bits.
4484         (ipa_param_descriptor): Change decl to decl_or_type.
4485         (ipa_get_param): Change decl to decl_or_type and assert on
4486         PARM_DECL.
4487         (ipa_get_type): New function.
4488         (ipcp_transformation_summary): New member bits.
4489         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
4490         (ipa_populate_param_decls): Likewise.
4491         (ipa_dump_param): Likewise.
4492         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
4493         function.
4494         (ipa_set_jf_unknown): Set ipa_bits::known to false.
4495         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
4496         propagation.
4497         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
4498         (ipa_write_jump_function): Add streaming for ipa_bits.
4499         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
4500         (write_ipcp_transformation_info): Add streaming for ipa_bits
4501         summary for ltrans.
4502         (read_ipcp_transfomration_info): Add support for reading streamed
4503         ipa_bits.
4504         (ipcp_update_bits): New function.
4505         (ipcp_transform_function): Call ipcp_update_bits.
4507 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4509         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
4510         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
4512 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
4514         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
4516 2016-08-25  Richard Biener  <rguenther@suse.de>
4518         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
4519         Only add locations in late dwarf.
4520         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
4521         (dwarf2out_early_finish): But do it here.
4523 2016-08-24  Michael Collison  <michael.collison@linaro.org>
4524             Michael Collison  <michael.collison@arm.com>
4526         * config/arm/arm-modes.def: Add new condition code mode CC_V
4527         to represent the overflow bit.
4528         * config/arm/arm.c (maybe_get_arm_condition_code):
4529         Add support for CC_Vmode.
4530         (arm_gen_unlikely_cbranch): New function to generate common
4531         rtl conditional branches for overflow patterns.
4532         * config/arm/arm-protos.h: Add prototype for
4533         arm_gen_unlikely_cbranch.
4534         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
4535         addsi3_compareV_upper): New patterns to support signed
4536         builtin overflow add operations.
4537         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
4538         New patterns to support unsigned builtin add overflow operations.
4539         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
4540         builtin overflow subtract operations,
4541         (usubv<mode>4): New patterns to support unsigned builtin subtract
4542         overflow operations.
4543         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
4544         to support builtin overflow negate operations.
4546 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4548         Revert
4549         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4551         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4552         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4553         needed.
4555 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4557         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
4558         MULTILIB_OPTIONS should be used.  Small wording fixes.
4559         * genmultilib: Memorize set of all option combinations in
4560         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
4561         found in MULTILIB_OPTIONS by checking if option set is listed in
4562         combination_space.  Output new and existing error message to stderr.
4564 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4566         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
4567         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
4568         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
4569         (MULTILIB_REUSE): Remove reuse rules for option set including
4570         -mfpu=fp-armv8 and -mfpu=vfpv4
4572 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4574         * config/arm/t-rtems: Add vfp multilib.
4576 2016-08-23  Ian Lance Taylor  <iant@golang.org>
4578         * config/s390/s390.c (s390_asm_file_start): Call
4579         default_file_start.
4581 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4583         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
4584         initialization of all 0's to the 0 constant, instead of directly
4585         generating XOR.  Add support for V4SImode vector initialization on
4586         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
4587         initialization.  Change variables used in V4SFmode vector
4588         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
4589         any memory addresses are in index form.  Add support for using
4590         VSPLTH/VSPLTB to initialize vector short and vector char vectors
4591         with all of the same element.
4592         (regno_or_subregno): New helper function to return a register
4593         number for either REG or SUBREG.
4594         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
4595         Use regno_or_subregno where possible.
4596         (rs6000_split_v4si_init_di_reg): New helper function to build up a
4597         DImode value from two SImode values in order to generate V4SImode
4598         vector initialization on 64-bit systems with direct move.
4599         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
4600         initialization.
4601         (rtx_is_swappable_p): V4SImode vector initialization insn is not
4602         swappable.
4603         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
4604         declaration.
4605         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
4606         attributes to initialize V8HImode and V16QImode vectors with the
4607         same element.
4608         (VSX_SPLAT_COUNT): Likewise.
4609         (VSX_SPLAT_SUFFIX): Likewise.
4610         (UNSPEC_VSX_VEC_INIT): New unspec.
4611         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
4612         Allow SFmode values to come from Altivec registers.
4613         (vsx_init_v4si): New insn/split for V4SImode vector initialization
4614         on 64-bit systems with direct move.
4615         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
4616         vector initializations, to allow V4SImode vector initializations
4617         on 64-bit systems with direct move.
4618         (vsx_splat_v4si): Likewise.
4619         (vsx_splat_v4si_di): Likewise.
4620         (vsx_splat_v4sf): Likewise.
4621         (vsx_splat_v4sf_internal): Likewise.
4622         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
4623         register classes.
4624         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
4625         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
4626         initializing V8HImode and V16QImode vectors with the same
4627         element.
4628         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
4629         optimization if -maltivec=be.
4631 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
4633         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
4634         attribute for alternatives 3 and 4.
4636 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
4638         * selftest.c (selftest::assert_str_contains): New function.
4639         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
4640         * selftest.h (selftest::assert_str_contains): New decl.
4641         (ASSERT_STR_CONTAINS): New macro.
4643 2016-08-23  Richard Biener  <rguenther@suse.de>
4645         PR tree-optimization/77286
4646         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
4647         the CFG here.
4648         (vect_transform_loop): Split exit edges of loop and scalar
4649         loop if required and at the appropriate time.
4651 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4653         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4654         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4655         needed.
4656         Correct a typo in a comment.
4658 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4660         * config/s390/s390.md ("*andc_split"): New splitter for and with
4661         complement.
4663 2016-08-23  Richard Biener  <rguenther@suse.de>
4665         PR tree-optimization/27336
4666         * tree-vrp.c (infer_value_range): Handle stmts that can throw
4667         by looking for a non-EH edge.
4668         (process_assert_insertions_for): Likewise.
4670 2016-08-23  Richard Biener  <rguenther@suse.de>
4672         PR middle-end/77305
4673         * statistics.c (statistics_counter_event): Robustify against
4674         NULL current_pass.
4676 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4678         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
4679         for targets amdfam10 and barcelona.
4681 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
4683         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
4684         (zero_extend<mode>di2): Ditto.
4685         (*zero_extend<mode>si2): Ditto.
4686         (*zero_extendqihi2): Ditto.
4688 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
4690         PR middle-end/77269
4691         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
4692         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
4694 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
4696         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
4697         identical consecutive elements.
4698         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
4699         the node's def stmt, avoid printing an unwanted trailing newline by
4700         replacing the call to print_gimple_stmt() with its inlined body and
4701         adjusting it to not set pp_needs_newline and to call pp_flush()
4702         instead of pp_newline_and_flush().
4704 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
4706         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
4707         (float32_type_node, float64_type_node, float32x_type_node)
4708         (float128x_type_node): New macros.
4709         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
4710         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
4711         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
4712         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
4713         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
4714         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
4715         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
4716         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
4717         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
4718         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
4719         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
4720         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
4721         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
4722         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
4723         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
4724         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
4725         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
4726         (copysign, fabs, huge_val, inf, nan, nans): Use it.
4727         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
4728         and copysign.
4729         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
4730         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
4731         * doc/extend.texi (Other Builtins): Document these built-in
4732         functions.
4733         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
4734         for nan and nans.
4736 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
4738         * doc/install.texi (Binaries): www.opencsw.org now uses https.
4740 2016-08-22  Richard Biener  <rguenther@suse.de>
4742         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
4744 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
4746         PR target/77270
4747         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
4748         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
4749         non-SSE2 athlons only, otherwise prefer SSE prefetches.
4751 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4753         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
4754         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
4755         (vrp_visit_switch_stmt): Likewise.
4756         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
4757         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
4758         (vrp_visit_stmt): Use extract_range_from_stmt.
4759         (vrp_visit_phi_node): Use extract_range_from_phi_node.
4761 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4763         * Makefile.in: Add tree-vrp.h to GTFILES.
4764         * gengtype.c (open_base_files): Add tree-vrp.h.
4765         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
4766         * builtins.c: Likewise.
4767         * fold-const.c: Likewise.
4768         * gimple-builder.c: Likewise.
4769         * gimple-laddress.c: Likewise.
4770         * hsa-gen.c: Likewise.
4771         * internal-fn.c: Likewise.
4772         * ssa.h: Likewise.
4773         * targhooks.c: Liewise,
4774         * tree-ssa-address.c: Likewise.
4775         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
4776         * tree-vrp.c (struct value_range): Move to tree-vrp.h
4777         * tree-vrp.h: New file.
4779 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4781         PR tree-optimization/61839
4782         * tree-vrp.c (two_valued_val_range_p): New.
4783         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
4784         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
4785         Also Convert VAR BINOP CST where VAR is two-valued to
4786         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
4788 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
4790         * diagnostic-show-locus.c
4791         (layout::annotation_line_showed_range_p): New method.
4792         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
4793         Reimplement case fixit_hint::REPLACE to cover removals, and
4794         replacements where the range of the replacement isn't one
4795         of the ranges in the rich_location.
4796         (test_one_liner_fixit_replace): Likewise.
4797         (selftest::test_one_liner_fixit_replace_non_equal_range): New
4798         function.
4799         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
4800         New function.
4801         (selftest::test_diagnostic_show_locus_one_liner): Call the new
4802         functions.
4803         * diagnostic.c (print_parseable_fixits): Remove case
4804         fixit_hint::REMOVE.
4806 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
4808         PR target/77270
4809         * config/i386/i386.c (ix86_option_override_internal): Remove
4810         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
4811         Enable SSE prefetch also for TARGET_PREFETCHWT1.
4812         Do not try to enable TARGET_PRFCHW ISA flag here.
4813         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
4814         Rewrite expander function body.
4815         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
4817 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
4819         PR c/32187
4820         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
4821         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
4822         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
4823         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
4824         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
4825         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
4826         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
4827         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
4828         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
4829         tree_index values.
4830         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
4831         macros.
4832         (struct floatn_type_info): New structure type.
4833         (floatn_nx_types): New variable declaration.
4834         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
4835         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
4836         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
4837         * tree.c (floatn_nx_types): New variable.
4838         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
4839         corresponding complex types.
4840         * target.def (floatn_mode): New hook.
4841         * targhooks.c: Include "real.h".
4842         (default_floatn_mode): New function.
4843         * targhooks.h (default_floatn_mode): New prototype.
4844         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
4845         types.
4846         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
4847         effective-target and dg-add-options keywords.
4848         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
4849         Document new effective-target keywords.
4850         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
4851         * doc/tm.texi: Regenerate.
4852         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
4853         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
4854         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
4855         18661-3.
4856         * real.h (struct real_format): Add field ieee_bits.
4857         * real.c (ieee_single_format, mips_single_format)
4858         (motorola_single_format, spu_single_format, ieee_double_format)
4859         (mips_double_format, motorola_double_format)
4860         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
4861         (ieee_extended_intel_128_format)
4862         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
4863         (mips_extended_format, ieee_quad_format, mips_quad_format)
4864         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
4865         (decimal_double_format, decimal_quad_format, ieee_half_format)
4866         (arm_half_format, real_internal_format: Initialize ieee_bits
4867         field.
4868         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
4869         float128_type_node.  Set float80_type_node to float64x_type_node
4870         if appropriate and long_double_type_node not appropriate.
4871         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
4872         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
4873         Initialize ieee_bits field.
4874         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
4875         (rs6000_init_builtins): Set ieee128_float_type_node to
4876         float128_type_node.
4877         (rs6000_floatn_mode): New function.
4879 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
4881         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4882         _rdseed64_step): Uglify argument names and/or local variable names
4883         in inline functions.
4884         * config/i386/rtmintrin.h (_xabort): Likewise.
4885         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
4886         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
4887         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
4888         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
4889         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
4890         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
4891         _mm_maskz_ternarylogic_epi32): Likewise.
4892         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
4893         __lwpins32, __lwpins64): Likewise.
4894         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
4895         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
4896         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
4897         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
4898         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
4899         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
4900         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
4901         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
4902         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
4903         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
4904         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
4905         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
4906         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
4907         _mm256_mask_i64gather_epi32): Likewise.
4908         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4909         * config/i386/ia32intrin.h (__writeeflags): Likewise.
4910         * config/i386/pkuintrin.h (_wrpkru): Likewise.
4911         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
4912         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
4913         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
4914         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
4915         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
4916         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
4917         _mm512_mask_prefetch_i64scatter_ps): Likewise.
4918         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4919         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
4920         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
4921         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
4922         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
4923         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
4924         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
4925         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
4927         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
4928         returning void.
4929         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
4930         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
4931         Likewise.
4932         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
4933         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
4934         function name.
4935         (_rdpkru_u32): Add space after function name.
4937         * config/i386/t-i386 (i386-c.o): Don't depend on
4938         i386-builtin-types.inc.
4939         (i386.o): Depend on i386-builtin-types.inc.
4941 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
4943         PR target/77281
4944         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
4945         Use const_vec_duplicate to check for duplicated elements.
4947 2016-08-19  Richard Biener  <rguenther@suse.de>
4949         PR tree-optimization/77290
4950         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4951         Fix flag_tree_parallelize_loops check.
4953 2016-08-19  Richard Biener  <rguenther@suse.de>
4955         * match.pd (x | 0 -> x): Add.
4957 2016-08-19  Richard Biener  <rguenther@suse.de>
4959         PR tree-optimization/77286
4960         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4961         Deal with virtual PHIs being out-of-order.
4963 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4965         * doc/invoke.texi (fverbose-asm): Note that source code lines
4966         are emitted, and provide an example.
4967         * final.c (asm_show_source): New function.
4968         (final_scan_insn): Call asm_show_source.
4970 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4972         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
4973         param with diagnostic_kind.
4974         (class colorizer): Similarly replace field m_diagnostic with
4975         m_diagnostic_kind.
4976         (colorizer::colorizer): Replace diagnostic
4977         param with diagnostic_kind.
4978         (colorizer::begin_state): Update for above field change.
4979         (layout::layout): Replace diagnostic param with rich_location *
4980         and diagnostic_kind.
4981         (diagnostic_show_locus): Replace diagnostic param with richloc
4982         and diagnostic_kind.
4983         (class selftest::test_diagnostic_context): New class.
4984         (selftest::test_diagnostic_show_locus_unknown_location): New
4985         function.
4986         (selftest::test_one_liner_simple_caret): New function.
4987         (selftest::test_one_liner_caret_and_range): New function.
4988         (selftest::test_one_liner_multiple_carets_and_ranges): New
4989         function.
4990         (selftest::test_one_liner_fixit_remove): New function.
4991         (selftest::test_one_liner_fixit_replace): New function.
4992         (selftest::test_diagnostic_show_locus_one_liner): New function.
4993         (selftest::diagnostic_show_locus_c_tests): Call the new test
4994         functions.
4995         * diagnostic.c (diagnostic_initialize): Initialize
4996         colorize_source_p, show_ruler_p and parseable_fixits_p.
4997         (default_diagnostic_finalizer): Update for change to
4998         diagnostic_show_locus.
4999         (diagnostic_append_note): Likewise.
5000         * diagnostic.h (diagnostic_show_locus): Replace
5001         const diagnostic_info * param with location * and diagnostic_t.
5003 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5005         * input.c (saved_line_table): New global.
5006         (class selftest::temp_line_table): Rename to line_table_test and
5007         move declaration to selftest.h, and drop field m_old_line_table.
5008         (selftest::temp_line_table::temp_line_table): Rename ctor to...
5009         (selftest::line_table_test::line_table_test): ...this.  Add a
5010         default ctor.  Store current value of line_table within
5011         saved_line_table.
5012         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
5013         (selftest::line_table_test::~line_table_test): ...this, and
5014         restore line_table from the saved_line_table, rather than
5015         m_old_line_table.
5016         (selftest::test_accessing_ordinary_linemaps): Update for above
5017         renaming.
5018         (selftest::test_lexer): Likewise.
5019         (struct selftest::lexer_test): Likewise.
5020         (selftest::lexer_test::lexer_test): Likewise.
5021         (selftest::input_c_tests): Move the looping over test cases from
5022         here into...
5023         (selftest::for_each_line_table_case): New function.
5024         * input.h (saved_line_table): New decl.
5025         * selftest.h (struct selftest::line_table_case): New forward decl.
5026         (class selftest::line_table_test): New class, moved here from
5027         selftest::temp_line_table in input.c, and renamed.
5028         (selftest::for_each_line_table_case): New decl.
5030 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
5032         PR target/72839
5033         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
5035 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
5037         PR middle-end/70895
5038         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
5039         enclosing parallel construct for reduction variables on OpenACC loop
5040         directives.
5042 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
5044         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
5045         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
5046         -gdwarf-3.
5047         (function_to_dwarf_procedure): Update comment.
5049 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
5051         * input.c (diagnostics_file_cache_forcibly_evict_file): New
5052         function.
5053         * input.h (diagnostics_file_cache_forcibly_evict_file): New
5054         declaration.
5055         * selftest.c (selftest::temp_source_file::~temp_source_file):
5056         Evict m_filename from the diagnostic file cache.
5058 2016-08-18  Richard Biener  <rguenther@suse.de>
5060         * tree-pass.h (make_pass_materialize_all_clones): Declare.
5061         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
5062         make_pass_materialize_all_clones): New simple IPA pass encapsulating
5063         clone materialization.
5064         * passes.def (all_late_ipa_passes): Start with
5065         pass_materialize_all_clones.
5066         * cgraphunit.c (symbol_table::compile): Remove call to
5067         materialize_all_clones.
5068         * tree-into-ssa.c: Include statistics.h.
5069         (update_ssa): Count number of times we do incremental/rewrite
5070         SSA update.
5072 2016-08-18  Richard Biener  <rguenther@suse.de>
5074         PR tree-optimization/77282
5075         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
5076         When doing auto-parallelizing also prevent use of PHIs that
5077         carry dependences across loop backedges.
5079 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
5080             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
5082         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
5084 2016-08-18  Richard Biener  <rguenther@suse.de>
5086         * ssa-iterators.h (ssa_vuse_operand): New inline.
5087         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
5088         (predicate_all_scalar_phis): Use remove_phi_node to remove
5089         phi nodes predicated.  Delay removing virtual PHIs.
5090         (predicate_mem_writes): Update virtual operands.
5091         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
5092         (tree_if_conversion): Do not rewrite virtual SSA form.
5093         * tree-phinodes.c (release_phi_node): Make static.
5094         * tree-phinodes.h (release_phi_node): Remove.
5096 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
5098         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
5099         codes that appear in bdesc_* arrays, instead include i386-builtin.def
5100         twice to define those.
5101         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
5102         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
5103         bdesc_multi_arg): Define by including i386-builtin.def the third time.
5104         * config/i386/i386-builtin.def: New file.
5106 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
5108         * input.c (get_source_range_for_char): Rename to...
5109         (selftest::get_source_range_for_char): ...this, and move within
5110         the #if CHECKING_P guard.
5111         (get_num_source_ranges_for_substring): Rename to...
5112         (selftest::get_num_source_ranges_for_substring): ...this, move
5113         within the #if CHECKING_P guard, and make static.
5114         (selftest::assert_num_substring_ranges): Initialize
5115         actual_num_ranges.
5117 2016-08-18  Alan Modra  <amodra@gmail.com>
5119         PR rtl-optimization/72771
5120         * reload.c (find_reloads): Don't assume that a subreg mem is OK
5121         when find_reloads_toplev returns address_reloaded==-1.
5122         (alternative_allows_const_pool_ref): Update comment.
5124 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
5126         PR tree-optimization/71752
5127         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5128         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5130 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
5132         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5133         instead of testing ECF_NORETURN bit in gimple_call_flags.
5134         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5135         * predict.c (tree_bb_level_predictions): Likewise.
5136         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5138         PR middle-end/77259
5139         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5140         turning a call into __builtin_unreachable-like noreturn call, adjust
5141         gimple_call_set_fntype.
5142         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5143         gimple_call_fntype has void return type.
5145 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
5147         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5148         maybe_lookup_decl, to handle nested acc loop directives.
5150 2016-08-17  Richard Biener  <rguenther@suse.de>
5152         PR tree-optimization/76490
5153         * tree-vrp.c (update_value_range): Preserve overflow infinities
5154         when intersecting with ranges from get_range_info.
5155         (operand_less_p): Handle overflow infinities correctly.
5156         (value_range_constant_singleton): Use vrp_operand_equal_p
5157         to handle overflow max/min correctly.
5158         (vrp_valueize): Likewise.
5159         (union_ranges): Likewise.
5160         (intersect_ranges): Likewise.
5161         (vrp_visit_phi_node): Improve iteration limitation to only
5162         apply when we'll possibly re-visit the PHI via a changed argument
5163         on the backedge.
5165 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5167         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5168         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5169         rather than those that should not be built.
5171 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
5173         PR target/66488
5174         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5176 2016-08-17  Richard Biener  <rguenther@suse.de>
5178         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5179         (verify_vssa): New function verifying virtual SSA form.
5180         (verify_ssa): Call it.
5181         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5182         Do not apply loop-closed SSA handling to virtuals.
5183         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5184         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5185         when rewriting their symbol.
5186         (prepare_def_site_for): Likewise.
5187         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5188         operands of moved stmts.
5190 2016-08-17  Richard Biener  <rguenther@suse.de>
5192         PR tree-optimization/23855
5193         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5194         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5195         find guards to hoist.  Do not update SSA form but rewrite virtuals
5196         into loop closed SSA.
5197         (find_loop_guard): Adjust to skip already hoisted guards.  Do
5198         not mark virtuals for renaming or update SSA form.
5200 2016-08-17  Martin Liska  <mliska@suse.cz>
5202         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5203         a LONG_LONG_TYPE_SIZE comparison.
5204         * gcov-io.h: Remove macro definitions.
5205         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5206         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5207         comparison.
5209 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5211         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5212         that builtins not mentioned in bdesc_* arrays come first, then
5213         the ones mentioned in bdesc_* arrays in the order they appear in
5214         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5215         IX86_BUILTIN__BDESC_*_LAST enumerator.
5216         (bdesc_mpx): Fix up a comment typo.
5217         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5218         __builtin_ia32_vpcomneu[bwdq] builtins.
5219         (BDESC_VERIFY, BDESC_VERIFYS): Define.
5220         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5221         enum ix86_builtins ordering.
5222         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5223         for direct bdesc_* array member access instead of searching all the
5224         arrays until an fcode match is found.
5226 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
5228         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5229         pattern as define_insn_and_split.  Split insn before reload to
5230         ashl<mode>3_1.
5231         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
5232         <shift_insn><mode>3_1.
5233         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
5234         <rotate_insn><mode>3_1.
5236 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5238         PR c/72857
5239         * input.c (get_source_range_for_substring): Rename to...
5240         (get_source_location_for_substring): ...this, adding param
5241         "caret_idx", and converting output param from source_range * to
5242         location_t *.
5243         (get_source_range_for_char): New function.
5244         (get_num_source_ranges_for_substring): Update comment to reflect
5245         above renaming.
5246         (assert_char_at_range): Update to use get_source_range_for_char
5247         rather than get_source_range_for_substring.
5248         (test_lexer_string_locations_concatenation_2): Likewise.
5249         * substring-locations.h (get_source_range_for_substring): Rename
5250         to...
5251         (get_source_location_for_substring): ...this, and adding param
5252         "caret_idx", and converting output param from source_range * to
5253         location_t *.
5255 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5257         * input.c (class selftest::temp_source_file): Move to
5258         selftest.h.
5259         (selftest::temp_source_file::temp_source_file): Move to
5260         selftest.c.
5261         (selftest::temp_source_file::~temp_source_file): Likewise.
5262         * selftest.c (selftest::temp_source_file::temp_source_file): Move
5263         here from input.c.
5264         (selftest::temp_source_file::~temp_source_file): Likewise.
5265         * selftest.h (class selftest::temp_source_file): Move here from
5266         input.c
5268 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5270         PR target/71910
5271         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
5272         inlining, add cgraph edge for the added __builtin_unreachable call.
5274         PR middle-end/67485
5275         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5276         only cast it to SHWI for the final comparison.
5278 2016-08-16  Martin Liska  <mliska@suse.cz>
5280         PR gcov-profile/36412
5281         * doc/gcov.texi: Document --hash-filenames(-x).
5282         * gcov.c (print_usage): Add the option.
5283         (process_args): Process the option, sort options alphabetically.
5284         (md5sum_to_hex): New function.
5285         (make_gcov_file_name): Do the md5sum and append it to a
5286         filename.
5288 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5290         PR tree-optimization/69848
5291         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5292         and swtich operands to avoid additional NOT instruction.
5293         (vcond<v_cmp_mixed><mode>): Ditto.
5294         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5296 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5298         * doc/install.texi (*-*-solaris2*): Adjust latest change.
5300 2016-08-16  Richard Biener  <rguenther@suse.de>
5302         PR tree-optimization/76783
5303         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
5304         BB visited flags at start.
5306 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5308         PR tree-optimization/72817
5309         PR tree-optimization/73450
5310         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5311         multiple_of_p for adjusted IV.base.
5313 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
5315         PR target/72867
5316         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5317         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5318         for !flag_finite_math_only or flag_signed_zeros.
5319         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5320         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
5321         depend on flag_finite_math_only.
5322         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5323         New insn pattern.
5324         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5325         (*ieee_smin<mode>3): Ditto.
5326         (*ieee_smax<mode>3): Ditto.
5327         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5328         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5329         flag_signed_zeros.
5330         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
5331         depend on flag_finite_math_only.
5332         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5333         (*mmx_<code>v2sf3): Remove.
5334         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5335         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5336         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5338 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
5340         PR rtl-optimization/73650
5341         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5342         it is not a simple move.
5344 2016-08-15  Martin Liska  <mliska@suse.cz>
5346         PR driver/72765
5347         * gcc.c (do_spec_1): Call save_string with the right size.
5348         (save_string): Do an assert about string we copy.
5350 2016-08-15  Richard Biener  <rguenther@suse.de>
5352         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5353         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5354         TV_MACH_DEP.
5355         (pass_data_stv): Likewise.
5357 2016-08-15  Richard Biener  <rguenther@suse.de>
5359         PR tree-optimization/73434
5360         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5361         TBAA info on the base when forwarding a non-invariant address.
5363 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
5365         * dwarf2out.c (struct checksum_attributes): Add
5366         at_string_length_bit_size and at_string_length_byte_size fields.
5367         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5368         and DW_AT_string_length_byte_size.
5369         (die_checksum_ordered): Handle at_string_length_bit_size and
5370         at_string_length_byte_size.
5371         (gen_array_type_die): For dwarf_version >= 5 emit
5372         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5373         (adjust_string_types): For dwarf_version >= 5 remove
5374         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5375         (resolve_addr): Likewise.
5377         PR debug/71906
5378         * dwarf2out.c (string_types): New variable.
5379         (gen_array_type_die): Change early_dwarf handling of
5380         DW_AT_string_length, create DW_OP_call4 referencing the
5381         length var temporarily.  Handle parameters that are pointers
5382         to string length.
5383         (adjust_string_types): New function.
5384         (gen_subprogram_die): Temporarily set string_types to local var,
5385         call adjust_string_types if needed.
5386         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5387         New functions.
5388         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5390 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
5392         * doc/install.texi (*-*-solaris2*): Fix version number and document
5393         requirement on GNU make for building libjava with the Solaris linker.
5395 2016-08-15  Martin Liska  <mliska@suse.cz>
5396             Jakub Jelinek  <jakub@redhat.com>
5398         PR tree-optimization/72824
5399         * tree-loop-distribution.c (const_with_all_bytes_same)
5400         <case VECTOR_CST>: Fix a typo.
5402 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
5404         PR target/76342
5405         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5406         Renamed from _mm512_undefined_si512.
5407         (_mm_undefined_si512): New definition.
5409 2016-08-13  Richard Biener  <rguenther@suse.de>
5411         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5412         into PHIs and update the lattice for its def.
5414 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
5416         PR c/71512
5417         * ubsan.c (instrument_si_overflow): Pass true instead of false
5418         to gsi_replace.
5419         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5420         of bbs.  Return TODO_cleanup_cfg if any returned true.
5422 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5424         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5425         ISA 3.0 MTVSRDD instruction.
5426         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5427         vecperm.
5429 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5431         PR tree-optimization/71083
5432         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5433         bitfield access when possible.
5435 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
5437         PR middle-end/71654
5438         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5439         sign-changing cast from a shorter unsigned type to a wider
5440         signed type.
5442 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
5444         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
5445         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
5446         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
5448 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5450         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5451         Correct costs for vec_construct.
5453 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
5455         PR tree-optimization/69848
5456         * tree-vectorizer.h (enum vect_def_type): New condition reduction
5457         type CONST_COND_REDUCTION.
5458         * tree-vect-loop.c (vectorizable_reduction): Support new condition
5459         reudction type CONST_COND_REDUCTION.
5461 2016-08-12  Richard Biener  <rguenther@suse.de>
5463         PR tree-optimization/57326
5464         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
5465         returning an SSA name.
5466         (phi_translate_1): When fully_constant_expression returns a NAME
5467         make sure we have a leader for it.
5469 2016-08-12  Martin Liska  <mliska@suse.cz>
5470             Adam Fineman  <afineman@afineman.com>
5472         * gcov.c (process_file): Create .gcov file when .gcda
5473         file is missing.
5475 2016-08-12  Marek Polacek  <polacek@redhat.com>
5477         PR c/7652
5478         * alias.c (find_base_value): Adjust fall through comment.
5479         * cfgexpand.c (expand_debug_expr): Likewise.
5480         * combine.c (find_split_point): Likewise.
5481         (expand_compound_operation): Likewise.  Add FALLTHRU.
5482         (make_compound_operation): Adjust fall through comment.
5483         (canon_reg_for_combine): Add FALLTHRU.
5484         (force_to_mode): Adjust fall through comment.
5485         (simplify_shift_const_1): Likewise.
5486         (simplify_comparison): Likewise.
5487         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
5488         FALLTHRU.
5489         * config/aarch64/predicates.md: Likewise.
5490         * config/i386/i386.c (function_arg_advance_32): Likewise.
5491         (ix86_gimplify_va_arg): Likewise.
5492         (print_reg): Likewise.
5493         (ix86_print_operand): Likewise.
5494         (ix86_build_const_vector): Likewise.
5495         (ix86_expand_branch): Likewise.
5496         (ix86_sched_init_global): Adjust fall through comment.
5497         (ix86_expand_args_builtin): Add FALLTHRU.
5498         (ix86_expand_builtin): Likewise.
5499         (ix86_expand_vector_init_one_var): Likewise.
5500         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5501         (rs6000_adjust_cost): Likewise.
5502         (insn_must_be_first_in_group): Likewise.
5503         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
5504         * dbxout.c (dbxout_symbol): Adjust fall through comment.
5505         * df-scan.c (df_uses_record): Likewise.
5506         * dojump.c (do_jump): Add FALLTHRU.
5507         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
5508         comment.
5509         (resolve_args_picking_1): Adjust fall through comment.
5510         (loc_list_from_tree_1): Likewise.
5511         * expmed.c (make_tree): Likewise.
5512         * expr.c (expand_expr_real_2): Add FALLTHRU.
5513         (expand_expr_real_1): Likewise.  Adjust fall through comment.
5514         * fold-const.c (const_binop): Adjust fall through comment.
5515         (fold_truth_not_expr): Likewise.
5516         (fold_cond_expr_with_comparison): Add FALLTHRU.
5517         (fold_binary_loc): Likewise.
5518         (contains_label_1): Adjust fall through comment.
5519         (multiple_of_p): Likewise.
5520         * gcov-tool.c (process_args): Add FALLTHRU.
5521         * genattrtab.c (check_attr_test): Likewise.
5522         (write_test_expr): Likewise.
5523         * genconfig.c (walk_insn_part): Likewise.
5524         * genpreds.c (validate_exp): Adjust fall through comment.
5525         (needs_variable): Likewise.
5526         * gensupport.c (get_alternatives_number): Add FALLTHRU.
5527         (subst_dup): Likewise.
5528         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
5529         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
5530         (gimplify_scan_omp_clauses): Add FALLTHRU.
5531         (goa_stabilize_expr): Likewise.
5532         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
5533         through comment.
5534         * hsa-gen.c (get_address_from_value): Likewise.
5535         * ipa-icf.c (sem_function::hash_stmt): Likewise.
5536         * ira.c (ira_setup_alts): Add FALLTHRU.
5537         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
5538         comment.
5539         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
5540         * opts.c (common_handle_option): Likewise.
5541         * read-rtl.c (read_rtx_code): Likewise.
5542         * real.c (round_for_format): Likewise.
5543         * recog.c (asm_operand_ok): Likewise.
5544         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
5545         * reload1.c (set_label_offsets): Likewise.
5546         (eliminate_regs_1): Likewise.
5547         (reload_reg_reaches_end_p): Likewise.
5548         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
5549         (rtx_cost): Likewise.
5550         * sched-rgn.c (is_exception_free): Likewise.
5551         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
5552         * stor-layout.c (int_mode_for_mode): Likewise.
5553         * toplev.c (print_to_asm_out_file): Likewise.
5554         (print_to_stderr): Likewise.
5555         * tree-cfg.c (gimple_verify_flow_info): Likewise.
5556         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
5557         (chrec_fold_multiply): Likewise.
5558         (evolution_function_is_invariant_rec_p): Likewise.
5559         (for_each_scev_op): Likewise.
5560         * tree-data-ref.c (siv_subscript_p): Likewise.
5561         (get_references_in_stmt): Likewise.
5562         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
5563         (substitute_in_expr): Likewise.
5564         (type_cache_hasher::equal): Likewise.
5565         (walk_type_fields): Likewise.
5566         * var-tracking.c (adjust_mems): Add FALLTHRU.
5567         (set_dv_changed): Adjust fall through comment.
5568         * varasm.c (default_function_section): Add FALLTHRU.
5570 2016-08-12  Marek Polacek  <polacek@redhat.com>
5572         PR c/7652
5573         * tree-complex.c (expand_complex_division): Add missing break.
5575 2016-08-12  Richard Biener  <rguenther@suse.de>
5577         * passes.c (execute_todo): Do not push/pop TV_TODO.
5578         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
5579         (execute_one_pass): Likewise.
5580         * common.opt (ftime-report-details): New switch.
5581         * doc/invoke.texi (ftime-report-details): Document.
5582         * timevar.h (timer::print_row): Adjust signature.
5583         (timer::all_zero): New static helper.
5584         (timer::child_map_t): New typedef.
5585         (timer::time_var_def): Add children field.
5586         * timevar.c (timer::named_items::print): Adjust.
5587         (timer::~timer): Free timevar recorded children.
5588         (timer::pop_internal): When -ftime-report-details record
5589         time spent in sub-timevars.
5590         (timer::print_row): Adjust.
5591         (timer::print): Print sub-timevar stats, use all_zero.
5592         * timevar.def (TV_TODO): Remove.
5594 2016-08-12  Richard Biener  <rguenther@suse.de>
5596         PR tree-optimization/72851
5597         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
5598         worklists to use bitmaps indexed in execution order.
5599         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
5600         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
5601         (cfg_blocks): Make a bitmap.
5602         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
5603         New globals.
5604         (cfg_blocks_empty_p): Adjust.
5605         (cfg_blocks_add): Likewise.
5606         (cfg_blocks_get): Likewise.
5607         (add_ssa_edge): Likewise.
5608         (add_control_edge): Likewise.
5609         (simulate_stmt): Likewise.
5610         (process_ssa_edge_worklist): Likewise.
5611         (simulate_block): Likewise.
5612         (ssa_prop_init): Compute PRE order and stmt UIDs.
5613         (ssa_prop_fini): Adjust.
5614         (ssa_propagate): Adjust.
5616 2016-08-12  Richard Biener  <rguenther@suse.de>
5618         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
5619         the currently executable edges have fixed ranges.  Always
5620         go through update_value_range.
5622 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
5624         PR debug/63240
5625         * langhooks-def.h
5626         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
5627         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
5628         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
5629         (LANG_HOOKS_DECLS): Add it.
5630         * langhooks.h (struct lang_hooks_for_decls): Add
5631         function_decl_defaulted.  Const_tree-ify
5632         function_decl_explicit_p and function_decl_deleted_p.
5633         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
5634         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
5635         also at strict DWARF v5.
5637         PR debug/55641
5638         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
5639         TYPE_QUAL_CONST in reference-typed decls.
5641         PR debug/49366
5642         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
5643         in DW_OP_pieces, just enough to handle pointers to member
5644         functions.
5645         (gen_remaining_tmpl_value_param_die_attribute): Use a location
5646         expression on DWARFv5 if a constant value doesn't work.
5648 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
5650         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
5651         * selftest.c (selftest::test_assertions): New function.
5652         (selftest::selftest_c_tests): New function.
5653         * selftest.h (selftest::selftest_c_tests): New declaration.
5655 2016-08-11  Richard Biener  <rguenther@suse.de>
5656             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5658         PR rtl-optimization/72855
5659         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
5661 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5663         PR target/72863
5664         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
5665         (vsx_store_<mode>): Likewise.
5667 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
5669         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
5670         TImode CONST_WIDE_INT store.
5671         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
5673 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
5675         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
5676         mode if unaligned SSE load and store are optimal.
5678 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5680         PR tree-optimization/71083
5681         * tree-predcom.c (ref_at_iteration): Correctly align the
5682         reference type.
5684 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5686         * config/s390/s390-builtin-types.def: Add INT128 types.
5687         * config/s390/s390-builtins.def: Add INT128 variants for the add
5688         sub low-level builtins dealing with TImode.
5689         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
5690         via subreg when expanding a builtin.
5691         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
5692         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
5693         Fix comment.
5694         * config/s390/vecintrin.h: Adjust builtin names accordingly.
5695         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
5696         ("vec_addc<mode>", "vec_addc_u128"): Merge to
5697         "vacc<bhfgq>_<mode>".
5698         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
5699         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
5700         ("vec_subc<mode>", "vec_subc_u128"): Merge to
5701         "vscbi<bhfgq>_<mode>".
5702         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
5703         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
5705 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5707         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
5709 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
5711         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
5712         unused declaration.
5713         (vcond<v_cmp_mixed><mode>): Ditto.
5714         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5716 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
5718         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
5719         variable explicitly, also assert on it before use.
5721 2016-08-11  Richard Biener  <rguenther@suse.de>
5723         PR tree-optimization/72772
5724         * cfgloopmanip.c (create_preheader): Use split_edge if there
5725         is a single loop entry, avoiding degenerate PHIs.
5727 2016-08-11  Richard Biener  <rguenther@suse.de>
5729         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
5730         unconditional TODO_cleanup_cfg.
5731         (pass_thread_jumps::execute): Initialize loops, perform a CFG
5732         cleanup only if we threaded a jump.
5734 2016-08-11  Alan Modra  <amodra@gmail.com>
5736         PR target/71680
5737         * lra-constraints.c (simplify_operand_subreg): Allow subreg
5738         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
5739         slow.  Emit two reloads for slow mem case, first loading in
5740         fast innermode, then converting to required mode.
5742 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5744         * config/rs6000/altivec.h (vec_extract_exp): New macro.
5745         (vec_extract_sig): New macro.
5746         (vec_insert_exp): New macro.
5747         (vec_test_data_class): New macro.
5748         (scalar_extract_exp): New macro.
5749         (scalar_extract_sig): New macro.
5750         (scalar_insert_exp): New macro.
5751         (scalar_test_data_class): New macro.
5752         (scalar_test_neg): New macro.
5753         (scalar_cmp_exp_gt): New macro.
5754         (scalar_cmp_exp_lt): New macro.
5755         (scalar_cmp_exp_eq): New macro.
5756         (scalar_cmp_exp_unordered): New macro.
5757         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
5758         to enforce constraint that operand is a 7-bit unsigned literal.
5759         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
5760         for power9 built-ins.
5761         (BU_P9V_VSX_2): Likewise.
5762         (BU_P9V_64BIT_VSX_2): Likewise.
5763         (VSEEDP): Add scalar extract exponent support.
5764         (VSEESP): Add scalar extract signature support.
5765         (VSTDCNDP): Add scalar test negative support.
5766         (VSTDCNSP): Likewise.
5767         (VSIEDP): Add scalar insert exponent support.
5768         (VSCEDPGT): Add scalar compare exponent greater than support.
5769         (VSCEDPLT): Add scalar compare exponent less than support.
5770         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
5771         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
5772         (VSTDCDP): Add scalar test data class support.
5773         (VSTDCSP): Likewise.
5774         (VSEEDP): Add overload support for scalar extract exponent
5775         operation.
5776         (VSESDP): Add overload support for scalar extract signature
5777         operation.
5778         (VSTDCN): Add overload support for scalar test negative
5779         operation.
5780         (VSTDCNDP): Add overload support for scalar test negative
5781         operation.
5782         (VSTDCNSP): Add overload support for scalar test negative
5783         operation.
5784         (VSIEDP): Add overload support for scalar insert exponent
5785         operation.
5786         (VSTDC): Add overload support for scalar test data class
5787         operation.
5788         (VSTDCDP): Add overload support for scalar test data class
5789         operation.
5790         (VSTDCSP): Add overload support for scalar test data class
5791         opreation.
5792         (VSCEDPGT): Add overload support for scalar compare exponent
5793         greater than operation.
5794         (VSCEDPLT): Add overload support for scalar compare exponent
5795         less than operation.
5796         (VSCEDPEQ): Add overload support for scalar compare exponent
5797         test-for-equality operation.
5798         (VSCEDPUO): Add overload support for scalar compare exponent
5799         test-for-unordered operation.
5800         (VEEDP): Add vector extract exponent support.
5801         (VEESP): Likewise.
5802         (VESDP): Add vector extract significand support.
5803         (VESSP): Likewise.
5804         (VIEDP): Add vector insert exponent support.
5805         (VIESP): Likewise.
5806         (VTDCDP): Add vector test data class support.
5807         (VTDCSP): Likewise.
5808         (VES): Add overload support for vector extract significand operation.
5809         (VESDP): Likewise.
5810         (VESSP): Likewise
5811         (VEE): Add overload support for vector extract exponent operation.
5812         (VEEDP): Likewise.
5813         (VEESP): Likewise.
5814         (VTDC): Add overload support for vector test data class operation.
5815         (VTDCDP): Likewise.
5816         (VTDCSP): Likewise.
5817         (VIE): Add overload support for vector insert exponent operation.
5818         (VIEDP): Likewise.
5819         (VIESP): Likewise.
5820         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5821         overloaded binary floating point functions.
5822         (altivec_resolve_overloaded_builtin): Improve error messages to
5823         distinguish between functions not supported in the current
5824         compiler configuration and functions that were invoked with an
5825         invalid parameter combination, and include the built-in function
5826         name in both error messages.
5827         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
5828         New prototype.
5829         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
5830         function.
5831         (rs6000_expand_binop_builtin): Add check to enforce that argument
5832         2 of the test data class operations is a 7-bit unsigned literal.
5833         (rs6000_invalid_builtin): Add code to issue an error message if a
5834         built-in function that requires the power9_vector and -m32
5835         command-line options is compiled without these options.
5836         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
5837         (UNSPEC_VSX_SXSIGDP): New value.
5838         (UNSPEC_VSX_SXSIGPDP): New value.
5839         (UNSPEC_VSX_SIEXPDP): New value.
5840         (UNSPEC_VSX_SCMPEXPDP): New value.
5841         (UNSPEC_VSX_STSTDC): New value.
5842         (UNSPEC_VSX_VXEXP): New value.
5843         (UNSPEC_VSX_VXSIG): New value.
5844         (UNSPEC_VSX_VIEXP): New value.
5845         (UNSPEC_VSX_VTSTDC): New value.
5846         (xsxexpdp): New insn for scalar extract exponent.
5847         (xsxsigdp): New insn for scalar extract significand.
5848         (xsiexpdp): New insn for scalar insert exponent.
5849         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
5850         (*xscmpexpdp): New insn for scalar compare exponents.
5851         (xststdc<Fvsx): New expansion for both single- and
5852         double-precision scalar test data class operations.
5853         (xststdcneg<Fvsx>): New expansion for both single- and
5854         double-precision scalar test for negative value operations.
5855         (*xststdc<Fvsx>): New insn for scalar test data class
5856         operation.
5857         (xvxexp<VSs>): New insn for single- and double-precision
5858         vector extract exponent operation.
5859         (xvxsig<VSs>): New insn for single- and double-precision
5860         vector extract significand operation.
5861         (xviexp<VSs>): New insn for single- and double-precision
5862         vector insert exponent operation.
5863         (xvtstdc<VSs>): New insn for single- and double-precision
5864         vector test data class operation.
5865         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5866         built-in functions to represent the Power9 binary floating-point
5867         support instructions.
5869 2016-08-10  bin cheng  <bin.cheng@arm.com>
5871         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
5873 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
5874             Renlin Li  <renlin.li@arm.com>
5875             Bin Cheng  <bin.cheng@arm.com>
5877         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
5878         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
5879         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
5880         (aarch64_vcond_internal<mode><mode>): Delete pattern.
5881         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
5882         (vcond<v_cmp_result><mode>): Ditto.
5883         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
5884         (vcondu<mode><mode>): Ditto.
5885         (vcond<v_cmp_mixed><mode>): New pattern.
5886         (vcondu<mode><v_cmp_mixed>): New pattern.
5887         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
5888         of aarch64_vcond_internal.
5890 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
5891             Renlin Li  <renlin.li@arm.com>
5892             Bin Cheng  <bin.cheng@arm.com>
5894         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
5895         (vec_cmp<mode><v_cmp_result>): New pattern.
5896         (vec_cmpu<mode><mode>): New pattern.
5897         (vcond_mask_<mode><v_cmp_result>): New pattern.
5899 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5901         PR tree-optimization/71734
5902         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
5903         REF_LOOP, invoke ref_indep_loop_p_1.
5904         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
5905         to ref_indep_loop_p.
5906         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
5907         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
5908         is inside LOOP, do not cache dpendence value for loops with
5909         non-zero SAFELEN.
5910         (ref_indep_loop_p_2): Delete function.
5911         (can_sm_ref_p): Pass LOOP as additional argument to
5912         ref_indep_loop_p.
5914 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5916         PR target/72853
5917         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
5918         being an offsettable address.
5920 2016-08-10  Martin Liska  <mliska@suse.cz>
5922         PR gcov-profile/58306
5923         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
5924         atomic variants of profile update functions.
5926 2016-08-10  Martin Liska  <mliska@suse.cz>
5928         Cherry picked (and modified) from google-4_7 branch
5929         2012-12-26  Rong Xu  <xur@google.com>
5930         * common.opt (fprofile-update): Add new flag.
5931         * coretypes.h: Define enum profile_update.
5932         * doc/invoke.texi: Document -fprofile-update.
5933         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
5934         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
5935         * tree-profile.c (gimple_init_edge_profiler): Generate
5936         also atomic profiler update.
5937         (gimple_gen_edge_profiler): Likewise.
5939 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
5941         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
5942         stack_usage_file to NULL after fclose calls.
5944 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5946         PR target/71873
5947         * reload.c (push_reload): Compute subreg_in_class for
5948         subregs of constants and plus expressions. Remove special
5949         handling of SYMBOL_REFs.
5951 2016-08-10  Alan Modra  <amodra@gmail.com>
5953         PR target/71680
5954         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
5955         SImode for TARGET_E500_DOUBLE when given SImode.
5957 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
5959         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
5960         unused variable __O.
5962 2016-08-09  Martin Liska  <mliska@suse.cz>
5964         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
5965         _gcov_reset to __gcov_reset.
5966         * doc/gcov-tool.texi: Fix typo.
5968 2016-08-09  Martin Liska  <mliska@suse.cz>
5970         * value-prof.c (gimple_divmod_values_to_profile): Do not
5971         instrument MOD histogram if a value is not a SSA name.
5973 2016-08-09  Martin Liska  <mliska@suse.cz>
5975         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
5976         values.
5978 2016-08-09  Renlin Li  <renlin.li@arm.com>
5980         PR middle-end/64971
5981         * calls.c (prepare_call_address): Convert funexp to Pmode when
5982         necessary.
5983         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
5984         (sibcall_value): Likewise.
5986 2016-08-09  Marek Polacek  <polacek@redhat.com>
5988         PR c/7652
5989         * cselib.c (cselib_expand_value_rtx_1): Add return.
5990         * gengtype.c (dbgprint_count_type_at): Likewise.
5991         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
5992         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
5994 2016-08-09  Martin Jambor  <mjambor@suse.cz>
5996         PR ipa/71981
5997         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
5998         if instance is a MEM_REF.
6000 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
6002         PR target/72843
6003         * config/i386/i386.md (*movtf_internal): Use
6004         lra_in_progress || reload_completed instead of !can_create_pseudo_p
6005         in the insn constraint.
6006         (*movxf_internal): Ditto.
6007         (*movdf_internal): Ditto.
6008         (*movsf_internal): Ditto.
6010 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
6012         PR tree-optimization/72772
6013         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
6014         for expanded base.
6016 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
6018         PR tree-optimization/72772
6019         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
6020         parameter STOP.
6021         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
6022         parameter STOP and update calls.  Move expand_simple_operations
6023         function call from here...
6024         (simplify_using_initial_conditions): ...to here.  Delete parameter
6025         STOP.
6026         (tree_simplify_using_condition): Delete parameter STOP.
6027         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
6028         simplify_using_initial_conditions.
6030 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
6032         PR c/65345
6033         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
6034         Use create_tmp_var_raw instead of create_tmp_var.
6036 2016-08-09  Richard Biener  <rguenther@suse.de>
6038         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
6039         Treat same SSA names related.
6041 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
6043         PR tree-optimization/72824
6044         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
6045         real_zerop is not negative.
6047 2016-08-09  Richard Biener  <rguenther@suse.de>
6049         PR tree-optimization/71802
6050         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
6051         all merge opportunities with the predecessor.
6053 2016-08-09  Richard Biener  <rguenther@suse.de>
6055         PR ipa/68273
6056         * ipa-prop.c (ipa_modify_formal_parameters): Build
6057         parameter types with natural alignment also for the
6058         over-aligned case.
6060 2016-08-08  Andi Kleen  <ak@linux.intel.com>
6062         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
6064 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6066         PR c/64955
6067         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
6068         do-nothing langhook.
6069         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
6070         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
6071         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
6072         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
6074 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
6076         PR bootstrap/72844
6077         * input.c: Ensure that HAVE_ICONV is defined.
6079 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6081         PR middle-end/72781
6082         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
6083         private vars for lastprivate and for linear iterator.
6085         PR middle-end/68762
6086         * omp-simd-clone.c: Include varasm.h.
6087         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
6088         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
6089         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
6090         update function name.
6092 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
6094         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
6095         (avr_diagnose_devicespecs_error): Remove.
6096         (avr_devicespecs_file): Remove composing absolute path for specfile
6097         and its verbose info. Remove conditions to check specs-file,
6099 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
6101         PR rtl-optimization/72821
6102         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
6103         just return false for them.
6105 2016-08-08  Alan Modra  <amodra@gmail.com>
6107         PR target/72771
6108         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
6109         toc refs created during reload.  Update function comment.
6111 2016-08-08  Alan Modra  <amodra@gmail.com>
6113         PR target/72802
6114         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
6115         alternatives.  Put loads first, then stores, and reg/reg moves
6116         within same class later.  Delete attr length.
6118 2016-08-08  Alan Modra  <amodra@gmail.com>
6120         PR target/72802
6121         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6122         (mem_operand_ds_form): New predicate.
6123         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6124         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6125         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6126         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6127         (extendsfdf2_fpr): Replace o constraint with wY.
6129 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
6131         * tree-ssa-threadbackward.c: Include tree-inline.h
6132         (profitable_jump_thread_path): Use estimate_num_insns to estimate
6133         size of copied block; for cold paths reduce duplication.
6134         (find_jump_threads_backwards): Remove redundant tests.
6135         (pass_thread_jumps::gate): Enable for -Os.
6137 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
6139         PR c/72816
6140         * stor-layout.c (layout_decl): Fix up formatting.
6141         (relayout_decl): Allow DECL to be FIELD_DECL.
6143 2016-08-07  Alan Modra  <amodra@gmail.com>
6145         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6147 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6149         * data-streamer-in.c (streamer_read_wide_int): New.
6150         (streamer_read_widest_int): Renamed function.
6151         * data-streamer-out.c (streamer_write_wide_int): New
6152         (streamer_write_widest_int): Renamed function.
6153         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6154         data-stream-in.c.
6155         (input_cfg): Call renamed function.
6156         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6157         data-stream-out.c.
6158         (output_cfg): Call renamed function.
6159         * data-streamer.h: Add declarations.
6161 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6163         * tree-ssa-ccp.c (extend_mask): New param sgn.
6164         Remove ORing with wi::mask.
6165         (get_default_value): Adjust call to extend_mask to pass sign.
6166         (evaluate_stmt): Likewise.
6168 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
6170         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6171         INT64_MAX.
6173 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6175         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6176         transform if operand's type is pointer to function or method.
6178 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6180         PR tree-optimization/18046
6181         * tree-ssa-threadedge.c: Include cfganal.h.
6182         (simplify_control_statement_condition): If simplifying a
6183         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6184         with the dominating ASSERT_EXPR before handing it off to VRP.
6185         Mention that a CASE_LABEL_EXPR may be returned.
6186         (thread_around_empty_blocks): Adjust to handle
6187         simplify_control_statement_condition() returning a
6188         CASE_LABEL_EXPR.
6189         (thread_through_normal_block): Likewise.
6190         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6191         a switch statement by trying to determine which case label
6192         will be taken.
6194 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
6196         PR rtl-optimization/69847
6197         * lra-constraints.c (process_invariant_for_inheritance): Save
6198         pattern instead of src.
6199         (remove_inheritance_pseudos): Use the pattern.  Add assert.
6201 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
6203         * input.c (string_concat::string_concat): New constructor.
6204         (string_concat_db::string_concat_db): New constructor.
6205         (string_concat_db::record_string_concatenation): New method.
6206         (string_concat_db::get_string_concatenation): New method.
6207         (string_concat_db::get_key_loc): New method.
6208         (class auto_cpp_string_vec): New class.
6209         (get_substring_ranges_for_loc): New function.
6210         (get_source_range_for_substring): New function.
6211         (get_num_source_ranges_for_substring): New function.
6212         (class selftest::lexer_test_options): New class.
6213         (struct selftest::lexer_test): New struct.
6214         (class selftest::ebcdic_execution_charset): New class.
6215         (selftest::ebcdic_execution_charset::s_singleton): New variable.
6216         (selftest::lexer_test::lexer_test): New constructor.
6217         (selftest::lexer_test::~lexer_test): New destructor.
6218         (selftest::lexer_test::get_token): New method.
6219         (selftest::assert_char_at_range): New function.
6220         (ASSERT_CHAR_AT_RANGE): New macro.
6221         (selftest::assert_num_substring_ranges): New function.
6222         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6223         (selftest::assert_has_no_substring_ranges): New function.
6224         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6225         (selftest::test_lexer_string_locations_simple): New function.
6226         (selftest::test_lexer_string_locations_ebcdic): New function.
6227         (selftest::test_lexer_string_locations_hex): New function.
6228         (selftest::test_lexer_string_locations_oct): New function.
6229         (selftest::test_lexer_string_locations_letter_escape_1): New function.
6230         (selftest::test_lexer_string_locations_letter_escape_2): New function.
6231         (selftest::test_lexer_string_locations_ucn4): New function.
6232         (selftest::test_lexer_string_locations_ucn8): New function.
6233         (selftest::uint32_from_big_endian): New function.
6234         (selftest::test_lexer_string_locations_wide_string): New function.
6235         (selftest::uint16_from_big_endian): New function.
6236         (selftest::test_lexer_string_locations_string16): New function.
6237         (selftest::test_lexer_string_locations_string32): New function.
6238         (selftest::test_lexer_string_locations_u8): New function.
6239         (selftest::test_lexer_string_locations_utf8_source): New function.
6240         (selftest::test_lexer_string_locations_concatenation_1): New
6241         function.
6242         (selftest::test_lexer_string_locations_concatenation_2): New
6243         function.
6244         (selftest::test_lexer_string_locations_concatenation_3): New
6245         function.
6246         (selftest::test_lexer_string_locations_macro): New function.
6247         (selftest::test_lexer_string_locations_stringified_macro_argument):
6248         New function.
6249         (selftest::test_lexer_string_locations_non_string): New function.
6250         (selftest::test_lexer_string_locations_long_line): New function.
6251         (selftest::test_lexer_char_constants): New function.
6252         (selftest::input_c_tests): Call the new test functions once per
6253         case within the line_table test matrix.
6254         * input.h (struct string_concat): New struct.
6255         (struct location_hash): New struct.
6256         (class string_concat_db): New class.
6257         * substring-locations.h: New header.
6259 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6261         PR tree-optimization/72810
6262         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6263         the type of the case labels when truncating.
6265 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
6267         PR Target/72819
6268         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6269         (aarch64_fp16_ptr_type_node): Likewise.
6270         * config/aarch64/aarch64-simd-builtins.c
6271         (aarch64_fp16_ptr_type_node): Define.
6272         (aarch64_init_fp16_types): New, refactored out of...
6273         (aarch64_init_builtins): ...here, update to call
6274         aarch64_init_fp16_types.
6275         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6276         HFmode.
6277         (aapcs_vfp_sub_candidate): Likewise.
6279 2016-08-05  Martin Liska  <mliska@suse.cz>
6280             Joshua Cranmer  <Pidgeot18@gmail.com>
6282         * gcov.c (line_t::has_block): New function.
6283         (enum loop_type): New enum.
6284         (handle_cycle): New function.
6285         (unblock): Likewise.
6286         (circuit): Likewise.
6287         (get_cycles_count): Likewise.
6288         (accumulate_line_counts): Use new loop detection algorithm.
6290 2016-08-05  Martin Liska  <mliska@suse.cz>
6292         * gcov.c (output_intermediate_file): Rename
6293         function_info::line_next to next_file_fn.
6294         (process_file): Likewise.
6295         (read_graph_file): Likewise.
6296         (accumulate_line_counts): Likewise.
6297         (output_lines): Likewise.
6299 2016-08-05  Richard Biener  <rguenther@suse.de>
6301         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6302         restriction on threading to a loop header.
6304 2016-08-05  Richard Biener  <rguenther@suse.de>
6306         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6307         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6308         adjust loop info accordingly.
6310 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
6312         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6313         before folding call to __builtin_constant_p with parameters to false.
6315 2016-08-05  Alan Modra  <amodra@gmail.com>
6317         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6318         code accidentally committed 2016-05-02 providing class when given
6319         NO_REGS.
6321 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6323         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6324         the case label ranges that partially overlap with OP's value
6325         range.
6327 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
6329         PR target/72805
6330         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6331         Cast builtin function result to __mmask16 instead of __mmask8.
6332         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6333         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6334         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6336 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
6338         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6339         (ASSERT_TRUE_AT): New macro.
6340         (ASSERT_FALSE): Reimplement in terms of...
6341         (ASSERT_FALSE_AT): New macro.
6342         (ASSERT_STREQ_AT): Fix typo in comment.
6344 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6346         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6347         labels are exhaustive, designate the label with the widest
6348         range to be the default label.
6350 2016-08-04  Andrew Pinski  <apinski@cavium.com>
6352         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6353         (thunderx_tunings): Use thunderx_vector_cost instead of
6354         generic_vector_cost.
6356 2016-08-04  Martin Liska  <mliska@suse.cz>
6358         * gcov.c (main): Fix GNU coding style.
6359         (output_intermediate_file): Likewise.
6360         (process_file): Likewise.
6361         (generate_results): Likewise.
6362         (release_structures): Likewise.
6363         (create_file_names): Likewise.
6364         (find_source): Likewise.
6365         (read_graph_file): Likewise.
6366         (find_exception_blocks): Likewise.
6367         (canonicalize_name): Likewise.
6368         (make_gcov_file_name): Likewise.
6369         (mangle_name): Likewise.
6370         (accumulate_line_counts): Likewise.
6371         (output_branch_count): Likewise.
6372         (read_line): Likewise.
6374 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6376         PR rtl-optimization/71779
6377         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6378         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6379         or if it was truncated.
6381         PR rtl-optimization/70903
6382         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6384 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
6386         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6387         accessing SSA_NAME_PTR_INFO.
6389 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
6391         PR 70677
6392         * common/config/avr/avr-common.c (avr_option_optimization_table)
6393         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6395 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
6397         PR 55181
6398         * config/avr/avr.md: New pattern to work around do_store_flag
6399         generating shift instructions for bit extractions.
6401 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
6403         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6404         BITMAP_ALLOC.
6405         (add_equivalence): Likewise.
6406         (get_value_range): Allocate value range with vrp_value_range_pool.
6407         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6408         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6410 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
6412         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6413         the default for the rs6000 port.
6415 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6417         PR middle-end/71876
6418         * calls.c (special_function_p): Remove special handling of
6419         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6420         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
6421         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6423 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
6425         PR middle-end/72778
6426         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6427         Don't stop on regular insns.
6429 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
6431         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6432         size to DImode boundary.
6433         (nvptx_propagate): Likewise.
6435 2016-08-03  Alan Modra  <amodra@gmail.com>
6437         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6438         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6439         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
6440         from -mefficient-unaligned-vector.  Note that this affects fp too.
6442 2016-08-03  Alan Modra  <amodra@gmail.com>
6444         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
6445         cost more.
6447 2016-08-03  Alan Modra  <amodra@gmail.com>
6449         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
6450         to a reg.  Localize vars.
6452 2016-08-03  Alan Modra  <amodra@gmail.com>
6454         * config/rs6000/rs6000.opt: Remove negatives from help strings
6455         and comments.
6457 2016-08-03  Alan Modra  <amodra@gmail.com>
6459         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6460         Delete duplicated code.
6462 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
6464         PR middle-end/72778
6465         * lra-spills.c (regno_in_use_p): New.
6466         (lra_final_code_change): Use it.
6468 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
6470         PR rtl-optimization/69847
6471         * lra-int.h (struct lra-reg): Use restore_rtx instead of
6472         restore_regno.
6473         (lra_rtx_hash): New.
6474         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
6475         of restore_regno.
6476         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
6477         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
6478         * lra-spills.c (lra_final_code_change): Don't delete insn when the
6479         next insn is USE with the same reg as the current insn source.
6480         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
6481         of restore_regno.
6482         (lra_constraints_init): Call initiate_invariants.
6483         (lra_constraints_finish): Call finish_invariants.
6484         (struct invariant, invariant_t, invariant_ptr_t): New.
6485         (const_invariant_ptr_t, invariants, invariants_pool): New.
6486         (invariant_table, invariant_hash, invariant_eq_p): New.
6487         (insert_invariant, initiate_invariants, finish_invariants): New.
6488         (clear_invariants, invalid_invariant_regs): New.
6489         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
6490         instead of restore_regno.
6491         (invariant_p, process_invariant_for_inheritance): New.
6492         (inherit_in_ebb): Implement invariant inheritance.
6493         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
6494         (remove_inheritance_pseudos): Implement undoing invariant
6495         inheritance.
6496         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
6497         instead of restore_regno.
6498         * lra-assigns.c (regno_live_length): New.
6499         (reload_pseudo_compare_func): Use regno_live_length.
6500         (assign_by_spills): Use restore_rtx instead of restore_regno.
6501         (lra_assign): Ditto.  Initiate regno_live_length.
6503 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
6505         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
6506         __builtin_aarch64_fmindf.
6508 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
6510         PR tree-optimization/34114
6511         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
6512         information for more control IVs.
6514 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
6516         PR tree-optimization/34114
6517         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
6518         PLUS_EXPR case.  Handle SSA_NAME case.
6520 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
6522         * config/aarch64/aarch64-simd-builtins.def
6523         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
6524         (__builtin_aarch64_fmaxdf): Likewise.
6525         (__builtin_aarch64_smin_nandf): Likewise.
6526         (__builtin_aarch64_smax_nandf): Likewise.
6527         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
6528         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
6529         (<fmaxmin><mode>3): ...this.
6530         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
6531         (vminnm_f64): Likewise.
6532         (vmin_f64): Likewise.
6533         (vmax_f64): Likewise.
6534         * config/aarch64/iterators.md (FMAXMIN): Merge with...
6535         (FMAXMIN_UNS): ...this.
6536         (fmaxmin): Merged with
6537         (fmaxmin_op): ...this...
6538         (maxmin_uns_op): ...in to this.
6540 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6542         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6543         Add support for vec_extract on vector float, vector int, vector
6544         short, and vector char vector types.
6545         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6546         vector float, vector int, vector short, and vector char
6547         optimizations on 64-bit ISA 2.07 systems for both constant and
6548         variable element numbers.
6549         (rs6000_split_vec_extract_var): Likewise.
6550         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
6551         Altivec registers on ISA 2.07 and above.
6552         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
6553         which never was matched due to the split occuring before register
6554         allocation (and the code would not have worked on little endian
6555         systems if it did match).  Allow extracts to go to the Altivec
6556         registers if ISA 2.07 (power8).  Change from using "" around the
6557         C++ code to using {}'s.
6558         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
6559         vec_extracts when the vector is in memory.
6560         (vsx_extract_v4sf_var): New insn to optimize vector float
6561         vec_extracts when the element number is variable on 64-bit ISA
6562         2.07 systems.
6563         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
6564         for 64-bit ISA 2.07 as well as ISA 3.0.
6565         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
6566         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
6567         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
6568         optimize vector int, vector short, and vector char vec_extracts
6569         when the vector is in memory.
6570         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
6571         optimize vector int, vector short, and vector char vec_extracts
6572         when the element number is variable.
6574 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6576         PR target/71948
6577         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
6578         does not overlap with other symbol flags.
6580 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
6582         * config/aarch64/aarch64.h (aarch64_frame):
6583         Remove padding0 and hardfp_offset.  Add locals_offset,
6584         initial_adjust, callee_adjust, callee_offset and final_adjust.
6585         * config/aarch64/aarch64.c (aarch64_layout_frame):
6586         Remove unused padding0 and hardfp_offset initializations.
6587         Choose frame layout and set frame variables accordingly.
6588         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
6589         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
6590         (aarch64_pop_regs): Likewise.
6591         (aarch64_expand_prologue): Remove all decision code, just emit
6592         prolog according to frame variables.
6593         (aarch64_expand_epilogue): Remove all decision code, just emit
6594         epilog according to frame variables.
6595         (aarch64_initial_elimination_offset): Use offset to local/arg area.
6597 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6599         PR target/72748
6600         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
6601         fix_debug_reg_uses after changing source register mode to
6602         V1TImode if source register is undefined.
6604 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
6606         PR tree-optimization/71818
6607         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
6608         with non invariant evolutions
6610 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6612         PR target/72767
6613         * config/avr/avr.md (length) [branch]: Correct insn length
6614         attribute for forward branches.
6616 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6618         * doc/extend.texi (AVR Built-in Functions): Document
6619         __builtin_avr_nops.
6620         * config/avr/builtins.def (NOPS): New.
6621         * config/avr/avr.c (avr_expand_nops): New static function.
6622         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
6624 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6626         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
6627         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
6628         addresses.
6630 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
6632         * config/aarch64/aarch64.c (vulcan_tunings): Update
6633         vulcan L1 cache_line_size.
6635 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
6637         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
6638         function that takes a vector memory address, a hard register, an
6639         element number and a temporary base register, and recreates an
6640         address that points to the appropriate element within the vector.
6641         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
6642         (rs6000_split_vec_extract_var): Add support for the target of a
6643         vec_extract with variable element number being a scalar memory
6644         location.
6645         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
6646         swappable.
6647         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
6648         vsx_extract_<mode>_load insn with a new insn that optimizes
6649         storing either element to a memory location, using scratch
6650         registers to pick apart the vector and reconstruct the address.
6651         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
6652         (vsx_extract_<mode>_store): Rework alternatives to more correctly
6653         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
6654         store instruction.
6655         (vsx_extract_<mode>_var): Add support for extracting a variable
6656         element number from memory.
6658 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
6660         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
6661         when testing for compares against constants of the form 0xabab.
6663 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
6665         PR tree-optimization/57558
6666         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
6667         function.
6668         (vect_loop_versioning): Support versioning with niter assumptions.
6669         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
6670         (vect_get_loop_niters): New parameter.  Reimplement to support
6671         assumptions in loop niter info.
6672         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
6673         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
6674         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
6675         Support loop versioning for niters.
6676         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
6677         (vect_free_loop_info_assumptions): New function.
6678         (vectorize_loops): Free loop niter info for loops with flag
6679         LOOP_F_ASSUMPTIONS set if vectorization failed.
6680         * tree-vectorizer.h (struct _loop_vec_info): New field
6681         num_iters_assumptions.
6682         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
6683         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
6684         (LOOP_REQUIRES_VERSIONING): New macro.
6685         (vect_free_loop_info_assumptions): New decl.
6687 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
6689         * cfgloop.h (struct loop): New field constraints.
6690         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
6691         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
6692         functions.
6693         * cfgloop.c (alloc_loop): Initialize new field.
6694         * cfgloopmanip.c (copy_loop_info): Copy constraints.
6695         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
6696         Adjust niter analysis wrto loop constraints.
6697         * doc/loop.texi (@node Number of iterations): Add description for loop
6698         constraints.
6700 2016-07-29  Marek Polacek  <polacek@redhat.com>
6702         PR c/7652
6703         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
6704         (ix86_expand_round_builtin): Likewise.
6706 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
6707             Georg-Johann Lay  <avr@gjlay.de>
6709         PR rtl-optimization/71976
6710         * combine.c (get_last_value): Return 0 if the argument for which
6711         the function is called has a wider mode than the recorded value.
6713 2016-07-29  Marek Polacek  <polacek@redhat.com>
6715         PR c/7652
6716         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
6717         (altivec_expand_st_builtin): Likewise.
6719 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
6721         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
6722         introduced in r238381.
6724 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
6726         PR middle-end/68217
6727         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
6728         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
6730 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
6732         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
6733         New declaration.
6734         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6735         Add support for vec_extract of vector double or vector long having
6736         a variable element number on 64-bit ISA 2.07 systems or newer.
6737         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
6738         Likewise.
6739         (rs6000_split_vec_extract_var): New function to split a
6740         vec_extract built-in function with variable element number.
6741         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
6742         swappable.
6743         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
6744         (UNSPEC_VSX_EXTRACT): Likewise.
6745         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
6746         direct move instructions to be generated on 64-bit ISA 2.07
6747         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
6748         instruction.
6749         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
6750         arguments for vec_extract variable element.
6751         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
6752         vec_extract with variable element on V2DFmode and V2DImode
6753         vectors.
6754         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
6755         -mupper-regs-df requirement, since it isn't needed.
6756         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
6757         do direct moves on 64-bit systems, which allows optimization of
6758         vec_extract on 64-bit ISA 2.07 systems and newer.
6760 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
6761 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
6763          * config/aarch64/aarch64.md
6764         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
6765         statement and type.
6766         (<optab>qihi2_aarch64): Likewise, and split into two.
6767         (extendqihi2_aarch64): New.
6768         (zero_extendqihi2_aarch64): New.
6769         * config/aarch64/iterators.md (ldrxt): Remove.
6770         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
6771         uxtb/uxth.
6773 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
6775         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
6777 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
6779         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
6780         (aarch64_push_reg): New function to push 1 or 2 registers.
6781         (aarch64_pop_reg): New function to pop 1 or 2 registers.
6782         (aarch64_expand_prologue): Use aarch64_push_regs.
6783         (aarch64_expand_epilogue): Use aarch64_pop_regs.
6785 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
6787         PR tree-optimization/71734
6788         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
6789         attribute instead of REF_LOOP and use it.
6790         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
6791         set it for Loops having non-zero safelen attribute.
6792         (ref_indep_loop_p): Pass zero as initial value for safelen.
6794 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
6796         PR middle-end/72657
6797         PR target/72683
6798         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
6799         call using chkp_gimple_call_builtin_p.
6800         (chkp_copy_bounds_for_assign): Likewise.
6802 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6804         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
6805         * config/arm/arm-protos.h (struct tune_params): Likewise.
6806         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6807         (cortex_a9_sched_adjust_cost): Likewise.
6808         (fa726te_sched_adjust_cost): Likewise.
6809         (arm_adjust_cost): Likewise.
6810         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
6811         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
6812         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
6813         * config/i386/i386.c (ix86_adjust_cost): Likewise.
6814         * config/ia64/ia64.c: Likewise.
6815         * config/m68k/m68k.c: Likewise.
6816         * config/mep/mep.c (mep_adjust_cost): Likewise.
6817         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6818         * Likewise.
6819         * config/mips/mips.c (mips_adjust_cost): Likewise.
6820         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
6821         * Likewise.
6822         * config/pa/pa.c (pa_adjust_cost): Likewise.
6823         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
6824         (rs6000_debug_adjust_cost): Likewise.
6825         * config/sh/sh.c (sh_adjust_cost): Likewise.
6826         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
6827         (hypersparc_adjust_cost): Likewise.
6828         (sparc_adjust_cost): Likewise.
6829         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
6830         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
6831         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
6832         * Likewise.
6833         * config/visium/visium.c (visium_adjust_cost): Likewise.
6834         * doc/tm.texi: Regenerate.
6835         * haifa-sched.c (dep_cost_1): Adjust.
6836         * target.def: Merge adjust_cost and adjust_cost_2.
6838 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6840         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
6842 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6844         * store-motion.c (struct st_expr): Make pattern_regs a vector.
6845         (extract_mentioned_regs): Append to a vector instead of
6846         returning a rtx_expr_list.
6847         (st_expr_entry): Adjust.
6848         (free_st_expr_entry): Likewise.
6849         (store_ops_ok): Likewise.
6850         (store_killed_in_insn): Likewise.
6851         (find_moveable_store): Likewise.
6853 2016-07-28  Martin Liska  <mliska@suse.cz>
6855         PR gcov-profile/68025
6856         * tree-profile.c (tree_profiling): Respect
6857         no_profile_instrument_function attribute.
6858         * doc/extend.texi: Document no_profile_instrument_function
6859         attribute.
6861 2016-07-28  Martin Liska  <mliska@suse.cz>
6863         PR rtl-optimization/70944
6864         * combine.c (make_compound_operation):
6865         Do not allow make_compound_operation for vector mode
6867 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
6869         PR middle-end/71994
6870         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
6871          before calling get_ops.
6873 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6875         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
6876         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
6877         (BITS_PER_UNIT_LOG): Remove.
6878         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
6879         * expr.c (expand_assignment): Likewise.
6880         * stor-layout.c (initialize_sizetypes): Likewise.
6882 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6884         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
6885         signature of rs6000_expand_vector_extract so that the element
6886         number is a RTX instead of a constant integer.
6887         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
6888         Likewise.
6889         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
6890         (altivec_expand_vec_ext_builtin): Likewise.
6891         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
6892         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
6893         MFVSRLD instruction.
6895 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6897         * input.c (get_pure_location): Move here from tree.c.
6898         (make_location): Likewise.  Add header comment.
6899         (selftest::test_accessing_ordinary_linemaps): Verify
6900         pure_location_p, make_location, get_location_from_adhoc_loc and
6901         get_range_from_loc.
6902         * input.h (get_pure_location): Move declaration here from tree.h.
6903         (get_finish): Likewise for inline function.
6904         (make_location): Likewise for declaration.
6905         * tree.c (get_pure_location): Move to input.c.
6906         (make_location): Likewise.
6907         * tree.h (get_pure_location): Move declaration to tree.h.
6908         (get_finish): Likewise for inline function.
6909         (make_location): Likewise for declaration.
6911 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6913         PR middle-end/71078
6914         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
6916 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6918         * system.h (STATIC_ASSERT): Use static_assert if building
6919         with C++11 onwards.
6921 2016-07-27  Richard Biener  <rguenther@suse.de>
6923         PR tree-optimization/72517
6924         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6925         Revert change to not compute read-read dependences.
6927 2016-07-27  Richard Biener  <rguenther@suse.de>
6929         * predict.c (set_even_probabilities): Make nedges unsigned.
6931 2016-07-27  Martin Liska  <mliska@suse.cz>
6933         * predict.c (set_even_probabilities): Handle unlikely edges.
6934         (combine_predictions_for_bb): Likewise.
6936 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6938         PR target/71869
6939         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
6940         __float128 support when we don't have hardware support, so that
6941         the IEEE built-in functions like isgreater, first call __unordkf3
6942         to make sure neither operand is a NaN, and if both operands are
6943         ordered, do the normal comparison.
6945 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6947         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
6948         name.
6949         (extract_code_and_val_from_cond_with_ops): Verify that name is
6950         either cond_op0 or cond_op1.
6952 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6954         PR tree-optimization/18046
6955         * genmodes.c (emit_mode_size_inline): Emit an assert that
6956         verifies that mode is a valid array index.
6957         (emit_mode_nuinits_inline): Likewise.
6958         (emit_mode_inner_inline): Likewise.
6959         (emit_mode_unit_size_inline): Likewise.
6960         (emit_mode_unit_precision_inline): Likewise.
6961         * tree-vrp.c: Include params.h.
6962         (find_switch_asserts): Register edge assertions for the default
6963         label which correspond to the anti-ranges of each case label.
6964         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
6965         * doc/invoke.texi: Document it.
6967 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6969         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
6970         and unnecessary call to gimple_bb.
6972 2016-07-26  Richard Biener  <rguenther@suse.de>
6974         PR rtl-optimization/71984
6975         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
6976         for VOIDmode.
6978 2016-07-26  Richard Biener  <rguenther@suse.de>
6980         PR middle-end/72517
6981         * expmed.c (extract_bit_field_1): Constrain the vector mode
6982         with element size matching the extraction mode size when
6983         choosing a better vector mode to do the extraction from.
6985 2016-07-26  Richard Biener  <rguenther@suse.de>
6986             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6988         PR middle-end/70920
6989         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
6990         pattern.
6992 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6994         * tree-ssa-structalias.c (struct scc_info): Change types of
6995         members to auto_sbitmap and auto_vec.
6996         (scc_info::scc_info): New constructor.
6997         (scc_info::~scc_info): New destructor.
6998         (init_scc_info): Remove.
6999         (free_scc_info): Remove.
7000         (find_indirect_cycles): Adjust.
7001         (perform_var_substitution): Likewise.
7002         (free_var_substitution_info): Likewise.
7004 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7006         * tree-outof-ssa.c (struct elim_graph): Change type of members
7007         to auto_vec and auto_sbitmap.
7008         (elim_graph::elim_graph): New constructor.
7009         (delete_elim_graph): Remove.
7010         (expand_phi_nodes): Adjust.
7012 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7014         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
7015         (new_elim_graph): Adjust.
7016         (clear_elim_graph): Likewise.
7017         (delete_elim_graph): Likewise.
7018         (elim_graph_size): Likewise.
7019         (elim_graph_add_node): Likewise.
7020         (elim_graph_add_edge): Likewise.
7021         (elim_graph_remove_succ_edge): Likewise.
7022         (eliminate_name): Likewise.
7023         (eliminate_build): Likewise.
7024         (elim_forward): Likewise.
7025         (elim_unvisited_predecessor): Likewise.
7026         (elim_backward): Likewise.
7027         (elim_create): Likewise.
7028         (eliminate_phi): Likewise.
7029         (expand_phi_nodes): Likewise.
7031 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7033         * bt-load.c (compute_out): Use auto_sbitmap class.
7034         (link_btr_uses): Likewise.
7035         * cfganal.c (mark_dfs_back_edges): Likewise.
7036         (post_order_compute): Likewise.
7037         (inverted_post_order_compute): Likewise.
7038         (pre_and_rev_post_order_compute_fn): Likewise.
7039         (single_pred_before_succ_order): Likewise.
7040         * cfgexpand.c (pass_expand::execute): Likewise.
7041         * cfgloop.c (verify_loop_structure): Likewise.
7042         * cfgloopmanip.c (fix_bb_placements): Likewise.
7043         (remove_path): Likewise.
7044         (update_dominators_in_loop): Likewise.
7045         * cfgrtl.c (break_superblocks): Likewise.
7046         * ddg.c (check_sccs): Likewise.
7047         (create_ddg_all_sccs): Likewise.
7048         * df-core.c (df_worklist_dataflow): Likewise.
7049         * dse.c (dse_step3): Likewise.
7050         * except.c (eh_region_outermost): Likewise.
7051         * function.c (thread_prologue_and_epilogue_insns): Likewise.
7052         * gcse.c (prune_expressions): Likewise.
7053         (prune_insertions_deletions): Likewise.
7054         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
7055         * graph.c (draw_cfg_nodes_no_loops): Likewise.
7056         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
7057         * lcm.c (compute_earliest): Likewise.
7058         (compute_farthest): Likewise.
7059         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
7060         (unroll_loop_runtime_iterations): Likewise.
7061         (unroll_loop_stupid): Likewise.
7062         * lower-subreg.c (decompose_multiword_subregs): Likewise.
7063         * lra-lives.c: Likewise.
7064         * lra.c (lra): Likewise.
7065         * modulo-sched.c (schedule_reg_moves): Likewise.
7066         (optimize_sc): Likewise.
7067         (get_sched_window): Likewise.
7068         (sms_schedule_by_order): Likewise.
7069         (check_nodes_order): Likewise.
7070         (order_nodes_of_sccs): Likewise.
7071         (order_nodes_in_scc): Likewise.
7072         * recog.c (split_all_insns): Likewise.
7073         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
7074         * reload1.c (reload): Likewise.
7075         * sched-rgn.c (haifa_find_rgns): Likewise.
7076         (split_edges): Likewise.
7077         (compute_trg_info): Likewise.
7078         * sel-sched.c (init_seqno): Likewise.
7079         * store-motion.c (remove_reachable_equiv_notes): Likewise.
7080         * tree-into-ssa.c (update_ssa): Likewise.
7081         * tree-ssa-live.c (live_worklist): Likewise.
7082         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
7083         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
7084         * Likewise.
7085         (try_peel_loop): Likewise.
7086         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
7087         * Likewise.
7088         * tree-ssa-pre.c (compute_antic): Likewise.
7089         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
7090         * tree-stdarg.c (reachable_at_most_once): Likewise.
7091         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
7092         * var-tracking.c (vt_find_locations): Likewise.
7094 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
7096         * sbitmap.h (auto_sbitmap): New class.
7098 2016-07-26  Alan Modra  <amodra@gmail.com>
7100         PR target/72103
7101         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
7102         sri->t_icode.
7104 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
7106         * input.c (selftest::temp_source_file::temp_source_file): Fix
7107         missing "%s" in fprintf.
7109 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
7111         PR middle-end/71732
7112         * cselib.c (cselib_process_insn): Invalidate argument slots for
7113         const/pure calls.
7115 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7117         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
7118         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
7119         vmulxh_lane_f16, vmulxh_laneq_f16): New.
7121 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7123         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7124         * config/aarch64/aarch64.md (fma, fnma): Support HF.
7125         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7127 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7129         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7130         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7131         New.
7132         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7133         (add<mode>3): Likewise.
7134         (sub<mode>3): Likewise.
7135         (mul<mode>3): Likewise.
7136         (div<mode>3): Likewise.
7137         (*div<mode>3): Likewise.
7138         (<fmaxmin><mode>3): Extend to HF.
7139         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7140         (fabd<mode>3): Likewise.
7141         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7142         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7143         (aarch64_fmulx<mode>): Likewise.
7144         (aarch64_fac<optab><mode>): Likewise.
7145         (aarch64_frecps<mode>): Likewise.
7146         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7147         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7148         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7149         (VSDQ_HSDI): Support HI.
7150         (fcvt_target, FCVT_TARGET): Likewise.
7151         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7152         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7153         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7154         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7155         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7156         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7157         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7158         vrsqrtsh_f16): New.
7160 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7162         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7163         * config/aarch64/aarch64-builtins.c (hi_UP): New.
7164         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7165         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7166         mode.
7167         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7168         (aarch64_cm<optab><mode>): Likewise.
7169         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7170         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7171         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7172         (sqrt<mode>2): Likewise.
7173         (*sqrt<mode>2): Likewise.
7174         (abs<mode>2): Likewise.
7175         (<optab><mode>hf2): New pattern for HF mode.
7176         (<optab>hihf2): Likewise.
7177         * config/aarch64/arm_neon.h: Include arm_fp16.h.
7178         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7179         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7180         Support HF mode.
7181         * config/aarch64/arm_fp16.h: New file.
7182         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7183         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7184         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7185         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7186         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7187         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7188         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7189         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7190         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7191         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7192         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7193         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7194         vsqrth_f16): New.
7196 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7198         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7199         reduc_smin_scal_): Use VDQIF_F16.
7200         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7201         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7202         Use VHSDF.
7203         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7204         * config/aarch64/iterators.md (VDQIF_F16): New.
7205         (vp): Support HF modes.
7206         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7207         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7209 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7211         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7212         "*aarch64_mulx_elt_from_dup<mode>".
7213         (*aarch64_mul3_elt<mode>): Update schedule type.
7214         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7215         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7216         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7217         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7218         (f, fp): Support HF modes.
7219         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7220         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7221         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7222         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7223         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7224         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7226 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7228         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7229         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7230         modes.
7231         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7232         vfmsq_f16): New.
7234 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7236         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7237         * config/aarch64/aarch64-simd.md
7238         (aarch64_rsqrts<mode>): Extend to HF modes.
7239         (fabd<mode>3): Likewise.
7240         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7241         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7242         (aarch64_<maxmin_uns>p<mode>): Likewise.
7243         (<su><maxmin><mode>3): Likewise.
7244         (<maxmin_uns><mode>3): Likewise.
7245         (<fmaxmin><mode>3): Likewise.
7246         (aarch64_faddp<mode>): Likewise.
7247         (aarch64_fmulx<mode>): Likewise.
7248         (aarch64_frecps<mode>): Likewise.
7249         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7250         (add<mode>3): Extend to HF modes.
7251         (sub<mode>3): Likewise.
7252         (mul<mode>3): Likewise.
7253         (div<mode>3): Likewise.
7254         (*div<mode>3): Likewise.
7255         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7256         HF, V4HF and V8HF.
7257         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7258         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7259         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7260         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7261         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7262         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7263         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7264         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7265         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7266         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7267         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7268         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7269         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7270         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7272 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7274         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7275         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7276         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7277         (neg<mode>2): Likewise.
7278         (abs<mode>2): Likewise.
7279         (<frint_pattern><mode>2): Likewise.
7280         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7281         (<optab><VDQF:mode><fcvt_target>2): Likewise.
7282         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7283         (ftrunc<VDQF:mode>2): Likewise.
7284         (<optab><fcvt_target><VDQF:mode>2): Likewise.
7285         (sqrt<mode>2): Likewise.
7286         (*sqrt<mode>2): Likewise.
7287         (aarch64_frecpe<mode>): Likewise.
7288         (aarch64_cm<optab><mode>): Likewise.
7289         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7290         HF, V4HF and V8HF.
7291         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7292         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7293         (stype): New.
7294         * config/aarch64/arm_neon.h (vdup_n_f16): New.
7295         (vdupq_n_f16): Likewise.
7296         (vld1_dup_f16): Use vdup_n_f16.
7297         (vld1q_dup_f16): Use vdupq_n_f16.
7298         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7299         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7300         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7301         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7302         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7303         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7304         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7305         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7306         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7307         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7308         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7309         vsqrt_f16, vsqrtq_f16): New.
7311 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7313         * config/aarch64/aarch64-simd.md
7314         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7315         (aarch64_ext<mode>): Likewise.
7316         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7317         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7318         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7319         and V8HFmode.
7320         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7321         float16x8_t.
7322         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7323         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7324         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7325         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7326         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7327         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7328         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7329         New.
7330         (vmov_n_f16): Reimplement using vdup_n_f16.
7331         (vmovq_n_f16): Reimplement using vdupq_n_f16..
7333 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7335         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7336         "frame_related_p".  Generate CFA annotation when it's necessary.
7337         (aarch64_expand_prologue): Use aarch64_add_constant.
7338         (aarch64_expand_epilogue): Likewise.
7339         (aarch64_output_mi_thunk): Pass "false" when calling
7340         aarch64_add_constant.
7342 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7344         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7345         sequences.
7347 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7349         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7350         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7351         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7352         (aarch64_build_constant): Delete.
7354 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
7356         Revert
7357         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
7359         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7360         flag_toplevel_reorder.
7362 2016-07-25  Richard Biener  <rguenther@suse.de>
7364         * cgraph.c (cgraph_node::verify_node): Compare against builtin
7365         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7366         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7367         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7368         (streamer_get_builtin_tree): Likewise.
7369         (streamer_write_builtin): Likewise.
7370         * lto-streamer.h (LTO_builtin_decl): Remove.
7371         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7372         (lto_input_scc): Remove LTO_builtin_decl handling.
7373         (lto_input_tree_1): Liekwise.
7374         * lto-streamer-out.c (lto_output_tree_1): Remove special
7375         handling of builtins.
7376         (DFS::DFS): Likewise.
7377         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7378         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7379         assert.
7380         (streamer_write_builtin): Remove.
7382 2016-07-25  Martin Liska  <mliska@suse.cz>
7384         * lto-cgraph.c (input_symtab): Don't call get_working_sets
7385         if flag_auto_profile is set to true.
7387 2016-07-25  Martin Liska  <mliska@suse.cz>
7389         PR gcov-profile/71868
7390         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7391         have a function with multiple latches, count them all.
7393 2016-07-25  Martin Liska  <mliska@suse.cz>
7395         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7397 2016-07-25  Martin Liska  <mliska@suse.cz>
7399         PR tree-optimization/71987
7400         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7401         just for SSA_NAMEs. Fix GNU coding style.
7403 2016-07-25  Martin Liska  <mliska@suse.cz>
7405         PR gcov-profile/64874
7406         * gcov-io.h: Update command about file format.
7407         * gcov-iov.c (main): Adapt the numbering scheme.
7409 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
7411         PR middle-end/66726
7412         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7413         whose result is used in PHI.
7414         (final_range_test_p): Likewise.
7415         (maybe_optimize_range_tests): Likewise.
7417 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7419         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7420         Reformat two multi-line strings.
7422 2016-07-22  Martin Sebor  <msebor@redhat.com>
7424         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7426 2016-07-22  Martin Sebor  <msebor@redhat.com>
7428         PR c/71560
7429         * doc/extend.texi (Compound Literals): Correct and clarify.
7430         (Cast to Union): Same.
7432 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7434         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7435         comments to explain why certain error messages make mention of
7436         undocumented options.
7437         (rs6000_invalid_builtin): Change error messages to replace mention
7438         of undocumented options with mention of the -mcpu=power9 option
7439         that enables those undocumented options.
7440         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
7441         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
7442         definition of this macro to correct an existing error.
7443         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
7444         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
7445         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
7446         descriptions of built-in functions so that they depend on
7447         -mcpu=power9 instead of on the corresponding undocumented flags.
7448         * doc/invoke.texi (Option Summary):  Remove all mention of newly
7449         undocumented flags.
7450         (IBM RS/6000 and PowerPC Options): Likewise.
7451         * doc/md.texi (Constraints for Particuliar Machines): Remove all
7452         mention of newly undocumented flags.
7454 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
7456         * ipa-cp.c (determine_versionability): Do not create constprop clones,
7457         when target_clones attribute is set.
7459 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
7461         * common.opt (funsafe-loop-optimizations): Mark ignore.
7462         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
7463         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
7464         related code.
7465         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
7466         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
7468 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
7470         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7471         Parameter.
7472         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7473         Parameter.
7474         (number_of_iterations_exit): Warn missed loop optimization for
7475         possible infinite loops.
7477 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
7479         PR target/71216
7480         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
7481         when to emit a ".machine" pseudo-op.
7483 2016-07-22  Martin Liska  <mliska@suse.cz>
7485         PR gcov-profile/69028
7486         PR gcov-profile/62047
7487         * coverage.c (coverage_compute_lineno_checksum): Do not
7488         calculate checksum for fns w/o xloc.file.
7489         (coverage_compute_profile_id): Likewise.
7491 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
7493         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
7494         (avr_secondary_reload): ...and implementation.
7495         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
7496         * config/avr/avr.md (reload_in<mode>): Remove insns.
7497         (adjust_len) [lpm]: Remove insn attribute value.
7498         * config/avr/predicates.md (flash_operand): Remove insn predicate.
7500 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7502         PR middle-end/71876
7503         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
7504         attribute.
7505         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
7506         * calls.c (special_function_p): Remove the special handling of the
7507         "__builtin_" prefix.
7509 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7511         PR middle-end/71876
7512         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
7513         if STMT may be an alloca call.
7514         (gimple_alloca_call_p, alloca_call_p): Return only true for the
7515         builtin alloca call.
7516         * calls.h (gimple_maybe_alloca_call_p): New function.
7517         * tree-inline.c (inline_forbidden_p_stmt): Use
7518         gimple_maybe_alloca_call_p here.
7520 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
7522         * spellcheck-tree.c (best_macro_match::best_macro_match):
7523         Explictly specify the template arguments when invoking the base
7524         class constructor, to help older C++ compilers.
7526 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
7528         PR sanitizer/71953
7529         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
7530         before builtin_decl_implicit.
7532 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7534         * optabs.c (emit_condiitonal_move): Short circuit for identical
7535         sources.
7537 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7539         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
7540         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
7541         (noce_conversion_profitable_p): New.
7542         (noce_try_store_flag_constants): Use it.
7543         (noce_try_addcc): Likewise.
7544         (noce_try_store_flag_mask): Likewise.
7545         (noce_try_cmove): Likewise.
7546         (noce_try_cmove_arith): Likewise.
7547         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
7548         overwriting it.
7549         (noce_convert_multiple_sets): Move cost model to here, from...
7550         (bb_ok_for_noce_convert_multiple_sets) ...here.
7551         (noce_process_if_block): Update calls for above changes.
7552         (noce_find_if_block): Record new noce_if_info parameters.
7554 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7556         * target.def (max_noce_ifcvt_seq_cost): New.
7557         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
7558         * doc/tm.texi: Regenerate.
7559         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
7560         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
7561         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
7562         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
7563         * doc/invoke.texi: Document new params.
7565 2016-07-21  Richard Biener  <rguenther@suse.de>
7567         PR tree-optimization/71947
7568         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
7569         ranges have useful limit_vr information.
7571 2016-07-21  Richard Biener  <rguenther@suse.de>
7573         * function-tests.c (build_trivial_generic_function): Set
7574         BLOCK_SUPERCONTEXT of DECL_INITIAL.
7575         * omp-low.c (create_omp_child_function): Likewise.
7576         (grid_expand_target_grid_body): Likewise.
7577         * cgraphunit.c (init_lowered_empty_function): Likewise.
7578         (cgraph_node::expand_thunk): Likewise.
7579         * tree-parloops.c (create_loop_fn): Likewise.
7580         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
7582 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7584         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
7585         in comment.
7587 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
7589         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
7590         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
7591         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
7592         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
7593         values for insn attribute.
7594         * config/avr/avr.c (avr_out_insert_notbit): New function.
7595         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
7596         ADJUST_LEN_INSV_NOTBIT_0/_7.
7597         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
7599 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
7601         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
7602         (chrec_convert_1, chrec_convert): Ditto.
7603         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
7604         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
7605         * tree-vrp.c (adjust_range_with_scev): Ditto.
7606         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
7607         (scev_var_range_cant_overflow): New function.
7608         (scev_probably_wraps_p): New parameter.  Call above function.
7609         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
7611 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
7613         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
7614         by removing computation of may_be_zero.
7616 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
7618         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
7620 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
7622         Improving concepts performance and diagnostics.
7623         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
7624         for constraint satisfaction and subsumption.
7625         * timevar.h (auto_timevar): New constructor that matches the push/pop
7626         pattern of usage in pt.c.
7628 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
7630         * hwint.h (HOST_WIDE_INT_0): New define.
7631         (HOST_WIDE_INT_0U): Ditto.
7632         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
7633         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
7634         * simplify-rtx.c: Ditto.
7635         * tree-object-size.c: Ditto.
7637 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7639         * config/s390/s390.c (s390_encode_section_info): Remove mode size
7640         check.
7642 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
7644         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
7645         * combine.c: Use HOST_WIDE_INT_M1U instead of
7646         ~(unsigned HOST_WIDE_INT) 0.
7647         * double-int.h: Ditto.
7648         * dse.c: Ditto.
7649         * dwarf2asm.c:Ditto.
7650         * expmed.c: Ditto.
7651         * genmodes.c: Ditto.
7652         * match.pd: Ditto.
7653         * read-rtl.c: Ditto.
7654         * tree-ssa-loop-ivopts.c: Ditto.
7655         * tree-ssa-loop-prefetch.c: Ditto.
7656         * tree-vect-generic.c: Ditto.
7657         * tree-vect-patterns.c: Ditto.
7658         * tree.c: Ditto.
7660 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7662         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
7663         constant addresses outside [0,0xc0] into a register.
7664         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
7665         cases where the base address register is unused after.
7666         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
7667         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
7668         (avr_out_store_psi_reg_disp_tiny): Same.
7670 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7672         Implement attribute progmem on reduced Tiny cores by adding
7673         flash offset 0x4000 to respective symbols.
7675         PR target/71948
7676         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
7677         documentation how it works on reduced Tiny cores.
7678         (AVR Named Address Spaces): No support for reduced Tiny.
7679         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
7680         (avr_address_tiny_pm_p): New static function.
7681         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
7682         if the address is in progmem.
7683         (avr_assemble_integer): Same.
7684         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
7685         for symbol_ref in progmem.
7686         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
7687         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
7688         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
7690 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
7692         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
7693         * configure: Regenerate.
7694         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
7695         (USE_THIN_ARCHIVES): New variable.
7696         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
7697         this archive as a thin archive.
7699 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
7701         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
7702         same location as last time, don't skip if we have fix-it hints.
7703         Clarify the skipping logic by converting it from one "if" clause
7704         to repeated "if" clauses.
7705         * spellcheck-tree.c: Include "cpplib.h".
7706         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
7707         (best_macro_match::best_macro_match): New constructor.
7708         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
7709         Move here from c/c-decl.c.
7710         (class best_macro_match): Move here from c/c-decl.c, converting
7711         from a typedef to a subclass, gaining a ctor.
7713 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7715         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
7716         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
7717         define...
7718         (avr_addr_space_diagnose_usage): ...and implementation.
7719         (avr_addr_space_supported_p): New function.
7720         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
7721         report bad address space usage if that space is supported.
7722         (avr_insert_attributes): Same.  No more complain about unsupported
7723         address spaces.
7724         * config/avr/avr-c.c (tm_p.h): Include it.
7725         (avr_cpu_cpp_builtins): Only define addr-space related built-in
7726         macro if avr_addr_space_supported_p.
7728 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
7730         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7731         flag_toplevel_reorder.
7733 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
7735         * gcc-rich-location.c
7736         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
7737         a const char *.
7738         * gcc-rich-location.h
7739         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
7741 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7743         * target.def (addr_space): Add new diagnose_usage to hook vector.
7744         * targhooks.c (default_addr_space_diagnose_usage): Add default
7745         implementation and...
7746         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
7747         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
7748         is some address space, call targetm.addr_space.diagnose_usage.
7749         * doc/tm.texi.in (Named Address Spaces): Add anchor for
7750         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
7751         * doc/tm.texi: Regenerate.
7753 2016-07-20  Martin Liska  <mliska@suse.cz>
7755         PR middle-end/71898
7756         * graphite-isl-ast-to-gimple.c (later_of_the_two):
7757         Properly handly PHI stmts.
7759 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
7761         PR tree-optimization/71503
7762         PR tree-optimization/71683
7763         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
7764         and break.
7766 2016-07-20  Martin Liska  <mliska@suse.cz>
7768         * doc/invoke.texi (-fipa-ra): Document when the option is
7769         disabled. Fix a typo.
7771 2016-07-20  Martin Liska  <mliska@suse.cz>
7773         * Makefile.in: Include fibonacci_heap.c
7774         * fibonacci_heap.c: New file.
7775         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
7776         (fibonacci_heap::union_with): Fix deletion of the second heap.
7777         * selftest-run-tests.c (selftest::run_tests): Incorporate
7778         fibonacci heap tests.
7779         * selftest.h: Declare fibonacci_heap_c_tests.
7781 2016-07-20  Martin Liska  <mliska@suse.cz>
7783         * selftest-run-tests.c (selftest::run_tests): New function.
7784         * selftest.h (sreal_c_tests): Declare.
7785         * sreal.c (sreal_verify_basics): New function.
7786         (verify_aritmetics): Likewise.
7787         (sreal_verify_arithmetics): Likewise.
7788         (verify_shifting): Likewise.
7789         (sreal_verify_shifting): Likewise.
7790         (void sreal_c_tests): Likewise.
7792 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
7794         PR rtl-optimization/71916
7795         * cfgrtl.c (contains_no_active_insn_p): Return false also for
7796         bb which have a single succ fake edge.
7798 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
7800         PR debug/71855
7801         * dwarf2out.c (gen_subprogram_die): Only call
7802         gen_unspecified_parameters_die while dumping early dwarf.
7804 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
7806         PR middle-end/71874
7807         * gimple-fold.c (fold_builtin_memory_op): Use
7808         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7810 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
7812         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
7813         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
7814         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
7815         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
7816         * combine.c: Ditto.
7817         * cse.c: Ditto.
7818         * dojump.c: Ditto.
7819         * double-int.c: Ditto.
7820         * dse.c: Ditto.
7821         * dwarf2out.c: Ditto.
7822         * expmed.c: Ditto.
7823         * expr.c: Ditto.
7824         * fold-const.c: Ditto.
7825         * function.c: Ditto.
7826         * fwprop.c: Ditto.
7827         * genmodes.c: Ditto.
7828         * hwint.c: Ditto.
7829         * hwint.h: Ditto.
7830         * ifcvt.c: Ditto.
7831         * loop-doloop.c: Ditto.
7832         * loop-invariant.c: Ditto.
7833         * loop-iv.c: Ditto.
7834         * match.pd: Ditto.
7835         * optabs.c: Ditto.
7836         * real.c: Ditto.
7837         * reload.c: Ditto.
7838         * rtlanal.c: Ditto.
7839         * simplify-rtx.c: Ditto.
7840         * stor-layout.c: Ditto.
7841         * toplev.c: Ditto.
7842         * tree-ssa-loop-ivopts.c: Ditto.
7843         * tree-vect-generic.c: Ditto.
7844         * tree-vect-patterns.c: Ditto.
7845         * tree.c: Ditto.
7846         * tree.h: Ditto.
7847         * ubsan.c: Ditto.
7848         * varasm.c: Ditto.
7849         * wide-int-print.cc: Ditto.
7850         * wide-int.cc: Ditto.
7851         * wide-int.h: Ditto.
7853 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
7855         * selftest.c (selftest::assert_streq): Handle NULL values of
7856         val_actual and val_expected.
7858 2016-07-19  Martin Jambor  <mjambor@suse.cz>
7860         PR fortran/71688
7861         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
7862         rather than cgraph_create_node to get a call graph node.
7864 2016-07-19  Richard Biener  <rguenther@suse.de>
7866         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
7867         handle all tcc_constant bases and valueize SSA names.
7868         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
7869         tcc_constant bases.
7871 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
7873         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
7874         the flags of the exit block and bb2, not just the entry block.
7876 2016-07-19  Richard Biener  <rguenther@suse.de>
7878         PR tree-optimization/71901
7879         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7880         align member, group stuff with the bitfield.
7881         (vn_ref_op_align_unit): New inline.
7882         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
7883         record element alignment and operand 3 unchanged.
7884         (ao_ref_init_from_vn_reference): Adjust.
7885         (valueize_refs_1): Likewise.
7886         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7888 2016-07-19  Richard Biener  <rguenther@suse.de>
7890         PR tree-optimization/71908
7891         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
7892         symbolic constants in a more reliable way.
7894 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7896         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
7897         comment.
7898         (vect_update_inits_of_drs): Likewise.
7899         (vect_create_cond_for_alias_checks): Likewise.
7900         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
7902 2016-07-19  Richard Biener  <rguenther@suse.de>
7904         PR lto/71907
7905         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
7906         with an abstract origin that is not an inlined function outer
7907         scope add a self-reference as abstract origin.
7908         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
7910 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7912         PR target/71493
7913         * config/rs6000/rs6000.c (rs6000_function_value): Fix
7914         unintentional System V.4 structure return breakage for structures
7915         with a single floating point element.
7917 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
7919         PR tree-optimization/71734
7920         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
7921         contains REF, use it to check safelen, assume that safelen value
7922         must be greater 1, fix style.
7923         (ref_indep_loop_p_2): Add REF_LOOP argument.
7924         (ref_indep_loop_p): Pass LOOP as additional argument to
7925         ref_indep_loop_p_2.
7927 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7929         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
7930         allocation in the prologue.
7931         * explow.c (get_dynamic_stack_base): New function to return an address
7932         expression for the dynamic stack base.
7933         (get_dynamic_stack_size): New function to do the required dynamic stack
7934         space size calculations.
7935         (allocate_dynamic_stack_space): Use new functions.
7936         (align_dynamic_address): Move some code from
7937         allocate_dynamic_stack_space to new function.
7938         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
7940 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7942         * config/s390/s390.c (s390_encode_section_info): Always set
7943         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
7944         found.
7946 2016-07-18  Richard Biener  <rguenther@suse.de>
7948         PR tree-optimization/71893
7949         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
7950         for sizetype cast added by array_ref_element_size.
7951         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7953 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
7955         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
7956         register parameters.  Remove code to initialize argument pointer
7957         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
7958         using a pc-relative branch.  Cleanup conditional code.
7959         * config/pa/pa.md (call_mcount): New expander.
7960         (call_mcount_nonpic): New insn.
7961         (call_mcount_pic): New insn and split.
7962         (call_mcount_pic_post_reload): New insn.
7963         (call_mcount_64bit): New insn and split.
7964         (call_mcount_64bit_post_reload): New insn.
7966 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
7968         * config/avr/predicates.md (const_m255_to_m1_operand): New.
7969         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
7970         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
7971         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
7972         (*usum_widenqihi3, *udiff_widenqihi3)
7973         (*addhi3_zero_extend.const): New combiner insns.
7974         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
7975         just 1 bit is affected.
7976         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
7977         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
7979 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
7981         * omp-low.c (lower_omp_target): Mark data clauses with
7982         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
7983         zero-length subarrays.
7985 2016-07-15  Richard Biener  <rguenther@suse.de>
7987         PR tree-optimization/71881
7988         * tree-loop-distribution.c (destroy_loop): Remove blocks in
7989         reverse DOM order to make debug temp generation happy.
7991 2016-07-15  Richard Biener  <rguenther@suse.de>
7993         PR tree-optimization/71887
7994         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
7995         verify it is not zero for division / modulo handling.
7996         (value_replacement): Adjust.
7998 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
7999             Julian Brown  <julian@codesourcery.com>
8001         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
8002         * config/aarch64/aarch64-cost-tables.h
8003         (vulcan_extra_costs): New variable.
8004         * config/aarch64/aarch64.c
8005         (vulcan_addrcost_table): Likewise.
8006         (vulcan_regmove_cost): Likewise.
8007         (vulcan_vector_cost): Likewise.
8008         (vulcan_branch_cost): Likewise.
8009         (vulcan_tunings): Likewise.
8011 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
8013         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
8014         (output_in_order): Loop over undefined variables too.  Output them
8015         via assemble_undefined_decl.  Skip variables that correspond to hard
8016         registers or have value-exprs.
8017         * varpool.c (symbol_table::output_variables): Handle undefined
8018         variables together with defined ones.
8020 2016-07-15  Richard Biener  <rguenther@suse.de>
8022         * tree-ssa-pre.c (get_representative_for): Make sure to return
8023         the value number of SSA names.
8024         (phi_translate_1): get_representative_for cannot return NULL.
8025         (do_pre_regular_insertion): Remove redundant call to
8026         fully_constant_expression.
8027         (do_pre_partial_partial_insertion): Likewise.
8029 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
8031         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
8032         (derive_simple_iv_with_niters): New function.
8033         (simple_iv): Rewrite using simple_iv_with_niters.
8034         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
8035         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
8036         function.
8037         (number_of_iterations_exit): Rewrite using above function.
8038         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
8039         Decl.
8041 2016-07-15  Richard Biener  <rguenther@suse.de>
8043         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
8044         vec_construct cost.
8046 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
8048         PR tree-optimization/71872
8049         * tree-data-ref.c (get_references_in_stmt): Ignore references
8050         with is_gimple_constant get_base_address.
8052 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8054         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
8055         (TARGET_HAVE_LDACQD): New macro.
8056         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
8057         than TARGET_HAVE_LDACQ.
8058         (arm_load_acquire_exclusivedi): Likewise.
8059         (arm_store_release_exclusivedi): Likewise.
8061 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8063         PR rtl-optimization/71878
8064         * lra-constraints.c (match_reload): Pass information about other
8065         output operands.  Create new unique register value if matching input
8066         operand shares same register value as output operand being considered.
8067         (curr_insn_transform): Record output operands already processed.
8069 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8071         PR target/65951
8072         PR tree-optimization/70923
8073         * tree-vect-patterns.c: Include mult-synthesis.h.
8074         (target_supports_mult_synth_alg): New function.
8075         (synth_lshift_by_additions): Likewise.
8076         (apply_binop_and_append_stmt): Likewise.
8077         (vect_synth_mult_by_constant): Likewise.
8078         (target_has_vecop_for_code): Likewise.
8079         (vect_recog_mult_pattern): Use above functions to synthesize vector
8080         multiplication by integer constants.
8082 2016-07-14  Alan Modra  <amodra@gmail.com>
8084         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
8085         gpr alternatives.  Correct '*' placement on Y,r alternative.
8086         Add '*' on operand 1 of r,r alternative.
8088 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8090         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
8091         * expmed.h: ... Here.
8093 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
8095         * gimple.h (stmt_can_terminate_bb_p): New function.
8096         * tree-cfg.c (need_fake_edge_p): Rename to ...
8097         (stmt_can_terminate_bb_p): ... this; return true if stmt can
8098         throw external; handle const and pure calls.
8099         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
8101 2016-07-14  Richard Biener  <rguenther@suse.de>
8103         PR tree-optimization/71866
8104         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
8105         (do_hoist_insertion): Avoid endless recursion when we
8106         didn't insert anything because we managed to simplify
8107         things down to a constant or SSA name.
8108         (fully_constant_expression): Re-write in terms of ...
8109         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
8110         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
8111         vn_nary_build_or_lookup_1.
8112         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
8113         (vn_nary_build_or_lookup): ... this which now wraps it.
8115 2016-07-14  Alan Modra  <amodra@gmail.com>
8117         PR target/71733
8118         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
8119         with p9_vector override before power9-dform override.
8121 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8123         * value-prof.c (gimple_value_profile_transformations): Don't run
8124         when auto_profile is on.
8126 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8128         * auto-profile.c (update_inlined_ind_target,
8129         afdo_indirect_call): Print information to dump file.
8131 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
8133         * genrecog.c (special_predicate_operand_p): New function.
8134         (predicate_name): Move function.
8135         (validate_pattern): Don't warn about missing mode for all
8136         define_special_predicate predicates.
8138 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
8140         * tree-vect-data-refs.c (vect_no_alias_p): New function.
8141         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8142         resolve alias checks which are known at compilation time.
8143         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8144         alias checks are resolved.  Move dump info for too many runtime
8145         alias checks to here...
8146         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8148 2016-07-13  Richard Biener  <rguenther@suse.de>
8150         PR tree-optimization/24574
8151         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8152         position and add shift, rotate, divison and modulo support
8153         for left zero.
8154         (value_replacement): Pass in argument position to absorbing_element_p.
8156 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8158         PR ipa/71633
8159         * ipa-inline-transform.c (inline_call): Support
8160         instrumented thunks.
8162 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8164         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8165         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8166         divide feature.
8167         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8168         Baseline.  Make initial alternative TARGET_32BIT only.
8169         (udivsi3): Likewise.
8170         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8171         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8172         target.
8174 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8176         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8177         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8178         availability with TARGET_HAVE_MOVT.
8179         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8180         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8181         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8182         UINTVAL.
8183         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8184         extra instruction if MOVW is available.  Use a cost variable
8185         incremented by COSTS_N_INSNS (1) when the condition match rather than
8186         returning an arithmetic expression based on COSTS_N_INSNS.  Make
8187         constant with bottom half word zero cost 2 instruction if MOVW is
8188         available.
8189         * config/arm/arm.md (define_attr "arch"): Add v8mb.
8190         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8191         target is ARMv8-M Baseline.
8192         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8193         (arm_movtas_ze): Likewise.
8194         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8195         alternative for constants satisfying j constraint.
8196         (thumb1_movsi_insn): Likewise.
8197         (movsi splitter for K alternative): Tighten condition to not trigger
8198         if movt is available and j constraint is satisfied.
8199         (Pe immediate splitter): Likewise.
8200         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8201         constant fitting in an halfword to use MOVW.
8202         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8203         effective target.
8205 2016-07-13  Richard Biener  <rguenther@suse.de>
8207         PR middle-end/71104
8208         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8209         gimplifying the LHS.  Make sure to gimplify a returning twice
8210         call LHS without using SSA names.
8212 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8214         * tree-data-ref.c (find_data_references_in_stmt): Remove
8215         unnecessary call to vec::release.
8216         (graphite_find_data_references_in_stmt): Likewise.
8217         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8218         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8220 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8222         * cfgexpand.c (expand_used_vars): Make the type of a local
8223         variable auto_vec.
8224         * genmatch.c (lower_for): Likewise.
8225         * haifa-sched.c (haifa_sched_init): Likewise.
8226         (add_to_speculative_block): Likewise.
8227         (create_check_block_twin): Likewise.
8228         * predict.c (handle_missing_profiles): Likewise.
8229         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8230         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8231         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8232         Likewise.
8233         (maybe_lower_iteration_bound): Likewise.
8234         * tree-ssa-sccvn.c (DFS): Likewise.
8235         * tree-stdarg.c (reachable_at_most_once): Likewise.
8236         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8237         (vectorizable_store): Likewise.
8239 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8241         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8242         (sccvn_dom_walker): make cond_stack an auto_vec.
8244 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8246         * ree.c (struct ext_state): Make type of members auto_vec.
8247         (find_and_remove_re): Adjust.
8249 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8251         * cfgexpand.c (struct stack_vars_data): Make type of fields
8252         auto_vec.
8253         (expand_used_vars): Adjust.
8255 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8257         * ipa.c (record_cdtor_fn): Adjust.
8258         (build_cdtor_fns): Likewise.
8259         (ipa_cdtor_merge): Make static_ctors and static_dtors local
8260         variables.
8262 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8264         * genextract.c (struct accum_extract): Add constructor and make
8265         members auto_vec.
8266         (gen_insn): Adjust.
8268 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8270         * tree.c (struct free_lang_data_d): Add constructor and change
8271         types of members to ones that automatically manage resources.
8272         (fld_worklist_push): Adjust.
8273         (find_decls_types): Likewise.
8274         (find_decls_types_in_eh_region): Likewise.
8275         (free_lang_data_in_cgraph): Stop manually creating and
8276         destroying members of free_lang_data_d.
8278 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
8280         PR rtl-optimization/68961
8281         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8282         peephole variant.  Use sse_reg_operand predicates.
8284 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
8286         * config/i386/predicates.md (x86_64_immediate_operand)
8287         <case CONST_INT>: Remove unneeded truncation to DImode.
8288         <case CONST>: Ditto.
8289         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8291 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8293         PR target/71805
8294         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8295         The xxperm and xxpermr instructions require that the 2nd input
8296         operand overlap with the output operand, and not the 1st.
8297         (altivec_vperm_v8hiv16qi): Likewise.
8298         (altivec_vperm_<mode>_uns_internal): Likewise.
8299         (altivec_vpermr_<mode>_internal): Likewise.
8300         (vperm_v8hiv4si): Likewise.
8301         (vperm_v16qiv8hi): Likewise.
8303 2016-07-12  Nathan Sidwell  <nathan@acm.org>
8305         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8306         when -mno-pic-data-is-text-relative is in effect, by default.
8307         * doc/invoke.texi (mpic-data-is-text-relative): Document new
8308         behavior and clarify.
8310 2016-07-12  Martin Liska  <mliska@suse.cz>
8312         * params.def: Add avg-loop niter.
8313         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8314         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8315         * doc/invoke.texi: Document the new parameter.
8317 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8319         PR middle-end/71700
8320         * expr.c (store_constructor): Mask sign-extended bits when widening
8321         sub-word constructor element at the start of a word.
8323 2016-07-12  Martin Liska  <mliska@suse.cz>
8325         * Makefile.in: Append rule for params-options.h.
8326         * params-options.h: New file.
8328 2016-07-12  Martin Liska  <mliska@suse.cz>
8330         * ira-build.c (mark_loops_for_removal): Properly iterate
8331         loops.
8333 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
8334             Richard Biener  <rguenther@suse.de>
8336         PR tree-optimization/23286
8337         PR tree-optimization/70159
8338         * doc/invoke.texi: Document -fcode-hoisting.
8339         * common.opt (fcode-hoisting): New flag.
8340         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8341         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8342         (do_regular_insertion): Rename to ...
8343         (do_pre_regular_insertion): ... this and amend general comments
8344         on insertion strathegy.
8345         (do_partial_partial_insertion): Rename to ...
8346         (do_pre_partial_partial_insertion): ... this.
8347         (do_hoist_insertion): New function.
8348         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8349         and call do_hoist_insertion properly.
8350         (insert): Adjust.
8351         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8352         (pass_pre::execute): Register hoist_insert stats.
8354 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
8356         PR middle-end/71716
8357         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8358         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8359         is different from mode's bitsize.  Small cleanup.
8361 2016-07-12  Richard Biener  <rguenther@suse.de>
8363         PR rtl-optimization/68961
8364         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8365         to simplify to a non-constant.
8367 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
8369         PR middle-end/71758
8370         * omp-low.c (expand_omp_target): Gimplify device.
8372         PR tree-optimization/71823
8373         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8374         to get vec_oprnds2 from op2.
8376 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
8378         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8379         Hoist common subexpressions.
8380         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8382 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
8384         PR target/71800
8385         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8386         prevent generation of 'stxsiwx' on pre Power8 hardware.
8388 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
8390         * input.c: Include cpplib.h.
8391         (selftest::temp_source_file): New class.
8392         (selftest::temp_source_file::temp_source_file): New ctor.
8393         (selftest::temp_source_file::~temp_source_file): New dtor.
8394         (selftest::should_have_column_data_p): New function.
8395         (selftest::test_should_have_column_data_p): New function.
8396         (selftest::temp_line_table): New class.
8397         (selftest::temp_line_table::temp_line_table): New ctor.
8398         (selftest::temp_line_table::~temp_line_table): New dtor.
8399         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8400         it to create a temp_line_table.
8401         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8402         locations that are known to have column data.
8403         (selftest::line_table_case): New struct.
8404         (selftest::test_reading_source_line): Move tempfile handling
8405         to class temp_source_file.
8406         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8407         (selftest::assert_token_loc_eq): New function.
8408         (ASSERT_TOKEN_LOC_EQ): New macro.
8409         (selftest::test_lexer): New function.
8410         (selftest::boundary_locations): New array.
8411         (selftest::input_c_tests): Call test_should_have_column_data_p.
8412         Loop over a test matrix of interesting values of location and
8413         default_range_bits, calling test_lexer on each case in the matrix.
8414         Move call to test_accessing_ordinary_linemaps into the matrix.
8415         * selftest.h (ASSERT_EQ): Reimplement in terms of...
8416         (ASSERT_EQ_AT): New macro.
8418 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
8420         PR target/71801
8421         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8422         Don't convert TImode in debug insn.
8424 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8426         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8427         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8428         (tree_type_common::lang_flag_7): New.
8429         (tree_type_common::spare): Reduce size.
8430         * tree.h (TYPE_ALIGN_OK): Remove.
8431         (TYPE_LANG_FLAG_7): New.
8432         (get_inner_reference): Adjust header.
8433         * print-tree.c (print_node): Adjust.
8434         * expr.c (get_inner_reference): Remove parameter keep_aligning.
8435         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8436         calls to get_inner_reference.
8437         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
8438         handling of TYPE_ALIGN_OK.
8439         * builtins.c (get_object_alignment_2): Adjust call to
8440         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
8441         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
8442         TYPE_ALIGN_OK.
8443         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
8444         * cfgexpand.c (expand_debug_expr): Likewise.
8445         * dbxout.c (dbxout_expand_expr): Likewise.
8446         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
8447         loc_list_from_tree, fortran_common): Likewise.
8448         * fold-const.c (optimize_bit_field_compare,
8449         decode_field_reference, fold_unary_loc, fold_comparison,
8450         split_address_to_core_and_offset): Likewise.
8451         * gimple-laddress.c (execute): Likewise.
8452         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
8453         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
8454         * hsa-gen.c (gen_hsa_addr): Likewise.
8455         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
8456         * tsan.c (instrument_expr): Likewise.
8457         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
8458         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
8459         * tree-affine.c (tree_to_aff_combination,
8460         get_inner_reference_aff): Adjust calls to get_inner_reference.
8461         * tree-data-ref.c (split_constant_offset_1,
8462         dr_analyze_innermost): Likewise.
8463         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
8464         * tree-sra.c (ipa_sra_check_caller): Likewise.
8465         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
8466         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
8467         bswap_replace): Likewise.
8468         * tree-vect-data-refs.c (vect_check_gather,
8469         vect_analyze_data_refs): Likewise.
8470         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
8471         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
8472         TYPE_ALIGN_OK.
8474 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
8476         * Makefile.in (selftest-valgrind): New phony target.
8477         * function-tests.c (selftest::build_cfg): Delete pass instances
8478         created by the test.
8479         (selftest::convert_to_ssa): Likewise.
8480         (selftest::test_expansion_to_rtl): Likewise.
8481         * tree-cfg.c (selftest::test_linear_chain): Release dominator
8482         vectors.
8483         (selftest::test_diamond): Likewise.
8485 2016-07-11  Richard Biener  <rguenther@suse.de>
8487         PR tree-optimization/71816
8488         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
8489         than replacing all of its operands.
8491 2016-07-11  Alan Modra  <amodra@gmail.com>
8493         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
8494         (ctr<mode>): Add unspec.
8495         (ctr<mode>_internal*): Likewise.
8497 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
8499         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
8500         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
8502 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
8504         PR rtl-optimization/71621
8505         * lra-constraints.c (process_alt_operands): Check combination of
8506         reg class and mode.
8508 2016-07-08  Jason Merrill  <jason@redhat.com>
8509             Richard Biener  <rguenther@suse.de>
8511         P0145: Refining Expression Order for C++.
8512         * gimplify.c (initial_rhs_predicate_for): New.
8513         (gimplfy_modify_expr): Gimplify RHS before LHS.
8515 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8517         PR target/71297
8518         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8519         Allow standard error handling to take over when a wrong number
8520         of arguments is presented to __builtin_vec_ld () or
8521         __builtin_vec_st ().
8523 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
8525         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
8526         variants.
8527         (smin): Likewise.
8528         (fmax): New entry.
8529         (fmin): Likewise.
8530         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
8531         __builtin_aarch64_fmaxv2sf.
8532         (vmaxnmq_f32): Likewise.
8533         (vmaxnmq_f64): Likewise.
8534         (vminnm_f32): Likewise.
8535         (vminnmq_f32): Likewise.
8536         (vminnmq_f64): Likewise.
8538 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8540         PR target/71806
8541         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
8542         enable -mfloat128-hardware by default.
8543         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
8544         that IEEE 128-bit hardware support needs.
8545         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8546         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
8547         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
8548         floating point requires.
8549         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8550         -mfloat128 and -mfloat128-hardware changes.
8552 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
8554         PR tree-optimization/71667
8555         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
8557 2016-07-08  Martin Liska  <mliska@suse.cz>
8559         PR middle-end/71606
8560         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
8561         folding produces SAVE_EXPRs, thus return false for the type.
8563 2016-07-07  Martin Liska  <mliska@suse.cz>
8565         * file-find.c (remove_prefix): New function.
8566         * file-find.h (remove_prefix): Declare the function.
8567         * gcc-ar.c (main): Skip a folder of the wrapper if
8568         a wrapped binary would point to the same file.
8570 2016-07-07  Jan Hubicka  <jh@suse.cz>
8572         * tree-scalar-evolution.c (iv_can_overflow_p): export.
8573         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
8574         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
8576 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
8578         PR ipa/71624
8579         * ipa-inline-analysis.c (compute_inline_parameters): Set
8580         local.can_change_signature to false for intrumentation
8581         thunk callees.
8583 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8585         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
8586         with TARGET_HAVE_MOVT.
8587         (TARGET_HAVE_MOVT): Define.
8588         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
8589         availability with TARGET_HAVE_MOVT.
8590         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
8591         availability.
8592         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
8593         TARGET_THUMB2.
8594         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
8595         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
8596         * config/arm/constraints.md (define_constraint "j"): Use
8597         TARGET_HAVE_MOVT to check MOVT availability.
8599 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8601         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
8603 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8605         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
8606         (armv8-m.main): Likewise.
8607         (armv8-m.main+dsp): Likewise.
8608         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
8609         (FL_FOR_ARCH8M_MAIN): Likewise.
8610         * config/arm/arm-tables.opt: Regenerate.
8611         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
8612         armv8-m.main+dsp to BE8_LINK_SPEC.
8613         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
8614         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
8615         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
8616         Baseline and Mainline.
8617         (arm_option_override_internal): Also disable arm_restrict_it when
8618         !arm_arch_notm.  Update comment for -munaligned-access to also cover
8619         ARMv8-M Baseline.
8620         (arm_file_start): Increase buffer size for printing architecture name.
8621         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
8622         and armv8-m.main+dsp.
8623         (mno-unaligned-access): Clarify that this is disabled by default for
8624         ARMv8-M Baseline architectures as well.
8626 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8628         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
8629         decide whether to prevent some libgcc routines being included for some
8630         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
8631         link between this condition and the one in
8632         libgcc/config/arm/lib1func.S.
8634 2016-07-07  Richard Biener  <rguenther@suse.de>
8636         * tree-ssa-pre.c: Include alias.h.
8637         (compute_avail): If we have multiple VN_REFERENCEs with the
8638         same hashtable entry adjust that to make it a valid replacement
8639         for all of them with respect to alignment and aliasing
8640         when doing insertion.
8641         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
8642         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
8644 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
8646         PR target/70098
8647         PR target/71763
8648         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8649         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
8650         constraint.
8652 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8654         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
8655         (adjust_mems): Adjust.
8656         (adjust_insn): Likewise.
8657         (prepare_call_arguments): Likewise.
8659 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8661         * gcse.c (struct ls_expr): Make stores field a vector.
8662         (ldst_entry): Adjust.
8663         (free_ldst_entry): Likewise.
8664         (print_ldst_list): Likewise.
8665         (compute_ld_motion_mems): Likewise.
8666         (update_ld_motion_stores): Likewise.
8668 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8670         * gcse.c (struct ls_expr): Remove loads field.
8671         (ldst_entry): Adjust.
8672         (free_ldst_entry): Likewise.
8673         (print_ldst_list): Likewise.
8674         (compute_ld_motion_mems): Likewise.
8676 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8678         * store-motion.c (struct st_expr): Make antic_stores a vector.
8679         (st_expr_entry): Adjust.
8680         (free_st_expr_entry): Likewise.
8681         (print_store_motion_mems): Likewise.
8682         (find_moveable_store): Likewise.
8683         (compute_store_table): Likewise.
8684         (remove_reachable_equiv_notes): Likewise.
8685         (replace_store_insn): Likewise.
8686         (build_store_vectors): Likewise.
8688 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8690         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
8691         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
8693 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
8695         PR tree-optimization/71518
8696         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
8697         misalign also for outer loops with negative step.
8699 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
8701         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
8702         (cortex_a53_shift): Add mov_shift.
8703         (cortex_a53_shift_reg): Add new reservation for register shifts.
8704         (cortex_a53_alu): Remove bfm.
8705         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
8706         (cortex_a53_alu_extr): Add new reservation for EXTR.
8707         (bypasses): Improve bypass modelling.
8709 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8711         PR target/50739
8712         * config/avr/avr.c (avr_asm_select_section): Strip off
8713         SECTION_DECLARED from flags when calling get_section.
8715 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8717         * tree-vectorizer.h (vect_memory_access_type): Add
8718         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
8719         * tree-vect-stmts.c (compare_step_with_zero): New function.
8720         (perm_mask_for_reverse): Move further up file.
8721         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
8722         step is negative.
8723         (get_negative_load_store_type): New function.
8724         (get_load_store_type): Call it.  Add an ncopies argument.
8725         (vectorizable_mask_load_store): Update call accordingly and
8726         remove tests for negative steps.
8727         (vectorizable_store, vectorizable_load): Likewise.  Handle new
8728         memory_access_types.
8730 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8732         * tree-vectorizer.h (vect_memory_access_type): New enum.
8733         (_stmt_vec_info): Add a memory_access_type field.
8734         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
8735         (vect_model_store_cost): Take an access type instead of a boolean.
8736         (vect_model_load_cost): Likewise.
8737         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
8738         vect_model_store_cost and vect_model_load_cost.
8739         * tree-vect-stmts.c (vec_load_store_type): New enum.
8740         (vect_model_store_cost): Take an access type instead of a
8741         store_lanes_p boolean.  Simplify tests.
8742         (vect_model_load_cost): Likewise, but for load_lanes_p.
8743         (get_group_load_store_type, get_load_store_type): New functions.
8744         (vectorizable_store): Use get_load_store_type.  Record the access
8745         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
8746         (vectorizable_load): Likewise.
8747         (vectorizable_mask_load_store): Likewise.  Replace is_store
8748         variable with vls_type.
8750 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8752         * tree-vectorizer.h (vect_grouped_load_supported): Add a
8753         single_element_p parameter.
8754         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8755         Check the PR65518 case here rather than in vectorizable_load.
8756         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
8757         * tree-vect-stmts.c (vectorizable_load): Likewise.
8759 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8761         * tree-vectorizer.h (gather_scatter_info): New structure.
8762         (vect_check_gather_scatter): Return a bool rather than a decl.
8763         Replace return-by-pointer arguments with a single
8764         gather_scatter_info *.
8765         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
8766         (vect_analyze_data_refs): Update call accordingly.
8767         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8768         (vectorizable_mask_load_store): Likewise.  Also record the
8769         offset dt and vectype in the gather_scatter_info.
8770         (vectorizable_store): Likewise.
8771         (vectorizable_load): Likewise.
8773 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8775         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
8776         strided groups, use the cost of N scalar accesses instead
8777         of ncopies vector accesses.
8778         (vect_model_load_cost): Likewise.
8780 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8782         * tree-vect-stmts.c (vect_cost_group_size): Delete.
8783         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
8784         variable to indicate when once-per-group costs are being used.
8785         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
8787 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8789         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
8790         peeling-for-gaps condition.
8792 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8794         * config/s390/s390.c (s390_expand_vec_init): Force initializer
8795         element to register if it doesn't match general_operand.
8797 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8798             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8800         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
8801         prototype.
8802         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
8803         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
8804         (SIGNBIT): New mode iterator.
8805         (Fsignbit): New mode attribute.
8806         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
8807         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
8808         when direct moves are available.
8809         (signbit<mode>2_dm): New define_insn_and_split).
8810         (signbit<mode>2_dm2): New define_insn.
8812 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8814         PR rtl-optimization/71594
8815         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
8816         into subregs of appropriate mode before trying to emit a conditional
8817         move.
8819 2016-07-05  Jan Hubicka  <jh@suse.cz>
8821         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
8822         (simple_iv): Use it.
8824 2016-07-05  Jan Hubicka  <jh@suse.cz>
8826         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
8828 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
8830         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
8831         "offmemok".
8833 2016-07-05  Jan Hubicka  <jh@suse.cz>
8835         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
8836         IV can overflow.
8838 2016-07-05  Richard Biener  <rguenther@suse.de>
8840         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
8841         Handle empty else block.
8842         (is_feasible_trace): Likewise.
8843         (split_paths): Likewise.
8845 2016-07-05  Richard Biener  <rguenther@suse.de>
8847         * tree-loop-distribution.c (distribute_loop): Fix issue with
8848         the cost model loop.
8850 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
8852         * config/arm/neon-testgen.ml: Delete.
8853         * config/arm/neon.ml: Delete.
8855 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
8857         PR c++/71739
8858         * tree.c (attribute_value_equal): Use get_attribute_name instead of
8859         directly using TREE_PURPOSE.
8861 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
8863         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
8864         * config/aarch64/aarch64_neon.h: Likewise.
8865         * config/aarch64/arm_neon.h: Likewise.
8866         * config/aarch64/atomics.md: Likewise.
8867         * config/aarch64/aarch64-simd-builtins.def: Likewise.
8868         * doc/invoke.texi: Likewise.
8870 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8872         * config/s390/s390.md: Add "z13" cpu_facility.
8873         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
8874         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
8875         condition" type instructions.
8877 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8878             Jeff Law  <law@redhat.com>
8880         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
8881         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
8883 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
8885         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
8886         permutation for TARGET_AVX512F.
8887         (ix86_expand_vec_one_operand_perm_avx512): New function.
8888         (expand_vec_perm_1): Invoke introduced function.
8889         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8890         it may be not valid after vectorization.
8892 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8894         PR target/63874
8895         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
8896         typo in comment.  Only force to memory if it is a weak
8897         external reference.
8899 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
8900             Jiong Wang  <jiong.wang@arm.com>
8902         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
8903         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
8904         (AARCH64_FL_F16): New.
8905         (AARCH64_FL_FOR_ARCH8_2): New.
8906         (AARCH64_ISA_8_2): New.
8907         (AARCH64_ISA_F16): New.
8908         (TARGET_FP_F16INST): New.
8909         (TARGET_SIMD_F16INST): New.
8910         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
8911         ("fp"): Disabling "fp" also disables "fp16".
8912         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
8913         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
8914         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
8915         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
8917 2016-07-04  Jan Beulich  <jbeulich@suse.com>
8919         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
8921 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8923         PR target/71720
8924         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
8925         the insns, use an insn form that does not adjust the offset on
8926         little endian systems.
8928 2016-07-01  Jan Beulich  <jbeulich@suse.com>
8930         * varasm.c (get_variable_section): Validate initializer in
8931         named .bss-like sections.
8933 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8935         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
8936         Exchange the order of the second and third operands in the vpermr
8937         instruction tmeplate.
8939 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
8941         PR target/71698
8942         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
8943         Disallow TDmode values.
8945 2016-07-01  Alan Modra  <amodra@gmail.com>
8947         PR rtl-optimization/71709
8948         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
8949         being set, not referenced.
8951 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
8953         PR tree-optimization/70729
8954         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
8955         of loop since it can be not valid after transformation.
8957 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8959         * config/arm/arm.c (thumb_reload_in_hi): Delete.
8960         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
8962 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8964         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
8965         for NULL decl.
8967 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8969         PR target/71677
8970         * config/rs6000/constraints.md (wY constraint): New constraint to
8971         match the requirements for the LXSD and STXSD instructions.
8972         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
8973         predicate to match the requirements for the LXSD and STXSD
8974         instructions.
8975         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
8976         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
8977         to make sure that the bottom 2 bits of offset are 0, the address
8978         form is offsettable, and no updating is done in the address mode.
8979         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
8980         (movdi_internal32): Likewise
8981         (movdi_internal64): Likewise.
8983 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8985         PR tree-optimization/71707
8986         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
8987         strinfo even for ADDR_EXPR ptr.
8989 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8991         * config/rs6000/altivec.md (darn_32): Change the condition to
8992         TARGET_P9_MISC instead of TARGET_MODULO.
8993         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
8994         condition expression.
8995         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
8996         condition expression.
8997         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
8998         (DFP_TEST): New code iterator.
8999         (dfptstsfi_<code>_mode>): New define_expand.
9000         (*dfp_sgnfcnc_<mode>): New define_insn.
9001         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
9002         definition next to BU_P9_MISC_1 definition and change the MASK
9003         value to RS6000_BTM_P9_MISC.
9004         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
9005         (BU_P9_64BIT_MISC_0): Likewise.
9006         (BU_P9_DFP_MISC_0): New macro definition.
9007         (BU_P9_DFP_MISC_1): New macro definition.
9008         (BU_P9_DFP_MISC_2): New macro definition.
9009         (BU_P9_DFP_OVERLOAD_1): New macro definition.
9010         (BU_P9_DFP_OVERLOAD_2): New macro definition.
9011         (BU_P9_DFP_OVERLOAD_3): New macro definition.
9012         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
9013         (TSTSFI_LT_TD): Likewise.
9014         (TSTSFI_EQ_DD): Likewise.
9015         (TSTSFI_EQ_TD): Likewise.
9016         (TSTSFI_GT_DD): Likewise.
9017         (TSTSFI_GT_TD): Likewise.
9018         (TSTSFI_OV_DD): Likewise.
9019         (TSTSFI_OV_TD): Likewise.
9020         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
9021         (TSTSFI_LT_DD): Likewise.
9022         (TSTSFI_LT_TD): Likewise.
9023         (TSTSFI_EQ): Likewise.
9024         (TSTSFI_EQ_DD): Likewise.
9025         (TSTSFI_EQ_TD): Likewise.
9026         (TSTSFI_GT): Likewise.
9027         (TSTSFI_GT_DD): Likewise.
9028         (TSTSFI_GT_TD): Likewise.
9029         (TSTSFI_OV): Likewise.
9030         (TSTSFI_OV_DD): Likewise.
9031         (TSTSFI_OV_TD): Likewise.
9032         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
9033         overloaded test significance functions.
9034         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9035         OPTION_MASK_P9_MISC into the representation of this mask.
9036         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
9037         of this mask.
9038         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
9039         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
9040         non-zero.
9041         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
9042         argument is a 6-bit unsigned literal value if the icode argument
9043         represents a DFP test significance built-in call.
9044         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
9045         flag used independently and in combination with the
9046         RS6000_BTM_64BIT flag.
9047         (rs6000_opt_masks): Add entry for power9-misc command-line option.
9048         (rs6000_builtin_mask_names): Add entry for power9-misc
9049         command-line option.
9050         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
9051         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
9052         RS6000_BTM_P9_MISC macros.
9053         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
9054         option and change the description of the -mpower9-vector option to
9055         enable only vector instructions, removing its erroneously claimed
9056         support for scalar instructions.
9057         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
9058         the ISA 3.0 digital floating point test significance built-in
9059         functions.
9061 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
9063         * config/aarch64/aarch64.c (cortexa35_tunings):
9064         Enable AES fusion.  Use cortexa57_branch_cost.
9065         (cortexa53_tunings): Use cortexa57_branch_cost.
9066         (cortexa72_tunings): Use cortexa57_branch_cost.
9067         Use AUTOPREFETCHER_WEAK.
9068         (cortexa73_tunings): Use cortexa57_branch_cost.
9070 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9071             James Greenhalgh  <james.greenhalgh@arm.com>
9073         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
9074         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
9075         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
9076         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
9077         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
9078         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
9079         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
9080         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
9081         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
9082         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
9083         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
9084         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
9085         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
9086         New intrinsics.
9088 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
9089             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9091         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
9092         New define_insn.
9093         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
9095 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
9097         PR driver/71651
9098         * gcc.c (driver::build_option_suggestions): Pass "option" to
9099         add_misspelling_candidates.
9100         * opts-common.c (add_misspelling_candidates): Add "option" param;
9101         use it to avoid adding negated forms for options marked with
9102         RejectNegative.
9103         * opts.h (add_misspelling_candidates): Add "option" param.
9105 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
9107         PR middle-end/71693
9108         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
9109         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
9110         first when permuting bitwise operation with rotate.  Cast
9111         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
9113 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
9115         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
9116         for misspelled param names.
9117         * params.c: Include spellcheck.h.
9118         (find_param_fuzzy): New function.
9119         * params.h (find_param_fuzzy): New prototype.
9120         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9121         * spellcheck.h (struct edit_distance_traits<const char *>):
9122         ...here.
9124 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9126         * config/rs6000/predicates.md (const_0_to_7_operand): New
9127         predicate, recognize 0..7.
9128         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9129         support for doing extracts from V16QImode, V8HImode, V4SImode
9130         under ISA 3.0.
9131         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9132         vector extract support.
9133         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9134         for ISA 3.0 vector extract.
9135         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9136         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9137         extracts of a constant element number from small integer vectors
9138         on 64-bit ISA 3.0 systems.
9139         (vsx_extract_<mode>_di): Likewise.
9140         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9141         say when we can do ISA 3.0 vector extracts.
9142         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9143         registers, using the stxsiwx instruction.
9145 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
9147         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9148         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9149         qdf24xx_regmove_cost, qdf24xx_tunings): New.
9150         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9151         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9152         * config/arm/arm.c (arm_qdf24xx_tune): New.
9154 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
9156         * config/aarch64/aarch64.c (cortexa53_tunings):
9157         Increase loop alignment to 8.  Set function alignment to 16.
9158         (cortexa35_tunings): Likewise.
9159         (cortexa57_tunings): Increase loop alignment to 8.
9160         (cortexa72_tunings): Likewise.
9161         (cortexa73_tunings): Likewise.
9163 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9165         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9166         for arm_fp16_ok and arm_fp16_hw.
9167         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9168         arm_fp16_alternative.
9170 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9172         PR tree-optimization/71655
9173         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9174         types when swapping operands.
9176 2016-06-29  Martin Liska  <mliska@suse.cz>
9178         PR middle-end/71585
9179         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9180         * ipa-inline-transform.c (inline_call): Remove unnecessary call
9181         of build_optimization_node.
9183 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
9185         PR tree-optimization/70729
9186         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9187         independent in loops having positive safelen value.
9188         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9189         it may be not valid after vectorization.
9191 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
9193         PR tree-optimization/71625
9194         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
9195         is sorted by ascending list->offset.  If PTR is non-NULL and there is
9196         previous strinfo, call get_stridx_plus_constant.
9197         (get_stridx): Pass exp as second argument to get_addr_stridx.
9198         (addr_stridxptr): Add missing list = list->next, so that there can be
9199         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
9200         the list is sorted by ascending list->offset.
9201         (get_stridx_plus_constant): Adjust so that it can be also called with
9202         ADDR_EXPR instead of SSA_NAME as PTR.
9203         (handle_char_store): Pass NULL_TREE as second argument to
9204         get_addr_stridx.
9206 2016-06-29  Richard Biener  <rguenther@suse.de>
9208         PR rtl-optimization/68961
9209         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9211 2016-06-29  Richard Biener  <rguenther@suse.de>
9213         PR middle-end/71002
9214         * alias.c (component_uses_parent_alias_set_from): Handle
9215         type punning through union accesses by using the union alias set.
9216         * gimple.c (gimple_get_alias_set): Remove union type punning case.
9218 2016-07-29  Richard Biener  <rguenther@suse.de>
9220         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9221         precision not matching mode precision.
9223 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
9225         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9226         pa_output_arg_descriptor.
9227         (call_val_symref_64bit_post_reload): Likewise.
9228         (call_val_powf_64bit_post_reload): Likewise.
9229         (sibcall_internal_symref_64bit): Likewise.
9230         (sibcall_value_internal_symref_64bit): Likewise.
9232 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9234         PR middle-end/71626
9235         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9236         a constant, force its SUBREG_REG into memory or register instead
9237         of whole op1.
9239 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9241         PR target/58655
9242         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9243         * doc/invoke.texi (AVR Options): Document it.
9245 2016-06-28  Walter Lee  <walt@tilera.com>
9247         * config/tilegx/linux.h: Do not include arch/icache.h
9248         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9249         * config/tilepro/linux.h: Do not include arch/icache.h
9250         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9252 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
9254         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9255         for big-endian BIT_FIELD_REF.
9257 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
9259         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9260         ('size' attribute): Add '128'.
9261         Include power9.md.
9262         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9263         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9264         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9265         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9266         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9267         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9268         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9269         *trunc<mode>df2_odd): Set size attribute to '128'.
9270         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9271         * config/rs6000/power6.md (power6-fp): Include dfp type.
9272         * config/rs6000/power7.md (power7-fp): Likewise.
9273         * config/rs6000/power8.md (power8-fp): Likewise.
9274         * config/rs6000/power9.md: New file.
9275         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9276         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9277         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9278         htmsimple.
9279         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9280         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9281         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9282         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9283         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9284         dfp_dscri_<mode>): Change type attribute to dfp.
9285         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9286         attribute to vecsimple.
9287         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9288         and prefetch streams.
9289         (rs6000_option_override_internal): Remove temporary code setting
9290         tuning to power8.  Don't set rs6000_sched_groups for power9.
9291         (last_scheduled_insn): Change to rtx_insn *.
9292         (divide_cnt, vec_load_pendulum): New variables.
9293         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9294         (rs6000_issue_rate): Set issue rate for Power9.
9295         (is_power9_pairable_vec_type): New.
9296         (power9_sched_reorder2): New.
9297         (rs6000_sched_reorder2): Call new function for Power9 specific
9298         reordering.
9299         (insn_must_be_first_in_group): Remove Power9.
9300         (insn_must_be_last_in_group): Likewise.
9301         (force_new_group): Likewise.
9302         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9303         Initialize divide_cnt/vec_load_pendulum.
9304         (_rs6000_sched_context, rs6000_init_sched_context,
9305         rs6000_set_sched_context): Handle context save/restore of new
9306         variables.
9308 2016-06-28  Richard Biener  <rguenther@suse.de>
9310         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9311         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9312         COMPONENT_REF operand.
9313         (nonoverlapping_component_refs_p): Likewise.
9314         * stor-layout.c (start_bitfield_representative): Mark
9315         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9317 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9319         * Makefile.in: Don't cat ../stage_current if it does not exist.
9321         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9322         last argument is a bit-field.
9324         PR rtl-optimization/71673
9325         * internal-fn.c (expand_arith_overflow_result_store): Use
9326         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9327         expand_simple_binop.
9329         PR middle-end/66867
9330         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9331         expand_ifn_atomic_compare_exchange): New functions.
9332         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9333         * tree.h (build_call_expr_internal_loc): Rename to ...
9334         (build_call_expr_internal_loc_array): ... this.  Fix up type of
9335         last argument.
9336         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9337         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9338         ATOMIC_COMPARE_EXCHANGE result.
9339         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9340         * gimple-fold.h (optimize_atomic_compare_exchange_p,
9341         fold_builtin_atomic_compare_exchange): New prototypes.
9342         * gimple-fold.c (optimize_atomic_compare_exchange_p,
9343         fold_builtin_atomic_compare_exchange): New functions..
9344         * tree-ssa.c (execute_update_addresses_taken): If
9345         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9346         of call when finding addressable vars, and if such var becomes
9347         non-addressable, call fold_builtin_atomic_compare_exchange.
9349 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
9351         PR target/71670
9352         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9353         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9355 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
9357         * config/rs6000/rs6000.md ('type' attribute): Add
9358         veclogical,veccmpfx,vecexts,vecmove insn types.
9359         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9360         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9361         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9362         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9363         *nabs<mode>2_hw): Change type to vecmove.
9364         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9365         *boolcc<mode>3_internal, *eqv<mode>3_internal,
9366         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9367         *ieee_128bit_vsx_abs<mode>2_internal,
9368         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9369         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9370         *ieee128_mtvsrd_32bit): Change type to veclogical.
9371         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9372         *movdi_internal32, *movdi_internal64): Update insn types.
9373         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9374         vsx_extract_<mode>): Change type to veclogical.
9375         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9376         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9377         *vsx_sign_extend_si_v2di): Change type to vecexts.
9378         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9379         type to veclogical.
9380         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9381         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9382         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9383         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9384         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9385         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9386         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9387         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9388         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9389         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9390         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9391         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9392         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9393         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9394         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9395         (ppc7450-vecsimple): Add veclogical, vecmove.
9396         (ppc7450-veccmp): Add veccmpfx.
9397         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9398         vecmove.
9399         (ppc8540_vector_compare): Add veccmpfx.
9400         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9401         * config/rs6000/cell.md (cell-fp): Add fpsimple.
9402         (cell-vecsimple): Add veclogical, vecmove.
9403         (cell-veccmp): Add veccmpfx.
9404         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9405         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9406         veccmpfx.
9407         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9408         * config/rs6000/power4.md (power4-fp): Add fpsimple.
9409         (power4-vecsimple): Add veclogical, vecmove.
9410         (power4-veccmp): Add veccmpfx.
9411         * config/rs6000/power5.md (power5-fp): Add fpsimple.
9412         * config/rs6000/power6.md (power6-fp): Add fpsimple.
9413         (power6-vecsimple): Add veclogical, vecmove.
9414         (power6-veccmp): Add veccmpfx.
9415         * config/rs6000/power7.md (power7-fp): Add fpsimple.
9416         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9417         * config/rs6000/power8.md (power8-fp): Add fpsimple.
9418         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9419         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9420         * config/rs6000/titan.md (titan_fp): Add fpsimple.
9421         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9422         fpsimple.
9423         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9425 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
9427         PR target/71656
9428         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9429         OPTION_MASK_P9_DFORM_VECTOR.
9430         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9431         disable -mpower9-dform-vector when using reload.
9432         (quad_address_p): Remove 'gpr_p' argument and all associated code.
9433         New 'strict' argument.  Update all callers.  Add strict addressing
9434         support.
9435         (rs6000_legitimate_offset_address_p): Remove call to
9436         virtual_stack_registers_memory_p.
9437         (rs6000_legitimize_reload_address): Add quad address support.
9438         (rs6000_legitimate_address_p): Move call to quad_address_p above
9439         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
9440         to account for new strict usage.
9441         (rs6000_output_move_128bit): Adjust quad_address_p args to account
9442         for new strict usage.
9443         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
9445 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
9447         PR target/70902
9448         PR target/71453
9449         PR target/71555
9450         PR target/71596
9451         PR target/71657
9452         * config/i386/i386.c (ix86_spill_class): Disable condition to
9453         always return NO_REGS.
9455 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
9457         * predict.c: Include gimple-pretty-print.h
9458         (predicted_by_loop_heuristics_p): Check also
9459         PRED_LOOP_EXIT_WITH_RECURSION
9460         (predict_loops): Find self recursive calls and use special purpose
9461         predictors for them; dump log about decisions.
9462         (pass_profile::execute): Dump info about #of iterations.
9463         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
9464         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
9466 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
9468         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
9469         output_asm_insn calls and shorten long lines.  Output .CALL
9470         argument descriptor using pa_output_arg_descriptor.  Add various
9471         inline $$dyncall and other optimizations.
9472         (pa_attr_length_indirect_call): Adjust ordering and lengths.
9474 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
9476         PR tree-optimization/71643
9477         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
9478         EH preds.
9480         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
9481         leak a bitmap if dep_bb is NULL.
9483         PR tree-optimization/71631
9484         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
9485         to rewrite_expr_tree even if negate_result, move new_lhs var
9486         declaration and initialization earlier, for powi_result set afterwards
9487         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
9488         if new_lhs != lhs, and don't shadow gsi var.
9490 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
9492         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
9493         Add in_loop parameter.
9494         (predict_loops): Add loop guard heuristics.
9495         * predict.def (PRED_LOOP_GUARD): New heuristics.
9497 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
9499         * predict.c: Include ipa-utils.h
9500         (tree_bb_level_prediction): Predict recursive calls.
9501         (tree_estimate_probability_bb): Skip inexpensive calls for call
9502         predictor.
9503         * predict.def (PRED_RECURSIVE_CALL): New.
9505 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9507         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
9508         (BU_FLOAT128_1): Likewise.
9509         (FABSQ): Likewise.
9510         (COPYSIGNQ): Likewise.
9511         (RS6000_BUILTIN_NANQ): Likewise.
9512         (RS6000_BUILTIN_NANSQ): Likewise.
9513         (RS6000_BUILTIN_INFQ): Likewise.
9514         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
9515         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
9516         (TARGET_FOLD_BUILTIN): New #define.
9517         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
9518         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
9519         (rs6000_fold_builtin): New target hook implementation, handling
9520         folding of 128-bit NaNs and infinities.
9521         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
9522         entries are filled in to avoid problems during bootstrap
9523         self-test; define builtins for 128-bit NaNs and infinities.
9524         (rs6000_opt_mask): Add entry for float128.
9525         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
9526         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
9527         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
9528         (const_str_type_node): New #define.
9529         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
9530         to a define_expand that dispatches to either copysign<mode>3_soft
9531         or copysign<mode>3_hard.
9532         (copysign<mode>3_hard): Rename from copysign<mode>3.
9533         (copysign<mode>3_soft): New define_insn.
9534         * doc/extend.texi: Document new builtins.
9536 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9538         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
9539         PRIu64 instead of lu.
9541 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
9543         PR debug/71642
9544         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
9545         copy the type name.
9547 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9549         PR tree-optimization/71647
9550         * omp-low.c (lower_rec_input_clauses): Convert
9551         omp_clause_aligned_alignment (c) to size_type_node for the
9552         last argument of __builtin_assume_aligned.
9554 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9556         * configure.ac (calling ___tls_get_addr via GOT): New
9557         assembler/linker check.
9558         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
9559         assembler and linker supports calling ___tls_get_addr via GOT.
9560         Otherise, defined to 0.
9561         * config.in: Regenerated.
9562         * configure: Likewise.
9563         * config/i386/constraints.md (Yb): New constraint.
9564         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
9565         (REG_CLASS_NAMES): Likewise.
9566         (REG_CLASS_CONTENTS): Likewise.
9567         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
9568         the b constraint with the Yb constraint.  Call ___tls_get_addr
9569         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
9570         is 1.
9571         (*tls_local_dynamic_base_32_gnu): Likewise.
9572         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
9573         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
9574         (*tls_local_dynamic_base_64_<mode>): Likewise.
9576 2016-06-24  Martin Liska  <mliska@suse.cz>
9578         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
9579         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
9580         few functions.
9581         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
9582         argument to true if the expected number of iterations is
9583         loop-based.
9585 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
9587         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
9588         assemble for 32bit target.
9589         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
9590         and $ld_ix86_gld_32_opt to link for 32bit target.
9591         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
9592         * configure: Regenerate.
9594 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9596         * config/arm/arm.c (int_log2): Delete definition and prototype.
9597         (shift_op): Use exact_log2 instead of int_log2.
9598         (vfp3_const_double_for_fract_bits): Likewise.
9600 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9602         * internal-fn.c (expand_arith_set_overflow): New function.
9603         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
9604         Use it.
9605         (expand_arith_overflow_result_store): Likewise.  Handle precision
9606         smaller than mode precision.
9607         * tree-vrp.c (extract_range_basic): For imag part, handle
9608         properly signed 1-bit precision result.
9609         * doc/extend.texi (__builtin_add_overflow): Document that last
9610         argument can't be pointer to enumerated or boolean type.
9611         (__builtin_add_overflow_p): Document that last argument can't
9612         have enumerated or boolean type.
9614 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9615             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9617         * config/rs6000/predicates.md (splat_input_operand): Rework.
9618         Don't allow constants, since the insns that use this predicate
9619         don't support constants.  Constants are handled by other insns
9620         that are created via combine.  During and after register
9621         allocation, only allow indexed or indirect addresses, and not
9622         general addresses.  Only allow modes supported by the hardware.
9623         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
9624         comment.  Move check for using VSPLTIS<x> to a common location,
9625         instead of doing it in two different places.
9627 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
9629         * config/i386/driver-i386.c (host_detect_local_cpu): Set
9630         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
9631         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
9632         signature_CENTAUR_ebx.
9634 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9636         PR target/66232
9637         PR target/67400
9638         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
9639         (as_ix86_gas_32_opt): This.
9640         (ld_ix86_tls_ldm_opt): Renamed to ...
9641         (ld_ix86_gld_32_opt): This.
9642         (R_386_TLS_LDM reloc): Updated.
9643         (R_386_GOT32X reloc): New assembler/linker check.
9644         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
9645         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
9646         defined to 0.
9647         * config.in: Regenerated.
9648         * configure: Likewise.
9649         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
9650         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
9651         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
9652         if ix86_force_load_from_GOT_p returns true.
9653         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
9654         ix86_force_load_from_GOT_p returns true.
9655         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
9656         the external function address via the GOT slot.
9657         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
9658         HAVE_AS_IX86_GOT32X before returning false.
9659         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
9660         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
9662 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
9664         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
9666 2016-06-23  Andi Kleen  <ak@linux.intel.com>
9668         * Makefile.in: Regenerate.
9669         * doc/install.texi: Document autoprofiledbootstrap.
9671 2016-06-23  Andi Kleen  <ak@linux.intel.com>
9673         * config/i386/gcc-auto-profile: New file.
9675 2016-06-23  Martin Liska  <mliska@suse.cz>
9677         PR middle-end/71619
9678         * predict.c (predict_loops): Revert the hunk that was removed
9679         in r237103.
9681 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
9683         * config.gcc: Add support for arm*-*-phoenix* targets.
9684         * config/arm/t-phoenix: New.
9685         * config/phoenix.h: New.
9687 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
9688             H.J. Lu  <hongjiu.lu@intel.com>
9690         PR target/67400
9691         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
9692         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
9693         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
9694         ix86_force_load_from_GOT_p returns true.
9695         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
9696         ix86_force_load_from_GOT_p returns true.
9697         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
9698         ix86_force_load_from_GOT_p returns true.
9699         (ix86_expand_move): Load the external function address via the
9700         GOT slot if ix86_force_load_from_GOT_p returns true.
9701         * config/i386/predicates.md (x86_64_immediate_operand): Return
9702         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
9703         (x86_64_zext_immediate_operand): Ditto.
9705 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
9707         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
9709 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
9711         PR c/70339
9712         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
9713         * diagnostic.c (pedwarn_at_rich_loc): New function.
9714         * spellcheck.h (best_match::best_match): Add a
9715         "best_distance_so_far" optional parameter.
9716         (best_match::set_best_so_far): New method.
9717         (best_match::get_best_distance): New accessor.
9718         (best_match::get_best_candidate_length): New accessor.
9720 2016-06-22  Nick Clifton  <nickc@redhat.com>
9722         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
9723         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
9724         modes are accepted as well.
9725         (ucompare_loc_descriptor): Likewise.
9726         (minmax_loc_descriptor): Likewise.
9727         (clz_loc_descriptor): Likewise.
9728         (popcount_loc_descriptor): Likewise.
9729         (bswap_loc_descriptor): Likewise.
9730         (rotate_loc_descriptor): Likewise.
9731         (mem_loc_descriptor): Likewise.
9732         (loc_descriptor): Likewise.
9734 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
9736         * common.opt (fdiagnostics-parseable-fixits): New option.
9737         * diagnostic.c: Include "selftest.h".
9738         (print_escaped_string): New function.
9739         (print_parseable_fixits): New function.
9740         (diagnostic_report_diagnostic): Call print_parseable_fixits.
9741         (selftest::assert_print_escaped_string): New function.
9742         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
9743         (selftest::test_print_escaped_string): New function.
9744         (selftest::test_print_parseable_fixits_none): New function.
9745         (selftest::test_print_parseable_fixits_insert): New function.
9746         (selftest::test_print_parseable_fixits_remove): New function.
9747         (selftest::test_print_parseable_fixits_replace): New function.
9748         (selftest::diagnostic_c_tests): New function.
9749         * diagnostic.h (struct diagnostic_context): Add field
9750         "parseable_fixits_p".
9751         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9752         -fdiagnostics-parseable-fixits.
9753         (-fdiagnostics-parseable-fixits): New option.
9754         * opts.c (common_handle_option): Handle
9755         -fdiagnostics-parseable-fixits.
9756         * selftest-run-tests.c (selftest::run_tests): Call
9757         selftest::diagnostic_c_tests.
9758         * selftest.h (selftest::diagnostic_c_tests): New prototype.
9760 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
9762         PR tree-optimization/71488
9763         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
9764         comparison of boolean vectors.
9765         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
9766         of boolean vectors using bitwise operations.
9768 2016-06-22  Andreas Schwab  <schwab@suse.de>
9770         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
9771         Remove declaration.
9773 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
9775         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
9777 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9779         * config/i386/i386.c (print_reg): Emit an error message on attempt to
9780         print FLAGS_REG.
9782 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9784         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
9785         * config/arm/arm-cores.def (cortex-a73): New entry.
9786         (cortex-a73.cortex-a35): Likewise.
9787         (cortex-a73.cortex-a53): Likewise.
9788         * config/arm/arm-tables.opt: Regenerate.
9789         * config/arm/arm-tune.md: Likewise.
9790         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
9791         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9792         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
9793         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9794         * doc/invoke.texi (ARM Options): Document cortex-a73,
9795         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
9797 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9799         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
9800         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
9801         (cortex-a73.cortex-a35): Likewise.
9802         (cortex-a73.cortex-a53): Likewise.
9803         * config/aarch64/aarch64-tune.md: Regenerate.
9804         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
9805         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
9806         -mcpu and -mtune.
9808 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9810         * configure.ac (gcc_cv_as_compress_debug): Remove
9811         --compress-debug-sections as extra as switch.
9812         Handle gas --compress-debug-sections=type.
9813         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
9814         Handle gld --compress-debug-sections=type.
9815         * configure: Regenerate.
9817 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9819         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
9821 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
9823         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
9824         (do_rewrite): likewise.
9826 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9828         * common/config/mep/mep-common.c: Remove.
9829         * config.gcc: Remove mep-* support.
9830         * config/mep/constraints.md: Remove.
9831         * config/mep/default.h: Remove.
9832         * config/mep/intrinsics.h: Remove.
9833         * config/mep/intrinsics.md: Remove.
9834         * config/mep/ivc2-template.h: Remove.
9835         * config/mep/mep-c5.cpu: Remove.
9836         * config/mep/mep-core.cpu: Remove.
9837         * config/mep/mep-default.cpu: Remove.
9838         * config/mep/mep-ext-cop.cpu: Remove.
9839         * config/mep/mep-intrin.h: Remove.
9840         * config/mep/mep-ivc2.cpu: Remove.
9841         * config/mep/mep-pragma.c: Remove.
9842         * config/mep/mep-protos.h: Remove.
9843         * config/mep/mep.c: Remove.
9844         * config/mep/mep.cpu: Remove.
9845         * config/mep/mep.h: Remove.
9846         * config/mep/mep.md: Remove.
9847         * config/mep/mep.opt: Remove.
9848         * config/mep/predicates.md: Remove.
9849         * config/mep/t-mep: Remove.
9850         * doc/install.texi: Remove mep-* documentation.
9851         * doc/md.texi: Likewise.
9853 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9855         * config.gcc: Remove support for avr-rtems.
9856         * config/avr/gen-avr-mmcu-specs.c: Likewise.
9857         * config/avr/rtems.h: Remove.
9858         * config/avr/t-rtems: Remove.
9860 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9862         * config.gcc: Remove m32r-rtems support.
9863         * config/m32r/rtems.h: Remove.
9865 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9867         * config.gcc: Remove h8300-rtems support.
9868         * config/h8300/rtems.h: Remove.
9869         * config/h8300/t-rtems: Remove.
9871 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9873         * config.gcc: Remove support for knetbsd.
9874         * configure.ac: Likewise.
9875         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
9876         * config/knetbsd-gnu.h: Remove.
9877         * configure: Regenerate.
9879 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9881         * config.gcc: Remove support for openbsd 2 and 3.
9882         * config/openbsd-oldgas.h: Remove.
9884 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9886         * config.gcc: Remove interix support.
9887         * config/i386/i386-interix.h: Remove.
9888         * config/i386/interix.opt: Remove.
9889         * config/i386/t-interix: Remove.
9890         * configure: Regenerate.
9891         * configure.ac: Remove interix support.
9892         * doc/install.texi: Remove interix documentation.
9894 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9896         * config/rs6000/rs6000.h: Add conditional preprocessing directives
9897         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
9898         not defined.
9900 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9902         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
9903         they are both PLACEHOLDER_EXPRs.
9905 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9907         * stor-layout.c (layout_type): Move setting complex MODE to
9908         layout_type, instead of setting it ahead of time by the caller.
9909         * tree.c (build_complex_type): Likewise.
9911 2016-06-21  Martin Liska  <mliska@suse.cz>
9913         * predict.c (force_edge_cold): Replace imposisble with
9914         impossible.
9916 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9918         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
9919         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
9921 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9923         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
9925 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9926             Ilya Enkovich  <ilya.enkovich@intel.com>
9928         PR target/71549
9929         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9930         New member function to convert V1TImode register to SUBREG
9931         TImode in debug insn.
9932         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
9933         after changing register mode to V1TImode.
9935 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
9937         * config/aarch64/aarch64-cores.def (vulcan): New core.
9938         * config/aarch64/aarch64-tune.md: Regenerate.
9939         * doc/invoke.texi: Document vulcan as an available option.
9941 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9943         * cse.c (canon_asm_operands): New function extracted from...
9944         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
9945         either standalone or member of a PARALLEL.
9947 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9949         PR target/30417
9950         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
9951         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
9952         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
9954 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9956         PR target/71103
9957         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
9958         constant addresses if can_create_pseudo_p.
9960 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
9962         PR tree-optimization/71588
9963         * tree-ssa-strlen.c (valid_builtin_call): New function.
9964         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
9965         it.
9967 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9969         PR middle-end/71581
9970         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
9971         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
9972         for conversion of scalar user var to complex type and use the
9973         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
9974         punt.
9976         PR rtl-optimization/71591
9977         * toplev.c (toplev::run_self_tests): If no_backend, complain and
9978         don't run any tests.
9980 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
9982         PR target/71571
9983         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
9984         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
9985         space for PIC with non-v32 and the common non-PIC "jump".
9987 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9989         PR target/71559
9990         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
9991         returned values and add UN*/LTGT/*ORDERED cases with values matching
9992         D operand modifier on vcmp for AVX.
9994 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9996         * config/aarch64/aarch64.opt
9997         (mpc-relative-literal-loads): Rename internal option name.
9998         * config/aarch64/aarch64.c
9999         (aarch64_nopcrelative_literal_loads): Rename to
10000         aarch64_pcrelative_literal_loads.
10001         (aarch64_expand_mov_immediate): Likewise.
10002         (aarch64_secondary_reload): Likewise.
10003         (aarch64_can_use_per_function_literal_pools_p): Likewise.
10004         (aarch64_override_options_after_change_1): Rename and simplify logic.
10005         (aarch64_classify_symbol): Merge large model checks into switch,
10006         remove pc-relative load check.
10008 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10010         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
10011         costs relative to the cost of a register move.
10013 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10015         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
10016         (vcvt_n_f64_u64): Likewise.
10017         (vcvt_n_s64_f64): Likewise.
10018         (vcvt_n_u64_f64): Likewise.
10019         (vcvt_f64_s64): Likewise.
10020         (vrecpe_f64): Likewise.
10021         (vcvt_f64_u64): Likewise.
10022         (vrecps_f64): Likewise.
10024 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10026         * config/aarch64/aarch64.md
10027         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
10028         iterators.
10029         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
10030         attributes.
10031         * config/aarch64/aarch64-builtins.c
10032         (aarch64_types_binop_uss_qualifiers): Delete.
10033         (TYPES_BINOP_USS): Likewise.
10034         (aarch64_types_binop_sus_qualifiers): Likewise.
10035         (TYPES_BINOP_SUS): Likewise.
10036         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
10037         (TYPES_FCVTIMM_SUS): Likewise.
10038         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
10039         rather than BINOP.
10040         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
10041         (fcvtzs): Use SHIFTIMM rather than BINOP.
10042         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
10044 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
10046         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
10047         costs relative to the cost of a register move.
10049 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10051         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
10052         Allow scalar/single vector modes to be tieable.
10054 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
10056         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
10058 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10060         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
10061         "alignement".
10062         * tree.h (TYPE_ALIGN): Likewise.
10064 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
10066         PR target/71103
10067         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
10069 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
10071         * config/avr/avr.c (avr_print_operand): Fix "format not a string
10072         literal" build warnings.
10073         (avr_print_operand_address): Dito.
10075 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
10077         PR target/71375
10078         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
10079         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
10081 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
10083         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
10085 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
10087         PR bootstrap/71435
10088         * reload1.c (reload): Pass 0 to finish_spills when called because
10089         update_eliminables_and_spill returns true and remove did_spill.
10090         (finish_spills): Adjust comment and document GLOBAL parameter.
10092 2016-06-17  DJ Delorie  <dj@redhat.com>
10094         PR target/71338
10095         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
10096         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
10097         (umulqihi3_virt): Likewise.
10098         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
10099         (umulqihi3_real): Likewise.
10101 2016-06-17  Martin Liska  <mliska@suse.cz>
10103         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
10105 2016-06-17  Martin Liska  <mliska@suse.cz>
10107         * predict.def: PRED_LOOP_EXIT from 92 to 85.
10109 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
10111         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
10112         __FAST_MATH__.
10113         (vaddq_f32): Likewise.
10114         (vmul_f32): Likewise.
10115         (vmulq_f32): Likewise.
10116         (vsub_f32): Likewise.
10117         (vsubq_f32): Likewise.
10119 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10121         PR tree-optimization/71347
10122         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10123         cost for all uses in group.
10125 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10127         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10128         insert gimple seq if it's not empty.
10130 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10132         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10133         member OFFSET.
10134         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10135         rather than OFFSET.
10136         (comp_dr_with_seg_len_pair): Ditto.
10137         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
10138         struct dr_with_seg_len_pair against DR_OFFSET.
10139         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10140         DR_OFFSET directly.
10142 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10144         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10146 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
10148         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10149         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10150         (pa_output_millicode_call): Likewise.
10151         (pa_output_call): Likewise.
10152         (pa_output_indirect_call): Likewise.
10153         (pa_asm_output_mi_thunk): Likewise.
10155 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10157         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10159 2016-06-16  Martin Liska  <mliska@suse.cz>
10161         * predict.c (combine_predictions_for_insn): When we find a first
10162         match predictor, we should consider just predictors with
10163         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
10164         DS theory predictor.
10165         (combine_predictions_for_bb): Likewise.
10167 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10169         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10170         with base of reference to struct.
10172 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10174         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10176 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10178         PR target/71151
10179         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10180         progmem_swtable_section.
10181         (progmem_swtable_section): Remove.
10182         (avr_asm_function_rodata_section): Remove.
10183         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10184         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10186 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
10188         * config/i386/driver-i386.c (host_detect_local_cpu): Set
10189         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10190         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10191         signature_CENTAUR_ebx.
10192         * config/i386/i386.c (ix86_option_override_internal): Add
10193         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10194         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10195         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10197 2016-06-16  Martin Liska  <mliska@suse.cz>
10199         * predict.def: Add fortran loop preheader predictor.
10200         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10201         fold IFN_BUILTIN_EXPECT with a known constant argument.
10203 2016-06-16  Martin Liska  <mliska@suse.cz>
10205         * predict.def: Add 'Fortran' to display text of all
10206         PRED_FORTRAN_* predictors.
10208 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10210         PR target/71242
10211         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10212         [IA64_BUILTIN_NANSQ]: Ditto.
10213         (ia64_fold_builtin): New function.
10214         (TARGET_FOLD_BUILTIN): New define.
10215         (ia64_init_builtins) Declare const_string_type node.
10216         Add __builtin_nanq and __builtin_nansq builtin functions.
10217         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10219 2016-06-16  Nick Clifton  <nickc@redhat.com>
10221         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10222         MSP430_HWMULT_ prefix to enum values.
10223         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10224         * config/msp430/msp430.c: Update use of enum values.
10225         * config/msp430/msp430.md: Likewise.
10226         * config/msp430/msp430.opt: Likewise.
10228 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
10230         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10231         of comparsions in the last iteration.
10233 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10234             Joern Rennecke  <joern.rennecke@embecosm.com>
10236         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10237         addresses.
10238         (arc_needs_pcl_p): Add GOTOFFPC.
10239         (arc_legitimate_pic_addr_p): Likewise.
10240         (arc_output_pic_addr_const): Likewise.
10241         (arc_legitimize_pic_address): Generate a pc-relative address using
10242         GOTOFFPC.
10243         (arc_output_libcall): Use @pcl syntax.
10244         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10245         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10246         (*movsi_insn): Use @pcl syntax.
10247         (doloop_begin_i): Likewise.
10249 2016-06-16  Martin Liska  <mliska@suse.cz>
10251         * predict.def: Define a new predictor.
10253 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10255         * config/arc/arc.opt (mtp-regno): Update text.
10257 2016-06-16  Renlin Li  <renlin.li@arm.com>
10259         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10261 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10263         PR target/71554
10264         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10265         (setcc + and peephole2): Likewise.
10267         PR rtl-optimization/71532
10268         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10269         memory slots.
10271 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10273         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10274         DImode constants with XXSPLTIB in vector registers.
10275         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10276         vsx_extract_<mode>_internal{1,2} into a single insn that handles
10277         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10278         extraction of the element at the top of the register as a scalar
10279         value.
10280         (vsx_extract_<mode>_internal1): Likewise.
10281         (vsx_extract_<mode>_internal2): Likewise.
10282         * config/rs6000/constraints.md (wi constraint): Remove a comment
10283         about DImode not being allowed in Altivec registers.
10284         (wB constraint): New constraint for constants that can be
10285         generated in Altivec registers with VSPLTISW/VUPKHSW.
10286         * config/rs6000/predicates.md (xxspltib_constant_split): Update
10287         comments.
10288         (xxspltib_constant_nosplit): Likewise.
10289         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10290         support for -mupper-regs-di to enable DImode to go into Altivec
10291         registers.
10292         (POWERPC_MASKS): Likewise.
10293         (power7 cpu): Likewise.
10294         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10295         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10296         for DImode being allowed in Altivec registers.  Update wi/wj
10297         constraints.  Set scalar_in_vmx_p flag.
10298         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10299         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
10300         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10301         (rs6000_opt_masks): Add -mupper-regs-di.
10302         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10303         direct move to use wi and not wj.
10304         (lfiwzx): Likewise.
10305         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10306         alternative.
10307         (floatunssi<mode>2_lfiwzx_mem): Likewise.
10308         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10309         any VSX register, instead of just Altivec registers, to allow
10310         either operand to be an Altivec register or both.
10311         (fixuns_trunc<mode>di2_fctiduz): Likewise.
10312         (movdi_internal32): Add support for -mupper-regs-di.  Add support
10313         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
10314         the alternatives and attributes to be lined up to be easier to
10315         read.
10316         (movdi_internal64): Likewise.
10317         (64-bit DImode splitters): Change predicates to only split loading
10318         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
10319         load constants in ISA 3.0 or ISA 2.07 respectively.
10320         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10321         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
10322         mention -mcpu=power9 sets these options.
10323         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10324         wB constraint.
10326 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10328         PR target/67353
10329         * config/avr/avr.c (avr_set_current_function): Warn misspelled
10330         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10331         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10332         by default to warn misspelled interrupt/ signal handler.
10333         * doc/invoke.texi (AVR Options): Document it. Update description
10334         for -nodevicelib option.
10336 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10338         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10339         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
10340         (aarch64_<sur>shll2_n<mode>): Likewise.
10342 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
10344         PR middle-end/71529
10345         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10346         DECL_CONTEXT for copied arguments.
10348 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10350         PR tree-optimization/71483
10351         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10352         for slp
10354 2016-06-15  Martin Liska  <mliska@suse.cz>
10356         * predict.c (tree_predict_by_opcode): Call predict_edge_def
10357         instead of predict_edge w/o a probability.
10359 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10361         PR tree-optimization/71439
10362         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10363         live PHIs.
10365 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10367         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10368         register subregs in SET_SRC.
10370 2016-06-15  Richard Biener  <rguenther@suse.de>
10372         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10373         store restrictions.
10375 2016-06-15  Richard Biener  <rguenther@suse.de>
10377         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10378         not consider dependences between accesses that belong to the
10379         same group.
10380         (vect_analyze_data_ref_dependences): Do not analyze read-read
10381         or self-dependences.
10383 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10385         * spellcheck-tree.c: Include spellcheck-tree.h rather than
10386         spellcheck.h.
10387         (find_closest_identifier): Reimplement in terms of
10388         best_match<tree,tree>.
10389         * spellcheck-tree.h: New file.
10390         * spellcheck.c (struct edit_distance_traits<const char *>): New
10391         struct.
10392         (find_closest_string): Reimplement in terms of
10393         best_match<const char *, const char *>.
10394         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10395         overload to spellcheck-tree.h.
10396         (find_closest_identifier): Likewise.
10397         (struct edit_distance_traits<T>): New template.
10398         (class best_match): New class.
10400 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10402         * selftest-run-tests.c (selftest::run_tests): Call
10403         selftest::spellcheck_tree_c_tests.
10404         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10405         * spellcheck-tree.c: Include selftest.h and stringpool.h.
10406         (selftest::test_find_closest_identifier): New function.
10407         (selftest::spellcheck_tree_c_tests): New function.
10408         * spellcheck.c (selftest::test_find_closest_string): Verify that
10409         the order of the vec does not affect the results for this case.
10410         (selftest::test_data): New array.
10411         (selftest::test_metric_conditions): New function.
10412         (selftest::spellcheck_c_tests): Add a test of case-comparison.
10413         Call selftest::test_metric_conditions.
10415 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10417         * config/rs6000/rs6000-builtin.def (commentary): Typo.
10418         (BU_P9_MISC_1): Likewise.
10419         (BU_P9_64BIT_MISC_0): Likewise.
10420         (BU_P9_MISC_0): Likewise.
10422 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10424         * gcc-rich-location.c
10425         (gcc_rich_location::add_fixit_misspelled_id): New method.
10426         * gcc-rich-location.h
10427         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10429 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
10431         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10432         FreeBSD 11 and above.
10434 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
10436         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10438 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10440         * expmed.h: Close parenthesis in "at your option" in copyright
10441         boilerplate.
10442         * lower-subreg.h: Likewise.
10444 2016-06-14  Richard Biener  <rguenther@suse.de>
10446         PR middle-end/71526
10447         * genmatch.c (expr::gen_transform): Use in_type for comparisons
10448         if available.
10450 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10452         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
10453         New function.
10454         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
10455         mask+shift version.
10456         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
10457         New prototype.
10458         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
10459         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
10461 2016-06-14  Richard Biener  <rguenther@suse.de>
10463         PR tree-optimization/71522
10464         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
10465         copying into float copying.
10467 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
10469         PR tree-optimization/71520
10470         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
10471         (replace_block_by): Move user labels from bb1 to bb2.
10473 2016-06-14  Richard Biener  <rguenther@suse.de>
10475         PR middle-end/71310
10476         PR bootstrap/71510
10477         * expr.h (get_bit_range): Declare.
10478         * expr.c (get_bit_range): Export.
10479         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
10480         word_mode again to constrain the bitfield access.
10482 2016-06-14  Richard Biener  <rguenther@suse.de>
10484         PR tree-optimization/71521
10485         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
10486         division int_const_binop against zero divisor.
10488 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10490         * config/i386/i386.md (signbittf2): New expander.
10491         * config/i386/sse.md (ptesttf2): New insn pattern.
10493 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10495         PR bootstrap/71481
10496         * input.c (selftest::test_reading_source_line): Avoid reading from
10497         __FILE__ by creating a tempfile with known content and reading
10498         from that instead.
10500 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10502         * pretty-print.c (assert_pp_format_colored): Skip the test if
10503         GCC_COLORS is set.
10504         (test_pp_format): Remove comment about GCC_COLORS.
10506 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10508         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
10509         * pretty-print.c (assert_pp_format_va): Add location param and use
10510         it with ASSERT_STREQ_AT.
10511         (assert_pp_format): Add location param and pass it to
10512         assert_pp_format_va.
10513         (assert_pp_format_colored): Likewise.
10514         (ASSERT_PP_FORMAT_1): New.
10515         (ASSERT_PP_FORMAT_2): New.
10516         (ASSERT_PP_FORMAT_3): New.
10517         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
10518         explicitly, or implicitly via the above macros.
10519         * selftest.c (selftest::pass): Use a selftest::location rather
10520         than file and line.
10521         (selftest::fail): Likewise.  Print the function name.
10522         (selftest::fail_formatted): Likewise.
10523         (selftest::assert_streq): Use a selftest::location rather than
10524         file and line.
10525         * selftest.h (selftest::location): New struct.
10526         (SELFTEST_LOCATION): New macro.
10527         (selftest::pass): Accept a const location & rather than file
10528         and line.
10529         (selftest::fail): Likewise.
10530         (selftest::fail_formatted): Likewise.
10531         (selftest::assert_streq): Likewise.
10532         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
10533         (ASSERT_FALSE): Likewise.
10534         (ASSERT_EQ): Likewise.
10535         (ASSERT_NE): Likewise.
10536         (ASSERT_STREQ): Likewise.
10537         (ASSERT_PRED1): Likewise.
10538         (ASSERT_STREQ_AT): New macro.
10540 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10542         * selftest.c (selftest::fail_formatted): New function.
10543         (selftest::assert_streq): New function.
10544         * selftest.h (selftests::fail_formatted): New decl.
10545         (selftest::assert_streq): New decl.
10546         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
10548 2016-06-13  Jeff Law  <law@redhat.com>
10550         PR tree-optimization/71403
10551         * tree-ssa-threadbackward.c
10552         (convert_and_register_jump_thread_path): No longer accept reference
10553         to path.  Do not pop items off the path anymore.
10554         (fsm_find_control_statement_thread_paths): Do not allow threading
10555         to a deeper loop nest.  Pop the last item off the path here rather
10556         than in convert_and_register_jump_thread_path.
10558 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10559             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
10561         [AArch64] Emit division using the Newton series
10563         * config/aarch64/aarch64-protos.h
10564         (cpu_approx_modes): Add new member "division".
10565         (aarch64_emit_approx_div): Declare new function.
10566         * config/aarch64/aarch64.c
10567         (generic_approx_modes): New member "division".
10568         (exynosm1_approx_modes): Likewise.
10569         (xgene1_approx_modes): Likewise.
10570         (aarch64_emit_approx_div): Define new function.
10571         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
10572         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
10573         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
10574         * doc/invoke.texi (-mlow-precision-div): Describe new option.
10576 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10577             Wilco Dijkstra  <wilco.dijkstra@arm.com>
10579         [AArch64] Emit square root using the Newton series
10581         * config/aarch64/aarch64-protos.h
10582         (aarch64_emit_approx_rsqrt): Replace with new function
10583         "aarch64_emit_approx_sqrt".
10584         (cpu_approx_modes): New member "sqrt".
10585         * config/aarch64/aarch64.c
10586         (generic_approx_modes): New member "sqrt".
10587         (exynosm1_approx_modes): Likewise.
10588         (xgene1_approx_modes): Likewise.
10589         (aarch64_emit_approx_rsqrt): Replace with new function
10590         "aarch64_emit_approx_sqrt".
10591         (aarch64_override_options_after_change_1): Handle new option.
10592         * config/aarch64/aarch64-simd.md
10593         (rsqrt<mode>2): Use new function instead.
10594         (sqrt<mode>2): New expansion and insn definitions.
10595         * config/aarch64/aarch64.md: Likewise.
10596         * config/aarch64/aarch64.opt
10597         (mlow-precision-sqrt): Add new option description.
10598         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
10600 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10602         [AArch64] Add more choices for the reciprocal square root approximation
10604         Allow a target to prefer such operation depending on the operation mode.
10606         * config/aarch64/aarch64-protos.h
10607         (AARCH64_APPROX_MODE): New macro.
10608         (AARCH64_APPROX_{NONE,ALL}): Likewise.
10609         (cpu_approx_modes): New structure.
10610         (tune_params): New member "approx_modes".
10611         * config/aarch64/aarch64-tuning-flags.def
10612         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
10613         * config/aarch64/aarch64.c
10614         (generic_approx_modes): New core "cpu_approx_modes" structure.
10615         (exynosm1_approx_modes): Likewise.
10616         (xgene1_approx_modes): Likewise.
10617         (generic_tunings): New member "approx_modes".
10618         (cortexa35_tunings): Likewise.
10619         (cortexa53_tunings): Likewise.
10620         (cortexa57_tunings): Likewise.
10621         (cortexa72_tunings): Likewise.
10622         (exynosm1_tunings): Likewise.
10623         (thunderx_tunings): Likewise.
10624         (xgene1_tunings): Likewise.
10625         (use_rsqrt_p): New argument for the mode and use new member from
10626         "tune_params".
10627         (aarch64_builtin_reciprocal): Devise mode from builtin.
10628         (aarch64_optab_supported_p): New argument for the mode.
10629         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
10631 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10633         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
10634         RS6000_BTM_MODULO flag into the set of flags that are considered
10635         to be part of the common configuration.
10637 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10639         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
10640         difference unsigned.
10641         (vec_absdb): New macro for vector absolute difference unsigned
10642         byte.
10643         (vec_absdh): New macro for vector absolute difference unsigned
10644         half-word.
10645         (vec_absdw): New macro for vector absolute difference unsigned word.
10646         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
10647         (vadu<mode>3): New insn.
10648         (*p9_vadu<mode>3): New insn.
10649         * config/rs6000/rs6000-builtin.def (vadub): New built-in
10650         definition.
10651         (vaduh): New built-in definition.
10652         (vaduw): New built-in definition.
10653         (vadu): New overloaded built-in definition.
10654         (vadub): New overloaded built-in definition.
10655         (vaduh): New overloaded built-in definition.
10656         (vaduw): New overloaded built-in definition.
10657         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10658         overloaded vector absolute difference unsigned functions.
10659         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10660         the ISA 3.0 vector absolute difference unsigned built-in functions.
10662 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10664         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
10665         update shared_lookup_references only once after changing operands.
10667 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
10669         PR middle-end/71373
10670         * tree-nested.c (convert_nonlocal_omp_clauses)
10671         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
10673         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
10674         * tree.def (CASE_LABEL_EXPR): Likewise.
10676 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10678         PR bootstrap/71481
10679         * input.c (test_builtins): Fix an assertion.
10681 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10683         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
10684         (paritysi2): Ditto.
10685         (isinfxf2): Ditto.
10686         (isinf<mode>2): Ditto.
10688 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10690         * ggc-tests.c (test_finalization): Only test need_finalization_p
10691         for GCC_VERSION >= 4003.
10693 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10695         * config/s390/vecintrin.h: Fix file description in comment.
10697 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10699         * config/s390/s390-builtin-types.def: Change builtin type naming
10700         scheme to match builtin-types.def.
10702 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
10704         * fold-const.c (optimize_minmax_comparison): Remove.
10705         (fold_comparison): Remove call to the above.
10706         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
10707         New transformations.
10709 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
10711         PR tree-optimization/71416
10712         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
10713         multiple entries
10715 2016-06-13  Martin Liska  <mliska@suse.cz>
10717         * predict.c (enum predictor_reason): Prefix enum with REASON_.
10718         (combine_predictions_for_insn): Likewise.
10719         (prune_predictions_for_bb): Likewise.
10720         (combine_predictions_for_bb): Likewise.
10722 2016-06-13  Richard Biener  <rguenther@suse.de>
10724         PR tree-optimization/71505
10725         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
10726         assert match comment.
10728 2016-06-13  Marek Polacek  <polacek@redhat.com>
10730         PR middle-end/71476
10731         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
10732         gimplify_switch_expr.
10733         (warn_switch_unreachable_r): New function.
10735 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10737         PR target/71379
10738         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
10739         one.
10741 2016-06-13  Richard Biener  <rguenther@suse.de>
10743         PR middle-end/64516
10744         * fold-const.c (fold_unary_loc): Preserve alignment when
10745         folding a VIEW_CONVERT_EXPR into a MEM_REF.
10747 2016-06-13  Martin Liska  <mliska@suse.cz>
10749         PR sanitizer/71458
10750         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
10751         w/ -fsanitize=bounds.
10753 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
10755         * config/i386/i386.c (ix86_init_builtins): Calculate
10756         FLOAT128_FTYPE_CONST_STRING function type only once.
10757         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
10758         built-in functions are available for x86-32 and x86-64 targets.
10760 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
10762         PR target/71241
10763         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
10764         New primitive type.
10765         (FLOAT128_FTYPE_CONST_STRING): New function type.
10766         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
10767         [IX86_BUILTIN_NANSQ]: Ditto.
10768         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10769         (ix86_init_builtin_types): Declare const_string_type_node.
10770         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
10771         builtin functions.
10772         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10773         * doc/extend.texi (x86 Built-in Functions): Document
10774         __builtin_nanq and __builtin_nansq.
10776 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
10778         PR target/71061
10779         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
10780         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
10781         length for pop patterns.
10782         (arm_attr_length_push_multi): Update comments.
10783         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
10784         attribute.
10785         (*pop_multiple_with_writeback_and_return): Likewise.
10786         (*pop_multiple_with_return): Likewise.
10788 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
10790         PR middle-end/71310
10791         * fold-const.c (optimize_bit_field_compare): Don't try to use
10792         word_mode unconditionally for reading the bit field, look at
10793         DECL_BIT_FIELD_REPRESENTATIVE instead.
10795 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
10797         PR middle-end/71478
10798         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
10799         vector integer type.
10801 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
10803         PR middle-end/71494
10804         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
10805         without LABEL_DECL, set *handled_ops_p to false instead of true.
10807 2016-06-10  Martin Sebor  <msebor@redhat.com>
10809         PR c/71392
10810         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
10811         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
10812         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
10813         them.
10814         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
10815         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
10816         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
10817         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
10818         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
10819         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
10820         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
10821         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
10823 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10825         * config/arm/arm.h (pool_vector_label,
10826         return_used_this_function): Remove.
10828 2016-06-10  Jeff Law  <law@redhat.com>
10830         PR tree-optimization/71335
10831         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
10832         zero length paths here.
10833         (convert_and_register_jump_thread_path): Remove hacks related to
10834         duplicated blocks in the jump thread path.
10835         (fsm_find_control_statement_thread_paths): Avoid putting the same
10836         block on the thread path twice, but ensure the thread path is
10837         unchanged from the caller's point of view.
10839 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
10841         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
10842         * predict.def (PRED_LOOP_BRANCH): Remove.
10844 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
10846         * Makefile.in (OBJS): Add ggc-tests.o.
10847         (GTFILES): Add ggc-tests.c.
10848         * ggc-tests.c: New file.
10849         * selftest-run-tests.c (selftest::run_tests): Call
10850         selftest::ggc_tests_c_tests.
10851         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
10853 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
10855         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
10857 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
10859         PR sanitizer/71480
10860         * varasm.c (place_block_symbol): Adjust alignment for asan protected
10861         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
10863 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
10865         * profile.c: Include cfgloop.h.
10866         (branch_prob): Compute estimated number of iterations.
10867         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
10868         recompute estimate number of iterations from profile.
10870 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10872         PR inline-asm/68843
10873         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
10874         must be grouped on top of stack.  Don't force early clobber
10875         on ordinary reg outputs.
10877 2016-06-10  Richard Biener  <rguenther@suse.de>
10879         * targhooks.c (default_builtin_vectorization_cost): Adjust
10880         vec_construct cost.
10882 2016-06-10  Richard Biener  <rguenther@suse.de>
10884         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
10885         to fold the RHS to a constant if possible.
10887 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
10889         PR middle-end/71373
10890         * tree-nested.c (convert_nonlocal_omp_clauses)
10891         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
10892         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
10893         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
10895         * gimplify.c (gimplify_adjust_omp_clauses): Discard
10896         OMP_CLAUSE_TILE.
10897         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
10899         * omp-low.c (scan_sharing_clauses): Don't expect
10900         OMP_CLAUSE__CACHE_.
10902 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
10904         PR tree-optimization/71407
10905         PR tree-optimization/71416
10906         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
10907         BIT_FIELD_REF type.
10909 2016-06-10  Richard Biener  <rguenther@suse.de>
10911         PR middle-end/71477
10912         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
10914 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10916         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
10918 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
10919             Jiong Wang  <jiong.wang@arm.com>
10921         PR rtl-optimization/70751
10922         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
10923         spilled into memory.
10925 2016-06-09  Jonathan Yong  <10walls@gmail.com>
10927         Revert:
10928         2015-09-21  Jonathan Yong  <10walls@gmail.com>
10930         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10931         sysroot/usr/lib/32api for additional win32 libraries,
10932         fixes failing Cygwin bootstrapping.
10934 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
10936         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
10937         Delete.
10939 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
10941         PR bootstrap/71471
10942         * pretty-print.c (pp_indent): Specify that %p is printed in a
10943         host-dependent manner.
10944         (test_pp_format): Remove the test for %p.
10946 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
10948         * config/mips/mips.c (mips_output_jump): Fix formatting.
10950 2016-06-09  Richard Biener  <rguenther@suse.de>
10952         PR tree-optimization/71462
10953         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
10954         removed blocks.
10956 2016-06-09  Martin Liska  <mliska@suse.cz>
10958         * predict.c (dump_prediction): Add new argument.
10959         (enum predictor_reason): New enum.
10960         (struct predictor_hash): New struct.
10961         (predictor_hash::hash): New function.
10962         (predictor_hash::equal): Likewise.
10963         (not_removed_prediction_p): New function.
10964         (prune_predictions_for_bb): Likewise.
10965         (combine_predictions_for_bb): Prune predictions.
10967 2016-06-09  Martin Liska  <mliska@suse.cz>
10969         * predict.c (filter_predictions): New function.
10970         (remove_predictions_associated_with_edge): Use the filter
10971         function.
10972         (equal_edge_p): New function.
10974 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
10976         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
10977         Correct usage of @samp vs @option, add @samp where appropriate.
10978         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
10979         Add armv6s-m and document it, as it is no official ARM name.
10981 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10983         * ifcvt.c (struct noce_if_info): Add transform_name field.
10984         (noce_try_move): Set if_info->transform_name to the function name.
10985         (noce_try_ifelse_collapse): Likewise.
10986         (noce_try_store_flag): Likewise.
10987         (noce_try_inverse_constants): Likewise.
10988         (noce_try_store_flag_constants): Likewise.
10989         (noce_try_addcc): Likewise.
10990         (noce_try_store_flag_mask): Likewise.
10991         (noce_try_cmove): Likewise.
10992         (noce_try_cmove_arith): Likewise.
10993         (noce_try_minmax): Likewise.
10994         (noce_try_abs): Likewise.
10995         (noce_try_sign_mask): Likewise.
10996         (noce_try_bitop): Likewise.
10997         (noce_convert_multiple_sets): Likewise.
10998         (noce_process_if_block): Print if_info->transform_name to
10999         dump_file if transformation succeeded.
11001 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11003         * config/arm/cortex-a57.md (cortex_a57_alu):
11004         Handle csel type.
11006 2016-06-08  Martin Sebor  <msebor@redhat.com>
11007             Jakub Jelinek  <jakub@redhat.com>
11009         PR c++/70507
11010         PR c/68120
11011         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
11012         BUILT_IN_MUL_OVERFLOW_P): New builtins.
11013         * builtins.c: Include gimple-fold.h.
11014         (fold_builtin_arith_overflow): Handle
11015         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
11016         (fold_builtin_3): Likewise.
11017         * doc/extend.texi (Integer Overflow Builtins): Document
11018         __builtin_{add,sub,mul}_overflow_p.
11020 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
11022         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
11023         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
11025 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
11027         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
11028         Rewrite, looking one level down for records and arrays.
11030 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
11032         * pretty-print.c: Include "selftest.h".
11033         (pp_format): Fix comment.
11034         (identifier_to_locale): Likewise.
11035         (selftest::test_basic_printing): New function.
11036         (selftest::assert_pp_format): New function.
11037         (selftest::test_pp_format): New function.
11038         (selftest::pretty_print_c_tests): New function.
11039         * selftest-run-tests.c (selftest::run_tests): Call
11040         selftest::pretty_print_c_tests.
11041         * selftest.h (pretty_print_c_tests): New declaration.
11043 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11045         * invoke.texi (max-loop-headers-insns): Document.
11046         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
11047         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
11048         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
11050 2016-06-08  Richard Biener  <rguenther@suse.de>
11052         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
11053         on strided SLP loads and fall back to scalar loads in case
11054         we can't chunk them.
11056 2016-06-08  Richard Biener  <rguenther@suse.de>
11058         PR tree-optimization/71452
11059         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
11060         type used for the SSA rewrite has enough precision to cover
11061         the dynamic type of the location.
11063 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
11064             Richard Biener  <rguenther@suse.de>
11066         PR c++/71448
11067         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
11068         the same as DECL_P (base0) for indirect_base0.  Use equality_code
11069         in one further place.
11071 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
11073         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
11074         to one word if the field is known to overlap other words.
11075         (extract_bit_field_1): Likewise.
11076         (store_split_bit_field): Remove compensating code.
11077         (extract_split_bit_field): Likewise.
11079 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
11081         PR debug/71432
11082         PR ada/71413
11083         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
11085 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11087         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
11088         VDQF.
11089         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
11090         (arch64_addpv4sf): Delete.
11091         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
11092         "gen_aarch64_addpv4sf".
11093         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
11094         builtin.
11095         (vpadds_f32): Likewise.
11096         (vpaddq_f32): Likewise.
11097         (vpaddq_f64): Likewise.
11099 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11101         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
11102         VALLF.
11103         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
11104         to VALLF.  Rename to "fabd<mode>3".
11105         "*fabd_scalar<mode>3): Delete.
11106         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
11107         Use builtin.
11108         (vabdd_f64): Likewise.
11109         (vabd_f32): Likewise.
11110         (vabd_f64): Likewise.
11111         (vabdq_f32): Likewise.
11112         (vabdq_f64): Likewise.
11114 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11116         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
11117         VALLF.
11118         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
11119         "aarch64_rsqrts<mode>".
11120         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11121         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
11122         builtin.
11123         (vrsqrtsd_f64): Likewise.
11124         (vrsqrts_f32): Likewise.
11125         (vrsqrts_f64): Likewise.
11126         (vrsqrtsq_f32): Likewise.
11127         (vrsqrtsq_f64): Likewise.
11129 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11131         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11132         VALLF.
11133         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11134         "aarch64_rsqrte<mode>".
11135         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11136         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
11137         builtin.
11138         (vrsqrted_f64): Likewise.
11139         (vrsqrte_f32): Likewise.
11140         (vrsqrte_f64): Likewise.
11141         (vrsqrteq_f32): Likewise.
11142         (vrsqrteq_f64): Likewise.
11144 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11146         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11147         (ucvtf): Likewise.
11148         (fcvtzs): Likewise.
11149         (fcvtzu): Likewise.
11150         * config/aarch64/aarch64-simd.md
11151         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11152         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11153         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11154         Use builtin.
11155         (vcvt_n_f32_u32): Likewise.
11156         (vcvt_n_s32_f32): Likewise.
11157         (vcvt_n_u32_f32): Likewise.
11158         (vcvtq_n_f32_s32): Likewise.
11159         (vcvtq_n_f32_u32): Likewise.
11160         (vcvtq_n_f64_s64): Likewise.
11161         (vcvtq_n_f64_u64): Likewise.
11162         (vcvtq_n_s32_f32): Likewise.
11163         (vcvtq_n_s64_f64): Likewise.
11164         (vcvtq_n_u32_f32): Likewise.
11165         (vcvtq_n_u64_f64): Likewise.
11166         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11167         (VSDQ_SDI): Likewise.
11168         (fcvt_target): Support V4DI, V4SI and V2SI.
11169         (FCVT_TARGET): Likewise.
11171 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11173         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11174         (TYPES_BINOP_SUS): Likewise.
11175         (aarch64_simd_builtin_data): Update include file name.
11176         (aarch64_builtins): Likewise.
11177         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11178         for conversion between scalar float-point and fixed-point.
11179         (ucvtf): Likewise.
11180         (fcvtzs): Likewise.
11181         (fcvtzu): Likewise.
11182         * config/aarch64/aarch64.md
11183         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11184         pattern for conversion between scalar float to fixed-pointer.
11185         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11186         (UNSPEC_FCVTZS): New UNSPEC enumeration.
11187         (UNSPEC_FCVTZU): Likewise.
11188         (UNSPEC_SCVTF): Likewise.
11189         (UNSPEC_UCVTF): Likewise.
11190         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11191         Use builtin.
11192         (vcvtd_n_f64_u64): Likewise.
11193         (vcvtd_n_s64_f64): Likewise.
11194         (vcvtd_n_u64_f64): Likewise.
11195         (vcvtd_n_f32_s32): Likewise.
11196         (vcvts_n_f32_u32): Likewise.
11197         (vcvtd_n_s32_f32): Likewise.
11198         (vcvts_n_u32_f32): Likewise.
11199         * config/aarch64/iterators.md (fcvt_target): Support integer to float
11200         mapping.
11201         (FCVT_TARGET): Likewise.
11202         (FCVT_FIXED2F): New iterator.
11203         (FCVT_F2FIXED): Likewise.
11204         (fcvt_fixed_insn): New define_int_attr.
11206 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11208         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11209         some statements was removed.
11211 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
11213         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11214         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11215         (vect_can_advance_ivs_p): likewise.
11216         (vect_update_ivs_after_vectorizer): likewise.
11217         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11218         (vect_analyze_scalar_cycles_1): likewise.
11219         (vect_analyze_loop_operations): likewise.
11220         (report_vect_op): likewise.
11221         (vect_is_slp_reduction): likewise.
11222         (vect_is_simple_reduction): likewise.
11223         (get_initial_def_for_induction): likewise.
11224         (vect_transform_loop): likewise.
11225         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11226         (vect_recog_sad_pattern): likewise.
11227         (vect_recog_widen_sum_pattern): likewise.
11228         (vect_recog_widening_pattern): likewise.
11229         (vect_recog_divmod_pattern): likewise.
11230         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11231         (vect_analyze_slp_instance): likewise.
11232         (vect_transform_slp_perm_load): likewise.
11233         (vect_schedule_slp_instance): likewise.
11235 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11237         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11238         (return_prediction): PRED_CONST_RETURN predict return as not taken.
11239         * predict.def (PRED_CONTINUE): Change hitrate 50->67
11240         (PRED_LOOP_BRANCH): Document predictor as broken.
11241         (PRED_LOOP_EXIT): Change hitrate 91->92.
11242         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11243         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11244         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11245         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11246         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11247         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11248         (PRED_CALL): Chane hitrate 71->67.
11249         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11250         (PRED_GOTO): Document as unused right now.
11251         (PRED_CONST_RETURN): Change hitrate 67->69
11252         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11253         (PRED_NULL_RETURN): Change hitrate 91->90.
11254         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11255         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11256         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11258 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
11260         * config/rs6000/altivec.h: Add __builtin_vec_mul.
11261         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11262         special case Altivec builtin.
11263         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11264         VSX_BUILTIN_VEC_MUL (replaced with special case code).
11265         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11266         code for ALTIVEC_BUILTIN_VEC_MUL.
11267         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11268         for __builtin_vec_mul.
11270 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
11272         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11273         -mno-htm.
11275 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
11277         * spellcheck.c (selftest::test_find_closest_string): New function.
11278         (spellcheck_c_tests): Call the above.
11280 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11282         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11284 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
11286         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11287         Yv=Yv,C alternatives.
11289 2016-06-07  Richard Biener  <rguenther@suse.de>
11291         PR c/61564
11292         * common.opt (ffast-math): Make Optimization.
11294 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
11295             Prachi Godbole  <prachi.godbole@imgtec.com>
11297         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11298         `fabs' and `fneg' type attributes.
11299         (p5600_fpu_fabs): Add `fmove' to the comment.
11301 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11303         * gimple.c: Include builtins.h
11304         (gimple_inexpensive_call_p): New function.
11305         * gimple.h (gimple_inexpensive_call_p): Declare.
11306         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11307         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11308         fix formatting.
11310 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
11312         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11313         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11314         warning_at_rich_loc, warning_n, pedwarn, permerror,
11315         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11316         sorry, fatal_error, internal_error, internal_error_no_backtrace):
11317         Use the above.
11319 2016-06-07  Richard Biener  <rguenther@suse.de>
11321         PR tree-optimization/71428
11322         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11323         BIT_FIELD_REF op vs. load.
11325 2016-06-07  Richard Biener  <rguenther@suse.de>
11327         PR middle-end/71423
11328         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11329         for signed ops.
11331 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11333         * config/pa/pa.md (call): Generate indirect long calls to non-local
11334         functions on TARGET_64BIT.
11335         (call_value): Likewise.
11337 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11339         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11340         pattern and subsequent splitters.
11341         (call_val_reg_64bit_post_reload): Likewise.
11343 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11345         PR middle-end/71408
11346         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11347         propagate_op_to_single_use.
11349 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11351         PR middle-end/71281
11352         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11354 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
11356         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11357         (enum x86_dirflag_state): New enum.
11358         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11359         (machine_function): Remove needs_cld.
11360         (ix86_current_function_needs_cld): Remove.
11361         * config/i386/i386.c (ix86_set_func_type): Set
11362         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11363         (ix86_expand_prologue): Do not emit CLD here.
11364         (ix86_dirflag_mode_needed): New function.
11365         (ix86_dirflag_mode_entry): Ditto.
11366         (ix86_mode_needed): Handle X86_DIRFLAG entity.
11367         (ix86_mode_after): Ditto.
11368         (ix86_mode_entry): Ditto.
11369         (ix86_mode_exit): Ditto.
11370         (ix86_emit_mode_set): Ditto.
11371         * config/i386/i386.md (strmov_singleop): Set
11372         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11373         Do not set ix86_current_function_needs_cld.
11374         (rep_mov): Ditto.
11375         (strset_singleop): Ditto.
11376         (rep_stos): Ditto.
11377         (cmpstrnqi_nz_1): Ditto.
11378         (cmpstrnqi_1): Ditto.
11379         (strlenqi_1): Ditto.
11381 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
11383         PR tree-optimization/71259
11384         * tree-vect-slp.c (vect_get_constant_vectors): For
11385         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11386         one for constant op, and use COND_EXPR for non-constant.
11388 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
11390         * Makefile.in (OBJS): Add function-tests.o,
11391         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11392         selftest-run-tests.o.
11393         (OBJS-libcommon): Add selftest.o.
11394         (OBJS-libcommon-target): Add selftest.o.
11395         (all.internal): Add "selftest".
11396         (all.cross): Likewise.
11397         (selftest): New phony target.
11398         (s-selftest): New target.
11399         (selftest-gdb): New phony target.
11400         (COLLECT2_OBJS): Add selftest.o.
11401         * bitmap.c: Include "selftest.h".
11402         (selftest::test_gc_alloc): New function.
11403         (selftest::test_set_range): New function.
11404         (selftest::test_clear_bit_in_middle): New function.
11405         (selftest::test_copying): New function.
11406         (selftest::test_bitmap_single_bit_set_p): New function.
11407         (selftest::bitmap_c_tests): New function.
11408         * common.opt (fself-test): New.
11409         * diagnostic-show-locus.c: Include "selftest.h".
11410         (make_range): New function.
11411         (test_range_contains_point_for_single_point): New function.
11412         (test_range_contains_point_for_single_line): New function.
11413         (test_range_contains_point_for_multiple_lines): New function.
11414         (assert_eq): New function.
11415         (test_get_line_width_without_trailing_whitespace): New function.
11416         (selftest::diagnostic_show_locus_c_tests): New function.
11417         * et-forest.c: Include "selftest.h".
11418         (selftest::test_single_node): New function.
11419         (selftest::test_simple_tree): New function.
11420         (selftest::test_disconnected_nodes): New function.
11421         (selftest::et_forest_c_tests): New function.
11422         * fold-const.c: Include "selftest.h".
11423         (selftest::assert_binop_folds_to_const): New function.
11424         (selftest::assert_binop_folds_to_nonlvalue): New function.
11425         (selftest::test_arithmetic_folding): New function.
11426         (selftest::fold_const_c_tests): New function.
11427         * function-tests.c: New file.
11428         * gimple.c: Include "selftest.h".
11429         Include "gimple-pretty-print.h".
11430         (selftest::verify_gimple_pp): New function.
11431         (selftest::test_assign_single): New function.
11432         (selftest::test_assign_binop): New function.
11433         (selftest::test_nop_stmt): New function.
11434         (selftest::test_return_stmt): New function.
11435         (selftest::test_return_without_value): New function.
11436         (selftest::gimple_c_tests): New function.
11437         * hash-map-tests.c: New file.
11438         * hash-set-tests.c: New file.
11439         * input.c: Include "selftest.h".
11440         (selftest::assert_loceq): New function.
11441         (selftest::test_accessing_ordinary_linemaps): New function.
11442         (selftest::test_unknown_location): New function.
11443         (selftest::test_builtins): New function.
11444         (selftest::test_reading_source_line): New function.
11445         (selftest::input_c_tests): New function.
11446         * rtl-tests.c: New file.
11447         * selftest-run-tests.c: New file.
11448         * selftest.c: New file.
11449         * selftest.h: New file.
11450         * spellcheck.c: Include "selftest.h".
11451         (selftest::levenshtein_distance_unit_test_oneway): New function,
11452         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
11453         (selftest::levenshtein_distance_unit_test): Likewise.
11454         (selftest::spellcheck_c_tests): Likewise.
11455         * toplev.c: Include selftest.h.
11456         (toplev::run_self_tests): New.
11457         (toplev::main): Handle -fself-test.
11458         * toplev.h (toplev::run_self_tests): New.
11459         * tree.c: Include "selftest.h".
11460         (selftest::test_integer_constants): New function.
11461         (selftest::test_identifiers): New function.
11462         (selftest::test_labels): New function.
11463         (selftest::tree_c_tests): New function.
11464         * tree-cfg.c: Include "selftest.h".
11465         (selftest::push_fndecl): New function.
11466         (selftest::test_linear_chain): New function.
11467         (selftest::test_diamond): New function.
11468         (selftest::test_fully_connected): New function.
11469         (selftest::tree_cfg_c_tests): New function.
11470         * vec.c: Include "selftest.h".
11471         (selftest::safe_push_range): New function.
11472         (selftest::test_quick_push): New function.
11473         (selftest::test_safe_push): New function.
11474         (selftest::test_truncate): New function.
11475         (selftest::test_safe_grow_cleared): New function.
11476         (selftest::test_pop): New function.
11477         (selftest::test_safe_insert): New function.
11478         (selftest::test_ordered_remove): New function.
11479         (selftest::test_unordered_remove): New function.
11480         (selftest::test_block_remove): New function.
11481         (selftest::reverse_cmp): New function.
11482         (selftest::test_qsort): New function.
11483         (selftest::vec_c_tests): New function.c.
11484         * wide-int.cc: Include selftest.h and wide-int-print.h.
11485         (selftest::from_int <wide_int>): New function.
11486         (selftest::from_int <offset_int>): New function.
11487         (selftest::from_int <widest_int>): New function.
11488         (selftest::assert_deceq): New function.
11489         (selftest::assert_hexeq): New function.
11490         (selftest::test_printing <VALUE_TYPE>): New function template.
11491         (selftest::test_ops <VALUE_TYPE>): New function template.
11492         (selftest::test_comparisons <VALUE_TYPE>): New function template.
11493         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
11494         template.
11495         (selftest::wide_int_cc_tests): New function.
11497 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11499         PR middle-end/37780
11500         * ifcvt.c (noce_try_ifelse_collapse): New function.
11501         Declare prototype.
11502         (noce_process_if_block): Call noce_try_ifelse_collapse.
11503         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
11504         (simplify_ternary_operation): Use the above to simplify
11505         conditional CLZ/CTZ expressions.
11507 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11509         PR middle-end/37780
11510         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
11511         define_insn_and_split.
11513 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11515         PR middle-end/37780
11516         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
11518 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11520         PR c/24414
11521         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
11522         Implicitly clobber memory for basic asm with non-empty assembler
11523         string.  Use targetm.md_asm_adjust also here.
11524         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
11525         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
11526         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
11527         non-empty assembler string.
11528         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
11529         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
11530         (decode_asm_operands): Handle basic asm in PARALLEL block.
11531         (extract_insn): Handle basic asm in PARALLEL block.
11532         * doc/extend.texi: Mention new behavior of basic asm.
11533         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
11534         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
11535         branch_needs_nop_p): Use asm_noperands.
11537 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
11539         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
11540         Include the M7 SPARC DFA scheduler.
11541         New attribute v3pipe.
11542         Annotate insns with v3pipe where appropriate.
11543         Define cpu_feature vis4.
11544         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
11545         Add (V8QI "8") to vbits.
11546         Add insns {add,sub}v8qi3
11547         Add insns ss{add,sub}v8qi3
11548         Add insns us{add,sub}{v8qi,v4hi}3
11549         Add insns {min,max}{v8qi,v4hi,v2si}3
11550         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
11551         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
11552         * config/sparc/niagara4.md: Add a comment explaining the
11553         discrepancy between the documented latenty numbers and the
11554         implemented ones.
11555         * config/sparc/niagara7.md: New file.
11556         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
11557         supports SPARC5 and VIS 4.0 instructions.
11558         * configure: Regenerate.
11559         * config.in: Likewise.
11560         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
11561         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
11562         TARGET_CPU_niagara7.
11563         (ASM_CPU64_DEFAULT_SPEC): Likewise.
11564         (CPP_CPU_SPEC): Handle niagara7.
11565         (ASM_CPU_SPEC): Likewise.
11566         * config/sparc/sparc-opts.h (processor_type): Add
11567         PROCESSOR_NIAGARA7.
11568         (mvis4): New option.
11569         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
11570         (AS_NIAGARA7_FLAG): Define.
11571         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
11572         (CPP_CPU64_DEFAULT_SPEC): Likewise.
11573         (CPP_CPU_SPEC): Handle niagara7.
11574         (ASM_CPU_SPEC): Likewise.
11575         * config/sparc/sparc.c (niagara7_costs): Define.
11576         (sparc_option_override): Handle niagara7 and adjust cache-related
11577         parameters with better values for niagara cpus.  Also support VIS4.
11578         (sparc32_initialize_trampoline): Likewise.
11579         (sparc_use_sched_lookahead): Likewise.
11580         (sparc_issue_rate): Likewise.
11581         (sparc_register_move_cost): Likewise.
11582         (dump_target_flag_bits): Support VIS4.
11583         (sparc_vis_init_builtins): Likewise.
11584         (sparc_builtins): Likewise.
11585         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
11586         VIS4 4.0.
11587         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
11588         UltraSparc M7.
11589         * config/sparc/sparc.opt (sparc_processor_type): New value
11590         niagara7.
11591         * config/sparc/visintrin.h (__attribute__): Prototypes for the
11592         VIS4 builtins.
11593         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
11594         -mvis4.
11595         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
11596         VIS4 builtins.
11598 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
11600         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
11602 2016-06-06  Richard Biener  <rguenther@suse.de>
11604         PR tree-optimization/71398
11605         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
11606         remove edges.
11608 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
11610         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
11611         ft32_expand_prolog, ft32_expand_epilogue):
11612         Handle pretend_args.
11613         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
11614         * config/ft32/ft32.md: Add pretend_returner.
11616 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
11618         PR target/71389
11619         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11620         Copy op1 RTX to avoid invalid sharing.
11621         (ix86_expand_vector_move_misalign): Ditto.
11623 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
11625         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
11626         ATTRIBUTE_UNUSED.
11628 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
11630         * predict.c (predicted_by_loop_heuristics_p): New function.
11631         (predict_iv_comparison): Use it.
11632         (predict_loops): Walk from innermost loops; do not predict edges
11633         leaving multiple loops multiple times; implement
11634         PRED_LOOP_ITERATIONS_MAX heuristics.
11635         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
11637 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
11639         * cfg.c (check_bb_profile): Do not report mismatched profiles when
11640         only edges out of BB are EH edges.
11642 2016-06-04  Martin Sebor  <msebor@redhat.com>
11643             Marcin Baczyński  <marbacz@gmail.com>
11645         PR c/48116
11646         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
11647         a void expression in a void function.
11649 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
11651         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
11652         aux; dump reasons of decisions.
11653         (should_duplicate_loop_header_p): Likewise.
11654         (do_while_loop_p): Likewise.
11655         (ch_base::copy_headers): Dump asi num insns duplicated.
11657 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
11659         PR tree-optimization/71405
11660         * tree-ssa.c (execute_update_addresses_taken): For clobber with
11661         incompatible type, build a new clobber with the right type instead
11662         of building a VIEW_CONVERT_EXPR around it.
11664 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
11666         PR tree-optimization/52171
11667         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
11668         by_pieces_ninsns instead of move_by_pieces_ninsns.
11670 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
11672         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
11673         for reg+reg addressing mode.
11675 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11677         * rs6000-c.c (c/c-tree.h): Add #include.
11678         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
11679         in C++ when found in the base position of vec_ld or vec_st.
11681 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
11683         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
11684         use of profile unless profile status is PROFILE_READ.
11685         * profile.c (compute_branch_probabilities): Set profile status
11686         only after reporting predictor hitrates.
11688 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
11690         PR target/71276
11691         PR target/71277
11692         * common.opt (ffp-int-builtin-inexact): New option.
11693         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
11694         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
11695         (ceil@var{m}2): Document dependence on this option.
11696         * ipa-inline-transform.c (inline_call): Handle
11697         flag_fp_int_builtin_inexact.
11698         * ipa-inline.c (can_inline_edge_p): Likewise.
11699         * config/i386/i386.md (rintxf2): Do not test
11700         flag_unsafe_math_optimizations.
11701         (rint<mode>2_frndint): New define_insn.
11702         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
11703         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
11704         for 387 instead of extending and truncating.
11705         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
11706         !flag_trapping_math instead of flag_unsafe_math_optimizations.
11707         Change to frndint<mode>2_<rounding>.
11708         (frndintxf2_<rounding>_i387): Likewise.  Change to
11709         frndint<mode>2_<rounding>_i387.
11710         (<rounding_insn>xf2): Likewise.
11711         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
11712         !flag_trapping_math instead of flag_unsafe_math_optimizations for
11713         x87.  Test TARGET_ROUND || !flag_trapping_math ||
11714         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
11715         SSE.  Use ROUND_NO_EXC in constant operand of
11716         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
11717         for 387 instead of extending and truncating.
11719 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11720             Julia Koval  <julia.koval@intel.com>
11722         PR target/66960
11723         PR target/67630
11724         PR target/67634
11725         PR target/67841
11726         PR target/68037
11727         PR target/68618
11728         PR target/68661
11729         PR target/69575
11730         PR target/69596
11731         PR target/69734
11732         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
11733         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
11734         all registers, except for function return registers if there are
11735         no caller-saved registers.
11736         (ix86_set_func_type): New function.
11737         (ix86_set_current_function): Call ix86_set_func_type to set
11738         no_caller_saved_registers and func_type.  Call reinit_regs if
11739         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
11740         nor x87 instructions in interrupt handler nor function with
11741         no_caller_saved_registers attribute.
11742         (ix86_function_ok_for_sibcall): Return false if there are no
11743         caller-saved registers.
11744         (type_natural_mode): Don't warn ABI change for MMX in interrupt
11745         handler.
11746         (ix86_function_arg_advance): Skip for callee in interrupt handler.
11747         (ix86_function_arg): Return special arguments in interrupt handler.
11748         (ix86_promote_function_mode): Promote pointer to word_mode only
11749         for normal functions.
11750         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
11751         interrupt handler.
11752         (ix86_epilogue_uses): New function.
11753         (ix86_hard_regno_scratch_ok): Likewise.
11754         (ix86_save_reg): Preserve all registers in interrupt handler
11755         after reload.  Preserve all registers, except for function return
11756         registers, if there are no caller-saved registers after reload.
11757         (find_drap_reg): Always use callee-saved register if there are
11758         no caller-saved registers.
11759         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
11760         for interrupt handler.
11761         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
11762         Emit cld instruction if stringops are used in interrupt handler
11763         or interrupt handler isn't a leaf function.
11764         (ix86_expand_epilogue): Generate interrupt return for interrupt
11765         handler and pop the 'ERROR_CODE' off the stack before interrupt
11766         return in exception handler.
11767         (ix86_expand_call): Disallow calling interrupt handler directly.
11768         If there are no caller-saved registers, mark all registers that
11769         are clobbered by the call which returns as clobbered.
11770         (ix86_handle_no_caller_saved_registers_attribute): New function.
11771         (ix86_handle_interrupt_attribute): Likewise.
11772         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
11773         attributes.
11774         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
11775         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
11776         accumulation in interrupt function if stack may be realigned to
11777         avoid DRAP.
11778         (EPILOGUE_USES): New.
11779         (function_type): New enum.
11780         (machine_function): Add func_type and no_caller_saved_registers.
11781         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
11782         (interrupt_return): New pattern.
11783         * doc/extend.texi: Document x86 interrupt and
11784         no_caller_saved_registers attributes.
11786 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
11788         PR tree-optimization/52171
11789         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
11790         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
11791         Look for constant strings.  Move some code to emit_block_cmp_hints
11792         and use it.
11793         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
11794         * defaults.h (COMPARE_MAX_PIECES): New macro.
11795         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
11796         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
11797         (clear_by_pieces_1): Don't declare.  Move definition before use.
11798         (can_do_by_pieces): New static function.
11799         (can_move_by_pieces): Use it.  Return bool.
11800         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
11801         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
11802         (class pieces_addr); New.
11803         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
11804         pieces_addr::adjust, pieces_addr::increment_address,
11805         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
11806         functions for it.
11807         (class op_by_pieces_d): New.
11808         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
11809         functions for it.
11810         (class move_by_pieces_d, class compare_by_pieces_d,
11811         class store_by_pieces_d): New subclasses of op_by_pieces_d.
11812         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
11813         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
11814         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
11815         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
11816         compare_by_pieces_d::finish_mode): New member functions.
11817         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
11818         functions.
11819         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
11820         (emit_block_cmp_hints): New function.
11821         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
11822         use the newly defined classes.
11823         * expr.h (by_pieces_constfn): New typedef.
11824         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
11825         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
11826         (move_by_pieces_ninsns): Don't declare.
11827         (can_move_by_pieces): Change return value to bool.
11828         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
11829         (compare_by_pieces_branch_ratio): New hook.
11830         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
11831         (by_pieces_ninsns): Declare.
11832         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
11833         COMPARE_BY_PIECES.
11834         (default_compare_by_pieces_branch_ratio): New function.
11835         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
11836         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
11837         * doc/tm.texi: Regenerate.
11838         * tree-ssa-strlen.c: Include "builtins.h".
11839         (handle_builtin_memcmp): New static function.
11840         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
11841         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
11843 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11845         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
11846         relevant stmts which are simple and invariant.
11847         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
11848         instead of simple and invariant
11850 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11852         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
11853         (vectorizable_reduction): Check for new relevant state.
11854         (vectorizable_live_operation): vectorize live stmts using
11855         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
11856         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
11857         (vect_stmt_relevant_p): Check for stmts which are only used live.
11858         (process_use): Use of a stmt does not inherit it's live value.
11859         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
11860         (vect_analyze_stmt): Check for new relevant state.
11861         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
11862         outside the loop, but not inside it.
11864 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11866         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
11867         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
11868         (vect_get_vec_def_for_operand): Split out code.
11870 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
11872         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
11874 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11876         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
11878 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11880         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
11882 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
11884         PR middle-end/71387
11885         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
11886         to noreturn e->callee->decl that has void return type and void
11887         arguments, adjust gimple_call_fntype and remove lhs even if it had
11888         previously addressable type.
11890 2016-06-02  Jeff Law  <law@redhat.com>
11892         PR tree-optimization/71328
11893         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
11894         error when checking for a jump back onto the copied path.
11896 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
11898         * config/microblaze/microblaze.c (get_branch_target): Add return
11899         NULL_RTX for the non-CALL_P case.
11900         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
11901         (insert_wic): Remove unused local "j".
11903 2016-06-02  Martin Liska  <mliska@suse.cz>
11905         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
11907 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11908             Julia Koval  <julia.koval@intel.com>
11910         * function.c (assign_parm_setup_stack): Force source into a
11911         register if needed.
11912         * target.def (function_incoming_arg): Update documentation to
11913         allow arbitrary address computation based on hard register.
11914         * doc/tm.texi: Regenerated.
11916 2016-06-02  Martin Liska  <mliska@suse.cz>
11918         * predict.c (combine_predictions_for_bb): Fix first match in
11919         cases where a first predictor contains more than one occurence
11920         in list of predictors.  Take the best value in such case.
11922 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11924         PR rtl-optimization/71295
11925         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
11926         offset would go over the size of the inner mode reject it.
11928 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
11930         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
11931         x=x,x and v=v,m instead of x=x,m.
11933         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
11934         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
11935         alternative to v=rm,C.
11937         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
11938         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
11939         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
11940         instead of vex for the last two above mentioned alternatives.
11942 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11944         PR target/70830
11945         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
11947 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
11949         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
11951 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
11953         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
11954         from int to unsigned.
11956 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11958         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
11959         alternatives, eliminating preferred register class.  Add support
11960         for the MTVSRDD instruction in ISA 3.0.
11961         (vsx_splat_v4si_internal): Use splat_input_operand instead of
11962         reg_or_indexed_operand.
11963         (vsx_splat_v4sf_internal): Likewise.
11965 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11967         PR target/71186
11968         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
11969         for loading up all 0's or all 1's.
11971 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11973         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
11975 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
11977         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
11978         extension.
11979         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
11980         * gcc.c (set_source_date_epoch_envvar): New function, sets
11981         the SOURCE_DATE_EPOCH environment variable to the current time.
11983 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11985         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
11986         the factor for live Phi nodes.
11988 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11990         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
11991         * tree-parloops.c (parallelize_loops): likewise.
11992         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
11993         tree_unswitch_outer_loop): likewise.
11995 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
11997         PR middle-end/71371
11998         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
11999         around creation of the temporary.
12001 2016-06-01  Richard Biener  <rguenther@suse.de>
12003         PR tree-optimization/71366
12004         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
12005         (unloop_loops): Move removing edges here ...
12006         (try_unroll_loop_completely): ... from here.
12007         (try_peel_loop): ... and here.
12008         (tree_unroll_loops_completely_1): Track parent loops via
12009         bitmap of header BBs.
12010         (tree_unroll_loops_completely): Adjust for that.
12012 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
12014         * config/rs6000/altivec.h (vec_slv): New macro.
12015         (vec_srv): New macro.
12016         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
12017         (UNSPEC_VSRV): New value.
12018         (vslv): New insn.
12019         (vsrv): New insn.
12020         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
12021         (vsrv): New builtin definition.
12022         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
12023         define argument types for new builtin.
12024         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
12025         new builtin.
12026         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
12027         functions.
12029 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
12030             Jocelyn Mayer  <l_indien@magic.fr>
12032         PR target/67310
12033         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
12034         detect processor family for signature_CENTAUR_ebx.
12035         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
12036         signature_CENTAUR_ebx.
12037         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
12038         <default>: Pass x86-64 for has_longmode.
12040 2016-06-01  Nathan Sidwell  <nathan@acm.org>
12042         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
12043         undefined weak.
12045 2016-06-01  Richard Biener  <rguenther@suse.de>
12047         PR tree-optimization/71261
12048         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
12049         of stmts successfully put in the bool pattern.  Remove
12050         single-use restriction.
12051         (adjust_bool_pattern_cast): Add cast at the use site via the
12052         pattern def sequence.
12053         (adjust_bool_pattern): Remove recursion, maintain a hash-map
12054         of patterned defs.  Use the pattern def seqence instead of
12055         multiple independent patterns.
12056         (sort_after_uid): New qsort compare function.
12057         (adjust_bool_stmts): New function to process stmts in the bool
12058         pattern in IL order.
12059         (vect_recog_bool_pattern): Adjust.
12060         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
12061         (ifcvt_walk_pattern_tree): Likewise.
12062         (stmt_is_root_of_bool_pattern): Likewise.
12063         (ifcvt_repair_bool_pattern): Likewise.
12064         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
12066 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
12068         * loop-unroll.c (decide_unroll_constant_iterations,
12069         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
12070         likely upper bounds.
12071         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
12073 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
12075         * tree-core.h (enum omp_clause_code): Remove
12076         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
12078 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12080         * config/arm/sync.md (arm_store_exclusive<mode>):
12081         Use 'H' output modifier on operands[2] rather than creating a new
12082         entry in out-of-bounds memory of the operands array.
12083         (arm_store_release_exclusivedi): Likewise.
12085 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12087         * config/arm/arm.c (arm_fusion_enabled_p): New function.
12088         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
12089         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
12090         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
12092 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
12094         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
12095         into account live statements for mask producers.
12097 2016-06-01  Richard Biener  <rguenther@suse.de>
12099         PR tree-optimization/71311
12100         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
12101         restrict to non-INTEGER_CST @0.
12103 2016-06-01  Richard Biener  <rguenther@suse.de>
12105         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
12106         (relational patterns): Use :c to avoid pattern duplications.
12108 2016-06-01  Richard Biener  <rguenther@suse.de>
12110         * genmatch.c (comparison_code_p): New predicate.
12111         (swap_tree_comparison): New function.
12112         (commutate): Add for_vec parameter to append new for entries.
12113         Support commutating relational operators by swapping it alongside
12114         operands.
12115         (lower_commutative): Adjust.
12116         (dt_simplify::gen): Do not pass artificial operators to gen
12117         functions.
12118         (decision_tree::gen): Do not add artificial operators as parameters.
12119         (parser::parse_expr): Verify operator commutativity when :c is
12120         applied.  Allow :C to override this.
12121         * match.pd: Adjust patterns to use :C instead of :c where required.
12123 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
12125         PR tree-optimization/71077
12126         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12127         the combining step, use boolean_false_node and boolean_true_node
12128         as the designated false/true return values.
12130 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12132         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12133         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12134         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12135         PRED_LOOP_EXIT.
12137 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12139         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12140         of flags impliying the register renaming.
12141         * toplev.c (process_options): Do not imply flag_rename_registers with
12142         loop peeling.
12144 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12146         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12147         default implementation.
12149 2016-05-31  Nathan Sidwell  <nathan@acm.org>
12151         * dwarf2out.c (cur_line_info_table): Add GTY marker.
12153 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12155         * config/sh/constraints.md (b): Remove constraint.
12156         * config/sh/predicates.md (arith_reg_operand): Remove
12157         TARGET_REGISTER_P.
12158         * config/sh/sh-modes.def (PDI): Remove.
12159         * config/sh/sh.c (sh_target_reg_class,
12160         sh_optimize_target_register_callee_saved): Remove functions.
12161         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12162         (sh_expand_epilogue): Update comment.
12163         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12164         sh_secondary_reload): Remove TARGET_REGS related code.
12165         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12166         TARGET_REGISTER_P): Remove macros.
12167         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12168         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12169         TR1_REG, TR2_REG): Remove constants.
12170         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12172 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12174         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12175         define_expand patterns.
12176         (adddi3_compact): Rename to adddi3.
12177         (subdi3_compact): Rename to subdi3.
12178         (*negdi2): Rename to negdi2.
12179         (*abs<mode>2): Rename to abs<mode>2.
12181 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12183         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12184         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12185         (atomic_sub_fetchsi): ... this new pattern.
12186         (mvtc): Add CC_REG clobber.
12188 2016-05-31  Marek Polacek  <polacek@redhat.com>
12190         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12192 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12194         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12195         aarch64_fusion_enabled_p to check for fusion capabilities.
12197 2016-05-31  Richard Biener  <rguenther@suse.de>
12199         PR tree-optimization/71352
12200         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12201         minus one and a negate.
12203 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12205         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12206         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12207         Delete prototype.
12208         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12209         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12210         Remove use of aarch64_simd_attr_length_move, set length attribute
12211         directly.
12212         (*aarch64_be_movoi): Likewise.
12213         (*aarch64_be_movci): Likewise.
12214         (*aarch64_be_movxi): Likewise.
12216 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12218         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12219         It no longer does that.
12220         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12222 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
12224         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12225         attribute __unused__.
12227 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12229         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12230         * config/arm/arm.c (arm_arch_thumb1): Define.
12231         (arm_option_override): Initialize arm_arch_thumb1.
12232         * config/arm/arm.h (arm_arch_thumb1): Declare.
12233         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12234         support Thumb-1 ISA.
12236 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12238         PR target/71346
12239         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12240         `Yv' for scalar operand.
12242 2016-05-31  Tom de Vries  <tom@codesourcery.com>
12244         PR tree-optimization/69068
12245         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12246         phis with more than two args.
12248 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
12250         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12251         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12252         target.
12254 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
12256         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12257         tune_64.
12258         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12259         support on SPARC.
12260         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12261         cpu_32, cpu_64, tune_32 and tune_64.
12262         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12264 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
12266         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12268 2016-05-30  Andi Kleen  <ak@linux.intel.com>
12270         * auto-profile.c (read_profile): Replace asserts with errors
12271         when file does not exist.
12272         * gcov-io.c (gcov_read_words): Dito.
12274 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12276         * tree-cfg.c (print_loop): Print likely upper bounds.
12278 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12280         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12281         * opts.c (default_options): Enable peel loops at -O3.
12282         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12283         (try_peel_loop): Do not re-peel already peeled loops;
12284         use likely upper bounds; fix profile updating.
12285         (pass_complete_unroll::execute): Initialize peeled_loops.
12287 2016-05-30  Martin Liska  <mliska@suse.cz>
12289         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12290         computed costs by frequency of BB they belong to.
12291         (get_scaled_computation_cost_at): New function.
12293 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
12294             Marc Glisse  <marc.glisse@inria.fr>
12296         PR tree-optimization/71289
12297         * match.pd (-1 / B < A, A > -1 / B): New transformations.
12299 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12301         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12303 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12305         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12306         for peeled copies; avoid underflow when updating estimates; correctly
12307         scale loop profile.
12309 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12311         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12312         r236875. Corrected oe3 to oe2 as obvious.
12314 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12316         PR middle-end/71269
12317         PR middle-end/71252
12318         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12319         that inserted stmt will not dominate stmts that defines its operand.
12320         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12321         (rewrite_expr_tree_parallel): Likewise.
12323 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12325         PR middle-end/71252
12326         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12327         all fields including stmt_to_insert are swapped.
12329 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12331         * predict.h (force_edge_cold): Declare.
12332         * predict.c (force_edge_cold): New function.
12333         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12334         updating.
12335         (canonicalize_loop_induction_variables): Fix formating.
12337 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12339         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12340         (visium_expand_copysign): Use gen_int_mode directly.
12341         (visium_compute_frame_size): Minor tweaks.
12343 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12345         * tree-vect-loop.c (vect_analyze_loop_2): Use
12346         likely_max_stmt_executions_int.
12348 2016-05-30  Tom de Vries  <tom@codesourcery.com>
12350         PR tree-optimization/69067
12351         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12353 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
12355         PR target/71245
12356         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12357         New peepholes to remove unneeded fild/fistp pairs.
12358         (define_peephole2 atomic_loaddi_fpu): Ditto.
12360 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12362         * predict.c (maybe_hot_frequency_p): Avoid division.
12364 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
12366         * doc/install.texi: Use https for shop.fsf.org.
12368 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12370         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12371         likely_max_stmt_executions_int.
12373 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12375         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12376         likely_max_stmt_executions_int.
12378 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12380         * profile.c (compute_branch_probabilities): Do not report hitrates
12381         here.
12382         (branch_prob): Report hitrates here.
12383         * predict.c (gimple_predict_edge): Do not assert profile status;
12384         fix formatting issues.
12386 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12388         * predict.c (edge_predicted_by_p): New function.
12389         (predict_paths_for_bb): Do not put multiple predictions of the same type
12390         on one edge.
12392 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12394         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12395         commit.
12397 2016-05-28  Alan Modra  <amodra@gmail.com>
12399         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12401 2016-05-28  Alan Modra  <amodra@gmail.com>
12403         PR rtl-optimization/71275
12404         * ira.c (ira): Free dominance info.
12406 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
12408         * doc/sourcebuild.texi: New address for upstream Go repository.
12410 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12412         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12413         (TARGET_ARM_V7M): Likewise.
12415 2016-05-26  Jeff Law  <law@redhat.com>
12417         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12418         (thread_across_edge): Remove calls to find_jump_threads_backwards.
12419         * passes.def: Add jump threading passes before DOM/VRP.
12420         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12421         argument to a basic block from an edge.  Remove tests which are
12422         handled elsewhere.
12423         (pass_data_thread_jumps, class pass_thread_jumps): New.
12424         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12425         (make_pass_thread_jumps): Likewise.
12426         * tree-pass.h (make_pass_thread_jumps): Declare.
12428 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12430         * config/visium/visium-protos.h (split_double_move): Rename into...
12431         (visium_split_double_move): ...this.
12432         (visium_split_double_add): Declare.
12433         * config/visium/visium.c (split_double_move): Rename into...
12434         (visium_split_double_move): ...this.
12435         (visium_split_double_add): New function.
12436         (visium_expand_copysign): Renumber operands for consistency.
12437         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12438         (DFmode move splitter): Likewise.
12439         (*addi3_insn): Split by means of visium_split_double_add.
12440         (*adddi3_insn_flags): Delete.
12441         (*plus_plus_sltu<subst_arith>): New insn.
12442         (*subdi3_insn): Split by means of visium_split_double_add.
12443         (subdi3_insn_flags): Delete.
12444         (*minus_minus_sltu<subst_arith>): New insn.
12445         (*negdi2_insn): Split by means of visium_split_double_add.
12446         (*negdi2_insn_flags): Delete.
12448 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
12450         * configure.ac: Treat a --with-headers option without argument
12451         the same as the default (i.e. consult sys-include directory).
12452         * configure: Regenerate.
12454 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12456         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
12457         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
12458         prototype.
12459         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
12460         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
12462 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
12464         PR target/63596
12465         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
12466         tree-stdarg analysis results.
12467         (aarch64_setup_incoming_varargs): Likewise.
12469 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
12471         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
12472         va_list_gpr_counter_field and va_list_fpr_counter_field.
12474 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
12476         PR67609
12477         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
12478         * config/aarch64/aarch64.c
12479         (aarch64_cannot_change_mode_class): Remove function.
12480         * config/aarch64/aarch64-protos.h
12481         (aarch64_cannot_change_mode_class): Remove.
12483 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12485         * cfgloop.c (record_niter_bound): Record likely upper bounds.
12486         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
12487         get_likely_max_loop_iterations_int): New.
12488         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
12489         any_likely_upper_bound.
12490         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
12491         Declare.
12492         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
12493         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
12494         upper bound.
12495         (unroll_loop_constant_iterations): Likewise.
12496         (unroll_loop_runtime_iterations): Likewise.
12497         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
12498         * lto-streamer-out.c (output_cfg): Likewise.
12499         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
12500         bounds.
12501         (canonicalize_loop_induction_variables): Dump likely upper bounds.
12502         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
12503         (likely_max_loop_iterations): New.
12504         (likely_max_loop_iterations_int): New.
12505         (likely_max_stmt_executions): New.
12506         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
12507         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
12508         likely_max_stmt_executions): Declare.
12510 2016-05-27  Marek Polacek  <polacek@redhat.com>
12512         PR middle-end/71308
12513         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
12515 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12517         * config/s390/s390.md (2x risbg splitters): Use
12518         reg_overlap_mentioned_p instead of rtx_equal_p.
12520 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12522         * combine.c (make_compound_operation): Take known zero bits into
12523         account when checking for possible zero_extend.
12525 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12527         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
12528         Use const_int_operand for operand 2 predicate.  Simplify expand code
12529         as a result.
12531 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
12533         PR middle-end/71279
12534         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
12535         into comparison.
12537 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12539         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
12540         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
12541         that returns CC_SESWPmode and CC_ZESWPmode.
12542         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
12543         and CC_SESWPmode.
12544         (aarch64_rtx_costs): Likewise.
12546 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12548         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
12549         for ISA 3.0 min/max support.
12550         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
12551         conditional move support.
12552         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
12553         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
12554         available.
12555         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
12556         conditional moves where the comparison type is different from move
12557         type.
12558         (fp_minmax): New code iterator for smin/smax.
12559         (minmax): New code attributes for min/max.
12560         (SMINMAX): Likewise.
12561         (smax<mode>3): Combine min, max insns into one insn using the
12562         fp_minmax code iterator.  Add support for ISA 3.0 min/max
12563         instructions that don't need -ffast-math.
12564         (s<minmax><mode>3): Likewise.
12565         (smax<mode>3_vsx): Likewise.
12566         (smin<mode>3): Likewise.
12567         (s<minmax><mode>3_vsx): Likewise.
12568         (smin<mode>3_vsx): Likewise.
12569         (pre-VSX min/max splitters): Likewise.
12570         (s<minmax><mode>3_fpr): Likewise.
12571         (movsfcc): Rewrite floating point conditional moves to combine
12572         SFmode/DFmode into a single insn.
12573         (mov<mode>cc): Likewise.
12574         (movdfcc): Likewise.
12575         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
12576         SFDF2 iterators to handle all combinations.
12577         (fseldfsf4): Likewise.
12578         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
12579         (fseldfdf4): Likewise.
12580         (fselsfdf4): Likewise.
12581         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
12582         comparison instructions that set a 0/-1 mask, and use it for
12583         floating point conditional move via XXSEL.
12584         (fpmask<mode>): Likewise.
12585         (xxsel<mode>): Likewise.
12586         * config/rs6000/predicates.md (min_max_operator): Delete, no
12587         longer used.
12588         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
12589         instructions that generate a 0/-1 mask for use with XXSEL.
12590         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
12591         say whether floating point min/max is available, either through
12592         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
12593         (TARGET_MINMAX_DF): Likewise.
12595 2016-05-27  Alan Modra  <amodra@gmail.com>
12597         PR rtl-optimization/71275
12598         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
12599         for update_equiv_regs and combine_and_move_insns.
12601 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
12603         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
12604         if_then_else or cond RTXes to calculate attribute value.
12605         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
12606         <attr "length_immediate>: Ditto.
12607         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
12608         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
12609         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
12610         <attr "type">: Ditto.
12611         <attr "prefix_data16">: Ditto.
12612         <attr "prefix_extra">: Ditto.
12613         <attr "length_immediate">: Ditto.
12614         <attr "prefix">: Ditto.
12615         (vec_set<mode>_0) <attr "isa">: Ditto.
12616         <attr "prefix_extra">: Ditto.
12617         <attr "length_immediate">: Ditto.
12618         <attr "prefix">: Ditto.
12619         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
12620         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
12621         (sse2_storelpd) <attr "prefix_data16">: Ditto.
12622         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
12623         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
12624         <attr "length_immediate">: Ditto.
12625         <attr "prefix">: Ditto.
12626         (sse2_movsd) <attr "length_immediate">: Ditto.
12627         <attr "prefix">: Ditto.
12628         (vec_concatv2df)  <attr "isa">: Ditto.
12629         <attr "prefix">: Ditto.
12630         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
12631         (*vec_extractv2di_1) <attr "isa">: Ditto.
12632         <attr "type">: Ditto.
12633         <attr "length_immediate">: Ditto.
12634         <attr "prefix_rex">: Ditto.
12635         <attr "prefix_extra">: Ditto.
12636         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
12637         <attr "prefix_extra">: Ditto.
12638         <attr "length_immediate">: Ditto.
12639         (vec_concatv2di) <attr "isa">: Ditto.
12640         <attr "prefix_extra">: Ditto.
12641         <attr "length_immediate">: Ditto.
12642         <attr "prefix">: Ditto.
12644 2016-05-26  Martin Liska  <mliska@suse.cz>
12646         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
12647         function.
12648         (operator+): Likewise.
12649         (operator-): Likewise.
12650         (comp_cost::operator+=): Likewise.
12651         (comp_cost::operator-=): Likewise.
12652         (comp_cost::operator/=): Likewise.
12653         (comp_cost::operator*=): Likewise.
12654         (operator<): Likewise.
12655         (operator==): Likewise.
12656         (operator<=): Likewise.
12657         (new_cost): Remove.
12658         (infinite_cost_p): Likewise.
12659         (add_costs): Likewise.
12660         (sub_costs): Likewise.
12661         (compare_costs): Likewise.
12662         (set_group_iv_cost): Use the newly introduced functions.
12663         (get_address_cost): Likewise.
12664         (get_shiftadd_cost): Likewise.
12665         (force_expr_to_var_cost): Likewise.
12666         (split_address_cost): Likewise.
12667         (ptr_difference_cost): Likewise.
12668         (difference_cost): Likewise.
12669         (get_computation_cost_at): Likewise.
12670         (determine_group_iv_cost_generic): Likewise.
12671         (determine_group_iv_cost_address): Likewise.
12672         (determine_group_iv_cost_cond): Likewise.
12673         (autoinc_possible_for_pair): Likewise.
12674         (determine_group_iv_costs): Likewise.
12675         (cheaper_cost_pair): Likewise.
12676         (iv_ca_recount_cost): Likewise.
12677         (iv_ca_set_no_cp): Likewise.
12678         (iv_ca_set_cp): Likewise.
12679         (iv_ca_cost): Likewise.
12680         (iv_ca_new): Likewise.
12681         (iv_ca_dump): Likewise.
12682         (iv_ca_narrow): Likewise.
12683         (iv_ca_prune): Likewise.
12684         (iv_ca_replace): Likewise.
12685         (try_add_cand_for): Likewise.
12686         (try_improve_iv_set): Likewise.
12687         (find_optimal_iv_set): Likewise.
12689 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
12691         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
12692         that internal functions will clobber all caller-saved registers.
12694 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
12696         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
12697         Return a better case_values_threshold when optimizing.
12699 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
12701         * config/aarch64/aarch64-simd.md (aarch64_combinez):
12702         Add ? to integer variant.
12703         (aarch64_combinez_be): Likewise.
12705 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12707         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
12708         instead of x constraint.
12709         (vcvtps2ph256<mask_name>): Likewise.
12711         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
12712         alternative.  Formatting fix.
12714         * config/i386/sse.md
12715         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
12716         to ...
12717         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
12718         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
12719         maybe_evex prefix instead of vex.
12720         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
12721         EXT_REX_SSE_REG_P (op0) case in the splitter.
12723 2016-05-25  Jeff Law  <law@redhat.com>
12725         PR tree-optimization/71272
12726         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
12727         Update comments.  Add test for empty path.
12729 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
12731         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
12732         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
12733         special case builtin.
12734         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12735         code for ALTIVEC_BUILTIN_VEC_CMPNE.
12736         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12737         for __builtin_vec_cmpne.
12739 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12741         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
12742         redundant test and bail out if the type of the new operand is not
12743         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
12745 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
12747         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
12748         (x_ix86_target_flags_explicit): Remove.
12749         * config/i386/i386.c (ix86_function_specific_save): Do not copy
12750         x_ix86_target_flags_explicit.
12751         (ix86_function_specific_restore): Ditto.
12753 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
12754             H.J. Lu  <hongjiu.lu@intel.com>
12756         PR target/70738
12757         * common/config/i386/i386-common.c
12758         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
12759         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
12760         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
12761         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
12762         (-mgeneral-regs-only): Add new option.
12763         * config/i386/i386.c (ix86_option_override_internal): Don't enable
12764         x87 instructions if only general registers are allowed.
12765         (ix86_target_string): Add ix86_flags argument. Handle additional
12766         flags options through ix86_flags argument.  Update all callers.
12767         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
12769 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12771         PR rtl-optimization/66940
12772         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
12773         decrementing desired_val will not overflow before performing these
12774         operations.
12776 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
12778         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
12779         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
12780         * config/i386/i386.c (enum ix86_builtins): Add
12781         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
12782         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
12783         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
12784         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
12785         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
12786         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
12787         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
12788         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
12789         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
12790         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
12791         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
12792         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
12793         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
12794         __builtin_ia32_cvtps2dq512_mask.
12795         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
12796         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
12797         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
12798         * config/i386/sse.md
12799         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
12800         Rename to ...
12801         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
12802         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
12803         to ...
12804         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
12805         (avx512f_vec_pack_sfix_v8df): New define_expand.
12806         (avx512f_roundpd512): Rename to ...
12807         (avx512f_round<castmode>512): ... this.  Change iterator.
12808         (avx512f_roundps512_sfix): New define_expand.
12809         (round<mode>2_sfix): Change iterator.
12811 2016-05-25  Nick Clifton  <nickc@redhat.com>
12813         * config/msp430/msp430.c (msp430_attr): Produce an error if a
12814         static interrupt handler is detected.
12815         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
12816         default linker script.
12817         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
12818         the low part of a symbolic pointer.
12820 2016-05-25  Richard Biener  <rguenther@suse.de>
12822         PR tree-optimization/71261
12823         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
12824         interesting stmt instead of immediate uses when looking
12825         for the use operand to replace.
12827 2016-05-25  Martin Liska  <mliska@suse.cz>
12829         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
12831 2016-05-25  Richard Biener  <rguenther@suse.de>
12833         PR tree-optimization/71264
12834         * tree-vect-stmts.c (vect_init_vector): Properly deal with
12835         vector type val.
12837 2016-05-25  Martin Liska  <mliska@suse.cz>
12839         PR tree-optimization/71239
12840         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
12841         if DECL_SIZE is NULL.
12843 2016-05-25  Richard Biener  <rguenther@suse.de>
12845         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
12846         * tree-if-conv.c (pass_data_if_conversion): Use it.
12848 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12850         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
12851         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
12852         * varpool.c (varpool_node::get_availability): Likewise.
12854 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12856         * config/rs6000/altivec.md (VNEG iterator): New iterator for
12857         VNEGW/VNEGD instructions.
12858         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
12859         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
12860         support for ISA 3.0 VNEGW/VNEGD instructions.
12862 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12864         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
12865         pointers inside OACC_DATA regions.
12866         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
12867         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
12868         (gimplify_adjust_omp_clauses): Fix typo in comment.
12870 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12872         * config/rs6000/altivec.md (VParity): New mode iterator for vector
12873         parity built-in functions.
12874         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
12875         zeros.
12876         (p9v_parity<mode>2): Likewise.
12877         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
12878         parity.
12879         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
12880         (parity<mode>2): ISA 3.0 expander for vector parity.
12881         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
12882         power9 built-ins.
12883         (BU_P9_64BIT_MISC_0): Likewise.
12884         (BU_P9_MISC_0): Likewise.
12885         (BU_P9V_AV_1): Likewise.
12886         (BU_P9V_AV_2): Likewise.
12887         (BU_P9V_AV_3): Likewise.
12888         (BU_P9V_AV_P): Likewise.
12889         (BU_P9V_VSX_1): Likewise.
12890         (BU_P9V_OVERLOAD_1): Likewise.
12891         (BU_P9V_OVERLOAD_2): Likewise.
12892         (BU_P9V_OVERLOAD_3): Likewise.
12893         (VCTZB): Add vector count trailing zeros support.
12894         (VCTZH): Likewise.
12895         (VCTZW): Likewise.
12896         (VCTZD): Likewise.
12897         (VPRTYBD): Add vector parity support.
12898         (VPRTYBQ): Likewise.
12899         (VPRTYBW): Likewise.
12900         (VCTZ): Add overloaded vector count trailing zeros support.
12901         (VPRTYB): Add overloaded vector parity support.
12902         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12903         overloaded vector count trailing zeros and parity instructions.
12904         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
12905         vector parity support.
12906         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
12907         trailing zeros support.
12908         (vec_cntlz): Likewise.
12909         (vec_vctzb): Likewise.
12910         (vec_vctzd): Likewise.
12911         (vec_vctzh): Likewise.
12912         (vec_vctzw): Likewise.
12913         (vec_vprtyb): Add ISA 3.0 vector parity support.
12914         (vec_vprtybd): Likewise.
12915         (vec_vprtybw): Likewise.
12916         (vec_vprtybq): Likewise.
12917         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12918         the ISA 3.0 vector count trailing zeros and vector parity built-in
12919         functions.
12921 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12923         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
12924         when there is stmt_to_insert.
12926 2016-05-24  Martin Sebor  <msebor@redhat.com>
12928         PR c++/71147
12929         * tree.h (complete_or_array_type_p): New inline function.
12931 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12933         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
12934         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
12935         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
12937         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
12938         Limit 1st alternative to noavx isa, split 2nd alternative into one
12939         noavx and one avx alternative, use *x and Bm in the former and
12940         x and m in the latter.
12942         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
12943         of sse4 for the first alternative, drop %v from the template
12944         and d operand modifier.  Split second alternative into one sse4_noavx
12945         and one avx alternative, use *x instead of *v in the former and v
12946         instead of *v in the latter.
12947         (*sse4_1_extractps): Use noavx isa instead of * for the first
12948         alternative, drop %v from the template.  Split second alternative into
12949         one noavx and one avx alternative, use *x instead of *v in the
12950         former and v instead of *v in the latter.
12951         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
12952         with noavx and the last one with avx.
12953         (sse4_1_phminposuw): Guard first alternative with noavx isa,
12954         split the second one into one noavx and one avx alternative,
12955         use *x and Bm in the former and x and m in the latter one.
12956         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
12957         alternatives.
12959         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
12960         first two alternatives to noavx, use *x instead of *v in the second
12961         one, add avx alternative without *.
12962         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
12963         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
12964         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
12966 2016-05-24  Jeff Law  <law@redhat.com>
12968         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
12969         New function, extracted from...
12970         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
12971         Allow simple copies and constant initializations in the SSA chain.
12973 2016-05-24  Marek Polacek  <polacek@redhat.com>
12975         PR c/71249
12976         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
12977         scope.
12979 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12981         PR c++/71257
12982         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12983         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12984         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
12985         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
12986         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
12988 2016-05-24  Richard Biener  <rguenther@suse.de>
12990         PR tree-optimization/71240
12991         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
12992         has integral type.
12994 2016-05-24  Richard Biener  <rguenther@suse.de>
12996         PR tree-optimization/71230
12997         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
12999 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13001         * tree-vectorizer.h (vectorizable_comparison): Delete.
13002         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
13003         PURE_SLP_STMT check.
13004         * tree-vect-stmts.c (vectorizable_call): Likewise.
13005         (vectorizable_simd_clone_call): Likewise.
13006         (vectorizable_conversion): Likewise.
13007         (vectorizable_assignment): Likewise.
13008         (vectorizable_shift): Likewise.
13009         (vectorizable_operation): Likewise.
13010         (vectorizable_load): Likewise.
13011         (vectorizable_condition): Likewise.
13012         (vectorizable_store): Likewise.  Assert that we don't have
13013         hybrid SLP.
13014         (vectorizable_comparison): Make static.  Remove redundant
13015         PURE_SLP_STMT check.
13016         (vect_transform_stmt): Assert that we always have an slp_node
13017         if PURE_SLP_STMT.
13019 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13021         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
13022         operands[2] against 1 with comparison against CONST1_RTX.
13023         (<shift>di3_neon): Likewise.
13024         * config/arm/predicates.md (const0_operand): Replace with comparison
13025         against CONST0_RTX.
13027 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13029         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
13030         operands[2] against 1 with comparison against CONST1_RTX.
13031         (ashrdi3): Likewise.
13032         (lshrdi3): Likewise.
13033         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
13034         UINTVAL.
13035         (ashrsi3): Likewise.
13036         (lshrsi3): Likewise.
13037         (rotrsi3): Likewise.
13038         (define_split above *compareqi_eq0): Likewise.
13039         (define_split above "prologue"): Likewise.
13040         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
13041         * config/arm/predicates.md (shift_operator): Likewise.
13042         (shift_nomul_operator): Likewise.
13043         (sat_shift_operator): Likewise.
13044         (thumb1_cmp_operand): Likewise.
13045         (const_neon_scalar_shift_amount_operand): Replace manual range
13046         check with IN_RANGE.
13047         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
13048         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
13050 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13052         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
13053         with HOST_WIDE_INT_1.
13054         (insv): Likewise.
13055         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
13056         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
13057         (arm_canonicalize_comparison): Likewise.
13058         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
13059         HOST_WIDE_INT_1.
13060         (thumb1_size_rtx_costs): Likewise.
13061         (vfp_const_double_index): Replace cast of 1 to unsigned
13062         HOST_WIDE_INT with HOST_WIDE_INT_1U.
13063         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
13064         HOST_WIDE_INT_1.
13065         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
13066         HOST_WIDE_INT with HOST_WIDE_INT_1U.
13067         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
13068         HOST_WIDE_INT with HOST_WIDE_INT_1.
13070 2016-05-24  Marek Polacek  <polacek@redhat.com>
13072         * tree-cfg.h (should_remove_lhs_p): New predicate.
13073         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
13074         * gimplify.c (gimplify_modify_expr): Likewise.
13075         * tree-cfg.c (verify_gimple_call): Likewise.
13076         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
13077         * gimple-fold.c: Include "tree-cfg.h".
13078         (gimple_fold_call): Use should_remove_lhs_p.
13080 2016-05-24  Richard Biener  <rguenther@suse.de>
13082         PR tree-optimization/71253
13083         * cfganal.h (control_dependences): Make robust against edge
13084         and BB removal.
13085         (control_dependences::control_dependences): Remove edge_list argument.
13086         (control_dependences::get_edge): Remove.
13087         (control_dependences::get_edge_src): Add.
13088         (control_dependences::get_edge_dest): Likewise.
13089         (control_dependences::m_el): Make a vector of edge src/dest index.
13090         * cfganal.c (control_dependences::find_control_dependence): Adjust.
13091         (control_dependences::control_dependences): Likewise.
13092         (control_dependences::~control_dependence): Likewise.
13093         (control_dependences::get_edge): Remove.
13094         (control_dependences::get_edge_src): Add.
13095         (control_dependences::get_edge_dest): Likewise.
13096         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
13097         get_edge_src.
13098         (perform_tree_ssa_dce): Adjust.
13099         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
13100         get_edge_src.
13101         (pass_loop_distribution::execute): Adjust.  Do loop destroying
13102         conditional on changed.
13104 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13106         PR target/69857
13107         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
13108         return.  Reindent transformation comment and mention the ARM state
13109         behavior.
13111 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13113         PR middle-end/71252
13114         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
13115         after build_and_add_sum creates new use stmt.
13117 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13119         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
13120         load_lanes/grouped_load classification comes first.  Don't check
13121         whether the vectorization factor is a multiple of the group size
13122         for load_lanes.
13124 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13126         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13127         GROUP_GAP for single-element interleaving.
13128         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13129         variable.
13131 2016-05-24  Richard Biener  <rguenther@suse.de>
13133         PR middle-end/70434
13134         PR c/69504
13135         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13136         bases which are accessed with non-invariant indices.
13137         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13138         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13140 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13142         PR middle-end/71170
13143         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13144         (add_to_ops_vec): Add stmt_to_insert.
13145         (add_repeat_to_ops_vec): Init stmt_to_insert.
13146         (insert_stmt_before_use): New.
13147         (transform_add_to_multiply): Remove mult_stmt insertion and add it
13148         to ops vector.
13149         (get_ops): Init stmt_to_insert.
13150         (maybe_optimize_range_tests): Likewise.
13151         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13152         (rewrite_expr_tree_parallel): Likewise.
13153         (reassociate_bb): Likewise.
13155 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13157         PR target/71201
13158         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13159         ISA 3.0 xxperm fusion alternative.
13160         (altivec_vperm_v8hiv16qi): Likewise.
13161         (altivec_vperm_<mode>_uns_internal): Likewise.
13162         (vperm_v8hiv4si): Likewise.
13163         (vperm_v16qiv8hi): Likewise.
13165 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13166             Kelvin Nilsen  <kelvin@gcc.gnu.org>
13168         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13169         vpermr/xxpermr on ISA 3.0.
13170         (altivec_expand_vec_perm_le): Likewise.
13171         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13172         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13173         ISA 3.0.
13175 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
13177         * config/i386/i386.h (IS_STACK_MODE): Enable for
13178         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
13179         SSE_FLOAT_MODE_P macros.
13180         * config/i386/i386.c (ix86_preferred_reload_class): Use
13181         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13182         Cleanup regclass processing for CONST_DOUBLE_P.
13183         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13184         (ix86_rtx_costs): Remove redundant TARGET_80387 check
13185         with IS_STACK_MODE macro.
13186         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13187         with TARGET_SSE2.
13188         (*movdf_internal): Use IS_STACK_MODE macro.
13189         (*movsf_internal): Ditto.
13191 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
13193         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13194         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13196 2016-05-23  Jeff Law  <law@redhat.com>
13198         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13199         extracted from ...
13200         (fsm_find_control_statement_thread_paths): Call it.
13202 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13204         PR ipa/71234
13205         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13206         from_global_constant if t is not NULL.
13208 2016-05-23  Marek Polacek  <polacek@redhat.com>
13210         PR c/49859
13211         * common.opt (Wswitch-unreachable): New option.
13212         * doc/invoke.texi: Document -Wswitch-unreachable.
13213         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13214         warning.
13216 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
13218         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13219         TMR_INDEX is non-NULL.
13221 2016-05-23  Richard Biener  <rguenther@suse.de>
13223         PR tree-optimization/71230
13224         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13225         (try_special_add_to_ops): ... here.  Always test for single-use.
13227 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13229         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13230         default block if a PHI node in the original one would be resized.
13232 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13234         PR tree-optimization/58135
13235         * tree-vect-slp.c: When group size is not multiple
13236         of vector size, allow splitting of store group at
13237         vector boundary.
13239 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
13241         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13243 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
13245         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13246         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13247         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
13248         of 64x2.
13250         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13251         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13252         v constraint instead of x and vinserti32x4 insn.
13254         * config/i386/sse.md (i128vldq): New mode iterator.
13255         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13256         avx512dq and avx512vl alternatives.
13258         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13259         constraint, use maybe_evex prefix instead of vex.
13260         (vec_dupv4sf): Use v constraint instead of x for output
13261         operand except for noavx alternative, use Yv constraint
13262         instead of x for input.  Use maybe_evex prefix instead of vex.
13263         (*vec_dupv4si): Likewise.
13264         (*vec_dupv2di): Likewise.
13266 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13268         PR middle-end/40921
13269         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13270         (linearize_expr_tree): Call try_special_add_to_ops.
13271         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13273 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13275         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13276         to computed stack_usage.
13278 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13280         PR target/71103
13281         * config/avr/avr.md (define_expand "mov<mode>"): If the source
13282         operand is subreg (symbol_ref) then move the symbol ref to register.
13284 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
13286         * tree.c (array_at_struct_end_p): Look through MEM_REF.
13288 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13290         PR middle-end/71179
13291         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13292         VECTOR type.
13294 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13296         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13297         ranges by calling get_single_symbol and tidy up.  Look more closely
13298         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13300 2016-05-20  Jeff Law  <law@redhat.com>
13302         * bitmap.c (bitmap_find_bit): Remove useless test.
13304 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13306         * function.c (thread_prologue_and_epilogue_insns): Commit the
13307         insertion of the epilogue.
13309 2016-05-20  Martin Jambor  <mjambor@suse.cz>
13311         PR tree-optimization/70884
13312         * tree-sra.c (initialize_constant_pool_replacements): Do not check
13313         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13314         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13315         of constant pool data as a reason for scalarization.
13317 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13319         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13320         for naked functions.
13321         (thumb1_expand_prologue): Likewise.
13323 2016-05-20  Nathan Sidwell  <nathan@acm.org>
13325         * config/nvptx/nptx.c (nvptx_option_override): Only set
13326         flag_toplevel_reorder, if not explicitly specified.  Set
13327         flag_no_common, unless explicitly specified.
13329 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13331         * calls.c (can_implement_as_sibling_call_p): Mark param
13332         reg_parm_stack_space with ATTRIBUTE_UNUSED.
13334 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
13336         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13337         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13338         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13339         constants.
13340         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13341         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13342         and CASE_CONST_ANY.
13344 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
13346         * config/nvptx/nvptx.md (sincossf3): New pattern.
13348 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13350         * calls.c (maybe_complain_about_tail_call): New function.
13351         (initialize_argument_information): Call
13352         maybe_complain_about_tail_call when clearing *may_tailcall.
13353         (can_implement_as_sibling_call_p): Call
13354         maybe_complain_about_tail_call when returning false.
13355         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13356         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
13357         if tail-call optimization fails.
13358         * cfgexpand.c (expand_call_stmt): Initialize
13359         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13360         * gimple-pretty-print.c (dump_gimple_call): Dump
13361         gimple_call_must_tail_p.
13362         * gimple.c (gimple_build_call_from_tree): Call
13363         gimple_call_set_must_tail with the value of
13364         CALL_EXPR_MUST_TAIL_CALL.
13365         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13366         (gimple_call_set_must_tail): New function.
13367         (gimple_call_must_tail_p): New function.
13368         * print-tree.c (print_node): Update printing of TREE_STATIC
13369         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13370         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13371         trailing comment listing applicable flags.
13372         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13374 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13376         * calls.c (expand_call): Move "Rest of purposes for tail call
13377         optimizations to fail" to...
13378         (can_implement_as_sibling_call_p): ...this new function, and
13379         split into multiple "if" statements.
13381 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13383         * cfgloop.h (expected_loop_iterations_unbounded,
13384         expected_loop_iterations): Unconstify.
13385         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13386         profile with known upper bound; return 3 when profile is absent.
13387         (expected_loop_iterations): Update.
13389 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13391         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13392         and get_max_loop_iterations_int.
13394 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13396         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13397         realistic upper bounds here.
13399 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
13401         PR c++/71210
13402         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13403         calls if the LHS is variable length or has addressable type.
13404         If targets[0]->decl is a noreturn call with void return type and
13405         zero arguments, adjust fntype and remove lhs in that case.
13407 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
13409         PR tree-optimization/71079
13410         PR tree-optimization/71206
13411         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13413 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13415         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13416         (get_vec_alignment_for_array_decl): Likewise.
13417         (get_vec_alignment_for_record_decl): Likewise.
13418         (increase_alignment::execute): Move code to find alignment to
13419         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13420         (type_align_map): New hash_map.
13422 2016-05-20  Richard Guenther  <rguenther@suse.de>
13424         PR tree-optimization/29756
13425         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13426         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13427         * fold-const.c (operand_equal_p): Likewise.
13428         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13429         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13430         * tree-inline.c (estimate_operator_cost): Likewise.
13431         * tree-pretty-print.c (dump_generic_node): Likewise.
13432         * tree-ssa-operands.c (get_expr_operands): Likewise.
13433         * cfgexpand.c (expand_debug_expr): Likewise.
13434         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13435         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13436         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13437         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13438         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13439         (execute_update_addresses_taken): Do it.
13441 2016-05-20  Richard Biener  <rguenther@suse.de>
13443         PR tree-optimization/71185
13444         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
13445         register operations.
13447 2016-05-20  Richard Biener  <rguenther@suse.de>
13449         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
13450         gimple_seq_add_seq_without_update.
13451         (release_bb_predicate): Assert we have no operands to free.
13452         (if_convertible_loop_p_1): Calculate post dominators later.
13453         Do not free BB predicates here.
13454         (combine_blocks): Do not recompute BB predicates.
13455         (version_loop_for_if_conversion): Save BB predicates around
13456         loop versioning.
13458 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
13460         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
13461         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
13462         code.  Ignore sibcalls on EDGE_IGNORE edges.
13463         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
13464         on edges for sibcalls that run without prologue.  The rest of the
13465         function is combined from...
13466         (fix_fake_fallthrough_edge): ... this, and ...
13467         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
13468         function argument, make it a local variable.
13470 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
13472         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
13473         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
13474         for 32-bit mode and SEH for 64-bit.
13475         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
13476         TARGET_64BIT_DEFAULT.
13478 2016-05-19  Ryan Burn  <contact@rnburn.com>
13480         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
13481         * gengtype.c (open_base_files): Add cilk.h to ifiles.
13483 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
13485         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
13486         force pending loads from memory.
13488 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13490         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
13491         (UNSPEC_DARN_32): New unspec constant.
13492         (UNSPEC_DARN_RAW): New unspec constant.
13493         (darn_32): New instruction.
13494         (darn_raw): New instruction.
13495         (darn): New instruction.
13496         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
13497         support and documentation for this macro.
13498         (BU_P9_MISC_1): New macro definition.
13499         (BU_P9_64BIT_MISC_0): New macro definition.
13500         (BU_P9_MISC_0): New macro definition.
13501         (darn_32): New builtin definition.
13502         (darn_raw): New builtin definition.
13503         (darn): New builtin definition.
13504         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
13505         RS6000_BUILTIN_0 directives to surround each occurrence of
13506         #include "rs6000-builtin.def".
13507         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
13508         RS6000_BTM_64BIT flags to the returned mask, depending on
13509         configuration.
13510         (def_builtin): Correct an error in the assignments made to the
13511         debugging variable attr_string.
13512         (rs6000_expand_builtin): Add support for no-operand built-in
13513         functions.
13514         (builtin_function_type): Remove fatal_error assertion that is no
13515         longer valid.
13516         (rs6000_common_init_builtins): Add support for no-operand built-in
13517         functions.
13518         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
13519         definition.
13520         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
13521         definition.
13522         (RS6000_BTM_64BIT): New macro definition.
13523         * doc/extend.texi: Document __builtin_darn (void),
13524         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
13525         functions.
13527 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
13529         * tree-vect-loop.c (vect_analyze_loop_2): Use also
13530         max_loop_iterations_int.
13532 2016-05-19  Marek Polacek  <polacek@redhat.com>
13534         PR tree-optimization/71031
13535         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
13536         condition and adjust the code a bit.
13538 2016-05-19  Martin Liska  <mliska@suse.cz>
13540         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
13541         auto_vec instead of vec.
13543 2016-05-19  Martin Liska  <mliska@suse.cz>
13545         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
13547 2016-05-19  Martin Liska  <mliska@suse.cz>
13549         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
13551 2016-05-19  Martin Liska  <mliska@suse.cz>
13553         * ipa-pure-const.c (set_function_state): Remove an existing
13554         funct_state.
13555         (remove_node_data): Do not free it as it's released
13556         in set_function_state.
13558 2016-05-19  Martin Liska  <mliska@suse.cz>
13560         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
13561         bitmap.
13563 2016-05-19  Martin Liska  <mliska@suse.cz>
13565         * omp-simd-clone.c (simd_clone_adjust): Release vector.
13567 2016-05-19  Martin Liska  <mliska@suse.cz>
13569         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
13570         an auto_vec instead of re-creating it.
13572 2016-05-19  Martin Liska  <mliska@suse.cz>
13574         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
13575         auto_vec instead of vec.
13577 2016-05-19  Martin Liska  <mliska@suse.cz>
13579         * lto-section-in.c (lto_get_section_data): Call
13580         lto_check_version with additional argument.
13581         * lto-streamer.c (lto_check_version): Add new argument.
13582         * lto-streamer.h (lto_check_version): Likewise.
13584 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13586         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
13587         Don't add cost of inner memory when handling sign-extended loads.
13589 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13591         PR rtl-optimization/71148
13592         * cse.c (cse_main): Free dominance info.
13593         (rest_of_handle_cse): Don't free dominance info.
13594         (rest_of_handle_cse2): Likewise.
13595         (rest_of_handle_cse_after_global_opts): Likewise.
13597 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13599         PR target/71056
13600         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
13601         NULL_TREE early if NEON is not available.  Remove now redundant check
13602         in ARM_CHECK_BUILTIN_MODE.
13604 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
13606         PR sanitizer/64354
13607         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
13608         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
13609         * doc/cpp.texi: Document new macros.
13611 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
13613         PR tree-optimization/69848
13614         * tree-vect-loop.c (vectorizable_reduction): Don't factor
13615         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
13617 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
13619         * function.c (thread_prologue_and_epilogue_insn): Move the
13620         "goto epilogue_done" one block later.
13622 2016-05-19  Richard Biener  <rguenther@suse.de>
13624         PR tree-optimization/70729
13625         * passes.def: Move LIM pass before PRE.  Remove no longer
13626         required copyprop and move first DCE out of the loop pipeline.
13628 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
13630         PR driver/69265
13631         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
13632         (OBJS-libcommon-target): ...here.
13633         * opts-common.c: Include spellcheck.h.
13634         (cmdline_handle_error): Build a vec of valid options and use it
13635         to suggest provide hints for misspelled arguments.
13637 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
13639         PR c++/71100
13640         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
13641         lhs if it has TREE_ADDRESSABLE type.
13643 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
13645         PR target/71145
13646         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
13647         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
13649 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13651         PR ipa/69708
13652         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
13653         input for NOP_EXPR pass-through functions.
13654         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
13655         aggregate global constant VAR_DECLs in constant jump functions.
13657 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13659         PR ipa/69708
13660         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
13661         from TREE_READONLY parameters.
13663 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13665         PR ipa/69708
13666         * cgraph.h (cgraph_indirect_call_info): New field
13667         guaranteed_unmodified.
13668         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
13669         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13670         appropriate.
13671         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
13672         pass the parameter value to ipa_find_agg_cst_for_param.
13673         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
13674         guaranteed_unmodified, store AA results there instead of bailing out
13675         if present.
13676         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
13677         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
13678         (find_constructor_constant_at_offset): New function.
13679         (ipa_find_agg_cst_from_init): Likewise.
13680         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
13681         static initializers of contants, report back through a new paameter
13682         from_global_constant if that was the case.
13683         (try_make_edge_direct_simple_call): Also pass parameter value to
13684         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13685         appropriate.
13686         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
13687         (ipa_read_indirect_edge_info): Likewise.
13688         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
13689         (ipa_load_from_parm_agg): Likewise.
13691 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
13693         PR rtl-optimization/71150
13694         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
13695         check.
13697 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13699         PR target/70915
13700         * config/rs6000/constraints.md (wE constraint): New constraint
13701         for a vector constant that can be loaded with XXSPLTIB.
13702         (wM constraint): New constraint for a vector constant of a 1's.
13703         (wS constraint): New constraint for a vector constant that can be
13704         loaded with XXSPLTIB and a vector sign extend instruction.
13705         * config/rs6000/predicates.md (xxspltib_constant_split): New
13706         predicates for wE/wS constraints.
13707         (xxspltib_constant_nosplit): Likewise.
13708         (easy_vector_constant): Add support for constants that can be
13709         loaded via XXSPLTIB.
13710         (all_ones_constant): New predicate for vector constant with all
13711         1's set.
13712         (splat_input_operand): Add support for ISA 3.0 word splat operations.
13713         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
13714         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
13715         instruction and possibly with a sign extension.
13716         (output_vec_const_move): Add support for XXSPLTIB. If we are
13717         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
13718         instead of XXLXOR/XXLORC.
13719         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
13720         operations.
13721         (rs6000_legitimize_reload_address): Likewise.
13722         (rs6000_output_move_128bit): Use output_vec_const_move to emit
13723         constants.
13724         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
13725         combine VSX_M and VSX_M2 into one iterator.
13726         (VSX_M2): Likewise.
13727         (VSINT_84): New iterators for loading constants with XXSPLTIB.
13728         (VSINT_842): Likewise.
13729         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
13730         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
13731         XXSPLTIB instruction.
13732         (xxspltib_<mode>_nosplit): Likewise.
13733         (xxspltib_<mode>_split): New insn to load up constants with
13734         XXSPLTIB and a sign extend instruction.
13735         (vsx_mov<mode>): Replace single move that handled all vector types
13736         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
13737         moves (when -mvsx-timode is in effect) into the main vector
13738         moves.  Eliminate separate moves for <VSr> <VSa>, where the
13739         preferred register class (<VSr>) is listed first, and the
13740         secondary register class (<VSa>) is listed second with a '?' to
13741         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
13742         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
13743         that if the register was involved in a slow operation, the
13744         clear/set operation does not wait for the slow operation to
13745         finish.  Adjust the length attributes for 32-bit mode.  Use
13746         rs6000_output_move_128bit and drop the use of the string
13747         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
13748         spacing so that the alternatives and attributes don't generate
13749         long lines, and put things in columns, so that it is easier to
13750         match up the operands and attributes with the insn alternatives.
13751         (vsx_mov<mode>_64bit): Likewise.
13752         (vsx_mov<mode>_32bit): Likewise.
13753         (vsx_movti_64bit): Fold movti into normal vector moves.
13754         (vsx_movti_32bit): Likewise.
13755         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
13756         splat instructions.
13757         (vsx_splat_v4si_internal): Likewise.
13758         (vsx_splat_v4sf_internal): Likewise.
13759         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
13760         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
13761         extend vector elements.
13762         (vsx_sign_extend_hi_<mode>): Likewise.
13763         (vsx_sign_extend_si_v2di): Likewise.
13764         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
13765         declaration.
13766         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
13767         constraints.  Add trailing period to wL documentation.
13769 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
13771         PR middle-end/71020
13772         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
13773         * tree-dfa.c (replace_abnormal_ssa_names): New function.
13774         * tree-call-cdce.c: Include tree-dfa.h.
13775         (can_guard_call_p): New function, extracted from...
13776         (can_use_internal_fn): ...here.
13777         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
13778         and return void.
13779         (shrink_wrap_one_built_in_call): Likewise.
13780         (use_internal_fn): Likewise.
13781         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
13782         and return void.  Call replace_abnormal_ssa_names.
13783         (pass_call_cdce::execute): Check can_guard_call_p during the
13784         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
13785         will always change something.
13787 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13789         PR ipa/70646
13790         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
13791         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
13793 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13795         PR ipa/70646
13796         * ipa-inline.h (condition): New field size.
13797         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
13798         for comaprison and store it into the new condition.
13799         (evaluate_conditions_for_known_args): Use condition size to check
13800         access sizes for all but CHANGED conditions.
13801         (unmodified_parm_1): New parameter size_p, store access size into it.
13802         (unmodified_parm): Likewise.
13803         (unmodified_parm_or_parm_agg_item): Likewise.
13804         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
13805         (set_cond_stmt_execution_predicate): Extract access sizes and store
13806         them to conditions.
13807         (set_switch_stmt_execution_predicate): Likewise.
13808         (will_be_nonconstant_expr_predicate): Likewise.
13809         (will_be_nonconstant_predicate): Likewise.
13810         (inline_read_section): Stream condition size.
13811         (inline_write_summary): Likewise.
13813 2016-05-18  Richard Biener  <rguenther@suse.de>
13815         * tree-ssa-loop-im.c (determine_max_movement): Properly add
13816         condition cost to PHI cost instead of total_cost.
13818 2016-05-18  Martin Liska  <mliska@suse.cz>
13820         PR fortran/70856
13821         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
13822         merged variables.
13824 2016-05-18  Richard Biener  <rguenther@suse.de>
13826         * lto-streamer.h (LTO_major_version): Bump to 6.
13828 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
13830         * function.c (make_split_prologue_seq, make_prologue_seq,
13831         make_epilogue_seq): New functions, factored out from...
13832         (thread_prologue_and_epilogue_insns): Here.
13834 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
13836         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13837         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
13838         of before.  Add a comment.
13840 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
13842         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
13843         expression pointer, not pointer to the pointer.
13845 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
13847         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
13848         (avx2_pbroadcast<mode>): Add another alternative with v instead
13849         of x constraints in it, using <pbroadcast_evex_isa> isa.
13850         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
13852         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
13853         constraint x instead of v in second alternative, add avx512bw
13854         alternative.
13856         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
13857         constraint x instead of v in second alternative, add avx512bw
13858         alternative.
13860         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
13861         constraint x instead of v in second alternative, add avx512bw
13862         alternative.
13864         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
13865         avx512bw alternative.
13867 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13869         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
13870         array to 128 chars.
13871         (define_insn "*andnottf3"): Ditto.
13872         (define_insn "*<code><mode>3"/any_logic): Ditto.
13873         (define_insn "*<code>tf3"/any_logic): Ditto.
13874         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
13875         operand to block AVX-512VL insn variant emit when it is not enabled.
13877 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13879         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
13880         constraint fot SF mode.
13882 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
13883             Kirill Yukhin  <kirill.yukhin@intel.com>
13885         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
13886         modifiers.
13887         (define_insn "rsqrt14<mode>"): Ditto.
13888         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
13889         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13890         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
13891         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13892         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
13893         Ditto.
13894         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
13895         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
13896         * config/i386/i386.c (ix86_print_operand): Expand check for size
13897         override codes for Intel syntax.
13899 2016-05-18  Richard Biener  <rguenther@suse.de>
13901         PR tree-optimization/71168
13902         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
13903         initialization earlier.
13905 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
13907         * config/aarch64/aarch64-simd.md
13908         (aarch64_reduc_plus_internal<mode>): Rename to...
13909         (reduc_plus_scal): ...This, and remove previous implementation.
13911 2016-05-18  Richard Biener  <rguenther@suse.de>
13913         * passes.def: Put late dse and cd_dce in canonical order.
13915 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
13917         * ipa-inline-transform.c (preserve_function_body_p): Look for
13918         first non-thunk clone.
13919         (save_function_body): Save into first non-thunk.
13920         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
13921         up call stmt id.
13922         (lto_output_node): Inline thunks don't need body in every
13923         partition.
13924         * lto-streamer-in.c: Do not fixup thunk clones.
13925         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
13926         thunks.
13927         * tree-inline.c (copy_bb): Be prepared for target node to be new after
13928         folding suceeds.
13930 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13932         PR middle-end/63586
13933         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
13934         (reassociate_bb): Call transform_add_to_multiply.
13936 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13938         * config/aarch64/aarch64.c (all_extensions): Removed unused
13939         static variable.
13941 2016-05-17  Nathan Sidwell  <nathan@acm.org>
13943         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
13944         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
13946 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
13948         PR tree-optimization/54579
13949         PR middle-end/55299
13950         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
13952 2016-05-17  Marek Polacek  <polacek@redhat.com>
13954         PR ipa/71146
13955         * tree-inline.c (expand_call_inline): Call
13956         maybe_remove_unused_call_args.
13958 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
13960         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
13961         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
13962         * doc/md.texi (fmin@var{m}3): Likewise.
13964 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13966         * match.pd (X & C): New transformation.
13968 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13970         * match.pd (~X & Y): New transformation.
13972 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13974         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
13975         information for new SSA_NAME.
13976         (simplify_conversion_using_ranges): Get range through get_range_info
13977         instead of get_value_range.
13979 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13981         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
13982         Remove inline assembly.
13983         (vmvn_s16): Likewise.
13984         (vmvn_s32): Likewise.
13985         (vmvn_u8): Likewise.
13986         (vmvn_u16): Likewise.
13987         (vmvn_u32): Likewise.
13988         (vmvnq_s8): Likewise.
13989         (vmvnq_s16): Likewise.
13990         (vmvnq_s32): Likewise.
13991         (vmvnq_u8): Likewise.
13992         (vmvnq_u16): Likewise.
13993         (vmvnq_u32): Likewise.
13994         (vmvn_p8): Likewise.
13995         (vmvnq_p16): Likewise.
13997 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13999         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
14000         Use builtin.
14001         (vmul_n_s16): Likewise.
14002         (vmul_n_s32): Likewise.
14003         (vmul_n_u16): Likewise.
14004         (vmul_n_u32): Likewise.
14005         (vmulq_n_f32): Likewise.
14006         (vmulq_n_f64): Likewise.
14007         (vmulq_n_s16): Likewise.
14008         (vmulq_n_s32): Likewise.
14009         (vmulq_n_u16): Likewise.
14010         (vmulq_n_u32): Likewise.
14012 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14014         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
14015         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
14017 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
14019         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
14020         to *aarch64_fma4_elt_from_dup<mode>.
14021         (*aarch64_fnma4_elt_to_128df): Rename to
14022         *aarch64_fnma4_elt_from_dup<mode>.
14023         * config/aarch64/arm_neon.h (vfma_n_f64): New.
14024         (vfms_n_f32): Likewise.
14025         (vfms_n_f64): Likewise.
14026         (vfmsq_n_f32): Likewise.
14027         (vfmsq_n_f64): Likewise.
14029 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
14031         * wide-int.h: Change fixed_wide_int_storage from class to struct.
14033 2016-05-17  Richard Biener  <rguenther@suse.de>
14035         PR tree-optimization/71132
14036         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
14037         Only add control dependences for blocks in the loop.
14038         (build_rdg): Adjust.
14039         (generate_code_for_partition): Return whether loop should
14040         be destroyed and delay that.
14041         (distribute_loop): Likewise.
14042         (pass_loop_distribution::execute): Record loops to be destroyed
14043         and perform delayed destroying of loops.
14045 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14047         PR target/70809
14048         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
14050 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14052         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
14054 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
14056         PR target/71114
14057         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
14058         insertion point for instructions generated by validize_mem.
14060 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14062         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
14063         in brackets.
14065 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
14067         * config/aarch64/aarch64.c
14068         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
14069         rather than a macro.
14071 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14073         * doc/invoke.texi (AArch64 Options): Various updates.
14075 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14077         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
14078         into instrumentation thunks.
14079         * cif-code.def (CIF_CHKP): New.
14081 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
14083         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
14085 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14087         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
14088         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
14090 2016-05-16  Marek Polacek  <polacek@redhat.com>
14092         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
14093         commentary.
14095 2016-05-16  Martin Jambor  <mjambor@suse.cz>
14097         PR hsa/70857
14098         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
14099         the outlined kernel function.
14101 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
14103         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
14104         (ISA_HAS_DLSA): Ditto.
14106 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14108         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
14110 2016-05-16  Nathan Sidwell  <nathan@acm.org>
14112         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
14113         (nvptx_name_replacement): Restore.  Add comment.
14114         (write_fn_proto, write_fn_proto_from_insn,
14115         nvptx_output_call_insn): Restore
14116         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
14118 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14120         * config/aarch64/aarch64.md
14121         (add<mode>3_compareC_cconly_imm): Remove use of %w.
14122         (add<mode>3_compareC_imm): Likewise.
14123         (<optab>si3_uxtw): Split into register and immediate variants.
14124         (andsi3_compare0_uxtw): Likewise.
14125         (and<mode>3_compare0): Likewise.
14126         (and<mode>3nr_compare0): Likewise.
14127         (stack_protect_test_<mode>): Don't use %x for memory operands.
14129 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14131         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14133 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14135         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14136         Split integer shifts into shift_reg and bfm.
14137         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14138         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14139         (ror<mode>3_insn): Likewise.
14140         (<optab>si3_insn_uxtw): Likewise.
14141         (<optab><mode>3_insn): Change to rotate_imm.
14142         (extr<mode>5_insn_alt): Likewise.
14143         (extrsi5_insn_uxtw): Likewise.
14144         (extrsi5_insn_uxtw_alt): Likewise.
14146 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14148         * doc/tm.texi: Regenerate.
14149         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14150         (TARGET_INVALID_RETURN_TYPE): Remove.
14151         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14152         TARGET_INVALID_RETURN_TYPE.
14153         * target.def (invalid_parameter_type): Remove.
14154         (invalid_return_type): Remove.
14156 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14158         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14159         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14160         calls from thunk.
14161         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14162         gimple body.
14163         (preserve_function_body_p): No need to preserve function body
14164         * cif-codes.def (CIF_THUNK): Remove.
14165         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14167 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14169         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14171 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14173         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14174         for thunks.
14176 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14178         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14179         (inline_small_functions): Do not look for function symbol when
14180         resetting caches.
14182 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14184         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14185         of inline thunks
14187 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14188             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14189             Jiong Wang  <jiong.wang@arm.com>
14191         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14192         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14193         Define __ARM_FP16_ARGS when appropriate.
14194         * config/arm/arm.c (arm_invalid_parameter_type): Remove
14195         declaration.
14196         (arm_invalid_return_type): Likewise.
14197         (TARGET_INVALID_PARAMETER_TYPE): Remove.
14198         (TARGET_INVALID_RETURN_TYPE): Remove.
14199         (aapcs_vfp_sub_candidate): Allow HFmode.
14200         (aapcs_vfp_allocate): Add comment.  Support HFmode.
14201         (aapcs_vfp_allocate_return_reg): Likewise.
14202         (struct aapcs_cp_arg_layout): Slightly reword comments for
14203         is_return_candidate and allocate_return_reg.
14204         (output_mov_vfp): Update assert.
14205         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14206         condition.
14207         (arm_invalid_parameter_type): Remove.
14208         (amr_invalid_return_type): Remove.
14209         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14210         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14211         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14213 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14215         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14216         * config/aarch64/arch64-protos.h
14217         (aarch64_legitimize_reload_address): Remove.
14218         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14219         Remove.
14221 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14223         * configure.ac: Add ACX_NONCANONICAL_HOST.
14224         * configure: Regenerate.
14225         * Makefile.in: Set host_noncanonical.
14227 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
14229         PR target/71097
14230         * config/i386/i386.md (*movtf_internal): Before register allocation,
14231         do not allow FP constants for CM_MEDIUM memory model, allow only
14232         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14233         (*movxf_internal): Ditto.
14234         (*movdf_internal): Ditto.
14235         (*movsf_internal): Ditto.
14237 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
14239         PR rtl-optimization/67483
14240         * combine.c (make_compound_operation): Don't call extract_left_shift
14241         with negative shift amounts.
14243 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
14245         PR bootstrap/71071
14246         * fold-const.c (fold_checksum_tree): Allow modification
14247         of TYPE_ALIAS_SET during folding.
14249         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14250         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14251         (ix86_split_to_parts): Likewise.  Fix up formatting.
14253 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14255         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14256         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14257         printf format.
14259 2016-05-13  Nathan Sidwell  <nathan@acm.org>
14261         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14262         (nvptx_name_replacement): Delete.
14263         (write_fn_proto, write_fn_proto_from_insn,
14264         nvptx_output_call_insn): Remove nvptx_name_replacement call.
14265         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14266         * langhooks.c (add_builtin_funcction_common): Call
14267         targetm.mangle_decl_assembler_name.
14269         * config/nvptx/nvptx.c (write_fn_proto): Handle
14270         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14272 2016-05-13  Martin Liska  <mliska@suse.cz>
14274         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14275         and PRIu64 in printf format.
14277 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14279         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14280         comment.
14282 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14284         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14285         Change --param max-completely-peeled-times to
14286         --param max-completely-peel-times in dump file printing.
14288 2016-05-13  Richard Biener  <rguenther@suse.de>
14290         PR tree-optimization/42587
14291         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14292         (find_bswap_or_nop_1): Likewise.
14293         (bswap_replace): Likewise.
14295 2016-05-13  Martin Liska  <mliska@suse.cz>
14297         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14298         Initialize a variable with default value.
14300 2016-05-13  Martin Liska  <mliska@suse.cz>
14302         * doc/invoke.texi: Enhance explanation of error recovery
14303         of sanitizers.
14305 2016-05-13  Martin Liska  <mliska@suse.cz>
14307         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14308         (struct cost_pair): Change inv_expr_id (int) to inv_expr
14309         (iv_inv_expr_ent *).
14310         (struct iv_inv_expr_ent): Comment struct fields.
14311         (sort_iv_inv_expr_ent): New function.
14312         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14313         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14314         a hash_map between iv_inv_expr_ent and number of usages.
14315         (niter_for_exit): Fix coding style.
14316         (tree_ssa_iv_optimize_init): Use renamed variable.
14317         (determine_base_object): Fix coding style.
14318         (alloc_iv): Likewise.
14319         (find_interesting_uses_outside): Likewise.
14320         (add_candidate_1): Likewise.
14321         (add_standard_iv_candidates): Likewise.
14322         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14323         (prepare_decl_rtl): Fix coding style.
14324         (get_address_cost): Likewise.
14325         (get_shiftadd_cost): Likewise.
14326         (force_expr_to_var_cost): Likewise.
14327         (compare_aff_trees): Likewise.
14328         (get_expr_id): Restructure the function.
14329         (get_loop_invariant_expr_id): Renamed to
14330         get_loop_invariant_expr.
14331         (get_computation_cost_at): Replace usage of inv_expr_id with
14332         inv_expr.
14333         (get_computation_cost): Likewise.
14334         (determine_group_iv_cost_generic): Likewise.
14335         (determine_group_iv_cost_address): Likewise.
14336         (iv_period): Fix coding style.
14337         (iv_elimination_compare_lt): Likewise.
14338         (may_eliminate_iv): Likewise.
14339         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
14340         inv_expr.
14341         (determine_group_iv_costs): Dump invariant expressions.
14342         (iv_ca_recount_cost): Use the newly added hash_map.
14343         (iv_ca_set_remove_invariants): Fix coding style.
14344         (iv_ca_set_add_invariants): Fix coding style.
14345         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14346         invariants.
14347         (iv_ca_set_cp): Likewise.
14348         (iv_ca_new): Initialize the newly added hash_map and remove
14349         initialization of fields.
14350         (iv_ca_free): Delete the hash_map.
14351         (iv_ca_dump): Dump invariant expressions.
14352         (iv_ca_extend): Fix coding style.
14353         (try_add_cand_for): Likewise.
14354         (create_new_ivs): Dump information about # of avg iterations and
14355         # of used invariant expressions.
14356         (rewrite_use_compare): Fix coding style.
14357         (free_loop_data): Set default value for max_inv_expr_id.
14359 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14361         * cse.c (rest_of_handle_cse): Use cleanup_cfg
14362         returned value cse_cfg_altered computation.
14363         (rest_of_handle_cse2): Likewise.
14364         (rest_of_handle_cse_after_global_opts): Likewise.
14366 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14368         PR target/53440
14369         * config/arm/arm.c (arm32_output_mi_thunk): New.
14370         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14371         to split Thumb1 vs TARGET_32BIT functionality.
14372         (arm_thumb1_mi_thunk): New.
14374 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14376         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14377         to true.
14379 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14381         PR target/71080
14382         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14384 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
14386         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14387         (expand_builtin_trap): Emit a regular call.
14388         (set_builtin_user_assembler_name): Remove obsolete cases.
14389         * dse.c (scan_insn): Adjust.
14390         * except.c: Include calls.h.
14391         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14392         emit a regular call to setjmp.
14393         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14394         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14395         (emit_block_move_via_libcall): Delete.
14396         (block_move_fn): Delete.
14397         (init_block_move_fn): Likewise.
14398         (emit_block_move_libcall_fn): Likewise.
14399         (emit_block_op_via_libcall): New function.
14400         (set_storage_via_libcall): Tidy up and use memset builtin.
14401         (block_clear_fn): Delete.
14402         (init_block_clear_fn): Likewise.
14403         (clear_storage_libcall_fn): Likewise.
14404         (expand_assignment): Call emit_block_move_via_libcall.
14405         Do not include gt-expr.h.
14406         * expr.h (emit_block_op_via_libcall): Declare.
14407         (emit_block_copy_via_libcall): New inline function.
14408         (emit_block_move_via_libcall): Likewise.
14409         (emit_block_comp_via_libcall): Likewise.
14410         (block_clear_fn): Delete.
14411         (init_block_move_fn): Likewise.
14412         (init_block_clear_fn): Likewise.
14413         (emit_block_move_via_libcall): Likewise.
14414         (set_storage_via_libcall): Add default parameter value.
14415         * libfuncs.h (enum libfunc_index): Remove obsolete values.
14416         (abort_libfunc): Delete.
14417         (memcpy_libfunc): Likewise.
14418         (memmove_libfunc): Likewise.
14419         (memcmp_libfunc): Likewise.
14420         (memset_libfunc): Likewise.
14421         (setbits_libfunc): Likewise.
14422         (setjmp_libfunc): Likewise.
14423         (longjmp_libfunc): Likewise.
14424         (profile_function_entry_libfunc): Likewise.
14425         (profile_function_exit_libfunc): Likewise.
14426         (gcov_flush_libfunc): Likewise.
14427         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14428         and DECL_VISIBILITY on the declaration.
14429         (init_optabs): Do not initialize obsolete libfuncs.
14430         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14431         * tree-core.h (ECF_RET1): Define.
14432         (ECF_TM_PURE): Adjust.
14433         (ECF_TM_BUILTIN): Likewise.
14434         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14435         (build_common_builtin_nodes): Initialize abort builtin.
14436         Add ECF_RET1 on memcpy, memmove and memset builtins.
14437         Pass final flags for alloca and alloca_with_align builtins.
14438         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14439         obsolete builtins.
14440         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
14441         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
14442         set_storage_via_libcall and call emit_block_copy_via_libcall.
14444 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
14446         * config/i386/i386.md (*call_got_x32): Change operand 0 to
14447         DImode before it is passed to ix86_output_call_operand.
14448         (*call_value_got_x32): Ditto for operand 1.
14450 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
14452         PR rtl-optimization/70904
14453         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
14454         reload for wide mode.
14456 2016-05-12  Marek Polacek  <polacek@redhat.com>
14458         PR c/70756
14459         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
14460         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
14461         * langhooks.h (incomplete_type_error): Likewise.
14462         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
14463         parameter, pass it down to incomplete_type_error.
14464         * tree.h (size_in_bytes): New inline overload.
14465         (size_in_bytes_loc): Renamed from size_in_bytes.
14467 2016-05-12  Richard Biener  <rguenther@suse.de>
14469         PR tree-optimization/71059
14470         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
14471         nary before looking up or entering the expression into the VN
14472         hashes.
14473         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
14474         Make sure to re-use NARYs without result as inserted by
14475         phi-translation.
14477 2016-05-12  Richard Biener  <rguenther@suse.de>
14479         PR tree-optimization/71062
14480         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14481         field.
14482         * tree-ssa-structalias.c (set_uids_in_ptset): Set
14483         vars_contains_restrict if the var is a restrict tag.
14484         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
14485         do not disambiguate pointers against it.
14486         (dump_points_to_solution): Re-structure and adjust for new
14487         vars_contains_restrict flag.
14488         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
14490 2016-05-12  Martin Liska  <mliska@suse.cz>
14492         * doc/invoke.texi: Explain connection between
14493         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
14495 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
14497         PR tree-optimization/71006
14498         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14499         consider COND_EXPR as a mask producer.
14501 2016-05-12  Marek Polacek  <polacek@redhat.com>
14503         PR driver/71063
14504         * opts.c (common_handle_option): Detect missing argument for --help^.
14506 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14508         PR target/70830
14509         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
14510         when popping the PC and within an interrupt handler routine.
14511         Add missing tab to output of "ldmfd".
14512         (output_return_instruction): Output LDMFD with SP update rather
14513         than POP when returning from interrupt handler.
14515 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
14517         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
14518         TARGET_64BIT && TARGET_AVX512DQ.
14519         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
14520         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
14521         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
14522         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
14523         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
14524         (*vec_extractv4si_zext): Add avx512dq alternative.
14525         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
14526         use v instead of x constraint in other alternatives where possible.
14528         * config/i386/sse.md (sse2_loadld): Use v instead of x
14529         constraint in alternatives 0,1,4.
14531         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
14532         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
14533         v constraints instead of x and <pinsr_evex_isa> isa attribute.
14535         PR target/71019
14536         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
14537         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
14538         is not emitted unless TARGET_AVX512BW.
14539         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
14540         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
14541         for the result operand.
14543         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
14544         constraint instead of x in avx alternatives.  Use maybe_evex instead
14545         of vex prefix.
14547         * config/i386/constraints.md (Yv): New constraint.
14548         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
14549         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
14550         * config/i386/i386.md (avx512fvecmode): New mode attr.
14551         (*pushtf): Use v constraint instead of x.
14552         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
14553         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
14554         (*absneg<mode>2): Use Yv constraint instead of x constraint.
14555         (*absnegtf2_sse): Likewise.
14556         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
14557         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
14558         avx512f alternatives.
14559         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
14561 2016-05-12  Richard Biener  <rguenther@suse.de>
14563         PR tree-optimization/71060
14564         * tree-data-ref.c (initialize_data_dependence_relation): Do not
14565         require exact match of DR_BASE_OBJECT but only matching address and
14566         type.
14568 2016-05-12  Richard Biener  <rguenther@suse.de>
14570         PR tree-optimization/70986
14571         * cfganal.c: Include cfgloop.h.
14572         (dfs_find_deadend): Prefer to take edges exiting loops.
14574 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14576         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
14577         compile and run time.
14579 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
14581         PR c/43651
14582         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
14584 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
14586         * config/i386/i386.c (legitimize_pic_address): Use
14587         copy_to_suggested_reg instead of gen_movsi.
14589 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14591         * config/rs6000/predicates.md (quad_memory_operand): Move most of
14592         the code into quad_address_p and call it to share code with
14593         vsx_quad_dform_memory_operand.
14594         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
14595         d-form support.
14596         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
14597         bit instead of being a separate word.  Split -mpower9-dform into
14598         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14599         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
14600         for the register class supporting 128-bit quad word memory offsets.
14601         (mode_supports_vsx_dform_quad): Helper function to return if the
14602         register class uses quad word memory offsets.
14603         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
14604         (rs6000_debug_reg_global): Always print if we are using LRA or not.
14605         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
14606         instructions are enabled, set up the appropriate addr_masks for
14607         128-bit types.
14608         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
14609         -mpower9-dform-scalar, instead of -mpower9-dform.
14610         (rs6000_option_override_internal): Split -mpower9-dform into two
14611         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
14612         -mpower9-dform switch sets or clears both.  If we are not using
14613         the LRA register allocator, do not enable -mpower9-dform-vector by
14614         default.  If we are using LRA, enable -mpower9-dform-vector and
14615         -mvsx-timode if it is appropriate.  Issue a warning if either
14616         -mpower9-dform-vector or -mvsx-timode are explicitly used without
14617         enabling LRA.
14618         (quad_address_offset_p): New helper function to return if the
14619         offset is legal for quad word memory instructions.
14620         (quad_address_p): New function to determin if GPR or vector
14621         register quad word memory addresses are legal.
14622         (mem_operand_gpr): Validate quad word address offsets.
14623         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
14624         d-form (register + offset) instructions.
14625         (offsettable_ok_by_alignment): Likewise.
14626         (rs6000_legitimate_offset_address_p): Likewise.
14627         (legitimate_lo_sum_address_p): Likewise.
14628         (rs6000_legitimize_address): Likewise.
14629         (rs6000_legitimize_reload_address): Add more debug statements for
14630         -mdebug=addr.
14631         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
14632         d-form instructions.
14633         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
14634         d-form instructions.  Distinguish different cases in debug
14635         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
14636         d-form instructions.
14637         (rs6000_preferred_reload_class): Likewise.
14638         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
14639         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
14640         of the ISA 2.06 indexed memory instructions.
14641         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
14642         use them to save/restore the saved vector registers instead of
14643         using Altivec instructions.
14644         (rs6000_emit_epilogue): Likewise.
14645         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
14646         (rs6000_opt_masks): Split -mpower9-dform into
14647         -mpower9-dform-scalar and -mpower9-dform-vector.
14648         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
14649         was not selected.
14650         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
14651         ISA 3.0 vector indexed memory instructions, and fold the code into
14652         the normal mov<mode> patterns.
14653         (p9_vecstore_<mode>): Likewise.
14654         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
14655         instructions.
14656         (vsx_movti_64bit): Likewise.
14657         (vsx_movti_32bit): Likewise.
14658         * config/rs6000/constraints.md (wO constraint): New constraint for
14659         ISA 3.0 vector d-form support.
14660         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
14661         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
14662         include -mpower9-dform-vector until we switch over to LRA.
14663         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
14664         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14665         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
14666         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
14667         for -mpower9-dform and -mlra.
14668         * doc/md.texi (wO constraint): Document wO constraint.
14670 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
14672         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
14673         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
14674         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
14675         Move handling of non-insn arguments inline into the sole user:
14676         (output_trans_func): ...here.
14677         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
14678         in emitted function prototype.
14679         (output_internal_insn_latency_func): Ditto.  Simplify.
14680         (output_internal_maximal_insn_latency_func): Ditto.  Delete
14681         always-unused argument.
14682         (output_insn_latency_func): Ditto.
14683         (output_maximal_insn_latency_func): Ditto.
14685 2016-05-11  Richard Biener  <rguenther@suse.de>
14687         PR tree-optimization/71055
14688         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
14689         sth with precision not equal to access size verify we don't chop
14690         off bits.
14692 2016-05-11  Richard Biener  <rguenther@suse.de>
14694         PR debug/71057
14695         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
14696         (dwarf2out_finish): Move retry_incomplete_types call ...
14697         (dwarf2out_early_finish): ... here.
14699 2016-05-11  Richard Biener  <rguenther@suse.de>
14701         PR middle-end/71002
14702         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
14703         if the langhook insists on it.
14704         * fold-const.c (make_bit_field_ref): Add arg for the original
14705         reference and preserve its alias-set.
14706         (decode_field_reference): Take exp by reference and adjust it
14707         to the original memory reference.
14708         (optimize_bit_field_compare): Adjust callers.
14709         (fold_truth_andor_1): Likewise.
14710         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
14712 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
14714         PR middle-end/70807
14715         * cfgrtl.h (delete_insn_and_edges): Now return bool.
14716         * cfgrtl.c (delete_insn_and_edges): Likewise.
14717         * config/i386/i386.c (convert_scalars_to_vector): Remove
14718         redundant code.
14719         * cse.c (cse_insn): Compute cse_cfg_altered.
14720         (delete_trivially_dead_insns): Likewise.
14721         (cse_cc_succs): Likewise.
14722         (rest_of_handle_cse): Free dominance info if required.
14723         (rest_of_handle_cse2): Likewise.
14724         (rest_of_handle_cse_after_global_opts): Likewise.
14726 2016-05-11  Alan Modra  <amodra@gmail.com>
14728         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
14729         abi_v4_pass_in_fpr): New functions.
14730         (rs6000_function_arg_boundary): Exclude complex IBM long double
14731         from 64-bit alignment when ABI_V4.
14732         (rs6000_function_arg, rs6000_function_arg_advance_1,
14733         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
14735 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
14737         PR rtl-optimization/71028
14738         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
14739         jump with just a return in the fallthrough block if the branch
14740         block contains just a return as well.
14742 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
14744         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
14745         * match.pd ((X & Y) ^ Y): ... this.
14746         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
14747         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
14749 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
14751         * read-md.c (require_char_ws): New function.
14752         (read_string): Simplify using require_char_ws.
14753         (handle_constants): Likewise.
14754         (handle_enum): Likewise.
14755         (handle_file): Likewise.
14756         * read-md.h (require_char_ws): New declaration.
14757         * read-rtl.c (read_conditions): Simplify using require_char_ws.
14758         (read_mapping): Likewise.
14759         (read_rtx_code): Likewise.
14760         (read_nested_rtx): Likewise.
14762 2016-05-10  James Norris  <jnorris@codesourcery.com>
14764         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
14765         if offloading is enabled and -fopenacc or -fopenmp is specified.
14766         (CRTOFFLOADEND): Likewise.
14767         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
14768         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
14770 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
14772         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
14773         gotoff_operand code paths.  Use copy_to_suggested_regs and
14774         expand_simple_binop where appropriate.  Cleanup.
14776 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14778         PR target/70799
14779         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
14780         integer constants.
14781         (dimode_scalar_chain::vector_const_cost): New.
14782         (dimode_scalar_chain::compute_convert_gain): Handle constants.
14783         (dimode_scalar_chain::convert_op): Likewise.
14784         (dimode_scalar_chain::convert_insn): Likewise.
14786 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
14788         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
14789         unary operation, not a binary one.
14791 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14793         PR middle-end/70877
14794         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
14795         calls with type casted fndecl.
14797 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14799         PR tree-optimization/70786
14800         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
14801         * calls.c (initialize_argument_information): Bind bounds
14802         with corresponding args passed by reference.
14804 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
14806         PR target/70927
14807         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
14808         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
14809         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
14810         accordingly.
14812 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14814         PR target/70963
14815         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
14816         code for a zero scale factor.
14817         (vsx_xvcvdpuxds_scale): Likewise.
14819 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
14821         * diagnostic-show-locus.c (layout::layout): Call show_ruler
14822         if show_ruler_p was set on the context.
14823         (layout::show_ruler): New method.
14824         * diagnostic.h (struct diagnostic_context): Add field
14825         "show_ruler_p".
14827 2016-05-10  Richard Biener  <rguenther@suse.de>
14829         PR tree-optimization/71039
14830         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
14831         (chk_uses): New function.
14832         (propagate_with_phi): Verify we can safely replicate the lhs of an
14833         aggregate assignment on all incoming edges.
14835 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
14837         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
14838         Forward declare.
14839         (rx_atomic_sequence): New class.
14840         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
14841         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
14842         non-inline.
14843         (rx_atomic_sequence::rx_atomic_sequence,
14844         rx_atomic_sequence::~rx_atomic_sequence): New functions.
14845         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
14846         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
14847         CTRLREG_INTB): New constants.
14848         (FETCHOP): New code iterator.
14849         (fethcop_name, fetchop_name2): New iterator code attributes.
14850         (QIHI): New mode iterator.
14851         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
14852         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
14853         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
14855 2016-05-10  Martin Liska  <mliska@suse.cz>
14857         * tree-inline.c (remap_dependence_clique): Do not remap
14858         debugging statements.
14860 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14862         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
14863         ("*fixuns_truncdfdi2_z13")
14864         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
14865         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
14866         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
14868 2016-05-10  Richard Biener  <rguenther@suse.de>
14870         PR tree-optimization/70497
14871         PR tree-optimization/28367
14872         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
14873         split out from ...
14874         (visit_reference_op_load): ... here.
14875         (vn_reference_lookup_3): Use it to handle subreg-like accesses
14876         with simplified BIT_FIELD_REFs.
14877         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
14878         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
14879         correctly.
14881 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
14883         * dwarf2out.c (add_abstract_origin_attribute): Adjust
14884         documentation comment.  For BLOCK nodes, add a
14885         DW_AT_abstract_origin attribute that points to the DIE generated
14886         for the origin BLOCK.
14887         (gen_lexical_block_die): Call add_abstract_origin_attribute for
14888         blocks from inlined functions.
14890 2016-05-10  Alan Modra  <amodra@gmail.com>
14892         PR target/70947
14893         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
14894         regrename modifying insns saving lr before __morestack call.
14895         * config/rs6000/rs6000.md (split_stack_return): Similarly for
14896         insns restoring lr after __morestack call.
14898 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
14900         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
14901         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
14902         expanders.
14903         * config/i386/sse.md (vec_interleave_high<mode>,
14904         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
14905         <avx512>_vpermt2var<mode>3_maskz): Likewise.
14907 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
14909         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
14910         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
14911         parallel reassociation for power8 and forward.
14913 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
14915         * config/i386/i386.md (absneg splitters with general regs): Use
14916         general_reg_operand predicate.
14917         (btsq peephole2): Use x86_64_immediate_operand to check if new
14918         value is suitable for immediate operand.  Generate emitted insn
14919         using RTL expressions.
14920         (btcq peephole2): Ditto.
14921         (btrq peephole2): Ditto.  Generate correct immediate operand
14922         for AND masking.
14924 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14926         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
14927         bitpos.
14929 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14931         * tree-affine.c (wide_int_constant_multiple_p): Add missing
14932         pointer dereference.
14934 2016-05-09  Richard Biener  <rguenther@suse.de>
14936         PR tree-optimization/70985
14937         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
14938         op0 isn't a gimple register.
14940 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
14942         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
14943         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
14944         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
14945         (i6400_fpu_mult): New cpu units.
14946         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
14947         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
14948         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
14949         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
14950         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
14951         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
14952         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
14953         (i6400_msa_long_float4, i6400_msa_long_float5)
14954         (i6400_msa_long_float8, i6400_msa_fdiv_df)
14955         (i6400_msa_fdiv_sf): New reservations.
14956         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
14957         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
14958         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
14959         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
14960         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
14961         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
14962         (msa_short_cmp, msa_short_float2, msa_short_logic3)
14963         (msa_short_store4, msa_long_load, msa_short_store)
14964         (msa_long_logic, msa_long_float2, msa_long_float4)
14965         (msa_long_float5, msa_long_float8, msa_long_mult)
14966         (msa_long_fdiv, msa_long_div): New reservations.
14968 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
14969             Sameera Deshpande  <sameera.deshpande@imgtec.com>
14970             Matthew Fortune  <matthew.fortune@imgtec.com>
14971             Graham Stott  <graham.stott@imgtec.com>
14972             Chao-ying Fu  <chao-ying.fu@imgtec.com>
14974         * config.gcc: Add MSA header file for mips*-*-* target.
14975         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
14976         (Ubv8i, Urv8):  New constraints.
14977         * config/mips/mips-ftypes.def: Add function types for MSA
14978         builtins.
14979         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
14980         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
14981         * config/mips/mips-msa.md: New file.
14982         * config/mips/mips-protos.h
14983         (mips_split_128bit_const_insns): New prototype.
14984         (mips_msa_idiv_insns): Likewise.
14985         (mips_split_128bit_move): Likewise.
14986         (mips_split_128bit_move_p): Likewise.
14987         (mips_split_msa_copy_d): Likewise.
14988         (mips_split_msa_insert_d): Likewise.
14989         (mips_split_msa_fill_d): Likewise.
14990         (mips_expand_msa_branch): Likewise.
14991         (mips_const_vector_same_val_p): Likewise.
14992         (mips_const_vector_same_bytes_p): Likewise.
14993         (mips_const_vector_same_int_p): Likewise.
14994         (mips_const_vector_shuffle_set_p): Likewise.
14995         (mips_const_vector_bitimm_set_p): Likewise.
14996         (mips_const_vector_bitimm_clr_p): Likewise.
14997         (mips_msa_vec_parallel_const_half): Likewise.
14998         (mips_msa_output_division): Likewise.
14999         (mips_ldst_scaled_shift): Likewise.
15000         (mips_expand_vec_cond_expr): Likewise.
15001         * config/mips/mips.c (enum mips_builtin_type): Add
15002         MIPS_BUILTIN_MSA_TEST_BRANCH.
15003         (mips_gen_const_int_vector_shuffle): New prototype.
15004         (mips_const_vector_bitimm_set_p): New function.
15005         (mips_const_vector_bitimm_clr_p): Likewise.
15006         (mips_const_vector_same_val_p): Likewise.
15007         (mips_const_vector_same_bytes_p): Likewise.
15008         (mips_const_vector_same_int_p): Likewise.
15009         (mips_const_vector_shuffle_set_p): Likewise.
15010         (mips_symbol_insns): Forbid loading symbols via immediate for
15011         MSA.
15012         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
15013         stores.
15014         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
15015         MSA.
15016         (mips_lx_address_p): Add support load indexed address for MSA.
15017         (mips_address_insns): Add calculation of instructions needed for
15018         stores and loads for MSA.
15019         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
15020         CONST_VECTOR for MSA and let it fall through.
15021         (mips_ldst_scaled_shift): New function.
15022         (mips_subword_at_byte): Likewise.
15023         (mips_msa_idiv_insns): Likewise.
15024         (mips_legitimize_move): Validate MSA moves.
15025         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
15026         calculation of costs for MSA division.
15027         (mips_split_move_p): Check if MSA moves need splitting.
15028         (mips_split_move): Split MSA moves if necessary.
15029         (mips_split_128bit_move_p): New function.
15030         (mips_split_128bit_move): Likewise.
15031         (mips_split_msa_copy_d): Likewise.
15032         (mips_split_msa_insert_d): Likewise.
15033         (mips_split_msa_fill_d): Likewise.
15034         (mips_output_move): Handle MSA moves.
15035         (mips_expand_msa_branch): New function.
15036         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
15037         Reinstate 'y' modifier.
15038         (mips_file_start): Add MSA .gnu_attribute.
15039         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
15040         FPRs.
15041         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
15042         (mips_class_max_nregs): Add register size for MSA supported mode.
15043         (mips_cannot_change_mode_class): Allow conversion between MSA
15044         vector modes and TImode.
15045         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
15046         instruction.
15047         (mips_secondary_reload_class): Force MSA loads/stores via memory.
15048         (mips_preferred_simd_mode): Add preffered modes for MSA.
15049         (mips_vector_mode_supported_p): Add MSA supported modes.
15050         (mips_autovectorize_vector_sizes): New function.
15051         (mips_msa_output_division): Likewise.
15052         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
15053         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
15054         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
15055         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
15056         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
15057         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
15058         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
15059         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
15060         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
15061         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
15062         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
15063         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
15064         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
15065         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
15066         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
15067         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
15068         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
15069         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
15070         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
15071         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
15072         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
15073         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
15074         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
15075         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
15076         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
15077         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
15078         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
15079         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
15080         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
15081         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
15082         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
15083         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
15084         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
15085         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
15086         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
15087         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
15088         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
15089         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
15090         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
15091         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
15092         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
15093         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
15094         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
15095         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
15096         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15097         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15098         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15099         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15100         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
15101         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
15102         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
15103         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
15104         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
15105         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
15106         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
15107         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
15108         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
15109         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
15110         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
15111         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
15112         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
15113         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
15114         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
15115         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
15116         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
15117         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
15118         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
15119         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
15120         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15121         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15122         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15123         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15124         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15125         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15126         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15127         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15128         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15129         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15130         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15131         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15132         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15133         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15134         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15135         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15136         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15137         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15138         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15139         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15140         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15141         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15142         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15143         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15144         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15145         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15146         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15147         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15148         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15149         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15150         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15151         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15152         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15153         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15154         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15155         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15156         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15157         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15158         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15159         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15160         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15161         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15162         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15163         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15164         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15165         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15166         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15167         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15168         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15169         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15170         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15171         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15172         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15173         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15174         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15175         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15176         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15177         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15178         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15179         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15180         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15181         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15182         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15183         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15184         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15185         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15186         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15187         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15188         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15189         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15190         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15191         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15192         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15193         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15194         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15195         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15196         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15197         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15198         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15199         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15200         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15201         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15202         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15203         move_v builtins.
15204         (mips_get_builtin_decl_index): New array.
15205         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15206         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15207         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15208         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15209         (mips_init_builtins): Initialize mips_get_builtin_decl_index
15210         array.
15211         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15212         hook.
15213         (mips_expand_builtin_insn): Prepare operands for
15214         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15215         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15216         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15217         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15218         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15219         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15220         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15221         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15222         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15223         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15224         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15225         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15226         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15227         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15228         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15229         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15230         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15231         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15232         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15233         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15234         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15235         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15236         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15237         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15238         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15239         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15240         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15241         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15242         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15243         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15244         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15245         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15246         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15247         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15248         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15249         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15250         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15251         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15252         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15253         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15254         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15255         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15256         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15257         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15258         These are set implicitly and an error is reported if overridden.
15259         (mips_expand_builtin_msa_test_branch): New function.
15260         (mips_expand_msa_shuffle): Likewise.
15261         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15262         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15263         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15264         (mips_expand_vec_unpack): Add support for MSA.
15265         (mips_expand_vector_init): Likewise.
15266         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15267         instead of const0_rtx.
15268         (mips_msa_vec_parallel_const_half): New function.
15269         (mips_gen_const_int_vector): Likewise.
15270         (mips_gen_const_int_vector_shuffle): Likewise.
15271         (mips_expand_msa_cmp): Likewise.
15272         (mips_expand_vec_cond_expr): Likewise.
15273         * config/mips/mips.h
15274         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15275         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15276         specified.
15277         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15278         (ISA_HAS_MSA): New macro.
15279         (UNITS_PER_MSA_REG): Likewise.
15280         (BITS_PER_MSA_REG): Likewise.
15281         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15282         (MSA_REG_FIRST): New macro.
15283         (MSA_REG_LAST): Likewise.
15284         (MSA_REG_NUM): Likewise.
15285         (MSA_REG_P): Likewise.
15286         (MSA_REG_RTX_P): Likewise.
15287         (MSA_SUPPORTED_MODE_P): Likewise.
15288         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15289         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15290         * config/mips/mips.md: Include mips-msa.md.
15291         (alu_type): Add simd_add.
15292         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15293         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15294         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15295         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15296         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15297         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15298         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15299         simd_move, simd_load, simd_store.  Choose "multi" for moves
15300         for "qword_mode".
15301         (qword_mode): New attribute.
15302         (insn_count): Add instruction count for quad moves.
15303         Increase the count for MIPS SIMD division.
15304         (UNITMODE): Add UNITMODEs for vector types.
15305         (addsub): New code iterator.
15306         * config/mips/mips.opt (mmsa): New option.
15307         * config/mips/msa.h: New file.
15308         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15309         specified.
15310         * config/mips/mti-linux.h: Likewise.
15311         * config/mips/predicates.md
15312         (const_msa_branch_operand): New constraint.
15313         (const_uimm3_operand): Likewise.
15314         (const_uimm4_operand): Likewise.
15315         (const_uimm5_operand): Likewise.
15316         (const_uimm8_operand): Likewise.
15317         (const_imm5_operand): Likewise.
15318         (aq10b_operand): Likewise.
15319         (aq10h_operand): Likewise.
15320         (aq10w_operand): Likewise.
15321         (aq10d_operand): Likewise.
15322         (const_m1_operand): Likewise.
15323         (reg_or_m1_operand): Likewise.
15324         (const_exp_2_operand): Likewise.
15325         (const_exp_4_operand): Likewise.
15326         (const_exp_8_operand): Likewise.
15327         (const_exp_16_operand): Likewise.
15328         (const_vector_same_val_operand): Likewise.
15329         (const_vector_same_simm5_operand): Likewise.
15330         (const_vector_same_uimm5_operand): Likewise.
15331         (const_vector_same_uimm6_operand): Likewise.
15332         (const_vector_same_uimm8_operand): Likewise.
15333         (par_const_vector_shf_set_operand): Likewise.
15334         (reg_or_vector_same_val_operand): Likewise.
15335         (reg_or_vector_same_simm5_operand): Likewise.
15336         (reg_or_vector_same_uimm6_operand): Likewise.
15337         * doc/extend.texi (MIPS SIMD Architecture Functions): New
15338         section.
15339         * doc/invoke.texi (-mmsa): Document new option.
15341 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15343         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15344         * configure: Regenerate.
15345         * config.in: Regenerate.
15346         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15347         on -fvtable-verify.
15348         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15349         (ENDFILE_VTV_SPEC): Define.
15351 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
15353         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15354         registers in all interrupt handlers if necessary.
15355         (rl78_option_override): Add warning.
15356         (MUST_SAVE_MDUC_REGISTERS): New macro.
15357         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15358         * config/rl78/rl78.c (check_mduc_usage): New function.
15359         (mduc_regs): New structure to hold MDUC register data.
15360         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15361         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15362         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15363         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15364         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15365         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15367 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
15369         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15370         (tree-ssa-loop-niter.h): Ditto.
15371         (idx_within_array_bound, ref_within_array_bound): New functions.
15372         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15373         Factor out check on writable base object to ...
15374         (base_object_writable): ... here.
15376 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15378         * config/arm/arm.md (probe_stack): Add modes to set source
15379         and destination.
15381 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
15383         * regrename.c (base_reg_class_for_rename): New static function.
15384         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15386 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
15388         * cgraph.c (thunk_adjust): Export.
15389         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15390         * cgraphunit.c (thunk_adjust): Export.
15391         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15392         thunks.
15393         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15394         inlinable.
15395         * tree-inline.c (expand_call_inline): Expand thunks inline.
15397 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
15399         PR target/70998
15400         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15401         (*sse2_vd_cvtss2sd): Ditto.
15402         * config/i386/i386.md
15403         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15404         Generate *sse2_vd_cvtsd2ss pattern.
15405         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15406         Generate *sse2_vd_cvtss2sd pattern.
15408 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
15410         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15411         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
15412         users.
15414 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
15416         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15417         * config/sh/sh.c: Define and declare variables on first use throughout
15418         the file.
15419         (current_function_interrupt): Change to bool type.
15420         (frame_insn): Rename to emit_frame_insn and update users.
15421         (push_regs): Use bool for 'interrupt_handler' argument.
15422         (save_schedule_s): Remove.
15423         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15424         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15425         targetm.asm_out.unaligned_op.di.
15426         (gen_far_branch): Remove redundant forward declaration.
15427         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15428         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15429         (sh_set_return_address, sh_function_ok_for_sibcall,
15430         scavenge_reg): Update comments.
15431         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15432         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15433         (sh_attr_renesas_p): Remove unnecessary parentheses.
15434         (branch_dest): Simplify.
15435         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15436         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15437         (CUMULATIVE_ARGS): Change macro to typedef.
15438         (current_function_interrupt): Change to bool type.
15439         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
15440         Surround with __cplusplus ifdef.
15441         (sh_compare_op0, sh_compare_op1): Remove.
15442         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
15444 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
15446         * config/arm/arm.md: (arch): Add neon.
15447         (arch_enabled): Return yes for arch neon when TARGET_NEON.
15448         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
15449         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
15450         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
15451         attributes for alt renumbering.  Mark alt 3 as non-predicable.
15452         (thumb2_movdf_vfp): Likewise.
15454 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
15456         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
15457         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
15458         (*andqi_1): Add preferred_for_speed attribute to disparage
15459         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
15460         (*<code>qi_1): Ditto.
15461         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
15462         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
15463         (*ashlqi3_1): Ditto.
15464         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
15465         Add preferred_for_size attribute to disparage alternative 0 and
15466         preferred_for_speed attribute to disparage alternative 1 for
15467         TARGET_PARTIAL_REG_STALL targets.
15469 2016-05-07  Tom de Vries  <tom@codesourcery.com>
15471         PR tree-optimization/70956
15472         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
15473         def.
15475 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
15477         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
15478         * config/sh/sh.c (sh_cbranch_distance): Implement it.
15479         * config/sh/sh.md (branch_zero): Remove define_attr.
15480         (define_delay): Disable delay slot if branch distance is one insn.
15482 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15484         * config/i386/i386.md (LEAMODE): New mode attribute.
15485         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
15486         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
15487         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
15488         operand 2 predicate.
15489         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
15490         (*lea<mode>_general_3): Ditto.
15491         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
15493 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
15495         * genmddump.c (main): Convert argv from char ** to const char **.
15497 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15499         * coretypes.h (OVERRIDE): New macro.
15500         (FINAL): New macro.
15502 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
15504         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
15505         allow coalescing if the types are compatible.
15507 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15509         * pass_manager.h (pass_manager::register_pass_name): New method.
15510         (pass_manager::get_pass_by_name): New method.
15511         (pass_manager::create_pass_tab): New method.
15512         (pass_manager::m_name_to_pass_map): New field.
15513         * passes.c (name_to_pass_map): Delete global in favor of field
15514         "m_name_to_pass_map" of pass_manager.
15515         (register_pass_name): Rename from a function to...
15516         (pass_manager::register_pass_name): ...this method, updating
15517         for renaming of global "name_to_pass_map" to field
15518         "m_name_to_pass_map".
15519         (create_pass_tab): Rename from a function to...
15520         (pass_manager::create_pass_tab): ...this method, updating
15521         for renaming of global "name_to_pass_map" to field.
15522         (get_pass_by_name): Rename from a function to...
15523         (pass_manager::get_pass_by_name): ...this method.
15524         (enable_disable_pass): Convert use of get_pass_by_name to
15525         a method call, locating the pass_manager singleton.
15527 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15529         * genattr-common.c (main): Convert argv from char ** to const char **.
15530         * genattr.c (main): Likewise.
15531         * genattrtab.c (main): Likewise.
15532         * genautomata.c (initiate_automaton_gen): Likewise.
15533         (main): Likewise.
15534         * gencodes.c (main): Likewise.
15535         * genconditions.c (main): Likewise.
15536         * genconfig.c (main): Likewise.
15537         * genconstants.c (main): Likewise.
15538         * genemit.c (main): Likewise.
15539         * genenums.c (main): Likewise.
15540         * genextract.c (main): Likewise.
15541         * genflags.c (main): Likewise.
15542         * genmddeps.c (main): Likewise.
15543         * genopinit.c (main): Likewise.
15544         * genoutput.c (main): Likewise.
15545         * genpeep.c (main): Likewise.
15546         * genpreds.c (main): Likewise.
15547         * genrecog.c (main): Likewise.
15548         * gensupport.c (init_rtx_reader_args_cb): Likewise.
15549         (init_rtx_reader_args): Likewise.
15550         * gensupport.h (init_rtx_reader_args_cb): Likewise.
15551         (init_rtx_reader_args): Likewise.
15552         * gentarget-def.c (main): Likewise.
15553         * read-md.c (read_md_files): Likewise.
15554         * read-md.h (read_md_files): Likewise.
15556 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15558         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
15559         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
15560         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
15561         Remove unused predicate.
15562         (register_and_not_fp_reg_operand): Ditto.
15564 2016-05-06  Martin Liska  <mliska@suse.cz>
15566         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
15567         instead of vec as the vector is local to the function.
15569 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
15571         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
15572         avx512bw alternative.
15574         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
15575         before the ashr<mode>3 pattern.
15577         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
15578         v instead of x in vex or maybe_vex alternatives, use
15579         maybe_evex instead of vex in prefix.
15581         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
15582         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
15583         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
15584         in vex or maybe_vex alternatives, use maybe_evex instead of vex
15585         in prefix.
15587         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
15588         v instead of x in vex or maybe_vex alternatives, use
15589         maybe_evex instead of vex in prefix.
15591         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
15592         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
15593         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
15594         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
15595         alternatives, use maybe_evex instead of vex in prefix.
15597         * config/i386/sse.md (vec_interleave_lowv4sf,
15598         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
15599         v instead of x in vex or maybe_vex alternatives, use
15600         maybe_evex instead of vex in prefix.
15602         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
15603         v instead of x in vex or maybe_vex alternatives, use
15604         maybe_evex instead of vex in prefix.
15606         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
15607         v constraint instead of x.
15609 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
15611         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
15612         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
15613         equality first.
15615 2016-05-06  Richard Biener  <rguenther@suse.de>
15617         PR tree-optimization/70948
15618         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15619         Properly clobber all fields of va_list for __builtin_va_start.
15621 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
15623         PR debug/70935
15624         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
15625         loop latch destination.
15627 2016-05-06  Martin Liska  <mliska@suse.cz>
15629         * tree-ssa-uninit.c: Apply manual changes
15630         to the GNU coding style.
15631         (prune_uninit_phi_opnds): Rename from
15632         prune_uninit_phi_opnds_in_unrealizable_paths.
15634 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15636         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
15637         mspace): Remove deprecated options.
15638         * doc/invoke.texi (SH options): Remove -mspace.
15640 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15642         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
15644 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15646         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
15647         corresponding combine split pattern.
15649 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15651         PR target/58219
15652         * config/sh/predicates.md (long_displacement_mem_operand): New.
15653         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
15654         Add movi20, movi20s alternatives.  Adjust length attribute for
15655         alternatives.
15656         (movsi_ie): Allow for any FPU.  Adjust length attribute for
15657         alternatives.
15658         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
15659         attribute for alternatives.
15660         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
15661         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
15662         length attribute for alternatives.
15664 2016-05-06  Richard Biener  <rguenther@suse.de>
15666         PR tree-optimization/70960
15667         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
15669 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15671         PR target/52933
15672         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
15673         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
15675 2016-05-06  Marek Polacek  <polacek@redhat.com>
15677         PR sanitizer/70875
15678         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
15680 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15682         PR target/54089
15683         * config/sh/sh.md (*rotcr): Add another variant.
15685 2016-05-06  Richard Biener  <rguenther@suse.de>
15687         PR middle-end/70931
15688         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
15690 2016-05-06  Richard Biener  <rguenther@suse.de>
15692         PR middle-end/70941
15693         * fold-const.c (split_tree): Always convert to the original type
15694         before negating.
15696 2016-05-06  Richard Biener  <rguenther@suse.de>
15698         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
15699         (fwprop_addr): Likewise.
15701 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15703         PR target/70873
15704         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
15705         New prototype.
15706         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
15707         * config/i386/i386.md (push mem splitter): Use find_constant_src in
15708         the splitter condition.
15709         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
15710         the splitter condition.
15711         (FP float_extend load splitter): Ditto.
15713 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
15715         * config/i386/i386.md (peehole2 patterns): Change true_regnum
15716         to REGNO in all peephole2 patterns.
15717         (post-reload splitters): Change true_regnum to REGNO in
15718         post-reload splitters.
15719         (zero_extend splitters): Use general_reg_operand and
15720         nonimmediate_gr_operand predicates.
15722 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
15724         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
15725         v constraint instead of x.
15727 2016-05-05  Alan Modra  <amodra@gmail.com>
15729         PR target/68662
15730         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15731         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
15732         TARGET_NO_FP_IN_TOC for -mrelocatable.
15733         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
15734         TARGET_RELOCATABLE test.
15735         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15736         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15737         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15738         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15739         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15740         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15741         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15742         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15743         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
15744         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15745         Likewise.
15746         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
15747         (rs6000_stack_info): Likewise.
15748         (rs6000_elf_asm_out_constructor): Likewise.
15749         (rs6000_elf_asm_out_destructor): Likewise.
15750         (rs6000_elf_declare_function_name): Likewise.
15751         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
15752         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
15753         Don't define.
15755 2016-05-05  Alan Modra  <amodra@gmail.com>
15757         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
15759 2016-05-05  Alan Modra  <amodra@gmail.com>
15761         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
15762         out-of-line gpr restore for one or two regs if that would add
15763         a save of lr.
15765 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
15767         PR target/70873
15768         * config/i386/i386.md
15769         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
15770         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
15771         as operand 0 predicate.
15772         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
15773         Ditto.
15774         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
15775         Ditto.  Emit the pattern using RTX.
15777         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
15778         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
15779         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
15780         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
15781         Ditto.
15782         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
15783         sse_reg_operand as operand 0 predicate.
15785         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
15786         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
15787         instead of gen_rtx_REG.
15788         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
15789         Ditto.
15791 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15793         * function.c (emit_use_return_register_into_block): Delete.
15794         (gen_return_pattern): Delete.
15795         (emit_return_into_block): Delete.
15796         (active_insn_between): Delete.
15797         (convert_jumps_to_returns): Delete.
15798         (emit_return_for_exit): Delete.
15799         (thread_prologue_and_epilogue_insns): Delete all code dealing with
15800         simple_return for shrink-wrapped blocks.
15801         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
15802         end of blocks that need one.
15803         (get_unconverted_simple_return): Delete.
15804         (convert_to_simple_return): Delete.
15805         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
15806         (convert_to_simple_return): Ditto.
15808 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15810         * cfgcleanup.c (bb_is_just_return): New function.
15811         (try_optimize_cfg): Simplify jumps to return, branches to return,
15812         and branches around return.
15814 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15816         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
15817         branch to a return.
15819 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
15821         PR c++/70906
15822         PR c++/70933
15823         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
15824         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
15825         assert flags & OEP_HASH_CHECK, instead of asserting it
15826         never happens.  Handle TARGET_EXPR.
15827         * fold-const.c (operand_equal_p): For hash verification,
15828         or in OEP_HASH_CHECK into flags.
15830 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15832         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
15833         comment.
15834         (compute_samebase_partition_bases): Fix typo.
15836 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
15838         * config/i386/sse.md (vec_interleave_highv8sf,
15839         vec_interleave_lowv8sf, vec_interleave_highv4df,
15840         vec_interleave_lowv4df): Remove constraints from expanders.
15842         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
15844 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
15846         * tree-inline.c (expand_call_inline): Fix path dealing with
15847         making lhs of call statement undefined.
15849 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
15851         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15852         Check availability on NODE, too.
15853         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
15854         (cgraph_node::call_for_symbol_and_aliases): Likewise.
15855         (varpool_node::call_for_symbol_and_aliase): Likewise.
15856         * ipa-pure-const.c (add_new_function): Analyze all bodies.
15857         (propagate_pure_const): Propagate across interposable functions, too.
15858         (skip_function_for_local_pure_const): Do not skip interposable bodies
15859         with aliases.
15860         (pass_local_pure_const::execute): Update.
15862 2016-05-04  Marek Polacek  <polacek@redhat.com>
15864         * doc/invoke.texi: Document -Wdangling-else.
15866 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15868         * config.gcc: Error out when conflicting multilib is detected.  Do not
15869         loop over multilibs since no combination is legal.
15871 2016-05-04  Alan Modra  <amodra@gmail.com>
15873         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
15874         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
15875         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15876         Align .toc.
15878 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15880         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
15881         Clean up p5600 comments.
15883 2016-05-04  Richard Biener  <rguenther@suse.de>
15885         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
15886         constructor simplifications.
15887         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
15889 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
15891         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
15892         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
15893         result.set_rtx is null instead of aborting.
15894         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
15895         Always enable.
15896         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
15897         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
15898         *mov<mode>_store_postinc): New patterns.
15900 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
15902         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
15903         as commutative.  Check both conversions are NOP.
15904         ((A & B) OP (C & B)): Remove.
15906 2016-05-04  Alan Modra  <amodra@gmail.com>
15908         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
15910 2016-05-04  Alan Modra  <amodra@gmail.com>
15912         PR target/70866
15913         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
15914         when cr2,3,4 are all fixed regs.
15916 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
15918         PR rtl-optimization/57193
15919         * opts.c (default_options_table): Revert OPT_frename_registers change.
15920         * doc/invoke.texi (-frename-registers, -O2): Likewise.
15922 2016-05-03  Martin Sebor  <msebor@redhat.com>
15924         PR c++/66561
15925         * builtins.c (fold_builtin_FILE): New function.
15926         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
15927         (fold_builtin_0): Call them.
15928         * gimplify.c (gimplify_call_expr): Remove the handling of
15929         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
15931         PR c++/66561
15932         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
15933         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
15934         constants.
15936         PR c++/66639
15937         * doc/extend.texi (Function Names as Strings): Update __func__,
15938         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
15939         constants.
15941 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15942             Richard Biener  <rguenther@suse.de>
15944         PR tree-optimization/70916
15945         * tree-if-conv.c: Include cfganal.h.
15946         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
15947         and remove_fake_exit_edges around the optimization pass.
15949 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
15951         * cgraph.c (symbol_table::create_edge): Set inline_failed.
15952         (cgraph_edge::make_direct): Likewise.
15953         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
15954         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
15955         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
15956         (CIF_THUNK): New code.
15957         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
15958         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
15959         (compute_inline_parameters): Set inline_failed for thunks.
15960         (inline_analyze_function): Cleanup.
15961         * ipa-inline.c (can_inline_edge_p): Do not deal with
15962         call_stmt_cannot_inline_p.
15963         (can_early_inline_edge_p): Likewise.
15964         (early_inliner): Initialize inline_failed.
15965         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
15967 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
15969         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
15970         from nonimm_ssenomem_operand.
15971         (nonimm_ssenomem_operand): New predicate.
15972         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
15973         as operand 0 predicate.
15974         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
15975         Disable unsupported alternatives using "enabled" attribute.
15976         Use register_ssemem_operand as operand 0 predicate.
15977         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
15979 2016-05-03  Marek Polacek  <polacek@redhat.com>
15981         PR c/70859
15982         * input.c (expansion_point_location): New function.
15983         * input.h (expansion_point_location): Declare.
15985 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
15987         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
15988         occurence with frame_offset_ ones.
15990 2016-05-03  Alan Modra  <amodra@gmail.com>
15992         PR rtl-optimization/70890
15993         * ira.c (combine_and_move_insns): When moving def_insn, remove
15994         equivs on use_insn.
15996 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15998         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
15999         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
16000         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
16001         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
16003 2016-05-03  Alan Modra  <amodra@gmail.com>
16005         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
16006         for SAVE_MULTIPLE/STORE_MULTIPLE.
16008 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16010         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
16011         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
16013 2016-05-03  Richard Biener  <rguenther@suse.de>
16015         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
16016         default true.
16017         (gimplify_arg): Likewise.
16018         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
16019         re-writing the result to a decl if required.
16020         (internal_get_tmp_var): Add allow_ssa parameter
16021         and override into_ssa with it.
16022         (get_formal_tmp_var): Adjust.
16023         (get_initialized_tmp_var): Add allow_ssa parameter.
16024         (gimplify_arg): Add allow_ssa parameter and avoid generating
16025         SSA names for the result false.
16026         (gimplify_call_expr): If the call may return twice do not
16027         gimplify parameters into SSA.
16028         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
16029         (gimplify_modify_expr): Adjust assert.  For noreturn calls
16030         with a SSA name LHS adjust its def.
16031         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
16032         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
16033         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
16034         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
16035         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
16036         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
16037         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
16038         (optimize_target_teams): Do not allow SSA names for clause operands.
16039         (gimplify_expr): Likewise for where we mark the result addressable.
16040         * passes.def (pass_init_datastructures): Remove.
16041         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
16042         (rewrite_stmt): Likewise.
16043         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
16044         (replace_locals_op): Replace SSA names.
16045         (copy_gimple_seq_and_replace_locals): Init src_cfun.
16046         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
16047         * cgraph.c (release_function_body): Free CFG annotations only
16048         when we have a CFG.  Simplify.
16049         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
16050         force_gimple_operand instead of get_initialized_tmp_var.
16051         * tree-pass.h (make_pass_init_datastructures): Remove.
16052         * tree-ssa.c (execute_init_datastructures): Remove.
16053         (pass_data_init_datastructures): Likewise.
16054         (class pass_init_datastructures): Likewise.
16055         (make_pass_init_datastructures): Likewise.
16056         * omp-low.c (create_omp_child_function): Init SSA data structures.
16057         (grid_expand_target_grid_body): Likewise.
16058         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
16059         name before adding it to names_to_release.
16060         (remove_bb): Always release SSA defs.
16061         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
16062         before dereferencing it.
16063         * cgraphunit.c (init_lowered_empty_function): Always
16064         int SSA data structures.
16065         * tree-ssanames.c (release_defs): Remove assert that we are in
16066         SSA form.
16067         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
16069 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16070             Uros Bizjak  <ubizjak@gmail.com>
16072         PR rtl-optimization/70467
16073         * config/i386/predicates.md (x86_64_hilo_int_operand,
16074         x86_64_hilo_general_operand): New predicates.
16075         * config/i386/constraints.md (Wd): New constraint.
16076         * config/i386/i386.md (mode attr di): Use Wd instead of e.
16077         (general_hilo_operand): New mode attr.
16078         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
16079         instead of <general_operand>.
16080         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
16081         x86_64_hilo_general_operand instead of <general_operand>.
16083 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
16085         PR tree-optimization/70916
16086         * tree-if-conv.c (constant_or_ssa_name): Removed.
16087         (fold_build_cond_expr): Use is_gimple_val instead of
16088         constant_or_ssa_name.
16090         PR tree-optimization/70916
16091         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
16092         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
16094         PR target/49244
16095         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
16096         (optimize_atomic_bit_test_and): New function.
16097         (pass_fold_builtins::execute): Use it.
16098         * optabs.def (atomic_bit_test_and_set_optab,
16099         atomic_bit_test_and_complement_optab,
16100         atomic_bit_test_and_reset_optab): New optabs.
16101         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
16102         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
16103         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
16104         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
16105         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
16106         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
16107         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
16108         * doc/md.texi (atomic_bit_test_and_set@var{mode},
16109         atomic_bit_test_and_complement@var{mode},
16110         atomic_bit_test_and_reset@var{mode}): Document.
16111         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
16112         atomic_bit_test_and_complement<mode>,
16113         atomic_bit_test_and_reset<mode>): New expanders.
16114         (atomic_bit_test_and_set<mode>_1,
16115         atomic_bit_test_and_complement<mode>_1,
16116         atomic_bit_test_and_reset<mode>_1): New insns.
16118 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
16120         PR rtl-optimization/70687
16121         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
16122         instead of unsigned HOST_WIDE_INT.
16124 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
16126         PR rtl-optimization/44281
16127         * hard-reg-set.h (struct target_hard_regs): New field
16128         x_fixed_nonglobal_reg_set.
16129         (fixed_nonglobal_reg_set): New macro.
16130         * reginfo.c (init_reg_sets_1): Initialize it.
16131         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16132         of fixed_reg_set.
16133         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16135 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16137         PR tree-optimization/56541
16138         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16139         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16140         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16141         (any_complicated_phi): new static variable.
16142         (aggressive_if_conv): delete.
16143         (if_convertible_phi_p): support phis with more than two arguments.
16144         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16145         critical pred edges.
16146         (ifcvt_split_critical_edges): support phis with more than two
16147         arguments by checking new parameter.  only split critical edges
16148         if needed.
16149         (tree_if_conversion): handle simd pragma marked loop using new
16150         local variable aggressive_if_conv.  check any_complicated_phi.
16152 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16154         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16155         before using it.
16157 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16159         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16160         cbase.
16162 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
16164         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16165         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16166         define_insn_and_split.
16167         (mulsi3_i): New define_insn_and_split.
16168         (mulsi3_call): Convert to define_insn.
16169         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16170         Remove constraints.
16172 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16174         * machmode.h (mode_complex): Add support to give the complex mode
16175         for a given mode.
16176         (GET_MODE_COMPLEX_MODE): Likewise.
16177         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16178         stored by build_complex_type and gfc_build_complex_type instead of
16179         trying to figure out the appropriate mode based on the size. Raise
16180         an assertion error, if the type was not set.
16181         * genmodes.c (struct mode_data): Add field for the complex type of
16182         the given type.
16183         (blank_mode): Likewise.
16184         (make_complex_modes): Remember the complex mode created in the
16185         base type.
16186         (emit_mode_complex): Write out the mode_complex array to map a
16187         type mode to the complex version.
16188         (emit_insn_modes_c): Likewise.
16189         * tree.c (build_complex_type): Set the complex type to use before
16190         calling layout_type.
16191         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16192         support for __float128 complex datatypes.
16193         (rs6000_hard_regno_mode_ok): Likewise.
16194         (rs6000_setup_reg_addr_masks): Likewise.
16195         (rs6000_complex_function_value): Likewise.
16196         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16197         __float128 and __ibm128 complex.
16198         (FLOAT128_IBM_P): Likewise.
16199         (ALTIVEC_ARG_MAX_RETURN): Likewise.
16200         * doc/extend.texi (Additional Floating Types): Document that
16201         -mfloat128 must be used to enable __float128.  Document complex
16202         __float128 and __ibm128 support.
16204 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16206         PR target/49244
16207         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16208         char/short arguments promoted to int because of promote_prototypes.
16210 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16212         * config/i386/predicates.md (register_ssemem_operand): New predicate.
16213         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16214         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16215         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
16216         alternatives using "enabled" attribute.  Use register_ssemem_operand
16217         as operand 1 predicate.
16218         (*cmpi<unord>xf_i387): Split XFmode pattern from
16219         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16220         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16221         *absneg<mode>2_i387.  Disable unsupported alternatives using
16222         "enabled" attribute.
16223         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16225 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16227         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16228         marker.
16229         (oacc_loop_process): Check mask for loop termination.
16231 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16233         * cif-code.def (CIF_THUNK): Add.
16234         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16235         accidental change.
16237 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16239         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16240         (dump_inline_summary): Dump it.
16241         (fp_expression_p): New predicate.
16242         (estimate_function_body_sizes): Use it.
16243         (inline_merge_summary): Merge fp_expressions.
16244         (inline_read_section): Read fp_expressions.
16245         (inline_write_summary): Write fp_expressions.
16246         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16247         codegen boundary if either caller or callee is !fp_expressions.
16248         * ipa-inline.h (inline_summary): Add fp_expressions.
16249         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16250         to fp_expressions be sure the fp generation flags are updated.
16252 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16254         PR rtl-optimization/70467
16255         * cse.c (cse_insn): Handle no-op MEM moves after folding.
16257         PR rtl-optimization/70467
16258         * ipa-pure-const.c (check_call): Handle internal calls even in
16259         ipa mode like in local mode.
16261 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16263         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16265 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16267         * match.pd (X u< X, X u> X): New transformations.
16269 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16271         * flag-types.h (enum warn_strict_overflow_code): Move ...
16272         * coretypes.h: ... here.
16273         * fold-const.h (fold_overflow_warning): Declare.
16274         * fold-const.c (fold_overflow_warning): Make non-static.
16275         (fold_comparison): Move the transformation of X +- C1 CMP C2
16276         into X CMP C2 -+ C1 ...
16277         * match.pd: ... here.
16278         * gimple-fold.c (fold_stmt_1): Protect with
16279         fold_defer_overflow_warnings.
16281 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16283         * omp-low.c (struct oacc_loop): Add 'inner' field.
16284         (new_oacc_loop_raw): Initialize it to zero.
16285         (oacc_loop_fixed_partitions): Initialize it.
16286         (oacc_loop_auto_partitions): Partition outermost loop to outermost
16287         available partitioning.
16289 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16291         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16292         register_operand.
16293         (umulsidi3): Likewise.
16294         (indirect_jump): Fix jump instruction assembly patterns.
16296 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
16298         PR target/70860
16299         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16300         (nvptx_function_value): Assert non-NULL cfun.
16302 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
16304         PR rtl-optimization/70886
16305         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16307         * cselib.h (rtx_equal_for_cselib_1): Declare.
16308         (rtx_equal_for_cselib_p: New inline function.
16309         * cselib.c (rtx_equal_for_cselib_p): Delete.
16310         (rtx_equal_for_cselib_1): Make public.
16312 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16314         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16315         (register_mixssei387nonimm_operand): Remove predicate.
16316         * config/i386/i386.md (*fop_<mode>_comm): Merge from
16317         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
16318         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
16319         for TARGET_MIX_SSE_I387 alternatives.
16320         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16321         Disable unsupported alternatives using "enabled" attribute.  Use
16322         nonimm_ssenomem_operand as operand 1 predicate.  Also check
16323         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16325 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16327         * tree.c (cst_and_fits_in_hwi): Simplify.
16329 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16331         * tree.h (wi::to_wide): New function.
16332         * expr.c (expand_expr_real_1): Use wi::to_wide.
16333         * fold-const.c (int_const_binop_1): Likewise.
16334         (extract_muldiv_1): Likewise.
16336 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16338         * wide-int.h: Update offset_int and widest_int documentation.
16339         (WI_SIGNED_SHIFT_RESULT): New macro.
16340         (wi::binary_shift): Define signed_shift_result_type for
16341         shifts on offset_int- and widest_int-like types.
16342         (generic_wide_int): Support <<= and >>= if << and >> are supported.
16343         * tree.h (int_bit_position): Use shift operators instead of wi::
16344          shifts.
16345         * alias.c (adjust_offset_for_component_ref): Likewise.
16346         * expr.c (get_inner_reference): Likewise.
16347         * fold-const.c (fold_comparison): Likewise.
16348         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16349         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16350         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16351         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16352         (stmt_kills_ref_p): Likewise.
16353         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16354         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16355         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16356         (ao_ref_init_from_vn_reference): Likewise.
16358 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16360         * wide-int.h: Update offset_int and widest_int documentation.
16361         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16362         (wi::binary_traits): Allow ordered comparisons between offset_int and
16363         offset_int, between widest_int and widest_int, and between either
16364         of these types and basic C types.
16365         (operator <, <=, >, >=): Define for the same combinations.
16366         * tree.h (tree_int_cst_lt): Use comparison operators instead
16367         of wi:: comparisons.
16368         (tree_int_cst_le): Likewise.
16369         * gimple-fold.c (fold_array_ctor_reference): Likewise.
16370         (fold_nonarray_ctor_reference): Likewise.
16371         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16372         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16373         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16374         * tree-sra.c (completely_scalarize): Likewise.
16375         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16376         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16377         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16378         (check_for_binary_op_overflow): Likewise.
16379         (search_for_addr_array): Likewise.
16380         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16382 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16384         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16385         (arc_save_restore): Likewise.
16386         (arc_dwarf_register_span): Likewise.
16387         (arc_output_pic_addr_const): Initialize suffix variable.
16389 2016-05-02  Martin Liska  <mliska@suse.cz>
16391         * symbol-summary.h (function_summary::function_summary):
16392         Remove checking assert for all cgraph nodes.
16393         (function_summary::get): Check summary_uid.
16394         (symtab_insertion): Check summary_uid.
16396 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16398         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16399         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16400         bmaskn instruction.
16401         (arc_dwarf_register_span): Remove enum keyword.
16402         (compact_memory_operand_p): New function.
16403         * config/arc/arc.h (reg_class): Add code density register classes.
16404         (REG_CLASS_NAMES): Likewise.
16405         (REG_CLASS_CONTENTS): Likewise.
16406         * config/arc/arc.md (*movqi_insn): Add code density instructions.
16407         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16408         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16409         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16410         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16411         constraints.
16412         (h, Rcd, Rsd, Rzd): New register constraints.
16413         (T): Use compact_memory_operand_p function.
16414         * config/arc/predicates.md (compact_load_memory_operand): Remove.
16416 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
16418         * config/sh/sh.md (*negnegt, *movtt): Remove.
16420 2016-05-02  Marek Polacek  <polacek@redhat.com>
16421             Tom de Vries  <tom@codesourcery.com>
16423         PR tree-optimization/70700
16424         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16425         bigger than FIRST_REF_NODE.
16427 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
16429         PR target/52898
16430         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16431         TARGET_CMPEQDI_T.
16432         (prepare_cbranch_operands): Don't use scratch register.  Assume that
16433         function is used when pseudos can be created.
16434         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
16435         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16436         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16437         define_expand.  Allow it only when pseudos can be created.
16438         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16440 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
16442         * config/i386/constraints.md (BC): Only allow -1 operands.
16443         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
16444         Add "enabled" attribute.  Update XI mode attribute calculation.
16445         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
16446         (*movoi_internal_avx): Update XI mode attribute calculation.
16447         (*movti_internal): Ditto.
16449 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16451         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
16452         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
16454 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
16456         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
16457         statement on instruction code.  Remove trailing spaces.
16458         (altivec_expand_stv_builtin): Likewise.
16460 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16462         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
16463         (TARGET_FPU_DOUBLE): Simplify.
16464         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
16465         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
16466         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
16467         with 'TARGET_FPU_DOUBLE'.
16468         * config/sh/sh.md: Likewise.
16470 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
16472         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
16473         SH_DIV_STR_FOR_SIZE): Remove.
16474         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
16475         SH_DIV_STR_FOR_SIZE): Remove.
16477 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16479         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
16480         logical_reg_operand): Delete.
16481         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
16482         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
16483         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
16484         match_operand and match_test.
16485         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
16486         variables on their first use.  Return bool values.
16487         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
16488         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
16489         arith_reg_operand for input operand.  Remove empty constraints.
16490         (xorsi3): Delete.
16491         (*xorsi3_compact): Rename to xorsi3.
16492         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
16493         (*zero_extend<mode>si2_disp_mem): Update comment.
16494         (mov_nop): Delete.
16496 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
16498         * config/sh/t-sh: Remove SH5 support.
16499         * config.gcc: Likewise.
16500         * configure: Likewise.
16502 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16504         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
16506 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
16508         * config/sh/sh.c (register_sh_passes, sh_option_override,
16509         sh_print_operand, prepare_move_operands,
16510         sh_can_follow_jump): Remove TARGET_SH1 checks.
16511         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
16512         PROMOTE_MODE): Likewise.
16513         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
16514         movdi): Likewise.
16516 2016-04-30  Alan Modra  <amodra@gmail.com>
16518         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
16519         restoring when fixed_reg_p, but allow out-of-line or stmw save.
16520         Check for user regs later to avoid unnecessary looping over regs.
16521         Merge user reg check with non-saved reg check.  Don't force
16522         inline VR restore when static chain used.
16523         (rs6000_frame_related): Omit eh_frame info for user regs when
16524         saving.
16525         (fixed_regs_p): Delete.
16527 2016-04-30  Alan Modra  <amodra@gmail.com>
16529         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
16530         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
16531         Update all uses.
16533 2016-04-30  Alan Modra  <amodra@gmail.com>
16535         PR target/69645
16536         * config/rs6000/rs6000.c (fixed_reg_p): New function.
16537         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
16538         Update all uses.
16540 2016-04-30  Alan Modra  <amodra@gmail.com>
16542         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16543         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
16544         flag_pic test for Darwin.
16546 2016-04-30  Alan Modra  <amodra@gmail.com>
16548         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
16549         throw_calls_crossed.
16550         (REG_FREQ_CALLS_CROSSED): Delete.
16551         (REG_N_THROWING_CALLS_CROSSED): Delete.
16552         * regstat.c (regstat_bb_compute_ri): Don't calculate
16553         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
16554         (dump_reg_info): Don't print call cross frequency.
16555         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
16556         and REG_N_THROWING_CALLS_CROSSED.
16558 2016-04-30  Alan Modra  <amodra@gmail.com>
16560         * regs.h (struct reg_info_t): Delete live_length.
16561         (REG_LIVE_LENGTH): Delete macro.
16562         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
16563         local_live, local_processed and local_live_last_luid params.
16564         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
16565         Formatting fixes.
16566         (regstat_compute_ri): Adjust for above.  Don't set
16567         REG_LIVE_LENGTH.
16568         (dump_reg_info): Don't print live length.
16569         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
16570         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
16571         Localize loop_depth var.
16573 2016-04-30  Alan Modra  <amodra@gmail.com>
16575         * ira.c (enum valid_equiv): New.
16576         (validate_equiv_mem): Return enum.
16577         (update_equiv_mem): Create replacement in more cases.
16578         (add_store_equivs): Update validate_equiv_mem call.
16580 2016-04-30  Alan Modra  <amodra@gmail.com>
16582         * ira.c (combine_and_move_insns): Rather than scanning insns,
16583         use DF infrastucture to find use and def insns.
16585 2016-04-30  Alan Modra  <amodra@gmail.com>
16587         ira.c (combine_and_move_insns): Move invariant conditions..
16588         (ira.c): ..to here.  Call combine_and_move_insns before
16589         add_store_equivs.  Call grow_reg_equivs later.  Allocate
16590         req_equiv later using max_reg_num() rather than global max_regno.
16591         (contains_replace_regs): Delete.
16592         (add_store_equivs): Remove contains_replace_regs test.
16594 2016-04-30  Alan Modra  <amodra@gmail.com>
16596         * ira.c (struct equiv_mem_data): New.
16597         (equiv_mem, equiv_mem_modified): Delete static vars.
16598         (validate_equiv_mem_from_store): Use "data" param to communicate..
16599         (validate_equiv_mem): ..from here.
16601 2016-04-30  Alan Modra  <amodra@gmail.com>
16603         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
16604         split out from..
16605         (update_reg_equivs): ..here.  Move allocation and freeing of
16606         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
16607         end_alias_analysis to..
16608         (ira): ..here.
16610 2016-04-30  Alan Modra  <amodra@gmail.com>
16612         * ira.c (pdx_subregs): Delete.
16613         (struct equivalence): Add pdx_subregs field.
16614         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
16615         pdx_subregs access.
16616         (update_equiv_regs): Don't create or free pdx_subregs.  Update
16617         pdx_subregs access.
16619 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16621         * config/rs6000/altivec.h: Change definitions of vec_xl and
16622         vec_xst.
16623         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
16624         (LD_ELEMREV_V2DI): New.
16625         (LD_ELEMREV_V4SF): New.
16626         (LD_ELEMREV_V4SI): New.
16627         (LD_ELEMREV_V8HI): New.
16628         (LD_ELEMREV_V16QI): New.
16629         (ST_ELEMREV_V2DF): New.
16630         (ST_ELEMREV_V2DI): New.
16631         (ST_ELEMREV_V4SF): New.
16632         (ST_ELEMREV_V4SI): New.
16633         (ST_ELEMREV_V8HI): New.
16634         (ST_ELEMREV_V16QI): New.
16635         (XL): New.
16636         (XST): New.
16637         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16638         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
16639         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
16640         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
16641         (altivec_expand_builtin): Add handling for
16642         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
16643         (rs6000_invalid_builtin): Add error-checking for
16644         RS6000_BTM_P9_VECTOR.
16645         (altivec_init_builtins): Define builtins used to implement vec_xl
16646         and vec_xst.
16647         (rs6000_builtin_mask_names): Define power9-vector.
16648         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
16649         (RS6000_BTM_P9_VECTOR): Define.
16650         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
16651         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
16652         (vsx_ld_elemrev_v2df): Likewise.
16653         (vsx_ld_elemrev_v4sf): Likewise.
16654         (vsx_ld_elemrev_v4si): Likewise.
16655         (vsx_ld_elemrev_v8hi): Likewise.
16656         (vsx_ld_elemrev_v16qi): Likewise.
16657         (vsx_st_elemrev_v2df): Likewise.
16658         (vsx_st_elemrev_v2di): Likewise.
16659         (vsx_st_elemrev_v4sf): Likewise.
16660         (vsx_st_elemrev_v4si): Likewise.
16661         (vsx_st_elemrev_v8hi): Likewise.
16662         (vsx_st_elemrev_v16qi): Likewise.
16663         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
16664         grammar.
16666 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
16668         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
16669         out into ...
16670         (simplify_control_stmt_condition_1): ... here.  Recurse into
16671         BIT_AND_EXPRs and BIT_IOR_EXPRs.
16673 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
16675         PR target/69810
16676         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
16677         (zero_extendqi<mode>2_dot): Revert earlier conversion from
16678         define_insn_and_split to define_insn.
16679         (zero_extendqi<mode>2_dot2): Same.
16680         (extendqi<mode>2_dot): Same.
16681         (extendqi<mode>2_dot2): Same.
16683 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16685         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
16686         (probe_stack): New expander.
16687         (probe_stack_<mode>): New insn pattern.
16689 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16691         * config/i386/i386.md
16692         (operations with memory inputs setting flags peephole2):
16693         Remove uneeded REG_P checks.  Cleanup pattern generation.
16695 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
16697         * tree-vect-loop.c (vect_transform_loop): Fix
16698         nb_iterations_upper_bound computation for vectorized loop.
16700 2016-04-29  Marek Polacek  <polacek@redhat.com>
16701             Jakub Jelinek  <jakub@redhat.com>
16703         PR sanitizer/70342
16704         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
16705         TARGET_EXPR_SLOT as a base.
16707 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
16709         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
16710         with 'rCm2' constraints to limit possible immediate size.
16711         (*load_zeroextendqisi_update): Likewise.
16712         (*load_signextendqisi_update): Likewise.
16713         (*loadhi_update): Likewise.
16714         (*load_zeroextendhisi_update): Likewise.
16715         (*load_signextendhisi_update): Likewise.
16716         (*loadsi_update): Likewise.
16717         (*loadsf_update): Likewise.
16719 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16721         * config/i386/predicates.md (constm1_operand): Fix comparison.
16723 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
16725         * testsuite/gcc.target/arc/ieee_eq.c: New test.
16727 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
16729         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
16730         remaining SH5 related settings.
16731         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
16732         shmedia_prepare_call_address): Delete.
16733         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
16734         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
16735         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
16736         UNSUPPORTED_SH2A): Remove m5 checks.
16737         (sh_divide_strategy_e): Remove SH5 division strategies.
16738         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
16739         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
16741 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16743         * config/s390/s390.c (s390_rtx_costs): Update documentation.
16745 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16747         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
16748         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
16749         Change lder to ldr.
16750         * config/s390/vector.md ("mov<mode>"): Likewise.
16752 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
16754         * config/s390/constraints.md ("U", "W"): Invoke
16755         s390_mem_constraint with "ZR" and "ZT".
16756         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
16757         addresses when using LRA.  Accept also short displacements for S
16758         and T constraints.  Do not check for long displacement target for
16759         S and T constraints.
16760         (s390_mem_constraint): Remove handling of U and W constraints.
16761         * config/s390/s390.md (various patterns): Remove the short
16762         displacement constraints (Q and R) if a long displacement
16763         constraint is present.  Add longdisp as required CPU capability.
16764         * config/s390/vector.md: Likewise.
16765         * config/s390/vx-builtins.md: Likewise.
16767 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16769         PR target/60040
16770         * reload1.c (reload): Call finish_spills before
16771         restarting reload loop. Skip select_reload_regs
16772         if update_eliminables_and_spill returns true.
16774 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
16776         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
16777         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
16778         (umulhisi3_imm): Update predicates and constraint letters.
16779         (umulhisi3_reg): Declare instruction as commutative.
16780         * config/arc/constraints.md (J12, J16): New constraints.
16781         * config/arc/predicates.md (short_unsigned_const_operand): New
16782         predicate.
16783         (arc_short_operand): Likewise.
16784         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
16786 2016-04-29  Richard Biener  <rguenther@suse.de>
16788         PR tree-optimization/13962
16789         PR tree-optimization/65686
16790         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
16791         * tree-ssa-alias.c (ptrs_compare_unequal): New function
16792         using PTA to compare pointers.
16793         * match.pd: Add pattern for pointer equality compare simplification
16794         using ptrs_compare_unequal.
16796 2016-04-29  Richard Biener  <rguenther@suse.de>
16798         * stor-layout.c (layout_type): Do not build a pointer-to-element
16799         type for arrays.
16801 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16803         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
16804         Use SWI mode iterator.  Use general_reg_operand predicate.
16805         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
16806         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
16807         predicates.
16809 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
16811         PR middle-end/70843
16812         * fold-const.c (operand_equal_p): Don't verify hash value equality
16813         if arg0 == arg1.
16814         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
16815         and OMP_CLAUSE.
16817 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16819         PR target/70858
16820         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
16821         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
16822         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
16823         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
16824         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
16826 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16828         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
16829         to info.  Don't initialize separate fields to 0.  Clean up
16830         formatting a bit.
16832 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16834         * config/i386/i386.md (peephole2s for operations with memory inputs):
16835         Use SWI mode iterator.
16836         (peephole2s for operations with memory outputs): Ditto.
16837         Do not check for stack checking probe.
16839         (probe_stack): Remove expander.
16841 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16842             Andrew Burgess  <andrew.burgess@embecosm.com>
16844         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
16845         operands as 32-bits.
16847 2016-04-28  Jason Merrill  <jason@redhat.com>
16849         * gdbinit.in: Skip line-map.h.
16851 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16852             Andrew Burgess  <andrew.burgess@embecosm.com>
16854         * config/arc/arc.c (arc_conditional_register_usage): Take
16855         TARGET_RRQ_CLASS into account.
16856         (arc_print_operand): Support printing 'p' and 's' operands.
16857         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
16858         as 0.
16859         (TARGET_RRQ_CLASS): Define.
16860         (IS_POWEROF2_OR_0_P): Define.
16861         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
16862         alternatives.
16863         (*tst_movb): New define_insn.
16864         (*tst): Avoid recognition if it could prevent '*tst_movb'
16865         combination; replace c/CnL with c/Chs alternative.
16866         (*tst_bitfield_tst): New define_insn.
16867         (*tst_bitfield_asr): New define_insn.
16868         (*tst_bitfield): New define_insn.
16869         (andsi3_i): Add Rrq variant.
16870         (extzv): New define_expand.
16871         (insv): New define_expand.
16872         (*insv_i): New define_insn.
16873         (*movb): New define_insn.
16874         (*movb_signed): New define_insn.
16875         (*movb_high): New define_insn.
16876         (*movb_high_signed): New define_insn.
16877         (*movb_high_signed + 1): New define_split pattern.
16878         (*mrgb): New define_insn.
16879         (*mrgb + 1): New define_peephole2 pattern.
16880         (*mrgb + 2): New define_peephole2 pattern.
16881         * config/arc/arc.opt (mbitops): New option for nps400, uses
16882         TARGET_NPS_BITOPS_DEFAULT.
16883         * config/arc/constraints.md (q): Make register class conditional.
16884         (Rrq): New register constraint.
16885         (Chs): New constraint.
16886         (Clo): New constraint.
16887         (Chi): New constraint.
16888         (Cbf): New constraint.
16889         (Cbn): New constraint.
16890         (C18): New constraint.
16891         (Cbi): New constraint.
16893 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16895         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
16896         dst->popcount.
16897         (bitmap_intersection_of_preds): Ditto.
16898         (bitmap_union_of_succs): Ditto.
16899         (bitmap_union_of_preds): Ditto.
16900         * sbitmap.c (do_popcount): Delete.
16901         (BITMAP_DEBUGGING): Delete.
16902         (sbitmap_verify_popcount): Delete.
16903         (sbitmap_alloc): Don't initialize the popcount field.
16904         (sbitmap_alloc_with_popcount): Delete.
16905         (sbitmap_resize): Don't resize the popcount array.
16906         (sbitmap_vector_alloc): Don't initialize the popcount field.
16907         (bitmap_copy): Don't copy the popcount array.
16908         (bitmap_clear): Don't clear the popcount array.
16909         (bitmap_clear): Delete the popcount array handling.
16910         (bitmap_ior_and_compl): Delete the popcount assert.
16911         (bitmap_not): Ditto.
16912         (bitmap_and_compl): Ditto.
16913         (bitmap_and): Delete the popcount array handling.
16914         (bitmap_xor): Ditto.
16915         (bitmap_ior): Ditto.
16916         (bitmap_or_and): Delete the popcount assert.
16917         (bitmap_and_or): Ditto.
16918         (popcount_table): Delete.
16919         (sbitmap_elt_popcount): Delete.
16920         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
16921         (bitmap_set_bit): Delete the popcount assert.
16922         (bitmap_clear_bit): Ditto.
16923         (sbitmap_free): Don't free the popcount array.
16924         (sbitmap_alloc_with_popcount): Delete declaration.
16925         (sbitmap_popcount): Ditto.
16927 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16928             Andrew Burgess  <andrew.burgess@embecosm.com>
16930         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
16931         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
16932         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
16933         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
16934         * config/arc/arc.opt (mcmem): New option.
16935         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
16936         supply length for r/m alternative.
16937         (*extendqisi2_ac): Likewise.
16938         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
16939         r/Uex alternative.
16940         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
16941         (movhi_insn): Likewise.
16942         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
16943         (*zero_extendqihi2_i): Add r/Ucm alternative.
16944         (*zero_extendqisi2_ac): Likewise.
16945         (*zero_extendhisi2_i): Likewise.
16946         * config/arc/constraints.md (Uex): New memory constraint.
16947         (Ucm): New define_constraint.
16948         * config/arc/predicates.md (long_immediate_loadstore_operand):
16949         Return 0 for MEM with cmem_address address.
16950         (cmem_address_0): New predicates.
16951         (cmem_address_1): Likewise.
16952         (cmem_address_2): Likewise.
16953         (cmem_address): Likewise.
16955 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16957         * config/rs6000/rs6000.c (machine_function): Rename
16958         insn_chain_scanned_p to spe_insn_chain_scanned_p.
16959         (rs6000_stack_info): Adjust.
16961 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16962             Andrew Burgess  <andrew.burgess@embecosm.com>
16964         * config/arc/constraints.md (Usd): Convert to define_constraint.
16965         (Us<): Likewise.
16966         (Us>): Likewise.
16968 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16970         PR target/70821
16971         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
16972         Add new peephole2 where the first insn is *mov<mode>_or instead of
16973         *mov<mode>_internal.
16975 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
16977         * tracer.c (bb_seen): Make static.
16979 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
16981         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
16982         support, setup defaults.
16983         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
16984         * config/arc/arc.c (arc_init): Add NPS400 support.
16985         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
16986         (TARGET_ARC700): NPS400 is also an ARC700.
16987         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
16989 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16991         PR target/70668
16992         * config/nds32/nds32.md (casesi): Don't access the operands array
16993         out of bounds.
16995 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16997         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
16998         (or $-1,reg peephole2): Ditto.
16999         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
17001 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
17003         * doc/extend.texi (Common Function Attributes) [optimize]:
17004         Discourage use of the optimize attribute.
17006 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
17008         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
17009         special case builtin.
17010         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
17011         ALTIVEC_BUILTIN_VEC_ADDE.
17012         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
17013         support for ALTIVEC_BUILTIN_VEC_ADDE.
17014         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
17015         for __builtin_vec_adde.
17017 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
17019         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
17020         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
17022 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17024         PR testsuite/70595
17025         * doc/sourcebuild.texi (Effective-Target Keywords, Other
17026         attributes): Document cilkplus_runtime.
17028 2016-04-28  Martin Jambor  <mjambor@suse.cz>
17030         * tree-cfg.c (verify_expr): Verify that local declarations belong to
17031         this function.  Call verify_expr on MEM_REFs and bases of other
17032         handled_components.
17034 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17036         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
17037         for WORD_REGISTER_OPERATIONS to runtime check.
17039 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17041         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
17043 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17045         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
17046         big-endian compilation.
17047         * config/arc/arc.md (addf3): Likewise.
17048         (subdf3): Likewise.
17049         (muldf3): Likewise.
17051 2016-04-28  Richard Biener  <rguenther@suse.de>
17053         PR tree-optimization/70840
17054         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
17055         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
17056         Mark x * pow(x,c) -> pow(x,c+1) commutative.
17057         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
17059 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17061         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
17062         and explain why in a comment.
17064 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17066         * config/arc/arc.md (cpu_facility): Add fpx variant.
17067         (subdf3): Prohibit use reverse sub when assist operations option
17068         is enabled.
17069         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
17070         instructions only when FPX is enabled.
17071         * testsuite/gcc.target/arc/trsub.c: New test.
17073 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17075         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
17076         mult_operator when calculating "type" attribute.
17077         (*fop_<mode>_1_i387): Ditto.
17078         (*fop_xf_1_i387): Ditto.
17079         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
17080         Use std::swap to swap operands.  Use RTL expressions to generate
17081         converted pattern.
17083 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17084             Joern Rennecke  <joern.rennecke@embecosm.com>
17086         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
17087         declaration.
17088         (emit_pic_move): Remove.
17089         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
17090         * config/arc/arc.c (emit_pic_move): Removed.
17091         (TARGET_HAVE_TLS): Define.
17092         (arc_conditional_register_usage): Test for arc_tp_regno.
17093         (arc_print_operand, arc_print_operand_address): Handle TLS
17094         unspecs.
17095         (arc_needs_pcl_p): New function.
17096         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
17097         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
17098         (arc_raw_symbolic_reference_mentioned_p): Likewise.
17099         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
17100         (arc_legitimize_tls_address): Likewise.
17101         (DTPOFF_ZERO_SYM): Define.
17102         (arc_legitimize_pic_address): Make it static, handle TLS cases.
17103         (arc_output_pic_addr_const): Print TLS unspecs.
17104         (prepare_pic_move): New function, replaces emit_pic_move.
17105         (arc_legitimate_constant_p): Handle TLS unspecs.
17106         (arc_legitimate_address_p): Likewise.
17107         (arc_rewrite_small_data_p): Use assert for TLS constants.
17108         (prepare_move_operands): Use prepare_pic_move.
17109         (arc_legitimize_address): Legitimize tls addresses.
17110         (arc_epilogue_uses): Check for arc_tp_regno.
17111         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
17112         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
17113         Define.
17114         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
17115         Likewise.
17116         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
17117         %(arc_tls_extra_start_spec).
17118         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
17119         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
17120         (EH_USES): Define.
17121         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17122         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17123         (UNSPEC_TLS_OFF): Add.
17124         (R10_REG): Define.
17125         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17126         (get_thread_pointersi): New patterns.
17127         * config/arc/arc.opt (mtp-regno): New option.
17128         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17129         (move_dest_operand): Likewise.
17130         * configure: Regenerate.
17131         * configure.ac: Add arc*-*-* case to test for tls.
17132         * doc/invoke.texi (ARC options): Document mtp-regno.
17134 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17136         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17137         the new ARC HS SIMD instructions.
17138         (arc_preferred_simd_mode): New function.
17139         (arc_autovectorize_vector_sizes): Likewise.
17140         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17141         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17142         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17143         (arc_init_builtins): Add new SIMD builtin types.
17144         (arc_split_move): Handle 64 bit vector moves.
17145         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17146         (TARGET_PLUS_QMACW): Define.
17147         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17148         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17149         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17150         (VSUBADD4H): New builtins.
17151         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17152         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17154 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
17155             Matthias Klose  <doko@debian.org>
17157         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17159 2016-04-28  Richard Biener  <rguenther@suse.de>
17161         PR middle-end/70777
17162         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17163         canonicalization.
17165 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
17167         * common/config/sh/sh-common.c: Remove SH5 support.
17168         * config/sh/constraints.md: Likewise.
17169         * config/sh/config/sh/elf.h: Likewise.
17170         * config/sh/linux.h: Likewise.
17171         * config/sh/netbsd-elf.h: Likewise.
17172         * config/sh/predicates.md: Likewise.
17173         * config/sh/sh-c.c: Likewise.
17174         * config/sh/sh-protos.h: Likewise.
17175         * config/sh/sh.c: Likewise.
17176         * config/sh/sh.h: Likewise.
17177         * config/sh/sh.md: Likewise.
17178         * config/sh/sh.opt: Likewise.
17179         * config/sh/sync.md: Likewise.
17180         * config/sh/sh64.h: Delete.
17181         * config/sh/shmedia.h: Likewise.
17182         * config/sh/shmedia.md: Likewise.
17183         * config/sh/sshmedia.h: Likewise.
17184         * config/sh/t-netbsd-sh5-64: Likewise.
17185         * config/sh/t-sh64: Likewise.
17186         * config/sh/ushmedia.h: Likewise.
17188 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17190         * config/i386/i386.md (sign_extend to memory peephole2s): Use
17191         general_reg_operand instead of register_operand predicate.
17193 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17195         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17197 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
17199         * match.pd (A - B > A, A + B < A): New transformations.
17201 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
17203         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17204         which defaults to true.  Emit an outer pair of parentheses only if
17205         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
17206         don't emit parentheses for the right-hand operand.
17208 2016-04-27  Jeff Law  <law@redhat.com>
17210         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17212 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17214         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17215         (altivec_lvx_<mode>_internal): Document.
17216         (altivec_lvx_<mode>_2op): New define_insn.
17217         (altivec_lvx_<mode>_1op): Likewise.
17218         (altivec_lvx_<mode>_2op_si): Likewise.
17219         (altivec_lvx_<mode>_1op_si): Likewise.
17220         (altivec_stvx_<mode>): Remove.
17221         (altivec_stvx_<mode>_internal): Document.
17222         (altivec_stvx_<mode>_2op): New define_insn.
17223         (altivec_stvx_<mode>_1op): Likewise.
17224         (altivec_stvx_<mode>_2op_si): Likewise.
17225         (altivec_stvx_<mode>_1op_si): Likewise.
17226         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17227         Expand vec_ld and vec_st during parsing.
17228         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17229         changes.
17230         (altivec_expand_stvx_be): Likewise.
17231         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17232         address-masking behavior in RTL.
17233         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17234         address-masking behavior in RTL.
17235         (altivec_expand_builtin): Change builtin code arguments for calls
17236         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17237         (insn_is_swappable_p): Avoid incorrect swap optimization in the
17238         presence of lvx/stvx patterns.
17239         (alignment_with_canonical_addr): New function.
17240         (alignment_mask): Likewise.
17241         (find_alignment_op): Likewise.
17242         (recombine_lvx_pattern): Likewise.
17243         (recombine_stvx_pattern): Likewise.
17244         (recombine_lvx_stvx_patterns): Likewise.
17245         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17246         stvx patterns from expand.
17247         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17248         expansions.
17249         (vector_altivec_store_<mode>): Likewise.
17251 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
17253         * config/aarch64/aarch64.md
17254         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17255         remove the "fp" attributes.
17256         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17257         add the "simd" attributes.
17258         (*movdf_aarch64): Likewise.
17259         (*movtf_aarch64): Remove the "fp" attributes.
17260         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17261         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17263 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17265         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17266         rtx to rtx_code_label *.
17267         * rtl.h (maybe_set_first_label_num): Likewise.
17269 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17271         * df-core.c (df_add_problem): Make the problem param be const.
17272         (df_remove_problem): Make local "problem" be const.
17273         * df-problems.c (problem_RD): Make const.
17274         (problem_LR): Likewise.
17275         (problem_LIVE): Likewise.
17276         (problem_MIR): Likewise.
17277         (problem_CHAIN): Likewise.
17278         (problem_WORD_LR): Likewise.
17279         (problem_NOTE): Likewise.
17280         (problem_MD): Likewise.
17281         * df-scan.c (problem_SCAN): Likewise.
17282         * df.h (struct df_problem): Make field "dependent_problem" be
17283         const.
17284         (struct dataflow): Likewise for field "problem".
17285         (df_add_problem): Make param const.
17287 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17289         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17290         inter-unit moves to/from vector registers are enabled.  Do not disable
17291         for TARGET_MMX.
17293 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17295         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17296         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17297         #define to...
17298         (enum df_problem_id): ...this new enum.
17299         (struct df_problem): Convert field "id" from "int" to
17300         enum df_problem_id.
17302 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17304         * rtl.def: Update comment for "things in the instruction chain" to
17305         reflect the removal of the leading "i" field for INSN_UID in
17306         r210360.  Fix bogus apostrophe.
17308 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17310         * config/i386/i386.md
17311         (lea arith with mem operand + setcc peephole2): Set operator mode.
17313 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
17315         PR target/70155
17316         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17317         (dimode_scalar_to_vector_candidate_p): This.
17318         (timode_scalar_to_vector_candidate_p): New function.
17319         (scalar_to_vector_candidate_p): Likewise.
17320         (timode_check_non_convertible_regs): Likewise.
17321         (timode_remove_non_convertible_regs): Likewise.
17322         (remove_non_convertible_regs): Likewise.
17323         (remove_non_convertible_regs): Renamed to ...
17324         (dimode_remove_non_convertible_regs): This.
17325         (scalar_chain::~scalar_chain): Make it virtual.
17326         (scalar_chain::compute_convert_gain): Make it pure virtual.
17327         (scalar_chain::mark_dual_mode_def): Likewise.
17328         (scalar_chain::convert_insn): Likewise.
17329         (scalar_chain::convert_registers): Likewise.
17330         (scalar_chain::add_to_queue): Make it protected.
17331         (scalar_chain::emit_conversion_insns): Likewise.
17332         (scalar_chain::replace_with_subreg): Likewise.
17333         (scalar_chain::replace_with_subreg_in_insn): Likewise.
17334         (scalar_chain::convert_op): Likewise.
17335         (scalar_chain::convert_reg): Likewise.
17336         (scalar_chain::make_vector_copies): Likewise.
17337         (scalar_chain::convert_registers): New pure virtual function.
17338         (class dimode_scalar_chain): New class.
17339         (class timode_scalar_chain): Likewise.
17340         (scalar_chain::mark_dual_mode_def): Renamed to ...
17341         (dimode_scalar_chain::mark_dual_mode_def): This.
17342         (timode_scalar_chain::mark_dual_mode_def): New function.
17343         (timode_scalar_chain::convert_insn): Likewise.
17344         (dimode_scalar_chain::convert_registers): Likewise.
17345         (scalar_chain::compute_convert_gain): Renamed to ...
17346         (dimode_scalar_chain::compute_convert_gain): This.
17347         (scalar_chain::replace_with_subreg): Renamed to ...
17348         (dimode_scalar_chain::replace_with_subreg): This.
17349         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17350         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17351         (scalar_chain::make_vector_copies): Renamed to ...
17352         (dimode_scalar_chain::make_vector_copies): This.
17353         (scalar_chain::convert_reg): Renamed to ...
17354         (dimode_scalar_chain::convert_reg ): This.
17355         (scalar_chain::convert_op): Renamed to ...
17356         (dimode_scalar_chain::convert_op): This.
17357         (scalar_chain::convert_insn): Renamed to ...
17358         (dimode_scalar_chain::convert_insn): This.
17359         (scalar_chain::convert): Call convert_registers.
17360         (convert_scalars_to_vector): Change to scalar_chain pointer to
17361         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17362         in 32-bit mode.  Delete scalar_chain pointer.  Call
17363         free_dominance_info in 64-bit mode.
17364         (pass_stv::gate): Remove TARGET_64BIT check.
17365         (ix86_option_override): Put the 64-bit STV pass before the CSE
17366         pass.
17368 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
17370         * dwarf2out.h (struct dw_loc_descr_node): Remove the
17371         dw_loc_frame_offset field.
17372         * dwarf2out.c (new_loc_descr): Likewise.
17373         (resolve_args_picking_1): Turn the VISITED hash set into a
17374         FRAME_OFFSET hash map. Use it to associate a frame offset to
17375         visited nodes. Remove uses of the CHECKING_P macro.
17376         (resolve_args_picking): Update call to resolve_args_picking_1.
17378 2016-04-27  Martin Liska  <mliska@suse.cz>
17380         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17381         (free_loop_data): Release vuses of groups.
17383 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
17385         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17386         instead of redundant use_id and boolean have_use_for.
17387         (struct iv_use): Change sub_id into group_id.  Remove field next.
17388         Move fields: related_cands, n_map_members, cost_map and selected
17389         to ...
17390         (struct iv_group): ... here.  New structure.
17391         (struct iv_common_cand): Use structure declaration directly.
17392         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17393         (MAX_CONSIDERED_USES): Rename macro to ...
17394         (MAX_CONSIDERED_GROUPS): ... here.
17395         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17396         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17397         (dump_uses): Rename to ...
17398         (dump_groups): ... here.  Update all uses.
17399         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17400         (find_induction_variables): Refactor format of dump information.
17401         (record_sub_use): Delete.
17402         (record_use): Update all uses.
17403         (record_group): New function.
17404         (record_group_use, find_interesting_uses_op): Call above functions.
17405         Update all uses.
17406         (find_interesting_uses_cond): Ditto.
17407         (group_compare_offset): New function.
17408         (split_all_small_groups): Rename to ...
17409         (split_small_address_groups_p): ... here.  Update all uses.
17410         (split_address_groups):  Update all uses.
17411         (find_interesting_uses): Refactor format of dump information.
17412         (add_candidate_1): Update all uses.  Remove redundant check on iv,
17413         base and step.
17414         (add_candidate, record_common_cand): Remove redundant assert.
17415         (add_iv_candidate_for_biv): Update use.
17416         (add_iv_candidate_derived_from_uses): Update all uses.
17417         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17418         (alloc_use_cost_map): Ditto.
17419         (set_use_iv_cost, get_use_iv_cost): Rename to ...
17420         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
17421         (determine_use_iv_cost_generic): Ditto.
17422         (determine_group_iv_cost_generic): Ditto.
17423         (determine_use_iv_cost_address): Ditto.
17424         (determine_group_iv_cost_address): Ditto.
17425         (determine_use_iv_cost_condition): Ditto.
17426         (determine_group_iv_cost_cond): Ditto.
17427         (determine_use_iv_cost): Ditto.
17428         (determine_group_iv_cost): Ditto.
17429         (set_autoinc_for_original_candidates): Update all uses.
17430         (find_iv_candidates): Update all uses.  Refactor dump information.
17431         (determine_use_iv_costs): Ditto.
17432         (determine_iv_costs): Ditto.
17433         (iv_ca_cand_for_use): Rename to ...
17434         (iv_ca_cand_for_group): ... here.  Update all uses.
17435         (iv_ca_add_use, iv_ca_add_group): Ditto.
17436         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17437         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17438         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17439         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
17440         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
17441         (create_new_iv, adjust_iv_update_pos): Ditto.
17442         (rewrite_use_address): Delete.
17443         (rewrite_use_address_1): Rename to ...
17444         (rewrite_use_address): ... here.
17445         (rewrite_use_compare): Update all uses.
17446         (rewrite_use): Delete.
17447         (rewrite_uses): Rename to ...
17448         (rewrite_groups): ... here.  Update all uses.
17449         (remove_unused_ivs, free_loop_data): Update all uses.
17450         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
17452 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17454         * rtlanal.c (nonzero_bits1): Convert preprocessor check
17455         for WORD_REGISTER_OPERATIONS to runtime check.
17457 2016-04-27  Richard Biener  <rguenther@suse.de>
17459         PR ipa/70760
17460         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
17461         aggregate_value_p to determine if a function result is
17462         returned by reference.
17463         (ipa_pta_execute): Functions having their address taken are
17464         not automatically nonlocal.
17466 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
17468         PR sanitizer/70683
17469         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
17470         * fold-const.c (operand_equal_p): If flag_checking and
17471         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
17472         and if it returns non-zero, assert iterative_hash_expr on both
17473         args is the same.
17475 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
17477         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
17479 2016-04-27  Nick Clifton  <nickc@redhat.com>
17481         PR middle-end/49889
17482         * varasm.c (merge_weak): Generate an error if an attempt is made
17483         to convert a non-weak static function into a weak, public function.
17485 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17487         * params.def (MAX_PARTITION_SIZE): New param.
17488         * doc/invoke.texi: Document lto-max-partition.
17490 2016-04-27  Richard Biener  <rguenther@suse.de>
17492         PR ipa/70785
17493         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
17494         function cummulating used_from_other_partition, externally_visible
17495         and force_output from aliases.
17496         (refered_from_nonlocal_var): Likewise.
17497         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
17498         node flags properly.
17500 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
17502         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
17503         (-Wmemset-elt-size): New item.
17505 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17507         PR ada/70759
17508         * stor-layout.h (internal_reference_types): Delete.
17509         * stor-layout.c (reference_types_internal): Likewise.
17510         (internal_reference_types): Likewise.
17511         (layout_type) <REFERENCE_TYPE>: Adjust.
17513 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
17515         PR sanitizer/70683
17516         * tree.h (inchash::add_expr): Add FLAGS argument.
17517         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
17518         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
17519         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
17520         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
17521         if swap_tree_comparison (code) is smaller than code, hash that
17522         and arguments in the other order.  Hash CONVERT_EXPR the same
17523         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
17524         of ADDR_EXPR of decl as the decl itself.  Add or remove
17525         OEP_ADDRESS_OF from recursive flags as needed.  For
17526         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
17527         operands commutatively and only the third one normally.
17528         For internal CALL_EXPR hash in CALL_EXPR_IFN.
17530 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17532         * config/rtems.h (LIB_SPEC): Add -latomic.
17534 2016-04-27  Joel Sherrill  <joel@rtems.org>
17536         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
17537         xilink.ld and flags not relevant to RTEMS.
17539 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17541         * toplev.c (backend_init_target): Avoid calling init_reload when using
17542         LRA.
17544 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
17546         * reorg.c (try_merge_delay_insns): Declare i and j inside the
17547         for loops rather than one for the whole function.
17549 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
17551         * match.pd (X + CST CMP X): New transformation.
17553 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
17555         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
17556         * fold-const.c (fold_binary_loc): Remove 2 transformations
17557         superseded by match.pd.
17558         * match.pd (x+x -> x*2): Generalize to integers.
17560 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
17562         * config/i386/i386.md (operation on memory peephole): Duplicate an
17563         existing peephole and adapt it to match lea rather than an operation
17564         that clobbers CC.
17566         PR rtl-optimization/57193
17567         * opts.c (default_options_table): Add OPT_frename_registers at -O2
17568         and above.
17569         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
17571 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
17573         * tree-if-conv.c (any_pred_load_store): New static variable.
17574         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
17575         any_pred_load_store instead of and_mask_load_store.
17576         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
17577         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
17578         (combine_blocks, tree_if_conversion): Ditto.
17580 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
17582         PR tree-optimization/70771
17583         PR tree-optimization/70775
17584         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
17585         virtual PHI nodes.  Delete parameter.
17586         (if_convertible_loop_p_1): Delete argument to above function.
17587         (predicate_all_scalar_phis): Delete code handling single-argument
17588         PHIs.
17589         (tree_if_conversion): Mark and update virtual SSA.
17591 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17593         PR target/61821
17594         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
17595         (x86_elf_aligned_common): Rename to ...
17596         (x86_elf_aligned_decl_common): ... this.
17597         Add decl arg.  Switch to .lbss for largecomm object.  Use
17598         LARGECOMM_SECTION_ASM_OP.
17599         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
17600         renaming.
17601         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
17602         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
17603         Pass new decl arg.
17604         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17605         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
17607 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17609         PR target/59407
17610         * config/i386/i386.c (SECTION_LARGE): Define.
17611         (x86_64_elf_select_section): Set it for large data/bss sections.
17612         Only clear SECTION_WRITE for .lrodata.
17613         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
17614         data/bss sections.
17615         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
17616         * varasm.c (default_elf_asm_named_section): Grow flagchars.
17617         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
17618         SECTION_MACH_DEP.
17619         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
17620         * doc/tm.texi: Regenerate.
17622 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
17624         PR bootstrap/70704
17625         * configure.ac (--enable-checking): Document extra flag, for
17626         non-release builds default to --enable-checking=yes,extra.
17627         If misc checking and extra checking, define CHECKING_P to 2 instead
17628         of 1.
17629         * common.opt (fchecking=): Add.
17630         * doc/invoke.texi (-fchecking=): Document.
17631         * doc/install.texi: Document --enable-checking changes.
17632         * configure: Regenerated.
17633         * config.in: Regenerated.
17635 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17637         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
17638         attribute instead of which_alternative.
17639         * config/i386/sse.md (*mov<mode>_internal): Ditto.
17640         Use EXT_REX_SSE_REG_P where appropriate.
17642 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17644         * config/i386/predicates.md (const0_operand): Do not match
17645         const_wide_int code.
17646         (const1_operand): Ditto.
17648 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17650         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
17651         for SSE constm1 operands and TARGET_AVX512VL.
17652         (*movti_internal): Ditto.
17653         (*mov<mode>_or): Use constm1_operand predicate.
17654         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
17655         for SSE vector_all_ones operands and TARGET_AVX512VL.
17656         * config/i386/predicates.md (constm1_operand): New predicate.
17657         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
17658         emission of constant -1 load.
17660 2016-04-25  Jason Merrill  <jason@redhat.com>
17662         * gdbinit.in: Skip is-a.h.
17664         * attribs.c (register_scoped_attributes): Fix logic.
17665         * attribs.h: Declare register_scoped_attributes.
17667 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17669         * config/rs6000/rs6000-builtin.def: Correct pasto error for
17670         stxvd2x and stxvw4x built-in functions.
17672 2016-04-25  DJ Delorie  <dj@redhat.com>
17674         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
17675         (ashrhi3): Likewise.
17676         (lshrhi3): Likewise.
17678 2016-04-25  Richard Biener  <rguenther@suse.de>
17680         PR tree-optimization/70780
17681         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
17682         wasn't visited yet.
17683         (compute_antic): Mark blocks with abnormal preds as visited as
17684         they have a final empty antic-in solution already.
17686 2016-04-25  Michael Collison  <michael.collison@linaro.org>
17688         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
17690 2016-04-25  Michael Collison  <michael.collison@linaro.org>
17692         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
17693         mode is VQI to improve mixed mode vectorization.
17694         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
17695         define_insn to match low half of signed vaddw.
17696         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
17697         define_insn to match high half of signed vaddw.
17698         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
17699         define_insn to match low half of unsigned vaddw.
17700         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
17701         define_insn to match high half of unsigned vaddw.
17702         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
17703         (arm_simd_check_vect_par_cnst_half_p): Likewise.
17704         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
17705         for new function.
17706         (arm_simd_check_vect_par_cnst_half_p): Likewise.
17707         * config/arm/predicates.md (vect_par_constant_high): Support
17708         big endian and simplify by calling
17709         arm_simd_check_vect_par_cnst_half
17710         (vect_par_constant_low): Likewise.
17712 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17714         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
17715         predicate for operand 2.
17717 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
17718             H.J. Lu  <hongjiu.lu@intel.com>
17720         * config/i386/i386-protos.h (standard_sse_constant_p): Add
17721         machine_mode argument.
17722         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
17723         constm1_rtx operands.  For VOIDmode constants, get mode from
17724         pred_mode.  Check mode size if the mode is supported by ABI.
17725         (standard_sse_constant_opcode): Do not use standard_constant_p.
17726         Strictly check ABI support for all-ones operands.
17727         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
17728         immediates. Update calls to standard_sse_constant_p.
17729         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
17730         (ix86_rtx_costs): Ditto.
17731         * config/i386/i386.md (*movxi_internal_avx512f): Use
17732         nonimmediate_or_sse_const_operand instead of vector_move_operand.
17733         Use (v,BC) alternative instead of (v,C). Use register_operand
17734         checks instead of MEM_P.
17735         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
17736         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
17737         isa attribute.  Use register_operand checks instead of MEM_P.
17738         (*movti_internal): Use nonimmediate_or_sse_const_operand for
17739         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
17740         alternative and corresponding sse2 isa attribute.
17741         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
17742         to standard_sse_constant_p.
17743         (FP constant splitters): Ditto.
17744         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
17745         (C): Ditto.
17746         * config/i386/predicates.md (constm1_operand): Remove.
17747         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
17748         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
17749         vector_all_ones_operand instead of constm1_operand.
17751 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17753         * print-rtl.c (print_rtx_insn_vec): New function.
17754         * print-rtl.h: New prototype.
17755         * store-motion.c (struct st_expr): Make avail_stores a vector.
17756         (st_expr_entry): Adjust.
17757         (free_st_expr_entry): Likewise.
17758         (print_store_motion_mems): Likewise.
17759         (find_moveable_store): Likewise.
17760         (compute_store_table): Likewise.
17761         (delete_store): Likewise.
17762         (build_store_vectors): Likewise.
17764 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17766         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
17768 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17770         * vec.h (vec_safe_contains): New function.
17771         (vec::contains): Likewise.
17772         (vec::begin): Likewise.
17773         (vec::end): Likewise.
17775 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
17777         PR sanitizer/70712
17778         * cfgexpand.c (expand_stack_vars): Fix typo.
17780 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17782         * system.h (list, map, set, vector): Include conditionally.
17783         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
17784         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
17785         * ipa-icf.c (INCLUDE_LIST): Define.
17786         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
17787         * config/sh/sh.c (INCLUDE_VECTOR): Define.
17788         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
17789         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
17790         * cp/logic.cc (INCLUDE_LIST): Define.
17791         * fortran/trans-common.c (INCLUDE_MAP): Define.
17793 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17795         * auto-profile.c: Remove <string.h> include.
17796         * ipa-icf-gimple.c: Remove <list> include.
17797         * diagnostic.c: Remove <new> include.
17798         * genmatch.c: Likewise.
17799         * pretty-print.c: Likewise.
17800         * toplev.c: Likewise
17801         * c/c-objc-common.c: Likewise.
17802         * cp/error.c: Likewise.
17803         * fortran/error.c: Likewise.
17805 2016-04-22  Richard Biener  <rguenther@suse.de>
17807         * lto-streamer-in.c (input_ssa_names): Do not allocate
17808         GIMPLE_NOP for all SSA names.
17809         * lto-streamer-out.c (output_ssa_names): Do not output
17810         SSA names that should have been released.
17812 2016-04-22  Richard Biener  <rguenther@suse.de>
17814         PR tree-optimization/70740
17815         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
17816         VDEF.
17818 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
17820         PR target/70750
17821         * config/i386/predicates.md (call_insn_operand): Replace
17822         sibcall_memory_operand with memory_operand.
17824 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
17826         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
17827         has_single_use() tests.
17828         (register_edge_assert_for_1): Likewise.
17829         (find_assert_locations_1): Check the liveness bitmap instead of
17830         checking has_single_use().
17832 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17834         PR target/70728
17835         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
17836         Extract AVX-512BW constraint from AVX.
17838 2016-04-21  Richard Biener  <rguenther@suse.de>
17840         PR tree-optimization/70725
17841         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
17842         for phi_convertible_by_degenerating_args.
17843         (predicate_all_scalar_phis): Handle single-argument PHIs.
17845 2016-04-21  Richard Biener  <rguenther@suse.de>
17847         PR middle-end/70747
17848         * fold-const.c (fold_comparison): Return properly typed
17849         constant boolean.
17851 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
17853         PR tree-optimization/70715
17854         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
17855         after expanding BASE using expand_simple_operations.
17857 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
17859         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
17860         New transformations.
17862 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
17864         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
17866 2016-04-20  Jan Hubicka  <jh@suse.cz>
17868         * ipa-inline.c (can_inline_edge_p): Pass caller info to
17869         ultiimate_alias_target.
17870         (update_callee_keys): Likewise.
17871         (lookup_recursive_calls): Likewise.
17872         (speculation_useful_p): Likewise.
17874 2016-04-20  Jan Hubicka  <jh@suse.cz>
17876         PR ipa/70018
17877         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
17878         (set_nothrow_flag_1): ... this; handle interposition correctly;
17879         recurse on aliases and thunks.
17880         (cgraph_node::set_nothrow_flag): New.
17881         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
17882         functions compiled with non-call exceptions that binds to current
17883         def.
17884         (propagate_nothrow): Be safe WRT interposition.
17885         * cgraph.h (set_nothrow_flag): Update prototype.
17887 2016-04-18  Jan Hubicka  <jh@suse.cz>
17889         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17890         max_loop_iterations_int.
17891         (tree_unswitch_outer_loop): Likewise.
17893 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17895         PR tree-optimization/69489
17896         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
17897         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
17898         Revise dump message.
17899         (if_convertible_bb_p): Remove check on edge count of basic block's
17900         predecessors.
17902 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17904         PR tree-optimization/56625
17905         PR tree-optimization/69489
17906         * tree-data-ref.h (DR_INNERMOST): New macro.
17907         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
17908         hashing struct innermost_loop_behavior.
17909         (ref_DR_map): Remove.
17910         (innermost_DR_map): New map.
17911         (baseref_DR_map): Revise comment.
17912         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
17913         to innermost_DR_map accroding to its innermost loop behavior.
17914         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
17915         to its innermost loop behavior.
17916         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
17917         Add initialization for innermost_DR_map.  Record memory reference
17918         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
17919         have innermost loop behavior.
17920         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
17921         innermost_DR_map.
17923 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
17925         * config/i386/i386.md (*lea<mode>_general_1): Rename from
17926         *lea_general_1.  Use explicit SWI12 mode interator.
17927         (*lea<mode>_general_2): Rename from *lea_general_2.
17928         Use explicit SWI12 mode interator.
17929         (*lea<mode>_general_3): Rename from *lea_general_3.
17930         Use explicit SWI12 mode interator.
17931         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
17932         Use explicit SWI12 mode interator.
17933         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
17934         Use explicit SWI48 mode interator.
17936 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17938         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17939         Short-cut unaligned load and store cases.  Handle all integer
17940         vector modes.
17941         (ix86_expand_vector_move_misalign): Short-cut unaligned load
17942         and store cases.  Call ix86_avx256_split_vector_move_misalign
17943         directly without checking mode class.
17945 2016-04-20  Andrew Pinski  <apinski@cavium.com>
17946             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17948         PR target/64971
17949         * config/aarch64/aarch64.md (sibcall): Force call
17950         address to be DImode for ILP32.
17951         (sibcall_value): Likewise.
17953 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17955         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
17957 2016-04-20  Richard Biener  <rguenther@suse.de>
17959         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
17960         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
17961         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
17962         (maybe_push_res_to_seq): Adjust.
17963         * gimple-fold.c (maybe_build_generic_op): Likewise.
17965 2016-04-20  Marek Polacek  <polacek@redhat.com>
17967         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
17968         rather than true.
17970 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
17972         * config/i386/sse.md (vec_unpacks_lo_hi): Always
17973         use kmovw to support AVX512F target.
17975 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17977         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
17979 2016-04-20  Marek Polacek  <polacek@redhat.com>
17981         PR tree-optimization/70725
17982         * tree-if-conv.c (is_false_predicate): New function.
17983         (predicate_mem_writes): Use it.
17985 2016-04-20  Richard Biener  <rguenther@suse.de>
17987         PR tree-optimization/70726
17988         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
17989         shift amounts from a pattern stmt operand.
17991 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17993         PR target/70674
17994         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
17995         stack_restore_from_fpr pattern when restoring r15.
17996         (s390_optimize_prologue): Strip away the memory barrier in the
17997         parallel when trying to get rid of restore insns.
17998         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
17999         definition for loading the stack pointer from an FPR.  Compared to
18000         the normal move insn this pattern includes a full memory barrier.
18002 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
18004         PR middle-end/70680
18005         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
18006         implicitly linear or lastprivate iterator on the outer context.
18008 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
18010         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
18011         alignment check.
18012         * config/i386/i386.md (ssememalign): Removed.
18013         * config/i386/sse.md: Remove ssememalign attribute from patterns.
18015 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
18017         PR target/69201
18018         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
18019         const short * to __builtin_ia32_loaddquhi512_mask.
18020         (_mm512_maskz_loadu_epi16): Likewise.
18021         (_mm512_mask_storeu_epi16): Pass short * to
18022         __builtin_ia32_storedquhi512_mask.
18023         (_mm512_mask_loadu_epi8): Pass const char * to
18024         __builtin_ia32_loaddquqi512_mask.
18025         (_mm512_maskz_loadu_epi8): Likewise.
18026         (_mm512_mask_storeu_epi8): Pass char * to
18027         __builtin_ia32_storedquqi512_mask.
18028         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
18029         const double * to __builtin_ia32_loadupd512_mask.
18030         (_mm512_mask_loadu_pd): Likewise.
18031         (_mm512_maskz_loadu_pd): Likewise.
18032         (_mm512_storeu_pd): Pass double * to
18033         __builtin_ia32_storeupd512_mask.
18034         (_mm512_mask_storeu_pd): Likewise.
18035         (_mm512_loadu_ps): Pass const float * to
18036         __builtin_ia32_loadups512_mask.
18037         (_mm512_mask_loadu_ps): Likewise.
18038         (_mm512_maskz_loadu_ps): Likewise.
18039         (_mm512_storeu_ps): Pass float * to
18040         __builtin_ia32_storeups512_mask.
18041         (_mm512_mask_storeu_ps): Likewise.
18042         (_mm512_mask_loadu_epi64): Pass const long long * to
18043         __builtin_ia32_loaddqudi512_mask.
18044         (_mm512_maskz_loadu_epi64): Likewise.
18045         (_mm512_mask_storeu_epi64): Pass long long *
18046         to __builtin_ia32_storedqudi512_mask.
18047         (_mm512_loadu_si512): Pass const int * to
18048         __builtin_ia32_loaddqusi512_mask.
18049         (_mm512_mask_loadu_epi32): Likewise.
18050         (_mm512_maskz_loadu_epi32): Likewise.
18051         (_mm512_storeu_si512): Pass int * to
18052         __builtin_ia32_storedqusi512_mask.
18053         (_mm512_mask_storeu_epi32): Likewise.
18054         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
18055         char * to __builtin_ia32_storedquqi256_mask.
18056         (_mm_mask_storeu_epi8): Likewise.
18057         (_mm256_mask_loadu_epi16): Pass const short * to
18058         __builtin_ia32_loaddquhi256_mask.
18059         (_mm256_maskz_loadu_epi16): Likewise.
18060         (_mm_mask_loadu_epi16): Pass const short * to
18061         __builtin_ia32_loaddquhi128_mask.
18062         (_mm_maskz_loadu_epi16): Likewise.
18063         (_mm256_mask_loadu_epi8): Pass const char * to
18064         __builtin_ia32_loaddquqi256_mask.
18065         (_mm256_maskz_loadu_epi8): Likewise.
18066         (_mm_mask_loadu_epi8): Pass const char * to
18067         __builtin_ia32_loaddquqi128_mask.
18068         (_mm_maskz_loadu_epi8): Likewise.
18069         (_mm256_mask_storeu_epi16): Pass short * to.
18070         __builtin_ia32_storedquhi256_mask.
18071         (_mm_mask_storeu_epi16): Pass short * to.
18072         __builtin_ia32_storedquhi128_mask.
18073         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
18074         const double * to __builtin_ia32_loadupd256_mask.
18075         (_mm256_maskz_loadu_pd): Likewise.
18076         (_mm_mask_loadu_pd): Pass onst double * to
18077         __builtin_ia32_loadupd128_mask.
18078         (_mm_maskz_loadu_pd): Likewise.
18079         (_mm256_mask_storeu_pd): Pass double * to
18080         __builtin_ia32_storeupd256_mask.
18081         (_mm_mask_storeu_pd): Pass double * to
18082         __builtin_ia32_storeupd128_mask.
18083         (_mm256_mask_loadu_ps): Pass const float * to
18084         __builtin_ia32_loadups256_mask.
18085         (_mm256_maskz_loadu_ps): Likewise.
18086         (_mm_mask_loadu_ps): Pass const float * to
18087         __builtin_ia32_loadups128_mask.
18088         (_mm_maskz_loadu_ps): Likewise.
18089         (_mm256_mask_storeu_ps): Pass float * to
18090         __builtin_ia32_storeups256_mask.
18091         (_mm_mask_storeu_ps): ass float * to
18092         __builtin_ia32_storeups128_mask.
18093         (_mm256_mask_loadu_epi64): Pass const long long * to
18094         __builtin_ia32_loaddqudi256_mask.
18095         (_mm256_maskz_loadu_epi64): Likewise.
18096         (_mm_mask_loadu_epi64): Pass const long long * to
18097         __builtin_ia32_loaddqudi128_mask.
18098         (_mm_maskz_loadu_epi64): Likewise.
18099         (_mm256_mask_storeu_epi64): Pass long long * to
18100         __builtin_ia32_storedqudi256_mask.
18101         (_mm_mask_storeu_epi64): Pass long long * to
18102         __builtin_ia32_storedqudi128_mask.
18103         (_mm256_mask_loadu_epi32): Pass const int * to
18104         __builtin_ia32_loaddqusi256_mask.
18105         (_mm256_maskz_loadu_epi32): Likewise.
18106         (_mm_mask_loadu_epi32): Pass const int * to
18107         __builtin_ia32_loaddqusi128_mask.
18108         (_mm_maskz_loadu_epi32): Likewise.
18109         (_mm256_mask_storeu_epi32): Pass int * to
18110         __builtin_ia32_storedqusi256_mask.
18111         (_mm_mask_storeu_epi32): Pass int * to
18112         __builtin_ia32_storedqusi128_mask.
18113         * config/i386/i386-builtin-types.def (PCSHORT): New.
18114         (PINT64): Likewise.
18115         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
18116         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
18117         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
18118         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
18119         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
18120         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18121         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18122         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18123         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18124         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18125         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18126         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18127         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18128         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18129         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18130         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18131         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18132         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18133         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18134         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18135         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18136         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18137         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18138         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18139         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18140         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18141         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18142         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18143         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18144         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18145         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18146         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18147         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18148         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18149         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18150         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18151         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18152         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18153         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18154         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18155         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18156         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18157         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18158         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18159         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18160         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18161         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18162         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18163         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18164         use UNSPEC_STOREU.
18165         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18166         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18167         load nor store.
18168         (ix86_expand_vector_move_misalign): Likewise.
18169         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18170         to scalar function prototype for unaligned load/store builtins.
18171         (ix86_expand_special_args_builtin): Updated.
18172         * config/i386/sse.md (UNSPEC_LOADU): Removed.
18173         (UNSPEC_STOREU): Likewise.
18174         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18175         (VI_ULOADSTORE_F_AVX512VL): Likewise.
18176         (ssescalarsize): Handle V4TI, V2TI and V1TI.
18177         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18178         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18179         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18180         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18181         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18182         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18183         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18184         (<avx512>_storedqu<mode>_mask): Likewise.
18185         (*sse4_2_pcmpestr_unaligned): Likewise.
18186         (*sse4_2_pcmpistr_unaligned): Likewise.
18187         (*mov<mode>_internal): Renamed to ...
18188         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
18189         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18190         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18191         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18193 2016-04-19  Richard Biener  <rguenther@suse.de>
18195         PR tree-optimization/70171
18196         * tree-ssa-phiprop.c: Include stor-layout.h.
18197         (phiprop_insert_phi): Handle the aggregate copy case.
18198         (propagate_with_phi): Likewise.
18200 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
18202         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18203         instead of simplify_gen_subreg (... , 0).
18204         (ix86_delegitimize_address): Ditto.
18205         (ix86_split_divmod): Ditto.
18206         (ix86_split_copysign_const): Ditto.
18207         (ix86_split_copysign_var): Ditto.
18208         (ix86_expand_args_builtin): Ditto.
18209         (ix86_expand_round_builtin): Ditto.
18210         (ix86_expand_special_args_builtin): Ditto.
18211         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18212         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18213         (udivmodqi4): Ditto.
18214         (absneg splitters): Ditto.
18215         (*jcc_bt<mode>_1): Ditto.
18217 2016-04-19  Richard Biener  <rguenther@suse.de>
18219         PR tree-optimization/70724
18220         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18221         restoring out from ...
18222         (free_scc_vn): ... here.
18223         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18224         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18225         tail merging.
18226         (pass_fre::execute): Restore SSA info.
18228 2016-04-19  Richard Biener  <rguenther@suse.de>
18230         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18231         * gimple-walk.c (walk_gimple_op): Initialize it.
18232         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18233         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18234         remapping SSA names of defs.
18235         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18236         adjustment.
18238 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
18240         PR middle-end/70689
18241         * lra-constraints.c (equiv_substition_p): New.
18242         (process_alt_operands): Use it.
18243         (swap_operands): Swap it.
18244         (curr_insn_transform): Update it.
18246 2016-04-18  Michael Matz  <matz@suse.de>
18248         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18249         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18250         * tree-core.h (tree_type_common.align): Use bit-field.
18251         (tree_type_common.spare): New.
18252         (tree_decl_common.off_align): Make smaller.
18253         (tree_decl_common.align): Use bit-field.
18255         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18256         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18257         (scan_sharing_clauses): Ditto.
18258         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18259         (omp_finish_file): Ditto.
18260         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18261         (layout_decl): Ditto.
18262         (relayout_decl): Ditto.
18263         (finalize_record_size): Use SET_TYPE_ALIGN.
18264         (finalize_type_size): Ditto.
18265         (finish_builtin_struct): Ditto.
18266         (layout_type): Ditto.
18267         (initialize_sizetypes): Ditto.
18268         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18269         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18270         (lookup_field_for_decl): Use SET_DECL_ALIGN.
18271         (get_chain_field): Ditto.
18272         (get_trampoline_type): Ditto.
18273         (get_nl_goto_field): Ditto.
18274         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18275         SET_DECL_ALIGN.
18276         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18277         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18278         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18279         (build_qualified_type): Use SET_TYPE_ALIGN.
18280         (build_aligned_type, build_range_type_1): Ditto.
18281         (build_atomic_base): Ditto.
18282         (build_common_tree_nodes): Ditto.
18283         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18284         (expand_one_stack_var_at): Ditto.
18285         * coverage.c (build_var): Use SET_DECL_ALIGN.
18286         * except.c (init_eh): Ditto.
18287         * function.c (assign_parm_setup_block): Ditto.
18288         * symtab.c (increase_alignment_1): Ditto.
18289         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18290         * tree-vect-stmts.c (ensure_base_align): Ditto.
18291         * varasm.c (align_variable): Ditto.
18292         (assemble_variable): Ditto.
18293         (build_constant_desc): Ditto.
18294         (output_constant_def_contents): Ditto.
18296         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18297         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18298         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18299         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18300         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18302 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
18304         PR target/70708
18305         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18306         replace %vmovsd with "%vmovq".
18307         (vec_concatv2df): Likewise.
18309 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
18311         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18312         (*vec_extractv2si_0): Ditto.
18313         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18314         (zero_extended_scalar_load_operand splitters): Ditto.
18315         (vec_extract splitters): Ditto.
18316         (*vec_extractv4si_0_zext): Ditto.
18317         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18318         and lowpart_subreg.
18319         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18320         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18321         (*sse4_1_extractps): Use lowpart_subreg.
18322         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18324 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18326         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18327         gld requirements.
18328         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18329         Mention Solaris 11 packaging changes.
18330         Update gas and gld requirements.
18331         Remove reference to pre-Solaris 10 bug.
18332         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18333         systems and bugs.
18334         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18335         with cc.
18337 2016-04-17  Jan Hubicka  <jh@suse.cz>
18339         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18340         max_loop_iterations_int.
18342 2016-04-18  Richard Biener  <rguenther@suse.de>
18344         PR tree-optimization/43434
18345         * tree-ssa-structalias.c (struct vls_data): New.
18346         (visit_loadstore): Handle all pointer-based accesses.
18347         (compute_dependence_clique): Compute a bitmap of restrict tags
18348         assigned bases and pass it to visit_loadstore.
18350 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
18352         PR target/70711
18353         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18354         armv8.1-a and armv8.1-a+crc.
18356 2016-04-18  Richard Biener  <rguenther@suse.de>
18358         PR tree-optimization/70701
18359         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18360         references after translating through a memcpy.
18362 2016-04-18  Richard Biener  <rguenther@suse.de>
18364         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18365         (compute_antic): ... here.  For partial antic use regular
18366         postorder and scrap iteration.
18367         (compute_partial_antic_aux): Remove unused return value.
18368         (init_pre): Do not allocate postorder.
18369         (fini_pre): Do not free postorder.
18371 2016-04-18  Richard Biener  <rguenther@suse.de>
18373         PR middle-end/37870
18374         * expmed.c (extract_bit_field_1): Remove broken case
18375         using a wider MODE_INT mode.
18377 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
18379         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18380         unless compiling with at least GCC-4.8.
18382 2016-04-17  Jan Hubicka  <jh@suse.cz>
18384         PR bootstrap/70706
18385         * graphite.c (graphite_finalize): Update call to
18386         tree_estimate_probability.
18387         * predict.h (tree_estimate_probability): Update prototype.
18389 2016-04-17  Jan Hubicka  <jh@suse.cz>
18391         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18392         (tree_estimate_probability): Likewise.
18393         (pass_profile::execute): Update.
18394         (report_predictor_hitrates): New function.
18395         * profile.c (compute_branch_probabilities): Use it.
18396         * predict.h (report_predictor_hitrates): Declare.
18398 2016-04-17  Jan Hubicka  <jh@suse.cz>
18400         PR ipa/70018
18401         * cgraph.h (cgraph_node::set_const_flag,
18402         cgraph_node::set_pure_flag): Update prototype to return bool;
18403         update comment.
18404         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18405         of interposable symbol are interposable, too.
18406         (cgraph_set_const_flag_1): Rename to ...
18407         (set_const_flag_1): ... this one; change to self recursive function
18408         instead of call_for_symbol_thunks_and_aliases. Handle correctly
18409         clearnig the flag in all variants and also virtual thunks of const
18410         functions are pure; track if any change was done.
18411         (cgraph_node::set_const_flag): Update.
18412         (struct set_pure_flag_info): New struct.
18413         (cgraph_set_pure_flag_1): Rename to ...
18414         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18415         rather than pointer encoded flags; track if any changes was done;
18416         handle correctly clearning flag and setting flag of aliases already
18417         declared const.
18418         (cgraph_node::set_pure_flag): Update.
18419         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18421 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18423         PR other/70433
18424         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18425         backslash in label.
18427 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18429         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18430         '{}<> ' as escape-for-record.
18432 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18434         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18435         structure.
18437 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18439         PR other/70185
18440         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
18441         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
18442         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
18443         * passes.c (finish_optimization_passes): Only call
18444         finish_graph_dump_file if dfi->graph_dump_initialized.
18445         (execute_function_dump, pass_init_dump_file): Use
18446         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
18448 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18450         PR tree-optimization/70256
18451         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
18452         (debug_varmap): New function.
18454 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18456         PR other/70183
18457         * passes.c (pass_manager::register_pass): Propagate pflags.
18459 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18461         PR other/68875
18462         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
18463         * passes.c (pass_manager::pass_manager): Declare and init p_start in
18464         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
18465         check if it's equal to p_start.
18466         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
18468 2016-04-15  Jan Hubicka  <jh@suse.cz>
18470         PR ipa/70018
18471         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
18472         function does not bind to current def.
18473         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
18474         handle conservatively calls to functions that does not need to bind
18475         to current def.
18476         (check_call): Update call of worse_state.
18477         (ignore_edge_for_nothrow): Update.
18478         (ignore_edge_for_pure_const): Likewise.
18479         (propagate_pure_const): Update calls to worse_state.
18480         (skip_function_for_local_pure_const): Reformat comments.
18482 2016-04-15  Jan Hubicka  <jh@suse.cz>
18484         PR ipa/70018
18485         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
18486         (cgraph_node::function_symbol): Likewise.
18487         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18488         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
18489         (symtab_node::ultimate_alias_target): Add REF parameter.
18490         (symtab_node::binds_to_current_def_p): Declare.
18491         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
18492         (cgraph_node::function_symbol): Likewise.
18493         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18494         (cgraph_node::get_availability): Likewise.
18495         (cgraph_edge::binds_to_current_def_p): New inline function.
18496         (varpool_node::get_availability): Add REF parameter.
18497         (varpool_node::ultimate_alias_target): Likewise.
18498         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
18499         (symtab_node::binds_to_current_def_p): Likewise.
18500         * varpool.c (varpool_node::get_availability): Likewise.
18502 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
18504         PR target/70662
18505         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
18506         Fix mode size check.
18508 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
18510         * BASE-VER: Set to 7.0.0.
18512 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
18514         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
18516 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18518         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
18519         architecture revisions.
18521 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
18523         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
18524         * config/i386/i386.c (ix86_using_red_zone): No longer static.
18525         * config/i386/i386.md (stack decrement to push peepholes): Guard
18526         with !x86_using_red_zone ().
18528 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
18530         PR c++/70675
18531         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
18532         to dump_generic_node.
18533         (NIY): Pass also flags to do_niy.
18535 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18537         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
18538         (simd_clone_vector_of_formal_parm_types)
18539         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
18540         (simd_clone_mangle, simd_clone_create)
18541         (simd_clone_adjust_return_type, create_tmp_simd_array)
18542         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
18543         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
18544         (ipa_simd_modify_function_body, simd_clone_linear_addend)
18545         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
18546         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
18547         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
18548         * omp-simd-clone.c: ... this new file.
18549         (simd_clone_vector_of_formal_parm_types): Make it static.
18550         * Makefile.in (OBJS): Add omp-simd-clone.o.
18552 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
18554         PR target/70662
18555         * config/i386/sse.md: Use proper memory operand modifiers.
18558 2016-04-15  Richard Biener  <rguenther@suse.de>
18559         Alan Modra  <amodra@gmail.com>
18561         PR tree-optimization/70130
18562         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
18563         when alignment stays not the same and no not use the realign
18564         scheme then.
18566 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18568         PR target/70669
18569         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18570         direct move handlers for KFmode. Change TFmode handlers test from
18571         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
18573 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
18575         PR c++/70594
18576         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
18577         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
18578         (inlined_polymorphic_ctor_dtor_block_p): Use it.
18579         * tree-ssa-live.c (remove_unused_scope_block_p): When
18580         in_ctor_dtor_block, avoid discarding not just BLOCKs with
18581         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
18582         block_ultimate_origin is FUNCTION_DECL.
18583         (remove_unused_locals): If current_function_decl is
18584         polymorphic_ctor_dtor_p, pass initial true to
18585         remove_unused_scope_block_p' is_ctor_dtor_block.
18587 2016-04-14  Martin Sebor  <msebor@redhat.com>
18589         PR c++/69517
18590         PR c++/70019
18591         PR c++/70588
18592         * doc/extend.texi (Variable Length): Revert.
18594 2016-04-14  Marek Polacek  <polacek@redhat.com>
18595             Jan Hubicka  <hubicka@ucw.cz>
18597         PR c++/70029
18598         * tree.c (verify_type): Disable the canonical type of main variant
18599         check.
18601 2016-04-14  Jason Merrill  <jason@redhat.com>
18603         * cfgexpand.c, expr.c: Revert previous change.
18605 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
18607         PR middle-end/70643
18608         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
18609         when building a mem ref for the incoming reduction variable.
18611 2016-04-14  Richard Biener  <rguenther@suse.de>
18613         PR tree-optimization/70614
18614         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
18615         loop if the evolution dropped to chrec_dont_know.
18616         (interpret_condition_phi): Likewise.
18618 2016-04-14  Richard Biener  <rguenther@suse.de>
18620         PR tree-optimization/70623
18621         * tree-ssa-pre.c (changed_blocks): Make global ...
18622         (compute_antic): ... local here.  Move and fix worklist
18623         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
18624         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
18625         worklist handling, dump when ANTIC_IN changed.
18626         (compute_partial_antic_aux): Remove worklist handling.
18627         (init_pre): Do not compute post dominators.  Add a comment about
18628         the CFG order chosen.
18629         (fini_pre): Do not free post dominators.
18631 2016-04-13  Martin Sebor  <msebor@redhat.com>
18633         PR c++/69517
18634         PR c++/70019
18635         PR c++/70588
18636         * doc/extend.texi (Variable Length): Document C++ specifics.
18638 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
18640         PR c++/70641
18641         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
18642         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
18643         eh edges have been purged.
18645         PR c++/70594
18646         * tree-sra.c (create_access_replacement,
18647         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
18648         gets fancy name.
18649         * tree-pretty-print.c (dump_fancy_name): New function.
18650         (dump_decl_name, dump_generic_node): Use it.
18652 2016-04-13  Jason Merrill  <jason@redhat.com>
18654         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
18655         * expr.c (expand_expr_real_1): Likewise.
18657 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18659         * config/i386/i386.md (kunpckhi): Swap operands.
18660         (kunpcksi): Likewise.
18661         (kunpckdi): Likewise.
18662         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
18663         (vec_pack_trunc_<mode>): Likewise.
18665 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
18667         PR debug/70628
18668         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
18670         PR middle-end/70633
18671         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
18672         gimplification turns some element into non-constant.
18674         PR debug/70628
18675         * rtl.h (convert_memory_address_addr_space_1): New prototype.
18676         * explow.c (convert_memory_address_addr_space_1): No longer static,
18677         add NO_EMIT argument and don't call convert_modes if true, pass
18678         it down recursively, remove break after return.
18679         (convert_memory_address_addr_space): Adjust caller.
18680         * simplify-rtx.c (simplify_unary_operation_1): Call
18681         convert_memory_address_addr_space_1 instead of convert_memory_address,
18682         if it returns NULL, don't simplify.
18684 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18686         PR target/70630
18687         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
18689 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
18691         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18692         Bump the upper SIMDLEN limits, so that if the return type or
18693         characteristic type if the return type is void can be passed in
18694         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
18695         allowed.
18697 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18699         PR target/70640
18700         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
18701         Do not use "=" constraint on an input constraint.
18702         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18703         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18704         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
18705         generates (neg (abs ...)) instead of (abs ...).
18707 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
18709         PR rtl-optimization/70596
18710         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
18711         just invalidate LRA data and reset them.  Adjust dump wording.
18713 2016-04-12  Martin Liska  <mliska@suse.cz>
18715         Revert
18716         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18718         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18719         estimates here.
18720         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18721         max_loop_iterations_int.
18722         (tree_unswitch_outer_loop): Likewise.
18723         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18724         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18726 2016-04-12  Tom de Vries  <tom@codesourcery.com>
18728         PR tree-optimization/68756
18729         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
18730         instead of new_name.
18732 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
18734         PR tree-optimization/70602
18735         * tree-sra.c (generate_subtree_copies): Don't write anything into
18736         constant pool decls.
18738         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
18739         regardless whether there are depend clauses or not.
18741 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18743         PR target/70381
18744         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
18745         target attribute and pragma from changing the -mfloat128
18746         and -mfloat128-hardware options.
18748         * doc/extend.texi (Additional Floating Types): Document PowerPC
18749         __float128 restrictions.
18751 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18753         PR target/70133
18754         * config/aarch64/driver-aarch64.c
18755         (aarch64_get_extension_string_for_isa_flags): New.
18756         (arch_extension): Rename to...
18757         (aarch64_arch_extension): ...This.
18758         (ext_to_feat_string): Rename to...
18759         (aarch64_extensions): ...This.
18760         (aarch64_core_data): Keep track of architecture extension flags.
18761         (cpu_data): Rename to...
18762         (aarch64_cpu_data): ...This.
18763         (aarch64_arch_driver_info): Keep track of architecture extension
18764         flags.
18765         (get_arch_name_from_id): Rename to...
18766         (get_arch_from_id): ...This, change return type.
18767         (host_detect_local_cpu): Update and reformat for renames, handle
18768         extensions through common infrastructure.
18770 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18772         PR target/70133
18773         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
18774         track of a canonical flag name.
18775         (all_extensions): Likewise.
18776         (arch_to_arch_name): Also track extension flags enabled by the arch.
18777         (all_architectures): Likewise.
18778         (aarch64_parse_extension): Move to here.
18779         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
18780         rework.
18781         (aarch64_rewrite_selected_cpu): Update for above change.
18782         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
18783         are handled, such that the single explicit value enabled by an
18784         extension is kept seperate from the implicit values it also enables.
18785         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
18786         to here.
18787         (aarch64_parse_extension): New.
18788         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
18789         here to config/aarch64/aarch64-protos.h.
18790         (aarch64_parse_extension): Move from here to
18791         common/config/aarch64/aarch64-common.c.
18792         (aarch64_option_print): Update.
18793         (aarch64_declare_function_name): Likewise.
18794         (aarch64_start_file): Likewise.
18795         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
18796         the canonical flag for extensions.
18797         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
18798         flags.
18800 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18802         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
18803         AARCH64_FL_CRC.
18805 2016-04-09  Tom de Vries  <tom@codesourcery.com>
18807         PR tree-optimization/68953
18808         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
18809         first to last subscript.
18811 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
18813         PR tree-optimization/70586
18814         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
18815         for any calls.
18817 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
18819         PR lto/70289
18820         PR ipa/70348
18821         PR tree-optimization/70373
18822         PR middle-end/70533
18823         PR middle-end/70534
18824         PR middle-end/70535
18825         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
18826         clauses for acc parallel reductions as necessary.  Error on those
18827         that are private.
18828         * omp-low.c (scan_sharing_clauses): Don't install variables which
18829         are used in acc parallel reductions.
18830         (lower_rec_input_clauses): Remove dead code.
18831         (lower_oacc_reductions): Add support for reference reductions.
18832         (lower_reduction_clauses): Remove dead code.
18833         (lower_omp_target): Don't remap variables appearing in acc parallel
18834         reductions.
18835         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
18837 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
18839         PR middle-end/70593
18840         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
18841         with multiple SSA_NAME defs, force the outputs other than first
18842         to be live before calling live_track_process_def on each output.
18844         PR rtl-optimization/70574
18845         * fwprop.c (forward_propagate_and_simplify): Don't add
18846         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
18847         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
18848         paradoxical subregs within *loc.
18850 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
18852         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
18853         -ftree-parallelize-loops={0,1}.
18854         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18855         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18856         * config/ia64/hpux.h (LIB_SPEC): Likewise.
18857         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18858         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18860 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
18862         PR sanitizer/70541
18863         * asan.c (instrument_derefs): If we get unknown location, extract it
18864         with EXPR_LOCATION.
18865         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
18867 2016-04-08  Tom de Vries  <tom@codesourcery.com>
18869         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
18870         implicit firstprivate clause.
18872 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18874         PR target/70566
18875         * config/arm/thumb2.md (tst + branch-> lsls + branch
18876         peephole below *orsi_not_shiftsi_si): Require that condition
18877         register is dead after the peephole.
18878         (second peephole after the above): Likewise.
18880 2016-04-08  Alan Modra  <amodra@gmail.com>
18882         PR target/70117
18883         * builtins.c (fold_builtin_classify): For IBM extended precision,
18884         look at just the high-order double to test for NaN.
18885         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
18886         test just the high double for Inf but both doubles for subnormal
18887         limit.
18889 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
18891         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
18892         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
18893         node->simdclone->mask_mode != VOIDmode masks.
18894         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
18895         earlier, use it instead of node->simdclone.
18896         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18897         Set clonei->mask_mode.
18899 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18901         PR c/70436
18902         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
18903         Pass it through to cp_parser_already_scoped_statement.
18904         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
18905         it through to cp_parser_statement.
18906         (cp_parser_statement): Pass IF_P through to
18907         cp_parser_iteration_statement.
18908         (cp_parser_pragma): Adjust call to
18909         cp_parser_iteration_statement.
18911 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18913         PR c/70436
18914         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
18915         resolve a future -Wparentheses warning.
18916         * omp-low.c (scan_sharing_clauses): Likewise.
18917         * tree-parloops.c (eliminate_local_variables): Likewise.
18919 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
18921         PR rtl-optimization/70398
18922         * lra-constraints.c (process_address_1): Check zero scale and code
18923         for reloading with zero scale.
18925 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
18927         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
18928         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
18930 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
18932         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18933         Add support for AVX512F clones, include them by default for
18934         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
18935         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
18936         up to 128.
18938         PR middle-end/70550
18939         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
18940         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
18941         firstprivate clauses.
18942         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
18943         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
18944         (lower_omp_target): Set TREE_NO_WARNING for
18945         non-addressable possibly uninitialized vars which are copied into
18946         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
18948 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
18950         * config/pa/predicates.md (integer_store_memory_operand): Accept
18951         REG+D operands with a large offset when reload_in_progress is true.
18952         (floating_point_store_memory_operand): Likewise.
18954 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18956         PR c++/70336
18957         * match.pd (nested int casts): Limit to GIMPLE.
18959 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
18961         PR ipa/66223
18962         * ipa-devirt.c (maybe_record_node): Fix comment; use
18963         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
18965 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18967         PR rtl-optimization/70542
18968         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
18969         if there are any uses other than insn or debug insns.
18971 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
18972             Jakub Jelinek  <jakub@redhat.com>
18974         PR tree-optimization/70509
18975         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
18976         Shift HOST_WIDE_INT_1U instead of 1.
18978 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
18980         PR tree-optimization/70509
18981         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
18982         of the vector base type for index.
18984 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
18986         PR target/70510
18987         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
18989 2016-04-05  Richard Biener  <rguenther@suse.de>
18991         PR tree-optimization/70526
18992         * tree-sra.c (build_ref_for_offset): Use prev_base to
18993         extract the alias pointer type.
18995 2016-04-05  Richard Biener  <rguenther@suse.de>
18997         * dse.c (struct store_info): Remove alias_set member.
18998         (struct read_info_type): Likewise.
18999         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
19000         spill_deleted, clear_alias_set_lookup): Remove.
19001         (get_group_info): Remove dead base == NULL_RTX case.
19002         (dse_step0): Remove initialization of removed variables.
19003         (delete_dead_store_insn): Reomve alias set dumping.
19004         (free_read_records): Remove alias_set handling.
19005         (canon_address): Remove alias_set_out parameter.
19006         (record_store): Remove spill_alias_set, it's always zero.
19007         (check_mem_read_rtx): Likewise.
19008         (dse_step2): Rename from ...
19009         (dse_step2_nospill): ... this.  Adjust.
19010         (scan_stores): Rename from ...
19011         (scan_stores_nospill): ... this.
19012         (scan_reads): Rename from ...
19013         (scan_reads_nospill): ... this.
19014         (scan_stores_spill, scan_reads_spill): Remove.
19015         (dse_step3_scan): Remove for_spills argument which is always false.
19016         (dse_step3): Likewise.
19017         (dse_step5): Rename from ...
19018         (dse_step5_nospill): ... this.  Remove alias_set handling.
19019         (rest_of_handle_dse): Adjust.
19021 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
19023         PR target/70525
19024         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
19025         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
19026         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
19027         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
19029 2016-04-05  Richard Biener  <rguenther@suse.de>
19031         PR middle-end/70499
19032         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
19033         non-register type temporaries into SSA.
19035 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
19037         PR ipa/66223
19038         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
19039         calls when sanitizing.
19040         (possible_polymorphic_call_target_p): Fix formatting.
19042 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
19043             Jakub Jelinek  <jakub@redhat.com>
19045         PR middle-end/70457
19046         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
19047         to ensure a call statement is compatible with a built-in's
19048         prototype.
19049         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
19050         Likewise.
19052 2016-04-04  Richard Biener  <rguenther@suse.de>
19054         PR rtl-optimization/70484
19055         * rtl.h (canon_output_dependence): Declare.
19056         * alias.c (canon_output_dependence): New function.
19057         * dse.c (record_store): Use canon_output_dependence rather
19058         than canon_true_dependence.
19060 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19062         PR ipa/68881
19063         * cgraph.h (symtab_node::copy_visibility_from): New function.
19064         * symtab.c (symtab_node::copy_visibility_from): New function.
19065         * ipa-visibility.c (optimize_weakref): New function.
19066         (function_and_variable_visibility): Use it.
19068 2016-04-04  Martin Liska  <mliska@suse.cz>
19070         PR hsa/70402
19071         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
19072         value that is really in range handled by SBR instruction.
19073         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
19074         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
19075         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
19077 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
19079         PR target/70416
19080         PR target/67391
19081         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
19082         set, but not for SP_REG operands.
19084 2016-04-02  Martin Sebor  <msebor@redhat.com>
19086         PR c++/67376
19087         * fold-const.c (maybe_nonzero_address): New function.
19088         (fold_comparison): Call it.  Fold equality and relational
19089         expressions involving null pointers.
19090         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
19092 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
19094         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
19095         the "Y" constraint (scalar FP 0.0 immediate).
19097         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
19098         Add the "const_double" to the list of operand constraints.
19100 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
19102         PR rtl-optimization/70467
19103         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
19104         If low word of the last operand is 0, just emit addition/subtraction
19105         for the high word.
19107 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19109         PR target/70404
19110         * config/s390/s390.c (s390_expand_insv): Check for everything
19111         constant instead of just VOIDmode stuff.
19113 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19115         PR target/70496
19116         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
19118 2016-04-01  Nathan Sidwell  <nathan@acm.org>
19120         * tree.def (TRY_CATCH_EXPR): Correct documentation.
19122 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19124         PR rtl-optimization/70461
19125         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19126         is necessary.
19128 2016-03-31  Martin Liska  <mliska@suse.cz>
19130         PR hsa/70399
19131         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19132         a tree value or an immediate integer value to a buffer
19133         that is eventually copied to a BRIG section.
19134         (emit_immediate_operand): Call the function here.
19135         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19136         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19137         of class' fields that are removed.
19138         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19139         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19140         m_brig_repr_size fields.
19142 2016-03-31  Martin Liska  <mliska@suse.cz>
19144         PR hsa/70391
19145         * hsa-gen.c (hsa_function_representation::update_dominance): New
19146         function.
19147         (convert_addr_to_flat_segment): Likewise.
19148         (gen_hsa_memory_set): New alignment argument.
19149         (gen_hsa_ctor_assignment): Likewise.
19150         (gen_hsa_insns_for_single_assignment): Provide alignment
19151         to gen_hsa_ctor_assignment.
19152         (gen_hsa_insns_for_direct_call): Add new argument.
19153         (expand_lhs_of_string_op): New function.
19154         (expand_string_operation_builtin): Likewise.
19155         (expand_memory_copy): New function.
19156         (expand_memory_set): New function.
19157         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19158         (convert_switch_statements): Change signature.
19159         (generate_hsa): Use a return value of the function.
19160         (pass_gen_hsail::execute): Do not call
19161         convert_switch_statements here.
19162         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19163         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19164         (hsa_function_representation::update_dominance): New function.
19166 2016-03-31  Martin Liska  <mliska@suse.cz>
19168         PR hsa/70391
19169         * hsa-brig.c (emit_directive_variable): Emit alignment
19170         according to hsa_symbol::m_align.
19171         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19172         (dump_hsa_symbol): Dump alignment of HSA symbols.
19173         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19174         (gen_hsa_addr_with_align): New function.
19175         (hsa_bitmemref_alignment): Use newly added function.
19176         (gen_hsa_insns_for_load): Likewise.
19177         (gen_hsa_insns_for_store): Likewise.
19178         (gen_hsa_memory_copy): New argument added.
19179         (gen_hsa_insns_for_single_assignment): Respect
19180         alignment for assignments processed via gen_hsa_memory_copy.
19181         (gen_hsa_insns_for_direct_call): Likewise.
19182         (gen_hsa_insns_for_return): Likewise.
19183         (gen_function_def_parameters): Set default alignment.
19184         * hsa.c (hsa_object_alignment): New function.
19185         (hsa_byte_alignment): Pasted function.
19186         * hsa.h (hsa_symbol::m_align): New field.
19188 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19190         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19191         scratch field for goto case.
19193 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
19195         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19197 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
19199         PR target/70442
19200         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19201         (scalar_chain::convert_insn): Call convert_op for reg
19202         moves to handle undefined registers.
19204 2016-03-31  Nathan Sidwell  <nathan@acm.org>
19206         PR c++/70393
19207         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19208         Assert we don't want to move backwards.
19210 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
19212         PR target/70453
19213         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19215 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
19217         PR rtl-optimization/70460
19218         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19219         with operand from REG_LABEL_OPERAND, instead substitute
19220         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19221         Don't do anything for REG_NON_LOCAL_GOTO jumps.
19223 2016-03-31  Martin Liska  <mliska@suse.cz>
19225         * passes.c (execute_one_pass): Do not call
19226         todo_after for a discarded function.
19228 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19230         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19231         (no_cost, infinite_cost): Initialize the new field.
19232         (get_computation_cost_at): Record setup cost.
19233         (determine_use_iv_cost_address): Skip cost computation for sub
19234         uses if we can estimate it without losing accuracy.
19236 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19238         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19239         estimates here.
19240         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19241         max_loop_iterations_int.
19242         (tree_unswitch_outer_loop): Likewise.
19243         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19244         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19246 2016-03-30  Richard Biener  <rguenther@suse.de>
19248         PR middle-end/70450
19249         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19251 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
19253         PR target/70421
19254         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19255         in gen_blendm expander.
19257 2016-03-30  Nick Clifton  <nickc@redhat.com>
19259         PR target/62254
19260         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19261         case where we are already provided with an SImode SUBREG.
19263 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19265         PR target/70439
19266         * config/i386/i386.c (ix86_expand_epilogue): Properly check
19267         conflict between DRAP register and __builtin_eh_return.
19269 2016-03-30  Michael Matz  <matz@suse.de>
19270             Richard Biener  <rguenther@suse.de>
19272         PR ipa/12392
19273         * ipa-polymorphic-call.c (struct type_change_info): Change
19274         speculative to an unsigned allowing to limit the work we do.
19275         (csftc_abort_walking_p): New inline function..
19276         (check_stmt_for_type_change): Limit the number of may-defs
19277         skipped for speculative devirtualization to
19278         max-speculative-devirt-maydefs.
19279         * params.def (max-speculative-devirt-maydefs): New param.
19280         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19282 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
19284         PR target/63890
19285         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19286         and TARGET_MACHO.
19288 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
19290         PR tree-optimization/59124
19291         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19292         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19294 2016-03-29  Jeff Law  <law@redhat.com>
19296         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19298 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19300         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19301         to HOST_WIDE_INT.
19303 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
19305         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19306         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19307         gcrt0.o if linking dynamically.
19309 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19311         PR ipa/70283
19312         * ipa-devirt.c (methods_equal_p): New function.
19313         (compare_virtual_tables): Use it.
19314         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19315         * cgraphclones.c (clone_function_name_1): Use
19316         symbol_table::symbol_suffix_separator.
19317         * coverage.c (build_var): Likewise.
19318         * symtab.c (symbol_table::symbol_suffix_separator): New.
19320 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
19322         PR rtl-optimization/70429
19323         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19324         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19325         mode != result_mode.
19327         PR c++/70353
19328         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19330         PR tree-optimization/70405
19331         * ssa-iterators.h (num_imm_uses): Add missing braces.
19333 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19335         PR rtl-optimization/68695
19336         * ira-color.c (allocno_copy_cost_saving): New.
19337         (improve_allocation): Use it.
19339 2016-03-29  Richard Henderson  <rth@redhat.com>
19341         PR middle-end/70355
19342         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19344 2016-03-29  Richard Biener  <rguenther@suse.de>
19346         PR middle-end/70424
19347         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19348         use alignment returned by get_pointer_alignment_1 if it is
19349         bigger than BITS_PER_UNIT.
19350         * builtins.c (get_pointer_alignment_1): Do not return true
19351         for alignment extracted from SSA info.
19353 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
19355         * config/ft32/ft32.opt (mnodiv): New.
19356         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19357         * doc/invoke.texi (FT32 Options -mnodiv): New.
19359 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
19361         PR target/70406
19362         * config/i386/i386.md (define_split, andn): Fix modes.
19364 2016-03-26  Richard Biener  <rguenther@suse.de>
19365             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19367         PR ipa/70366
19368         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19369         instead of
19370         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19371         as 2nd argument to cl_optimization_restore().
19373 2016-03-25  Richard Henderson  <rth@redhat.com>
19375         PR target/70120
19376         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19377         * config/aarch64/aarch64-protos.h: Declare it.
19378         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19380 2016-03-25  Alan Modra  <amodra@gmail.com>
19382         PR target/70052
19383         * config/rs6000/constraints.md (j): Simplify.
19384         * config/rs6000/predicates.md (easy_fp_constant): Exclude
19385         decimal float 0.D.
19386         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19387         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19388          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19389         in all constraint alternatives.
19390         (movtd_64bit_nodm): Delete "j" constraint alternative.
19392 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
19394         * tree-ssa-propagate.c: Enhance docs for
19395         SSA_PROP_NOT_INTERESTING.
19397 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
19399         * doc/extend.texi: Fix typo in documentation to pure attribute.
19401 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
19403         PR target/70319
19404         * config/pa/pa.md (bswapdi2): Use a scratch register.
19406 2016-03-24  Richard Henderson  <rth@redhat.com>
19408         PR middle-end/69845
19409         * fold-const.c (extract_muldiv_1): Correct test for multiplication
19410         overflow.
19412 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
19414         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19415         using ix86_expand_binary_operator instead of gen_andsi3.
19417 2016-03-24  Richard Biener  <rguenther@suse.de>
19419         PR tree-optimization/70396
19420         * tree-vect-stmts.c (vectorizable_comparison): Use
19421         get_vectype_for_scalar_type.
19423 2016-03-24  Richard Biener  <rguenther@suse.de>
19425         PR middle-end/70370
19426         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19427         with register bases.
19429 2016-03-24  Richard Biener  <rguenther@suse.de>
19431         PR tree-optimization/70372
19432         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19433         build_all_ones_cst to also handle vector types correctly.
19435 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19437         PR target/70381
19438         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19439         -mfloat128 here.
19441 2016-03-23  Marek Polacek  <polacek@redhat.com>
19443         PR c++/69884
19444         * doc/invoke.texi: Document -Wignored-attributes.
19446 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
19448         PR tree-optimization/69042
19449         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
19450         parameter from 30 to 40.
19452 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
19454         PR tree-optimization/69042
19455         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
19456         for use with constant offset stripped in base.
19458 2016-03-23  Richard Biener  <rguenther@suse.de>
19460         PR middle-end/70251
19461         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
19462         mode compatibility check.
19463         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19465 2016-03-23  Jeff Law  <law@redhat.com>
19467         PR tree-optimization/64058
19468         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
19469         CONFLICT_COUNT.
19470         (struct ssa_conflicts): Move up earlier in the file.
19471         (conflicts_, var_map_): New static variables.
19472         (initialize_conflict_count): New function to initialize the
19473         CONFLICT_COUNT field for each conflict pair.
19474         (compare_pairs): Lazily initialize the conflict count and use it
19475         as the first tie-breaker.
19476         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
19477         and wipe conflicts_ and map_ around the call to qsort.  Remove
19478         special case for 2 coalesce pairs.
19479         * bitmap.c (bitmap_count_unique_bits): New function.
19480         (bitmap_count_bits_in_word): New function, extracted from
19481         bitmap_count_bits.
19482         (bitmap_count_bits): Use bitmap_count_bits_in_word.
19483         * bitmap.h (bitmap_count_unique_bits): Declare it.
19485 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
19487         PR target/69917
19488         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
19489         transparent alias chain for decl assembler name.
19490         * config/sol2.c (solaris_assemble_visibility): Likewise.
19492 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19494         * config/arm/arm1020e.md (1020call_op): Reduce reservation
19495         duration.
19496         (v10_fdivs): Likewise.
19497         (v10_fdivd): Likewise.
19499 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19501         PR driver/70132
19502         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
19503         to not call fclose twice on file.
19505 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
19507         PR tree-optimization/70354
19508         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19509         oprnd0 is wider than oprnd1 and there is a cast from the wider
19510         type to oprnd1, mask it with the mask of the narrower type.
19512         PR target/70321
19513         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
19514         Optimize TARGET_STV splitters, if high or low word of last argument
19515         is 0 or -1.
19517 2016-03-22  Jeff Law  <law@redhat.com>
19519         PR target/70232
19520         tree-ssa-threadbackward.c
19521         (fsm_find_control_statement_thread_paths): Correctly distinguish
19522         between old style jump threads vs FSM jump threads.
19524 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
19526         PR target/70302
19527         * config/i386/i386.c (scalar_chain::convert_op): Support
19528         uninitialized register usage case.
19530 2016-03-22  Richard Biener  <rguenther@suse.de>
19532         PR middle-end/70251
19533         * genmatch.c (gen_transform): Adjust last parameter to a three-state
19534         int...
19535         (capture::gen_transform): ... to change behavior when substituting
19536         a condition into cond or not-cond expr context.
19537         (dt_simplify::gen_1): Adjust.
19538         * gimple-match-head.c: Include gimplify.h for unshare_expr.
19539         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
19540         last change and instead change to
19541         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
19542         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19544 2016-03-22  Anthony Green  <green@moxielogic.com>
19546         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
19547         issue for moxiebox targets.
19548         (CC1PLUS_SPEC): Ditto.
19550 2016-03-22  Richard Biener  <rguenther@suse.de>
19552         PR middle-end/70333
19553         * fold-const.c (extract_muldiv_1): Properly perform multiplication
19554         in the wide type.
19556 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
19558         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
19560 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
19562         PR target/70325
19563         * config/i386/i386.c (def_builtin): Handle
19564         OPTION_MASK_ISA_AVX512VL to be and-ed with other
19565         bits.
19566         (const struct builtin_description bdesc_special_args[]):
19567         Remove duplicate ISA bits.
19569 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
19571         PR target/70329
19572         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
19573         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
19574         in a way that works also for AVX512BW.
19576         PR target/70300
19577         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
19578         instead of source if operands[1] is xmm16 and above and
19579         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
19580         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
19582         PR c++/70295
19583         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
19584         on assign if (*from_p) is a comparison, set it to
19585         TREE_NO_WARNING (*from_p).
19587 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
19589         PR middle-end/70326
19590         * lra.c (restore_scratches): Ignore deleted insns.
19592 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
19593             Jakub Jelinek  <jakub@redhat.com>
19595         PR tree-optimization/70317
19596         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
19597         to HONOR_NANS.
19599 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
19601         PR target/70327
19602         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
19603         of ix86_expand_move.
19604         (movoi): Ditto.
19605         (movti): Use general_operand for operand 1 predicate.
19607 2016-03-21  Martin Liska  <mliska@suse.cz>
19609         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
19610         insns.
19611         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
19613 2016-03-21  Martin Liska  <mliska@suse.cz>
19615         PR ipa/70306
19616         * ipa-icf.c (sem_function::parse): Skip static
19617         constructors and destructors.
19619 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
19621         PR target/70296
19622         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
19623         function-like macro, peek following token(s) if it is followed
19624         by CPP_OPEN_PAREN token with optional padding in between, and
19625         if not, don't treat it like a macro.
19627 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19628             Alexander Monakov  <amonakov@ispras.ru>
19630         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
19631         for the stabs debug format.
19633 2016-03-21  Richard Biener  <rguenther@suse.de>
19635         PR tree-optimization/70310
19636         * tree-vect-generic.c (expand_vector_condition): Fold the built
19637         condition.
19639 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
19641         PR target/70293
19642         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
19643         Block third alternative for AVX-512VL target,
19645 2016-03-21  Martin Liska  <mliska@suse.cz>
19647         PR hsa/70234
19648         * hsa-brig.c (emit_function_directives): Mark unemitted
19649         global variables for emission.
19650         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
19651         (get_symbol_for_decl): Likewise.
19652         * hsa.h (struct hsa_symbol): New flag.
19654 2016-03-21  Richard Biener  <rguenther@suse.de>
19656         PR tree-optimization/70288
19657         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
19658         we do not estimate unsimplified all-constant conditionals or
19659         switches as optimized away.
19661 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
19663         PR rtl-optimization/69102
19664         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
19665         when we have a readonly dependency context.
19667 2016-03-18  Jeff Law  <law@redhat.com>
19669         PR rtl-optimization/70263
19670         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
19671         (update_equiv_regs): When trying to move a store to after the insn
19672         that sets the source of the store, make sure the store occurs after
19673         the insn that sets the source of the store.  When successful note
19674         the REG_EQUIV note created in the dump file.
19676 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
19677             Bernd Schmidt  <bschmidt@redhat.com>
19679         * doc/extend.texi: Document more potential problems with basic asms.
19681 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
19683         PR rtl-optimization/70278
19684         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
19685         VOIDmode.
19687 2016-03-18  Jason Merrill  <jason@redhat.com>
19689         * calls.c (load_register_parameters): Fix zero size sibcall logic.
19691 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
19693         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
19694         values to 128b regs.
19696 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19698         PR tree-optimization/70252
19699         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
19700         boolean vector has a proper number of elements.
19701         (supportable_narrowing_operation): Likewise.
19703 2016-03-18  Tom de Vries  <tom@codesourcery.com>
19705         PR ipa/70269
19706         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
19708 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
19710         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
19711         instead of replace_rtx for DEBUG_INSNs.
19713 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19715         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
19716         load type reservations.
19718 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
19720         PR target/70188
19721         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
19722         define_constraint for "Q" and "T" constraints.
19724 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
19726         Tweak the pipeline model for Exynos M1
19728         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
19729         model.
19731 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
19733         PR c/70264
19734         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
19735         where one or both locations aren't within a line_map.
19737 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
19739         PR driver/70192
19740         * opts.c (finish_options): Don't set flag_pie to the default if
19741         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
19742         if it is -1.
19744 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
19746         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
19747         true as ALL_REGS argument to replace_rtx.
19749 2016-03-17  Richard Biener  <rguenther@suse.de>
19751         PR debug/70271
19752         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
19753         last.
19755 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
19757         PR target/70245
19758         * rtl.h (replace_rtx): Add ALL_REGS argument.
19759         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
19760         equality and assert mode is the same, instead of just rtx pointer
19761         equality.
19762         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
19763         true as ALL_REGS argument to replace_rtx.
19765 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
19767         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
19768         for boolean vector with vector mode only.
19769         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19771 2016-03-17  Nick Clifton  <nickc@redhat.com>
19773         PR target/70162
19774         * config/rx/rx.c (rx_print_integer): Print negative constants in
19775         decimal.
19777 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
19779         PR target/70261
19780         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
19782 2016-03-16  Richard Henderson  <rth@redhat.com>
19783             Richard Biener  <rguenth@suse.de>
19785         PR middle-end/70240
19786         PR middle-end/68215
19787         PR tree-opt/68714
19788         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
19789         first operand as is_gimple_condexpr.
19791         PR middle-end/70240
19792         PR middle-end/68215
19793         Revert r231575
19794         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
19795         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
19796         Do not gimplify the result.
19797         (do_unop): Adjust call to tree_vec_extract.
19798         (do_binop): Likewise.
19799         (do_compare): Likewise.
19800         (do_plus_minus): Likewise.
19801         (do_negate): Likewise.
19802         (expand_vector_condition): Likewise.
19803         (do_cond): Likewise.
19805 2016-03-16  Richard Henderson  <rth@redhat.com>
19807         PR target/70048
19808         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
19809         (aarch64_classify_address): Use it.
19810         (aarch64_legitimize_address): Force all subexpressions of PLUS
19811         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
19813 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
19814             Richard Biener  <rguenth@suse.de>
19816         PR target/70245
19817         * rtlanal.c (replace_rtx): For REG, if from is a REG,
19818         return to even if only REGNO is equal, and assert
19819         mode is the same.
19821 2016-03-11  Jeff Law  <law@redhat.com>
19823         PR rtl-optimization/70224
19824         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
19826 2016-03-16  Richard Henderson  <rth@redhat.com>
19828         PR middle-end/70199
19829         * function.h (struct function): Add has_forced_label_in_static.
19830         * gimplify.c (force_labels_r): Set it.
19831         * lto-streamer-in.c (input_struct_function_base): Read it.
19832         * lto-streamer-out.c (output_struct_function_base): Write it.
19833         * tree-inline.c (has_label_address_in_static_1): Remove.
19834         (copy_forbidden): Remove fndecl parameter; test
19835         has_forced_label_in_static.
19836         (inline_forbidden_p): Update call to copy_forbidden.
19837         (tree_versionable_function_p): Likewise.
19838         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
19839         (chkp_versioning): Likewise.
19840         * tree-inline.h (copy_forbidden): Update decl.
19842 2016-03-16  Marek Polacek  <polacek@redhat.com>
19844         PR c/70093
19845         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
19846         function being thunked if the result type doesn't have fixed size.
19847         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
19848         doesn't have fixed size.
19850 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
19852         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
19853         reporting malformed loop nest.
19855 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19857         PR lto/70187
19858         * ipa-devirt.c (possible_polymorphic_call_targets): Move
19859         nodes.length () == 1 test to before first nodes[0] access.
19861 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19863         PR tree-optimization/68715
19864         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
19865         single_pred_p test.
19867 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19869         PR tree-optimization/68809
19870         * graphite-scop-detection.c (same_close_phi_node): Test if result types
19871         are the same.
19873 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
19874             Sandra Loosemore  <sandra@codesourcery.com>
19876         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
19877         on leaf attribute. Mention ELF interposition problems.
19879 2016-03-16  Alan Modra  <amodra@gmail.com>
19881         PR rtl-optimization/69195
19882         PR rtl-optimization/47992
19883         * ira.c (indirect_jump_optimize): Ignore artificial defs.
19884         Add comments.
19886 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19888         PR bootstrap/69513
19889         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
19891 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19893         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
19895 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
19897         PR rtl-optimization/70222
19898         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
19899         optimization if mode is different from result_mode, queue up masking
19900         of the result in outer_op.  Formatting fix.
19902         PR middle-end/70239
19903         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
19904         of safe_grow.
19906 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19908         PR rtl-optimization/69032
19909         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
19910         looping backwards over basic block insns.
19912 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19914         PR target/66660
19915         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
19916         to non-speculative when propagating trap bits.
19918 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19920         PR rtl-optimization/63384
19921         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
19922         DEBUG_INSN_P insns.
19924 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19926         PR target/64411
19927         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
19928         factored out from ...
19929         (sched_analyze_insn): ... here.
19930         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
19931         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
19932         get_implicit_reg_pending_clobbers in it.
19933         (setup_id_reg_sets): Use setup_id_implicit_regs.
19934         (deps_init_id): Ditto.
19936 2016-03-15  Tom de Vries  <tom@codesourcery.com>
19938         PR ipa/70161
19939         * cgraph.c (cgraph_node::get_body): Save, reset and restore
19940         dump_file_name.
19941         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
19942         execute_function_dump.
19943         (execute_one_pass): Don't dump function if it will be dumped after ipa
19944         transform.
19946 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
19948         * genrecog.c (match_pattern_2): If pred is NULL don't call
19949         safe_predicate_mode on it.
19951 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
19953         PR middle-end/70219
19954         * lra-constraints.c (delete_move_and_clobber): Change assertion
19955         to also allow dregno == 0.
19957 2016-03-14  Richard Henderson  <rth@redhat.com>
19959         PR tree-opt/68714
19960         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
19961         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
19962         (reassociate_bb): Use optimize_vec_cond_expr; avoid
19963         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
19964         on vectors.
19966 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
19968         PR target/70083
19969         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
19970         regs.
19971         (lra_create_live_ranges_1): initialize hard register biggest_mode to
19972         VOIDmode.
19973         * lra-constraints.c (split_reg): For hard regs, try to find the
19974         biggest single-register mode used in the function.
19976 2016-03-14  Richard Biener  <rguenther@suse.de>
19978         PR tree-optimization/56365
19979         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
19980         constants to compare against.
19982 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
19984         PR target/70098
19985         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
19986         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
19987         (define_split for the GPR case): Use int_reg_operand instead of
19988         gpc_reg_operand for the output.
19990 2016-03-14  Tom de Vries  <tom@codesourcery.com>
19992         PR tree-optimization/70045
19993         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
19994         create_empty_if_region_on_edge argument.
19996 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
19998         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
19999         (STACK_CHECK_PROTECT): Likewise.
20000         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20001         (STACK_CHECK_PROTECT): Likewise.
20002         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
20003         (STACK_CHECK_PROTECT): Likewise.
20004         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
20005         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
20006         (STACK_CHECK_PROTECT): Likewise.
20008 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
20010         PR rtl-optimization/69307
20011         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
20012         registers in modes that span more than one register.
20014 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
20016         PR target/69614
20017         * lra-constraints.c (delete_move_and_clobber): New.
20018         (remove_inheritance_pseudos): Use it.
20020 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
20022         PR ada/70017
20023         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
20024         the libcall is LCT_THROW.
20025         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
20026         for the checking routine.
20028 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
20030         PR target/70131
20031         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
20032         optimization if we have direct move.
20033         (roundu32<mode>2_fprs): Likewise.
20035 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
20037         PR target/70123
20038         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
20039         be rematerialized.
20040         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
20041         Arguments swapped.  All callers changed.  Take reg_renumber into
20042         account, and Calculate and compare register ranges for hard regs.
20044 2016-03-11  Jeff Law  <law@redhat.com>
20046         PR tree-optimization/70190
20047         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20048         Handle cases where we can not extract the taken edge, even though we
20049         found a constant value.
20051         PR tree-optimization/64058
20052         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
20053         (num_coalesce_pairs): Move up earlier in file.
20054         (find_coalesce_pair): Initialize the INDEX field for each pair
20055         discovered.
20056         (compare_pairs): No longer sort on the elements in each pair.
20057         Instead break ties with the index of the coalesce pair.
20059 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20061         PR target/70002
20062         * config/aarch64/aarch64-protos.h
20063         (aarch64_save_restore_target_globals): New prototype.
20064         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
20065         Call the above when popping pragma.
20066         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
20067         New function.
20068         (aarch64_set_current_function): Rewrite using the above.
20070 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
20072         PR tree-optimization/70177
20073         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
20074         (extract_ops_from_tree): ... this.  In the 2 argument
20075         overload remove _1 suffix.
20076         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
20077         (extract_ops_from_tree): ... this.
20078         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
20079         Adjust callers.
20080         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
20081         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
20082         extract_ops_from_tree instead of 2 operand one.
20084 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
20086         PR tree-optimization/70013
20087         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
20088         for constant-pool entries.
20090 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
20092         PR rtl-optimization/70174
20093         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
20094         followed by gen_lowpart on force_reg instead of just gen_lowpart.
20096         PR tree-optimization/70169
20097         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
20098         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
20099         for unknown codes.
20101 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
20102             Jakub Jelinek  <jakub@redhat.com>
20104         PR target/70160
20105         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
20106         of uninitialized values.
20108 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20110         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
20111         define_expand.
20112         ("*trunctddd2"): New pattern definition.
20113         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
20114         TD->DD truncation.
20116 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20118         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
20119         definitions for BFP and DFP rounding modes.
20120         ("fixuns_truncdddi2", "fixuns_trunctddi2")
20121         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20122         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20123         ("fix_trunctf<mode>2"): Use the new constants instead of magic
20124         numbers.
20126 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20128         * config/s390/constraints.md: Adjust comment.
20129         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
20130         s390_decompose_addrstyle_without_index.
20131         * config/s390/predicates.md (shift_count_or_setmem_operand):
20132         Rename to setmem_operand.
20133         * config/s390/s390-protos.h
20134         (s390_decompose_shift_count): Rename to
20135         s390_decompose_addrstyle_without_index.
20136         * config/s390/s390.c (s390_decompose_shift_count)
20137         (s390_mem_constraint, print_shift_count_operand)
20138         (print_operand_address, print_operand): Rename
20139         s390_decompose_shift_count to
20140         s390_decompose_addrstyle_without_index and rename
20141         print_shift_count_operand to print_addrstyle_operand troughout the
20142         file.
20143         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20144         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20145         Rename shift_count_or_setmem_operand to setmem_operand.
20146         * config/s390/vx-builtins.md ("vec_insert<mode>")
20147         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20148         nonmemory_operand.
20150 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20152         PR target/70168
20153         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20154         Handle overlapping retval and newval.
20156 2016-03-10  Nick Clifton  <nickc@redhat.com>
20158         PR target/7044
20159         * config/aarch64/aarch64.c
20160         (aarch64_override_options_after_change_1): When forcing
20161         flag_omit_frame_pointer to be true, use a special value that can
20162         be detected if this function is called again, thus preventing
20163         flag_omit_leaf_frame_pointer from being forced to be false.
20165 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20167         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20168         Set x_flag_omit_leaf_frame_pointer when handling
20169         -momit-leaf-frame-pointer.
20171 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20173         PR lto/69589
20174         * cgraph.c (cgraph_node::dump): Dump split_part and
20175         indirect_call_target.
20176         * cgraph.h (cgraph_node): Add indirect_call_target flag.
20177         * ipa.c (has_addr_references_p): Cleanup.
20178         (is_indirect_call_target_p): New.
20179         (walk_polymorphic_call_targets): Do not mark virtuals that may be
20180         called indirectly as local.
20181         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20183 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20185         PR ipa/69630
20186         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20187         on cxa_pure_virtual.
20189 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20191         PR lto/69589
20192         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20194 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20196         PR lto/69589
20197         * tree.c (need_assembler_name_p): Only record main variant type names.
20199 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20201         PR target/70113.
20202         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20203         Always define to 0 or 1.
20204         (TARGET_FIX_ERR_A53_843419): New macro.
20205         * config/aarch64/aarch64-elf-raw.h
20206         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20207         * config/aarch64/aarch64-linux.h: Likewise.
20208         * config/aarch64/aarch64.c
20209         (aarch64_override_options_after_change_1): Do not default
20210         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20211         843419 is on.
20212         (aarch64_attributes): Handle fix-cortex-a53-843419.
20213         (aarch64_can_inline_p): Likewise.
20214         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20216 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
20217             Jakub Jelinek  <jakub@redhat.com>
20219         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20220         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20221         DECL_COMMONS if flag_unconstrained_commons is set.
20222         * tree-dfa.c (get_ref_base_and_extent): Likewise.
20223         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20224         (funconstrained-commons): Document.
20226 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20228         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20229         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20231 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
20233         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20234         has a proper number of elements.
20236 2016-03-10  Alan Modra  <amodra@gmail.com>
20238         PR rtl-optimization/69195
20239         PR rtl-optimization/47992
20240         * ira.c (recorded_label_ref): Delete.
20241         (update_equiv_regs): Return void.
20242         (indirect_jump_optimize): New function.
20243         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20244         before regstat_compute_ri.  Don't rebuild_jump_labels here.
20245         Delete update_regstat.
20247 2016-03-10  Richard Biener  <rguenther@suse.de>
20249         PR tree-optimization/70128
20250         * tree-ssa-structalias.c (set_uids_in_ptset): Set
20251         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20253 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20255         PR tree-optimization/70152
20256         * tree-sra.c (replace_removed_params_ssa_names): Copy over
20257         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20259         PR target/70086
20260         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20261         instead of gen_sse2_loadlpd.
20262         * config/i386/sse.md (*vec_concatv2df): Rename to...
20263         (vec_concatv2df): ... this.
20265         PR tree-optimization/70127
20266         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20268 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20270         PR c/68473
20271         PR c++/70105
20272         * diagnostic-show-locus.c (compatible_locations_p): New function.
20273         (layout::layout): Sanitize ranges using compatible_locations_p.
20275 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20277         PR c/68473
20278         PR c++/70105
20279         * diagnostic-show-locus.c (layout_range::layout_range): Replace
20280         location_range param with three const expanded_locations * and a
20281         bool.
20282         (layout::layout): Replace call to
20283         rich_location::lazily_expand_location with get_expanded_location.
20284         Extract the range and perform location expansion here, passing
20285         the results to the layout_range ctor.
20286         * diagnostic.c (source_range::debug): Delete.
20287         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20288         of rich_location::get_expanded_location.
20289         * gcc-rich-location.c (get_range_for_expr): Delete.
20290         (gcc_rich_location::add_expr): Reimplement to avoid the
20291         rich_location::add_range overload that took a location_range,
20292         passing a location_t instead.
20294 2016-03-09  Richard Biener  <rguenther@suse.de>
20295         Jakub Jelinek  <jakub@redhat.com>
20297         PR tree-optimization/70138
20298         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20299         Also skip vect_double_reduction_def.
20301 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20303         PR target/70049
20304         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20305         if the operand is "m".
20307 2016-03-09  Nathan Sidwell  <nathan@acm.org>
20309         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20311 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20313         * config/i386/i386.c (processor_target_table): Fix cost table
20314         intialization order for znver1.
20316 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20318         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20319         - becuase -> because.
20320         * ipa-reference.c (ignore_module_statics): Likewise.
20321         * cgraph.c (cgraph_node::get_body): Likewise.
20322         * ipa-inline.c (early_inliner): Likewise.
20323         * ipa-devirt.c (types_same_for_odr): Likewise.
20324         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20325         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20327 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20329         * tree-ssa-math-opts.c: Fix typo in comment.
20331 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20333         PR target/70110
20334         * config/i386/i386.c (scalar_chain::make_vector_copies,
20335         scalar_chain::convert_reg): Call end_sequence in between
20336         get_insns and emit_conversion_insns rather than after both
20337         calls.
20339 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
20341         PR target/70064
20342         * config/i386/i386.h (machine_function): Add
20343         pc_thunk_call_expanded flag.
20344         (ix86_pc_thunk_call_expanded): New define.
20345         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20346         (*set_got): Rename insn pattern from set_got.
20347         (*set_got_labelled): Rename inst pattern from set_got_labelled.
20348         * config/i386/i386.c (ix86_compute_frame_layout): Use
20349         ix86_pc_thunk_call_expanded to prevent red-zone.
20351 2016-03-07  Martin Jambor  <mjambor@suse.cz>
20353         * hsa.h (hsa_get_ctor_statements): Declare.
20354         (hsa_get_dtor_statements): Likewise.
20355         (hsa_get_kernel_dispatch_type): Likewise.
20356         * hsa.c (hsa_get_ctor_statements): New function.
20357         (hsa_get_dtor_statements): Likewise.
20358         (hsa_get_kernel_dispatch_type): Likewise.
20359         * hsa-brig.c (hsa_cdtor_statements): Removed.
20360         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20361         hsa_get_dtor_statements.
20362         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20363         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20365 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
20367         * config/arm/arm-cores.def (cortex-r8): New.
20368         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20369         * config/arm/arm-tune.md: Likewise.
20370         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20372 2016-03-07  Martin Sebor  <msebor@redhat.com>
20374         PR rtl-optimization/19705
20375         * doc/invoke.texi (Options That Control Optimization): Clarify
20376         -fno-branch-count-reg.
20378 2016-02-26  Richard Biener  <rguenther@suse.de>
20379             Jeff Law  <law@redhat.com>
20381         PR tree-optimization/69740
20382         * cfghooks.c (remove_edge): Request loop fixups if we delete
20383         an edge that might turn an irreducible loop into a natural
20384         loop.
20385         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20386         Move after definition of loops_state_clear.
20388 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
20390         PR rtl-optimization/69052
20391         * rtlanal.c (commutative_operand_precedence): Set higher precedence
20392         to CONST_WIDE_INT.
20394 2016-03-07  Tom de Vries  <tom@codesourcery.com>
20396         PR tree-optimization/70116
20397         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20398         is_tm_ending stmts and ubsan/asan internal functions.
20399         (find_duplicate): Use it.  Don't test is_tm_ending here.
20401 2016-03-07  Richard Biener  <rguenther@suse.de>
20403         PR tree-optimization/70115
20404         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20405         (propagate_constants_for_unrolling): Use replace_uses_by.
20407 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
20409         PR middle-end/69916
20410         * omp-low.c (struct oacc_loop): Add ifns.
20411         (new_oacc_loop_raw): Initialize it.
20412         (finish_oacc_loop): Clear mask & flags if no ifns.
20413         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20414         (oacc_loop_xform_loop): Add ifns arg & adjust.
20415         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20417 2016-03-07  Richard Henderson  <rth@redhat.com>
20419         PR rtl-opt/70061
20420         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20421         (insert_value_copy_on_edge): Likewise.
20423 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20425         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20427 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20429         PR target/62281
20430         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20432 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
20434         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20436 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
20438         Fix sseimul type attribute.
20439         * config/i386/znver1.md
20440         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
20441         znver1_sseimul_avx256_load) : Fix the type attribute.
20442         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
20443         pipe usage and latency.
20445 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
20447         PR c++/70084
20448         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
20449         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
20450         to the right type.
20452 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
20454         PR c/69973
20455         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
20457         PR rtl-optimization/69941
20458         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
20459         the reg share its mode.
20461 2016-03-04  Jeff Law  <law@redhat.com>
20463         PR tree-optimization/69196
20464         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20465         If the both SSA_NAMEs are anonymous, then consider them unassociated
20466         and include the PHI in the statement count.
20468 2016-03-05  Tom de Vries  <tom@codesourcery.com>
20470         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
20471         construct in oacc routine.  Check for oacc region in oacc routine.
20473 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
20475         PR target/70062
20476         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
20477         2016-02-22 changes, instead don't recurse if RECUR is already true.
20478         Don't change *dynamic_check if RECUR.  Adjust recursive caller
20479         to pass true to the new argument.
20480         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
20482         PR target/70059
20483         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20484         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
20485         fixes.
20486         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
20488 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
20490         PR rtl-optimization/57676
20491         * lra-assigns.c (lra_assign): Guard test for maximum iterations
20492         with flag_checking.
20494 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
20496         * tree-vect-patterns.c (search_type_for_mask): Handle
20497         comparison of booleans.
20499 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
20501         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
20502         Fix @xref usage.
20504         PR debug/69947
20505         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
20506         all other ops that have dw_val_class_die_ref operands,
20507         and DW_OP_GNU_entry_value.
20509 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20511         PR rtl-optimization/69904
20512         * config/arm/arm.c (arm_cannot_copy_insn_p):
20513         Return true for load-exclusive instructions.
20515 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
20517         PR target/70021
20518         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
20519         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
20520         the pattern no matter if it is used just by non-pattern, pattern
20521         or mix thereof.
20522         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
20523         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20524         oprnd1 def_stmt is in pattern, don't look through it.
20526 2016-03-03  Marek Polacek  <polacek@redhat.com>
20528         PR middle-end/70050
20529         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
20531 2016-03-03  Martin Liska  <mliska@suse.cz>
20533         PR tree-optimization/70043
20534         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
20535         previous statement if we see a debug statement.
20537 2016-03-03  Richard Biener  <rguenther@suse.de>
20539         PR tree-optimization/55936
20540         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
20541         parameter and guard unsafe equivalence use.
20542         (vrp_evaluate_conditional_warnv_with_ops): Always use
20543         safe equivalences but not via the quadratic compare_names
20544         helper.
20546 2016-03-03  Michael Collison  <michael.collison@linaro.org>
20548         PR target/70014
20549         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
20550         for operand 1 to s_register_operand. Change predicate for operand
20551         2 to arm_not_immediate_operand.
20553 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
20555         * doc/tm.texi: Regenerated.
20557 2016-03-02  Richard Henderson  <rth@redhat.com>
20559         PR rtl-opt/67145
20560         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
20561         simplification when all args are positive non-fixed registers.
20563 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20565         * target.def (lra_p): Specify that new ports should use LRA.
20567 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
20569         PR libgomp/69555
20570         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
20571         gimplify_type_sizes the type they refer to.
20572         (omp_notice_variable): Handle reference vars to VLAs.
20573         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
20574         reference to VLA decls in the second pass instead of first pass.
20576 2016-03-02  Tom de Vries  <tom@codesourcery.com>
20578         PR tree-optimization/68659
20579         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
20580         new_expr == NULL_TREE.
20581         (get_new_name): Handle ADDR_EXPR.
20583 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
20585         PR rtl-optimization/69052
20586         * loop-invariant.c (canonicalize_address): New function.
20587         (inv_can_prop_to_addr_use): Check validity of address expression
20588         which is canonicalized by above function.
20590 2016-03-02  Alan Modra  <amodra@gmail.com>
20592         PR ipa/69990
20593         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
20594         larger alignment.
20596 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
20598         PR target/70028
20599         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
20600         (*movhi_internal): Put mask moves from and to memory separately
20601         from moves from/to GPRs.
20603 2016-03-02  Richard Biener  <rguenther@suse.de>
20605         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
20606         GENERIC expressions in GIMPLE.
20608 2016-03-02  Richard Biener  <rguenther@suse.de>
20610         * config/i386/i386.c (type_natural_mode): Fix typo.
20612 2016-03-02  Nick Clifton  <nickc@redhat.com>
20614         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
20616 2016-03-02  Richard Biener  <rguenther@suse.de>
20617             Uros Bizjak  <ubizjak@gmail.com>
20619         PR target/67278
20620         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
20622 2016-03-02  Richard Biener  <rguenther@suse.de>
20624         PR middle-end/67278
20625         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
20627 2016-03-02  Marek Polacek  <polacek@redhat.com>
20629         PR c/67854
20630         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
20631         "is promoted to" warning.
20633 2016-03-01  DJ Delorie  <dj@redhat.com>
20635         * config.gcc: Deprecate mep-*.
20637 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
20639         PR middle-end/70025
20640         * lra-constraints.c (regno_val_use_in): New.
20641         (match_reload): Use it instead of regno_use_in.
20643 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
20645         PR rtl-optimization/70007
20646         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
20647         references present in REG_EQUAL notes attached to non-SET patterns.
20649 2016-03-01  Jeff Law  <law@redhat.com>
20651         PR tree-optimization/69196
20652         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20653         Appropriately clamp the number of statements to copy when the
20654         thread path does not traverse a loop backedge.
20656         PR tree-optimization/69196
20657         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20658         Do count some PHIs in the thread path against the insn count.  Decrease
20659         final statement count by one as the control statement in the last
20660         block will get removed.  Remove special cased code for handling PHIs
20661         in the last block.
20663 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
20665         PR target/70027
20666         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
20667         asm dialect alternatives to explicit GOTPCREL calls.
20669 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
20671         PR ada/70017
20672         * ira.c (do_reload): Issue warning for generic stack checking here...
20673         * reload1.c (reload): ...instead of here and streamline it.
20675 2016-03-01  Nick Clifton  <nickc@redhat.com>
20677         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
20679 2016-03-01  Richard Biener  <rguenther@suse.de>
20681         PR tree-optimization/69983
20682         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
20683         types and fall back to operand_equal_p.
20685 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20687         Revert
20688         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20690         * config/s390/constraints.md ("jm8"): New constraint.
20691         * config/s390/predicates.md ("const_int_8bitset_operand"): New
20692         predicate.
20693         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
20694         into ...
20695         ("*setmem_long<setmem_and>"): New pattern.
20696         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
20697         into ...
20698         ("*setmem_long_31z<setmem_and>"): New pattern.
20699         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
20700         New substitution rules with the required attributes.
20703 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20705         Revert
20706         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20708         * gensupport.c (process_substs_on_one_elem): Split loop to
20709         complete mark_operands_used_in_match_dup on all expressions in the
20710         vector first.
20711         (adjust_operands_numbers): Inline into process_substs_on_one_elem
20712         and remove function.
20714 2016-03-01  Richard Biener  <rguenther@suse.de>
20716         PR middle-end/70022
20717         * fold-const.c (fold_indirect_ref_1): Fix range checking for
20718         vector BIT_FIELD_REF extract.
20720 2016-03-01  Richard Biener  <rguenther@suse.de>
20722         PR tree-optimization/69994
20723         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
20725 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
20727         PR tree-optimization/69956
20728         * tree-vect-stmts.c (supportable_widening_operation): Support
20729         multi-step conversion of boolean vectors.
20730         (supportable_narrowing_operation): Likewise.
20732 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20734         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
20735         anymore.
20737 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20739         * config/s390/subst.md (DSI_VI): New mode iterator.
20740         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
20741         * config/s390/vector.md ("vec_set<mode>"): Move expander before
20742         the insn definition.
20743         ("*vec_set<mode>"): Change predicate and add alternative to
20744         support only either register or const_int operands as element
20745         selector.
20746         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
20747         operands.
20748         ("vec_extract<mode>"): New expander.
20749         ("*vec_extract<mode>"): New insn definition supporting reg and
20750         const_int element selectors.
20751         ("*vec_extract<mode>_plus"): New insn definition supporting
20752         reg+const_int element selectors.
20753         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
20754         following expander+insn definition.
20755         ("<vec_shifts_name><mode>3"): New expander.
20756         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
20758 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20760         * config/s390/s390.md ("*tabort_1"): Change predicate to
20761         nonmemory_operand.  Add a second alternative to cover
20762         register as well as const int operands.
20763         ("*tabort_1_plus"): New pattern definition.
20765 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20767         * config/s390/s390.md ("*ashrdi3_cc_31")
20768         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
20769         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
20770         Merge insn definitions into ...
20771         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20772         New pattern definition.
20773         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
20774         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
20775         ("*ashr<mode>3_and"): Merge insn definitions into ...
20776         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20777         New pattern definition.
20778         * config/s390/subst.md ("addr_style_op_cc_subst")
20779         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
20780         substitutions patterns plus attributes.
20781         Add ashiftrt to SUBST iterator.
20783 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20785         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
20786         op2 to nonmemory_operand.
20787         ("*<shift>di3_31", "*<shift>di3_31_and"):
20788         Merge into single pattern definition ...
20789         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
20790         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
20791         pattern definition ...
20792         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
20793         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
20794         iterator.
20796 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20798         * config/s390/predicates.md (const_int_6bitset_operand): New
20799         predicate.
20800         * config/s390/s390.md: Include subst.md.
20801         ("rotl<mode>3"): New expander.
20802         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
20803         ...
20804         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
20805         * config/s390/subst.md: New file.
20807 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20809         * config/s390/s390.md ("op_type", "atype", "length" attributes):
20810         Remove RRR type.  It doesn't really exist.
20811         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
20812         attributes.
20813         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
20814         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
20815         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
20816         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
20817         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
20818         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
20819         `enabled' attribute.
20821 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20823         * gensupport.c (process_substs_on_one_elem): Split loop to
20824         complete mark_operands_used_in_match_dup on all expressions in the
20825         vector first.
20826         (adjust_operands_numbers): Inline into process_substs_on_one_elem
20827         and remove function.
20829 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
20831         PR target/69706
20832         * config/sparc/sparc.c (NWORDS_UP): Rename to...
20833         (CEIL_NWORDS): ...this.  Use CEIL macro.
20834         (compute_fp_layout): Adjust to above renaming.
20835         (function_arg_union_value): Likewise.
20836         (sparc_arg_partial_bytes): Likewise.
20837         (sparc_function_arg_advance): Likewise.
20839 2016-02-29  Jeff Law  <law@redhat.com>
20841         PR tree-optimization/70005
20842         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
20843         where an object with a boolean range is compared against a value
20844         outside [0..1].
20846         PR tree-optimization/69999
20847         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
20848         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
20849         loop cleanups.
20851 2016-02-29  Richard Biener  <rguenther@suse.de>
20853         PR tree-optimization/69994
20854         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
20855         (get_unary_op): Look through nop conversions.
20856         (ops_equal_values_p): New function, look for equality diregarding
20857         nop conversions.
20858         (eliminate_plus_minus_pair): Use ops_equal_values_p
20859         (repropagate_negates): Do not use get_unary_op here.
20861 2016-02-29  Martin Liska  <mliska@suse.cz>
20863         * system.h: Poison ENABLE_CHECKING macro.
20865 2016-02-29  Martin Liska  <mliska@suse.cz>
20867         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
20868         is presented in dump flags.
20869         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20870         (hsa_regalloc): Likewise.
20872 2016-02-19  Richard Biener  <rguenther@suse.de>
20874         PR tree-optimization/69980
20875         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
20876         permutation of those we need to keep.
20878 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
20880         PR target/69706
20881         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
20882         (NWORDS_UP): ...this
20883         (init_cumulative_args): Minor tweaks.
20884         (sparc_promote_function_mode): Likewise.
20885         (scan_record_type): Delete.
20886         (traverse_record_type): New function template.
20887         (classify_data_t): New structure type.
20888         (classify_registers): New inline function.
20889         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
20890         exhausted.  Instantiate traverse_record_type on classify_registers and
20891         deal with the case of a structure passed in slot #15 with no FP field
20892         in the first word.
20893         (assign_data_t): New structure type.
20894         (compute_int_layout): New static function.
20895         (compute_fp_layout): Likewise.
20896         (count_registers): New inline function.
20897         (assign_int_registers): New static function.
20898         (assign_fp_registers): Likewise.
20899         (assign_registers): New inline function.
20900         (function_arg_record_value_1): Delete.
20901         (function_arg_record_value_2): Likewise.
20902         (function_arg_record_value_3): Likewise.
20903         (function_arg_record_value): Adjust to above changes.  Instantiate
20904         traverse_record_type on count_registers to first count the number of
20905         registers to be used and then on assign_registers to assign them.
20906         (function_arg_union_value): Adjust to above renaming.
20907         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
20908         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
20909         case of a structure passed in slot #15
20910         (sparc_function_arg_advance): Likewise.
20911         (function_arg_padding): Minor tweak.
20913 2016-02-29  Richard Biener  <rguenther@suse.de>
20915         PR tree-optimization/69720
20916         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
20917         the adjustment_def path for possibly vectorized defs.
20918         (vect_create_epilog_for_reduction): Handle vectorized initial
20919         defs properly.
20921 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
20923         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
20925 2016-02-27  Jeff Law  <law@redhat.com>
20927         Revert
20928         2016-02-26  Richard Biener  <rguenther@suse.de>
20929                     Jeff Law  <law@redhat.com>
20931         PR tree-optimization/69740
20932         * cfghooks.c (remove_edge): Request loop fixups if we delete
20933         an edge that might turn an irreducible loop into a natural
20934         loop.
20936 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
20938         PR rtl-optimization/69896
20939         * tree-vect-generic.c (get_compute_type): Avoid single element
20940         vector types.
20942 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
20944         Rename the AArch64 tuning option and related functions to enable the
20945         Newton series for the reciprocal square root to reflect its
20946         approximative characteristic.
20948         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
20949         function to "aarch64_emit_approx_rsqrt".
20950         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
20951         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
20952         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
20953         (xgene1_tunings): Likewise.
20954         (use_rsqrt_p): Likewise.
20955         (aarch64_emit_swrsqrt): Use new function name.
20956         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
20957         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
20958         text explaining this option.
20959         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
20961 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20963         PR target/69969
20964         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20965         complain about -mallow-movmisalign without -mvsx if
20966         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
20968 2016-02-26  Joel Sherrill  <joel@rtems.org>
20970         * config.gcc: Add x86_64-*-rtems*.
20971         * config/i386/rtems-64.h: New file.
20973 2016-02-26  Joel Sherrill  <joel@rtems.org>
20975         * config.gcc: Add aarch64-*-rtems*.
20976         * config/aarch64/rtems.h: New file.
20978 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
20980         PR target/69946
20981         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
20982         shift amount using %h.  Add comment.
20984 2016-02-26  Richard Biener  <rguenther@suse.de>
20985             Jeff Law  <law@redhat.com>
20987         PR tree-optimization/69740
20988         * cfghooks.c (remove_edge): Request loop fixups if we delete
20989         an edge that might turn an irreducible loop into a natural
20990         loop.
20992 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20994         PR middle-end/69920
20995         * tree-sra.c (sra_modify_assign): Do not remove loads of
20996         uninitialized aggregates to SSA_NAMEs.
20998 2016-02-26  Richard Henderson  <rth@redhat.com>
21000         PR target/69709
21001         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
21002         pseudo in case the target rtx matches the source of the left
21003         shift.
21005 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21007         PR hsa/69568
21008         * hsa.h (hsa_type_packed_p): Declare.
21009         * hsa.c (hsa_type_packed_p): New function.
21010         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
21011         loads.
21012         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
21013         * hsa-brig.c (emit_basic_insn): Likewise.
21015 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21017         pr hsa/69674
21018         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
21019         pointers.
21020         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
21022 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21024         * hsa.h (is_a_helper): New overload for hsa_op_immed for
21025         hsa_op_with_type operands.
21026         (hsa_unsigned_type_for_type): Declare.
21027         * hsa.c (hsa_unsigned_type_for_type): New function.
21028         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
21029         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
21030         the finalizer.  Do not emit extra move.
21032 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21034         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
21035         atomic operations in private segment.
21037 2016-02-26  Martin Jambor  <mjambor@suse.cz>
21039         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
21040         statements to wi->info.  Also disallow omp simd constructs.
21041         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
21042         for not gridifying.  Dump special string for omp_for.
21044 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21046         PR target/69245
21047         * config/aarch64/aarch64.c (aarch64_set_current_function):
21048         Save/restore target globals when switching to
21049         target_option_default_node.
21051 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21053         PR target/69613
21054         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
21055         Return 0 if !SHIFT_COUNT_TRUNCATED.
21057 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
21058             Eric Botcazou  <ebotcazou@adacore.com>
21060         PR rtl-optimization/69891
21061         * dse.c (scan_insn): If we can't figure out memset arguments
21062         or they are non-constant, call clear_rhs_from_active_local_stores.
21064 2016-02-26  Martin Liska  <mliska@suse.cz>
21066         * doc/extend.texi: Mention clog10, clog10f an clog10l
21067         in Builtins section.
21069 2016-02-26  Martin Liska  <mliska@suse.cz>
21071         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
21072         CHECKING_P.
21073         (resolve_args_picking_1): Likewise.
21074         * dwarf2out.h (struct GTY): Likewise.
21076 2016-02-26  Martin Liska  <mliska@suse.cz>
21078         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
21079         with flag_checking.
21080         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
21082 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
21083             Martin Liska  <mliska@suse.cz>
21085         * doc/install.texi: Mention --enable-valgrind-annotations.
21087 2016-02-26  Richard Biener  <rguenther@suse.de>
21089         PR tree-optimization/69551
21090         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
21091         looking through aliases adjust DECL_PT_UID to refer to the
21092         ultimate alias target.
21094 2016-02-25  Martin Liska  <mliska@suse.cz>
21096         PR middle-end/69919
21097         * alloc-pool.c (after_memory_report): New variable.
21098         * alloc-pool.h (base_pool_allocator ::release): Do not use
21099         the infrastructure if after_memory_report.
21100         * toplev.c (toplev::main): Mark after memory report.
21102 2016-02-25  Richard Biener  <rguenther@suse.de>
21104         PR tree-optimization/48795
21105         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
21107 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
21109         PR driver/68463
21110         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
21111         offloading is enabled and -fopenacc or -fopenmp is specified.
21112         (CRTOFFLOADEND): Likewise.
21113         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
21114         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
21115         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
21116         (offload_objects_file_name): New static var.
21117         (tool_cleanup): Remove offload_objects_file_name file.
21118         (find_offloadbeginend): Replace with ...
21119         (find_crtoffloadtable): ... this.
21120         (run_gcc): Remove offload_argc and offload_argv.
21121         Get offload_objects_file_name from -foffload-objects=... option.
21122         Read names of object files with offload from this file, pass them to
21123         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
21124         don't pass offloadbegin and offloadend to the linker.  Don't pass
21125         offload non-LTO files to the linker, because now they're not claimed.
21127 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
21129         PR ipa/69630
21130         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21131         on builtin_unreachable.
21133 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
21135         PR rtl-optimization/69896
21136         * regcprop.c: Include cfgrtl.h.
21137         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21138         than remembered mode, either delete it (if noop_move_p), or
21139         treat like copy_p but not noop_p instruction.
21141 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21143         PR debug/69705
21144         * dwarf2out.c (gen_variable_die): Work around buggy LTO
21145         - allow NULL decl for Fortran DW_TAG_common_block variables.
21147 2016-02-24  Jason Merrill  <jason@redhat.com>
21149         * common.opt (flifetime-dse): Add -flifetime-dse=1.
21151 2016-02-24  Richard Biener  <rguenther@suse.de>
21152             Jakub Jelinek  <jakub@redhat.com>
21154         PR middle-end/69760
21155         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21156         conditionally executed ops to well-defined overflow behavior.
21158 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21160         PR middle-end/69915
21161         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21162         elements.
21164 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21166         PR rtl-optimization/69886
21167         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21168         argument.  Use it when checking validity of set instructions.
21169         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21170         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21171         callsite.
21172         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21173         * store-motion.c (find_moveable_store): Update
21174         can_assign_to_reg_without_clobbers_p callsite.
21176 2016-02-24  Richard Biener  <rguenther@suse.de>
21178         PR middle-end/68963
21179         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21180         bogus check.
21181         (record_nonwrapping_iv): Do not fall back to the low/high bound
21182         for non-constant IV bases if the stmt is not always executed.
21184 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21186         * config/arm/arm-cores.def (cortex-a32): New entry.
21187         * config/arm/arm-tables.opt: Regenerate.
21188         * config/arm/arm-tune.md: Regenerate.
21189         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21190         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21191         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21192         for -mcpu and -mtune.
21194 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21196         PR target/69875
21197         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21198         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21199         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21200         (atomic_loaddi_1): Delete.
21201         (atomic_loaddi): Rewrite expander using the above changes.
21203 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21205         PR c/69918
21206         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21207         2 to 3.
21209 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21210             Richard Biener  <rguenth@suse.de>
21212         PR middle-end/69909
21213         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21214         set_mem_attributes if tem is SSA_NAME which got expanded
21215         as a MEM.
21217 2016-02-24  Richard Biener  <rguenther@suse.de>
21219         PR tree-optimization/69907
21220         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21221         end of permutations for BB vectorization.
21223 2016-02-24  Christian Bruel  <christian.bruel@st.com>
21225         * config/arm/arm-c.c (arm_option_override): Initialize
21226         target_option_current_node.
21227         * config/arm/arm.c (arm_pragma_target_parse): Replace
21228         build_target_option_node call by target_option_current_node.
21229         Set target_option_current_node.
21230         Fix comments.
21232 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
21234         PR target/69810
21235         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21236         define_insn_and_split to define_insn.
21237         (zero_extendqi<mode>2_dot2): Same.
21238         (extendqi<mode>2_dot): Same.
21239         (extendqi<mode>2_dot2): Same.
21241 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21243         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21244         and add bypass for AES{D,E} and AESMC pairs.
21245         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21246         and AESMC pairs.
21248 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21250         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21251         series for reciprocal square root in Exynos M1.
21253 2016-02-23  Martin Sebor  <msebor@redhat.com>
21255         PR c/69759
21256         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21257         __builtin_alloca_with_align.
21259 2016-02-23  Richard Henderson  <rth@redhat.com>
21261         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21262         (ix86_register_pragmas): Remove __seg_tls.
21263         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21264         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21265         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21266         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21267         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21268         * doc/extend.texi (__seg_tls): Remove item.
21270 2016-02-23  Richard Biener  <rguenther@suse.de>
21272         * alloc-pool.h (struct allocation_object): Make id member
21273         conditional on CHECKING_P again.
21274         (get_instance): Adjust.
21275         (base_pool_allocator): Likewise.
21277 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
21279         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21280         (parallelize_loops): In OpenACC kernels mode, set n_threads to
21281         zero.
21282         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21283         flag_openacc.
21284         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21286 2016-02-23  Richard Biener  <rguenther@suse.de>
21288         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21289         * bitmap.h (struct bitmap_usage): Likewise.
21290         (bitmap_move): Declare.
21291         * bitmap.c (register_overhead): Take size_t argument.
21292         (bitmap_move): New function.
21293         * df-problems.c (df_rd_transfer_function): Use bitmap_move
21294         to properly account overhead.
21295         * tree.c (free_node): Use tree_size.
21297 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
21299         PR c++/69902
21300         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21301         when inverting comparison.
21303         PR c/69900
21304         * common.opt (Wunreachable-code): Add Warning flag.
21306 2016-02-23  Mark Wielaard  <mjw@redhat.com>
21307             Jakub Jelinek  <jakub@redhat.com>
21309         PR c/69911
21310         * cgraphunit.c (check_global_declaration): Check main_input_filename
21311         and DECL_SOURCE_FILE are not NULL.
21313 2016-02-23  Martin Jambor  <mjambor@suse.cz>
21315         PR tree-optimization/69666
21316         * tree-sra.c (sra_modify_assign): Do not attempt to create
21317         default_def replacements for unscalarizable regions.
21319 2016-02-20  Mark Wielaard  <mjw@redhat.com>
21321         PR c/28901
21322         * cgraphunit.c (check_global_declaration): Check level of
21323         warn_unused_const_variable and main_input_filename.
21324         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21325         (-Wunused-variable): For C implies -Wunused-const-variable=1.
21326         (-Wunused-const-variable): Explain levels 1 and 2.
21328 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21330         PR target/69888
21331         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21332         identical arguments.  Formatting and spelling fixes.
21334         PR target/69885
21335         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21336         be specified.
21338         PR target/69894
21339         PR target/69895
21340         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21341         and m68k-devices.def.
21342         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21343         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21345 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
21347         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21348         and HImode registers.
21350 2016-02-22  Richard Biener  <rguenther@suse.de>
21352         PR tree-optimization/69882
21353         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21354         preserve permutations present because of gaps.
21355         (vect_supported_load_permutation_p): Always continue checking
21356         permutations after vect_attempt_slp_rearrange_stmts.
21358 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
21360         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21361         min_profitable_estimate, rather than min_profitable_iters.
21363 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21365         PR target/69885
21366         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21367         SImode for last match_operand.
21369 2016-02-22  Martin Liska  <mliska@suse.cz>
21371         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21372         return bitsize - 1 as the return value.
21374 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
21376         PR target/69806
21377         PR target/54089
21378         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21379         Handle negative shift counts.
21380         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21381         force_reg on the shift constant.
21382         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
21383         (lshrsi3_d): Handle negative shift counts.
21385 2016-02-22  Richard Biener  <rguenther@suse.de>
21386             Tom de Vries  <tom@codesourcery.com>
21388         * graph.c: Include dumpfile.h.
21389         (print_graph_cfg): Split into three overloads.
21390         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21392 2016-02-22  Tom de Vries  <tom@codesourcery.com>
21394         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21395         dump-fn.
21397 2016-02-22  Richard Biener  <rguenther@suse.de>
21399         PR ipa/37448
21400         * ipa-inline-transform.c (inline_call): When not updating
21401         overall summaries adjust self size by the growth estimate.
21402         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21403         hash-set, do not update overall summaries here.  Renamed from ...
21404         (inline_to_all_callers): ... this which is now wrapping the
21405         above and performing delayed overall summary update.
21406         (early_inline_small_functions): Delay updating of the overall
21407         summary.
21409 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
21411         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21412         variable.
21414 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
21416         PR driver/69805
21417         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21418         :%* in %:gt() argument.
21419         (greater_than_spec_func): Adjust for expecting only numbers,
21420         if there are more than two numbers, compare the last two.
21422 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
21424         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21425         -Wnarrowing with -std.
21427 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
21429         PR c++/69851
21430         * expr.c (store_field): Don't use bit-field path if exp is
21431         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21432         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21433         and the assignment can be performed by bitwise copy.  Formatting
21434         fix.
21436         PR middle-end/69838
21437         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21438         call copy_reg_eh_region_note_forward on before and/or after sequences
21439         and remove note from insn if it no longer can throw.
21441         PR target/69820
21442         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
21443         if TARGET_AVX512BW.
21445 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21447         * config/s390/vector.md: Add missing commutative operand markers
21448         to the patterns which qualify for one.
21449         * config/s390/vx-builtins.md: Likewise.
21451 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21453         * config/s390/vector.md (VI, VI_QHS): Add single element vector
21454         types to mode iterators.
21455         (vec_double): ... and mode attribute.
21456         * config/s390/vx-builtins.md (non_vec_int): Likewise.
21458 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21460         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
21461         Change the predicate of op2 from nonimmediate to general and let
21462         reload fix it if necessary.
21464 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21466         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
21468 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21470         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
21471         mode.
21473 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21475         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
21476         * config/s390/s390.c (s390_expand_vec_movstr): New function.
21477         * config/s390/s390.md ("movstr<P:mode>"): Call
21478         s390_expand_vec_movstr.
21480 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21482         * config/s390/s390.md: Add missing output modifier for operand 1
21483         to print it as address properly.
21485 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21487         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
21488         * config/s390/2964.md: New file.
21489         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
21490         of insn grouping attributes depending on the CPU level.
21491         (s390_get_unit_mask): New function.
21492         (s390_sched_score): Remove the OOO from the scheduling macros.
21493         Add loop to calculate a score for the instruction mix.
21494         (s390_sched_reorder): Likewise plus improve debug output.
21495         (s390_sched_variable_issue): Rename macros as above.  Calculate
21496         the unit distances after actually scheduling an insn.  Improve
21497         debug output.
21498         (s390_sched_init): Clear last_scheduled_unit_distance array.
21499         * config/s390/s390.md: Include 2964.md.
21501 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
21503         PR target/69671
21504         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
21505         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
21506         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
21507         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
21508         *avx512f_<code>v8div16qi2_mask_1): New insns.
21510 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
21512         PR target/68404
21513         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
21514         2016-02-09 change.
21516         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
21517         earlyclobber from target.  Use wF constraint for fused memory
21518         address.
21519         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
21521 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
21522             Martin Liska  <mliska@suse.cz>
21524         PR sanitizer/69863
21525         * cfgexpand.c (asan_sanitize_stack_p): New function.
21526         (partition_stack_vars): Use the function.
21527         (expand_stack_vars): Likewise.
21528         (defer_stack_allocation): Likewise.
21529         (expand_used_vars): Likewise.
21531 2016-02-18  Richard Biener  <rguenther@suse.de>
21533         PR middle-end/69553
21534         * fold-const.c (operand_equal_p): Properly compare offsets for
21535         IMAGPART_EXPR and ARRAY_REF.
21537 2016-02-18  Nick Clifton  <nickc@redhat.com>
21539         PR target/62254
21540         PR target/69610
21541         * config/arm/arm.c (arm_option_override_internal): Disable
21542         interworking if the target does not support thumb instructions.
21543         (arm_reload_in_hi): Handle the case where a register to register
21544         move needs reloading because there is no simple pattern to handle
21545         it.
21546         (arm_reload_out_hi): Likewise.
21548 2016-02-18  Richard Biener  <rguenther@suse.de>
21550         PR middle-end/69854
21551         * match.pd: Don't use fold_binary or fold_unary for folding
21552         constants.
21554 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
21556         PR c++/69850
21557         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
21558         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
21559         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
21560         warn on gimple_no_warning_p statements.
21562 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
21564         * doc/extend.texi (C++ Attributes): Correct description of
21565         warn_unused type attribute.
21567 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21569         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
21570         correct instruction.
21572 2016-02-17  Richard Biener  <rguenther@suse.de>
21574         PR rtl-optimization/69609
21575         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
21576         (find_traces_1_round): When ending a trace update cached priority
21577         of successors.
21578         (bb_to_key): Use cached priority when available.
21579         (copy_bb): Initialize cached priority.
21580         (reorder_basic_blocks_software_trace_cache): Likewise.
21582 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21584         PR target/69161
21585         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
21586         New predicate.
21587         (aarch64_comparison_operator): Break overly long line into two.
21588         (aarch64_comparison_operation): Likewise.
21589         * config/aarch64/aarch64.md (cstorecc4): Use
21590         aarch64_comparison_operator_mode instead of
21591         aarch64_comparison_operator.
21592         (cstore<mode>4): Likewise.
21593         (aarch64_cstore<mode>): Likewise.
21594         (*cstoresi_insn_uxtw): Likewise.
21595         (cstore<mode>_neg): Likewise.
21596         (*cstoresi_neg_uxtw): Likewise.
21598 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21600         PR target/69161
21601         * config/arm/predicates.md (arm_comparison_operator_mode):
21602         New predicate.
21603         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
21604         instead of arm_comparison_operator.
21605         (*mov_negscc): Likewise.
21606         (*mov_notscc): Likewise.
21607         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
21608         (*thumb2_mov_negscc): Likewise.
21609         (*thumb2_mov_negscc_strict_it): Likewise.
21610         (*thumb2_mov_notscc): Likewise.
21611         (*thumb2_mov_notscc_strict_it): Likewise.
21613 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
21615         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
21616         Add missing return.
21618 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
21620         * config/visium/visium.c (machine_libfunc_index): New enum.
21621         (machine_libfuncs): New structure.
21622         (visium_libfuncs): New static variable.
21623         (TARGET_INIT_LIBFUNCS): Define to...
21624         (visium_init_libfuncs): ...this.  New function.
21625         (expand_block_move_4): Use the appropriate libfunc.
21626         (expand_block_move_2): Likewise.
21627         (expand_block_move_1): Likewise.
21628         (expand_block_set_4): Likewise.
21629         (expand_block_set_2): Likewise.
21630         (expand_block_set_1): Likewise.
21631         (visium_trampoline_init): Likewise.
21633 2016-02-17  Nick Clifton  <nickc@redhat.com>
21635         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
21636         TI's devices.csv file as of March 2016.
21638 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
21640         PR Target/48344
21641         * opts-global.c (handle_common_deferred_options): Introduce and
21642         initialize two global variables to remember command-line options
21643         specifying a stack-limiting register.
21644         * opts.h: Add extern declarations of the two new global variables.
21645         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
21646         variable based on the values of the two new global variables.
21648 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21650         PR c/69835
21651         * common.opt (Wnonnull-compare): New warning.
21652         * doc/invoke.texi (-Wnonnull): Remove text about comparison
21653         of arguments against NULL.
21654         (-Wnonnull-compare): Document.
21655         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
21656         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
21657         * passes.def (pass_warn_nonnull_compare): Add.
21658         * gimple-ssa-nonnull-compare.c: New file.
21660 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21662         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
21663         AARCH64_EXTRA_TUNE_RECIP_SQRT.
21665 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21667         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
21668         reciprocal sqrt for -mlow-precision-recip-sqrt.
21670 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21671             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21673         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
21674         always use lane loads to construct non-constant vectors.
21676 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21678         * config/aarch64/aarch64.md
21679         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
21680         constraints for operand 3.
21681         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
21683 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21684             Richard Biener  <rguenther@suse.de>
21686         PR tree-optimization/69820
21687         * tree-vect-patterns.c (type_conversion_p): Return false if
21688         *orig_type is unsigned single precision or boolean.
21689         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
21690         Formatting fix.
21692 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21694         PR rtl-optimization/69764
21695         PR rtl-optimization/69771
21696         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
21697         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
21699 2016-02-16  Richard Biener  <rguenther@suse.de>
21701         PR tree-optimization/69776
21702         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
21703         sets from caller.
21704         (indirect_refs_may_alias_p): Likewise.
21705         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
21706         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
21707         according to tbaa_p.
21708         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
21709         (optimize_stmt): For redundant store discovery do not allow tbaa.
21711 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
21713         PR tree-optimization/69714
21714         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
21715         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
21717 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
21719         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
21720         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
21721         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
21722         * config/arc/arc.c (arc_init): Check FPU options.
21723         (get_arc_condition_code): Handle new CC_FPU* modes.
21724         (arc_select_cc_mode): Likewise.
21725         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
21726         register pair only. Allow access for ARCv2 accumulator.
21727         (gen_compare_reg): Whenever we have FPU support use FPU compare
21728         instructions.
21729         (arc_reorg): Don't generate brcc insns when FPU compare
21730         instructions are involved.
21731         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
21732         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
21733         floating point emulation.
21734         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
21735         (REVERSE_CONDITION): Add new CC_FPU* modes.
21736         (TARGET_FP_SP_BASE): Define.
21737         (TARGET_FP_DP_BASE): Likewise.
21738         (TARGET_FP_SP_FUSED): Likewise.
21739         (TARGET_FP_DP_FUSED): Likewise.
21740         (TARGET_FP_SP_CONV): Likewise.
21741         (TARGET_FP_DP_CONV): Likewise.
21742         (TARGET_FP_SP_SQRT): Likewise.
21743         (TARGET_FP_DP_SQRT): Likewise.
21744         (TARGET_FP_DP_AX): Likewise.
21745         * config/arc/arc.md (ARCV2_ACC): New constant.
21746         (type): New fpu type attribute.
21747         (SDF): Conditional iterator.
21748         (cstore<mode>, cbranch<mode>): Change expand condition.
21749         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
21750         handles FPU/FPX cases as well.
21751         * config/arc/arc.opt (mfpu): New option.
21752         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
21753         Renamed.
21754         (adddf3, muldf3, subdf3): Removed.
21755         * config/arc/predicates.md (proper_comparison_operator): Recognize
21756         CC_FPU* modes.
21757         * config/arc/fpu.md: New file.
21758         * doc/invoke.texi (ARC Options): Document mfpu option.
21760 2016-02-16  Richard Biener  <rguenther@suse.de>
21762         PR rtl-optimization/69291
21763         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
21764         noce_operand_ok check.
21766 2016-02-16  Tom de Vries  <tom@codesourcery.com>
21768         PR lto/67709
21769         * omp-low.c (simd_clone_create): Remove call to
21770         symtab->call_cgraph_insertion_hooks.
21772 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21774         PR tree-optimization/69802
21775         * tree-ssa-reassoc.c (update_range_test): If op is
21776         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
21777         op == 1 test of precision 1 integral op, otherwise handle
21778         that case as op itself.  Fix up formatting.
21779         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
21780         up formatting.
21782 2016-02-16  Richard Biener  <rguenther@suse.de>
21784         PR tree-optimization/69586
21785         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
21786         types for conversion sources.
21788 2016-02-16  Richard Biener  <rguenther@suse.de>
21790         PR middle-end/69801
21791         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
21792         mask OEP_ADDRESS_OF.
21794 2016-02-16  Alan Modra  <amodra@gmail.com>
21796         PR target/68973
21797         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
21798         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
21799         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
21800         (p8_mtvsrwz): New.
21801         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
21802         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
21803         (p8_fmrgow_<mode>): Likewise.
21804         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
21805         changes.
21806         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
21807         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
21808         to use movdi_internal64.  Remove op0_di.
21809         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
21811 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
21813         Add support for the FCCMP insn types
21815         * config/aarch64/aarch64.md (fccmp): Change insn type.
21816         (fccmpe): Likewise.
21817         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
21818         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
21819         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
21820         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
21821         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
21822         * config/arm/types.md (fccmps): Add new insn type.
21823         (fccmpd): Likewise.
21825 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21827         * alias.c (get_alias_set): Fix a typo in comment.
21829 2016-02-15  Richard Biener  <rguenther@suse.de>
21831         PR tree-optimization/69595
21832         * match.pd: Complete range test simplification to true.
21834 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
21836         PR rtl-optimization/69648
21837         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
21838         pic_offset_table_rtx.
21840         PR rtl-optimization/69752
21841         * ira.c (update_equiv_regs): When looking for more than a single SET,
21842         also take other side effects into account.
21844 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
21846         * config/s390/s390.c (s390_function_profiler): Add a new sequence
21847         for z900+ CPUs in 31-bit mode.
21849 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
21851         * common/config/s390/s390-common.c (s390_supports_split_stack):
21852         New function.
21853         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
21854         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
21855         * config/s390/s390.c (struct machine_function): New field
21856         split_stack_varargs_pointer.
21857         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
21858         in s390_emit_prologue.
21859         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
21860         vararg pointer.
21861         (morestack_ref): New global.
21862         (SPLIT_STACK_AVAILABLE): New macro.
21863         (s390_expand_split_stack_prologue): New function.
21864         (s390_live_on_entry): New function.
21865         (s390_va_start): Use split-stack vararg pointer if appropriate.
21866         (s390_asm_file_end): Emit the split-stack note sections.
21867         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
21868         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
21869         (UNSPECV_SPLIT_STACK_CALL): New unspec.
21870         (UNSPECV_SPLIT_STACK_DATA): New unspec.
21871         (split_stack_prologue): New expand.
21872         (split_stack_space_check): New expand.
21873         (split_stack_data): New insn.
21874         (split_stack_call): New expand.
21875         (split_stack_call_*): New insn.
21876         (split_stack_cond_call): New expand.
21877         (split_stack_cond_call_*): New insn.
21879 2016-02-15  Richard Biener  <rguenther@suse.de>
21881         PR tree-optimization/69783
21882         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21883         Add trivially correct cases.
21885 2016-02-15  Tom de Vries  <tom@codesourcery.com>
21887         PR lto/69655
21888         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
21889         do_force_output.
21890         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
21892 2016-02-15  Richard Biener  <rguenther@suse.de>
21894         PR tree-optimization/69776
21895         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21896         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
21897         indicate whether we can use TBAA to disambiguate against stores.
21898         Use alias-set zero if not.
21899         (visit_reference_op_store): Do not use TBAA when looking up
21900         redundant stores.
21901         * tree-ssa-pre.c (compute_avail): Use TBAA here.
21902         (eliminate_dom_walker::before_dom_children): But not when looking
21903         up redundant stores.
21905 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
21907         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
21909 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21911         *  config/i386/znver1.md
21912         (znver1_pop, znver1_pop_mem,
21913         znver1_load_imov_double_store,
21914         znver1_load_imov_direct_store,
21915         znver1_load_imov_direct_load,
21916         znver1_load_imov_double_load): Add new.
21917         (znver1_insn, znver1_insn_load): Add icmov type.
21918         (znver1_sseavx_fma,
21919         znver1_sseavx_fma_load,
21920         znver1_avx256_fma,
21921         znver1_avx256_fma_load): Fix pipe usage.
21923 2016-02-14  Alan Modra  <amodra@gmail.com>
21925         PR target/68973
21926         * reload.c (find_reloads_address_1): For pre/post-inc/dec
21927         with an invalid hard reg, reload just the reg not the entire
21928         pre/post-inc/dec address expression.
21930 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21932         PR target/67260
21933         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
21934         fixed R1_REG scratch reg.
21935         (sibcall_value_pcrel_fdpic): Likewise.
21937 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21939         PR target/67636
21940         PR target/64345
21941         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
21943 2016-02-12  Walter Lee  <walt@tilera.com>
21945         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
21946         * config/tilegx/t-tilegx: Likewise.
21948 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21950         PR other/69554
21951         * diagnostic-show-locus.c (struct line_span): New struct.
21952         (layout::get_first_line): Delete.
21953         (layout::get_last_line): Delete.
21954         (layout::get_num_line_spans): New member function.
21955         (layout::get_line_span): Likewise.
21956         (layout::print_heading_for_line_span_index_p): Likewise.
21957         (layout::get_expanded_location): Likewise.
21958         (layout::calculate_line_spans): Likewise.
21959         (layout::m_first_line): Delete.
21960         (layout::m_last_line): Delete.
21961         (layout::m_line_spans): New field.
21962         (layout::layout): Update comment.  Replace m_first_line and
21963         m_last_line with m_line_spans, replacing their initialization
21964         with a call to calculate_line_spans.
21965         (diagnostic_show_locus): When printing source lines and
21966         annotations, rather than looping over a single span
21967         of lines, instead loop over each line_span within
21968         the layout, with an inner loop over the lines within them.
21969         Call the context's start_span callback when changing line spans.
21970         * diagnostic.c (diagnostic_initialize): Initialize start_span.
21971         (diagnostic_build_prefix): Break out the building of the location
21972         part of the string into...
21973         (diagnostic_get_location_text): ...this new function, rewriting
21974         it from nested ternary expressions to a sequence of "if"
21975         statements.
21976         (default_diagnostic_start_span_fn): New function.
21977         * diagnostic.h (diagnostic_start_span_fn): New typedef.
21978         (diagnostic_context::start_span): New field.
21979         (default_diagnostic_start_span_fn): New prototype.
21981 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21983         PR driver/69779
21984         * gcc.c (driver::finalize): Fix cleanup of "specs".
21986 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21988         PR driver/69265
21989         PR driver/69453
21990         * gcc.c (driver::driver): Initialize m_option_suggestions.
21991         (driver::~driver): Clean up m_option_suggestions.
21992         (suggest_option): Convert to...
21993         (driver::suggest_option): ...this, and split out into
21994         driver::build_option_suggestions and find_closest_string.
21995         (driver::build_option_suggestions): New function, from
21996         first half of suggest_option.  Special-case
21997         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
21998         the sanitizer_opts array.  For options of enum types, add the
21999         various enum values to the candidate strings.
22000         (driver::handle_unrecognized_options): Remove "const".
22001         * gcc.h (driver::handle_unrecognized_options): Likewise.
22002         (driver::build_option_suggestions): New decl.
22003         (driver::suggest_option): New decl.
22004         (driver::m_option_suggestions): New field.
22005         * opts-common.c (add_misspelling_candidates): New function.
22006         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
22007         and make non-static.
22008         * opts.h (sanitizer_opts): New array decl.
22009         (add_misspelling_candidates): New function decl.
22010         * spellcheck.c (find_closest_string): New function.
22011         * spellcheck.h (find_closest_string): New function decl.
22013 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22015         PR rtl-optimization/69764
22016         PR rtl-optimization/69771
22017         * optabs.c (expand_binop_directly): For shift_optab_p, force
22018         convert_modes with VOIDmode if xop1 has VOIDmode.
22020 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
22022         PR target/69729
22023         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
22024         to correctly determine instrumentation thunks.
22026 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22028         PR ipa/69241
22029         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
22030         type by reference, force lhs on the call.
22032         PR ipa/68672
22033         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
22034         Compute retval and retbnd early in all cases if split_part_return_p
22035         and return_bb is not EXIT.  Remove all clobber stmts and reset
22036         all debug stmts that refer to SSA_NAMEs defined in split part,
22037         except if it is retval, in that case replace the old retval with the
22038         lhs of the call to the split part.
22040 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22042         revert:
22043         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22045         PR middle-end/66726
22046         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22047         whose result is used in PHI.
22048         (maybe_optimize_range_tests): Likewise.
22049         (final_range_test_p): Likweise.
22051 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
22053         PR middle-end/66726
22054         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
22055         whose result is used in PHI.
22056         (maybe_optimize_range_tests): Likewise.
22057         (final_range_test_p): Likweise.
22059 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
22061         * cgraph.c: Spelling fixes - behaviour -> behavior and
22062         neighbour -> neighbor.
22063         * target.def: Likewise.
22064         * sel-sched.c: Likewise.
22065         * config/mips/mips.c: Likewise.
22066         * config/arc/arc.md: Likewise.
22067         * config/arm/cortex-a57.md: Likewise.
22068         * config/arm/arm.c: Likewise.
22069         * config/arm/neon.md: Likewise.
22070         * config/arm/arm-c.c: Likewise.
22071         * config/vms/vms-c.c: Likewise.
22072         * config/s390/s390.c: Likewise.
22073         * config/i386/znver1.md: Likewise.
22074         * config/i386/i386.c: Likewise.
22075         * config/ia64/hpux-unix2003.h: Likewise.
22076         * config/msp430/msp430.md: Likewise.
22077         * config/rx/rx.c: Likewise.
22078         * config/rx/rx.md: Likewise.
22079         * config/aarch64/aarch64-simd.md: Likewise.
22080         * config/aarch64/aarch64.c: Likewise.
22081         * config/nvptx/nvptx.c: Likewise.
22082         * config/bfin/bfin.c: Likewise.
22083         * config/cris/cris.opt: Likewise.
22084         * config/rs6000/rs6000.c: Likewise.
22085         * target.h: Likewise.
22086         * spellcheck.c: Likewise.
22087         * ira-build.c: Likewise.
22088         * tree-inline.c: Likewise.
22089         * builtins.c: Likewise.
22090         * lra-constraints.c: Likewise.
22091         * explow.c: Likewise.
22092         * hwint.h: Likewise.
22093         * targhooks.c: Likewise.
22094         * tree-vect-data-refs.c: Likewise.
22095         * expr.c: Likewise.
22096         * doc/tm.texi: Likewise.
22097         * doc/extend.texi: Likewise.
22098         * doc/install.texi: Likewise.
22099         * doc/md.texi: Likewise.
22100         * tree-ssa-tail-merge.c: Likewise.
22101         * sched-int.h: Likewise.
22102         * match.pd: Likewise.
22103         * sched-ebb.c: Likewise.
22104         * target.def (omit_struct_return_reg): Likewise.
22105         * gimple-ssa-isolate-paths.c: Likewise.
22106         (find_implicit_erroneous_behaviour): Renamed to...
22107         (find_implicit_erroneous_behavior): ... this.
22108         (find_explicit_erroneous_behaviour): Renamed to...
22109         (find_explicit_erroneous_behavior): ... this.
22110         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
22112 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
22114         PR rtl-optimization/64682
22115         PR rtl-optimization/69567
22116         PR rtl-optimization/69737
22117         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
22118         in I2 as well, just lose it.
22120 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22122         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22123         New variable.
22124         (aarch64_last_printed_tune_string): Likewise.
22125         (aarch64_declare_function_name): Only output .arch assembler
22126         directive if it will be different from the previously output
22127         directive.  Same for .tune comment but only if -dA is set.
22128         (aarch64_start_file): New function.
22129         (TARGET_ASM_FILE_START): Define.
22131 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
22133         PR plugins/69758
22134         * Makefile.in (PLUGIN_HEADERS): Add params.list.
22136 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
22138         PR target/65313
22139         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22140         -Wmaybe-uninitialized warning.
22142 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
22144         PR target/69713
22145         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22147 2016-02-11  Richard Biener  <rguenther@suse.de>
22149         PR rtl-optimization/69291
22150         * ifcvt.c (noce_try_store_flag_constants): Do not allow
22151         subexpressions affected by changing the result.
22153 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22155         PR target/69148
22156         * lra-constraints.c (curr_insn_transform): Find in/out operands
22157         for secondary memory moves.  Update dups.
22159 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
22161         PR tree-optimization/69652
22162         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22163         to nested loop, did source re-formatting, skip debug statements,
22164         add check on statement with volatile operand, remove dead scalar
22165         statements.
22167 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
22168             Patrick Palka  <ppalka@gcc.gnu.org>
22170         PR ipa/69241
22171         PR c++/69649
22172         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22173         calls if the return type is TREE_ADDRESSABLE.
22174         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22175         * ipa-split.c (split_function): Fix doubled "we" in comment.
22176         Use void return type for the split part even if
22177         !split_point->split_part_set_retval.
22179 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
22181         PR tree-optimization/68021
22182         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22183         when computing the value of biv cand by itself.
22185 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22187         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22188         (cortexa57_tunings): Likewise.
22189         (cortexa72_tunings): Likewise.
22190         (arch_macro_fusion_pair_p): Add support for AES fusion.
22191         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22192         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22193         Allow virtual registers before reload so early scheduling works.
22194         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22195         correct latency and pipeline.
22196         (cortex_a57_crypto_complex): Likewise.
22197         (cortex_a57_crypto_xor): Likewise.
22198         (define_bypass): Add AES bypass.
22200 2016-02-10  Richard Biener  <rguenther@suse.de>
22202         PR tree-optimization/69726
22203         * passes.def: Add DCE pass before late uninit.
22204         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22205         really fixup if-conversions job.
22207 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22209         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22210         (arm_cortex_a57_tune): Likewise.
22211         (aarch_macro_fusion_pair_p): Add support for AES fusion.
22212         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22214 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22216         * timevar.def (TV_PHASE_DBGINFO): Delete.
22217         (TV_PHASE_CHECK_DBGINFO): Likewise.
22218         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22220 2016-02-10  Richard Biener  <rguenther@suse.de>
22222         PR tree-optimization/69719
22223         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22224         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22226 2016-02-09  Andrew Pinski  <apinski@cavium.com>
22228         PR tree-opt/69282
22229         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22230         get_vcond_mask_icode returns false.
22232 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22234         PR target/68404
22235         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22236         an ADDIS that adds a pointer to a large constant that sets the
22237         upper16 bits with a load operation.
22239 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22241         PR target/68532
22242         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22243         order.
22244         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22245         endian.
22246         (vzipq_s16): Likewise.
22247         (vzipq_s32): Likewise.
22248         (vzipq_f32): Likewise.
22249         (vzipq_u8): Likewise.
22250         (vzipq_u16): Likewise.
22251         (vzipq_u32): Likewise.
22252         (vzipq_p8): Likewise.
22253         (vzipq_p16): Likewise.
22255 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22257         PR target/68532
22258         * config/arm/arm.c (neon_endian_lane_map): New function.
22259         (neon_vector_pair_endian_lane_map): New function.
22260         (arm_evpc_neon_vuzp): Allow for big endian lane order.
22261         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22262         endian.
22263         (vuzpq_s16): Likewise.
22264         (vuzpq_s32): Likewise.
22265         (vuzpq_f32): Likewise.
22266         (vuzpq_u8): Likewise.
22267         (vuzpq_u16): Likewise.
22268         (vuzpq_u32): Likewise.
22269         (vuzpq_p8): Likewise.
22270         (vuzpq_p16): Likewise.
22272 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
22274         PR target/69634
22275         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22276         debug insns.
22278 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
22280         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22281         truncate const_int operand 1 to QImode.
22283 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
22285         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22286         corresponding to an abnormal edge.
22288 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22290         PR tree-optimization/69599
22291         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22292         function.
22293         (find_func_aliases_for_builtin_call, find_func_clobbers)
22294         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
22295         partition.
22297 2016-02-09  Richard Biener  <rguenther@suse.de>
22299         PR tree-optimization/69715
22300         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22301         LHS on calls as non-rewritable.
22303 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22305         PR lto/69707
22306         * lto-wrapper.c (append_diag_options): New function.
22307         (compile_offload_image): Call append_diag_options.
22309 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
22311         PR other/69722
22312         * doc/extend.texi (Flag Output Operands): Correct sectioning.
22313         Minor copy-edit to fix verb tenses.
22315 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
22317         PR tree-optimization/69209
22318         * ipa-split.c (split_function): If split part is not
22319         returning retval, retval has gimple type but is not
22320         gimple value, force it into a SSA_NAME first.
22322 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
22324         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22325         outdated section.
22327 2016-02-08  Jason Merrill  <jason@redhat.com>
22329         PR c++/69631
22330         * convert.c (convert_to_integer_1): Check dofold on truncation
22331         distribution.
22332         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22333         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22334         Rename from *_nofold.
22335         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22336         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22338 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
22340         PR target/60410
22341         * tree.c (build_common_tree_nodes): Remove short_double argument.
22342         All callers changed.
22343         * tree.h (build_common_tree_nodes): Adjust declaration.
22344         * doc/invoke.texi (-fshort-double): Remove documentation.
22345         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22346         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22347         * lto-wrapper.c (merge_and_complain, append_compiler_options)
22348         (append_linker_options): Don't handle OPT_fshort_double.
22350         PR rtl-optimization/68730
22351         * lra-remat.c (insn_to_cand_activation): New static variable.
22352         (lra_remat): Allocate and free it.
22353         (create_cand): New arg activation. Initialize a field in
22354         insn_to_cand_activation if it is nonnull.
22355         (create_cands): Pass the activation insn to create_cand when making
22356         a candidate involving an output reload.  Reorganize code a little.
22357         (do_remat): Keep track of active status of candidates in a separate
22358         bitmap.
22360 2016-02-08  Richard Biener  <rguenther@suse.de>
22362         PR tree-optimization/69719
22363         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22364         Properly use absolute of the difference of the two offsets to
22365         compare or adjust the segment length.
22367 2016-02-08  Richard Biener  <rguenther@suse.de>
22368             Jeff Law  <law@redhat.com>
22370         PR target/68273
22371         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22372         types for anonymous SSA names.
22374 2016-02-08   Richard Biener  <rguenther@suse.de>
22376         PR rtl-optimization/69274
22377         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22379 2016-02-08  Jeff Law  <law@redhat.com>
22381         PR tree-optimization/65917
22382         * tree-ssa-dom.c (record_temporary_equivalences): Record both
22383         equivalences from if (x == y) style conditionals.
22384         (loop_depth_of_name): Remove.
22385         (record_equality): Remove loop depth check.
22386         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22387         (const_and_copies::record_const_or_copy_raw): New member function.
22388         * tree-ssa-scopedtables.c
22389         (const_and_copies::record_const_or_copy_raw): New, factored out of
22390         (const_and_copies::record_const_or_copy): Call new member function.
22392 2016-02-05  Jeff Law  <law@redhat.com>
22394         PR tree-optimization/68541
22395         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22396         (count_stmts_in_block): New function.
22397         (poor_ifcvt_candidate_code): Likewise.
22398         (is_feasible_trace): Add some heuristics to determine when path
22399         splitting is profitable.
22400         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22401         is a diamond with a single exit.
22403 2016-02-05  Martin Sebor  <msebor@redhat.com>
22405         PR c++/69662
22406         * doc/invoke.texi: Update -Wplacement-new to take an optional
22407         argument.
22409 2016-02-06  Richard Henderson  <rth@redhat.com>
22411         PR c/69643
22412         * tree.c (tree_nop_conversion_p): Do not strip casts into or
22413         out of non-standard address spaces.
22415 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
22417         PR rtl-optimization/69691
22418         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22420 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
22422         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22423         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22424         (*ieee128_mfvsrd_64bit): Likewise.
22425         (*ieee128_mfvsrd_32bit): Likewise.
22427 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
22429         PR target/69369
22430         Revert r232560:
22431         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22433         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22434         instrumented_version.
22436 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
22438         * doc/invoke.texi (Optimize Options): In table of --param options
22439         rename second occurrence of tracer-min-branch-ratio to
22440         tracer-min-branch-probability, rename
22441         tracer-min-branch-ratio-feedback to
22442         tracer-min-branch-probability-feedback and clarify description,
22443         rename sched-spec-state-edge-prob-cutoff to
22444         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
22445         to selsched-insns-to-rename, rename lto-minpartition to
22446         lto-min-partition, delete reorder-blocks-duplicate and
22447         reorder-blocks-duplicate-feedback.
22449 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22451         * config/s390/s390.c (s390_register_info_set_ranges): Remove
22452         superfluous loops.
22454 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22456         * doc/extend.texi: S/390: Correct some typos.
22458 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22460         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
22462 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22464         PR target/69625
22465         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
22466         (s390_register_info_gprtofpr): Use new macros above.
22467         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
22468         its name.
22469         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
22470         its name.  Adjust restore and save gpr ranges.
22471         (s390_register_info_set_ranges): New function.
22472         (s390_register_info): Use new macros above.  Call
22473         s390_register_info_set_ranges.
22474         (s390_optimize_register_info): Likewise.
22475         (s390_hard_regno_rename_ok): Use new macros.
22476         (s390_hard_regno_scratch_ok): Likewise.
22477         (s390_emit_epilogue): Likewise.
22478         (s390_can_use_return_insn): Likewise.
22479         (s390_optimize_prologue): Likewise.
22480         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
22482 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
22484         PR bootstrap/69677
22485         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
22486         alignment fixes.
22487         (ix86_option_override_internal): Disable TARGET_STV even for
22488         -m{incoming,preferred}-stack-boundary=3.
22490 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22492         * config.gcc: Mark deprecated rtems targets as obsolete.
22494 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
22496         PR rtl-optimization/64682
22497         PR rtl-optimization/69567
22498         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
22499         before I2 only if the register is both used and set in I2.
22501 2016-02-04  DJ Delorie  <dj@redhat.com>
22503         * config/msp430/msp430.c (msp430_start_function): Add function type.
22505 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
22507         PR fortran/69368
22508         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
22510 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
22512         PR rtl-optimization/69577
22513         Revert:
22514         2015-10-29  Richard Henderson  <rth@redhat.com>
22516         PR target/68124
22517         PR rtl-opt/67609
22518         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
22519         sse check to the exact conditions of PR 67609.
22521 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
22523         PR target/69667
22524         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
22525         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
22526         not allowed into the traditional Altivec registers.
22527         (movtd_64bit_nodm): Likewise.
22528         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
22530 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
22532         * config/aarch64/cortex-a57-fma-steering.c
22533         (aarch64_register_fma_steering): Remove "static" from arguments
22534         to register_pass.
22536 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
22538         PR target/69619
22539         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
22540         twice when complex.
22542 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
22544         * doc/invoke.texi: Delete -mno-fma4.
22546 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
22548         PR rtl-optimization/69577
22549         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
22550         (find_subregs_of_mode): Update accordingly.  Iterate over partial
22551         definitions.
22553 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
22555         * config/arm/arm-protos.h (neon_reinterpret): Remove.
22556         * config/arm/arm.c (neon_reinterpret): Remove.
22557         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
22558         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
22559         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
22560         vreinterpretti): Remove.
22561         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
22562         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
22563         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
22564         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
22565         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
22566         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
22567         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
22568         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
22569         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
22570         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
22571         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
22572         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
22573         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22574         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
22575         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
22576         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
22577         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
22578         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
22579         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
22580         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
22581         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
22582         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
22583         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
22584         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
22585         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
22586         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
22587         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
22588         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
22589         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
22590         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
22591         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
22592         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
22593         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
22594         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
22595         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
22596         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
22597         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
22598         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
22599         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
22600         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
22601         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
22602         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
22603         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
22604         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
22605         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
22606         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
22607         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
22608         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
22609         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
22610         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
22611         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
22612         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
22613         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
22614         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
22615         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
22616         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
22617         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
22618         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
22619         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
22620         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
22621         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
22622         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
22623         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
22624         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
22625         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
22626         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
22627         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
22628         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
22629         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
22630         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
22631         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
22632         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
22633         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
22634         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
22635         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
22636         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
22637         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
22638         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
22639         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
22640         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
22641         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
22642         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
22643         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
22644         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
22645         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
22646         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
22647         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
22648         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
22649         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
22650         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
22651         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
22652         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
22653         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
22654         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
22655         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
22656         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
22657         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
22658         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
22659         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
22660         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
22661         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
22662         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
22663         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
22665 2016-02-04  Martin Liska  <mliska@suse.cz>
22667         PR sanitizer/69276
22668         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
22669         that are gimple_store_p.
22670         (maybe_instrument_call): Likewise.
22672 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
22674         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
22675         register scaling out of memory reference and comment why.
22677 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22679         PR target/65932
22680         PR target/67714
22681         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
22682         folding the source of a SET.
22684 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22686         PR target/65932
22687         PR target/67714
22688         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
22689         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
22691 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
22693         PR target/65932
22694         PR target/67714
22695         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
22696         HImode.
22698 2016-02-04  Christian Bruel  <christian.bruel@st.com>
22700         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
22701         * config/arm/arm.c (arm_set_current_function): Likewise.
22703 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
22704             Ilya Enkovich  <enkovich.gnu@gmail.com>
22705             H.J. Lu  <hongjiu.lu@intel.com>
22707         PR target/69454
22708         * config/i386/i386.c (convert_scalars_to_vector): Remove
22709         stack alignment fixes.
22710         (ix86_option_override_internal): Disable TARGET_STV if stack
22711         might not be aligned enough.
22712         (ix86_minimum_alignment): Assert that TARGET_STV is false.
22714 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
22716         * config/i386/x86-tune.def: Disable default prefetching
22717         for -march=znver1.
22719 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22720             Vladimir Makarov  <vmakarov@redhat.com>
22722         PR target/69461
22723         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
22724         in validating fused toc addresses.
22726 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
22728         PR c/69627
22729         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
22730         range->m_caret fields if range->m_show_caret_p is false.
22732         PR target/69644
22733         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
22734         Force oldval into register if it does not satisfy reg_or_short_operand
22735         predicate.  Fix up formatting.
22737 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22738             Alexandre Oliva  <aoliva@redhat.com>
22740         PR target/69461
22741         * lra-constraints.c (simplify_operand_subreg): Check additionally
22742         address validity after potential reloading.
22743         (process_address_1): Check insns validity.  In case of failure do
22744         nothing.
22746 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
22748         PR target/69118
22749         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
22750         Fix target.
22752 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
22754         * wide-int.cc (canonize_uhwi): New function.
22755         (wi::divmod_internal): Use it.
22757 2016-02-02  James Norris  <jnorris@codesourcery.com>
22759         * gimplify.c (omp_notice_variable): Add usage check.
22761 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
22763         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
22764         like LE, GE, LT, GT when emitting relational operator.
22766 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
22768         * ira-costs.c (find_costs_and_classes): Add extra argument.
22769         * target.def (ira_change_pseudo_allocno_class): Add parameter.
22770         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
22771         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
22772         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
22773         Add best_class parameter, and return it if not ALL_REGS.
22774         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
22775         Add parameter.
22776         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
22777         Update target hook.
22779 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
22781         * config/aarch64/aarch64.c
22782         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
22783         (aarch64_ira_change_pseudo_allocno_class): New function.
22785 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
22787         PR target/67032
22788         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
22790 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22792         * config/avr/avr.c (avr_option_override): Set
22793         PARAM_ALLOW_STORE_DATA_RACES to 1.
22795 2016-02-02  Richard Biener  <rguenther@suse.de>
22797         PR tree-optimization/69595
22798         * match.pd: Add range test simplifications to true/false.
22800 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
22802         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
22803         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
22804         instead.
22806 2016-02-02  Richard Biener  <rguenther@suse.de>
22808         PR tree-optimization/69606
22809         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
22810         info on the result before moving a stmt.
22812 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
22814         PR middle-end/68542
22815         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
22816         branch with vector comparison.
22817         * config/i386/sse.md (VI48_AVX): New mode iterator.
22818         (define_expand "cbranch<mode>4): Add support for conditional branch
22819         with vector comparison.
22820         * tree-vect-loop.c (optimize_mask_stores): New function.
22821         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
22822         has_mask_store field of vect_info.
22823         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
22824         vectorized loops having masked stores after vec_info destroy.
22825         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
22826         correspondent macros.
22827         (optimize_mask_stores): Add prototype.
22829 2016-02-02  Alan Modra  <amodra@gmail.com>
22831         PR target/69548
22832         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
22833         allow subregs.
22835 2016-02-02  Alan Modra  <amodra@gmail.com>
22837         PR target/68662
22838         * config/rs6000/rs6000.c (need_toc_init): New var, set it
22839         whenever toc_label_name used.
22840         (rs6000_file_start): Don't set up toc section here,
22841         (rs6000_output_function_epilogue): do so here instead,
22842         (rs6000_xcoff_file_start): and here.
22843         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
22844         (load_toc_aix_di): Likewise.
22846 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22848         PR rtl-optimization/69592
22849         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
22850         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
22851         (num_sign_bit_copies_binary_arith_p): New inline function.
22852         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
22854 2016-02-01  Jeff Law  <law@redhat.com>
22856         PR tree-optimization/69580
22857         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
22858         * tree-ssa-threadbackward.c
22859         (fsm_find_control_statement_thread_paths): Do not try to walk
22860         through large PHI nodes.
22862 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22864         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
22865         when count is incremented above limit, don't analyze further
22866         insns afterwards.
22868         * omp-low.c (oacc_parse_default_dims): Avoid
22869         -Wsign-compare warning, make sure value fits into int
22870         rather than just unsigned int.
22872 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
22874         PR tree-optimization/67921
22875         * fold-const.c (split_tree): New parameters.  Convert pointer
22876         type variable part to proper type before negating.
22877         (fold_binary_loc): Pass new arguments to split_tree.
22879 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
22881         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
22882         (nvptx_goacc_validate_dims): Extend to handle global defaults.
22883         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
22884         * doc/tm.texti: Rebuilt.
22885         * doc/invoke.texi (fopenacc-dim): Document.
22886         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
22887         (append_compiler_options): Likewise.
22888         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
22889         (oacc_parse_default_dims): New.
22890         (oacc_validate_dims): Add USED arg.  Select non-unity default when
22891         possible.
22892         (oacc_loop_fixed_partitions): Return mask of used partitions.
22893         (oacc_loop_auto_partitions): Emit dump info.
22894         (oacc_loop_partition): Return mask of used partitions.
22895         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
22896         loop partitioning and validation calls.
22898 2016-02-01  Richard Biener  <rguenther@suse.de>
22900         PR middle-end/69556
22901         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
22903 2016-02-01  Richard Biener  <rguenther@suse.de>
22905         PR tree-optimization/69574
22906         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
22907         of asserting return chrec_dont_know.
22909 2016-02-01  Martin Liska  <mliska@suse.cz>
22911         * mem-stats-traits.h: Add copyright header.
22912         * mem-stats.h: Likewise.
22914 2016-02-01  Richard Biener  <rguenther@suse.de>
22916         PR tree-optimization/69579
22917         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
22918         Do not propagate through abnormal PHI results.
22920 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
22922         * postreload.c (reload_cse_simplify): Remove dead code.
22924 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22926         PR rtl-optimization/69570
22927         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
22928         if there is more than one set, not if there is a single set.
22930 2016-02-01  Richard Henderson  <rth@redhat.com>
22932         PR rtl-opt/69535
22933         * combine.c (make_compound_operation): When looking through a
22934         subreg, make sure to re-extend to the width of the outer mode.
22936 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
22938         PR tree-optimization/69546
22939         * wide-int.cc (wi::divmod_internal): For unsigned division
22940         where both operands fit into uhwi, if o1 is 1 and o0 has
22941         msb set, if divident_prec is larger than bits per hwi,
22942         clear another quotient word and return 2 instead of 1.
22943         Similarly for remainder with msb in HWI set, if dividend_prec
22944         is larger than bits per hwi.
22946 2016-01-29  Martin Jambor  <mjambor@suse.cz>
22948         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
22949         Use short lowercase names.
22950         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
22951         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
22952         acq_rel one.  Protect warning agains segfaults if
22953         get_memory_order_name returns NULL.
22954         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
22955         with release semantics.  Do not warn if get_memory_order already did.
22956         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
22957         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
22958         if get_memory_order already did.
22960 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
22962         * doc/install.texi: Document that isl-0.16 is supported.
22964 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
22966         PR target/69299
22967         * config/i386/constraints.md (Bm): Describe as special memory
22968         constraint.
22969         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
22970         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22971         * genpreds.c (struct constraint_data): Add is_special_memory.
22972         (have_special_memory_constraints, special_memory_start): New
22973         static vars.
22974         (special_memory_end): Ditto.
22975         (add_constraint): Add new arg is_special_memory.  Add code to
22976         process its true value.  Update have_special_memory_constraints.
22977         (process_define_constraint): Pass the new arg.
22978         (process_define_register_constraint): Ditto.
22979         (choose_enum_order): Process special memory.
22980         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
22981         function insn_extra_special_memory_constraint.
22982         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22983         * gensupport.c (process_rtx): Process
22984         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22985         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
22986         * ira-lives.c (single_reg_class): Use
22987         insn_extra_special_memory_constraint.
22988         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
22989         * lra-constraints.c (process_alt_operands): Ditto.
22990         (curr_insn_transform): Use insn_extra_special_memory_constraint.
22991         * recog.c (asm_operand_ok, preprocess_constraints): Process
22992         CT_SPECIAL_MEMORY.
22993         * reload.c (find_reloads): Ditto.
22994         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
22995         * stmt.c (parse_input_constraint): Use
22996         insn_extra_special_memory_constraint.
22998 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
23000         PR target/69530
23001         * lra-splill.c (lra_final_code_change): Revert r229087 by
23002         removing all sub-registers.
23004 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
23006         PR target/65604
23007         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
23009 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
23011         PR target/69551
23012         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
23013         SSE1, copy target into the temporary reg first before recursing
23014         on it.
23016 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
23018         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
23019         with vm.
23021 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
23023         * ginclude/stdarg.h: Test __cplusplus instead of
23024         __GXX_EXPERIMENTAL_CXX0X__.
23026 2016-01-29  Richard Biener  <rguenther@suse.de>
23028         PR tree-optimization/69547
23029         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
23030         Do not mark clobbers necessary.
23031         (mark_all_reaching_defs_necessary_1): Likewise.
23033 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23035         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
23036         declaration name with %qs and print it in both error messages.
23037         Also fix indentation.
23039 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
23041         PR other/69006
23042         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
23043         trailing blank line from error message.
23045 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
23047         PR c++/69462
23048         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
23049         for C++-11.
23051 2016-01-29  Richard Biener  <rguenther@suse.de>
23053         PR middle-end/69537
23054         * match.pd: Allow all integral types when simplifying a
23055         widening or sign-changing conversion.
23057 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23059         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
23060         back to setting codegen_error to fail codegen.
23062 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
23064         PR target/69459
23065         * config/i386/constraints.md (C): Only accept constant zero operand.
23066         (BC): New constraint.
23067         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
23068         instead of C constraint.
23069         * doc/md.texi (Machine Constraints): Update description
23070         of C constraint.
23072 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
23074         PR target/68400
23075         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
23077 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
23079         PR middle-end/69542
23080         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
23081         non-debug insns.
23083 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
23085         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
23086         branches if using guessed profile.
23088 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
23090         * graphite-optimize-isl.c (optimize_isl): Fix dump.
23092 2016-01-28  Richard Henderson  <rth@redhat.com>
23094         PR target/69305
23095         * config/aarch64/aarch64-modes.def (CC_Cmode): New
23096         * config/aarch64/aarch64-protos.h: Update.
23097         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
23098         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
23099         (aarch64_get_condition_code_1): Handle CC_Cmode.
23100         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
23101         (*add<mode>3_compareC_cconly_imm): New.
23102         (*add<mode>3_compareC_cconly): New.
23103         (*add<mode>3_compareC_imm): New.
23104         (add<mode>3_compareC): New.
23105         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
23106         to be first.  Use aarch64_carry_operation.
23107         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
23108         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
23109         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
23110         (subti3): Use subdi3_compare1.
23111         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
23112         (sub<mode>3_compare1): New.
23113         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
23114         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
23115         (*subsi3_carryin_uxtw): Likewise.
23116         (*ngc<mode>, *ngcsi_uxtw): Likewise.
23117         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
23118         * config/aarch64/iterators.md (DWI): New.
23119         * config/aarch64/predicates.md (aarch64_carry_operation): New.
23120         (aarch64_borrow_operation): New.
23122 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23124         * graphite-optimize-isl.c (optimize_isl): Print a different debug
23125         message when isl does not return a valid schedule.
23127 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23129         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23130         Remove comments from class declarations: they are already in the code
23131         close by the defs.
23133 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23135         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23136         codegen_error_p.
23137         (ternary_op_to_tree): Same.
23138         (unary_op_to_tree): Same.
23139         (nary_op_to_tree): Same.
23140         (gcc_expression_from_isl_expr_op): Same.
23141         (gcc_expression_from_isl_expression): Same.
23142         (graphite_create_new_loop): Same.
23143         (graphite_create_new_loop_guard): Same.
23144         (build_iv_mapping): Same.
23145         (graphite_create_new_guard): Same.
23146         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23147         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23149 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23151         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23152         instead of setting codegen_error to fail codegen.
23154 2016-01-28  Jason Merrill  <jason@redhat.com>
23156         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23158 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23160         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23161         Remove CONST_INT_P check in CCMP cost calculation.
23163 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23165         * config/aarch64/aarch64.c (generic_vector_cost):
23166         Set vec_permute_cost.
23167         (cortexa57_vector_cost): Likewise.
23168         (exynosm1_vector_cost): Likewise.
23169         (xgene1_vector_cost): Likewise.
23170         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23171         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23172         Add vec_permute_cost entry.
23174 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23176         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23177         immediate as %1.
23178         (add<mode>3_compare0): Likewise.
23179         (addsi3_compare0_uxtw): Likewise.
23180         (add<mode>3nr_compare0): Likewise.
23181         (compare_neg<mode>): Likewise.
23182         (<optab><mode>3): Likewise.
23184 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
23186         * tree-vect-stmts.c (vectorizable_comparison): Add
23187         NULL check for vectype.
23189 2016-01-28  Richard Biener  <rguenther@suse.de>
23191         PR tree-optimization/69466
23192         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23193         Account for PHIs we couldn't duplicate.
23195 2016-01-28  Martin Liska  <mliska@suse.cz>
23197         PR pch/68758
23198         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23199         instead of ENABLE_VALGRIND_CHECKING.
23201 2016-01-27  Richard Henderson  <rth@redhat.com>
23203         PR rtl-opt/69447
23204         * lra-remat.c (subreg_regs): New.
23205         (dump_candidates_and_remat_bb_data): Dump it.
23206         (operand_to_remat): Reject if operand in subreg_regs.
23207         (set_bb_regs): Collect subreg_regs.
23208         (lra_remat): Init and free subreg_regs.  Compute
23209         calculate_local_reg_remat_bb_data before create_cands.
23211 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
23213         PR target/68986
23214         * config/i386/i386.c (ix86_update_stack_boundary): Don't
23215         change stack_alignment_needed for __tls_get_addr call.
23217 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
23219         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23221 2016-01-27  Jeff Law  <law@redhat.com>
23223         PR tree-optimization/68398
23224         PR tree-optimization/69196
23225         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23226         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23227         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23228         Only count PHIs in the last block in the path.  The others will
23229         const/copy propagate away.  Add heuristic to allow more irreducible
23230         subloops to be created when it is likely profitable to do so.
23232         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23233         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
23234         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
23236 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23238         PR lto/69254
23239         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23240         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23241         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23242         * tree-streamer-in.c: Include asan.h.
23243         (streamer_get_builtin_tree): For builtins in sanitizer
23244         range call initialize_sanitizer_builtins and retry.
23246 2016-01-27  Ian Lance Taylor  <iant@google.com>
23248         * common.opt (fkeep-gc-roots-live): New undocumented option.
23249         * tree-ssa-loop-ivopts.c (add_candidate_1): If
23250         -fkeep-gc-roots-live, skip pointers.
23251         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23252         NULL.
23254 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
23256         PR target/69512
23257         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23258         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23260 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
23262         PR target/68380
23263         * configure.ac: NetBSD provides SSP in its C library.
23264         * configure: Updated.
23266 2016-01-27  Richard Biener  <rguenther@suse.de>
23268         PR tree-optimization/69166
23269         * tree-vect-loop.c (vect_is_simple_reduction): Always check
23270         reduction code for commutativity / associativity.
23272 2016-01-27  Martin Jambor  <mjambor@suse.cz>
23274         PR tree-optimization/69355
23275         * tree-sra.c (analyze_access_subtree): Correct hole detection when
23276         total_scalarization fails.
23278 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
23280         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23281         power9.
23283 2016-01-27  Christian Bruel  <christian.bruel@st.com>
23285         PR target/69245
23286         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23287         Move arm_reset_previous_fndecl and set_target_option_current_node in
23288         the conditional part.  Call save_restore_target_globals.
23289         * config/arm/arm.c (arm_set_current_function):
23290         Refactor to better support #pragma target and attribute mix.
23291         Call save_restore_target_globals.
23292         * config/arm/arm-protos.h (save_restore_target_globals): New function.
23294 2016-01-27  Martin Liska  <mliska@suse.cz>
23296         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23297         reference for an HSA kernel and its host function.
23299 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23301         PR tree-optimization/69399
23302         * wide-int.h (wi::lrshift): For larger precisions, only
23303         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23305 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
23307         * config/arc/predicates.md (proper_comparison_operator): Reject
23308         constant-constant comparison.
23310 2016-01-26  Tom de Vries  <tom@codesourcery.com>
23312         PR tree-optimization/69110
23313         * tree-data-ref.c (initialize_data_dependence_relation): Handle
23314         DR_NUM_DIMENSIONS == 0.
23316 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23317             Sebastian Pop  <s.pop@samsung.com>
23319         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23320         isl_ast_op_cond and isl_ast_op_select.
23321         (gcc_expression_from_isl_expr_op): Same.
23323 2016-01-26  Jason Merrill  <jason@redhat.com>
23325         PR c++/68782
23326         * tree.c (recompute_constructor_flags): Split out from
23327         build_constructor.
23328         (verify_constructor_flags): New.
23329         * tree.h: Declare them.
23331 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
23333         PR rtl-optimization/69217
23334         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23335         are no TYPE_FIELDS set for the record type.
23337 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23339         PR target/68662
23340         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23341         toc_label_name unconditionally.
23342         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23343         SYMBOL_REF string.  Use toc_label_name instead of constructing
23344         LCTOC1.
23345         (rs6000_elf_declare_function_name): Use toc_label_name instead of
23346         constructing LCTOC1.
23348 2016-01-26  Martin Sebor  <msebor@redhat.com>
23350         PR other/69477
23351         * doc/extend.texi (Common Type Attributes): Move text that talks about
23352         attribute packed from attribute aligned to the section discussing
23353         the former attribute for clarity.
23355 2016-01-26  Richard Henderson  <rth@redhat.com>
23357         PR middle-end/60908
23358         * trans-mem.c (tm_region_init): Mark entry block as visited.
23360 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
23362         PR other/69006
23363         * diagnostic-show-locus.c (layout::print_source_line): Replace
23364         call to pp_newline with call to layout::print_newline.
23365         (layout::print_annotation_line): Likewise.
23366         (layout::move_to_column): Likewise.
23367         (layout::print_any_fixits): After printing any fixits, print a
23368         trailing newline, if necessary.
23369         (layout::print_newline): New method, resetting any colorization
23370         before a newline.
23371         (diagnostic_show_locus): Move the pp_newline to before the
23372         early bailout.  Remove dummy block enclosing the layout instance.
23373         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23374         of pp_newline_and_flush with pp_flush.
23375         (diagnostic_append_note): Delete use of pp_newline.
23376         (diagnostic_append_note_at_rich_loc): Delete.
23377         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23378         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23379         when newline characters are added to the buffer.
23381 2016-01-26  Michael Matz  <matz@suse.de>
23383         * configure.ac (ac_cv_std_swap_in_utility): New test.
23384         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23385         * configure: Regenerate.
23386         * config.in: Regenerate.
23388 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
23390         * config/arc/arc.md (cstoresi4): Force operand into register.
23391         (arcset<code>): Fix predicate.
23392         (arcsetltu): Likewise.
23393         (arcsetgeu): Likewise.
23394         (arcsethi): Likewise.
23395         (arcsetls): Likewise.
23397 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23399         PR tree-optimization/69483
23400         * gimple-fold.c (canonicalize_constructor_val): Return NULL
23401         if base has error_mark_node type.
23403 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
23405         PR target/68620
23406         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23407         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23408         New helper macros.
23409         (vget_lane_f16): Handle big-endian.
23410         (vgetq_lane_f16): Likewise.
23411         (vset_lane_f16): Likewise.
23412         (vsetq_lane_f16): Likewise.
23413         * config/arm/iterators.md (VQXMOV): Add V8HF.
23414         (VDQ): Add V4HF and V8HF.
23415         (V_reg): Handle V4HF and V8HF.
23416         (Is_float_mode): Likewise.
23417         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23418         neon_vdup_nv8hf): New patterns.
23419         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23420         Use VD_LANE iterator.
23421         (neon_vld1_dup<mode>): Use VQ2 iterator.
23423 2016-01-26  Nathan Sidwell  <nathan@acm.org>
23425         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23426         (set_oacc_fn_attrib): Add IS_KERNEL arg.
23427         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23428         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23429         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23430         (oacc_validate_dims): Add LEVEL arg, don't return level.
23431         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23432         oacc_validate_dims.
23433         (execute_oacc_device_lower): Adjust, add more dump output.
23434         * tree-ssa-loop.c (gate_oacc_kernels): Use
23435         oacc_fn_attrib_kernels_p.
23436         * tree-parloops.c (create_parallel_loop): Adjust
23437         set_oacc_fn_attrib call.
23439 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23441         PR lto/69254
23442         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
23443         (append_compiler_options): Handle -fcilkplus.
23444         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
23446 2016-01-26  Nick Clifton  <nickc@redhat.com>
23448         PR target/66655
23449         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
23450         been marked as DECL_ONE_ONLY but we do not the means to make it
23451         so, then do not allow it to bind locally.
23453 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23455         PR lto/69254
23456         * opts.h (parse_sanitizer_options): New prototype.
23457         * opts.c (sanitizer_opts): New array.
23458         (parse_sanitizer_options): New function.
23459         (common_handle_option): Use parse_sanitizer_options.
23461 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23463         PR target/68986
23464         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
23465         alignment adjustment to ...
23466         (ix86_update_stack_boundary): Here.  Don't over-align stack for
23467         __tls_get_addr.
23468         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
23469         if __tls_get_addr is called.
23471 2016-01-26  Christian Bruel  <christian.bruel@st.com>
23473         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
23475 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
23477         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
23479 2016-01-26  Richard Biener  <rguenther@suse.de>
23481         PR middle-end/69467
23482         * match.pd: Guard X * CST CMP 0 pattern with single_use.
23484 2016-01-26  Richard Biener  <rguenther@suse.de>
23486         PR tree-optimization/69452
23487         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
23488         (move_computations_dom_walker::before_dom_children): Rename
23489         to ...
23490         (move_computations_worker): This.
23491         (move_computations): Perform an RPO rather than a DOM walk.
23493 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23495         PR target/69442
23496         * combine.c (combine_instructions): For REG_EQUAL note with
23497         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
23498         to the underlying register.
23499         * doc/rtl.texi (REG_EQUAL): Document the behavior of
23500         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
23502 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
23504         PR target/67896
23505         * config/aarch64/aarch64-builtins.c
23506         (aarch64_init_simd_builtin_types): Do not set structural
23507         equality to __Poly{8,16,64,128}_t types.
23509 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
23511         PR tree-optimization/69400
23512         * wide-int.cc (wi_pack): Take the precision as argument and
23513         perform canonicalization here rather than in the callers.
23514         Use the main loop to handle all full-width HWIs.  Add a
23515         zero HWI if in_len isn't a full result.
23516         (wi::divmod_internal): Update accordingly.
23517         (wi::mul_internal): Likewise.  Simplify.
23519 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
23520             Sebastian Pop  <s.pop@samsung.com>
23522         * graphite-poly.c (apply_poly_transforms): Simplify.
23523         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
23524         (print_isl_map): Same.
23525         (print_isl_union_map): Same.
23526         (print_isl_schedule): New.
23527         (debug_isl_schedule): New.
23528         * graphite-dependences.c (scop_get_reads): Do not call
23529         isl_union_map_add_map that is undocumented isl functionality.
23530         (scop_get_must_writes): Same.
23531         (scop_get_may_writes): Same.
23532         (scop_get_original_schedule): Remove.
23533         (scop_get_dependences): Do not call isl_union_map_compute_flow that
23534         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
23535         (compute_deps): Remove.
23536         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
23537         (debug_schedule_ast): New.
23538         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
23539         set_separate_option.
23540         (graphite_regenerate_ast_isl): Add dump.
23541         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
23542         from scop->transformed_schedule.
23543         (graphite_regenerate_ast_isl): Add more dump.
23544         * graphite-optimize-isl.c (optimize_isl): Set
23545         scop->transformed_schedule.  Check whether schedules are equal.
23546         (apply_poly_transforms): Move here.
23547         * graphite-poly.c (apply_poly_transforms): ... from here.
23548         (free_poly_bb): Static.
23549         (free_scop): Static.
23550         (pbb_number_of_iterations_at_time): Remove.
23551         (print_isl_ast): New.
23552         (debug_isl_ast): New.
23553         (debug_scop_pbb): New.
23554         * graphite-scop-detection.c (print_edge): Move.
23555         (print_sese): Move.
23556         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
23557         (build_scop_scattering): Remove.
23558         (create_pw_aff_from_tree): Assert instead of bailing out.
23559         (add_condition_to_pbb): Remove unused code, do not fail.
23560         (add_conditions_to_domain): Same.
23561         (add_conditions_to_constraints): Remove.
23562         (build_scop_context): New.
23563         (add_iter_domain_dimension): New.
23564         (build_iteration_domains): Initialize pbb->iterators.
23565         Call add_conditions_to_domain.
23566         (nested_in): New.
23567         (loop_at): New.
23568         (index_outermost_in_loop): New.
23569         (index_pbb_in_loop): New.
23570         (outermost_pbb_in): New.
23571         (add_in_sequence): New.
23572         (add_outer_projection): New.
23573         (outer_projection_mupa): New.
23574         (add_loop_schedule): New.
23575         (build_schedule_pbb): New.
23576         (build_schedule_loop): New.
23577         (embed_in_surrounding_loops): New.
23578         (build_schedule_loop_nest): New.
23579         (build_original_schedule): New.
23580         (build_poly_scop): Call build_original_schedule.
23581         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
23582         (free_poly_dr): Remove.
23583         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
23584         (free_poly_bb): Remove.
23585         (debug_loop_vec): Remove.
23586         (print_isl_ast): Declare.
23587         (debug_isl_ast): Declare.
23588         (scop_do_interchange): Remove.
23589         (scop_do_strip_mine): Remove.
23590         (scop_do_block): Remove.
23591         (flatten_all_loops): Remove.
23592         (optimize_isl): Remove.
23593         (pbb_number_of_iterations_at_time): Remove.
23594         (debug_scop_pbb): Declare.
23595         (print_schedule_ast): Declare.
23596         (debug_schedule_ast): Declare.
23597         (struct scop): Remove schedule.  Add original_schedule,
23598         transformed_schedule.
23599         (free_gimple_poly_bb): Remove.
23600         (print_generated_program): Remove.
23601         (debug_generated_program): Remove.
23602         (unify_scattering_dimensions): Remove.
23603         * sese.c (print_edge): ... here.
23604         (print_sese): ... here.
23605         (debug_edge): ... here.
23606         (debug_sese): ... here.
23607         * sese.h (print_edge): Declare.
23608         (print_sese): Declare.
23609         (dump_edge): Declare.
23610         (dump_sese): Declare.
23612 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
23613             Sebastian Pop  <s.pop@samsung.com>
23615         * Makefile.in: Set ISLVER in site.exp.
23617 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
23619         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
23620         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
23621         through DECL_VALUE_EXPR for expansion.
23623 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23625         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
23626         the frame info after reload completed.
23628 2016-01-25  Jeff Law  <law@redhat.com>
23630         PR tree-optimization/69196
23631         PR tree-optimization/68398
23632         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
23633         tree-ssa-threadupdate.c.
23634         (determine_bb_domination_status): Prototype
23635         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
23636         (determine_bb_domination_status): No longer static.
23637         (valid_jump_thread_path): Remove code to detect characteristics
23638         of the jump thread path not associated with correctness.
23639         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
23640         Correct test for thread path length.  Count PHIs for real operands as
23641         statements that need to be copied.  Do not count ASSERT_EXPRs.
23642         Look at all the blocks in the thread path.  Compute and selectively
23643         filter thread paths based on threading through the latch, threading
23644         a multiway branch or crossing a multiway branch.
23646 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23648         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
23649         decl with __attribute__ ((unused)) annotation.
23651 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
23653         PR target/69421
23654         * tree-vect-stmts.c (vectorizable_condition): Check vectype
23655         of operands is compatible with a statement vectype.
23657 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
23659         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
23660         improve wording for mixed storage order support.
23662 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
23664         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
23665         (vcvt_u64_f64): Likewise.
23666         (vcvta_s64_f64): Likewise.
23667         (vcvta_u64_f64): Likewise.
23668         (vcvtm_s64_f64): Likewise.
23669         (vcvtm_u64_f64): Likewise.
23670         (vcvtn_s64_f64): Likewise.
23671         (vcvtn_u64_f64): Likewise.
23672         (vcvtp_s64_f64): Likewise.
23673         (vcvtp_u64_f64): Likewise.
23675 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
23677         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
23678         (arc_init): Check validity mll64 option.
23679         (arc_save_restore): Use double load/store instruction.
23680         (arc_expand_movmem): Likewise.
23681         (arc_split_move): Don't split if we have double load/store
23682         instructions. Returns a boolean.
23683         (arc_process_double_reg_moves): Change function to return boolean
23684         instead of a sequence of instructions.
23685         (arc_dwarf_register_span): New function.
23686         * config/arc/arc-protos.h (arc_split_move): Change prototype.
23687         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
23688         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
23689         (*movdf_insn): Likewise.
23690         * config/arc/arc.opt (mll64): New option.
23691         * config/arc/predicates.md (even_register_operand): New predicate.
23692         * doc/invoke.texi (ARC Options): Add mll64 documentation.
23694 2016-01-25  Richard Biener  <rguenther@suse.de>
23696         PR lto/69393
23697         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
23698         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
23699         DECL_NAMELESS.
23700         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
23702 2016-01-25  Richard Biener  <rguenther@suse.de>
23704         PR tree-optimization/69376
23705         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
23706         flag.
23707         (VN_INFO_ANTI_RANGE_P): New inline.
23708         (VN_INFO_RANGE_TYPE): Likewise.
23709         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
23710         SSA_NAME_ANTI_RANGE_P.
23711         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
23712         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23713         Properly query VN_INFO_RANGE_TYPE.
23715 2016-01-25  Nick Clifton  <nickc@redhat.com>
23717         PR target/66655
23718         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
23720 2016-01-23  Tom de Vries  <tom@codesourcery.com>
23722         PR tree-optimization/69426
23723         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
23724         removed clobber.
23726 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
23728         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
23729         "the the" with "the" in the comments.
23730         * ipa-devirt.c (build_type_inheritance_graph,
23731         update_type_inheritance_graph): Likewise.
23732         * tree.c (build_function_type_list_1): Likewise.
23733         * cfgloopmanip.c (scale_loop_profile): Likewise.
23734         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
23735         * gimple-ssa-split-paths.c
23736         (find_block_to_duplicate_for_splitting_paths): Likewise.
23737         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
23738         * expr.c (convert_move): Likewise.
23739         * var-tracking.c (vt_stack_adjustments): Likewise.
23740         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
23741         * tree-vrp.c (test_for_singularity): Likewise.
23743         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
23744         directly instead of building a temporary tree.
23746         PR bootstrap/69434
23747         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
23748         remove <algorithm> include.
23750 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
23752         PR target/69432
23753         * config/i386/i386.c: Include dojump.h.
23754         (expand_small_movmem_or_setmem,
23755         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
23756         fixes.
23757         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
23758         if dynamic_check != -1.
23760 2016-01-21  Jeff Law  <law@redhat.com>
23762         PR middle-end/69347
23763         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
23764         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
23765         into dominated_by_p.
23766         (cprop_into_successor_phis): Avoid unnecessary tests.
23768 2016-01-22  Richard Henderson  <rth@redhat.com>
23770         PR target/69416
23771         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
23772         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
23774 2016-01-22  Michael Matz  <matz@suse.de>
23776         * system.h (string, algorithm): Include only conditionally.
23777         (new): Include always under C++.
23778         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
23779         * final.c (toplevel): Ditto.
23780         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
23781         * genconditions.c (write_header): Make gencondmd.c define
23782         INCLUDE_STRING.
23783         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
23785         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
23786         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
23788 2016-01-22  Christian Bruel  <christian.bruel@st.com>
23790         PR target/68674
23791         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
23793 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23795         PR target/69403
23796         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
23797         define_insn_and_split.  Ensure operands[1] and operands[0] do not
23798         get assigned the same register.
23800 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23802         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
23804 2016-01-22  Christian Bruel  <christian.bruel@st.com>
23806         * config/arm/arm-c.c (arm_pragma_target_parse):
23807         Remove warn_builtin_macro_redefined overwrite.
23809 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23811         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
23812         flag_non_call_exceptions compatibility.
23814 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
23816         PR debug/66668
23817         * dwarf2out.c (add_child_die_after): New function.
23818         (dwarf_qual_info_t): New type.
23819         (dwarf_qual_info): New variable.
23820         (qualified_die_p): New function.
23821         (modified_type_die): For -fdebug-types-section, ensure
23822         canonical order of qualifiers.  Put qualified DIEs adjacent
23823         to the corresponding non-qualified type DIE and search there
23824         for existing qualified DIEs.
23826 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23828         * doc/extend.texi (scalar_storage_order type attribute): Document
23829         restriction on type punning and aliasing, and remove future tense.
23831 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
23833         PR target/69252
23834         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
23835         first stage.
23837 2016-01-21  Jeff Law  <law@redhat.com>
23839         PR middle-end/69347
23840         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
23841         useless call to record_temporary_equivalences.
23842         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
23843         allocate 10 slots in the bb_path vector and let it grow as needed.
23844         (fsm_find_control_statement_thread_paths): Similarly for the next_path
23845         vector.
23847 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23849         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
23850         Detangle.
23851         * configure: Regenerate.
23853 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
23855         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
23856         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
23858 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
23860         PR middle-end/66178
23861         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
23862         drop EXPAND_INITIALIZER.
23863         * rtl.h (contains_symbolic_reference_p): Declare.
23864         * rtlanal.c (contains_symbolic_reference_p): New function.
23865         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
23866         a subtraction into a NOT if symbolic constants are involved.
23868 2016-01-21  Anton Blanchard  <anton@samba.org>
23869             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23871         PR target/63354
23872         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
23873         #define.
23874         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
23875         function.
23877 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
23879         * config/microblaze/microblaze.c
23880         (get_branch_target): New.
23881         (insert_wic_for_ilb_runout): New.
23882         (insert_wic): New.
23883         (microblaze_machine_dependent_reorg): New.
23884         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
23885         * config/microblaze/microblaze.md
23886         (UNSPEC_IPREFETCH): Define.
23887         (iprefetch): New pattern
23888         * config/microblaze/microblaze.opt
23889         (mxl-prefetch): New flag.
23891 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
23893         * config/microblaze/microblaze.h
23894         (FIXED_REGISTERS): Update in macro.
23895         (CALL_USED_REGISTERS): Update in macro.
23897 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
23899         PR rtl-optimization/68920
23900         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
23901         moves.
23903 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
23905         PR rtl-optimization/68990
23906         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
23907         pseudo instead of inheritance ones.
23909 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23910             Nick Clifton  <nickc@redhat.com>
23912         PR target/69129
23913         PR target/69012
23914         * config/mips/mips.c (mips_compute_frame_info): Initialise
23915         args_size and hard_frame_pointer_offset fields of the frame
23916         structure before calling mips_global_pointer.
23918 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23920         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
23921         label reference.
23922         * configure: Regenerate.
23924 2016-01-21  Richard Biener  <rguenther@suse.de>
23926         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
23928 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23930         * config/s390/s390.c (s390_asm_declare_function_size): Add code
23931         to actually emit the .size directive.
23933 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
23934              Jakub Jelinek  <jakub@redhat.com>
23936         PR target/69187
23937         PR target/65624
23938         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
23939         args array size by one to avoid buffer overflow.
23941 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23943         * config/s390/s390.md (pool_section_start): Use switch_to_section
23944         to select proper read-only data section instead of hardcoding
23945         .rodata.
23946         (pool_section_end): Use switch_to_section to match the above.
23948 2016-01-21  Richard Biener  <rguenther@suse.de>
23950         PR tree-optimization/69378
23951         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
23952         (set_ssa_val_to): Use it for dominance checks taking into
23953         account not executable edges.
23955 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23957         PR c++/69355
23958         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
23959         for bitsize instead of GET_MODE_PRECISION (mode).
23961 2016-01-20  Martin Sebor  <msebor@redhat.com>
23963         PR c/52291
23964         * extend.texi (__sync Builtins): Clarify the semantics of
23965         __sync_fetch_and_OP built-ins on pointers.
23966         (__atomic Builtins): Same.
23968 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23969             Sebastian Pop  <s.pop@samsung.com>
23971         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
23972         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
23973         (is_valid_rename): Same.
23974         (translate_isl_ast_to_gimple::get_rename): Same.
23975         (translate_isl_ast_to_gimple::rename_all_uses): Same.
23976         (translate_isl_ast_to_gimple::rename_uses): Same.
23977         (get_new_name): Check for close_phi nodes.
23978         (copy_loop_phi_args): Use phi_node_kind.
23979         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
23980         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
23982 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23983             Sebastian Pop  <s.pop@samsung.com>
23985         Revert commit r229783.
23986         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
23987         Remove use of parameter_rename_map.
23988         (copy_def): Remove.
23989         (copy_internal_parameters): Remove.
23990         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
23991         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
23992         (free_sese_info): Do not free parameter_rename_map.
23993         (set_rename): Do not use parameter_rename_map.
23994         (rename_uses): Update call to set_rename.
23995         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
23996         * sese.h (parameter_rename_map_t): Remove.
23997         (struct sese_info_t): Remove field parameter_rename_map.
23999 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24000             Sebastian Pop  <s.pop@samsung.com>
24002         * graphite-isl-ast-to-gimple.c: Fix comment.
24003         * graphite-scop-detection.c (defined_in_loop_p): New.
24004         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
24005         names defined in loop.
24007 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24008             Sebastian Pop  <s.pop@samsung.com>
24010         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
24011         Discard unstructured if-then-else regions.
24013 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24014             Sebastian Pop  <s.pop@samsung.com>
24016         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
24017         (cleanup_loop_iter_dom): Remove.
24018         (build_loop_iteration_domains): Remove.
24019         (build_scop_context): Remove.
24020         (build_scop_iteration_domain): Remove.
24021         (add_loop_constraints): New.
24022         (build_iteration_domains): New.
24023         (build_poly_scop): Call build_iteration_domains.
24025 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24026             Sebastian Pop  <s.pop@samsung.com>
24028         * graphite-scop-detection.c
24029         (scop_detection::harmful_loop_in_region): Free dom and loops.
24030         (scop_detection::loop_body_is_valid_scop): Free bbs.
24032 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24033             Sebastian Pop  <s.pop@samsung.com>
24035         * graphite-scop-detection.c (record_loop_in_sese): New.
24036         (gather_bbs::before_dom_children): Call record_loop_in_sese.
24037         (build_scops): Remove call to build_sese_loop_nests.
24038         * sese.c (sese_record_loop): Remove.
24039         (build_sese_loop_nests): Remove.
24040         (new_sese_info): Remove region->loops.
24041         (free_sese_info): Same.
24042         * sese.h (sese_contains_loop): Same.
24043         (build_sese_loop_nests): Remove.
24044         (sese_contains_loop): Remove.
24046 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24047             Sebastian Pop  <s.pop@samsung.com>
24049         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
24050         loop_is_valid_in_scop.
24051         (scop_detection::harmful_stmt_in_region): Renamed
24052         harmful_loop_in_region.
24053         Call loop_is_valid_in_scop.
24055 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24056             Sebastian Pop  <s.pop@samsung.com>
24058         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
24059         isl_ast_node_mark.
24061 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24062             Sebastian Pop  <s.pop@samsung.com>
24064         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
24065         * graphite.h (struct poly_bb): Remove field is_reduction.
24066         (PBB_IS_REDUCTION): Remove.
24068 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
24069             Sebastian Pop  <s.pop@samsung.com>
24071         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
24072         (add_pdr_constraints): Same.
24073         (scop_get_reads): Same.
24074         (scop_get_must_writes): Same.
24075         (scop_get_may_writes): Same.
24076         (scop_get_original_schedule): Same.
24077         (extend_schedule): Same.
24078         (apply_schedule_on_deps): Same.
24079         (carries_deps): Same.
24080         (compute_deps): Same.
24081         (scop_get_dependences): Same.
24082         * graphite-isl-ast-to-gimple.c
24083         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
24084         * graphite-optimize-isl.c (get_schedule_for_band): Same.
24085         (get_schedule_for_band_list): Same.
24086         (get_schedule_map): Same.
24087         (apply_schedule_map_to_scop): Same.
24088         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
24089         (build_loop_iteration_domains): Same.
24090         (add_condition_to_pbb): Same.
24091         (add_param_constraints): Same.
24092         (pdr_add_memory_accesses): Same.
24093         (pdr_add_data_dimensions): Same.
24095 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
24097         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
24098         requirements.
24100 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
24102         * common.opt (feliminate-dwarf2-dups): Replace references to
24103         "DWARF 2" with just "DWARF".
24104         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
24105         * doc/extend.texi: Likewise.
24106         * doc/cpp.texi: Likewise.
24107         * doc/invoke.texi: Likewise.
24108         (Option Summary): Add -gdwarf to list of Debugging Options.
24109         (Debugging Options): Document -gdwarf.
24110         * doc/contrib.texi: Spell "DWARF" like that.
24112 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
24114         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
24115         warning.  Fix up formatting.
24117         PR middle-end/67653
24118         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
24119         attempt to mark memory input operand addressable and
24120         call prepare_gimple_addressable in that case.  Don't adjust
24121         input_location for diagnostics, use error_at instead.
24123 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
24125         * config/rs6000/ppc-auxv.h: New file.
24126         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24127         (cpu_is): Likewise.
24128         (cpu_supports): Likewise.
24129         * config/rs6000/rs6000.c: include "ppc-auxv.h".
24130         (cpu_is_info): New variable.
24131         (cpu_supports_info): Likewise.
24132         (tcb_verification_symbol): Likewise.
24133         (cpu_builtin_p): Likewise.
24134         (cpu_expand_builtin): New function.
24135         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24136         (rs6000_init_builtins): Likewise.
24137         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24138         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24139         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24140         * configure: Regenerate.
24141         * config.in: Likewise.
24142         * doc/extend.texi (PowerPC Built-in Functions): Document
24143         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24145 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
24147         PR target/68609
24148         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24149         domain check.
24150         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24151         for V4SFmode.
24153 2016-01-20  Richard Henderson  <rth@redhat.com>
24155         PR bootstrap/69343
24156         PR bootstrap/69339
24157         PR tree-opt/68964
24158         Revert:
24159         * tree.c (tm_define_builtin): New.
24160         (find_tm_vector_type): New.
24161         (build_tm_vector_builtins): New.
24162         (build_common_builtin_nodes): Call it.
24164 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
24166         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24167         (arm_fp_ok): Likewise.
24168         (arm_fp): Likewise.
24169         (arm_crypto): Likewise.
24171 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24172             Richard Biener  <rguenther@suse.de>
24174         PR tree-optimization/69328
24175         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24176         vectors have same number of elements.
24177         (vectorizable_condition): Fix masked version recognition.
24179 2016-01-20  Richard Biener  <rguenther@suse.de>
24181         PR tree-optimization/69345
24182         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24183         (VN_INFO_PTR_INFO): Likewise.
24184         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24185         info when it is equal between non-dominating SSA names.
24186         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24187         Make sure to look at original SSA infos.
24189 2016-01-20  Jeff Law  <law@redhat.com>
24191         PR target/25114
24192         * config/m68k/predicates.md (pow2_m1_operand): New predicate
24193         extracted from ...
24194         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24195         (pc_or_label_operand): New predicate.
24196         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24197         tests for small integers that are 2^n - 1.
24199 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
24201         * doc/invoke.texi (Options Summary): Add '.' after @xref.
24203 2016-01-19  Jeff Law  <law@redhat.com>
24205         PR middle-end/69347
24206         * tree-ssa-threadbackwards.c
24207         (fsm_find_control_statement_thread_paths): Do not try to lookup
24208         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24210 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24212         * doc/lto.texi: Remove text that says only Gold has linker plugin
24213         support.
24215 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
24217         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24218         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24219         the DIE accordingly.
24220         (modified_type_die): Add REVERSE parameter and pass it recursively,
24221         as well as to base_type_die.  Adjust presence check accordingly.
24222         (base_type_for_mode): Adjust call to modified_type_die.
24223         (add_type_attribute): Add REVERSE parameter and pass it to
24224         modified_type_die.
24225         (generic_parameter_die): Adjust call to add_type_attribute.
24226         (add_scalar_info): Likewise.
24227         (add_subscript_info): Likewise.
24228         (gen_array_type_die): Likewise.
24229         (gen_descr_array_type_die): Likewise.
24230         (gen_entry_point_die): Likewise.
24231         (gen_enumeration_type_die): Likewise.
24232         (gen_formal_parameter_die): Likewise.
24233         (gen_subprogram_die): Likewise.
24234         (gen_variable_die ): Likewise.
24235         (gen_const_die): Likewise.
24236         (gen_field_die): Likewise.
24237         (gen_pointer_type_die): Likewise.
24238         (gen_reference_type_die): Likewise.
24239         (gen_ptr_to_mbr_type_die): Likewise.
24240         (gen_inheritance_die): Likewise.
24241         (gen_subroutine_type_die): Likewise.
24242         (gen_typedef_die): Likewise.
24243         (force_type_die): Adjust call to modified_type_die.
24245 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
24247         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24248         flow throughout the file.  Fix broken link to Objective-C 2.0
24249         documentation.
24250         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24251         errors.
24253 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24255         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24257 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24259         PR ipa/66223
24260         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24261         (maybe_record_node): Record cxa_pure_virtual as the only possible
24262         target if there are not ohter candidates.
24263         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24265 2016-01-19  Richard Biener  <rguenther@suse.de>
24267         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24268         (get_memory_order): Likewise.
24270 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24272         * tree-vect-stmts.c (vectorizable_store): Check
24273         rhs vectype.
24275 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
24277         PR jit/68446
24278         * gcc.c (driver::decode_argv): Add call to
24279         init_opts_obstack before init_options_struct.
24280         * opts.c (init_opts_obstack): Remove idempotency.
24281         (init_options_struct): Replace call to init_opts_obstack
24282         with a gcc_assert to verify that it has already been called.
24283         * toplev.c (toplev::main): Add call to init_opts_obstack before
24284         calls to init_options_struct.
24285         (toplev::finalize): Move cleanup of opts_obstack next to
24286         cleanup of save_decoded_options, clearing the latter, and
24287         save_decoded_options_count.
24289 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24291         PR target/69135
24292         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24293         attribute to unconditional.  Remove %? from output template.
24295 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24296             Jiong Wang  <jiong.wang@arm.com>
24298         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24299         generated from different expand order.
24301 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24303         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24304         Add support for CCMP costing.
24306 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24308         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24309         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24310         (fccmpe<mode>): Likewise.
24311         (fcmp): Rename to fcmp and globalize pattern.
24312         (fcmpe): Likewise.
24313         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24314         (aarch64_gen_ccmp_next): Add FP support.
24316 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24318         * target.def (gen_ccmp_first): Update documentation.
24319         (gen_ccmp_next): Likewise.
24320         * doc/tm.texi (gen_ccmp_first): Update documentation.
24321         (gen_ccmp_next): Likewise.
24322         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24323         expand_ccmp_expr_1.  Improve comments.
24324         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24325         (ccmp_ior<mode>): Remove pattern.
24326         (cmp<mode>): Remove expand.
24327         (cmp): Globalize pattern.
24328         (cstorecc4): Use cc_register.
24329         (mov<mode>cc): Remove ccmp_cc_register check.
24330         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24331         Simplify after removal of CC_DNE/* modes.
24332         (aarch64_ccmp_mode_to_code): Remove.
24333         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
24334         In 'k' case use integer as condition.
24335         (aarch64_nzcv_codes): Remove inverted cases.
24336         (aarch64_code_to_ccmode): Remove.
24337         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
24338         comparison with CC register to be used in folowing CCMP/branch/CSEL.
24339         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24340         pattern.  Return the comparison with CC register.  Invert conditions
24341         when bitcode is OR.
24342         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24343         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24345 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24347         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24348         instrumented_version.
24350 2016-01-19  Richard Biener  <rguenther@suse.de>
24352         PR tree-optimization/69336
24353         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24354         handled components with get_ref_base_and_extent.
24355         (equal_mem_array_ref_p): Adjust.
24357 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24359         PR debug/65779
24360         * shrink-wrap.c: Include valtrack.h.
24361         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
24362         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24363         in between insn and where it will be moved to.  Call
24364         dead_debug_insert_temp.
24365         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
24366         first and dead_debug_local_finish at the end.
24367         For uses and defs bitmap, handle all regs in between REGNO and
24368         END_REGNO, not just the first one.
24370 2016-01-19  Richard Biener  <rguenther@suse.de>
24372         PR tree-optimization/69352
24373         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24374         (equal_mem_array_ref_p): Constrain size and max size properly.
24375         Compare the reverse flag.
24377 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
24379         * ira.c (ira): Update regstat data if we deleted insns.
24381 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24383         PR rtl-optimization/68955
24384         PR rtl-optimization/64557
24385         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24386         here.  Fix up formatting.
24387         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24389 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24391         PR lto/69133
24392         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24393         assume that the node has body.
24394         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24395         check.
24397 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24399         * lto-streamer-out.c (lto_output): Do not stream instrumentation
24400         thunks.
24402 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24404         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24405         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24407 2016-01-19  Martin Jambor  <mjambor@suse.cz>
24408             Martin Liska  <mliska@suse.cz>
24409             Michael Matz  <matz@suse.de>
24411         * Makefile.in (OBJS): Add new source files.
24412         (GTFILES): Add hsa.c.
24413         * common.opt (disable_hsa): New variable.
24414         (-Whsa): New warning.
24415         * config.in (ENABLE_HSA): New.
24416         * configure.ac: Treat hsa differently from other accelerators.
24417         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24418         $enable_offloading.
24419         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24420         * doc/install.texi (Configuration): Document --with-hsa-runtime,
24421         --with-hsa-runtime-include, --with-hsa-runtime-lib and
24422         --with-hsa-kmt-lib.
24423         * doc/invoke.texi (-Whsa): Document.
24424         (hsa-gen-debug-stores): Likewise.
24425         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24426         to invoke offload compiler for hsa acclerator.
24427         * opts.c (common_handle_option): Determine whether HSA offloading
24428         should be performed.
24429         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24430         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24431         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24432         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24433         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24434         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24435         GF_OMP_FOR_KIND_GRID_LOOP.
24436         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24437         (pp_gimple_stmt_1): Likewise.
24438         * gimple-walk.c (walk_gimple_stmt): Likewise.
24439         * gimple.c (gimple_build_omp_grid_body): New function.
24440         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
24441         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
24442         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
24443         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
24444         GF_OMP_TEAMS_GRID_PHONY.
24445         (gimple_statement_omp_single_layout): Updated comments.
24446         (gimple_build_omp_grid_body): New function.
24447         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
24448         (gimple_omp_for_grid_phony): New function.
24449         (gimple_omp_for_set_grid_phony): Likewise.
24450         (gimple_omp_parallel_grid_phony): Likewise.
24451         (gimple_omp_parallel_set_grid_phony): Likewise.
24452         (gimple_omp_teams_grid_phony): Likewise.
24453         (gimple_omp_teams_set_grid_phony): Likewise.
24454         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
24455         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
24456         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
24457         (BUILT_IN_GOMP_TARGET): Updated type.
24458         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
24459         (adjust_for_condition): New function.
24460         (get_omp_for_step_from_incr): Likewise.
24461         (extract_omp_for_data): Moved parts to adjust_for_condition and
24462         get_omp_for_step_from_incr.
24463         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
24464         (fixup_child_record_type): Bail out if receiver_decl is NULL.
24465         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
24466         (scan_omp_parallel): Do not create child functions for phony
24467         constructs.
24468         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
24469         (scan_omp_1_op): Checking assert we are not remapping to
24470         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
24471         (parallel_needs_hsa_kernel_p): New function.
24472         (expand_parallel_call): Register apprpriate parallel child
24473         functions as HSA kernels.
24474         (grid_launch_attributes_trees): New type.
24475         (grid_attr_trees): New variable.
24476         (grid_create_kernel_launch_attr_types): New function.
24477         (grid_insert_store_range_dim): Likewise.
24478         (grid_get_kernel_launch_attributes): Likewise.
24479         (get_target_argument_identifier_1): Likewise.
24480         (get_target_argument_identifier): Likewise.
24481         (get_target_argument_value): Likewise.
24482         (push_target_argument_according_to_value): Likewise.
24483         (get_target_arguments): Likewise.
24484         (expand_omp_target): Call get_target_arguments instead of looking
24485         up for teams and thread limit.
24486         (grid_expand_omp_for_loop): New function.
24487         (grid_arg_decl_map): New type.
24488         (grid_remap_kernel_arg_accesses): New function.
24489         (grid_expand_target_kernel_body): New function.
24490         (expand_omp): Call it.
24491         (lower_omp_for): Do not emit phony constructs.
24492         (lower_omp_taskreg): Do not emit phony constructs but create for them
24493         a temporary variable receiver_decl.
24494         (lower_omp_taskreg): Do not emit phony constructs.
24495         (lower_omp_teams): Likewise.
24496         (lower_omp_grid_body): New function.
24497         (lower_omp_1): Call it.
24498         (grid_reg_assignment_to_local_var_p): New function.
24499         (grid_seq_only_contains_local_assignments): Likewise.
24500         (grid_find_single_omp_among_assignments_1): Likewise.
24501         (grid_find_single_omp_among_assignments): Likewise.
24502         (grid_find_ungridifiable_statement): Likewise.
24503         (grid_target_follows_gridifiable_pattern): Likewise.
24504         (grid_remap_prebody_decls): Likewise.
24505         (grid_copy_leading_local_assignments): Likewise.
24506         (grid_process_kernel_body_copy): Likewise.
24507         (grid_attempt_target_gridification): Likewise.
24508         (grid_gridify_all_targets_stmt): Likewise.
24509         (grid_gridify_all_targets): Likewise.
24510         (execute_lower_omp): Call grid_gridify_all_targets.
24511         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
24512         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
24513         (tree_omp_clause): Added union field dimension.
24514         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
24515         * tree.c (omp_clause_num_ops): Added number of arguments of
24516         OMP_CLAUSE__GRIDDIM_.
24517         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
24518         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
24519         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
24520         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
24521         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
24522         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
24523         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
24524         * tree-pass.h (make_pass_gen_hsail): Declare.
24525         (make_pass_ipa_hsa): Likewise.
24526         * ipa-hsa.c: New file.
24527         * lto-section-in.c (lto_section_name): Add hsa section name.
24528         * lto-streamer.h (lto_section_type): Add hsa section.
24529         * timevar.def (TV_IPA_HSA): New.
24530         * hsa-brig-format.h: New file.
24531         * hsa-brig.c: New file.
24532         * hsa-dump.c: Likewise.
24533         * hsa-gen.c: Likewise.
24534         * hsa.c: Likewise.
24535         * hsa.h: Likewise.
24536         * toplev.c (compile_file): Call hsa_output_brig.
24537         * hsa-regalloc.c: New file.
24539 2016-01-18  Jeff Law  <law@redhat.com>
24541         PR tree-optimization/69320
24542         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
24543         ranged object, do nothing if the RHS constant is not [0..1].
24544         (optimize_stmt): Comparing a boolean ranged object against a
24545         constant outside [0..1] results in a compile-time constant.
24547         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
24548         test.
24550 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24552         * doc/invoke.texi (Invoking GCC): Add new section to menu.
24553         (Option Summary): Update to reflect new section and moved options.
24554         (C++ Dialect Options): Move -fstats to new section.
24555         (Debugging Options): Move all dump, statistics, and other GCC
24556         developer options to new section.  Rewrite section introduction
24557         and re-order remaining options to put the more basic ones first.
24558         (Optimization Options): Move -fira-verbose and -flto-report* to
24559         new section.
24560         (Developer Options): New section incorporating moved options.
24561         * doc/cppopts.texi (-dM): Update cross-reference.
24563 2016-01-18  Richard Henderson  <rth@redhat.com>
24565         PR target/69176
24566         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
24567         operands to pseudo only if CSE is expected.  Split long immediate
24568         operands only after reload, and for the stack pointer.
24569         (*add<GPI>3_pluslong): Remove.
24570         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
24571         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
24572         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
24573         (*add<GPI>3 peepholes): New.
24574         (*add<GPI>3 splitters): New.
24575         * config/aarch64/constraints.md (Upl): New.
24576         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
24578 2016-01-18  Richard Biener  <rguenther@suse.de>
24580         PR tree-optimization/69297
24581         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
24582         stmt at most once.
24583         (vect_bb_vectorization_profitable_p): Clear visited flag again.
24585 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
24587         PR middle-end/68542
24588         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
24589         of mixind vector and scalar types.
24590         (fold_relational_const): Add handling of vector
24591         comparison with boolean result.
24592         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
24593         comparison of vector operands with boolean result for EQ/NE only.
24594         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
24595         (verify_gimple_cond): Likewise.
24596         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
24597         valid type of VAL.
24599 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
24601         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
24602         !TARGET_OCTEON.
24604 2016-01-18  Richard Biener  <rguenther@suse.de>
24606         PR middle-end/69308
24607         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
24609 2016-01-18  Tom de Vries  <tom@codesourcery.com>
24611         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
24613 2016-01-18  Tom de Vries  <tom@codesourcery.com>
24615         * omp-low.c (set_oacc_fn_attrib): Make extern.
24616         * omp-low.h (set_oacc_fn_attrib): Declare.
24617         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
24618         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
24619         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
24620         Add and handle function parameter oacc_kernels_p.
24621         (find_reduc_addr, get_omp_data_i_param): New function.
24622         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
24623         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
24624         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
24625         Calculate dominance info.  Skip loops that are not in a kernels region
24626         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
24627         (pass_parallelize_loops::execute): Call parallelize_loops with
24628         oacc_kernels_p argument.
24629         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
24630         New member function.
24631         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
24632         * passes.def: Add argument to pass_parallelize_loops instantation.
24634 2016-01-18  Tom de Vries  <tom@codesourcery.com>
24636         * tree-parloops.c (pass_parallelize_loops::execute): Allow
24637         pass_parallelize_loops to be run outside the loop pipeline.
24639 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
24641         * tree-scalar-evolution.c (follow_copies_to_constant): New.
24642         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
24644 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
24646         PR target/63679
24647         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
24648         using get_ref_base_and_extent.
24649         (equal_mem_array_ref_p): New.
24650         (hashable_expr_equal_p): Add call to previous.
24652 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
24654         PR target/63679
24655         * tree-sra.c (disqualified_constants, constant_decl_p): New.
24656         (sra_initialize): Allocate disqualified_constants.
24657         (sra_deinitialize): Free disqualified_constants.
24658         (disqualify_candidate): Update disqualified_constants when appropriate.
24659         (create_access): Scan for constant-pool entries as we go along.
24660         (scalarizable_type_p): Add check against type_contains_placeholder_p.
24661         (maybe_add_sra_candidate): Allow constant-pool entries.
24662         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
24663         (initialize_constant_pool_replacements): New.
24664         (sra_modify_assign): Avoid mangling assignments created by previous,
24665         and don't generate writes into constant pool.
24666         (sra_modify_function_body): Call initialize_constant_pool_replacements.
24668 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24670         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
24671         andnot instruction.
24672         (scalar_chain::convert_op): Likewise.
24673         * config/i386/i386.md (*andndi3_doubleword): New.
24675 2016-01-18  Richard Biener  <rguenther@suse.de>
24677         PR tree-optimization/69170
24678         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
24679         building a vector from scalar results of a pattern stmt.
24681 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
24683         * haifa-sched.c (autopref_multipass_init): Work around
24684         -Wmaybe-uninitialized warning.
24686 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24688         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
24689         against the constant 0.
24691 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24693         PR tree-optimization/68799
24694         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
24695         look up phi candidates in the statement-candidate map.
24696         (phi_add_costs): Likewise.
24697         (record_phi_increments): Likewise.
24698         (phi_incr_cost): Likewise.
24699         (ncd_with_phi): Likewise.
24700         (all_phi_incrs_profitable): Likewise.
24702 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
24704         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
24705         -Wmaybe-uninitialized warning.
24707 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
24709         * doc/invoke.texi (Invoking GCC): Add new section to menu.
24710         (Option Summary): Update to reflect new section and moved options.
24711         (C++ Dialect Options): Move -fvtable-verify and related options.
24712         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
24713         and profiling-related options.
24714         (Optimization Options): Move profile generation options and
24715         -fstack-protector and related options.
24716         (Instrumentation Options): New section incorporating moved options.
24717         (Code Generation Options): Move -finstrument-functions and
24718         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
24720 2016-01-16  Tom de Vries  <tom@codesourcery.com>
24722         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
24724 2016-01-16  Tom de Vries  <tom@codesourcery.com>
24726         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
24728 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
24730         * hash-table.h (hash_table::empty): Turn into an inline wrapper
24731         that checks whether the table is already empty.  Rename the
24732         original implementation to...
24733         (hash_table::empty_slot): ...this new private function.
24735 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
24737         PR diagnostic/68899
24738         * diagnostic-show-locus.c (layout::print_source_line): Move x
24739         offset of line until after call to
24740         get_line_width_without_trailing_whitespace.
24742 2016-01-15  Jeff Law  <law@redhat.com>
24744         PR tree-optimization/69270
24745         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
24746         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
24747         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
24748         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
24749         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24750         ssa_name_has_boolean_range and constant_boolean_node.
24752 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
24754         PR rtl-optimization/69030
24755         * lra-spills.c (remove_pseudos): Check nrefs and make the function
24756         returning bool.
24757         (spill_pseudos): Delete debug insn for dead pseudo.
24758         (lra_spill): Initiate spill_hard_reg and slots memory separately.
24760 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
24762         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
24763         New.
24764         (TYPES_UNOPUS): Likewise.
24765         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
24766         builtin type, from UNOP to UNOPUS.
24767         (lbtruncuv4sf): Likewise.
24768         (lbtruncuv2df): Likewise.
24769         (lrounduv2sf): Likewise.
24770         (lrounduv4sf): Likewise.
24771         (lrounduv2df): Likewise.
24772         (lroundusf): Likewise.
24773         (lroundusf): Likewise.
24774         (lceiluv2sf): Likewise.
24775         (lceiluv4sf): Likewise.
24776         (lceiluv2df): Likewise.
24777         (lceilusf): Likewise.
24778         (lceiludf): Likewise.
24779         (lflooruv2sf): Likewise.
24780         (lflooruv4sf): Likewise.
24781         (lflooruv2df): Likewise.
24782         (lfloorusf): Likewise.
24783         (lfloorudf): Likewise.
24784         (lfrintnuv2sf): Likewise.
24785         (lfrintnuv4sf): Likewise.
24786         (lfrintnuv2df): Likewise.
24787         (lfrintnusf): Likewise.
24788         (lfrintnudf): Likewise.
24789         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
24790         conversion.
24791         (vcvtq_u32_f32): Likewise.
24792         (vcvtq_u64_f64): Likewise.
24793         (vcvta_u32_f32): Likewise.
24794         (vcvtaq_u32_f32): Likewise.
24795         (vcvtaq_u64_f64): Likewise.
24796         (vcvtm_u32_f32): Likewise.
24797         (vcvtmq_u32_f32): Likewise.
24798         (vcvtmq_u64_f64): Likewise.
24799         (vcvtn_u32_f32): Likwise.
24800         (vcvtnq_u32_f32): Likewise.
24801         (vcvtnq_u64_f64): Likewise.
24802         (vcvtp_u32_f32): Likewise.
24803         (vcvtpq_u32_f32): Likewise.
24804         (vcvtpq_u64_f64): Likewise.
24805         (vcvtmd_u64_f64): Likewise.
24806         (vcvtms_u32_f32): Likewise.
24807         (vcvtad_u64_f64): Likewise.
24808         (vcvtas_u32_f32): Likewise.
24809         (vcvtnd_u64_f64): Likewise.
24810         (vcvtns_u32_f32): Likewise.
24811         (vcvtpd_u64_f64): Likewise.
24812         (vcvtps_u32_f32): Likewise.
24814 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24816         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
24817         CSEL of zero_extended registers.
24819 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24821         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24822         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
24824 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24826         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
24827         false when argument string is not found in the attributes table
24828         at all.
24830 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
24832         PR target/68609
24833         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
24834         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
24835         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
24836         precision estimate.
24838 2016-01-15  Richard Biener  <rguenther@suse.de>
24840         PR tree-optimization/66856
24841         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
24842         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
24843         (vect_create_new_slp_node): Increment stmt reference count.
24844         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
24845         an SLP tree before swapping operands.
24846         (vect_build_slp_tree): Likewise.
24847         (destroy_bb_vec_info): Free stmt info after SLP instances.
24848         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
24849         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
24850         (STMT_VINFO_NUM_SLP_USES): New macro.
24852 2016-01-15  Richard Biener  <rguenther@suse.de>
24854         PR debug/69137
24855         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
24856         (add_linkage_name): ... here.
24857         (gen_typedef_die): Use add_linkage_name_raw instead of
24858         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
24859         if necessary.
24861 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
24863         * gimplify.c (oacc_default_clause): Decode reference and pointer
24864         types for both kernels and parallel regions.
24866 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
24868         PR middle-end/69246
24869         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
24871 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24873         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
24874         (convert_scalars_to_vector): Likewise.
24876 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
24878         * doc/extend.texi (Type Traits): Fix grammar.
24880 2016-01-15  Martin Jambor  <mjambor@suse.cz>
24882         * tree-inline.c (remap_decl): Use existing dclarations if
24883         remapping a type and prevent_decl_creation_for_types.
24884         (replace_locals_stmt): Do an initial remapping of non-VLA typed
24885         decls first.  Do real remapping with
24886         prevent_decl_creation_for_types set.
24887         * tree-inline.h (copy_body_data): New field
24888         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
24889         padding.
24891 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24893         * config/s390/s390.opt (mmvcle): More verbose help text.
24895 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24897         * config/s390/s390.opt: Add period to -mzvector option text.
24899 2016-01-15  Richard Biener  <rguenther@suse.de>
24901         PR tree-optimization/68961
24902         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
24903         of invariants in stores again.
24905 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24907         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
24909 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24911         * config/i386/i386.c (ix86_expand_branch): Don't split
24912         DI mode xor instruction to SI mode.
24914 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24916         PR ipa/68148
24917         * ipa-icf.c (sem_function::merge): Virtual functions may become
24918         reachable even if they address is not taken and there are no
24919         idrect calls.
24921 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24923         * lto-streamer-out.c (subtract_estimated_size): New function.
24924         (get_symbol_initial_value): Use it.
24926 2016-01-15  Christian Bruel  <christian.bruel@st.com>
24928         PR target/65837
24929         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
24930         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
24931         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
24932         use add_builtin_function_ext_scope instead of add_builtin_function.
24933         (neon_set_p, neon_crypto_set_p): Remove.
24934         (arm_init_builtins): Always call arm_init_neon_builtins and
24935         arm_init_crypto_builtins.
24936         (arm_expand_builtin): Check that builtins are allowed for the arch.
24937         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
24938         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
24939         arm_init_neon_builtins call.
24941 2016-01-15  Richard Biener  <rguenther@suse.de>
24943         PR tree-optimization/69117
24944         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
24945         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
24946         of the leader conservatively.
24947         (free_scc_vn): Restore original SSA name infos.
24949 2016-01-14  Jeff Law  <law@redhat.com>
24951         PR tree-optimization/69270
24952         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
24953         single bit of precision, verify it's also unsigned.
24954         (record_edge_info): Use constant_boolean_node rather than fold_convert
24955         to convert boolean_true/boolean_false to the right type.
24957 2016-01-14  Richard Henderson  <rth@redhat.com>
24959         PR rtl-opt/69014
24960         * loop-doloop.c (record_reg_sets): New.
24961         (doloop_optimize): Reject the transform if the sequence
24962         clobbers registers live at the end of the loop block.
24963         (doloop_optimize_loops): Enable df_live if needed.
24965 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24967         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
24968         * config/rs6000/rs6000.c: Likewise.
24969         * config/rs6000/rs6000.h: Likewise.
24970         * config/rs6000/rs6000.md: Likewise.
24971         * doc/extend.texi: Likewsie.
24973 2016-01-14  Jeff Law  <law@redhat.com>
24975         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
24976         typo.
24978 2016-01-14  Richard Henderson  <rth@redhat.com>
24980         PR c/69272
24981         PR tree-opt/68964
24982         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
24983         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
24984         instead of builtin_decl_declared_p to test for declaration.
24986 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
24988         * doc/loop.texi (Loop Analysis and Representation): Document
24989         loop_depth function.
24991 2016-01-14  Tom de Vries  <tom@codesourcery.com>
24993         PR tree-optimization/68773
24994         * omp-low.c (expand_omp_target): Don't set force_output.
24995         * varpool.c (varpool_node::get_create): Same.
24996         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
24997         offload_funcs with force_output.
24999 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25001         PR debug/69244
25002         * lra-eliminations.c (move_plus_up): Don't change anything if either
25003         the outer or inner subreg mode is not MODE_INT.
25004         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
25005         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
25007 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
25009         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
25010         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
25011         reduc_uplus_@var{m}): Remove.
25012         * expr.c (expand_expr_real_2): Remove expansion path for
25013         reduc_[us](min|max|plus) optabs.
25014         * optabs-tree.c (scalar_reduc_to_vector): Remove.
25015         * optabs-tree.h (scalar_reduc_to_vector): Remove.
25016         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
25017         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
25018         * tree-vect-loop.c (vectorizable_reduction): Remove test for
25019         reduc_[us](min|max|plus) optabs.
25021 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
25023         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
25024         (reduc_plus_scal_v2sf): New.
25025         (reduc_smax_v2sf): Rename to...
25026         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
25027         (reduc_smin_v2sf): Rename to...
25028         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
25030 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
25032         * alias.c (compare_base_symbol_refs): New function.
25033         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
25034         it.
25036 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25038         PR middle-end/68146
25039         PR tree-optimization/69155
25040         * tree-complex.c: Include cfganal.h.
25041         (phis_to_revisit): New variable.
25042         (extract_component): Add phiarg_p argument.  Assert that returned
25043         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
25044         (update_phi_components): Partly rewrite to use loop over real/imag
25045         components instead of code duplication.  If extract_component returns
25046         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
25047         create_tmp_reg into the PHI node instead, and mention the phi triplet
25048         in phis_to_revisit.
25049         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
25050         in phis_to_revisit at the end.
25052 2016-01-14  Richard Biener  <rguenther@suse.de>
25054         PR tree-optimization/68060
25055         * tree-vect-loop.c (vect_is_simple_reduction): Check the
25056         outer loop reduction is only used in the inner loop before
25057         detecting a double reduction.
25059 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
25061         PR target/68269
25062         * combine.c (expand_field_assignment): Punt if compute_mode is
25063         unsupported scalar mode.
25065 2016-01-14  Richard Biener  <rguenther@suse.de>
25067         PR tree-optimization/66856
25068         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
25069         SLP node only if it built successfully.
25070         (vect_analyze_slp_instance): Adjust.
25072 2016-01-14  Jeff Law  <law@redhat.com>
25074         PR tree-optimization/69270
25075         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
25076         (record_edge_info): Use it.  Convert boolean_{true,false}_node
25077         to the type of op0.
25079 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
25081         PR ipa/66487
25082         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
25083         use block_ultimate_origin
25084         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
25086 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
25088         * doc/invoke.texi (Submodel Options): Rename section to
25089         "Machine-Dependent Options" to better reflect its content.
25090         Rewrite introductory text to remove archaic CPU names.
25091         Update references.
25093 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
25095         * doc/invoke.texi (Code Gen Options): Move section up in file,
25096         before target-specific options.  Update menu and option summary
25097         to reflect the new section ordering.
25099 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25101         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
25102         (C++ Dialect Options): Add cross-reference to -std option.
25103         * doc/standards.texi (C++ Language): Document C++14 support.
25105 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
25107         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
25108         for pack/unpack functions for __ibm128.
25109         (PACK_IF): Likewise.
25110         (UNPACK_IF): Likewise.
25112         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
25113         support for __ibm128 pack/unpack functions.
25114         (rs6000_invalid_builtin): Likewise.
25115         (rs6000_init_builtins): Likewise.
25116         (rs6000_opt_masks): Likewise.
25118         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
25119         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
25120         functions
25121         (RS6000_BTM_COMMON): Likewise.
25123         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25124         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25125         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25126         128-bit floating point.  Add support for the double values to be
25127         in Altivec registers for TF/IF packing and unpacking, but restrict
25128         TD packing sub-fields to be FPR registers.  Don't allow overlapped
25129         register support for packing.  Allow pack inputs to be memory
25130         locations.  Don't build generator functions for unpack<mode>_dm
25131         and unpack<mode>_nodm.
25132         (unpack<mode>_dm): Likewise.
25133         (unpack<mode>_nodm): Likewise.
25134         (pack<mode>): Likewise.
25136         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25137         built-in functions to pack/unpack explicit __ibm128 values.
25138         (__builtin_unpack_ibm128): Likewise.
25140         * doc/extend.texi (PowerPC Built-in Functions): Document
25141         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25143 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
25145         PR c/66208
25146         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25147         Add new arg loc and pass it down as context.
25148         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25149         to the location to use for the warning.
25150         (check_function_arguments): New arg loc.  All callers changed.  Pass
25151         it to check_function_nonnull.
25152         * c-common.h (check_function_arguments): Adjust declaration.
25154 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
25156         PR tree-optimization/69156
25157         * gimple.c (validate_type): Removed.
25158         (gimple_builtin_call_types_compatible_p): Use
25159         useless_type_conversion_p instead of validate_type.
25160         * value-prof.c (gimple_stringop_fixed_value): Fold
25161         icall_size to correct type.
25163 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25165         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25166         effects.
25168 2016-01-13  Richard Henderson  <rth@redhat.com>
25170         PR tree-opt/68964
25171         * target.def (builtin_tm_load, builtin_tm_store): Remove.
25172         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25173         (ix86_builtin_tm_store): Remove.
25174         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25175         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25176         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25177         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25178         * doc/tm.texi: Rebuild.
25180         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25181         (BUILT_IN_TM_MEMCPY_RTWN): New.
25182         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25183         fallback from vector to integer helpers.
25184         (build_tm_load): Handle vector types directly, instead of
25185         via target hook.
25186         (build_tm_store): Likewise.
25187         (expand_assign_tm): Prepare for register types not handled by
25188         the above.  Copy them to memory and use memcpy.
25189         * tree.c (tm_define_builtin): New.
25190         (find_tm_vector_type): New.
25191         (build_tm_vector_builtins): New.
25192         (build_common_builtin_nodes): Call it.
25194 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
25196         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25197         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
25199 2016-01-13  Tom de Vries  <tom@codesourcery.com>
25201         PR tree-optimization/69169
25202         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25203         handled_struct_type param.
25204         (create_variable_info_for, intra_create_variable_infos): Call
25205         create_variable_info_for_1 with extra arg.
25207 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
25209         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25210         and "armv8.1-a+crc" entries.
25212 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
25214         PR target/69228
25215         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25216         Change first operand predicate from register_or_constm1_operand
25217         to register_operand.
25218         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25219         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25220         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25221         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25222         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25223         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25224         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25225         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25226         comparison with constm1_rtx from vec_prefetch_gen part.
25228 2016-01-13  Richard Biener  <rguenther@suse.de>
25230         PR tree-optimization/69013
25231         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25232         Exchange assert for a test.
25234 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25236         PR target/69247
25237         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25239 2016-01-13  Richard Biener  <rguenther@suse.de>
25241         PR tree-optimization/69242
25242         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25243         assert with a check.
25245 2016-01-13  Richard Biener  <rguenther@suse.de>
25247         PR tree-optimization/69186
25248         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25249         Properly guard vect_update_misalignment_for_peel call.
25251 2016-01-12  Jeff Law  <law@redhat.com>
25253         PR tree-optimization/pr67755
25254         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25255         "need_profile_correction".
25256         (thread_block_1): Initialize new field to false by default.  If we
25257         have multiple thread paths through a common joiner to different
25258         final targets, then set new field to true.
25259         (compute_path_counts): Only do count adjustment when it's really
25260         needed.
25262 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25264         * doc/invoke.texi (Spec Files): Move section down in file, past
25265         all command-line option descriptions.
25267 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25269         PR middle-end/54809
25270         * doc/gty.texi: Remove documentation of mark_hook.
25271         * gengtype.c (struct write_types_data): Remove code to support
25272         mark_hook attribute.
25273         (walk_type): Likewise.
25274         (write_func_for_structure): Likewise.
25276 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25278         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25279         Directory Options, and -specs= to Overall Options.
25280         (Overall Options): Adjust similarly.  Reorder to group related
25281         options together.  Make -specs= cross-reference the spec file details.
25282         (Directory Options): Adjust similarly.
25284 2016-01-12  Jeff Law  <law@redhat.com>
25286         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25288 2016-01-12  Olivier Hainque  <hainque@adacore.com>
25290         * gcc.c (spec_undefvar_allowed): New global.
25291         (process_command): Set to true when running for --version or --help,
25292         alone or together.
25293         (getenv_spec_function): When the variable is not defined, use the
25294         variable name as the variable value if we're allowed not to issue
25295         a fatal error.
25297 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
25299         PR tree-optimization/68911
25300         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25301         information computed for expression "init + nit * step".
25303 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25305         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
25306         about name of GCC executable.  Remove deleted node from menu.
25307         (Directory Options) <-B>: Remove cross-reference to deleted node.
25308         (Target Options): Delete section.
25310 2016-01-12  Christian Bruel  <christian.bruel@st.com>
25312         PR target/69180
25313         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25314         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25316 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
25318         PR target/69198
25319         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25320         aligned_mem is properly set for AVX512-VL floating point masked
25321         stores.
25323         PR target/69175
25324         * ifcvt.c (cond_exec_process_if_block): When removing the last
25325         insn from then_bb, remove also any possible barriers that follow it.
25327 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
25329         PR target/68456
25330         PR target/69226
25331         * config/i386/iamcu.h (SIZE_TYPE): New macro.
25332         (PTRDIFF_TYPE): Likewise.
25333         (WCHAR_TYPE): Likewise.
25334         (WCHAR_TYPE_SIZE): Likewise.
25335         (STDINT_LONG32): Likewise.
25337 2016-01-12  Richard Biener  <rguenther@suse.de>
25339         PR tree-optimization/69053
25340         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25341         convert initial value for cond reductions.
25343 2016-01-12  Richard Biener  <rguenther@suse.de>
25345         PR tree-optimization/69007
25346         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25347         widen_sum after dot_prod and sad.
25349 2016-01-12  Richard Biener  <rguenther@suse.de>
25351         PR tree-optimization/69168
25352         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25353         pattern stmt SLP type.
25354         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25355         end up unused so cope with that case.
25357 2016-01-12  Richard Biener  <rguenther@suse.de>
25359         PR tree-optimization/69157
25360         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25361         stmts def type only during analyze phase.
25362         (vectorizable_call): Likewise.
25363         (vectorizable_simd_clone_call): Likewise.
25364         (vectorizable_conversion): Likewise.
25365         (vectorizable_assignment): Likewise.
25366         (vectorizable_shift): Likewise.
25367         (vectorizable_operation): Likewise.
25368         (vectorizable_store): Likewise.
25369         (vectorizable_load): Likewise.
25371 2016-01-12  Richard Biener  <rguenther@suse.de>
25373         PR tree-optimization/69174
25374         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25375         space.
25376         (vectorizable_load): Properly compute the number of loads needed
25377         for permuted strided SLP loads and do not spuriously assign
25378         to SLP_TREE_VEC_STMTS.
25380 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
25382         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25383         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25384         (MD_EXEC_PREFIX): Remove.
25385         (MD_STARTFILE_PREFIX) Removee.
25386         (FILE_NAME_ABSOLUTE_P): Remove.
25387         (CPP_SPEC): Do not read macros from sys/version.h.
25388         (LINK_COMMAND_SPEC): Remove.
25389         (LOCAL_INCLUDE_DIR): Remove.
25390         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25391         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25392         (POST_LINK_SPEC): Define to invoke stubify after linker
25393         (LIBSTDCXX): Remove define
25394         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25395         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25396         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25397         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25398         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25399         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25400         (i386_djgpp_asm_named_section): Add propotype of new procedure
25402         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25403         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25404         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25405         in config/i386/djgpp.h).
25406         (STANDARD_STARTFILE_PREFIX_2): Define identical to
25407         STANDARD_STARTFILE_PREFIX_1.
25408         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25409         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25410         installation errors.
25411         (MAX_OFILE_ALIGNMENT): Define to 128.
25412         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25414         * config/i386/djgpp.c: New file. Add implementation of
25415         i386_djgpp_asm_named_section.
25417         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25419         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25420         Add rule for building djgpp.o.
25422 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25424         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25425         (rtx_is_swappable_p): Reductions are swappable.
25426         (insn_is_swappable_p): V2DF reductions are swappable.
25428 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
25430         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25431         reloads for other unsupported memory operands.
25433 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
25434             Jim Wilson  <jim.wilson@linaro.org>
25436         PR target/69194
25437         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25438         copy_to_mode_reg instead of force_reg.
25440 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
25442         PR target/69225
25443         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
25444         TARGET_80387 is true.
25446 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
25448         PR target/69071
25449         * lra-eliminations.c (move_plus_up): Only move plus up
25450         if subreg of the constant can be simplified into constant
25451         and use the simplified subreg of the constant instead of
25452         the original constant.
25454         * fold-const.c (fold_convertible_p): Don't return true
25455         for conversion of VECTOR_TYPE to same sized integral type.
25456         (fold_convert_loc): Fix up formatting.  Fold conversion of
25457         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
25458         instead of NOP_EXPR.
25460         PR tree-optimization/69214
25461         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
25462         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25463         Formatting fix.
25465         PR tree-optimization/69207
25466         * tree-vect-slp.c (vect_get_constant_vectors): For
25467         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
25468         fold_convertible_p to vector_type's element type, and always
25469         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
25471 2016-01-11  Richard Biener  <rguenther@suse.de>
25473         PR tree-optimization/69173
25474         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
25475         fixup the cycle if all stmts are in a pattern.
25477 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
25479         PR middle-end/68999
25480         * alias.c (base_alias_check): Move check for addresses with
25481         alignment ANDs before the call for compare_base_decls.
25482         (memrefs_conflict_p): Return -1 for different decls
25483         that went through alignment adjustments.
25485 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25487         PR rtl-optimization/68796
25488         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
25489         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
25490         and QImode comparisons against zero with CC_NZmode.
25491         * config/aarch64/iterators.md (short_mask): New mode_attr.
25493 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
25495         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
25496         (<avx512>_store<mode>_mask): Likewise.
25498 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
25499             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25501         PR rtl-optimization/68841
25502         * ifcvt.c (struct noce_if_info): Add orig_x field.
25503         (bbs_ok_for_cmove_arith): Add to_rename parameter.
25504         Don't record conflicts on to_rename if it's present.
25505         Allow memory destinations in sets.
25506         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
25507         blocks, passing orig_x to the checks.
25508         (noce_process_if_block): Set if_info->orig_x appropriately.
25510 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25512         PR tree-optimization/69069
25513         * tree-parloops.c (create_parallel_loop): Add missing phi args.
25515 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
25517         PR rtl-optimization/68920
25518         * config/i386/i386.c (ix86_option_override_internal): Restrict number
25519         of conditional moves for  RTL if-conversion to 1 for
25520         TARGET_ONE_IF_CONV_INSN.
25521         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
25522         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
25523         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
25524         parameter to restirct number of conditional moves for
25525         RTL if-conversion.
25526         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
25527         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
25528         conditionl moves.
25530 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
25532         PR bootstrap/69123
25533         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
25534         onepart vars.  Fix typo in comment.  Fix reversed condition in
25535         unshare test.
25536         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
25538         PR bootstrap/69123
25539         * var-tracking.c (dump_onepart_variable_differences): New.
25540         (dataflow_set_different): If a detailed dump is requested,
25541         delay early returns and dump differences between onepart
25542         variables present before and after, and added variables.
25544 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
25546         PR target/69010
25547         * expr.c (expand_expr_real_1): For boolean vector constants
25548         with a scalar mode use const_scalar_mask_from_tree.
25549         (const_scalar_mask_from_tree): New.
25550         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
25551         assigned to a mask type to handle constants.
25553 2016-01-11  Martin Jambor  <mjambor@suse.cz>
25555         PR ipa/69044
25556         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
25557         useless parameters if we cannot change function signature.
25559 2016-01-11  Martin Jambor  <mjambor@suse.cz>
25561         PR ipa/66616
25562         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
25563         flag.
25565 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25567         PR tree-optimization/69109
25568         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
25569         latch with phi.
25571 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25573         PR tree-optimization/69108
25574         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
25575         res is not used in a phi.
25577 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
25579         PR 67425
25580         * common.opt (frandom-seed): Fix parameter name.
25581         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
25583 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25585         PR tree-optimization/69058
25586         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
25587         not supported.
25589 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
25591         * config/arc/arc.opt (mdiv-rem): Add period to the end.
25592         (mcode-density): Likewise.
25594 2016-01-10  Tom de Vries  <tom@codesourcery.com>
25596         PR tree-optimization/69062
25597         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
25598         (parallelize_loops): Don't paralelize loop that has phi with address
25599         arg.
25601 2016-01-10  Tom de Vries  <tom@codesourcery.com>
25603         PR tree-optimization/69039
25604         * tree-parloops.c (try_create_reduction_list): Only allow single exit
25605         phi for reduction.
25607 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
25609         PR middle-end/68743
25610         * match.pd: Require target has function_c99_misc before doing
25611         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
25613 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
25615         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
25616         use GMPINC.
25617         * configure: Regenerate.
25619 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
25621         PR middle-end/50865
25622         PR tree-optimization/69097
25623         * fold-const.h (expr_not_equal_to): New prototype.
25624         * fold-const.c: Include stringpool.h and tree-ssanames.h.
25625         (expr_not_equal_to): New function.
25626         * match.pd (X % -Y is the same as X % Y): Don't optimize
25627         unless X is known not to be equal to minimum or Y is known
25628         not to be equal to -1.
25629         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
25630         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
25631         (simplify_stmt_using_ranges): Adjust caller.
25632         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
25633         substitute_and_fold.
25635 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
25637         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
25638         w/o DECL_NAME.
25640 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
25642         PR tree-optimization/69167
25643         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
25644         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
25645         ops[0] comparison.
25646         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
25648 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
25649             Richard Biener  <rguenther@suse.de>
25651         PR tree-optimization/68707
25652         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
25653         instances that can be handled via vect_load_lanes.
25655 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
25657         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
25658         if we can't determine address equivalence.
25659         * alias.c (compare_base_decl): Update for changed return value of
25660         symtab_node::equal_address_to.
25662 2016-01-08  Jason Merrill  <jason@redhat.com>
25664         PR c++/68983
25665         PR c++/67557
25666         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
25667         * expr.c (store_field): Not here.
25668         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
25669         call with TREE_ADDRESSABLE type.
25670         * tree-cfg.c (verify_gimple_call): Adjust.
25672 2016-01-08  Olivier Hainque  <hainque@adacore.com>
25674         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
25675         libc_internal.
25677 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
25679         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
25680         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
25681         (reduc_smin_v2sf): Rename to...
25682         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
25683         (reduc_splus_v2sf): Rename to...
25684         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
25686 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
25688         PR tree-optimization/69162
25689         * gimplify.c (gimplify_va_arg_expr): Encode original type of
25690         valist argument in another argument.
25691         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
25692         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
25693         to determine the va_list type, build a MEM_REF instead of
25694         build_fold_indirect_ref.
25696         PR tree-optimization/69172
25697         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
25698         gimple_build.
25700 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25702         PR tree-optimization/67781
25703         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
25704         and cmpnop in two steps: first the ones not accessed in original
25705         gimple expression in a endian independent way and then the ones not
25706         accessed in the final result in an endian-specific way.
25708 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
25710         PR tree-optimization/69083
25711         * tree-vect-slp.c (vect_get_constant_vectors): For
25712         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
25713         element type.  If op is fold_convertible_p to vector_type's element
25714         type, use NOP_EXPR instead of VCE.
25716 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
25718         PR rtl-optimization/67778
25719         PR rtl-optimization/68634
25720         PR rtl-optimization/68909
25721         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
25722         block from the stack until done with it.  Remove a superfluous
25723         bitmap set.  Remove a superfluous bitmap test.
25725 2016-01-07  Martin Sebor  <msebor@redhat.com>
25727         PR c/68966
25728         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
25729         constraint on the type of arguments.
25731 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
25733         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
25734         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
25735         unaligned_access on the gcc_options set.
25736         * config/arm/arm.c (arm_option_override_internal): Use
25737         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
25739 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
25741         PR target/69140
25742         * config/i386/i386.c (ix86_frame_pointer_required): Enable
25743         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
25745 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
25747         Revert
25748         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
25750         PR target/69140
25751         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25752         depending on frame_pointer_needed before remaining integer and SSE
25753         registers are saved.
25755 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
25757         PR 1078
25758         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
25760 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
25762         PR target/69171
25763         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
25764         Use the "xBm" constraint.
25765         (float<sseintvecmodelower><mode>2<mask_name><round_name):
25766         Likewise.
25767         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
25768         (sse_cvtsi2ssq<round_name>): Likewise.
25769         (sse_cvtss2si<round_name>): Likewise.
25770         (sse_cvtss2siq<round_name>): Likewise.
25771         (sse2_cvtsi2sdq<round_name>): Likewise.
25772         (sse2_cvtsd2si<round_name>): Likewise.
25773         (sse2_cvtsd2siq<round_name>): Likewise.
25774         * config/i386/subst.md (round_nimm_scalar_predicate): New
25775         predicate.
25777 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
25779         PR middle-end/67639
25780         * varasm.c (make_decl_rtl): Mark invalid register vars as
25781         DECL_EXTERNAL.
25783         PR rtl-optimization/66206
25784         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
25785         All callers changed.
25787 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
25789         PR tree-optimization/69141
25790         * tree-ssa-pre.c: Include langhooks.h.
25791         (eliminate_dom_walker::before_dom_children): Use
25792         lang_hooks.decl_printable_name instead of
25793         cgraph_node::get ()->name ().
25795         PR middle-end/68960
25796         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
25797         it and DECL_ALIGN too.
25799 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
25801         * config/mips/mips-ftypes.def: Sort to lexicographical order.
25803 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
25805         PR target/69140
25806         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25807         depending on frame_pointer_needed before remaining integer and SSE
25808         registers are saved.
25810 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25812         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
25813         mode iterator with VSX_M2.
25814         (*p9_vecstore_<mode>): Likewise.
25815         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
25816         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
25817         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
25818         (define_split for VSX_LE128 stores): Likewise.
25819         (define_peephole2 for TImode LE swaps): Likewise.
25820         (define_split for VSX_LE128 post-reload stores): Likewise.
25822 2016-01-06  Marek Polacek  <polacek@redhat.com>
25824         PR sanitizer/69099
25825         * convert.c (convert_to_integer_1): Adjust call to
25826         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
25827         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
25828         EXPR instead of ARG.
25829         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
25831 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25833         PR 1078
25834         * doc/extend.texi (RL78 Variable Attributes): New section.
25836 2016-01-05  Marek Polacek  <polacek@redhat.com>
25838         PR c/69104
25839         * builtins.c (get_memmodel): Use expansion point location rather than
25840         the input location.  Call warning_at rather than warning.
25841         (expand_builtin_atomic_compare_exchange): Likewise.
25842         (expand_builtin_atomic_load): Likewise.
25843         (expand_builtin_atomic_store): Likewise.
25844         (expand_builtin_atomic_clear): Likewise.
25846 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25848         PR target/68991
25849         * config/i386/i386.c (ix86_expand_vector_logical_operator):
25850         Replace nonimmediate_operand with vector_operand.
25851         * config/i386/predicates.md (vector_operand): New predicate.
25852         (general_vector_operand): Replace nonimmediate_operand with
25853         vector_operand.
25854         * config/i386/sse.md: Replace nonimmediate_operand with
25855         vector_operand and m constraint with Bm constraint on SSE
25856         patterns with 16-byte memory operand.
25857         * config/i386/subst.md (round_nimm_predicate): Replace
25858         nonimmediate_operand with vector_operand.
25859         (round_saeonly_nimm_predicate): Likewise.
25860         (round_saeonly_nimm_scalar_predicate): New.
25862 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25864         PR target/68991
25865         * config/i386/constraints.md (Bm): New constraint.
25866         * config/i386/predicates.md (vector_memory_operand): New
25867         predicate.
25868         * config/i386/sse.md: Replace xm with xBm in plusminus and
25869         any_logic patterns.
25871 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25873         PR 1078
25874         * doc/extend.texi (V850 Function Attributes): New section.
25875         (V850 Variable Attributes): New section.
25877 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25879         PR 1078
25880         * doc/extend.texi (MicroBlaze Function Attributes): Document
25881         interrupt_handler and fast_interrupt attributes.
25883 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
25885         PR other/60465
25886         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
25887         for local symbolic operands.
25888         * config/ia64/predicates.md (local_symbolic_operand64): New
25889         predicate.
25891 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25893         PR rtl-optimization/68651
25894         * combine.c (combine_simplify_rtx): Canonicalize x + x into
25895         x << 1.
25897 2016-01-05  Nathan Sidwell  <nathan@acm.org>
25899         * alias.c (compare_base_decls): Use symtab_node::get.
25901 2016-01-05  Nick Clifton  <nickc@redhat.com>
25903         PR target/68770
25904         * ira-costs.c (copy_cost): Initialise the t_icode field of the
25905         secondary_reload_info structure.
25907         PR target/66655
25908         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
25909         decls if weak support is available.
25911 2016-01-04  Martin Sebor  <msebor@redhat.com>
25913         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
25915 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
25917         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
25918         OPTION_MASK_P9_DFORM.
25920         * config/rs6000/constraints.md (wo constraint): New constraint for
25921         ISA 3.0 (power9).
25923         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
25924         for wo constraint.
25925         (rs6000_init_hard_regno_mode_ok): Likewise.
25927         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
25928         wo constraint.
25930         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
25931         expanders not to have constraints.  Add support for ISA 3.0 xxperm
25932         instruction.  Add support for fusing xxlor with xxperm.
25933         (altivec_vperm_<mode>_internal): Likewise.
25934         (altivec_vperm_v8hiv16qi): Likewise.
25935         (altivec_vperm_<mode>v16q): Likewise.
25936         (altivec_vperm_<mode>_uns): Likewise.
25937         (vperm_v8hiv4si): Likewise.
25938         (vperm_v16qiv8hi): Likewise.
25940         * doc/md.texi (RS/6000 constraints): Document wo constraint.
25942 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
25944         Update copyright years.
25946         * gcc.c (process_command): Update copyright notice dates.
25947         * gcov-dump.c (print_version): Ditto.
25948         * gcov.c (print_version): Ditto.
25949         * gcov-tool.c (print_version): Ditto.
25950         * gengtype.c (create_file): Ditto.
25951         * doc/cpp.texi: Bump @copying's copyright year.
25952         * doc/cppinternals.texi: Ditto.
25953         * doc/gcc.texi: Ditto.
25954         * doc/gccint.texi: Ditto.
25955         * doc/gcov.texi: Ditto.
25956         * doc/install.texi: Ditto.
25957         * doc/invoke.texi: Ditto.
25959 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25961         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
25962         modes larger than TImode as TImode if NEON is not enabled.
25964 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25966         PR target/69100
25967         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
25968         mode for %f0-%f31 only if TARGET_FPU.
25970 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25972         PR target/69072
25973         * config/sparc/sparc.c (scan_record_type): Take into account subfields
25974         to compute the PACKED_P predicate.
25975         (function_arg_record_value): Minor tweaks.
25977 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25979         * doc/install.texi (--with-multilib-list): Describe the meaning of the
25980         option for arm*-*-* targets.
25982 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25984         * doc/extend.texi (Common Function Attributes): Move docs for
25985         MSP430-specific attributes to....
25986         (MSP430 Function Attributes): ...here.  Delete the redundant
25987         entries and copy-edit the remaining text.
25988         (MSP430 Variable Attributes): Use uniform format for index
25989         entries and add a cross-reference to the corresponding function
25990         attribute docs.
25992 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
25994         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
25995         -finite-math typo.
25996         (x86 Options): Likewise.
25998 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
26000         PR 1078
26002         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
26003         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
26004         to corresponding attribute.
26006 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
26008         * doc/extend.texi (Common Function Attributes) <noplt>: Move
26009         to correct alphabetization of table.  Copy-edit and correct
26010         markup.
26011         <stack_protect>: Likewise.
26012         <target_clones>: Likewise.
26013         <simd>: Likewise.
26014         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
26015         Correct punctuation.
26016         (Code Gen Options) <-fno-plt>: Copy-edit.
26018 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
26020         PR target/68917
26021         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
26022         SI values.  Explicitly convert SI to DI and vice-versa.
26024 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
26026         PR tree-optimization/69070
26027         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
26028         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
26030         PR sanitizer/69055
26031         * ubsan.c (ubsan_instrument_float_cast): Call
26032         initialize_sanitizer_builtins.
26034         PR target/69015
26035         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
26037 Copyright (C) 2016 Free Software Foundation, Inc.
26039 Copying and distribution of this file, with or without modification,
26040 are permitted in any medium without royalty provided the copyright
26041 notice and this notice are preserved.