2016-10-12 Richard Biener <rguenther@suse.de>
[official-gcc.git] / gcc / ChangeLog
blob3fb6a77068b80a1d851ad2e934f652b93d1e6577
1 2016-10-12  Richard Biener  <rguenther@suse.de>
3         PR debug/77947
4         * cgraphunit.c (analyze_functions): Preserve cgraph nodes
5         function context.
7 2016-10-12  Thomas Schwinge  <thomas@codesourcery.com>
9         * lto-streamer.c: Fix LTO_STREAMER_DEBUG build.
11         * dwarf2out.c (dwarf2_lineno_debug_hooks): Use
12         dwarf2out_assembly_start.
14         * Makefile.in (SELFTEST_FLAGS): Add -nostdinc.
16         * Makefile.in (SELFTEST_FLAGS): New variable.
17         (s-selftest, selftest-gdb, selftest-valgrind): Use it.
19         * vmsdbgout.c (vmsdbg_debug_hooks): Add filename parameter to
20         early_finish hook.
22 2016-10-12  Georg-Johann Lay  <avr@gjlay.de>
24         * rtl.h (struct rtx_def): Comment how RTX_FLAGS will be
25         dumped in RTL dumps.
27 2016-10-12  Martin Liska  <mliska@suse.cz>
29         * gimple-fold.c (create_tmp_reg_or_ssa_name): New function.
30         (gimple_fold_builtin_memory_op): Use the function.
31         (gimple_fold_builtin_strchr): Likewise.
32         (gimple_fold_builtin_strcat): Likewise.
33         (gimple_build): Likewise.
35 2016-10-12  Nathan Sidwell  <nathan@acm.org>
37         * diagnostic.c (diagnostc_report_diagnostic): Fix formatting.
39 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
41         * dwarf2out.c (int_loc_descriptor): Generate opcodes for another
42         equivalent 32-bit constant (modulo 2**32) when that yields
43         smaller instructions.
44         (size_of_int_loc_descriptor): Update accordingly.
46 2016-10-12  Pierre-Marie de Rodat  <derodat@adacore.com>
48         * dwarf2out.c (dwarf2out_early_global_decl): For nested
49         functions, call dwarf2out_decl on the parent function first.
51 2016-10-12  Richard Biener  <rguenther@suse.de>
53         * match.pd ((X /[ex] A) * A -> X): Remove unnecessary constraint
54         on the conversion.
56 2016-10-12  Richard Biener  <rguenther@suse.de>
58         * tree-ssa-propagate.c
59         (substitute_and_fold_dom_walker::before_dom_children): Do not
60         ignore ASSERT_EXPRs but only preserve them.
61         * tree-vrp.c (remove_range_assertions): Deal with ASSERT_EXPRs
62         that have been propagated into.
63         (vrp_finalize): Enable DCE for substitute_and_fold.
65 2016-10-12  Richard Biener  <rguenther@suse.de>
67         PR tree-optimization/77920
68         * tree-vrp.c (simplify_div_or_mod_using_ranges): Simplify.
69         (simplify_min_or_max_using_ranges): Pass in gsi and use it.
70         (simplify_abs_using_ranges): Likewise.
71         (simplify_conversion_using_ranges): Likewise.
72         (simplify_stmt_using_ranges): Adjust.
74 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
76         PR tree-optimization/77929
77         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Handle
78         (*ops)[ranges[i].idx]->op != ranges[i].exp case.
80 2016-10-12  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
82         PR target/77934
83         * config/rs6000/vmx.md (vsx_concat_<mode>): The mtvsrdd instruction
84         needs a base register for arg 1.
86 2016-10-12  Jakub Jelinek  <jakub@redhat.com>
88         * common.opt (Wimplicit-fallthrough) Turn into alias to
89         -Wimplicit-fallthrough=3.  Remove EnabledBy.
90         (Wimplicit-fallthrough=): New option.
91         * gimplify.c (warn_implicit_fallthrough_r): Use
92         OPT_Wimplicit_fallthrough_ instead of OPT_Wimplicit_fallthrough.
93         * doc/invoke.texi (-Wimplicit-fallthrough): Document as alias
94         to -Wimplicit-fallthrough=3.
95         (-Wimplicit-fallthrough=): Document.
97 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
99         * config/sparc/sparc.c (emit_scc_insn): Remove direct support for EQ
100         and GEU in DImode if TARGET_SUBXC.
101         * config/sparc/sparc.md (seqdi<W:mode>_zero): Remove TARGET_SUBXC.
102         (seqdi<W:mode>_zero_subxc): Delete.
103         (neg_seqdi<W:mode>_zero): Remove TARGET_VIS3.
104         (neg_seqdi<W:mode>_zero_vis3): Delete.
105         (plus_seqdi<W:mode>_zero): Likewise.
106         (minus_seqdi<W:mode>_zero): Likewise.
107         (plus_plus_sltu<W:mode>): Accept only register.
108         (addx<W:mode>): Likewise.
109         (plus_sltu<W:mode>_vis3): Likewise.
110         (plus_plus_sltu<W:mode>_vis3): Likewise.
111         (neg_sgeu<W:mode>_vis3): Delete.
112         (minus_sgeu<W:mode>_vis3): Likewise.
113         (addxc<W:mode>): Accept only registers.
114         (neg_sltu<W:mode>_subxc): Write %%g0 instead of 0.
115         (minus_neg_sltu<W:mode>_subxc): Accept only register.
116         (neg_plus_sltu<W:mode>_subxc): Likewise.
117         (minus_sltu<W:mode>_subxc): Write %%g0 instead of 0.
118         (minus_minus_sltu<W:mode>_subxc): Accept only register.
119         (sgeu<W:mode>_insn_subxc): Delete.
120         (plus_sgeu<W:mode>_subxc): Likewise.
121         (subxc<W:mode>): Accept only register.
122         (scc splitter): Split always GEU again.
124 2016-10-11  Jeff Law  <law@redhat.com>
126         PR tree-optimization/77424
127         * tree-ssa-threadupdate.c (thread_through_all_blocks): Remove
128         dead conditionals.  Assert that all e->aux fields are NULL.
130 2016-10-11  David Malcolm  <dmalcolm@redhat.com>
132         * print-rtl.c (print_rtx): Rename "i" to "idx".  Split out the
133         operand-printing "switch" statement into...
134         (print_rtx_operand_code_0): ...this new function, ...
135         (print_rtx_operand_code_e): ...this new function, ...
136         (print_rtx_operand_codes_E_and_V): ...this new function, ...
137         (print_rtx_operand_code_i): ...this new function, ...
138         (print_rtx_operand_code_r): ...this new function, ...
139         (print_rtx_operand_code_u): ...this new function, ...
140         (print_rtx_operand): ...and this new function.
142 2016-10-11  Uros Bizjak  <ubizjak@gmail.com>
144         * config/alpha/alpha-passes.def: New file.
145         * config/alpha/t-alpha: New file.
146         * config/alpha/alpha-protos.h (gcc::context, rtl_opt_pass): Declare.
147         (make_pass_handle_trap_shadows): New prototype.
148         (make_pass_align_insns): Ditto.
149         * config/alpha/alpha.c (alpha_option_override): Don't register
150         passes here.
151         * config.gcc (alpha*-*-*) Add alpha/t-alpha to tmake_file.
153 2016-10-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
155         PR target/77924
156         * config/rs6000/rs6000.c (rs6000_init_builtins): Only create the
157         distinct __ibm128 IBM extended double type if long doubles are
158         128-bits and the default format for long double is IEEE 128-bit.
160 2016-10-11  Richard Biener  <rguenther@suse.de>
162         * dwarf2out.c (DEBUG_STR_OFFSETS_SECTION): Remove conditional.
163         (init_sections_and_labels): Use DEBUG_DWO_STR_OFFSETS_SECTION.
164         (verify_die): New function.
165         (dwarf2out_finish): Call it.
166         (output_line_info): Handle case of -gsplit-dwarf without
167         DWARF2_ASM_LINE_DEBUG_INFO.
169 2016-10-11  Richard Biener  <rguenther@suse.de>
171         PR debug/77931
172         * gimple-low.c (lower_gimple_bind): Handle arbitrary common
173         sub-chains of BLOCK_VARS and gimple_bind_vars.
175 2016-10-11  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
177         * config/i386/znver1.md : Fix imov/imovx load type reservations.
179 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
181         * config/sparc/sparc.opt (msubxc): New option.
182         * doc/invoke.texi (SPARC options): Document it and tidy up.
183         * doc/tm.texi.in (Condition Codes): Adjust SPARC example.
184         * doc/tm.texi: Regenerate.
185         * config/sparc/sparc-modes.def (CC_NOOV): Rename into...
186         (CCNZ): ...this.
187         (CCX_NOOV): Rename into...
188         (CCXNZ): ...this.
189         (CCC): New.
190         (CCXC): Likewise.
191         * config/sparc/predicates.m (fcc_register_operand): Simplify.
192         (fcc0_register_operand): Likewise.
193         (icc_register_operand): New.
194         (icc_or_fcc_register_operand): Simplify.
195         (nz_comparison_operator): New.
196         (c_comparison_operator): Likewise.
197         (noov_compare_operator): Rename into...
198         (icc_comparison_operator): ...this.  Use above predicates.
199         (noov_compare64_operator): Rename into...
200         (v9_comparison_operator): ...this and tidy up.
201         (fcc_comparison_operator): New.
202         (icc_or_fcc_comparison_operator): Likewise.
203         (v9_register_compare_operator): Rename info...
204         (v9_register_comparison_operator): ...this.
205         * config/sparc/sparc.c (TARGET_FIXED_CONDITION_CODE_REGS): Define.
206         (sparc_option_override): Remove redundant VIS masks and add MASK_SUBXC
207         for Niagara-7.
208         (sparc_fixed_condition_code_regs): New function.
209         (select_cc_mode): Remove ATTRIBUTE_UNUSED.  Adjust for CCNZ/CCXNZ
210         renaming and add support for CCC/CCXC.
211         (output_cbranch): Likewise.
212         (sparc_print_operand): Likewise.
213         (gen_v9_scc): Remove obsolete assertion.
214         (emit_scc_insn): Emit RTL directly for EQ and NE.  Add direct support
215         for EQ in DImode if TARGET_SUBXC.  Remove test on TARGET_VIS3 for GEU.
216         (output_cbcond): Remove bogus handling of CC modes.
217         (sparc_register_move_cost): Return 100 for NO_REGS.
218         * config/sparc/sparc.md (W): New mode iterator.
219         (length): Adjust for noov_compare64_operator renaming.
220         (cmpsi_sne): New instruction.
221         (cmpdi_sne): Likewise.
222         (seqdi_special): Delete.
223         (seqdi_special): Likewise.
224         (snesi<P:mode>_special): Likewise.
225         (snedi_special): Likewise.
226         (snedi_special_vis3): Likewise.
227         (snesi patterns): Use W iterator.
228         (snedi patterns): Likewise.  Add TARGET_SUBXC patterns.
229         (sltu patterns): Likewise.
230         (sgeu patterns): Likewise.
231         (scc splitter): Do not split GEU in DImode if TARGET_SUBXC.
232         (normal_branch): Use icc_comparison_operator predicate.
233         (inverted_branch): Likewise.
234         (cbcond_sp32): Use comparison_operator predicate.
235         (cbcond_sp64): Likewise.
236         (normal_int_branch_sp64): Adjust for renaming
237         (inverted_int_branch_sp64): Likewise.
238         (mov<I:mode>_cc_reg_sp64): Likewise.
239         (movsf_cc_reg_sp6): Likewise.
240         (movdf_cc_reg_sp64): Likewise.
241         (movtf_cc_reg_hq_sp64): Likewise.
242         (movtf_cc_reg_sp64): Likewise.
243         (mov<I:mode>_cc_v9): Use icc_or_fcc_comparison_operator predicate.
244         (movsf_cc_v9): Likewise.
245         (movdf_cc_v9): Likewise.
246         (movtf_cc_hq_v9): Likewise.
247         (movtf_cc_v9): Likewise.
248         (adddi3): Call gen_adddi3_sp32.
249         (adddi3_insn_sp32): Rename to...
250         (adddi3_sp32): ...this.  Accept only register_operand as operand #1
251         and use CCCmode for the carry.
252         (addx_extend_sp32): Use CCCmode for the carry.
253         (addx_extend_sp64): Delete.
254         (adddi3_extend_sp32): Use CCCmode for the carry.
255         (cmp_plus patterns): Use CCNZ/CCXNZ mode and add C variants.
256         (subdi3): Call gen_subdi3_sp32.
257         (subdi3_insn_sp32): Rename to...
258         (subdi3_sp32): ...this and use CCmode for the carry.
259         (subx_extend_sp32): Use CCCmode for the carry.
260         (subx_extend_sp64): Delete.
261         (subdi3_extend_sp32): Use CCmode for the carry.
262         (cmp_minus patterns): Use CCNZ/CCXNZ mode and add C variants.
263         (negdi3): Call gen_negdi3_sp32.
264         (negdi3_sp32): Use CCCmode for the carry.
265         (cmp_neg patterns): Use CCNZ/CCXNZ mode and add C variants.
266         (cmp_nz_ashift_1): Use CCNZ mode.
267         (cmp_nz_set_ashift_1): Likewise.
268         (ctrapsi4): Use comparison_operator predicate.
269         (ctrapdi4): Likewise.
270         (trapsi_insn): Use icc_comparison_operator predicate.
271         (trapdi_insn): Likewise.
272         (edge8 patterns): Use CCNZmode.
273         (edge16 patterns): Likewise.
274         (edge32 patterns): Likewise.
276 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
278         * config/visium/visium-modes.def (CC_NOOV): Rename into...
279         (CCNZ): ...this.
280         (CC_BTST): Rename into...
281         (CCC): ...this.
282         * config/visium/predicates.md (real_add_operand): New.
283         (visium_btst_operator): Rename into...
284         (visium_equality_comparison_operator): ...this.
285         (visium_noov_operator): Rename into...
286         (visium_nz_comparison_operator): ...this.
287         (visium_c_comparison_operator): New.
288         (visium_branch_operator): Adjust and deal with all CC modes.
289         * config/visium/visium.c (visium_adjust_cost): Adjust.
290         (visium_split_double_add): Use the *_set_carry patterns.
291         (visium_select_cc_mode): Add support for CCC mode and adjust.
292         (output_cbranch): Adjust and use the carry-based operators for
293         floating-point comparisons.
294         * config/visium/visium.md (flags_subst_arith): Adjust.
295         (addsi3_insn_set_carry): New instruction.
296         (subsi3_insn_set_carry): Likewise.
297         (negsi2_insn_set_carry): Likewise.
298         (btst): Adjust.
299         (cmp<mode>_sne): Likewise.
300         (cbranch<mode>4): Use ordered_comparison_operator.
301         (cbranch<mode>4_insn): Likewise.
302         (cbranchsi4_btst_insn): Adjust.
304 2016-10-11  Tom de Vries  <tom@codesourcery.com>
306         PR middle-end/77558
307         * builtins.c (std_canonical_va_list_type): Remove RECORD_TYPE
308         special-casing.
310 2016-10-11  Eric Botcazou  <ebotcazou@adacore.com>
312         * tree.h (build_complex_type): Add second parameter with default.
313         * tree.c (build_complex_type): Add NAMED second parameter and adjust
314         recursive call.  Create a TYPE_DECL only if NAMED is true.
315         (build_common_tree_nodes): Pass true in calls to build_complex_type.
317 2016-10-11  Georg-Johann Lay  <avr@gjlay.de>
319         New avr-passes.def to register AVR specific passes.
321         * config/avr/avr-passes.def: New file.
322         * config/avr/t-avr (PASSES_EXTRA): Add avr-passes.def.
323         * config/avr/avr-protos.h (gcc::context, rtl_opt_pass): Declare.
324         (make_avr_pass_recompute_note): New proto.
325         * config/avr/avr.c (make_avr_pass_recompute_notes): New function.
326         (avr_pass_recompute_notes): Use anonymous namespace.
327         (avr_register_passes): Remove function...
328         (avr_option_override): ...and its call.
330 2016-10-11  Robert Suchanek  <robert.suchanek@imgtec.com>
332         * config/mips/mips-cpus.def: Replace PTF_AVOID_BRANCHLIKELY with
333         PTF_AVOID_BRANCHLIKELY_ALWAYS for generic architecture and with
334         PTF_AVOID_BRANCHLIKELY_SPEED for others.
335         (mips2, mips3, mips4): Add PTF_AVOID_BRANCHLIKELY_SIZE to tune
336         flags.
337         * config/mips/mips.c (mips_option_override): Enable the branch
338         likely depending on the tune flags and optimization level.
339         * config/mips/mips.h (PTF_AVOID_BRANCHLIKELY): Remove.
340         (PTF_AVOID_BRANCHLIKELY_SPEED): Define.
341         (PTF_AVOID_BRANCHLIKELY_SIZE): Likewise.
342         (PTF_AVOID_BRANCHLIKELY_ALWAYS): Likewise.
344 2016-10-11  Richard Biener  <rguenther@suse.de>
346         * lto-streamer-out.c (collect_block_tree_leafs): New helper.
347         (output_function): Properly stream the whole block tree.
348         * lto-streamer-in.c (input_function): Likewise.
350 2016-10-11  Marek Polacek  <polacek@redhat.com>
352         * Makefile.in (C_COMMON_OBJS): Add c-family/c-warn.o.
354 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
356         * tree-vrp.c (evrp_dom_walker::try_add_new_range): New.
357         (evrp_dom_walker::before_dom_children): Infer and push new value
358         ranges for x in y < x.
360 2016-10-10  Joseph Myers  <joseph@codesourcery.com>
362         PR target/77586
363         * config/ia64/ia64.c (ia64_libgcc_floating_mode_supported_p)
364         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
365         * config/ia64/elf.h (IA64_NO_LIBGCC_TFMODE): Likewise.
366         * config/ia64/freebsd.h (IA64_NO_LIBGCC_TFMODE): Likewise.
367         * config/ia64/vms.h (IA64_NO_LIBGCC_XFMODE)
368         (IA64_NO_LIBGCC_TFMODE): Likewise.
370 2016-10-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
372         * tree-vrp.c (vrp_intersect_ranges_1): Allocate bitmap before
373           copying.
375 2016-10-10  Andreas Tobler  <andreast@gcc.gnu.org>
377         * config.gcc: Add aarch64-*-freebsd* support.
378         * config.host: Likewise.
379         * config/aarch64/aarch64-freebsd.h: New file.
380         * config/aarch64/t-aarch64-freebsd: Ditto.
382 2016-10-10  Jeff Law  <law@redhat.com>
384         PR tree-optimization/71947
385         * tree-ssa-dom.c (cprop_into_stmt): Avoid replacing A with B, then
386         B with A within a single statement.
388 2016-10-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
390         PR tree-optimization/77824
391         * gimple-ssa-strength-reduction.c (stmt_cost): Explicitly return
392         zero cost for copies.
393         (find_candidates_dom_walker::before_dom_children): Replace
394         MODIFY_EXPR with SSA_NAME.
395         (replace_mult_candidate): Likewise.
396         (replace_profitable_candidates): Likewise.
398 2016-10-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
400         * config/s390/s390.h: Wrap more macros args in brackets and fix
402 2016-10-10  Georg-Johann Lay  <avr@gjlay.de>
404         * config/avr/gen-avr-mmcu-texi.c (string.h): Include.
406 2016-10-10  Andreas Schwab  <schwab@suse.de>
408         PR target/77738
409         * config/ia64/ia64.md ("doloop_end"): Reject if mode of loop
410         pseudo is not DImode.
412 2016-10-10  Claudiu Zissulescu  <claziss@synopsys.com>
414         * common/config/arc/arc-common.c (arc_option_optimization_table):
415         Remove compact casesi option.
416         * config/arc/arc.c (arc_override_options): Use compact casesi
417         option only for pre-ARCv2 cores.
418         * doc/invoke.texi (mcompact-casesi): Update text.
420 2016-10-09  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
422         * config/rs6000/rs6000.h (TARGET_EFFICIENT_OVERLAPPING_UNALIGNED):
423         Add macro to say we can efficiently handle overlapping unaligned
424         loads.
425         * config/rs6000/rs6000.c (expand_block_compare): Avoid generating
426         poor code for processors older than p8.
428 2016-10-09  Eric Botcazou  <ebotcazou@adacore.com>
430         * gen-pass-instances.awk: Remove GNUism.
432 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
434         * ipa-prop.c (ipcp_transform_function): Set fields m_vr and bits to
435         NULL of (*ipcp_transformations)][node->uid].
437 2016-10-09  John David Anglin  <danglin@gcc.gnu.org>
439         * config/pa/pa.h (BIGGEST_ALIGNMENT): Adjust comment.
440         (MALLOC_ABI_ALIGNMENT): Define.
442 2016-10-09  Jakub Jelinek  <jakub@redhat.com>
444         * tree-ssa.c (target_for_debug_bind, verify_phi_args,
445         ssa_undefined_value_p, maybe_optimize_var): Use VAR_P and/or
446         VAR_OR_FUNCTION_DECL_P macros.
447         * tree-chkp.c (chkp_register_var_initializer, chkp_make_static_bounds,
448         chkp_get_bounds_for_decl_addr, chkp_parse_array_and_component_ref,
449         chkp_find_bounds_1): Likewise.
450         * ipa-polymorphic-call.c (decl_maybe_in_construction_p): Likewise.
451         * hsa-gen.c (get_symbol_for_decl): Likewise.
452         * cgraphunit.c (check_global_declaration, analyze_functions,
453         handle_alias_pairs, thunk_adjust, cgraph_node::expand_thunk):
454         Likewise.
455         * gimple-fold.c (can_refer_decl_in_current_unit_p,
456         canonicalize_constructor_val, gimple_get_virt_method_for_vtable):
457         Likewise.
458         * tree.c (set_decl_section_name, copy_node_stat,
459         need_assembler_name_p, free_lang_data_in_decl, find_decls_types_r,
460         merge_dllimport_decl_attributes, handle_dll_attribute,
461         decl_init_priority_insert, auto_var_in_fn_p, array_at_struct_end_p,
462         verify_type): Likewise.
463         * gimple-ssa-isolate-paths.c (find_implicit_erroneous_behavior,
464         find_explicit_erroneous_behavior): Likewise.
465         * sdbout.c (sdbout_toplevel_data, sdbout_late_global_decl): Likewise.
466         * ipa.c (process_references): Likewise.
467         * tree-chkp-opt.c (chkp_get_check_result): Likewise.
468         * varasm.c (get_block_for_decl, use_blocks_for_decl_p, make_decl_rtl,
469         notice_global_symbol, assemble_variable, mark_decl_referenced,
470         build_constant_desc, output_constant_def_contents, do_assemble_alias,
471         make_decl_one_only, default_section_type_flags,
472         categorize_decl_for_section, default_encode_section_info): Likewise.
473         * trans-mem.c (requires_barrier): Likewise.
474         * gimple-expr.c (mark_addressable): Likewise.
475         * cfgexpand.c (add_scope_conflicts_1, expand_one_var,
476         expand_used_vars_for_block, clear_tree_used, stack_protect_decl_p,
477         expand_debug_expr): Likewise.
478         * tree-dump.c (dequeue_and_dump): Likewise.
479         * ubsan.c (instrument_bool_enum_load): Likewise.
480         * tree-pretty-print.c (print_declaration): Likewise.
481         * simplify-rtx.c (delegitimize_mem_from_attrs): Likewise.
482         * tree-ssa-uninit.c (warn_uninitialized_vars): Likewise.
483         * asan.c (asan_protect_global, instrument_derefs): Likewise.
484         * tree-into-ssa.c (rewrite_stmt, maybe_register_def,
485         pass_build_ssa::execute): Likewise.
486         * var-tracking.c (var_debug_decl, track_expr_p): Likewise.
487         * tree-ssa-loop-ivopts.c (force_expr_to_var_cost, split_address_cost):
488         Likewise.
489         * ipa-split.c (test_nonssa_use, consider_split, mark_nonssa_use):
490         Likewise.
491         * tree-inline.c (insert_debug_decl_map, remap_ssa_name,
492         can_be_nonlocal, remap_decls, copy_debug_stmt,
493         initialize_inlined_parameters, add_local_variables,
494         reset_debug_binding, replace_locals_op): Likewise.
495         * dse.c (can_escape): Likewise.
496         * ipa-devirt.c (compare_virtual_tables, referenced_from_vtable_p):
497         Likewise.
498         * tree-diagnostic.c (default_tree_printer): Likewise.
499         * tree-streamer-in.c (unpack_ts_decl_common_value_fields,
500         unpack_ts_decl_with_vis_value_fields,
501         lto_input_ts_decl_common_tree_pointers): Likewise.
502         * builtins.c (builtin_save_expr, fold_builtin_expect,
503         readonly_data_expr): Likewise.
504         * tree-ssa-structalias.c (new_var_info, get_constraint_for_ssa_var,
505         create_variable_info_for, set_uids_in_ptset, visit_loadstore):
506         Likewise.
507         * gimple-streamer-out.c (output_gimple_stmt): Likewise.
508         * gimplify.c (force_constant_size, gimplify_bind_expr,
509         gimplify_decl_expr, gimplify_var_or_parm_decl,
510         gimplify_compound_lval, gimplify_init_constructor,
511         gimplify_modify_expr, gimplify_asm_expr, gimplify_oacc_declare,
512         gimplify_type_sizes): Likewise.
513         * cgraphbuild.c (record_reference, record_type_list, mark_address,
514         mark_load, mark_store, pass_build_cgraph_edges::execute): Likewise.
515         * tree-ssa-live.c (mark_all_vars_used_1, remove_unused_scope_block_p,
516         remove_unused_locals): Likewise.
517         * tree-ssa-alias.c (ptr_deref_may_alias_decl_p, ptrs_compare_unequal,
518         ref_maybe_used_by_call_p_1, call_may_clobber_ref_p_1): Likewise.
519         * function.c (instantiate_expr, instantiate_decls_1,
520         setjmp_vars_warning, add_local_decl): Likewise.
521         * alias.c (ao_ref_from_mem, get_alias_set, compare_base_symbol_refs):
522         Likewise.
523         * tree-stdarg.c (find_va_list_reference, va_list_counter_struct_op,
524         va_list_ptr_read, va_list_ptr_write, check_all_va_list_escapes,
525         optimize_va_list_gpr_fpr_size): Likewise.
526         * tree-nrv.c (pass_nrv::execute): Likewise.
527         * tsan.c (instrument_expr): Likewise.
528         * tree-ssa-dce.c (remove_dead_stmt): Likewise.
529         * vtable-verify.c (verify_bb_vtables): Likewise.
530         * tree-dfa.c (ssa_default_def, set_ssa_default_def,
531         get_ref_base_and_extent): Likewise.
532         * toplev.c (wrapup_global_declaration_1, wrapup_global_declaration_2):
533         Likewise.
534         * tree-sra.c (static bool constant_decl_p, find_var_candidates,
535         analyze_all_variable_accesses): Likewise.
536         * tree-nested.c (get_nonlocal_debug_decl,
537         convert_nonlocal_omp_clauses, note_nonlocal_vla_type,
538         note_nonlocal_block_vlas, convert_nonlocal_reference_stmt,
539         get_local_debug_decl, convert_local_omp_clauses,
540         convert_local_reference_stmt, nesting_copy_decl, remap_vla_decls):
541         Likewise.
542         * tree-vect-data-refs.c (vect_can_force_dr_alignment_p): Likewise.
543         * stmt.c (decl_overlaps_hard_reg_set_p): Likewise.
544         * dbxout.c (dbxout_late_global_decl, dbxout_type_fields,
545         dbxout_symbol, dbxout_common_check): Likewise.
546         * expr.c (expand_assignment, expand_expr_real_2, expand_expr_real_1,
547         string_constant): Likewise.
548         * hsa.c (hsa_get_declaration_name): Likewise.
549         * passes.c (rest_of_decl_compilation): Likewise.
550         * tree-ssanames.c (make_ssa_name_fn): Likewise.
551         * tree-streamer-out.c (pack_ts_decl_common_value_fields,
552         pack_ts_decl_with_vis_value_fields,
553         write_ts_decl_common_tree_pointers): Likewise.
554         * stor-layout.c (place_field): Likewise.
555         * symtab.c (symtab_node::maybe_create_reference,
556         symtab_node::verify_base, symtab_node::make_decl_local,
557         symtab_node::copy_visibility_from,
558         symtab_node::can_increase_alignment_p): Likewise.
559         * dwarf2out.c (add_var_loc_to_decl, tls_mem_loc_descriptor,
560         decl_by_reference_p, reference_to_unused, rtl_for_decl_location,
561         fortran_common, add_location_or_const_value_attribute,
562         add_scalar_info, add_linkage_name, set_block_abstract_flags,
563         local_function_static, gen_variable_die, dwarf2out_late_global_decl,
564         optimize_one_addr_into_implicit_ptr,
565         optimize_location_into_implicit_ptr): Likewise.
566         * gimple-low.c (record_vars_into): Likewise.
567         * ipa-visibility.c (update_vtable_references): Likewise.
568         * tree-ssa-address.c (fixed_address_object_p, copy_ref_info):
569         Likewise.
570         * lto-streamer-out.c (tree_is_indexable, get_symbol_initial_value,
571         DFS::DFS_write_tree_body, write_symbol): Likewise.
572         * langhooks.c (lhd_warn_unused_global_decl,
573         lhd_set_decl_assembler_name): Likewise.
574         * attribs.c (decl_attributes): Likewise.
575         * except.c (output_ttype): Likewise.
576         * varpool.c (varpool_node::get_create, ctor_for_folding,
577         varpool_node::assemble_decl, varpool_node::create_alias): Likewise.
578         * fold-const.c (fold_unary_loc): Likewise.
579         * ipa-prop.c (ipa_compute_jump_functions_for_edge,
580         ipa_find_agg_cst_from_init): Likewise.
581         * omp-low.c (expand_omp_regimplify_p, expand_omp_taskreg,
582         expand_omp_target, lower_omp_regimplify_p,
583         grid_reg_assignment_to_local_var_p, grid_remap_prebody_decls,
584         find_link_var_op): Likewise.
585         * tree-chrec.c (chrec_contains_symbols): Likewise.
586         * tree-cfg.c (verify_address, verify_expr, verify_expr_location_1,
587         gimple_duplicate_bb, move_stmt_op, replace_block_vars_by_duplicates,
588         execute_fixup_cfg): Likewise.
590         PR tree-optimization/77901
591         * tree-ssa-reassoc.c (optimize_range_tests_var_bound): Only optimize
592         if ranges[i].exp is SSA_NAME when looking for >= and only when
593         ranges[i].exp is NULL or SSA_NAME when looking for the other
594         comparison.
596 2016-10-09  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
598         * ipa-cp.c (ipcp_alignment_lattice): Remove.
599         (ipcp_param_lattices): Remove field alignment.
600         (print_all_lattices): Remove call to ipcp_alignment_lattice::print.
601         (set_all_contains_variable): Remove call to
602         ipcp_alignment_lattice::set_to_bottom.
603         (initialize_node_lattices): Likewise.
604         (propagate_alignment_accross_jump_function): Remove.
605         (propagate_constants_accross_call): Remove call to
606         propagate_alignment_accross_jump_function.
607         (ipcp_store_alignment_results): Remove.
608         (ipcp_driver): Remove call to ipcp_store_alignment_results.
609         (propagate_bits_accross_jump_function): Handle ancestor jump function.
610         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Remove
611         pretty-printing of alignment jump function.
612         (ipa_set_jf_unknown): Remove assignment to jfunc->alignment.known.
613         (ipa_compute_jump_functions_for_edge): Adjust ipa_bits jump function for
614         alignments and remove computing ipa_alignment jump function.
615         (ipa_node_params_t::duplicate): Remove copying of src_trans->alignments.
616         (ipa_write_jump_functions): Remove streaming for ipa_alignment.
617         (ipa_read_jump_function): Remove reading of ipa_alignment.
618         (write_ipcp_transformation_info): Remove streaming for alignment
619         propagation summary.
620         (read_ipcp_transformation_info): Remove reading of alignment
621         propagation summary.
622         (ipcp_update_alignments): Remove.
623         (ipcp_update_bits): Adjust to set alignment for parameters of pointer
624         type.
625         (ipcp_transform_function): Remove call to ipcp_update_alignments()
626         and remove assignment to (*ipcp_transformations)[node->uid].alignments.
627         * ipa-prop.h (ipa_alignment): Remove.
628         (ipa_jump_func): Remove field alignment.
629         (ipcp_transformation_summary): Remove field alignments.
630         * doc/invoke.texi: Mark fipa-cp-alignment as obsolete.
631         * opts.c (default_options_table): Remove entry for fipa-cp-alignment.
632         (enable_fdo_optimizations): Remove checking for fipa-cp-alignment.
634 2016-10-08  Eric Botcazou  <ebotcazou@adacore.com>
636         * config/sparc/sparc.h (FIXED_REGISTERS): Add %icc.
638         * config/visium/visium.c (visium_expand_int_cstore): Revert latest
639         change.
640         (visium_expand_fp_cstore): Likewise.
642 2016-10-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
644         * diagnostic-core.h (warning_at_rich_loc_n): Declare.
645         * diagnostic.c (warning_at_rich_loc_n): New function.
646         (diagnostic_n_impl_richloc): Likewise.
647         (diagnostic_n_impl): Move most of the function to
648         diagnostic_n_impl_richloc and call it.
650 2016-10-08  Jakub Jelinek  <jakub@redhat.com>
652         * gen-pass-instances.awk: Rewritten.
653         * Makefile.in (pass-instances.def): Depend on $(PASSES_EXTRA), pass
654         $(PASSES_EXTRA) after passes.def to the script.
655         * config/i386/t-i386 (PASSES_EXTRA): Add i386-passes.def.
656         * config/i386/i386-passes.def: New file.
657         * config/i386/i386-protos.h (make_pass_insert_vzeroupper,
658         make_pass_stv): Declare.
659         * config/i386/i386.c (pass_stv::pass_stv): Initialize timode_p to
660         false.
661         (pass_stv::gate): Depending on timode_p member require TARGET_64BIT
662         or !TARGET_64BIT.
663         (pass_stv::clone, pass_stv::set_pass_param): New methods.
664         (pass_stv::timode_p): New non-static data member.
665         (ix86_option_override): Don't register passes here.
667         * doc/invoke.texi: Document accepting Else, fallthrough.
669         * doc/invoke.texi (-Wimplicit-fallthrough): Document FALLTHRU comment
670         style changes.
672         * doc/invoke.texi (-Wimplicit-fallthrough): Document the accepted
673         FALLTHRU comment styles.
675 2016-10-07  Andrew Pinski  <apinski@cavium.com>
677         * config/aarch64/aarch64-arches.def (AARCH64_ARCH): #undef at the end.
678         * config/aarch64/aarch64-cores.def (AARCH64_CORE): Likewise.
679         * config/aarch64/aarch64-fusion-pairs.def (AARCH64_FUSION_PAIR):
680         Likewise.
681         * config/aarch64/aarch64-option-extensions.def (AARCH64_OPT_EXTENSION):
682         Likewise.
683         * config/aarch64/aarch64-tuning-flags.def (AARCH64_EXTRA_TUNING_OPTION):
684         Likewise.
685         * config/aarch64/aarch64-opts.h (AARCH64_CORE): Don't #undef here.
686         (AARCH64_ARCH): Likewise.
687         * common/config/aarch64/aarch64-common.c (AARCH64_OPT_EXTENSION):
688         Likewise.
689         (AARCH64_CORE): Likewise.
690         (AARCH64_ARCH): Likewise.
691         * config/aarch64/aarch64-protos.h (AARCH64_FUSION_PAIR): Likewise.
692         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
693         * config/aarch64/aarch64.c (AARCH64_FUION_PAIR): Likewise.
694         (AARCH64_EXTRA_TUNING_OPTION): Likewise.
695         (AARCH64_ARCH): Likewise.
696         (AARCH64_CORE): Likewise.
697         * config/aarch64/aarch64.h (AARCH64_CORE): Likewise.
698         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Likewise.
699         (AARCH64_CORE): Likewise.
700         (AARCH64_ARCH): Likewise.
702 2016-10-06  Michael Meissner  <meissner@linux.vnet.ibm.com>
704         * config/rs6000/rs6000-c.c (rs6000_cpu_cpp_builtins): Split
705         -mfloat128 into -mfloat128-type that enables the IEEE 128-bit
706         floating point type infrastructre, and -mfloat128 that enables the
707         keyword.  Define __FLOAT128__ if -mfloat128, and __FLOAT128_TYPE__
708         if -mfloat128-type.  Define __ibm128 to be long double by default.
709         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Print whether
710         the IEEE 128-bit floating point type infrastructure should
711         automatically be enabled.
712         (rs6000_init_hard_regno_mode_ok): Switch to use -mfloat128-type
713         instead of -mfloat128 to enable KFmode.
714         (rs6000_option_override_internal): Split the option -mfloat128
715         into -mfloat128-type and -mfloat128.  On Linux PowerPC 64-bit
716         systems, automatically set -mfloat128-type, but don't enable it on
717         other operating systems.  Move setting the long double size and
718         IEEE quad support before the IEEE 128-bit floating point changes.
719         (rs6000_init_builtins): Do not create a unique type for __ibm128
720         if long double is IBM extended double, instead rely on __ibm128
721         being defined as 'long double'.  If -mfloat128-type and not
722         -mfloat128, create the KFmode type with an undocumented __ieee128
723         keyword.
724         (rs6000_init_libfuncs): Use -mfloat128-type instead of
725         -mfloat128 for tests about the types, but keep tests for
726         -mfloat128 to enable the keyword support.
727         (rs6000_complex_function_value): Likewise.
728         (rs6000_scalar_mode_supported_p): Likewise.
729         (rs6000_floatn_mode): Likewise.
730         (rs6000_c_mode_for_suffix): Likewise.
731         (rs6000_opt_masks): Add -mfloat128-type.
732         * config/rs6000/rs6000-cpus.def (POWERPC_MASKS): Add support for
733         -mfloat128-type being split from -mfloat128.  Add
734         -mfloat128-hardware, which was missing.
735         * config/rs6000/rs6000.opt (-mfloat128): Split -mfloat128 into
736         -mfloat128 and -mfloat128-type:
737         (-mfloat128-type): Likewise.
738         * config/rs6000/linux64.h (TARGET_FLOAT128_ENABLE_TYPE): Define so
739         that 64-bit Linux systems with enable -mfloat128-type by default
740         on VSX systems.
741         * config/rs6000/rs6000.h (TARGET_FLOAT128_ENABLE_TYPE): Likewise.
742         (FLOAT128_VECTOR_P): Switch IEEE 128-bit floating points to use
743         -mfloat128-type instead of -mfloat128.
744         (FLOAT128_2REG_P): Likewise.
745         (MASK_FLOAT128_TYPE): Likewise.
746         (ALTIVEC_ARG_MAX_RETURN): Likewise.
747         (RS6000_BTM_FLOAT128): Likewise.
748         (TARGET_FLOAT128): Poison old identifiers.
749         (OPTION_MASK_FLOAT128): Likewise.
750         (MASK_FLOAT128): Likewise.
751         * config/rs6000/rs6000.md (FP): Likewise.
752         (FLOAT128): Likewise.
753         (fix_trunc<mode>di2): Likewise.
754         (fixuns_trunc<IEEE128:mode><SDI:mode>2): Likewise.
755         (floatdi<mode>2): Likewise.
756         (floatuns<SDI:mode><IEEE128:mode>2): Likewise.
757         (neg<mode>2, FLOAT128 iterator): Likewise.
758         (abs<mode>2, FLOAT128 iterator): Likewise.
759         (ieee_128bit_negative_zero): Likewise.
760         (ieee_128bit_vsx_neg<mode>2): Likewise.
761         (ieee_128bit_vsx_neg<mode>2_internal): Likewise.
762         (ieee_128bit_vsx_abs<mode>2): Likewise.
763         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
764         (ieee_128bit_vsx_nabs<mode>2): Likewise.
765         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
766         (extendiftf2): Likewise.
767         (extendifkf2): Likewise.
768         (extendtfkf2): Likewise.
769         (trunciftf2): Likewise.
770         (truncifkf2): Likewise.
771         (trunckftf2): Likewise.
772         (trunctfif2): Likewise.
773         (extendkftf2): Likewise.
774         (trunctfkf2): Likewise.
776 2016-10-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
778         * simplify-rtx.c (simplify_immed_subreg): Zero-initialize tmp array
779         before merging in bytes to pass down to real_from_target.
781 2016-10-07  Richard Biener  <rguenther@suse.de>
783         * tree-ssa-propagate.c (replace_phi_args_in): Remove no longer
784         required hack.
785         (substitute_and_fold_dom_walker::before_dom_children):
786         Substitute and fold before pass specific folding to avoid
787         feeding that with SSA names that will be later released.
788         * tree-ssa-ccp.c (get_value_for_expr): Guard for new SSA names
789         introduced by folding and visited by evaluate_stmt called during
790         ccp_fold_stmt.
791         (likely_value): Likewise.
792         (evaluate_stmt): Likewise.
793         * tree-vrp.c (simplify_truth_ops_using_ranges): Fold modified stmt.
794         (simplify_div_or_mod_using_ranges): Likewise.
795         (simplify_min_or_max_using_ranges): Likewise.
796         (simplify_abs_using_ranges): Likewise.
797         (simplify_conversion_using_ranges): Likewise.
798         (simplify_float_conversion_using_ranges): Likewise.
799         (simplify_stmt_using_ranges): Likewise.
801 2016-10-07  Marek Polacek  <polacek@redhat.com>
803         * gimplify.c (should_warn_for_implicit_fallthrough): Check for
804         FALLTHROUGH_LABEL_P here...
805         (warn_implicit_fallthrough_r): ...not here.
807 2016-10-07  Bernd Schmidt  <bschmidt@redhat.com>
809         PR tree-optimization/77880
810         * expr.c (by_pieces_ninsns): Use unsigned HOST_WIDE_INT where
811         necessary.
813 2016-10-07  Marek Polacek  <polacek@redhat.com>
815         PR c++/77803
816         * gimplify.c (last_stmt_in_scope): Add check for FALLTHROUGH ().
818 2016-10-07  Richard Biener  <rguenther@suse.de>
820         * bitmap.h: Document constraints on bitmap modification while
821         iterating over it.
823 2016-10-07  Richard Biener  <rguenther@suse.de>
825         * bitmap.c (bitmap_elem_to_freelist): Set indx to -1.
826         * bitmap.h (bmp_iter_set): When advancing to the next element
827         check that we didn't remove the current one.
828         (bmp_iter_and): Likewise.
829         (bmp_iter_and_compl): Likewise.
830         * tree-ssa.c (release_defs_bitset): Do not remove worklist bit
831         we currently iterate on but keep a one-level queue.
832         * sched-deps.c (remove_from_deps): Do not clear current bit
833         but keep a one-level queue.
835 2016-10-07  Jakub Jelinek  <jakub@redhat.com>
837         PR tree-optimization/77664
838         * tree-ssa-reassoc.c (update_range_test): Also clear low and high
839         for the other ranges.
840         (optimize_range_tests_diff): Fix up formatting.
841         (optimize_range_tests_var_bound): New function.
842         (optimize_range_tests): Use it.
844 2016-10-07  Martin Liska  <mliska@suse.cz>
846         * coverage.c (build_gcov_exit_decl): Fix priority what
847         should be really 99.
849 2016-10-07  Richard Biener  <rguenther@suse.de>
851         * gimple-low.c (lower_gimple_bind): Clear DECL_CHAIN of
852         vars in gimple_bind_vars but not in BLOCK_VARS.
854 2016-10-07  Richard Biener  <rguenther@suse.de>
856         PR tree-optimization/77879
857         * tree-ssa-structalias.c (handle_const_call): Properly handle
858         NRV return slots.
859         (handle_pure_call): Likewise.
861 2016-10-06  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
863         * config/rs6000/rs6000.c (rs6000_elf_asm_out_constructor)
864         (rs6000_elf_asm_out_destructor): increase size of buf to avoid
865         possible overflow.
867 2016-10-06  Andrew Pinski  <apinski@cavium.com>
869         * config/aarch64/aarch64-cores.def: Add a comment before each
870         set of cores.
872 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
874         PR tree-optimization/77862
875         * tree-vrp.c (add_equivalence): Use get_value_range so that
876         num_vr_values is checked before accessing vr_values.
878 2016-10-06  Kugan Vivekanandarajah  <kuganv@linaro.org>
880         * tree-vrp.c (evrp_dom_walker::before_dom_children): Handle
881           POINTER_TYPE_P.
883 2016-10-05  Jeff Law  <law@redhat.com>
885         PR tree-optimization/71661
886         * tree-cfgcleanup.c (remove_forwarder_block_with_phi): Handle case when
887         removal of a forwarder exposes a new natural loop.
889 2016-10-06  Uros Bizjak  <ubizjak@gmail.com>
891         * config/i386/sse.md (andnot<mode>3): Add FALLTHRU comments.
892         Introduce ssesuffix variable.
893         (<mask_codefor><code><mode>3<mask_name>): Ditto.
894         (*<code><mode>3): Ditto.
896 2016-10-06  Jan Hubicka  <hubicka@ucw.cz>
898         * postreload.c (reload_cse_simplify): Skip also USE when detecting
899         noop move.
901 2016-10-06  Richard Biener  <rguenther@suse.de>
903         PR tree-optimization/77855
904         * tree-ssa-pre.c (prune_clobbered_mems): Queue exprs to remove
905         instead of removing the current item while iterating over the set
906         which is not safe.
908 2016-10-06  James Clarke  <jrtc27@jrtc27.com>
909             Eric Botcazou  <ebotcazou@adacore.com>
911         PR target/77759
912         * config/sparc/sparc.c (classify_data_t): Remove int_regs field.
913         (classify_registers): Don't set it
914         (function_arg_slotno): Don't initialize and test it.  Tidy up.
916 2016-10-06  Richard Biener  <rguenther@suse.de>
918         PR tree-optimization/77839
919         * tree-ssa-sccvn.c (set_ssa_val_to): Forbid value -> constant value
920         lattice transition.
922 2016-10-06  Martin Liska  <mliska@suse.cz>
924         * gcc.c: Set -fprofile-update=atomic when profiling is
925         enabled and -pthread is set.  Warn when one combines
926         -pthread and -fprofile-update=single for an app using
927         profiling code.
929 2016-10-06  Martin Liska  <mliska@suse.cz>
931         PR bootstrap/77788
932         * expmed.h (mul_highpart_cost_ptr): Add an gcc_assert.
933         * gimple-ssa-strength-reduction.c (slsr_process_cast):
934         Initialize a pointer to NULL.
935         (slsr_process_copy): Likewise.
936         * input.c (location_get_source_line): Likewise.
937         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
939 2016-10-05  Andrew Senkevich  <andrew.senkevich@intel.com>
941         * common/config/i386/i386-common.c (OPTION_MASK_ISA_PCOMMIT_UNSET,
942         OPTION_MASK_ISA_PCOMMIT_SET): Deleted definitions.
943         (ix86_handle_option): Deleted handle of OPT_mpcommit.
944         * config.gcc: Deleted pcommitintrin.h
945         * config/i386/pcommitintrin.h: Deleted file.
946         * config/i386/cpuid.h (bit_PCOMMIT): Deleted.
947         * config/i386/driver-i386.c (host_detect_local_cpu): Deleted pcommit
948         detection.
949         * config/i386/i386-c.c (ix86_target_macros_internal): Deleted define
950         __PCOMMIT__.
951         * config/i386/i386.c (ix86_target_string): Deleted -mpcommit.
952         (PTA_PCOMMIT): Deleted define.
953         (ix86_option_override_internal): Deleted handle of option.
954         (ix86_valid_target_attribute_inner_p): Deleted pcommit.
955         * config/i386/i386-builtin.def (IX86_BUILTIN_PCOMMIT,
956         __builtin_ia32_pcommit): Deleted.
957         * config/i386/i386.h (TARGET_PCOMMIT, TARGET_PCOMMIT_P): Deleted.
958         * config/i386/i386.md (unspecv): Deleted UNSPECV_PCOMMIT.
959         (pcommit): Deleted instruction.
960         * config/i386/i386.opt: Mention -mpcommit deprecation.
961         * config/i386/x86intrin.h: Deleted inclusion of pcommitintrin.h.
963 2016-10-05  Uros Bizjak  <ubizjak@gmail.com>
965         PR target/77874
966         * config/i386/sse.md (<mask_codefor><code><mode>3<mask_name>):
967         Remove wrong assert.
968         (<floatsuffix>float<sseintvecmodelower><mode>2<mask_name><round_name>:
969         Use <round_constraint> as operand 1 constraint.
971 2016-10-05  Jakub Jelinek  <jakub@redhat.com>
973         PR sanitizer/66343
974         * ubsan.c (ubsan_create_data): Call initialize_sanitizer_builtins here.
975         (ubsan_instrument_float_cast): And not here.
977         PR sanitizer/66343
978         * ubsan.c (ubsan_ids): New GTY(()) array.
979         (ubsan_type_descriptor, ubsan_create_data): Use ubsan_ids
980         instead of static local counters.
982 2016-10-05  Martin Sebor  <msebor@redhat.com>
984         PR bootstrap/77819
985         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Define macro.
986         * config/linux.c (gnu_libc_printf_pointer_format): Remove.
987         * targhooks.c [DEFAULT_LIBC == LIBC_UCLIBC) && SINGLE_LIBC]
988         (default_printf_pointer_format): Define function.
989         * targhooks.c (linux_printf_pointer_format): Define new function.
990         * targhooks.h (linux_printf_pointer_format): Declare.
991         (gnu_libc_printf_pointer_format): Remove declaration.
993 2016-10-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
995         * fold-const.c (native_encode_real): Fix logic for selecting offset
996         to write to when BYTES_BIG_ENDIAN.
998 2016-10-05  Wilco Dijkstra  <wdijkstr@arm.com>
1000         * builtins.c (fold_builtin_strchr): Remove function.
1001         (fold_builtin_strrchr): Likewise.
1002         (fold_builtin2): Remove strchr, index, strrchr, rindex cases.
1003         * gimple-fold.c (target_char_cst_p): New function.
1004         (gimple_fold_builtin_strchr) Add more foldings.
1005         (gimple_fold_builtin): Add index, strrchr, rindex cases.
1007 2016-10-05  Richard Biener  <rguenther@suse.de>
1009         PR middle-end/77863
1010         * genmatch.c (capture_info::walk_c_expr): Diagnose unknown
1011         capture ids in c-exprs.
1013 2016-10-05  Richard Biener  <rguenther@suse.de>
1015         PR middle-end/77826
1016         * genmatch.c (dt_operand::gen_match_op): Amend operand_equal_p
1017         with types_match for GIMPLE code gen to handle type mismatched
1018         constants properly.
1019         (dt_operand::gen): Adjust.
1020         * match.pd ((X /[ex] A) * A -> X): Properly handle converted
1021         and constant A.
1023 2016-10-05  Richard Biener  <rguenther@suse.de>
1025         * match.pd (copysign(x, CST) -> [-]abs (x)): New pattern.
1027 2016-10-05  Richard Biener  <rguenther@suse.de>
1029         PR middle-end/77842
1030         * genmatch.c (parser::parse_c_expr): Handle premature EOF.
1032 2016-10-05  Pierre-Marie de Rodat  <derodat@adacore.com>
1034         * dwarf2out.c (dwarf2out_imported_module_or_decl): Move DWARF
1035         version check to protect only DW_TAG_imported_module generation.
1037 2016-10-05  Richard Biener  <rguenther@suse.de>
1039         PR middle-end/55152
1040         * match.pd (min(a,-a) -> -abs(a)): New pattern.
1042 2016-10-04  Ian Lance Taylor  <iant@golang.org>
1044         * explow.c (allocate_dynamic_stack_space): Call
1045         do_pending_stack_adjust before handling flag_split_stack.
1047 2016-10-04  David Malcolm  <dmalcolm@redhat.com>
1049         * genattrtab.c (make_internal_attr): Supply dummy column number to
1050         file_location ctor.
1051         (main): Likewise.
1052         * genoutput.c (init_insn_for_nothing): Likewise.
1053         * gensupport.c (add_define_attr): Likewise.
1054         * read-md.c (message_at_1): Print column number.
1055         (fatal_with_file_and_line): Likewise.
1056         (rtx_reader::read_char): Track column numbers.
1057         (rtx_reader::unread_char): Likewise.
1058         (rtx_reader::rtx_reader): Initialize m_read_md_colno.
1059         (rtx_reader::handle_include): Stash and restore m_read_md_colno.
1060         (rtx_reader::handle_file): Initialize m_read_md_colno.
1061         (rtx_reader::get_current_location): Supply column number to
1062         file_location ctor.
1063         * read-md.h (struct file_location): Add field "colno".
1064         (file_location::file_location): Likewise.
1065         (rtx_reader::get_colno): New accessor.
1066         (rtx_reader::m_read_md_colno): New field.
1067         (rtx_reader::m_last_line_colno): New field.
1069 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1071         * doc/extend.texi (Java Exceptions): Remove.
1072         (java_interface): Remove.
1074 2016-10-04  Doug Gilmore  <doug.gilmore@imgtec.com>
1076         PR tree-optimization/77808
1077         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Check base_addr
1078         and addr are different before copying points-to information.
1080 2016-10-04  Uros Bizjak  <ubizjak@gmail.com>
1082         * config/i386/x86-tune.def (X86_TUNE_VECTORIZE_DOUBLE): Remove.
1083         * config/i386/i386.h (TARGET_VECTORIZE_DOUBLE): Remove.
1084         * config/i386/i386.c (ix86_add_stmt_cost): Use TARGET_BONNEL instead
1085         of !TARGET_VECTORIZE_DOUBLE when penalizing DFmode vector ops.
1087 2016-10-04  Richard Biener  <rguenther@suse.de>
1089         PR tree-optimization/77399
1090         * tree-ssa-forwprop.c (simplify_vector_constructor): Properly
1091         verify the target can convert.
1093 2016-10-04  Richard Biener  <rguenther@suse.de>
1095         PR middle-end/77833
1096         * explow.c (plus_constant): Verify the mode of the constant
1097         pool offset before calling plus_constant.
1099 2016-10-04  Richard Biener  <rguenther@suse.de>
1101         PR middle-end/77407
1102         * match.pd (X / abs (X) -> X < 0 ? -1 : 1): Drop vector
1103         type support, mark with :C.
1104         (X / -X -> -1): Mark with :C.
1106 2016-10-04  Jakub Jelinek  <jakub@redhat.com>
1108         * defaults.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Remove.
1109         * system.h (JCR_SECTION_NAME, TARGET_USE_JCR_SECTION): Poison.
1110         * doc/tm.texi.in (TARGET_USE_JCR_SECTION): Remove.
1111         * doc/tm.texi: Regenerated.
1112         * config/i386/mingw32.h (TARGET_USE_JCR_SECTION): Remove.
1113         * config/i386/cygming.h (TARGET_USE_JCR_SECTION): Remove.
1114         * config/darwin.h (JCR_SECTION_NAME): Remove.
1115         * config/pa/pa64-hpux.h (JCR_SECTION_NAME): Remove.
1116         * config/rs6000/aix71.h (TARGET_USE_JCR_SECTION): Remove.
1117         * config/rs6000/aix51.h (TARGET_USE_JCR_SECTION): Remove.
1118         * config/rs6000/aix52.h (TARGET_USE_JCR_SECTION): Remove.
1119         * config/rs6000/aix53.h (TARGET_USE_JCR_SECTION): Remove.
1120         * config/rs6000/aix61.h (TARGET_USE_JCR_SECTION): Remove.
1122 2016-10-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1124         * ipa-cp.c (propagate_bits_accross_jump_function): Introduce space
1125         between "because" and "param" in dump message in call to fprintf.
1127 2016-10-03  Jeff Law  <law@redhat.com>
1129         PR tree-optimization/71550
1130         PR tree-optimization/71403
1131         * tree-ssa-threadbackward.c: Include tree-vectorizer.h
1132         (profitable_jump_thread_path): Also return boolean indicating if
1133         the realized path will create an irreducible loop.
1134         Remove loop depth tests from 71403.
1135         (fsm_find_control_statement_thread_paths): Remove loop depth tests
1136         from 71403.  If threading will create an irreducible loop, then
1137         throw away loop iteration and related information.
1139 2016-10-03  Uros Bizjak  <ubizjak@gmail.com>
1141         * configure.ac (strict_warn): Merge -Wmissing-format-attribute and
1142         -Woverloaded-virtual checks for warning options.
1143         * configure: Regenerate.
1145 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1147         PR preprocessor/77699
1148         * input.c (maybe_grow): Don't allocate one byte extra headroom.
1149         (get_next_line): Return false on error.
1150         (read_next_line): Removed, use get_next_line instead.
1151         (read_line_num): Don't copy the line.
1152         (location_get_source_line): Don't use static data.
1153         (selftest::test_reading_source_line): Add more test cases.
1155 2016-10-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1157         Revert
1158         2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1160         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1161         (noce_process_if_block): Use it.
1163 2016-10-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1165         * doc/invoke.texi: Update -Wint-in-bool-context.
1167 2016-10-02  Jakub Jelinek  <jakub@redhat.com>
1169         * dwarf2out.c (output_fde, output_call_frame_info,
1170         dwarf2out_do_cfi_startproc, set_indirect_string,
1171         gen_internal_sym, output_die, output_line_info): Use
1172         MAX_ARTIFICIAL_LABEL_BYTES as char array sizes for
1173         ASM_GENERATE_INTERNAL_LABEL output.
1175 2016-10-01  Richard Biener  <rguenther@suse.de>
1177         PR middle-end/77798
1178         * genmatch.c (get_operand_type): Add operand position arg
1179         and handle COND_EXPR comparison operand with fixed boolean_type_node.
1180         (expr::gen_transform): Adjust.
1181         (dt_simplify::gen_1): Likewise.
1183 2016-10-01  Jakub Jelinek  <jakub@redhat.com>
1185         * config/i386/sse.md (<mask_codefor><code><mode>): Add FALLTHRU
1186         comments.  Simplify asserts, remove unnecessary conditions.
1187         Formatting fixes.
1188         (*<code><mode>3): Likewise.
1190 2016-09-30  Jakub Jelinek  <jakub@redhat.com>
1192         * doc/invoke.texi (-Wregister): Document.
1194 2016-09-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1196         * configure.ac: Split CHECKING_P into CHECKING_P and
1197         ENABLE_EXTRA_CHECKING.
1198         * configure: Regenerated.
1199         * config.in: Adjust commment of CHECKING_P.  Add ENABLE_EXTRA_CHECKING.
1200         * common.opt (flag_checking): Use CHECKING_P and ENABLE_EXTRA_CHECKING.
1202 2016-09-30  Prasad Ghangal  <prasad.ghangal@gmail.com>
1204         PR other/31566
1205         * gcc.c (process_command): For @filename handling, output
1206         the correct name if the file does not exist.
1208 2016-09-30  Marek Polacek  <polacek@redhat.com>
1210         * config/aarch64/aarch64-simd.md: Adjust fall through comments.
1211         * config/alpha/predicates.md: Likewise.
1213 2016-09-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1215         * ifcvt.c (noce_try_avoid_const_materialization): New function.
1216         (noce_process_if_block): Use it.
1218 2016-09-30  Martin Liska  <mliska@suse.cz>
1220         * doc/invoke.texi: Document asan-use-after-return that
1221         it's disabled by default in runtime.
1223 2016-09-30  Richard Biener  <rguenther@suse.de>
1225         * tree-vrp.c (intersect_ranges): If we failed to handle
1226         the intersection choose a constant singleton range if available.
1228 2016-09-30  Richard Biener  <rguenther@suse.de>
1230         PR tree-optimization/77399
1231         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
1232         float <-> int conversions.
1234 2016-09-30  Alan Modra  <amodra@gmail.com>
1236         * config/rs6000/rs6000.c (rs6000_opt_vars): Revert last change.
1238 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1240         * config/i386/driver-i386.c (host_detect_local_cpu): Check maximum
1241         ext_level before calling CPUID with 0x80000008.
1242         Simplify xgetbv checks.
1244 2016-09-29  David Malcolm  <dmalcolm@redhat.com>
1246         * Makefile.in (OBJS): Add print-rtl-function.o.
1247         * print-rtl-function.c: New file.
1248         * print-rtl.h (print_rtx_function): New decl.
1250 2016-09-29  Uros Bizjak  <ubizjak@gmail.com>
1252         PR target/77756
1253         * config/i386/cpuid.h (__get_cpuid_count): New.
1254         (__get_cpuid): Rename __level to __leaf.
1256 2016-09-29  Marek Polacek  <polacek@redhat.com>
1258         * genattrtab.c (write_attr_case): Also emit FALLTHRU marker.
1260 2016-09-29  Bernd Schmidt  <bschmidt@redhat.com>
1262         * builtins.c (expand_builtin_memcmp): don't swap args unless
1263         result is only being compared with zero.
1265 2016-09-29  Marek Polacek  <polacek@redhat.com>
1267         * dwarf2out.c (loc_descriptor): Add fall through comment.
1268         (add_const_value_attribute): Likewise.
1270 2016-09-29  Matthew Wahab  <matthew.wahab@arm.com>
1272         * config/arm/arm.md (*arm_movsi_insn): Replace "t2" arch attribute
1273         with "v6t2".  Move "arch" attribute above "pool_range".
1274         * config/arm/vfp.md (*arm_movhi_vfp): Replace "t2" arch attribute
1275         with "v6t2".
1276         (*thumb2_movhi_vfp): Likewise.
1277         (*arm_movhi_fp16): Likewise.
1278         (*thumb2_movhi_fp16): Likewise.
1279         (*arm_movsi_vfp): Remove "arch" attribute.
1280         (*thumb2_movsi_vfp): Likewise.
1282 2016-09-29  Martin Liska  <mliska@suse.cz>
1284         * doc/extend.texi: Remove limitation of Objective C for
1285         __attribute__((constructor)) and __attribute__((destructor)).
1287 2016-09-29  Richard Biener  <rguenther@suse.de>
1289         PR tree-optimization/77768
1290         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1291         Handle stores to readonly memory when removing redundant stores.
1293 2016-09-29  Richard Biener  <rguenther@suse.de>
1295         PR middle-end/77407
1296         * match.pd: Add X / abs (X) -> X < 0 ? -1 : 1 and
1297         X / -X -> -1 simplifications.
1299 2016-09-29  Richard Biener  <rguenther@suse.de>
1301         PR middle-end/55152
1302         * match.pd: Add max(a,-a) -> abs(a) pattern.
1303         * tree-ssa-phiopt.c (minmax_replacement): Disable for
1304         HONOR_SIGNED_ZEROS types.
1306 2016-09-29  James Greenhalgh  <james.greenhalgh@arm.com>
1308         * defaults.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Remove.
1309         * system.h (TARGET_FLT_EVAL_METHOD_NON_DEFAULT): Poison.
1311 2016-09-29  Richard Biener  <rguenther@suse.de>
1313         * tree-vrp.c (set_defs_to_varying): New helper avoiding
1314         writing to vr_const_varying.
1315         (vrp_initialize): Call it.
1316         (vrp_visit_stmt): Likewise.
1317         (evrp_dom_walker::before_dom_children): Likewise.
1319 2016-09-29  Richard Biener  <rguenther@suse.de>
1321         * tree-vect-stmts.c (vectorizable_load): Avoid emitting vector
1322         constructors with vector elements.
1324 2016-09-29  Richard Biener  <rguenther@suse.de>
1326         PR tree-optimization/77768
1327         * tree-ssa-sccvn.c (visit_reference_op_store): Properly deal
1328         with stores to a place we know has a constant value.
1330 2016-09-29  Alan Modra  <amodra@gmail.com>
1332         * config/rs6000/sysv4.opt (mgnu-attribute): New option.
1333         * doc/invoke.texi: Document it.
1334         * config/rs6000/rs6000.c (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): Define.
1335         (rs6000_passes_float): Comment.
1336         (rs6000_passes_long_double): New static var.
1337         (call_ABI_of_interest): Return false unless rs6000_gnu_attr is set.
1338         (init_cumulative_args): Set up to emit fp .gnu_attribute for
1339         ELF 64-bit ABIs as well as 32-bit ELF.  Correct rs6000_passes_float
1340         to include fp values returned in vectors.
1341         Set rs6000_passes_long_double.
1342         (rs6000_function_arg_advance_1): Likewise for function args.
1343         (rs6000_elf_file_end): Emit fp .gnu_attribute for ELF 64-bit ABIs,
1344         and SPE.  Emit long double tag value too.
1345         (rs6000_opt_vars): Add gnu-attr.
1346         * configure.ac (HAVE_LD_PPC_GNU_ATTR_LONG_DOUBLE): New ppc32 test.
1347         * configure: Regenerate.
1348         * config.in: Regenerate.
1350 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
1352         * gimple-ssa-sprintf.c (pass_sprintf_length::gate): Use x > 0 instead
1353         of 0 < x.
1354         (format_floating, format_string, format_directive,
1355         get_destination_size, pass_sprintf_length::handle_gimple_call):
1356         Likewise.
1358 2016-09-28  Jakub Jelinek  <jakub@redhat.com>
1360         * gimple-ssa-sprintf.c: Fix comment formatting.
1361         (format_integer): Use is_gimple_assign.
1362         (pass_sprintf_length::handle_gimple_call): Use gimple_call_builtin_p
1363         and gimple_call_fndecl.  Reorder case BUILT_IN_SPRINTF_CHK.  Fix up
1364         BUILT_IN_SNPRINTF_CHK comment.  Replace "to to" with "to" in comment.
1365         (pass_sprintf_length::execute): Use is_gimple_call.
1367 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1369         * gimple-fold.c (gimple_fold_builtin): After failing to fold
1370         strchr, also try the generic folding.
1372 2016-09-28  Martin Sebor  <msebor@redhat.com>
1374         PR c/77762
1375         * gimple-ssa-sprintf.c (pass_sprintf_length::handle_gimple_call):
1376         Fix typos.
1378 2016-09-28  Martin Sebor  <msebor@redhat.com>
1380         PR middle-end/77683
1381         * gimple-ssa-sprintf.c (format_integer): Fail gracefully when
1382         length modifier is not expected.
1383         (format_floating): Ignore l length modifier and fail gracefuly
1384         when it isn't one of the other expected ones.
1386 2016-09-28  Martin Sebor  <msebor@redhat.com>
1388         PR bootstrap/77753
1389         * varasm.c (assemble_addr_to_section): Increase local buffer size.
1391 2016-09-27  Richard Biener  <rguenther@suse.de>
1393         * dwarf2out.c (cu_die_list): New global.
1394         (dwarf2out_finish): Walk cu_die_list instead of limbo DIEs.  Add
1395         main_comp_unit_die to cu_die_list if we created it.
1396         Move break_out_includes ...
1397         (dwarf2out_early_finish): ... here.  Push created CU DIEs onto
1398         the cu_die_list.
1400 2016-09-28  Richard Biener  <rguenther@suse.de>
1402         * dwarf2out.c (struct die_struct): Add removed flag.
1403         (lookup_type_die): If the DIE is marked as removed, clear
1404         TYPE_SYMTAB_DIE and return NULL.
1405         (lookup_decl_die): If the DIE is marked as removed, remove it
1406         from the hash and return NULL.
1407         (mark_removed): New helper.
1408         (prune_unused_types_prune): Call it for removed DIEs.
1409         (gen_subprogram_die): Move the premark_used_types call to after
1410         DIEs for the functions scopes are generated.
1411         (process_scope_var): Do not re-create pruned types or type decls.
1412         Make sure to also re-parent type decls.
1413         (dwarf2out_finish): Move unused type pruning and debug_types
1414         handling ...
1415         (dwarf2out_early_finish): ... here.
1417 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
1419         * config/arc/arc-c.c: New file.
1420         * config/arc/arc-c.def: Likewise.
1421         * config/arc/t-arc: Likewise.
1422         * config.gcc: Include arc-c.o as c and cpp object.
1423         * config/arc/arc-protos.h (arc_cpu_cpp_builtins): Add prototype.
1424         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Use
1425         arc_cpu_cpp_builtins.
1427 2016-09-29  Claudiu Zissulescu  <claziss@synopsys.com>
1429         * config/arc/arc.md (*rotrsi3_cnt1): New pattern.
1430         (*ashlsi2_cnt1, *lshrsi3_cnt1, *ashrsi3_cnt1): Likewise.
1432 2016-09-28  Nathan Sidwell  <nathan@acm.org>
1434         * gimple-pretty-print.c (dump_gimple_call_args): Simplify "' "
1435         printing.
1437 2016-09-28  Wilco Dijkstra  <wdijkstr@arm.com>
1439         PR tree-optimization/61056
1440         * gimple-fold.c (gimple_fold_builtin_strchr):
1441         New function to optimize strchr (s, 0) to strlen.
1442         (gimple_fold_builtin): Add BUILT_IN_STRCHR case.
1444 2016-09-27  Robin Dapp  <rdapp@linux.vnet.ibm.com>
1446         PR tree-optimization/77724
1447         * tree-vect-loop-manip.c (create_intersect_range_checks_index):
1448         Add tree_fits_shwi_p check.
1450 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1452         * auto-inc-dec.c (try_merge): Remove break after return.
1453         * cselib.c (autoinc_split): Likewise.
1454         * explow.c (promote_mode): Likewise.
1455         * fixed-value.c (fixed_arithmetic): Likewise.
1456         * hsa.c (hsa_internal_fn::get_arity): Likewise.
1457         * rtlanal.c (modified_between_p, modified_in_p): Likewise.
1458         * trans-mem.c (get_attrs_for): Likewise.
1459         * tree-if-conv.c (if_convertible_stmt_p): Likewise.
1460         * tree-vrp.c (simplify_stmt_using_ranges): Likewise.
1461         * config/aarch64/aarch64-builtins.c (aarch64_fold_builtin): Likewise.
1462         * config/aarch64/aarch64.c (aarch64_get_condition_code_1): Likewise.
1463         * config/c6x/c6x.c (c6x_get_unit_specifier): Likewise.
1464         * config/cr16/cr16.c (legitimate_pic_operand_p): Likewise.
1465         * config/cris/cris.c (cris_op_str): Likewise.
1466         * config/mn10300/mn10300.c (cc_flags_for_code): Likewise.
1467         * config/tilepro/tilepro.c (tilepro_emit_setcc_internal_di): Likewise.
1469 2016-09-27  Nathan Sidwell  <nathan@codesourcery.com>
1471         * internal-fn.h (IFN_UNIQUE_CODES, IFN_GOACC_LOOP_CODES,
1472         IFN_GOACC_REDUCTION_CODES): New.
1473         (enum ifn_unique_kind, enum ifn_goacc_loop_kind, enum
1474         ifn_goacc_reduction_kind): Use them.
1475         * gimple-pretty-print.c (dump_gimple_call_args): Decode first arg
1476         of internal functions, when applicable.
1478 2016-09-27  Maciej W. Rozycki  <macro@imgtec.com>
1480         * config/mips/constraints.md (d): Fix documentation.
1481         * doc/md.texi (Machine Constraints): Update accordingly.
1483 2016-09-27  Richard Biener  <rguenther@suse.de>
1485         * dwarf2out.c (dwarf2out_init): Move text_section_line_info,
1486         cur_line_info_table initialization ...
1487         (dwarf2out_assembly_start): ... here.
1489 2016-09-27  Matthew Wahab  <matthew.wahab@arm.com>
1491         * config/arm/arm.md (*arm_movsi_insn): Add "arch" attribute.
1492         * config/arm/vfp.md (*arm_movhi_vfp): Likewise.
1493         (*thumb2_movhi_vfp): Likewise.
1494         (*arm_movhi_fp16): Remove predication operand from VMOV.F16
1495         template.  Expand predicable attribute to mark VMOV.F16 as not
1496         predicable.  Add "arch" attribute.
1497         (*thumb2_movhi_fp16): Likewise.
1498         (*arm_movsi_vfp): Break a long line.  Add "arch" attribute.
1499         (*thumb2_movsi_vfp): Add "arch" attribute.
1501 2016-09-27  David Edelsohn  <dje.gcc@gmail.com>
1503         * config/rs6000/rs6000.c (rs6000_output_symbol): Don't modify
1504         VAR_DECL string.
1506 2016-09-27  Marek Polacek  <polacek@redhat.com>
1508         * config/ia64/ia64.c (ia64_print_operand): Adjust fall through
1509         comment.
1511         * config/c6x/c6x.h: Adjust fall through comment.
1512         * config/sh/sh.c (final_prescan_insn): Likewise.
1513         * config/visium/visium.c (visium_expand_int_cstore): Likewise.
1514         (visium_expand_fp_cstore): Likewise.
1516 2016-09-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1518         * config/arm/arm.c (const_ok_for_op): Use "Fall through" comment form
1519         expected by -Wimplicit-fallthrough.
1520         (thumb1_size_rtx_costs): Likewise.
1521         (thumb2_reorg): Likewise.
1522         (tls_mentioned_p): Add "Fall through" comment.
1523         (thumb2_reorg): Likewise.
1524         * config/arm/arm-builtins.c (arm_expand_neon_args): Use "Fall through"
1525         comment form expected by -Wimplicit-fallthrough.
1527 2016-09-27  Martin Liska  <mliska@suse.cz>
1529         PR gcov-profile/46266
1530         * input.h (RESERVED_LOCATION_P): New macro.
1531         * profile.c (branch_prob): Use RESERVED_LOCATION_P and
1532         instread of comparison with UNKNOWN_LOCATION.
1534 2016-09-27  Richard Biener  <rguenther@suse.de>
1536         PR tree-optimization/77745
1537         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
1538         When removing redundant stores make sure to check compatibility
1539         of the TBAA state for downstream accesses.
1540         * tree-ssa-sccvn.c (visit_reference_op_store): Likewise for when
1541         value-numbering virtual operands for store matches.
1543 2016-09-27  Oleg Endo  <olegendo@gcc.gnu.org>
1545         PR target/51244
1546         * config/sh/sh.c (sh_rtx_costs): Fix return value of SET of movt and
1547         movrt patterns.  Match them before anything else in the SET case.
1549 2016-09-27  Martin Liska  <mliska@suse.cz>
1551         PR gcov-profile/7970
1552         PR gcov-profile/16855
1553         PR gcov-profile/44779
1554         * coverage.c (build_gcov_exit_decl): New function.
1555         (coverage_obj_init): Call the function and generate __gcov_exit
1556         destructor.
1557         * doc/gcov.texi: Document when __gcov_exit function is called.
1559 2016-09-27  Marek Polacek  <polacek@redhat.com>
1561         PR bootstrap/77751
1562         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1563         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Use
1564         -Wno-error instead of -Wno-implicit-fallthrough.
1566 2016-09-27  Martin Liska  <mliska@suse.cz>
1568         PR bootstrap/77749
1569         * gcov-counter.def: Remove GCOV_COUNTER_V_DELTA.
1571 2016-09-27  Jakub Jelinek  <jakub@redhat.com>
1573         * combine.c (simplify_comparison): Add canonical FALLTHROUGH comments.
1574         * config/i386/i386.c (ix86_dep_by_shift_count_body): Add FALLTHROUGH
1575         comments.  Remove break after return.
1576         (ix86_fp_compare_code_to_integer, has_dispatch,
1577         ix86_simd_clone_usable): Remove break after return.
1579 2016-09-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1581         PR rlt-optimization/77714
1582         * lra-eliminations.c (eliminate_regs_in_insn): Avoid alias on
1583         REG_EQUAL note.
1585 2016-09-27  Kugan Vivekanandarajah  <kuganv@linaro.org>
1587         PR ipa/77677
1588         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Use
1589         extract_range_from_unary_expr to convert value_range.
1590         * tree-vrp.c (extract_range_from_unary_expr_1): Rename to.
1591         (extract_range_from_unary_expr): This.
1592         * tree-vrp.h (extract_range_from_unary_expr): Declare.
1594 2016-09-27  Segher Boessenkool  <segher@kernel.crashing.org>
1596         * config/rs6000/rs6000.md (movcc_internal1): Disparage using CTR or LR.
1598 2016-09-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
1600         * config/i386/i386.c (ix86_print_operand)
1601         [HAVE_AS_IX86_CMOV_SUN_SYNTAX]: Add gcc_fallthrough.
1602         * config/sparc/sparc.c (check_pic): Add fallthrough comment.
1603         (epilogue_renumber): Likewise.
1605 2016-09-26  Kugan Vivekanandarajah  <kuganv@linaro.org>
1607         PR middle-end/77719
1608         * tree-ssa-reassoc.c (make_new_ssa_for_def): Use gimple_get_lhs
1609         to get lhs instead of gimple_assign_lhs as stmt can be builtins too.
1611 2016-09-26  Thomas Preud'homme  <thomas.preudhomme@arm.com>
1613         * tree.h (memmodel_from_int, memmodel_base, is_mm_relaxed,
1614         is_mm_consume, is_mm_acquire, is_mm_release, is_mm_acq_rel,
1615         is_mm_seq_cst, is_mm_sync): Move to ...
1616         * memmodel.h: This.  New file.
1617         * builtins.c: Include memmodel.h.
1618         * optabs.c: Likewise.
1619         * tsan.c: Likewise.
1620         * config/aarch64/aarch64.c: Likewise.
1621         * config/alpha/alpha.c: Likewise.
1622         * config/arm/arm.c: Likewise.
1623         * config/i386/i386.c: Likewise.
1624         * config/ia64/ia64.c: Likewise.
1625         * config/mips/mips.c: Likewise.
1626         * config/rs6000/rs6000.c: Likewise.
1627         * config/sparc/sparc.c: Likewise.
1628         * genconditions.c: Include memmodel.h in generated file.
1629         * genemit.c: Likewise.
1630         * genoutput.c: Likewise.
1631         * genpeep.c: Likewise.
1632         * genpreds.c: Likewise.
1633         * genrecog.c: Likewise.
1635 2016-09-26  David Malcolm  <dmalcolm@redhat.com>
1637         * read-rtl.c (read_rtx_code): Rename local "i" to "idx", and use
1638         "c" instead when parsing characters.  Move operand parsing into...
1639         (read_rtx_operand): ...this new function, renaming "i" to "idx",
1640         and tightening the scope of various locals.
1642 2016-09-26  Liu Hao  <lh_mouse@126.com>
1644         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Fix typo.
1646 2016-09-26  Marek Polacek  <polacek@redhat.com>
1648         * system.h: Use __has_attribute to check whether the fallthrough
1649         attribute is supported.
1651 2016-09-26  Marek Polacek  <polacek@redhat.com>
1653         * ipa-inline-analysis.c (find_foldable_builtin_expect): Use
1654         gimple_call_internal_p.
1655         * ipa-split.c (find_return_bb): Likewise.
1656         (execute_split_functions): Likewise.
1657         * omp-low.c (dump_oacc_loop_part): Likewise.
1658         (oacc_loop_xform_head_tail): Likewise.
1659         * predict.c (predict_loops): Likewise.
1660         * sanopt.c (pass_sanopt::execute): Likewise.
1661         * tree-cfg.c (get_abnormal_succ_dispatcher): Likewise.
1662         * tree-parloops.c (oacc_entry_exit_ok_1): Likewise.
1663         * tree-stdarg.c (gimple_call_ifn_va_arg_p): Remove function.
1664         (expand_ifn_va_arg_1): Use gimple_call_internal_p.
1665         (expand_ifn_va_arg): Likewise.
1666         * tree-vect-loop.c (vect_determine_vectorization_factor): Likewise.
1667         (optimize_mask_stores): Likewise.
1668         * tree-vect-stmts.c (vect_simd_lane_linear): Likewise.
1669         (vect_transform_stmt): Likewise.
1670         * tree-vectorizer.c (vect_loop_vectorized_call): Likewise.
1671         * tsan.c (instrument_memory_accesses): Likewise.
1673 2016-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1674             Alexander Monakov  <amonakov@ispras.ru>
1676         * regrename.c (rename_chains): Check
1677         HARD_FRAME_POINTER_IS_FRAME_POINTER rather than
1678         HARD_FRAME_POINTER_REGNUM when picking unavailable registers.
1679         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
1681 2016-09-26  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
1683         * config/s390/s390.c (s390_rtx_costs): Add /* fallthrough */.
1684         (s390_sched_score): Likewise.
1686 2016-09-26  Martin Liska  <mliska@suse.cz>
1688         * doc/gcov.texi: Update program output of gcov tool.
1690 2016-09-26  Martin Liska  <mliska@suse.cz>
1692         PR gcov-profile/23332
1693         * profile.c (instrument_values): Do not handle HIST_TYPE_CONST_DELTA.
1694         * tree-profile.c (gimple_gen_const_delta_profiler): Remove.
1695         * value-prof.c (dump_histogram_value): Do not handle
1696         HIST_TYPE_CONST_DELTA.
1697         (stream_in_histogram_value): Likewise.
1698         (gimple_find_values_to_profile): Likewise.
1699         * value-prof.h (enum hist_type): Likewise.
1701 2016-09-26  Martin Liska  <mliska@suse.cz>
1703         * common.opt: Exclude SANITIZE_UNREACHABLE and SANITIZE_RETURN
1704         from default sanitize recover values.
1705         * doc/invoke.texi: Fix documentation related to -fsanitize=leak,
1706         -fsanitize=address, -fsanitize=thread and -fsanitize-recover.
1707         * flag-types.h: Replace couple of 1 << x to 1UL << x, make it
1708         consistent.
1709         * opts.c (finish_options): Do a generic loop over options
1710         that can be recovered.
1711         (parse_sanitizer_options): Exclude SANITIZE_UNREACHABLE and
1712         SANITIZE_RETURN.
1713         (common_handle_option): Likewise.
1714         * opts.h: Declare can_recover to sanitizer_opts_s.
1716 2016-09-26  Andre Vieira  <andre.simoesdiasvieira@arm.com>
1718         * target.def(elf_flags_numeric): Change documentation to present tense.
1719         * doc/tm.texi: Regenerate.
1721 2016-09-26  Marek Polacek  <polacek@redhat.com>
1723         PR c/7652
1724         * Makefile.in (insn-attrtab.o-warn, insn-dfatab.o-warn,
1725         insn-latencytab.o-warn, insn-output.o-warn, insn-emit.o-warn): Add
1726         -Wno-switch-fallthrough.
1727         * builtins.c (expand_builtin_int_roundingfn_2): Add gcc_fallthrough.
1728         (expand_builtin): Likewise.
1729         * config/rs6000/rs6000.c (rs6000_builtin_vectorized_libmass): Likewise.
1730         * convert.c (convert_to_real_1): Likewise.
1731         (convert_to_integer_1): Likewise.
1732         * final.c (output_alternate_entry_point): Likewise.
1733         * genattrtab.c (make_canonical): Likewise.
1734         (write_test_expr): Likewise.
1735         * genpreds.c (validate_exp): Likewise.
1736         * gimple-ssa-strength-reduction.c
1737         (find_candidates_dom_walker::before_dom_children): Likewise.
1738         * godump.c (go_format_type): Likewise.
1739         * reload1.c (elimination_effects): Likewise.
1740         * resource.c (mark_referenced_resources): Likewise.
1741         (mark_set_resources): Likewise.
1742         * tree-ssa-loop-ivopts.c (find_deriving_biv_for_expr): Likewise.
1743         * varasm.c (output_addressed_constants): Likewise.
1745 2016-09-26  Marek Polacek  <polacek@redhat.com>
1747         PR c/7652
1748         * common.opt (Wimplicit-fallthrough): New option.
1749         * doc/extend.texi: Document statement attributes and the fallthrough
1750         attribute.
1751         * doc/invoke.texi: Document -Wimplicit-fallthrough.
1752         * gimple.h (gimple_call_internal_p): New function.
1753         * gimplify.c (struct gimplify_ctx): Add in_switch_expr.
1754         (struct label_entry): New struct.
1755         (find_label_entry): New function.
1756         (case_label_p): New function.
1757         (collect_fallthrough_labels): New function.
1758         (last_stmt_in_scope): New function.
1759         (should_warn_for_implicit_fallthrough): New function.
1760         (warn_implicit_fallthrough_r): New function.
1761         (maybe_warn_implicit_fallthrough): New function.
1762         (expand_FALLTHROUGH_r): New function.
1763         (expand_FALLTHROUGH): New function.
1764         (gimplify_switch_expr): Call maybe_warn_implicit_fallthrough and
1765         expand_FALLTHROUGH for the innermost GIMPLE_SWITCH.
1766         (gimplify_label_expr): New function.
1767         (gimplify_case_label_expr): Set location.
1768         (gimplify_expr): Call gimplify_label_expr.
1769         * internal-fn.c (expand_FALLTHROUGH): New function.
1770         * internal-fn.def (FALLTHROUGH): New internal function.
1771         * langhooks.c (lang_GNU_OBJC): New function.
1772         * langhooks.h (lang_GNU_OBJC): Declare.
1773         * system.h (gcc_fallthrough): Define.
1774         * tree-core.h: Add FALLTHROUGH_LABEL_P comment.
1775         * tree.h (FALLTHROUGH_LABEL_P): Define.
1777 2016-09-26  Richard Biener  <rguenther@suse.de>
1779         * dwarf2out.c (stripattributes): Remove unused function.
1780         (DEBUG_NORM_MACINFO_SECTION): Rename to DEBUG_MACINFO_SECTION.
1781         Push dwarf_split_debug_info handling into init_sections_and_labels.
1782         (DEBUG_NORM_MACRO_SECTION): Likewise to DEBUG_MACRO_SECTION.
1783         (DEBUG_MACRO_SECTION_FLAGS): Remove.
1784         (debug_macinfo_section_name): New global.
1785         (output_macinfo): Use debug_macinfo_section_name.
1786         (init_sections_and_labels): Split out section and label generation
1787         from dwarf2out_init.  Set debug_macinfo_section_name.
1788         (dwarf2out_init): Move text section label generation and emission
1789         to ...
1790         (dwarf2out_assembly_start): ... here.
1791         (dwarf2out_finish): Call init_sections_and_labels before DWARF
1792         output starts.
1794 2016-09-26  Richard Biener  <rguenther@suse.de>
1796         PR debug/77692
1797         * cgraphunit.c (analyze_functions): Before early removing
1798         global vars calls the late_global_decl debug handler mark
1799         the variable as readonly.
1801 2016-09-25  Oleg Endo  <olegendo@gcc.gnu.org>
1803         PR target/51244
1804         * config/sh/sh.c (sh_movt_set_dest, sh_movrt_set_dest): Add overloads.
1805         (sh_rtx_costs): Handle SET of movt and movrt patterns.
1806         * cnofig/sh/sh-protos.h (sh_movt_set_dest, sh_movrt_set_dest): Forward
1807         declare new overloads.
1808         * config/sh/sh.md (*cset_zero): Add variant that takes a treg_set_expr
1809         operand.
1811 2016-09-24  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1813         * config/rs6000/rs6000.c (expand_block_compare, do_load_for_compare):
1814         Change TARGET_LITTLE_ENDIAN to !BYTES_BIG_ENDIAN.
1816 2016-09-24  David Edelsohn  <dje.gcc@gmail.com>
1818         * configure.ac (gcc_cv_as_aix_dwloc): Fix typo in assembly fragment.
1819         * configure: Regenerate.
1821 2016-09-24  Marek Polacek  <polacek@redhat.com>
1823         PR c/77490
1824         * doc/invoke.texi: Document -Wbool-operation.
1826 2016-09-23  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
1828         * config/rs6000/rs6000.md (cmpmemsi): New define_expand.
1829         * config/rs6000/rs6000.c (expand_block_compare): New function used by
1830         cmpmemsi pattern to do builtin expansion of memcmp ().
1831         (compute_current_alignment): Add helper function for
1832         expand_block_compare used to compute alignment as the compare proceeds.
1833         (select_block_compare_mode): Used by expand_block_compare to select
1834         the mode used for reading the next chunk of bytes in the compare.
1835         (do_load_for_compare): Used by expand_block_compare to emit the load
1836         insns for the compare.
1837         (rs6000_emit_dot_insn): Moved this function to avoid a forward
1838         reference from expand_block_compare ().
1839         * config/rs6000/rs6000-protos.h (expand_block_compare): Add a
1840         prototype for this function.
1841         * config/rs6000/rs6000.opt (mblock-compare-inline-limit): Add a new
1842         target option for controlling how much code inline expansion of
1843         memcmp() will be allowed to generate.
1845 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
1847         * hooks.c (hook_bool_bool_false, hook_bool_bool_gcc_optionsp_false,
1848         hook_bool_mode_false, hook_bool_mode_true,
1849         hook_bool_mode_const_rtx_false, hook_bool_mode_const_rtx_true,
1850         hook_bool_mode_rtx_false, hook_bool_mode_rtx_true,
1851         hook_bool_const_rtx_insn_const_rtx_insn_true,
1852         hook_bool_mode_uhwi_false, hook_void_FILEptr_constcharptr,
1853         hook_bool_FILEptr_rtx_false, hook_bool_gsiptr_false,
1854         hook_bool_const_tree_hwi_hwi_const_tree_false,
1855         hook_bool_const_tree_hwi_hwi_const_tree_true,
1856         default_can_output_mi_thunk_no_vcall, hook_int_uint_mode_1,
1857         hook_int_const_tree_0, hook_int_const_tree_const_tree_1,
1858         hook_int_rtx_0, hook_int_rtx_bool_0, hook_void_tree,
1859         hook_void_constcharptr, hook_void_tree_treeptr, hook_void_int_int,
1860         hook_bool_tree_false, hook_bool_const_tree_false, hook_bool_tree_true,
1861         hook_bool_const_tree_true, hook_bool_tree_tree_false,
1862         hook_bool_tree_tree_true, hook_bool_tree_bool_false,
1863         hook_bool_rtx_insn_true, hook_bool_rtx_false,
1864         hook_bool_uintp_uintp_false,
1865         hook_bool_rtx_mode_int_int_intp_bool_false, hook_rtx_rtx_null,
1866         hook_rtx_tree_int_null, hook_uint_mode_0,
1867         hook_constcharptr_const_tree_null, hook_tree_tree_int_treep_bool_null,
1868         hook_tree_tree_tree_null, hook_tree_tree_tree_tree_null,
1869         hook_constcharptr_const_rtx_insn_null,
1870         hook_constcharptr_const_tree_const_tree_null,
1871         hook_constcharptr_int_const_tree_null,
1872         hook_constcharptr_int_const_tree_const_tree_null,
1873         hook_tree_const_tree_null, hook_bool_rtx_insn_int_false,
1874         hook_void_rtx_insn_int, hook_void_gcc_optionsp): For arguments with
1875         ATTRIBUTE_UNUSED, remove parameter name as well as ATTRIBUTE_UNUSED.
1877         * vec.h (vNULL): Extend comment to say = vNULL initialization
1878         isn't needed for static vars.
1880         * sel-sched-ir.c (sel_global_bb_info, sel_region_bb_info,
1881         loop_nests, s_i_d, last_added_blocks): Remove unnecessary
1882         = vNULL initialization of file scope vec.
1883         * passes.c (pass_tab, enabled_pass_uid_range_tab,
1884         disabled_pass_uid_range_tab): Likewise.
1885         * haifa-sched.c (sched_luids, h_i_d): Likewise.
1886         * tree-chkp-opt.c (check_infos): Likewise.
1887         * sel-sched.c (vec_av_set, vec_temp_moveop_nops): Likewise.
1889         * vec.h (vnull::operator vec): Add constexpr keyword for
1890         C++11 and later.
1892 2016-09-23  Doug Gilmore  <doug.gilmore@imgtec.com>
1894         PR tree-optimization/77654
1895         * tree-ssa-loop-prefetch.c (issue_prefetch_ref): Add call
1896         to duplicate_ssa_name_ptr_info.
1898 2016-09-23  David Malcolm  <dmalcolm@redhat.com>
1900         PR preprocessor/77672
1901         * input.c (selftest::test_lexer_string_locations_simple): Update
1902         test to expect location information of the terminator character
1903         at the location of the final closing quote.
1904         (selftest::test_lexer_string_locations_hex): Likewise.
1905         (selftest::test_lexer_string_locations_oct): Likewise.
1906         (selftest::test_lexer_string_locations_letter_escape_1): Likewise.
1907         (selftest::test_lexer_string_locations_letter_escape_2): Likewise.
1908         (selftest::test_lexer_string_locations_ucn4): Likewise.
1909         (selftest::test_lexer_string_locations_ucn8): Likewise.
1910         (selftest::test_lexer_string_locations_u8): Likewise.
1911         (selftest::test_lexer_string_locations_utf8_source): Likewise.
1912         (selftest::test_lexer_string_locations_concatenation_1): Likewise.
1913         (selftest::test_lexer_string_locations_concatenation_2): Likewise.
1914         (selftest::test_lexer_string_locations_concatenation_3): Likewise.
1915         (selftest::test_lexer_string_locations_macro): Likewise.
1916         (selftest::test_lexer_string_locations_long_line): Likewise.
1918 2016-09-23  Richard Biener  <rguenther@suse.de>
1920         * tree-ssa-sccvn.c (visit_reference_op_call): Value number
1921         virtual definition to virtual use if the call devirtualizes
1922         to a const or pure function.
1923         (visit_use): Also visit calls we can devirtualize to a
1924         const or pure function.
1926 2016-09-23  Richard Biener  <rguenther@suse.de>
1928         PR tree-optimization/77697
1929         * tree-ssa-forwprop.c (defcodefor_name): Remove bogus code,
1930         signal error if we have sth ternary or unhandled.
1932 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
1934         * config/arm/arm_neon.h (vabd_f16): New.
1935         (vabdq_f16): New.
1936         (vabs_f16): New.
1937         (vabsq_f16): New.
1938         (vadd_f16): New.
1939         (vaddq_f16): New.
1940         (vcage_f16): New.
1941         (vcageq_f16): New.
1942         (vcagt_f16): New.
1943         (vcagtq_f16): New.
1944         (vcale_f16): New.
1945         (vcaleq_f16): New.
1946         (vcalt_f16): New.
1947         (vcaltq_f16): New.
1948         (vceq_f16): New.
1949         (vceqq_f16): New.
1950         (vceqz_f16): New.
1951         (vceqzq_f16): New.
1952         (vcge_f16): New.
1953         (vcgeq_f16): New.
1954         (vcgez_f16): New.
1955         (vcgezq_f16): New.
1956         (vcgt_f16): New.
1957         (vcgtq_f16): New.
1958         (vcgtz_f16): New.
1959         (vcgtzq_f16): New.
1960         (vcle_f16): New.
1961         (vcleq_f16): New.
1962         (vclez_f16): New.
1963         (vclezq_f16): New.
1964         (vclt_f16): New.
1965         (vcltq_f16): New.
1966         (vcltz_f16): New.
1967         (vcltzq_f16): New.
1968         (vcvt_f16_s16): New.
1969         (vcvt_f16_u16): New.
1970         (vcvt_s16_f16): New.
1971         (vcvt_u16_f16): New.
1972         (vcvtq_f16_s16): New.
1973         (vcvtq_f16_u16): New.
1974         (vcvtq_s16_f16): New.
1975         (vcvtq_u16_f16): New.
1976         (vcvta_s16_f16): New.
1977         (vcvta_u16_f16): New.
1978         (vcvtaq_s16_f16): New.
1979         (vcvtaq_u16_f16): New.
1980         (vcvtm_s16_f16): New.
1981         (vcvtm_u16_f16): New.
1982         (vcvtmq_s16_f16): New.
1983         (vcvtmq_u16_f16): New.
1984         (vcvtn_s16_f16): New.
1985         (vcvtn_u16_f16): New.
1986         (vcvtnq_s16_f16): New.
1987         (vcvtnq_u16_f16): New.
1988         (vcvtp_s16_f16): New.
1989         (vcvtp_u16_f16): New.
1990         (vcvtpq_s16_f16): New.
1991         (vcvtpq_u16_f16): New.
1992         (vcvt_n_f16_s16): New.
1993         (vcvt_n_f16_u16): New.
1994         (vcvtq_n_f16_s16): New.
1995         (vcvtq_n_f16_u16): New.
1996         (vcvt_n_s16_f16): New.
1997         (vcvt_n_u16_f16): New.
1998         (vcvtq_n_s16_f16): New.
1999         (vcvtq_n_u16_f16): New.
2000         (vfma_f16): New.
2001         (vfmaq_f16): New.
2002         (vfms_f16): New.
2003         (vfmsq_f16): New.
2004         (vmax_f16): New.
2005         (vmaxq_f16): New.
2006         (vmaxnm_f16): New.
2007         (vmaxnmq_f16): New.
2008         (vmin_f16): New.
2009         (vminq_f16): New.
2010         (vminnm_f16): New.
2011         (vminnmq_f16): New.
2012         (vmul_f16): New.
2013         (vmul_lane_f16): New.
2014         (vmul_n_f16): New.
2015         (vmulq_f16): New.
2016         (vmulq_lane_f16): New.
2017         (vmulq_n_f16): New.
2018         (vneg_f16): New.
2019         (vnegq_f16): New.
2020         (vpadd_f16): New.
2021         (vpmax_f16): New.
2022         (vpmin_f16): New.
2023         (vrecpe_f16): New.
2024         (vrecpeq_f16): New.
2025         (vrnd_f16): New.
2026         (vrndq_f16): New.
2027         (vrnda_f16): New.
2028         (vrndaq_f16): New.
2029         (vrndm_f16): New.
2030         (vrndmq_f16): New.
2031         (vrndn_f16): New.
2032         (vrndnq_f16): New.
2033         (vrndp_f16): New.
2034         (vrndpq_f16): New.
2035         (vrndx_f16): New.
2036         (vrndxq_f16): New.
2037         (vrsqrte_f16): New.
2038         (vrsqrteq_f16): New.
2039         (vrecps_f16): New.
2040         (vrecpsq_f16): New.
2041         (vrsqrts_f16): New.
2042         (vrsqrtsq_f16): New.
2043         (vsub_f16): New.
2044         (vsubq_f16): New.
2046 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2048         * config.gcc (extra_headers): Add arm_fp16.h
2049         * config/arm/arm_fp16.h: New.
2050         * config/arm/arm_neon.h: Include "arm_fp16.h".
2052 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2054         * config/arm/arm_neon_builtins.def (vadd): New (v8hf, v4hf
2055         variants).
2056         (vmulf): New (v8hf, v4hf variants).
2057         (vfma): New (v8hf, v4hf variants).
2058         (vfms): New (v8hf, v4hf variants).
2059         (vsub): New (v8hf, v4hf variants).
2060         (vcage): New (v8hf, v4hf variants).
2061         (vcagt): New (v8hf, v4hf variants).
2062         (vcale): New (v8hf, v4hf variants).
2063         (vcalt): New (v8hf, v4hf variants).
2064         (vceq): New (v8hf, v4hf variants).
2065         (vcgt): New (v8hf, v4hf variants).
2066         (vcge): New (v8hf, v4hf variants).
2067         (vcle): New (v8hf, v4hf variants).
2068         (vclt): New (v8hf, v4hf variants).
2069         (vceqz): New (v8hf, v4hf variants).
2070         (vcgez): New (v8hf, v4hf variants).
2071         (vcgtz): New (v8hf, v4hf variants).
2072         (vcltz): New (v8hf, v4hf variants).
2073         (vclez): New (v8hf, v4hf variants).
2074         (vabd): New (v8hf, v4hf variants).
2075         (vmaxf): New (v8hf, v4hf variants).
2076         (vmaxnm): New (v8hf, v4hf variants).
2077         (vminf): New (v8hf, v4hf variants).
2078         (vminnm): New (v8hf, v4hf variants).
2079         (vpmaxf): New (v4hf variant).
2080         (vpminf): New (v4hf variant).
2081         (vpadd): New (v4hf variant).
2082         (vrecps): New (v8hf, v4hf variants).
2083         (vrsqrts): New (v8hf, v4hf variants).
2084         (vabs): New (v8hf, v4hf variants).
2085         (vneg): New (v8hf, v4hf variants).
2086         (vrecpe): New (v8hf, v4hf variants).
2087         (vrnd): New (v8hf, v4hf variants).
2088         (vrnda): New (v8hf, v4hf variants).
2089         (vrndm): New (v8hf, v4hf variants).
2090         (vrndn): New (v8hf, v4hf variants).
2091         (vrndp): New (v8hf, v4hf variants).
2092         (vrndx): New (v8hf, v4hf variants).
2093         (vrsqrte): New (v8hf, v4hf variants).
2094         (vmul_lane): Add v4hf and v8hf variants.
2095         (vmul_n): Add v4hf and v8hf variants.
2096         (vext): New (v8hf, v4hf variants).
2097         (vcvts): New (v8hi, v4hi variants).
2098         (vcvts): New (v8hf, v4hf variants).
2099         (vcvtu): New (v8hi, v4hi variants).
2100         (vcvtu): New (v8hf, v4hf variants).
2101         (vcvts_n): New (v8hf, v4hf variants).
2102         (vcvtu_n): New (v8hi, v4hi variants).
2103         (vcvts_n): New (v8hi, v4hi variants).
2104         (vcvtu_n): New (v8hf, v4hf variants).
2105         (vbsl): New (v8hf, v4hf variants).
2106         (vcvtas): New (v8hf, v4hf variants).
2107         (vcvtau): New (v8hf, v4hf variants).
2108         (vcvtms): New (v8hf, v4hf variants).
2109         (vcvtmu): New (v8hf, v4hf variants).
2110         (vcvtns): New (v8hf, v4hf variants).
2111         (vcvtnu): New (v8hf, v4hf variants).
2112         (vcvtps): New (v8hf, v4hf variants).
2113         (vcvtpu): New (v8hf, v4hf variants).
2115 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2117         * config/arm/arm-builtins.c (hf_UP): New.
2118         (si_UP): New.
2119         (vfp_builtin_data): New.  Update comment.
2120         (enum arm_builtins): Include "arm_vfp_builtins.def".
2121         (ARM_BUILTIN_VFP_PATTERN_START): New.
2122         (arm_init_vfp_builtins): New.
2123         (arm_init_builtins): Add arm_init_vfp_builtins.
2124         (arm_expand_vfp_builtin): New.
2125         (arm_expand_builtins): Update for arm_expand_vfp_builtin.  Fix
2126         long line.
2127         * config/arm/arm_vfp_builtins.def: New file.
2128         * config/arm/t-arm (arm.o): Add arm_vfp_builtins.def.
2129         (arm-builtins.o): Likewise.
2131 2016-09-23  Kugan Vivekanandarajah  <kuganv@linaro.org>
2133         PR ipa/77677
2134         * ipa-cp.c (propagate_vr_accross_jump_function): Drop TREE_OVERFLOW
2135         from constant while creating value range.
2137 2016-09-23  Renlin Li  <renlin.li@arm.com>
2139         * ira.c (ira): Move ira_use_lra_p initialization code to ...
2140         (ira_init_once): Here.
2142 2016-09-23  Uros Bizjak  <ubizjak@gmail.com>
2143             Jakub Jelinek  <jakub@redhat.com>
2145         * hooks.h (hook_uint_uintp_false): Rename to...
2146         (hook_bool_uint_uintp_false): ... this.
2147         * hooks.c (hook_uint_uintp_false): Rename to...
2148         (hook_bool_uint_uintp_false): ... this.
2149         * target.def (elf_flags_numeric): Use hook_bool_uint_uintp_false
2150         instead of hook_uint_uintp_false.
2152 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2154         * config/arm/arm-builtins.c (arm_init_neon_builtin): New.
2155         (arm_init_builtins): Move body of a loop to the standalone
2156         function arm_init_neon_builtin.
2157         (arm_expand_neon_builtin_1): New.  Update comment.  Function body
2158         moved from arm_neon_builtin with some white-space fixes.
2159         (arm_expand_neon_builtin): Move code into the standalone function
2160         arm_expand_neon_builtin_1.
2162 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2164         * config/arm/iterators.md (VCVTHI): New.
2165         (NEON_VCMP): Add UNSPEC_VCLT and UNSPEC_VCLE.  Fix a long line.
2166         (NEON_VAGLTE): New.
2167         (VFM_LANE_AS): New.
2168         (VH_CVTTO): New.
2169         (V_reg): Add HF, V4HF and V8HF.  Fix white-space.
2170         (V_HALF): Add V4HF.  Fix white-space.
2171         (V_if_elem): Add HF, V4HF and V8HF.  Fix white-space.
2172         (V_s_elem): Likewise.
2173         (V_sz_elem): Fix white-space.
2174         (V_elem_ch): Likewise.
2175         (VH_elem_ch): New.
2176         (scalar_mul_constraint): Add V8HF and V4HF.
2177         (Is_float_mode): Fix white-space.
2178         (Is_d_reg): Add V4HF and V8HF.  Fix white-space.
2179         (q): Add HF.  Fix white-space.
2180         (float_sup): New.
2181         (float_SUP): New.
2182         (cmp_op_unsp): Add UNSPEC_VCALE and UNSPEC_VCALT.
2183         (neon_vfm_lane_as): New.
2184         * config/arm/neon.md (add<mode>3_fp16): New.
2185         (sub<mode>3_fp16): New.
2186         (mul<mode>3add<mode>_neon): New.
2187         (fma<VH:mode>4_intrinsic): New.
2188         (fmsub<VCVTF:mode>4_intrinsic): Fix white-space.
2189         (fmsub<VH:mode>4_intrinsic): New.
2190         (<absneg_str><mode>2): New.
2191         (neon_v<absneg_str><mode>): New.
2192         (neon_v<fp16_rnd_str><mode>): New.
2193         (neon_vrsqrte<mode>): New.
2194         (neon_vpaddv4hf): New.
2195         (neon_vadd<mode>): New.
2196         (neon_vsub<mode>): New.
2197         (neon_vmulf<mode>): New.
2198         (neon_vfma<VH:mode>): New.
2199         (neon_vfms<VH:mode>): New.
2200         (neon_vc<cmp_op><mode>): New.
2201         (neon_vc<cmp_op><mode>_fp16insn): New
2202         (neon_vc<cmp_op_unsp><mode>_fp16insn_unspec): New.
2203         (neon_vca<cmp_op><mode>): New.
2204         (neon_vca<cmp_op><mode>_fp16insn): New.
2205         (neon_vca<cmp_op_unsp><mode>_fp16insn_unspec): New.
2206         (neon_vc<cmp_op>z<mode>): New.
2207         (neon_vabd<mode>): New.
2208         (neon_v<maxmin>f<mode>): New.
2209         (neon_vp<maxmin>fv4hf: New.
2210         (neon_<fmaxmin_op><mode>): New.
2211         (neon_vrecps<mode>): New.
2212         (neon_vrsqrts<mode>): New.
2213         (neon_vrecpe<mode>): New (VH variant).
2214         (neon_vdup_lane<mode>_internal): New.
2215         (neon_vdup_lane<mode>): New.
2216         (neon_vcvt<sup><mode>): New (VCVTHI variant).
2217         (neon_vcvt<sup><mode>): New (VH variant).
2218         (neon_vcvt<sup>_n<mode>): New (VH variant).
2219         (neon_vcvt<sup>_n<mode>): New (VCVTHI variant).
2220         (neon_vcvt<vcvth_op><sup><mode>): New.
2221         (neon_vmul_lane<mode>): New.
2222         (neon_vmul_n<mode>): New.
2223         * config/arm/unspecs.md (UNSPEC_VCALE): New
2224         (UNSPEC_VCALT): New.
2225         (UNSPEC_VFMA_LANE): New.
2226         (UNSPECS_VFMS_LANE): New.
2228 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2230         * config/s390/s390.md ("*extzv<mode>_zEC12", "*extzv<mode>_z10")
2231         ("*extzv<mode><clobbercc_or_nocc>"):
2232         Correct a typo in a comment.
2233         Merged patterns.
2234         ("*insv<mode>_zEC12", "*insv<mode>_z10")
2235         ("*insv<mode><clobbercc_or_nocc>"): Ditto.
2236         ("*insv<mode>_zEC12_appendbitsleft")
2237         ("*insv<mode><clobbercc_or_nocc>_appendbitsleft")
2238         ("*insv<mode>_z10_appendbitsleft"): Ditto.
2239         ("*insv<mode>_zEC12_noshift", "*insv<mode>_z10_noshift")
2240         ("*insv<mode><clobbercc_or_nocc>_noshift"): Ditto.
2241         Provide pattern with operands switched.
2242         ("*pre_z10_extv<mode>"):
2243         Use new subst patterns.
2244         ("*extzvdi<clobbercc_or_nocc>_lshiftrt", "*<risbg_n>_ior_and_sr_ze")
2245         ("*extvsidi<clobbercc_or_nocc>", "*<risbg_n>_and_subregdi_rotr")
2246         ("*<risbg_n>_and_subregdi_rotl", "*<risbg_n>_di_and_rot")
2247         ("*insv_z10_noshift_cc", "*insv_z10_noshift_cconly")
2248         ("*<risbg_n>_<mode>_ior_and_lshiftrt")
2249         ("*<risbg_n>_sidi_ior_and_lshiftrt")
2250         ("*trunc_sidi_and_subreg_lshrt<clobbercc_or_nocc>"):
2251         New patterns.
2252         ("*extzv_<mode>_sll", "*extzv_<mode>_srl")
2253         ("*extzv_<mode>_srl<clobbercc_or_nocc>")
2254         ("*extzv_<mode>_sll<clobbercc_or_nocc>"): Renamed patterns, use risbgn
2255         on zEC12.
2256         ("SINT"): New mode_iterator with SI, HI, QI.
2257         * config/s390/subst.md ("clobbercc_or_nocc_subst", "z10_or_zEC12_cond")
2258         ("clobbercc_or_nocc", "risbg_n"): New constructs for risbg pattern
2259         duplication.
2261 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2263         * config/s390/predicates.md ("contiguous_bitmask_operand"): Adapt to
2264         new interface of s390_contiguous_bitmask_p.
2265         ("contiguous_bitmask_nowrap_operand"): New predicate.
2266         ("*anddi3_cc", "*anddi3_cconly", "*anddi3"): Replace NxxDq with NxxDw.
2267         * config/s390/constraints.md ("NxxDw", "NxxSq"): Adapt to new interface
2268         of s390_contiguous_bitmask_p.
2269         ("NxxDw"): Rename NxxDq constraint to NxxDw.
2270         ("NxxSw"): New constraint.
2271         * config/s390/s390.md ("*andsi3_zarch"): Enable bitmask wraparound.
2272         * config/s390/s390-protos.h (s390_contiguous_bitmask_p): Updated
2273         interface.
2274         (s390_contiguous_bitmask_nowrap_p): Export.
2275         * config/s390/s390.c (s390_contiguous_bitmask_nowrap_p): New name of
2276         former s390_contiguous_bitmask_p.
2277         (s390_contiguous_bitmask_p): Use s390_contiguous_bitmask_nowrap_p to
2278         detect contiguous bit ranges with wraparound.  Change signature to
2279         return START and END position instead of POS and LENGTH.
2280         (s390_contiguous_bitmask_vector_p): Remove extra code for continous bit
2281         ranges with wraparound.
2282         (s390_extzv_shift_ok): Use s390_contiguous_bitmask_nowrap_p.
2283         (s390_contiguous_bitmask_vector_p,s390_extzv_shift_ok,print_operand):
2284         Adapt to new signature of s390_contiguous_bitmask_p.
2286 2016-09-23  Bin Cheng  <bin.cheng@arm.com>
2288         * tree-vect-loop-manip.c (create_intersect_range_checks_index): New.
2289         (create_intersect_range_checks): New.
2290         (vect_create_cond_for_alias_checks): Call above function.
2292 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2294         * config/arm/iterators.md (Code iterators): Fix some white-space
2295         in the comments.
2296         (GLTE): New.
2297         (ABSNEG): New
2298         (FCVT): Moved from vfp.md.
2299         (VCVT_HF_US_N): New.
2300         (VCVT_SI_US_N): New.
2301         (VCVT_HF_US): New.
2302         (VCVTH_US): New.
2303         (FP16_RND): New.
2304         (absneg_str): New.
2305         (FCVTI32typename): Moved from vfp.md.
2306         (sup): Add UNSPEC_VCVTA_S, UNSPEC_VCVTA_U, UNSPEC_VCVTM_S,
2307         UNSPEC_VCVTM_U, UNSPEC_VCVTN_S, UNSPEC_VCVTN_U, UNSPEC_VCVTP_S,
2308         UNSPEC_VCVTP_U, UNSPEC_VCVT_HF_S_N, UNSPEC_VCVT_HF_U_N,
2309         UNSPEC_VCVT_SI_S_N, UNSPEC_VCVT_SI_U_N,  UNSPEC_VCVTH_S_N,
2310         UNSPEC_VCVTH_U_N, UNSPEC_VCVTH_S and UNSPEC_VCVTH_U.
2311         (vcvth_op): New.
2312         (fp16_rnd_str): New.
2313         (fp16_rnd_insn): New.
2314         * config/arm/unspecs.md (UNSPEC_VCVT_HF_S_N): New.
2315         (UNSPEC_VCVT_HF_U_N): New.
2316         (UNSPEC_VCVT_SI_S_N): New.
2317         (UNSPEC_VCVT_SI_U_N): New.
2318         (UNSPEC_VCVTH_S): New.
2319         (UNSPEC_VCVTH_U): New.
2320         (UNSPEC_VCVTA_S): New.
2321         (UNSPEC_VCVTA_U): New.
2322         (UNSPEC_VCVTM_S): New.
2323         (UNSPEC_VCVTM_U): New.
2324         (UNSPEC_VCVTN_S): New.
2325         (UNSPEC_VCVTN_U): New.
2326         (UNSPEC_VCVTP_S): New.
2327         (UNSPEC_VCVTP_U): New.
2328         (UNSPEC_VCVTP_S): New.
2329         (UNSPEC_VCVTP_U): New.
2330         (UNSPEC_VRND): New.
2331         (UNSPEC_VRNDA): New.
2332         (UNSPEC_VRNDI): New.
2333         (UNSPEC_VRNDM): New.
2334         (UNSPEC_VRNDN): New.
2335         (UNSPEC_VRNDP): New.
2336         (UNSPEC_VRNDX): New.
2337         * config/arm/vfp.md (<absneg_str>hf2): New.
2338         (neon_vabshf): New.
2339         (neon_v<fp16_rnd_str>hf): New.
2340         (neon_vrndihf): New.
2341         (addhf3): New.
2342         (subhf3): New.
2343         (divhf3): New.
2344         (mulhf3): New.
2345         (*mulsf3neghf_vfp): New.
2346         (*negmulhf3_vfp): New.
2347         (*mulsf3addhf_vfp): New.
2348         (*mulhf3subhf_vfp): New.
2349         (*mulhf3neghfaddhf_vfp): New.
2350         (*mulhf3neghfsubhf_vfp): New.
2351         (fmahf4): New.
2352         (neon_vfmahf): New.
2353         (fmsubhf4_fp16): New.
2354         (neon_vfmshf): New.
2355         (*fnmsubhf4): New.
2356         (*fnmaddhf4): New.
2357         (neon_vsqrthf): New.
2358         (neon_vrsqrtshf): New.
2359         (FCVT): Move to iterators.md.
2360         (FCVTI32typename): Likewise.
2361         (neon_vcvth<sup>hf): New.
2362         (neon_vcvth<sup>si): New.
2363         (neon_vcvth<sup>_nhf_unspec): New.
2364         (neon_vcvth<sup>_nhf): New.
2365         (neon_vcvth<sup>_nsi_unspec): New.
2366         (neon_vcvth<sup>_nsi): New.
2367         (neon_vcvt<vcvth_op>h<sup>si): New.
2368         (neon_<fmaxmin_op>hf): New.
2370 2016-09-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
2372         * config/s390/s390.md (bitoff, bitoff_plus): Neq mode attributes.
2373         ("*extzv<mode>_zEC12", "*insv<mode>_zEC12", "*insv<mode>_z10")
2374         ("*insv<mode>_zEC12_appendbitsleft")
2375         ("*insv<mode>_z10_appendbitsleft", "*r<noxa>sbg_<mode>_sll")
2376         ("*r<noxa>sbg_<mode>_srl"): Use new attributes.
2378 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2380         * ipa-cp.c (ipcp_store_vr_results): Avoid static local var zero.
2381         * sreal.h (sreal::min, sreal::max): Avoid static local vars,
2382         construct values without normalization.
2383         * tree-ssa-sccvn.c (vn_reference_lookup_3): Don't initialize
2384         static local lhs_ops to vNULL.
2386 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2387             Jiong Wang <jiong.wang@arm.com>
2389         * config/arm/arm.c (coproc_secondary_reload_class): Make HFmode
2390         available when FP16 instructions are available.
2391         (output_move_vfp): Add support for 16-bit data moves.
2392         (arm_validize_comparison): Fix some white-space.  Support HFmode
2393         by conversion to SFmode.
2394         * config/arm/arm.md (truncdfhf2): Fix a comment.
2395         (extendhfdf2): Likewise.
2396         (cstorehf4): New.
2397         (movsicc): Fix some white-space.
2398         (movhfcc): New.
2399         (movsfcc): Fix some white-space.
2400         (*cmovhf): New.
2401         * config/arm/vfp.md (*arm_movhi_vfp): Disable when VFP FP16
2402         instructions are available.
2403         (*thumb2_movhi_vfp): Likewise.
2404         (*arm_movhi_fp16): New.
2405         (*thumb2_movhi_fp16): New.
2406         (*movhf_vfp_fp16): New.
2407         (*movhf_vfp_neon): Disable when VFP FP16 instructions are available.
2408         (*movhf_vfp): Likewise.
2409         (extendhfsf2): Enable when VFP FP16 instructions are available.
2410         (truncsfhf2):  Enable when VFP FP16 instructions are available.
2412 2016-09-23  Martin Liska  <mliska@suse.cz>
2414         * config/s390/vx-builtins.md: Replace 'adress' with 'address'.
2416 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2418         * config/arm/arm.c (arm_evpc_neon_vuzp): Add support for V8HF and
2419         V4HF modes.
2420         (arm_evpc_neon_vtrn): Likewise.
2421         (arm_evpc_neon_vrev): Likewise.
2422         (arm_evpc_neon_vext): Likewise.
2423         * config/arm/arm_neon.h (vbsl_f16): New.
2424         (vbslq_f16): New.
2425         (vdup_n_f16): New.
2426         (vdupq_n_f16): New.
2427         (vdup_lane_f16): New.
2428         (vdupq_lane_f16): New.
2429         (vext_f16): New.
2430         (vextq_f16): New.
2431         (vmov_n_f16): New.
2432         (vmovq_n_f16): New.
2433         (vrev64_f16): New.
2434         (vrev64q_f16): New.
2435         (vtrn_f16): New.
2436         (vtrnq_f16): New.
2437         (vuzp_f16): New.
2438         (vuzpq_f16): New.
2439         (vzip_f16): New.
2440         (vzipq_f16): New.
2441         * config/arm/arm_neon_buillins.def (vdup_n): New (v8hf, v4hf variants).
2442         (vdup_lane): New (v8hf, v4hf variants).
2443         (vext): New (v8hf, v4hf variants).
2444         (vbsl): New (v8hf, v4hf variants).
2445         * config/arm/iterators.md (VDQWH): New.
2446         (VH): New.
2447         (V_double_vector_mode): Add V8HF and V4HF.  Fix white-space.
2448         (Scalar_mul_8_16): Fix white-space.
2449         (Is_d_reg): Add V4HF and V8HF.
2450         * config/arm/neon.md (neon_vdup_lane<mode>_internal): New.
2451         (neon_vdup_lane<mode>): New.
2452         (neon_vtrn<mode>_internal): Replace VDQW with VDQWH.
2453         (*neon_vtrn<mode>_insn): Likewise.
2454         (neon_vzip<mode>_internal): Likewise. Also fix white-space.
2455         (*neon_vzip<mode>_insn): Likewise
2456         (neon_vuzp<mode>_internal): Likewise.
2457         (*neon_vuzp<mode>_insn): Likewise
2458         * config/arm/vec-common.md (vec_perm_const<mode>): New.
2460 2016-09-23  Jiong Wang  <jiong.wang@arm.com>
2461             Matthew Wahab  <matthew.wahab@arm.com>
2463         * config/arm/arm.c (output_move_vfp): Weaken assert to allow HImode.
2464         (arm_hard_regno_mode_ok): Allow HImode values in VFP registers.
2465         * config/arm/arm.md (*movhi_bytes): Disable when VFP registers are
2466         available.  Also fix some white-space.
2467         * config/arm/vfp.md (*arm_movhi_vfp): New.
2468         (*thumb2_movhi_vfp): New.
2470 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2472         * config/arm/arm-c.c (arm_cpu_builtins): Define
2473         "__ARM_FEATURE_FP16_SCALAR_ARITHMETIC" and
2474         "__ARM_FEATURE_FP16_VECTOR_ARITHMETIC".
2476 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2478         * doc/sourcebuild.texi (ARM-specific attributes): Add anchor for
2479         arm_v8_1a_neon_ok.  Add entries for arm_v8_2a_fp16_scalar_ok,
2480         arm_v8_2a_fp16_scalar_hw, arm_v8_2a_fp16_neon_ok and
2481         arm_v8_2a_fp16_neon_hw.
2482         (Add options): Add entries for arm_v8_1a_neon, arm_v8_2a_scalar,
2483         arm_v8_2a_neon.
2485 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2487         * doc/sourcebuild.texi (ARM-specific attributes): Add entries for
2488         arm_fp16_alternative_ok and arm_fp16_none_ok.
2490 2016-09-23  Martin Liska  <mliska@suse.cz>
2492         * ipa-icf.c (sem_variable::merge): Replace adress with address.
2494 2016-09-23  Matthew Wahab  <matthew.wahab@arm.com>
2496         * config/arm/arm-arches.def ("armv8.1-a"): Add FL_CRC32.
2497         ("armv8.2-a"): New.
2498         ("armv8.2-a+fp16"): New.
2499         * config/arm/arm-protos.h (FL2_ARCH8_2): New.
2500         (FL2_FP16INST): New.
2501         (FL2_FOR_ARCH8_2A): New.
2502         * config/arm/arm-tables.opt: Regenerate.
2503         * config/arm/arm.c (arm_arch8_2): New.
2504         (arm_fp16_inst): New.
2505         (arm_option_override): Set arm_arch8_2 and arm_fp16_inst.  Check
2506         for incompatible fp16-format settings.
2507         * config/arm/arm.h (TARGET_VFP_FP16INST): New.
2508         (TARGET_NEON_FP16INST): New.
2509         (arm_arch8_2): Declare.
2510         (arm_fp16_inst): Declare.
2511         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for
2512         march=armv8.2-a and march=armv8.2-a+fp16.
2513         * config/arm/t-aprofile (Arch Matches): Add entries for armv8.2-a
2514         and armv8.2-a+fp16.
2515         * doc/invoke.texi (ARM Options): Add "-march=armv8.1-a",
2516         "-march=armv8.2-a" and "-march=armv8.2-a+fp16".
2518 2016-09-23  Martin Liska  <mliska@suse.cz>
2520         * doc/extend.texi: Remove fused-madd from i386 target options.
2522 2016-09-23  Martin Liska  <mliska@suse.cz>
2524         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2525         Handle movbe.
2527 2016-09-23  Martin Liska  <mliska@suse.cz>
2529         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
2530         Handle crc32.
2532 2016-09-23  Martin Liska  <mliska@suse.cz>
2534         PR target/71652
2535         * config/i386/i386.c (ix86_option_override_internal): Change
2536         signature and return false when there's an error related to
2537         arch string.
2538         (release_options_strings): New function.
2539         (ix86_valid_target_attribute_tree): Call the function.
2541 2016-09-23  Jakub Jelinek  <jakub@redhat.com>
2543         * hsa-gen.c (hsa_op_immed::hsa_op_immed Use CONSTRUCTOR_NELTS (...)
2544         instead of vec_safe_length (CONSTRUCTOR_ELTS (...)).
2545         (gen_hsa_ctor_assignment): Likewise.
2546         * print-tree.c (print_node): Likewise.
2547         * tree-dump.c (dequeue_and_dump): Likewise.
2548         * tree-sra.c (sra_modify_constructor_assign): Likewise.
2549         * expr.c (store_constructor): Likewise.
2550         * fold-const.c (operand_equal_p): Likewise.
2551         * tree-pretty-print.c (dump_generic_node): Likewise.
2552         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Likewise.
2553         * ipa-icf-gimple.c (func_checker::compare_operand): Likewise.
2555 2016-09-23  Richard Biener  <rguenther@suse.de>
2557         * hooks.h (hook_uint_uintp_false): Declare.
2559 2016-09-22  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
2561         * config/avr/avr.c (avr_rtx_costs_1): Handle DImode MULT.
2562         (avr_address_cost): Replace 61 with MAX_LD_OFFSET(mode).
2564 2016-09-22  Martin Sebor  <msebor@redhat.com>
2566         PR target/77676
2567         * gimple-ssa-sprintf.c (target_int_min, target_int_max): Use
2568         HOST_BITS_PER_WIDE_INT, make a static local variable auto.
2569         (target_int_min): Correct computation.
2570         (format_integer): Use long long as the argument for the ll length
2571         modifier.
2572         (format_floating): Use target_int_max().
2573         (get_string_length): Same.
2574         (format_string): Avoid setting the bounded flag for strings
2575         of unknown length.
2576         (try_substitute_return_value): Avoid setting range info when
2577         the result isn't bounded.
2578         * varasm.c (assemble_name): Increase buffer size.
2580 2016-09-22  Andre Vieira  <andre.simoesdiasvieira@arm.com>
2581             Terry Guo  <terry.guo@arm.com>
2583         * target.def (elf_flags_numeric): New target hook.
2584         * targhooks.h (default_asm_elf_flags_numeric): New.
2585         * varasm.c (default_asm_elf_flags_numeric): New.
2586         (default_elf_asm_named_section): Use new target hook.
2587         * config/arm/arm.opt (mpure-code): New.
2588         * config/arm/arm.h (SECTION_ARM_PURECODE): New.
2589         * config/arm/arm.c (arm_asm_init_sections): Add section
2590         attribute to default text section if -mpure-code.
2591         (arm_option_check_internal): Diagnose use of option with
2592         non supported targets and/or options.
2593         (arm_asm_elf_flags_numeric): New.
2594         (arm_function_section): New.
2595         (arm_elf_section_type_flags): New.
2596         * config/arm/elf.h (JUMP_TABLES_IN_TEXT_SECTION): Disable
2597         for -mpure-code.
2598         * gcc/doc/texi (TARGET_ASM_ELF_FLAGS_NUMERIC): New.
2599         * gcc/doc/texi.in (TARGET_ASM_ELF_FLAGS_NUMERIC): Likewise.
2601 2016-09-22  Jan Hubicka  <hubicka@ucw.cz>
2603         * regcprop.c (copyprop_hardreg_forward_1): Remove noop moves.
2605 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2607         * emit-rtl.c (next_cc0_user): Make argument type rtx_insn *.
2608         * rtl.h: Adjust prototype.
2610 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2612         * emit-rtl.c (next_active_insn): Change argument type to rtx_insn *.
2613         (prev_active_insn): Likewise.
2614         (active_insn_p): Likewise.
2615         * rtl.h: Adjust prototypes.
2616         * cfgcleanup.c (merge_blocks_move_successor_nojumps): Adjust.
2617         * config/arc/arc.md: Likewise.
2618         * config/pa/pa.c (branch_to_delay_slot_p): Likewise.
2619         (branch_needs_nop_p): Likewise.
2620         (use_skip_p): Likewise.
2621         * config/sh/sh.c (gen_block_redirect): Likewise.
2622         (split_branches): Likewise.
2623         * reorg.c (optimize_skip): Likewise.
2624         (fill_simple_delay_slots): Likewise.
2625         (fill_slots_from_thread): Likewise.
2626         (relax_delay_slots): Likewise.
2627         * resource.c (mark_target_live_regs): Likewise.
2629 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2631         * config/cris/cris.c (cris_asm_output_case_end): Change argument
2632         type to rtx_insn *.
2633         * emit-rtl.c (next_nonnote_nondebug_insn): Likewise.
2634         (prev_nonnote_nondebug_insn): Likewise.
2635         * config/cris/cris-protos.h: Adjust prototype.
2636         * rtl.h: Likewise.
2637         * jump.c (rtx_renumbered_equal_p): Adjust.
2639 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2641         * emit-rtl.c (prev_real_insn): Change argument type to rtx_insn *.
2642         * rtl.h: Adjust prototype.
2643         * config/sh/sh.md: Adjust.
2644         * dwarf2out.c (add_var_loc_to_decl): Likewise.
2646 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2648         * emit-rtl.c (next_nondebug_insn): Change argument type to rtx_insn *.
2649         (prev_nondebug_insn): Likewise.
2650         * loop-doloop.c (doloop_condition_get): Likewise.
2651         * rtl.h: Adjust prototype.
2652         * cfgloop.h: Likewise.
2654 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2656         * emit-rtl.c (next_nonnote_insn): Change argument type to rtx_insn *.
2657         (prev_nonnote_insn): Likewise.
2658         * jump.c (reversed_comparison_code_parts): Likewise.
2659         (reversed_comparison): Likewise.
2660         * rtl.h: Adjust prototypes.
2661         * config/arc/arc.md: Adjust.
2662         * cse.c (find_comparison_args): Likewise.
2663         * reorg.c (redundant_insn): Change return type to rtx_insn *.
2664         (fix_reg_dead_note): Change argument type to rtx_insn *.
2665         (delete_prior_computation): Likewise.
2666         (delete_computation): Likewise.
2667         (fill_slots_from_thread): Adjust.
2668         (relax_delay_slots): Likewise.
2669         * simplify-rtx.c (simplify_unary_operation_1): Likewise.
2670         (simplify_relational_operation_1): Likewise.
2671         (simplify_ternary_operation): Likewise.
2673 2016-09-22  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
2675         * config/arc/arc-protos.h (arc_label_align): Change type of
2676         variables from rtx to rtx_insn *.
2677         * config/arc/arc.c (arc_label_align): Likewise.
2678         * config/arm/arm.c (any_sibcall_could_use_r3): Likewise.
2679         * config/bfin/bfin.c (workaround_speculation): Likewise.
2680         * config/c6x/c6x.c (find_next_cycle_insn): Likewise.
2681         (find_last_same_clock): Likewise.
2682         (reorg_split_calls): Likewise.
2683         * config/cris/cris-protos.h (cris_cc0_user_requires_cmp): Likewise.
2684         * config/cris/cris.c (cris_cc0_user_requires_cmp): Likewise.
2685         * config/h8300/h8300-protos.h (same_cmp_preceding_p): Likewise.
2686         (same_cmp_following_p): Likewise.
2687         * config/h8300/h8300.c (same_cmp_preceding_p): Likewise.
2688         (same_cmp_following_p): Likwise.
2689         * config/m32r/m32r.c (m32r_expand_epilogue): Likewise.
2690         * config/nds32/nds32-protos.h (nds32_target_alignment): Likewise.
2691         * config/nds32/nds32.c (nds32_target_alignment): Likewise.
2692         * config/rl78/rl78.c (rl78_alloc_physical_registers_op2): Likewise.
2693         (rl78_alloc_physical_registers_cmp): Likewise.
2694         (rl78_alloc_physical_registers_umul): Likewise.
2695         (rl78_calculate_death_notes): Likewise.
2696         * config/s390/s390-protos.h (s390_label_align): Likewise.
2697         * config/s390/s390.c (s390_label_align): Likewise.
2698         * config/sh/sh.c (barrier_align): Likewise.
2699         * config/sparc/sparc-protos.h (emit_cbcond_nop): Likewise.
2700         * config/sparc/sparc.c (sparc_asm_function_epilogue): Likewise.
2701         (emit_cbcond_nop): Likewise.
2703 2016-09-22  Martin Liska  <mliska@suse.cz>
2705         PR ipa/77653
2706         * ipa-icf.c (sem_variable::merge): Yield merge operation if
2707         alias address matters, not necessarily address of original.
2709 2016-09-22  Richard Biener  <rguenther@suse.de>
2711         PR middle-end/77697
2712         * gimple-fold.c (fold_array_ctor_reference): Turn asserts into
2713         fold fails.
2715 2016-09-22  Richard Biener  <rguenther@suse.de>
2717         PR middle-end/77677
2718         * gimple-match-head.c (gimple_resimplify1): Drop TREE_OVERFLOW
2719         from constant folding results.
2720         (gimple_resimplify2): Likewise.
2721         (gimple_resimplify3): Likewise.
2723 2016-09-22  Richard Biener  <rguenther@suse.de>
2725         PR middle-end/77678
2726         * expr.c (expand_expr_real_1): Guard array access against negative
2727         offset.
2729 2016-09-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2731         * gimple-ssa-sprintf.c (format_floating_max): Use GMP_RNDN instead
2732         of MPFR_RNDN.
2733         (format_floating): Likewise.
2735 2016-09-22  Jakub Jelinek  <jakub@redhat.com>
2737         PR fortran/77665
2738         * tree-inline.c (remap_gimple_stmt): Set has_simduid_loops
2739         for all IFN_GOMP_SIMD_* internal fns, not just for
2740         IFN_GOMP_SIMD_ORDERED_*.
2742 2016-09-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
2744         PR target/77670
2745         * config/rs6000/predicates.md (invert_fpmask_comparison_operator):
2746         New predicate that matches the ISA 3.0 XSCMP{EQ,GT,GE}DP
2747         instructions when you want to invert the test.
2748         * config/rs6000/rs6000.md (fpmask<mode>): Use the arguments in the
2749         correct order for XXSEL.
2750         (mov<SFDF:mode><SFDF2:mode>cc_invert_p9): Define the inverted test
2751         for using XSCMP{EQ,GT,GE}DP.
2753 2016-09-21  David Malcolm  <dmalcolm@redhat.com>
2755         * genconstants.c (main): Introduce noop_reader and convert call
2756         to read_md_files to a method call.
2757         * genenums.c (main): Likewise.
2758         * genmddeps.c (main): Likewise.
2759         * genpreds.c (write_tm_constrs_h): Replace use of "in_fname" with
2760         rtx_reader_ptr->get_top_level_filename ().
2761         (write_tm_preds_h): Likewise.
2762         (write_insn_preds_c): Likewise.
2763         * gensupport.c (class gen_reader): New subclass of rtx_reader.
2764         (rtx_handle_directive): Convert to...
2765         (gen_reader::handle_unknown_directive): ...this.
2766         (init_rtx_reader_args_cb): Convert return type from bool to
2767         rtx_reader *.  Create a gen_reader instance, using it for the
2768         call to read_md_files.  Return it if no errors occur.
2769         (init_rtx_reader_args): Convert return type from bool to
2770         rtx_reader *.
2771         * gensupport.h (init_rtx_reader_args_cb): Likewise.
2772         (init_rtx_reader_args_cb): Likewise.
2773         * read-md.c (struct file_name_list): Move to class rtx_reader.
2774         (read_md_file): Delete in favor of rtx_reader::m_read_md_file.
2775         (read_md_filename): Delete in favor of
2776         rtx_reader::m_read_md_filename.
2777         (read_md_lineno): Delete in favor of rtx_reader::m_read_md_lineno.
2778         (in_fname): Delete in favor of rtx_reader::m_toplevel_fname.
2779         (base_dir): Delete in favor of rtx_reader::m_base_dir.
2780         (first_dir_md_include): Delete in favor of
2781         rtx_reader::m_first_dir_md_include.
2782         (last_dir_md_include_ptr): Delete in favor of
2783         rtx_reader::m_last_dir_md_include_ptr.
2784         (max_include_len): Delete.
2785         (rtx_reader_ptr): New.
2786         (fatal_with_file_and_line): Use get_filename and get_lineno
2787         accessors of rtx_reader_ptr.
2788         (require_char_ws): Likewise.
2789         (rtx_reader::read_char): New method, based on ::read_char.
2790         (rtx_reader::unread_char): New method, based on ::unread_char.
2791         (read_escape): Use get_filename and get_lineno accessors of
2792         rtx_reader_ptr.
2793         (read_braced_string): Use get_lineno accessor of rtx_reader_ptr.
2794         (read_string): Use get_filename and get_lineno accessors of
2795         rtx_reader_ptr.
2796         (rtx_reader::rtx_reader): New ctor.
2797         (rtx_reader::~rtx_reader): New dtor.
2798         (handle_include): Convert from a function to...
2799         (rtx_reader::handle_include): ...this method, converting
2800         handle_directive from a callback to a virtual function.
2801         (handle_file): Likewise, converting to...
2802         (rtx_reader::handle_file): ...this method.
2803         (handle_toplevel_file): Likewise, converting to...
2804         (rtx_reader::handle_toplevel_file): ...this method.
2805         (rtx_reader::get_current_location): New method.
2806         (parse_include): Convert from a function to...
2807         (rtx_reader::add_include_path): ...this method, dropping redundant
2808         update to unused max_include_len.
2809         (read_md_files): Convert from a function to...
2810         (rtx_reader::read_md_files): ...this method, converting
2811         handle_directive from a callback to a virtual function.
2812         (noop_reader::handle_unknown_directive): New method.
2813         * read-md.h (directive_handler_t): Delete this typedef.
2814         (in_fname): Delete.
2815         (read_md_file): Delete.
2816         (read_md_lineno): Delete.
2817         (read_md_filename): Delete.
2818         (class rtx_reader): New class.
2819         (rtx_reader_ptr): New decl.
2820         (class noop_reader): New subclass of rtx_reader.
2821         (read_char): Reimplement in terms of rtx_reader::read_char.
2822         (unread_char): Reimplement in terms of rtx_reader::unread_char.
2823         (read_md_files): Delete.
2824         * read-rtl.c (read_rtx_code): Update for deletion of globals
2825         read_md_filename and read_md_lineno.
2827 2016-09-21  Jason Merrill  <jason@redhat.com>
2829         * input.h (from_macro_definition_at): New.
2831 2016-09-21  Segher Boessenkool  <segher@kernel.crashing.org>
2833         * doc/rtl.texi (JUMP_LABEL): Document RETURN and SIMPLE_RETURN values.
2835 2016-09-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2837         PR tree-optimization/77550
2838         * tree-vect-stmts.c (create_array_ref): Change parameters.
2839         (get_group_alias_ptr_type): New function.
2840         (vectorizable_store, vectorizable_load): Use get_group_alias_ptr_type.
2842 2016-09-21  Marek Polacek  <polacek@redhat.com>
2844         * gimple-ssa-sprintf.c (pass_sprintf_length::compute_format_length):
2845         Add falls through comment.
2847 2016-09-21  Richard Biener  <rguenther@suse.de>
2849         * dwarf2out.c (remove_child_with_prev): Clear child->die_sib.
2850         (replace_child): Likewise.
2851         (remove_child_TAG): Adjust.
2852         (move_marked_base_types): Likewise.
2853         (prune_unused_types_prune): Clear die_sib of removed children.
2855 2016-09-21  Georg-Johann Lay  <avr@gjlay.de>
2857         PR target/77326
2858         * config/avr/avr.c (avr_notice_update_cc) [CC_NONE]: If insn
2859         touches some regs mentioned in cc_status, do CC_STATUS_INIT.
2861 2016-09-21  Richard Biener  <rguenther@suse.de>
2863         PR tree-optimization/77648
2864         * tree-ssa-structalias.c (process_constraint): Handle all DEREF
2865         with complex RHS.
2866         (make_transitive_closure_constraints): Adjust comment.
2867         (make_any_offset_constraints): New function.
2868         (handle_rhs_call): Make sure to first expand a pointer to all
2869         subfields before transitively closing it.
2870         (handle_const_call): Likewise.  Properly expand returned
2871         pointers as well.
2872         (handle_pure_call): Likewise.
2874 2016-09-21  Richard Biener  <rguenther@suse.de>
2875             Jakub Jelinek  <jakub@redhat.com>
2877         PR tree-optimization/77621
2878         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Split
2879         group at non-vectorizable stmts.
2881 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2883         PR tree-optimization/72835
2884         * tree-ssa-reassoc.c (make_new_ssa_for_def): New.
2885         (make_new_ssa_for_all_defs): Likewise.
2886         (zero_one_operation): Replace all SSA_NAMEs defined in the chain.
2888 2016-09-20  Martin Sebor  <msebor@redhat.com>
2890         PR middle-end/49905
2891         * Makefile.in (OBJS): Add gimple-ssa-sprintf.o.
2892         * config/linux.h (TARGET_PRINTF_POINTER_FORMAT): Redefine.
2893         * config/linux.c (gnu_libc_printf_pointer_format): New function.
2894         * config/sol2.h (TARGET_PRINTF_POINTER_FORMAT): Same.
2895         * config/sol2.c (solaris_printf_pointer_format): New function.
2896         * doc/invoke.texi (-Wformat-length, -fprintf-return-value): New
2897         options.
2898         * doc/tm.texi.in (TARGET_PRINTF_POINTER_FORMAT): Document.
2899         * doc/tm.texi: Regenerate.
2900         * gimple-fold.h (get_range_strlen): New function.
2901         (get_maxval_strlen): Declare existing function.
2902         * gimple-fold.c (get_range_strlen): Add arguments and compute both
2903         maximum and minimum.
2904          (get_range_strlen): Define overload.
2905         (get_maxval_strlen): Adjust.
2906         * gimple-ssa-sprintf.c: New file and pass.
2907         * passes.def (pass_sprintf_length): Add new pass.
2908         * targhooks.h (default_printf_pointer_format): Declare new function.
2909         (gnu_libc_printf_pointer_format): Same.
2910         (solaris_libc_printf_pointer_format): Same.
2911         * targhooks.c (default_printf_pointer_format): Define new function.
2912         * tree-pass.h (make_pass_sprintf_length): Declare new function.
2913         * print-tree.c: Increase buffer size.
2915 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2917         * tree-vrp.c (get_value_range): Teach PARM_DECL to use ipa-vrp results.
2919 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2921         * common.opt: New option -fipa-vrp.
2922         * ipa-cp.c (ipa_get_vr_lat): New.
2923         (ipcp_vr_lattice::print): Likewise.
2924         (print_all_lattices): Call ipcp_vr_lattice::print.
2925         (ipcp_vr_lattice::meet_with): New.
2926         (ipcp_vr_lattice::meet_with_1): Likewise.
2927         (ipcp_vr_lattice::top_p): Likewise.
2928         (ipcp_vr_lattice::bottom_p): Likewsie.
2929         (ipcp_vr_lattice::set_to_bottom): Likewise.
2930         (set_all_contains_variable): Call VR set_to_bottom.
2931         (initialize_node_lattices): Init VR lattices.
2932         (propagate_vr_accross_jump_function): New.
2933         (propagate_constants_accross_call): Call
2934         propagate_vr_accross_jump_function.
2935         (ipcp_store_vr_results): New.
2936         (ipcp_driver): Handle VR.
2937         * ipa-prop.c (ipa_print_node_jump_functions_for_edge): Handle VR.
2938         (ipa_set_jf_unknown): Likewise.
2939         (ipa_compute_jump_functions_for_edge): Likewise.
2940         (ipa_node_params_t::duplicate): Likewise.
2941         (ipa_write_jump_function): Likewise.
2942         (ipa_read_jump_function): Likewise.
2943         (write_ipcp_transformation_info): Likewise.
2944         (read_ipcp_transformation_info): Likewise.
2945         (ipcp_update_vr): New.
2946         (ipcp_transform_function): Handle VR.
2947         * ipa-prop.h (struct ipa_vr): New.
2948         * cgraph.c: Include tree-vrp.h.
2949         * cgraphunit.c: Likewise.
2950         * ipa-utils.c: Likewise.
2951         * ipa.c: Likewise.
2952         * opts.c: Likewise.
2953         * toplev.c: Likewise.
2954         * ipa-devirt.c: Likewise.
2955         * ipa-inline-transform.c: Likewise.
2956         * ipa-inline.c: Likewise.
2957         * ipa-profile.c: Likewise.
2959 2016-09-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
2961         * doc/invoke.texi: Document -fdump-tree-evrp.
2962         * passes.def: Define new pass_early_vrp.
2963         * timevar.def: Define new TV_TREE_EARLY_VRP.
2964         * tree-pass.h (make_pass_early_vrp): New.
2965         * tree-ssa-propagate.c: Make replace_uses_in non static.
2966         * tree-ssa-propagate.h: Export replace_uses_in.
2967         * tree-vrp.c (extract_range_for_var_from_comparison_expr): New.
2968         (extract_range_from_assert): Factor out
2969         extract_range_for_var_from_comparison_expr.
2970         (vrp_initialize_lattice): New.
2971         (vrp_initialize): Factor out vrp_initialize_lattice.
2972         (vrp_valueize): Fix it to reject complex value ranges.
2973         (vrp_free_lattice): New.
2974         (evrp_dom_walker::before_dom_children): Likewise.
2975         (evrp_dom_walker::after_dom_children): Likewise.
2976         (evrp_dom_walker::push_value_range): Likewise.
2977         (evrp_dom_walker::pop_value_range): Likewise.
2978         (execute_early_vrp): Likewise.
2979         (execute_vrp): Call vrp_initialize_lattice and vrp_free_lattice.
2980         (make_pass_early_vrp): New.
2982 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2984         * config/i386/i386.md (mult->ashift peephole2s): Use pow2p_hwi
2985         instead of exact_log2.
2987 2016-09-20  Uros Bizjak  <ubizjak@gmail.com>
2989         PR target/77621
2990         * config/i386/i386.c (ix86_preferred_simd_mode) <case DFmode>:
2991         Don't return word_mode for !TARGET_VECTORIZE_DOUBLE.
2992         (ix86_add_stmt_cost): Penalize DFmode vector operations
2993         for !TARGET_VECTORIZE_DOUBLE.
2995 2016-09-20  Gerald Pfeifer  <gerald@pfeifer.com>
2997         * doc/invoke.texi (Warning Options): Simplify language.
2998         (Optimize Options): Complete sentence.
3000 2016-09-20  David Edelsohn  <dje.gcc@gmail.com>
3002         * dbxout.c (xcoff_debug_hooks):  Add filename parameter to
3003         early_finish hook.
3005 2016-09-20  Michael Meissner  <meissner@linux.vnet.ibm.com>
3007         PR target/71395
3008         * config/rs6000/rs6000.c (rs6000_expand_vector_init): For V4SF
3009         inits on power8 and above, use the VMRGEW instruction instead of a
3010         permute.
3012         * config/rs6000/altivec.md (UNSPEC_VMRGEW_DIRECT): New unspec.
3013         (p8_vmrgew_v4sf_direct): New VMRGEW insn for V4SF floating
3014         initialization.
3016 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3018         * config/aarch64/arm_neon.h
3019         (vst2_s64, vst2_u64, vst2_f64, vst2_s8): Add missing attributes.
3020         (vst3_s64, vst3_u64, vst3_f64, vst3_s8): Likewise.
3021         (vst4_s64, vst4_u64, vst4_f64, vst4_s8): Likewise.
3023 2016-09-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3025         * config/var/vax.h (ELIMINABLE_REGS): Define.
3026         (INITIAL_ELIMINATION_OFFSET): Define.
3028 2016-09-20  Jakub Jelinek  <jakub@redhat.com>
3030         PR middle-end/77624
3031         * builtins.c (fold_builtin_atomic_always_lock_free): Only look through
3032         cast to void * if the cast is from some other pointer type.
3034 2016-09-20  Richard Biener  <rguenther@suse.de>
3036         PR tree-optimization/77646
3037         * tree-ssa-sccvn.c (visit_reference_op_call): Always value-number
3038         a VDEF.
3040 2016-09-20  Tamar Christina  <tamar.christina@arm.com>
3042         * config/aarch64/arm_neon.h: Add gnu_inline and artificial
3043         attributes to all inlined functions and make them extern.
3045 2016-09-20  Richard Biener  <rguenther@suse.de>
3047         * debug.h (gcc_debug_hooks): Add filename parameter to early_finish
3048         hook.
3049         * debug.c (do_nothing_debug_hooks): Adjust.
3050         * dbxout.c (dbx_debug_hooks): Likewise.
3051         * sdbout.c (sdb_debug_hooks): Likewise.
3052         * dwarf2out.c (dwarf2_lineno_debug_hooks): Likewise.
3053         (dwarf2out_finish): Move producer, filename and
3054         path annotation ...
3055         (dwarf2out_early_finish): ... here.  Remove in_lto_p special-casing.
3056         * cgraphunit.c (symbol_table::finalize_compilation_unit): Adjust.
3058 2016-09-19  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3060         PR c++/77434
3061         * doc/invoke.texi: Document -Wint-in-bool-context.
3063         PR middle-end/77421
3064         * dwarf2out.c (output_loc_operands): Fix an assertion.
3066 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3068         * ginclude/float.h [__STDC_WANT_IEC_60559_BFP_EXT__]
3069         (CR_DECIMAL_DIG): New macro.
3071 2016-09-19  Joseph Myers  <joseph@codesourcery.com>
3073         * ginclude/stddef.h (max_align_t) [__i386__]: Add __float128
3074         element.
3076 2016-09-19  Vladimir Makarov  <vmakarov@redhat.com>
3078         PR rtl-optimization/77416
3079         * lra-remat.c (operand_to_remat): Process hard coded insn
3080         registers.
3082 2016-09-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3084         * simplify-rtx.c (simplify_relational_operation_1): Add transformation
3085         (GTU (PLUS a C) (C - 1)) --> (LTU a -C).
3087 2016-09-19  Segher Boessenkool  <segher@kernel.crashing.org>
3089         * target.def (lra_p): Wordsmithing.
3090         * doc/tm.texi: Regenerate.
3092 2016-09-19  Jakub Jelinek  <jakub@redhat.com>
3093             Jan Hubicka  <jh@suse.cz>
3095         PR target/77587
3096         * cgraph.c (cgraph_node::rtl_info): Pass &avail to
3097         ultimate_alias_target call, return NULL if avail < AVAIL_AVAILABLE.
3098         Call ultimate_alias_target just once, not up to 4 times.
3100 2016-09-19  Richard Biener  <rguenther@suse.de>
3102         * dwarf2out.c (early_dwarf_finished): New global.
3103         (set_early_dwarf::set_early_dwarf): Assert early_dwarf_finished
3104         is false.
3105         (dwarf2out_early_finish): Set early_dwarf_finished at the end,
3106         if called from LTO exit early.
3107         (dwarf2out_late_global_decl): When being during the early
3108         debug phase do not add locations but only const value attributes.
3109         Adjust the way we generate early DIEs for LTO.
3111 2016-09-19  Richard Biener  <rguenther@suse.de>
3113         PR middle-end/77605
3114         * tree-data-ref.c (analyze_subscript_affine_affine): Use the
3115         proper niter to bound the loops.
3117 2016-09-19  Richard Biener  <rguenther@suse.de>
3119         PR tree-optimization/77514
3120         * tree-ssa-pre.c (create_expression_by_pieces): Optimize
3121         search for folded stmt.
3123 2016-09-17  Jan Hubicka  <hubicka@ucw.cz>
3125         * passes.def (pass_early_thread_jumps): Schedule after forwprop.
3126         * tree-pass.h (make_pass_early_thread_jumps): Declare.
3127         * tree-ssa-threadbackward.c (fsm_find_thread_path,
3128         fsm_find_thread_path, profitable_jump_thread_path,
3129         fsm_find_control_statement_thread_paths,
3130         find_jump_threads_backwards): Add speed_p parameter.
3131         (pass_data_early_thread_jumps): New pass.
3132         (make_pass_early_thread_jumps): New function.
3134 2016-09-17  Andreas Schwab  <schwab@suse.de>
3136         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Add cast.
3137         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3139 2016-09-16  Eric Botcazou  <ebotcazou@adacore.com>
3141         * recog.c (rest_of_handle_split_after_reload): Delete.
3142         (pass_split_after_reload::gate): New method.
3143         (pass_split_after_reload::execute): Call split_all_insns directly.
3145 2016-09-16  Jonathan Wakely  <jwakely@redhat.com>
3147         * doc/extend.texi (Integer Overflow Builtins): Fix type of out
3148         parameters for functions taking long long arguments.
3150 2016-09-16  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3152         PR target/77613
3153         * config/rs6000/rs6000.c (rtx_is_swappable_p): Add support for
3154         splat with truncate.
3156 2016-09-16  Jason Merrill  <jason@redhat.com>
3158         * hwint.h (least_bit_hwi, pow2_or_zerop, pow2p_hwi, ctz_or_zero):
3159         New.
3160         * hwint.c (exact_log2): Use pow2p_hwi.
3161         (ctz_hwi, ffs_hwi): Use least_bit_hwi.
3162         * alias.c (memrefs_conflict_p): Use pow2_or_zerop.
3163         * builtins.c (get_object_alignment_2, get_object_alignment)
3164         (get_pointer_alignment, fold_builtin_atomic_always_lock_free): Use
3165         least_bit_hwi.
3166         * calls.c (compute_argument_addresses, store_one_arg): Use
3167         least_bit_hwi.
3168         * cfgexpand.c (expand_one_stack_var_at): Use least_bit_hwi.
3169         * combine.c (force_to_mode): Use least_bit_hwi.
3170         (contains_muldiv, find_split_point, combine_simplify_rtx)
3171         (simplify_if_then_else, simplify_set, force_to_mode)
3172         (if_then_else_cond, simplify_and_const_int_1)
3173         (simplify_compare_const): Use pow2p_hwi.
3174         * cse.c (fold_rtx): Use pow2p_hwi.
3175         * emit-rtl.c (set_mem_attributes_minus_bitpos, adjust_address_1):
3176         Use least_bit_hwi.
3177         * expmed.c (synth_mult, expand_divmod): Use ctz_or_zero, ctz_hwi.
3178         (init_expmed_one_conv): Use pow2p_hwi.
3179         * expr.c (is_aligning_offset): Use pow2p_hwi.
3180         * fold-const.c (round_up_loc, round_down_loc): Use pow2_or_zerop.
3181         (fold_binary_loc): Use pow2p_hwi.
3182         * function.c (assign_parm_find_stack_rtl): Use least_bit_hwi.
3183         * gimple-fold.c (gimple_fold_builtin_memory_op): Use pow2p_hwi.
3184         * gimple-ssa-strength-reduction.c (replace_ref): Use least_bit_hwi.
3185         * hsa-gen.c (gen_hsa_addr_with_align, hsa_bitmemref_alignment):
3186         Use least_bit_hwi.
3187         * ifcvt.c (noce_try_store_flag_constants): Use pow2p_hwi.
3188         * ipa-cp.c (ipcp_alignment_lattice::meet_with_1): Use least_bit_hwi.
3189         * ipa-prop.c (ipa_modify_call_arguments): Use least_bit_hwi.
3190         * omp-low.c (oacc_loop_fixed_partitions)
3191         (oacc_loop_auto_partitions): Use least_bit_hwi.
3192         * rtlanal.c (nonzero_bits1): Use ctz_or_zero.
3193         * stor-layout.c (place_field): Use least_bit_hwi.
3194         * tree-pretty-print.c (dump_generic_node): Use pow2p_hwi.
3195         * tree-sra.c (build_ref_for_offset): Use least_bit_hwi.
3196         * tree-ssa-ccp.c (ccp_finalize): Use least_bit_hwi.
3197         * tree-ssa-math-opts.c (bswap_replace): Use least_bit_hwi.
3198         * tree-ssa-strlen.c (handle_builtin_memcmp): Use pow2p_hwi.
3199         * tree-vect-data-refs.c (vect_analyze_group_access_1)
3200         (vect_grouped_store_supported, vect_grouped_load_supported)
3201         (vect_permute_load_chain, vect_shift_permute_load_chain)
3202         (vect_transform_grouped_load): Use pow2p_hwi.
3203         * tree-vect-generic.c (expand_vector_divmod): Use ctz_or_zero.
3204         * tree-vect-patterns.c (vect_recog_divmod_pattern): Use ctz_or_zero.
3205         * tree-vect-stmts.c (vectorizable_mask_load_store): Use
3206         least_bit_hwi.
3207         * tsan.c (instrument_expr): Use least_bit_hwi.
3208         * var-tracking.c (negative_power_of_two_p): Use pow2_or_zerop.
3210 2016-09-16  Andreas Schwab  <schwab@suse.de>
3212         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Use parameter
3213         OFFSET, not offset.
3214         * config/i386/cygming.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3216 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3218         PR target/77526
3219         * combine.c (rest_of_handle_combine): If any edges have been purged,
3220         free dominators if available.
3222 2016-09-16  Jakub Jelinek  <jakub@redhat.com>
3223             Eric Botcazou  <ebotcazou@adacore.com>
3225         PR middle-end/77594
3226         * internal-fn.c (expand_arith_overflow) <case MINUS_EXPR>: Don't fall
3227         through into expand_addsub_overflow after expand_neg_overflow.
3229 2016-09-15  David Malcolm  <dmalcolm@redhat.com>
3231         * diagnostic-show-locus.c
3232         (selftest::test_fixit_insert_containing_newline): New function.
3233         (selftest::test_fixit_replace_containing_newline): New function.
3234         (selftest::diagnostic_show_locus_c_tests): Call the above.
3236 2016-09-15  Bin Cheng  <bin.cheng@arm.com>
3238         PR tree-optimization/77503
3239         * tree-vect-loop.c (vectorizable_reduction): Record reduction
3240         code for CONST_COND_REDUCTION at analysis stage and use it at
3241         transform stage.
3242         * tree-vectorizer.h (struct _stmt_vec_info): New field.
3243         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): New macro.
3244         * tree-vect-stmts.c (new_stmt_vec_info): Initialize above new
3245         field.
3247 2016-09-15  Richard Biener  <rguenther@suse.de>
3249         PR middle-end/77544
3250         * fold-const.c (split_tree): Do not split constant ~X.
3252 2016-09-15  Jakub Jelinek  <jakub@redhat.com>
3254         PR rtl-optimization/77425
3255         * sched-int.h (sd_iterator_cond): Don't update it_ptr->linkp if list
3256         is NULL.
3258         PR middle-end/77475
3259         * config/i386/i386.c (ix86_parse_stringop_strategy_string): Simplify,
3260         use %qs instead of %s where desirable, use argument instead of arg in
3261         the diagnostic wording, add list of supported strategies and
3262         spellcheck hint.
3263         (ix86_option_override_internal): Emit target("m...") instead of
3264         option("m...") in the diagnostic.  Use %qs instead of %s in invalid
3265         -march/-mtune option diagnostic.  Add list of supported arches/tunings
3266         and spellcheck hint.  Remove prefix, suffix and sw variables, use
3267         main_args_p ? "..." : "..." in diagnostics to make translation
3268         possible.
3270 2016-09-15  Richard Biener  <rguenther@suse.de>
3272         * dwarf2asm.h (dw2_asm_output_offset): Add overload with
3273         extra offset argument.
3274         * dwarf2asm.c (dw2_asm_output_offset): Implement that.
3275         * doc/tm.texi.in (ASM_OUTPUT_DWARF_OFFSET): Adjust documentation
3276         to reflect new offset parameter.
3277         * doc/tm.texi: Regenerate.
3278         * config/darwin.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3279         * config/darwin-protos.h (darwin_asm_output_dwarf_delta): Add
3280         offset argument.
3281         (darwin_asm_output_dwarf_offset): Likewise.
3282         * config/darwin.c (darwin_asm_output_dwarf_delta): Add offset
3283         argument.
3284         (darwin_asm_output_dwarf_offset): Pass offset argument through.
3285         * config/ia64/ia64.h (ASM_OUTPUT_DWARF_OFFSET): Adjust.
3286         * config/i386/cygmin.h (ASM_OUTPUT_DWARF_OFFSET): Likewise.
3288 2016-09-15  Chung-Lin Tang  <cltang@codesourcery.com>
3290         PR fortran/72743
3291         * ipa-icf.c (set_alias_uids): New function.
3292         (sem_variable::merge): Use set_alias_uids to set DECL_PT_UID of
3293         all the merged variable's referring aliases.
3295 2016-09-15  Richard Biener  <rguenther@suse.de>
3297         PR tree-optimization/77514
3298         * tree-ssa-pre.c (create_expression_by_pieces): Handle garbage
3299         only forced_stmts sequence.
3301 2016-09-15  Kugan Vivekanandarajah  <kuganv@linaro.org>
3303         * tree-ssanames.h (FOR_EACH_SSA_NAME): New.
3304         * cfgexpand.c (update_alias_info_with_stack_vars): Use
3305         FOR_EACH_SSA_NAME to iterate over SSA variables.
3306         (pass_expand::execute): Likewise.
3307         * omp-simd-clone.c (ipa_simd_modify_function_body): Likewise.
3308         * tree-cfg.c (dump_function_to_file): Likewise.
3309         * tree-into-ssa.c (pass_build_ssa::execute): Likewise.
3310         (update_ssa): Likewise.
3311         * tree-ssa-alias.c (dump_alias_info): Likewise.
3312         * tree-ssa-ccp.c (ccp_finalize): Likewise.
3313         * tree-ssa-coalesce.c (build_ssa_conflict_graph): Likewise.
3314         (create_outofssa_var_map): Likewise.
3315         (coalesce_ssa_name): Likewise.
3316         * tree-ssa-operands.c (dump_immediate_uses): Likewise.
3317         * tree-ssa-pre.c (compute_avail): Likewise.
3318         * tree-ssa-sccvn.c (init_scc_vn): Likewise.
3319         (scc_vn_restore_ssa_info): Likewise.
3320         (free_scc_vn): Likwise.
3321         (run_scc_vn): Likewise.
3322         * tree-ssa-structalias.c (compute_points_to_sets): Likewise.
3323         * tree-ssa-ter.c (new_temp_expr_table): Likewise.
3324         * tree-ssa-copy.c (fini_copy_prop): Likewise.
3325         * tree-ssa.c (verify_ssa): Likewise.
3327 2016-09-14  Matthew Fortune  <matthew.fortune@imgtec.com>
3329         * config.gcc (mips*-mti-elf*, mips*-mti-linux*): Set mips32r2
3330         and mips64r2 as default 32-bit and 64-bit architectures.
3331         (mips*-img-elf*, mips*-img-linux*): Set mips32r6 and mips64r6
3332         as default 32-bit and 64-bit architectures.
3334 2016-09-14  Pat Haugen  <pthaugen@us.ibm.com>
3336         * loop-unroll.c (unroll_loop_runtime_iterations): Set probability
3337         of succ edge.
3339 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3341         * target.def (lra_p): Change commentary (for the manual) for the
3342         new default.
3343         * doc/tm.texi: Regenerate.
3345 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3347         * config/aarch64/aarch64.c (TARGET_LRA_P): Delete macro.
3348         * config/arm/arm.c (TARGET_LRA_P): Delete macro.
3349         * config/i386/i386.c (TARGET_LRA_P): Delete macro.
3350         * config/nds32/nds32.c (TARGET_LRA_P): Delete macro.
3352 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3354         * targhooks.c (default_lra_p): Return true instead of false.
3356 2016-09-14  Segher Boessenkool  <segher@kernel.crashing.org>
3358         * config/alpha/alpha.c (TARGET_LRA_P): New macro, defined to
3359         hook_bool_void_false.
3360         * config/avr/avr.c: Ditto.
3361         * config/bfin/bfin.c: Ditto.
3362         * config/c6x/c6x.c: Ditto.
3363         * config/cr16/cr16.c: Ditto.
3364         * config/cris/cris.c: Ditto.
3365         * config/epiphany/epiphany.c: Ditto.
3366         * config/fr30/fr30.c: Ditto.
3367         * config/frv/frv.c: Ditto.
3368         * config/h8300/h8300.c: Ditto.
3369         * config/ia64/ia64.c: Ditto.
3370         * config/iq2000/iq2000.c: Ditto.
3371         * config/lm32/lm32.c: Ditto.
3372         * config/m32c/m32c.c: Ditto.
3373         * config/m32r/m32r.c: Ditto.
3374         * config/m68k/m68k.c: Ditto.
3375         * config/mcore/mcore.c: Ditto.
3376         * config/microblaze/microblaze.c: Ditto.
3377         * config/mmix/mmix.c: Ditto.
3378         * config/mn10300/mn10300.c: Ditto.
3379         * config/moxie/moxie.c: Ditto.
3380         * config/msp430/msp430.c: Ditto.
3381         * config/nios2/nios2.c: Ditto.
3382         * config/nvptx/nvptx.c: Ditto.
3383         * config/pa/pa.c: Ditto.
3384         * config/pdp11/pdp11.c: Ditto.
3385         * config/rl78/rl78.c: Ditto.
3386         * config/sparc/sparc.c: Ditto.
3387         * config/spu/spu.c: Ditto.
3388         * config/stormy16/stormy16.c: Ditto.
3389         * config/tilegx/tilegx.c: Ditto.
3390         * config/tilepro/tilepro.c: Ditto.
3391         * config/v850/v850.c: Ditto.
3392         * config/vax/vax.c: Ditto.
3393         * config/visium/visium.c: Ditto.
3394         * config/xtensa/xtensa.c: Ditto.
3396 2016-09-14  Jakub Jelinek  <jakub@redhat.com>
3398         PR sanitizer/68260
3399         * tsan.c: Include target.h.
3400         (enum tsan_atomic_action): Add bool_clear and bool_test_and_set.
3401         (BOOL_CLEAR, BOOL_TEST_AND_SET): Define.
3402         (tsan_atomic_table): Add BUILT_IN_ATOMIC_CLEAR and
3403         BUILT_IN_ATOMIC_TEST_AND_SET entries.
3404         (instrument_builtin_call): Handle bool_clear and bool_test_and_set.
3406 2016-09-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3407             Martin Liska  <mliska@suse.cz>
3409         PR middle-end/77574
3410         * predict.c (force_edge_cold): Add braces to a condition.
3412 2016-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3414         PR rtl-optimization/77289
3415         * lra-constraints.c (get_final_hard_regno): Removed.
3416         (get_hard_regno): Add new parameter final_p.
3417         (get_reg_class): Directly call lra_get_elimination_hard_regno.
3418         (operands_match_p): Adjust call to get_hard_regno.
3419         (uses_hard_regs_p): Likewise.
3420         (process_alt_operands): Likewise.
3422 2016-09-13  Joe Seymour  <joe.s@somniumtech.com>
3424         PR target/70713
3425         * config/msp430/msp430.c (msp430_start_function): Emit an error
3426         if a function is both weak and specifies an interrupt number.
3428 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
3430         PR tree-optimization/77454
3431         * tree-ssa-dom.c (optimize_stmt): Set modified flag on stmt after
3432         changing GIMPLE_COND.  Move update_stmt_if_modified call after this.
3433         Formatting fix.
3435 2016-09-13  Tamar Christina  <tamar.christina@arm.com>
3437         * config/aarch64/aarch64-builtins.c
3438         (aarch64_init_simd_builtins): Fix builtin type signature printing.
3440 2016-09-13  Uros Bizjak  <ubizjak@gmail.com>
3442         * config/alpha/alpha.c (alpha_pass_by_reference): Pass un-named
3443         SFmode and SCmode arguments by reference.
3445 2016-09-13  David Malcolm  <dmalcolm@redhat.com>
3447         * diagnostic-show-locus.c (selftest::test_one_liner_fixit_insert):
3448         Rename to...
3449         (selftest::test_one_liner_fixit_insert_before): ...this, and update
3450         for renaming of add_fixit_insert to add_fixit_insert_before.
3451         (selftest::test_one_liner_fixit_insert_after): New function.
3452         (selftest::test_one_liner_fixit_validation_adhoc_locations):
3453         Update for renaming of add_fixit_insert to add_fixit_insert_before.
3454         (selftest::test_one_liner_many_fixits): Likewise.
3455         (selftest::test_diagnostic_show_locus_one_liner): Update for
3456         renaming, call new test function.
3457         (selftest::test_diagnostic_show_locus_fixit_lines): Update for
3458         renaming of add_fixit_insert to add_fixit_insert_before.
3459         (selftest::test_fixit_consolidation): Likewise.
3460         * diagnostic.c (selftest::test_print_parseable_fixits_insert):
3461         Likewise.
3462         * edit-context.c (selftest::test_applying_fixits_insert): Rename to...
3463         (selftest::test_applying_fixits_insert_before): ...this.
3464         (selftest::test_applying_fixits_insert): Update for renaming of
3465         add_fixit_insert to add_fixit_insert_before.
3466         (selftest::test_applying_fixits_insert_after): New function.
3467         (selftest::test_applying_fixits_insert_after_at_line_end): New
3468         function.
3469         (selftest::test_applying_fixits_insert_after_failure): New function.
3470         (selftest::test_applying_fixits_multiple): Update for renaming of
3471         add_fixit_insert to add_fixit_insert_before.
3472         (selftest::change_line): Likewise.
3473         (selftest::test_applying_fixits_unreadable_file): Likewise.
3474         (selftest::test_applying_fixits_line_out_of_range): Likewise.
3475         (selftest::test_applying_fixits_column_validation): Likewise.
3476         (selftest::test_applying_fixits_column_validation): Likewise.
3477         (selftest::edit_context_c_tests): Update for renamed test function;
3478         call new test functions.
3480 2016-09-13  Pat Haugen  <pthaugen@us.ibm.com>
3482         PR tree-optimization/77536
3483         PR rtl-optimization/68212
3484         * config/rs6000/rs6000.md (div->recip splitter): Remove
3485         optimize_insn_for_speed_p condition.
3487 2016-09-13  Maciej W. Rozycki  <macro@imgtec.com>
3489         * optabs.c (prepare_cmp_insn): Update documentation comment.
3491 2016-09-13  Jakub Jelinek  <jakub@redhat.com>
3492             Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
3494         PR middle-end/77475
3495         * opts.h (candidates_list_and_hint): Declare.
3496         * opts-common.c (candidates_list_and_hint): New function.
3497         (cmdline_handle_error): Use it.
3499 2016-09-12  David Malcolm  <dmalcolm@redhat.com>
3501         * edit-context.c (edited_line::get_len): New accessor.
3502         (edited_file::print_diff): Split out hunk-printing into...
3503         (edited_file::print_diff_hunk): New method.
3504         (edited_file::print_diff_line): New method.
3506 2016-09-12  Andrew Pinski  <apinski@cavium.com>
3508         * config/aarch64/aarch64-tuning-flags.def (SLOW_UNALIGNED_LDPW):
3509         New tuning option.
3510         * config/aarch64/aarch64.c (thunderx_tunings): Enable
3511         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW.
3512         (aarch64_operands_ok_for_ldpstp): Return false if
3513         AARCH64_EXTRA_TUNE_SLOW_UNALIGNED_LDPW and the mode
3514         was SImode and the alignment is less than 8 byte.
3515         (aarch64_operands_adjust_ok_for_ldpstp): Likewise.
3517 2016-09-12  Orlando Arias  <oarias@knights.ucf.edu>
3519         PR target/77570
3520         * config/msp430/msp430.md (delay_cycles_32x): Fix pushm/popm.
3522 2016-09-12  Marek Polacek  <polacek@redhat.com>
3524         * doc/extend.texi: Use lowercase "boolean".
3525         * doc/invoke.texi: Likewise.
3526         * doc/md.texi: Likewise.
3527         * target.def: Likewise.
3528         * doc/tm.texi: Regenerated.
3530 2016-09-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3532         PR middle-end/77426
3533         * expmed.c (synth_mult): Delete duplicate mode check.
3535 2016-09-10  Tom de Vries  <tom@codesourcery.com>
3537         PR C/71602
3538         * builtins.c (std_canonical_va_list_type): Strictly return non-null for
3539         va_list type only.
3540         * config/i386/i386.c (ix86_canonical_va_list_type): Same.
3541         * gimplify.c (gimplify_va_arg_expr): Handle &va_list.
3543 2016-09-09  Peter Bergner  <bergner@vnet.ibm.com>
3545         PR rtl-optimization/77289
3546         * lra-constraints.c (get_final_hard_regno): Add support for non hard
3547         register numbers.  Remove support for subregs.
3548         (get_hard_regno): Use SUBREG_P.  Don't call get_final_hard_regno().
3549         (get_reg_class): Delete removed get_final_hard_regno() argument.
3550         (uses_hard_regs_p): Call get_final_hard_regno().
3552 2016-09-09  Martin Sebor  <msebor@redhat.com>
3554         PR c/77520
3555         PR c/77521
3556         * pretty-print.c (pp_quoted_string): New function.
3557         (pp_format): Call it for %c and %s directives.
3559 2016-09-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3561         * doc/tm.texi.in (INITIAL_FRAME_POINTER_OFFSET): Remove.
3562         (ELIMINABLE_REGS, TARGET_CAN_ELIMINATE,
3563         INITIAL_ELIMINATION_OFFSET) : Update documentation.
3564         * target.def (frame_pointer_required, can_eliminate): Likewise.
3565         * doc/tm.texi: Regenerated.
3566         * builtins.c (expand_builtin_setjmp_receiver): Remove #ifdef
3567         ELIMINABLE_REGS.
3568         * df-scan.c (df_hard_reg_init): Likewise.
3569         * ira.c (ira_setup_eliminable_regset): Likewise.
3570         * lra-eliminations.c (reg_eliminate_1, (update_reg_eliminate,
3571         init_elim_table): Likewise.
3572         * reload1.c (reg_eliminate_1, verify_initial_elim_offsets,
3573         set_initial_elim_offsets, update_eliminables,
3574         init_elim_table): Likewise.
3575         * rtlanal.c (get_initial_register_offset): Likewise.
3576         * config/ft32/ft32.h (INITIAL_FRAME_POINTER_OFFSET): Remove.
3577         * config/m32r/m32r.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3578         * config/moxie/moxie.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3579         * config/vax/vax.h (INITIAL_FRAME_POINTER_OFFSET): Likewise.
3580         * config/fr30/fr30.h: Fix comment.
3581         * config/frv/frv.c: Likewise.
3582         * config/frv/frv.h: Likewise.
3583         * config/ft32/ft32.h: Likewise.
3584         * config/visium/visium.h: Likewise.
3585         * config/pa/pa64-linux.h: Likewise.
3586         * config/v850/v850.h: Likewise.
3587         * config/cris/cris.c: Likewise.
3588         * config/ia64/ia64.h: Likewise.
3589         * config/moxie/moxie.h: Likewise.
3590         * config/m32r/m32r.h: Likewise.
3592 2016-09-10  Alexander Ivchenko  <alexander.ivchenko@intel.com>
3594         PR target/77267
3595         * config.in: Regenerate.
3596         * config/i386/linux-common.h (MPX_LD_AS_NEEDED_GUARD_PUSH):
3597         New macro.
3598         (MPX_LD_AS_NEEDED_GUARD_PUSH): Ditto.
3599         (LIBMPXWRAPPERS_SPEC): Remove "--no-whole-archive" from
3600         static-libmpxwrappers case.
3601         (LIBMPX_SPEC): Add guards with MPX_LD_AS_NEEDED_GUARD_PUSH and
3602         MPX_LD_AS_NEEDED_GUARD_POP.
3603         * configure: Regenerate.
3604         * configure.ac (HAVE_LD_PUSHPOPSTATE_SUPPORT): New variable.
3605         defined if linker support "--push-state"/"--pop-state".
3607 2016-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3609         * doc/cpp.texi (__*_WIDTH__): Small wording fixes.
3611 2016-09-09  Joseph Myers  <joseph@codesourcery.com>
3613         * doc/cpp.texi (__SCHAR_WIDTH__, __SHRT_WIDTH__, __INT_WIDTH__)
3614         (__LONG_WIDTH__, __LONG_LONG_WIDTH__, __PTRDIFF_WIDTH__)
3615         (__SIG_ATOMIC_WIDTH__, __SIZE_WIDTH__, __WCHAR_WIDTH__)
3616         (__WINT_WIDTH__, __INT_LEAST8_WIDTH__, __INT_LEAST16_WIDTH__)
3617         (__INT_LEAST32_WIDTH__, __INT_LEAST64_WIDTH__)
3618         (__INT_FAST8_WIDTH__, __INT_FAST16_WIDTH__, __INT_FAST32_WIDTH__)
3619         (__INT_FAST64_WIDTH__, __INTPTR_WIDTH__, __INTMAX_WIDTH__):
3620         Document.
3621         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Define
3622         width macros from TS 18661-1.
3623         * glimits.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Likewise.
3625 2016-09-08  Jakub Jelinek  <jakub@redhat.com>
3627         PR fortran/77516
3628         * omp-low.c (lower_rec_simd_input_clauses): Use max_vf for non-positive
3629         OMP_CLAUSE_SAFELEN_EXPR.
3631 2016-09-07  David Malcolm  <dmalcolm@redhat.com>
3633         * Makefile.in (OBJS): Add substring-locations.o.
3634         * langhooks-def.h (class substring_loc): New forward decl.
3635         (lhd_get_substring_location): New decl.
3636         (LANG_HOOKS_GET_SUBSTRING_LOCATION): New macro.
3637         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_GET_SUBSTRING_LOCATION.
3638         * langhooks.c (lhd_get_substring_location): New function.
3639         * langhooks.h (class substring_loc): New forward decl.
3640         (struct lang_hooks): Add field get_substring_location.
3641         * substring-locations.c: New file, taking definition of
3642         format_warning_va and format_warning_at_substring from
3643         c-family/c-format.c, making them non-static.
3644         * substring-locations.h (class substring_loc): Move class here
3645         from c-family/c-common.h.  Add and rewrite comments.
3646         (format_warning_va): New decl.
3647         (format_warning_at_substring): New decl.
3648         (get_source_location_for_substring): Add comment.
3650 2016-09-07  Eric Gallager  <egall@gwmail.gwu.edu>
3652         * config/i386/i386.c: Add 'U' suffix to processor feature bits
3653         to avoid -Wnarrowing warning.
3654         * config/i386/x86-tune.def: Likewise for DEF_TUNE selector bitmasks.
3655         * opts.c: Likewise for SANITIZER_OPT bitmasks.
3657 2016-09-07  Wilco Dijkstra  <wdijkstr@arm.com>
3659         * config/aarch64/aarch64.c (aarch64_legitimize_address):
3660         Avoid use of base_offset if offset already in range.
3662 2016-09-07  Kaz Kojima  <kkojima@gcc.gnu.org>
3664         * config/sh/sh-protos.h (struct sh_atomic_model,
3665         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3666         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3667         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): Move to...
3668         * config/sh/sh.h (struct sh_atomic_model,
3669         selected_atomic_model, TARGET_ATOMIC_ANY, TARGET_ATOMIC_STRICT,
3670         TARGET_ATOMIC_SOFT_GUSA, TARGET_ATOMIC_HARD_LLCS,
3671         TARGET_ATOMIC_SOFT_TCB, TARGET_ATOMIC_SOFT_IMASK): ...here.
3672         Guard with __cplusplus.
3674 2016-09-06  Jakub Jelinek  <jakub@redhat.com>
3676         PR target/69255
3677         * config/i386/i386.c (ix86_expand_builtin): For builtin with
3678         unsupported or unknown ISA, use expand_call.
3680 2016-09-06  Martin Liska  <mliska@suse.cz>
3682         PR gcov-profile/77378
3683         PR gcov-profile/77466
3684         * tree-profile.c (tree_profiling): Detect whether target can use
3685         -fprofile-update=atomic.
3687 2016-09-06  Richard Biener  <rguenther@suse.de>
3689         PR tree-optimization/77479
3690         * tree-vrp.c (update_value_range): Extend overflow handling to
3691         VARYING.
3693 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3695         PR target/77476
3696         * config/i386/i386.md (isa): Add x64_avx512bw.
3697         (*zero_extendsidi2): For alternative 11 use x64_avx512bw isa.
3698         (kmov_isa): New mode attr.
3699         (zero_extend<mode>di2): Use <kmov_isa> isa for the last alternative.
3700         (*zero_extend<mode>si2): Likewise.
3701         (*zero_extendqihi2): Use avx512dq isa for the last alternative.
3703 2016-09-05  Gerald Pfeifer  <gerald@pfeifer.com>
3705         * doc/invoke.texi (SPU Options): nops -> NOPs.
3706         (x86 Options): Ditto.
3708 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3710         PR middle-end/77475
3711         * toplev.c (process_options): Temporarily set input_location
3712         to UNKNOWN_LOCATION around targetm.target_option.override () call.
3714 2016-09-05  Uros Bizjak  <ubizjak@gmail.com>
3716         PR rtl-optimization/77452
3717         * explow.c (plus_constant) <case MEM>: Extract scalar constant from
3718         inner-mode reference to a CONST_VECTOR constant in the constant pool.
3720 2016-09-05  Marek Polacek  <polacek@redhat.com>
3722         PR c/77423
3723         * doc/invoke.texi: Update -Wlogical-not-parentheses documentation.
3725 2016-09-05  Jakub Jelinek  <jakub@redhat.com>
3727         PR other/77421
3728         * gensupport.c (alter_output_for_subst_insn): Remove redundant
3729         *insn_out == '*' test.  Don't copy unnecessary to yet another
3730         memory buffer, and don't leak it.
3732         PR rtl-optimization/77425
3733         * ipa-devirt.c (get_odr_type): Set val->id unconditionally.
3735 2016-09-03  Kirill Yukhin  <kirill.yukhin@intel.com>
3737         * ubsan.c (ubsan_use_new_style_p): Fix check for empty string.
3739 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3741         * common.opt (fdiagnostics-generate-patch): New option.
3742         * diagnostic.c: Include "edit-context.h".
3743         (diagnostic_initialize): Initialize context->edit_context_ptr.
3744         (diagnostic_finish): Delete context->edit_context_ptr.
3745         (diagnostic_report_diagnostic): Add fix-it hints from the
3746         diagnostic to context->edit_context_ptr, if any.
3747         * diagnostic.h (class edit_context): Add forward decl.
3748         (struct diagnostic_context): Add field "edit_context_ptr".
3749         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
3750         -fdiagnostics-generate-patch.
3751         (-fdiagnostics-generate-patch): New item.
3752         * toplev.c: Include "edit-context.h".
3753         (process_options): Set global_dc->edit_context_ptr to a new
3754         edit_context if the options need one.
3755         (toplev::main): Handle -fdiagnostics-generate-patch by using
3756         global_dc->edit_context_ptr.
3758 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3760         PR c/65467
3761         * gimplify.c (gimplify_adjust_omp_clauses_1): Diagnose implicit
3762         map and firstprivate clauses on target construct for _Atomic
3763         qualified decls.
3764         (gimplify_adjust_omp_clauses): Diagnose explicit firstprivate clauses
3765         on target construct for _Atomic qualified decls.
3766         * omp-low.c (use_pointer_for_field): Return true for _Atomic qualified
3767         decls.
3768         * omp-simd-clone.c (simd_clone_clauses_extract): Warn and give up for
3769         _Atomic qualified arguments not mentioned in uniform clause.
3771 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3773         * Makefile.in (OBJS-libcommon): Add edit-context.o.
3774         * diagnostic-color.c (color_dict): Add "diff-filename",
3775         "diff-hunk", "diff-delete", and "diff-insert".
3776         (parse_gcc_colors): Update default value of GCC_COLORS in comment
3777         to reflect above changes.
3778         * doc/invoke.texi (-fdiagnostics-color): Update description of
3779         default GCC_COLORS, and of the supported capabilities.
3780         * edit-context.c: New file.
3781         * edit-context.h: New file.
3782         * input.c (struct fcache): Add field "missing_trailing_newline".
3783         (diagnostics_file_cache_forcibly_evict_file): Initialize it to
3784         true.
3785         (add_file_to_cache_tab): Likewise.
3786         (fcache::fcache): Likewise.
3787         (get_next_line): Update c->missing_trailing_newline.
3788         (location_missing_trailing_newline): New function.
3789         * input.h (location_missing_trailing_newline): New decl.
3790         * selftest-run-tests.c (selftest::run_tests): Call
3791         edit_context_c_tests.
3792         * selftest.h (edit_context_c_tests): New decl.
3794 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3795             Richard Biener  <rguenth@suse.de>
3797         PR tree-optimization/77444
3798         * tree-ssa-loop-ivopts.c (cand_value_at): For pointers use sizetype
3799         as steptype, remove redundant initialization.
3801 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3803         PR sanitizer/77396
3804         * sanopt.c: Include gimple-ssa.h, tree-phinodes.h and ssa-iterators.h.
3805         (sanopt_optimize_walker): Optimize away
3806         __asan_before_dynamic_init (...) followed by
3807         __asan_after_dynamic_init () without intervening memory loads/stores.
3808         * ipa-pure-const.c (special_builtin_state): Handle
3809         BUILT_IN_ASAN_BEFORE_DYNAMIC_INIT and
3810         BUILT_IN_ASAN_AFTER_DYNAMIC_INIT.
3812 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3814         * cfg.c (free_original_copy_tables): Replace second assignment of
3815         bb_copy = NULL by bb_original = NULL.
3817 2016-09-02  Jakub Jelinek  <jakub@redhat.com>
3819         PR other/77421
3820         * config/i386/i386.c (ix86_expanded_args_builtin): Remove redundant
3821         assignment added in r216794.
3823 2016-09-02  David Malcolm  <dmalcolm@redhat.com>
3825         * Makefile.in (OBJS): Add typed-splay-tree.o.
3826         * selftest-run-tests.c (selftest::run_tests): Call
3827         typed_splay_tree_c_tests.
3828         * selftest.h (typed_splay_tree_c_tests): New decl.
3829         * typed-splay-tree.c: New file.
3830         * typed-splay-tree.h (typed_splay_tree::foreach_fn): New typedef.
3831         (typed_splay_tree::max): New method.
3832         (typed_splay_tree::min): New method.
3833         (typed_splay_tree::foreach): New method.
3834         (typed_splay_tree::closure): New struct.
3835         (typed_splay_tree::inner_foreach_fn): New function.
3837 2016-09-02  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3839         * ipa-cp.c (ipcp_store_bits_results): Change option name from
3840         -fipa-cp-bit to -fipa-bit-cp.
3842 2016-09-01  Martin Sebor  <msebor@redhat.com>
3844         PR tree-optimization/71831
3845         * tree-object-size.h: Return bool instead of the size and add
3846         argument for the size.
3847         * tree-object-size.c (compute_object_offset): Update signature.
3848         (addr_object_size): Same.
3849         (compute_builtin_object_size): Return bool instead of the size
3850         and add argument for the size.  Handle POINTER_PLUS_EXPR when
3851         optimization is disabled.
3852         (expr_object_size): Adjust.
3853         (plus_stmt_object_size): Adjust.
3854         (pass_object_sizes::execute): Adjust.
3855         * builtins.c (fold_builtin_object_size): Adjust.
3856         * doc/extend.texi (Object Size Checking): Update.
3857         * ubsan.c (instrument_object_size): Adjust.
3859 2016-09-01  Martin Sebor  <msebor@redhat.com>
3861         * genmatch.c (parser::parse_expr): Increase buffer size to guarantee
3862         it fits the output of the formatted function regardless of its
3863         arguments.
3864         * gcc/genmodes.c (parser::parse_expr): Same.
3865         * gimplify.c (gimplify_asm_expr): Same.
3866         * passes.c (pass_manager::register_one_dump_file): Same.
3867         * print-tree.c (print_node): Same.
3869 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3871         * config/rs6000/altivec.md: Use VSCR_REGNO instead of 110 throughout.
3873 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3875         * config/rs6000/altivec.md: Use VRSAVE_REGNO instead of 109 throughout.
3877 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3879         * config/rs6000/altivec.md: Use CR6_REGNO instead of 74 throughout.
3880         * config/rs6000/vector.md: Ditto.
3881         * config/rs6000/vsx.md: Ditto.
3883 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3885         * ipa-inline-analysis.c (param_change_prob): Get to the base object
3886         first in all cases.
3888 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3890         * config/rs6000/rs6000.md (*restore_gpregs_<mode>_r11,
3891         *restore_gpregs_<mode>_r12, *restore_gpregs_<mode>_r1,
3892         *return_and_restore_gpregs_<mode>_r11,
3893         *return_and_restore_gpregs_<mode>_r12,
3894         *return_and_restore_gpregs_<mode>_r1,
3895         *return_and_restore_fpregs_<mode>_r11,
3896         *return_and_restore_fpregs_<mode>_r12,
3897         *return_and_restore_fpregs_<mode>_r1): Use the hard register LR_REGNO
3898         directly instead of via the "l" constraint.  Renumber operands.
3899         Fix whitespace.
3901 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3903         * config/rs6000/altivec.md (*save_world, *save_vregs_<mode>_r11,
3904         save_vregs_<mode>_r12, *restore_vregs_<mode>_r11,
3905         *restore_vregs_<mode>_r12): Use LR_REGNO instead of 65.
3906         * config/rs6000/darwin.md (load_macho_picbase, load_macho_picbase_si,
3907         load_macho_picbase_di, *call_indirect_nonlocal_darwin64,
3908         *call_nonlocal_darwin64, *call_value_indirect_nonlocal_darwin64,
3909         *call_value_nonlocal_darwin64, reload_macho_picbase,
3910         reload_macho_picbase_si, reload_macho_picbase_di): Ditto.
3911         * config/rs6000/rs6000.h (RETURN_ADDR_IN_PREVIOUS_FRAME): Ditto.
3912         * config/rs6000/rs6000.md (*save_gpregs_<mode>_r11,
3913         *save_gpregs_<mode>_r12, *save_gpregs_<mode>_r1,
3914         *save_fpregs_<mode>_r11, *save_fpregs_<mode>_r12,
3915         *save_fpregs_<mode>_r1): Ditto.
3916         * config/rs6000/spe.md (*save_gpregs_spe, *restore_gpregs_spe,
3917         *return_and_restore_gpregs_spe): Ditto.
3919 2016-09-01  Segher Boessenkool  <segher@kernel.crashing.org>
3921         * config/rs6000/rs6000.md
3922         (define_insn "*return_and_restore_fpregs_aix_<mode>_r11"): Delete
3923         the use of the link register.
3924         (define_insn "*return_and_restore_fpregs_aix_<mode>_r1"): Ditto.
3926 2016-09-01  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
3927             Michael Meissner  <meissner@linux.vnet.ibm.com>
3929         PR target/72827
3930         * config/rs6000/rs6000.c (rs6000_legitimize_address): Avoid
3931         reg+reg addressing for TImode.
3932         (rs6000_legitimate_address_p): Only allow register indirect
3933         addressing for TImode, even without TARGET_QUAD_MEMORY.
3935 2016-09-01  Richard Biener  <rguenther@suse.de>
3937         PR middle-end/77436
3938         * tree-chrec.c (tree_fold_binomial): Use widest_int, properly
3939         check whether the result fits the desired result type.
3941 2016-09-01  Nathan Sidwell  <nathan@acm.org>
3943         * config/nvptx/nvptx.md (cbranch<mode>4): Op 2 can be const.
3945 2016-09-01  Wilco Dijkstra  <wdijkstr@arm.com>
3947         * config/aarch64/aarch64.c (aarch64_legitimize_address_displacement):
3948         New function.
3949         (TARGET_LEGITIMIZE_ADDRESS_DISPLACEMENT): Define.
3951 2016-09-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3953         * config/aarch64/aarch64.md (*ands<mode>_compare0): New pattern.
3954         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Return CC_NZmode
3955         for comparisons of integer ZERO_EXTEND against zero.
3957 2016-09-01  Eric Botcazou  <ebotcazou@adacore.com>
3959         * config/i386/i386.c (ix86_option_override_internal): Also disable the
3960         STV pass if -mstackrealign is enabled.
3962 2016-08-31  Ilya Verbin  <iverbin@gmail.com>
3964         * config/i386/driver-i386.c (host_detect_local_cpu): Fix detection of
3965         AVX512IFMA.
3967 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
3969         * diagnostic-show-locus.c (class layout): Add field m_fixit_hints.
3970         (layout_range::intersects_line_p): New method.
3971         (test_range_contains_point_for_single_point): Rename to...
3972         (test_layout_range_for_single_point): ...this, and add testing
3973         for layout_range::intersects_line_p.
3974         (test_range_contains_point_for_single_line): Rename to...
3975         (test_layout_range_for_single_line): ...this,  and add testing
3976         for layout_range::intersects_line_p.
3977         (test_range_contains_point_for_multiple_lines): Rename to...
3978         (test_layout_range_for_multiple_lines): ...this,  and add testing
3979         for layout_range::intersects_line_p.
3980         (layout::layout): Populate m_fixit_hints.
3981         (layout::get_expanded_location): Handle the case of a line-span
3982         for a fix-it hint.
3983         (layout::validate_fixit_hint_p): New method.
3984         (get_line_span_for_fixit_hint): New function.
3985         (layout::calculate_line_spans): Add spans for fixit-hints.
3986         (layout::should_print_annotation_line_p): New method.
3987         (layout::print_any_fixits): Drop param "richloc", instead using
3988         validated fixits in m_fixit_hints.  Add "const" to hint pointers.
3989         (diagnostic_show_locus): Avoid printing blank annotation lines.
3990         (selftest::test_diagnostic_context::test_diagnostic_context):
3991         Initialize show_column and start_span.
3992         (selftest::test_diagnostic_context::start_span_cb): New static
3993         function.
3994         (selftest::test_diagnostic_show_locus_fixit_lines): New function.
3995         (selftest::diagnostic_show_locus_c_tests): Update for function
3996         renamings.  Call test_diagnostic_show_locus_fixit_lines.
3998 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4000         PR tree-optimization/73714
4001         * match.pd (a * (1 << b)): Revert change from 2016-05-23.
4003 2016-08-31  David Malcolm  <dmalcolm@redhat.com>
4005         * selftest.c: Move "namespace selftest {" to top of file,
4006         removing explicit "selftest::" qualifiers throughout.
4008 2016-08-31  Marc Glisse  <marc.glisse@inria.fr>
4010         * config/i386/avx512fintrin.h (__m512_u, __m512i_u, __m512d_u):
4011         New types.
4012         (_mm512_loadu_pd, _mm512_storeu_pd, _mm512_loadu_ps,
4013         _mm512_storeu_ps, _mm512_loadu_si512, _mm512_storeu_si512):
4014         Replace builtin with vector extension.
4015         * config/i386/avxintrin.h (__m256_u, __m256i_u, __m256d_u):
4016         New types.
4017         (_mm256_loadu_pd, _mm256_storeu_pd, _mm256_loadu_ps,
4018         _mm256_storeu_ps, _mm256_loadu_si256, _mm256_storeu_si256):
4019         Replace builtin with vector extension.
4020         * config/i386/emmintrin.h (__m128i_u, __m128d_u): New types.
4021         (_mm_loadu_pd, _mm_storeu_pd, _mm_loadu_si128, _mm_storeu_si128):
4022         Replace builtin with vector extension.
4023         * config/i386/xmmintrin.h (__m128_u): New type.
4024         (_mm_loadu_ps, _mm_storeu_ps): Replace builtin with vector extension.
4025         (_mm_load_ps, _mm_store_ps): Simplify.
4027 2016-08-31  Eric Botcazou  <ebotcazou@adacore.com>
4029         * config/arm/arm.c (thumb1_size_rtx_costs) <SET>: Add missing guard.
4031 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4033         * diagnostic-show-locus.c (colorizer::begin_state): Support more
4034         than 3 ranges per diagnostic by alternating between color 1 and
4035         color 2.
4036         (layout::layout): Replace use of rich_location::MAX_RANGES
4037         with richloc->get_num_locations ().
4038         (layout::calculate_line_spans): Replace use of
4039         rich_location::MAX_RANGES with m_layout_ranges.length ().
4040         (layout::print_annotation_line): Handle arbitrary numbers of
4041         ranges in caret-printing by defaulting to '^'.
4042         (selftest::test_one_liner_many_fixits): New function.
4043         (test_diagnostic_show_locus_one_liner): Call it.
4044         * diagnostic.c (diagnostic_initialize): Update for renaming
4045         of rich_location::MAX_RANGES to
4046         rich_location::STATICALLY_ALLOCATED_RANGES.
4047         * diagnostic.h (struct diagnostic_context): Likewise.
4049 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4051         * selftest.c (selftest::named_temp_file::named_temp_file): New
4052         ctor.
4053         (selftest::temp_source_file::~temp_source_file): Move to...
4054         (selftest::named_temp_file::~named_temp_file): ...here.
4055         (selftest::test_named_temp_file): New function.
4056         (selftest::selftest_c_tests): Call test_named_temp_file.
4057         * selftest.h (class named_temp_file): New class.
4058         (class temp_source_file): Convert to a subclass of named_temp_file.
4060 2016-08-30  Segher Boessenkool  <segher@kernel.crashing.org>
4062         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Do not emit
4063         USEs of LR_REGNO in returns and sibcalls.
4064         (rs6000_output_mi_thunk): Similar.
4065         (rs6000_sibcall_aix): Similar.
4066         * config/rs6000/rs6000.md (sibcall, sibcall_value, sibcall_local32,
4067         sibcall_local64, sibcall_value_local32, sibcall_value_local64,
4068         sibcall_nonlocal_sysv<mode>, sibcall_value_nonlocal_sysv<mode>):
4069         Remove the USE of LR_REGNO from the patterns as well.  Delete an
4070         obsolete comment.
4071         (return_internal_<mode>): Delete.
4073 2016-08-30  Tamar Christina  <tamar.christina@arm.com>
4075         * gcc/config/aarch64/aarch64-simd.md
4076         (aarch64_ld2<mode>_dreg_le): New.
4077         (aarch64_ld2<mode>_dreg_be): New.
4078         (aarch64_ld2<mode>_dreg): Removed.
4079         (aarch64_ld3<mode>_dreg_le): New.
4080         (aarch64_ld3<mode>_dreg_be): New.
4081         (aarch64_ld3<mode>_dreg): Removed.
4082         (aarch64_ld4<mode>_dreg_le): New.
4083         (aarch64_ld4<mode>_dreg_be): New.
4084         (aarch64_ld4<mode>_dreg): Removed.
4085         (aarch64_ld<VSTRUCT:nregs><VDC:mode>): Wrapper around _le, _be.
4087 2016-08-30  David Malcolm  <dmalcolm@redhat.com>
4089         * diagnostic-show-locus.c (test_one_liner_fixit_insert): Remove
4090         redundant location param.
4091         (test_one_liner_fixit_remove): Likewise.
4092         (test_one_liner_fixit_replace): Likewise.
4093         (test_one_liner_fixit_replace_equal_secondary_range): Likewise.
4094         * gcc-rich-location.c
4095         (gcc_rich_location::add_fixit_misspelled_id): Eliminate call to
4096         get_range_from_loc.  Drop overload taking a const char *.
4097         * gcc-rich-location.h
4098         (gcc_rich_location::add_fixit_misspelled_id): Drop overload taking
4099         a const char *.
4101 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4103         * config/linux.c (linux_libc_has_function): Return true on musl.
4105 2016-08-30  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4107         * config.gcc (*-*-*musl*): Disable gnu-indirect-function.
4109 2016-08-30  Eric Botcazou  <ebotcazou@adacore.com>
4111         * postreload-gcse.c (bb_has_well_behaved_predecessors): Tweak criterion
4112         used for abnormal egdes.
4114 2016-08-30  Jakub Jelinek  <jakub@redhat.com>
4116         PR tree-optimization/72866
4117         * tree-vect-patterns.c (search_type_for_mask): Turn into
4118         a small wrapper, move all code to ...
4119         (search_type_for_mask_1): ... this new function.  Add caching
4120         and adjust recursive calls.
4122         PR debug/77363
4123         * dwarf2out.c (modified_type_die): Use lookup_type_die (type)
4124         instead of lookup_type_die (type_main_variant (type)) even for array
4125         types.
4127         PR middle-end/77377
4128         * simplify-rtx.c (avoid_constant_pool_reference): For out of bounds
4129         constant pool reference return x instead of c.
4131 2016-08-29  Segher Boessenkool  <segher@kernel.crashing.org>
4133         * config/rs6000/rs6000.h (CALL_REALLY_USED_REGISTERS): Do not
4134         include MQ.
4136 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4138         * input.c
4139         (selftest::test_make_location_nonpure_range_endpoints): Fix
4140         header comment.
4142 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4144         * diagnostic-show-locus.c
4145         (selftest::test_one_liner_fixit_validation_adhoc_locations): New
4146         function.
4147         (selftest::test_diagnostic_show_locus_one_liner): Call it.
4148         * input.c (get_pure_location): Move to libcpp/line-map.c.
4149         * input.h (get_pure_location): Convert decl to an inline function
4150         calling implementation in libcpp.
4152 2016-08-29  Uros Bizjak  <ubizjak@gmail.com>
4154         PR target/77403
4155         * config/i386/sse.md (vec_set_lo_<mode><mask_name>): Fix assembler
4156         template for intel asm dialect.
4157         (vec_set_hi_<mode><mask_name>): Ditto.
4159 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4161         * selftest.h (selftest::fail): Add ATTRIBUTE_NORETURN.
4162         (selftest::fail_formatted): Likewise.
4164 2016-08-29  David Malcolm  <dmalcolm@redhat.com>
4166         * input.c (make_location): Call get_start and get_finish
4167         on the endpoints to avoid storing packed ranges or ad-hoc
4168         ranges in them.
4169         (selftest::test_make_location_nonpure_range_endpoints): New function.
4170         (selftest::input_c_tests): Call it.
4171         * input.h (get_start): New inline function.
4173 2016-08-29  Tom de Vries  <tom@codesourcery.com>
4175         PR c/77398
4176         * gimplify.c (gimplify_va_arg_expr): Replace first argument type error
4177         with assert.
4179 2016-08-29  Eric Botcazou  <ebotcazou@adacore.com>
4181         * Makefile.in (gcov-iov.h): Add dummy recipe.
4183 2016-08-29  Nathan Sidwell  <nathan@acm.org>
4185         * config/nvptx/nvptx.c: #include tree-vrp.h.
4187 2016-08-28  Eric Botcazou  <ebotcazou@adacore.com>
4189         PR target/77324
4190         * config/sparc/sparc.c (sparc_legitimate_address_p): Accept special
4191         HIGH+LO construct during reload.
4193 2016-08-28  Tom de Vries  <tom@codesourcery.com>
4195         PR lto/70955
4196         * config/i386/i386.c (ix86_build_builtin_va_list_64): Tag type with
4197         'sysv_abi va_list' attribute.
4198         (ix86_build_builtin_va_list): Tag type with 'ms_abi va_list' attribute.
4199         (ix86_canonical_va_list_type): Handle 'sysv_abi/ms_abi va_list'
4200         attributes.
4202 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4204         * emit-rtl.h (struct rtl_data): Make stack_slot_list a vector.
4205         * emit-rtl.c (unshare_all_rtl_1): Adjust.
4206         (unshare_all_rtl_again): Likewise.
4207         * function.c (assign_stack_local_1): Likewise.
4208         (assign_stack_temp_for_type): Likewise.
4210 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4212         * cfgbuild.c (make_edges): Adjust.
4213         * cfgrtl.c (can_delete_label_p): Likewise.
4214         * dwarf2cfi.c (create_trace_edges): Likewise.
4215         * except.c (sjlj_emit_dispatch_table): Likewise.
4216         * function.h (struct expr_status): make x_forced_labels a vector.
4217         * jump.c (rebuild_jump_labels_1): Adjust.
4218         * reload1.c (set_initial_label_offsets): Likewise.
4219         * stmt.c (force_label_rtx): Likewise.
4220         (expand_label): Likewise.
4222 2016-08-27  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
4224         * haifa-sched.c (fix_recovery_deps): Make ready_list a vector.
4226 2016-08-27  Patrick Palka  <ppalka@gcc.gnu.org>
4228         PR tree-optimization/71077
4229         PR tree-optimization/68542
4230         * fold-const.c (fold_relational_const): Fix folding of
4231         VECTOR_CST comparisons that have a scalar boolean result type.
4232         (selftest::test_vector_folding): New static function.
4233         (selftest::fold_const_c_tests): Call it.
4235 2016-08-27  Gerald Pfeifer  <gerald@pfeifer.com>
4237         * doc/extend.texi (SPU Built-in Functions): Remove stale
4238         references to material formerly at IBM and Sony.
4240 2016-08-26  David Edelsohn  <dje.gcc@gmail.com>
4242         PR target/77349
4243         * config/rs6000/xcoff.h (DWARF_OFFSET_SIZE): Define as PTR_SIZE.
4245 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
4247         * diagnostic-show-locus.c
4248         (selftest::test_fixit_consolidation): New function.
4249         (selftest::diagnostic_show_locus_c_tests): Call it.
4250         * gcc-rich-location.h (gcc_rich_location): Eliminate unused
4251         constructor based on source_range.
4253 2016-08-26  David Malcolm  <dmalcolm@redhat.com>
4255         * diagnostic-color.c (color_dict): Add "fixit-insert" and
4256         "fixit-delete".
4257         (parse_gcc_colors): Update description of default GCC_COLORS.
4258         * diagnostic-show-locus.c (colorizer::set_fixit_hint): Delete.
4259         (colorizer::set_fixit_insert): New method.
4260         (colorizer::set_fixit_delete): New method.
4261         (colorizer::get_color_by_name): New method.
4262         (colorizer::STATE_FIXIT_INSERT): New constant.
4263         (colorizer::STATE_FIXIT_DELETE): New constant.
4264         (class colorizer): Drop "_cs" suffix from fields.  Delete "_ce"
4265         fields in favor of new field "m_stop_color".  Add fields
4266         "m_fixit_insert" and "m_fixit_delete".
4267         (colorizer::colorizer): Update for above changes.  Replace
4268         colorize_start calls with calls to get_color_by_name.
4269         (colorizer::begin_state): Handle STATE_FIXIT_INSERT and
4270         STATE_FIXIT_DELETE.  Update for field renamings.
4271         (colorizer::finish_state): Simplify by using m_stop_color,
4272         rather than multiple identical "*_ce" fields.
4273         (colorizer::get_color_by_name): New method.
4274         (layout::print_any_fixits): Print insertions and replacements
4275         using the "fixit-insert" color, and deletions using the
4276         "fixit-delete" color.
4277         * doc/invoke.texi (-fdiagnostics-color): Update description of
4278         default GCC_COLORS, and of the supported capabilities.
4280 2016-08-26  Max Filippov  <jcmvbkbc@gmail.com>
4282         * config/xtensa/xtensa.c (xtensa_expand_prologue): Update
4283         current_function_static_stack_size variable with the static
4284         stack frame size of the current function when
4285         flag_stack_usage_info is enabled.
4287 2016-08-26  Nathan Sidwell  <nathan@acm.org>
4289         * ipa-inline-analysis.c (inline_write_summary): Remove unnecessary
4290         assignment inside if condition.
4292 2016-08-26  Richard Biener  <rguenther@suse.de>
4294         PR tree-optimization/69047
4295         * tree-ssa.c (maybe_rewrite_mem_ref_base): Handle general bitfield
4296         extracts similar to what FRE does.
4297         (non_rewritable_mem_ref_base): Likewise.
4299 2016-08-26  Joseph Myers  <joseph@codesourcery.com>
4301         * config/i386/i386.c (ix86_libgcc_floating_mode_supported_p)
4302         (TARGET_LIBGCC_FLOATING_MODE_SUPPORTED_P): Remove.
4303         * config/i386/i386elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4304         * config/i386/lynx.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4305         * config/i386/netbsd-elf.h (IX86_MAYBE_NO_LIBGCC_TFMODE):
4306         Likewise.
4307         * config/i386/netbsd64.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4308         * config/i386/nto.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4309         * config/i386/openbsd.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4310         * config/i386/rtemself.h (IX86_NO_LIBGCC_TFMODE): Likewise.
4311         * config/i386/vxworks.h (IX86_MAYBE_NO_LIBGCC_TFMODE): Likewise.
4313 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4315         PR target/70473
4316         * config/arm/cortex-a8-neon.md (cortex_a8_vfp_muld): Reduce
4317         reservation duration to 15 cycles.
4318         (cortex_a8_vfp_macs): Likewise.
4319         (cortex_a8_vfp_macd): Likewise.
4320         (cortex_a8_vfp_divs): Likewise.
4321         (cortex_a8_vfp_divd): Likewise.
4323 2016-08-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4325         * config/arm/arm.c (arm_sets_movw_movt_fusible_p): New function.
4326         (aarch_macro_fusion_pair_p): Use above to avoid early return.
4328 2016-08-26  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4329             Martin Jambhor  <mjambor@suse.cz>
4331         * common.opt: New option -fipa-bit-cp.
4332         * doc/invoke.texi: Document -fipa-bit-cp.
4333         * opts.c (default_options_table): Add entry for -fipa-bit-cp.
4334         (enable_fdo_optimizations): Check for flag_ipa_bit_cp.
4335         * tree-ssa-ccp.h: New header file.
4336         * tree-ssa-ccp.c: Include tree-ssa-ccp.h
4337         (bit_value_binop_1): Change to bit_value_binop_1 and export it.
4338         Replace all occurences of tree parameter by two new params: signop, int.
4339         (bit_value_unop_1): Change to bit_value_unop and export it.
4340         Replace all occurences of tree parameter by two new params: signop,
4341         int.
4342         (bit_value_binop): Change call from bit_value_binop_1 to
4343         bit_value_binop.
4344         (bit_value_assume_aligned): Likewise.
4345         (bit_value_unop): Change call from bit_value_unop_1 to bit_value_unop.
4346         (do_ssa_ccp): Pass nonzero_p || flag_ipa_cp_bit instead of nonzero_p
4347         to ccp_finalize.
4348         (ccp_finalize): Skip processing if val->mask == 0.
4349         * ipa-cp.c: Include tree-ssa-ccp.h
4350         (ipcp_bits_lattice): New class.
4351         (ipcp_param_lattice (bits_lattice): New member.
4352         (print_all_lattices): Call ipcp_bits_lattice::print.
4353         (set_all_contains_variable): Call ipcp_bits_lattice::set_to_bottom.
4354         (initialize_node_lattices): Likewise.
4355         (propagate_bits_accross_jump_function): New function.
4356         (propagate_constants_accross_call): Call
4357         propagate_bits_accross_jump_function.
4358         (ipcp_propagate_stage): Store parameter types when in_lto_p is true.
4359         (ipcp_store_bits_results): New function.
4360         (ipcp_driver): Call ipcp_store_bits_results.
4361         * ipa-prop.h (ipa_bits): New struct.
4362         (ipa_jump_func): Add new member bits of type ipa_bits.
4363         (ipa_param_descriptor): Change decl to decl_or_type.
4364         (ipa_get_param): Change decl to decl_or_type and assert on
4365         PARM_DECL.
4366         (ipa_get_type): New function.
4367         (ipcp_transformation_summary): New member bits.
4368         * ipa-prop.c (ipa_get_param_decl_index_1): s/decl/decl_or_type.
4369         (ipa_populate_param_decls): Likewise.
4370         (ipa_dump_param): Likewise.
4371         (ipa_print_node_jump_functions_for_edge): Pretty-print ipa_bits jump
4372         function.
4373         (ipa_set_jf_unknown): Set ipa_bits::known to false.
4374         (ipa_compute_jump_functions_for_edge): Compute jump function for bits
4375         propagation.
4376         (ipa_node_params_t::duplicate): Copy src->bits into dst->bits.
4377         (ipa_write_jump_function): Add streaming for ipa_bits.
4378         (ipa_read_jump_function): Add support for reading streamed ipa_bits.
4379         (write_ipcp_transformation_info): Add streaming for ipa_bits
4380         summary for ltrans.
4381         (read_ipcp_transfomration_info): Add support for reading streamed
4382         ipa_bits.
4383         (ipcp_update_bits): New function.
4384         (ipcp_transform_function): Call ipcp_update_bits.
4386 2016-08-25  Szabolcs Nagy  <szabolcs.nagy@arm.com>
4388         * config/mips/linux.h (MUSL_DYNAMIC_LINKER32): Update.
4389         (MUSL_DYNAMIC_LINKER64, MUSL_DYNAMIC_LINKERN32): Update.
4391 2016-08-25  David Edelsohn  <dje.gcc@gmail.com>
4393         * multiple_target.c (pass_data_dispatcher_calls): Fix typo.
4395 2016-08-25  Richard Biener  <rguenther@suse.de>
4397         * dwarf2out.c (gen_remaining_tmpl_value_param_die_attributes):
4398         Only add locations in late dwarf.
4399         (gen_scheduled_generic_parms_dies): Do not set early dwarf here.
4400         (dwarf2out_early_finish): But do it here.
4402 2016-08-24  Michael Collison  <michael.collison@linaro.org>
4403             Michael Collison  <michael.collison@arm.com>
4405         * config/arm/arm-modes.def: Add new condition code mode CC_V
4406         to represent the overflow bit.
4407         * config/arm/arm.c (maybe_get_arm_condition_code):
4408         Add support for CC_Vmode.
4409         (arm_gen_unlikely_cbranch): New function to generate common
4410         rtl conditional branches for overflow patterns.
4411         * config/arm/arm-protos.h: Add prototype for
4412         arm_gen_unlikely_cbranch.
4413         * config/arm/arm.md (addv<mode>4, add<mode>3_compareV,
4414         addsi3_compareV_upper): New patterns to support signed
4415         builtin overflow add operations.
4416         (uaddv<mode>4, add<mode>3_compareC, addsi3_compareV_upper):
4417         New patterns to support unsigned builtin add overflow operations.
4418         (subv<mode>4, sub<mode>3_compare1): New patterns to support signed
4419         builtin overflow subtract operations,
4420         (usubv<mode>4): New patterns to support unsigned builtin subtract
4421         overflow operations.
4422         (negvsi3, negvdi3, negdi2_compare, negsi2_carryin_compare): New patterns
4423         to support builtin overflow negate operations.
4425 2016-08-24  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
4427         Revert
4428         2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4430         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4431         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4432         needed.
4434 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4436         * doc/fragments.texi (MULTILIB_REUSE): Mention that only options in
4437         MULTILIB_OPTIONS should be used.  Small wording fixes.
4438         * genmultilib: Memorize set of all option combinations in
4439         combination_space.  Detect if RHS of MULTILIB_REUSE uses an option not
4440         found in MULTILIB_OPTIONS by checking if option set is listed in
4441         combination_space.  Output new and existing error message to stderr.
4443 2016-08-24  Thomas Preud'homme  <thomas.preudhomme@arm.com>
4445         * config/arm/t-aprofile (MULTILIB_MATCHES): Add mapping for
4446         -mcpu=cortex-a7, -mfpu=neon-fp16, -mfpu=fpv5-d16 and -mfpu=fp-armv8.
4447         Fix typo in -mfpu=vfpv3-d16-fp16 mapping.
4448         (MULTILIB_REUSE): Remove reuse rules for option set including
4449         -mfpu=fp-armv8 and -mfpu=vfpv4
4451 2016-08-24  Sebastian Huber  <sebastian.huber@embedded-brains.de>
4453         * config/arm/t-rtems: Add vfp multilib.
4455 2016-08-23  Ian Lance Taylor  <iant@golang.org>
4457         * config/s390/s390.c (s390_asm_file_start): Call
4458         default_file_start.
4460 2016-08-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
4462         * config/rs6000/rs6000.c (rs6000_expand_vector_init): Set
4463         initialization of all 0's to the 0 constant, instead of directly
4464         generating XOR.  Add support for V4SImode vector initialization on
4465         64-bit systems with direct move, and rework the ISA 3.0 V4SImode
4466         initialization.  Change variables used in V4SFmode vector
4467         intialization.  For V4SFmode vector splat on ISA 3.0, make sure
4468         any memory addresses are in index form.  Add support for using
4469         VSPLTH/VSPLTB to initialize vector short and vector char vectors
4470         with all of the same element.
4471         (regno_or_subregno): New helper function to return a register
4472         number for either REG or SUBREG.
4473         (rs6000_adjust_vec_address): Do not generate ADDI <reg>,R0,<num>.
4474         Use regno_or_subregno where possible.
4475         (rs6000_split_v4si_init_di_reg): New helper function to build up a
4476         DImode value from two SImode values in order to generate V4SImode
4477         vector initialization on 64-bit systems with direct move.
4478         (rs6000_split_v4si_init): Split up the insns for a V4SImode vector
4479         initialization.
4480         (rtx_is_swappable_p): V4SImode vector initialization insn is not
4481         swappable.
4482         * config/rs6000/rs6000-protos.h (rs6000_split_v4si_init): Add
4483         declaration.
4484         * config/rs6000/vsx.md (VSX_SPLAT_I): New mode iterators and
4485         attributes to initialize V8HImode and V16QImode vectors with the
4486         same element.
4487         (VSX_SPLAT_COUNT): Likewise.
4488         (VSX_SPLAT_SUFFIX): Likewise.
4489         (UNSPEC_VSX_VEC_INIT): New unspec.
4490         (vsx_concat_v2sf): Eliminate using 'preferred' register classes.
4491         Allow SFmode values to come from Altivec registers.
4492         (vsx_init_v4si): New insn/split for V4SImode vector initialization
4493         on 64-bit systems with direct move.
4494         (vsx_splat_<mode>, VSX_W iterator): Rework V4SImode and V4SFmode
4495         vector initializations, to allow V4SImode vector initializations
4496         on 64-bit systems with direct move.
4497         (vsx_splat_v4si): Likewise.
4498         (vsx_splat_v4si_di): Likewise.
4499         (vsx_splat_v4sf): Likewise.
4500         (vsx_splat_v4sf_internal): Likewise.
4501         (vsx_xxspltw_<mode>, VSX_W iterator): Eliminate using 'preferred'
4502         register classes.
4503         (vsx_xxspltw_<mode>_direct, VSX_W iterator): Likewise.
4504         (vsx_vsplt<VSX_SPLAT_SUFFIX>_di): New insns to support
4505         initializing V8HImode and V16QImode vectors with the same
4506         element.
4507         * config/rs6000/rs6000.h (TARGET_DIRECT_MOVE_64BIT): Disallow
4508         optimization if -maltivec=be.
4510 2016-08-23  Christophe Lyon  <christophe.lyon@linaro.org>
4512         * config/arm/arm.md (arm_movqi_insn): Swap predicable_short_it
4513         attribute for alternatives 3 and 4.
4515 2016-08-23  David Malcolm  <dmalcolm@redhat.com>
4517         * selftest.c (selftest::assert_str_contains): New function.
4518         (selftest::test_assertions): Verify ASSERT_STR_CONTAINS.
4519         * selftest.h (selftest::assert_str_contains): New decl.
4520         (ASSERT_STR_CONTAINS): New macro.
4522 2016-08-23  Richard Biener  <rguenther@suse.de>
4524         PR tree-optimization/77286
4525         * tree-vect-loop.c (vect_analyze_loop_form_1): Do not modify
4526         the CFG here.
4527         (vect_transform_loop): Split exit edges of loop and scalar
4528         loop if required and at the appropriate time.
4530 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4532         * explow.c (get_dynamic_stack_size): Take known alignment of stack
4533         pointer + STACK_DYNAMIC_OFFSET into account when calculating the size
4534         needed.
4535         Correct a typo in a comment.
4537 2016-08-23  Dominik Vogt  <vogt@linux.vnet.ibm.com>
4539         * config/s390/s390.md ("*andc_split"): New splitter for and with
4540         complement.
4542 2016-08-23  Richard Biener  <rguenther@suse.de>
4544         PR tree-optimization/27336
4545         * tree-vrp.c (infer_value_range): Handle stmts that can throw
4546         by looking for a non-EH edge.
4547         (process_assert_insertions_for): Likewise.
4549 2016-08-23  Richard Biener  <rguenther@suse.de>
4551         PR middle-end/77305
4552         * statistics.c (statistics_counter_event): Robustify against
4553         NULL current_pass.
4555 2016-08-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
4557         * config/i386/i386.c (processor_alias_table): Enable PTA_PRFCHW
4558         for targets amdfam10 and barcelona.
4560 2016-08-22  Uros Bizjak  <ubizjak@gmail.com>
4562         * config/i386/i386.md (*zero_extendsidi2): Add (*r,*k) alternative.
4563         (zero_extend<mode>di2): Ditto.
4564         (*zero_extend<mode>si2): Ditto.
4565         (*zero_extendqihi2): Ditto.
4567 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
4569         PR middle-end/77269
4570         * builtins.c (fold_builtin_classify): Use builtin_decl_explicit
4571         (BUILT_IN_SIGNBIT) to expand __builtin_isinf_sign.
4573 2016-08-22  Patrick Palka  <ppalka@gcc.gnu.org>
4575         * print-tree.c (print_node) [VECTOR_CST]: Coalesce the output of
4576         identical consecutive elements.
4577         [SSA_NAME]: Print the name's def stmt on its own line.  When printing
4578         the node's def stmt, avoid printing an unwanted trailing newline by
4579         replacing the call to print_gimple_stmt() with its inlined body and
4580         adjusting it to not set pp_needs_newline and to call pp_flush()
4581         instead of pp_newline_and_flush().
4583 2016-08-22  Joseph Myers  <joseph@codesourcery.com>
4585         * tree.h (CASE_FLT_FN_FLOATN_NX, float16_type_node)
4586         (float32_type_node, float64_type_node, float32x_type_node)
4587         (float128x_type_node): New macros.
4588         * builtin-types.def (BT_FLOAT16, BT_FLOAT32, BT_FLOAT64)
4589         (BT_FLOAT128, BT_FLOAT32X, BT_FLOAT64X, BT_FLOAT128X)
4590         (BT_FN_FLOAT16, BT_FN_FLOAT32, BT_FN_FLOAT64, BT_FN_FLOAT128)
4591         (BT_FN_FLOAT32X, BT_FN_FLOAT64X, BT_FN_FLOAT128X)
4592         (BT_FN_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32)
4593         (BT_FN_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128)
4594         (BT_FN_FLOAT32X_FLOAT32X, BT_FN_FLOAT64X_FLOAT64X)
4595         (BT_FN_FLOAT128X_FLOAT128X, BT_FN_FLOAT16_CONST_STRING)
4596         (BT_FN_FLOAT32_CONST_STRING, BT_FN_FLOAT64_CONST_STRING)
4597         (BT_FN_FLOAT128_CONST_STRING, BT_FN_FLOAT32X_CONST_STRING)
4598         (BT_FN_FLOAT64X_CONST_STRING, BT_FN_FLOAT128X_CONST_STRING)
4599         (BT_FN_FLOAT16_FLOAT16_FLOAT16, BT_FN_FLOAT32_FLOAT32_FLOAT32)
4600         (BT_FN_FLOAT64_FLOAT64_FLOAT64, BT_FN_FLOAT128_FLOAT128_FLOAT128)
4601         (BT_FN_FLOAT32X_FLOAT32X_FLOAT32X)
4602         (BT_FN_FLOAT64X_FLOAT64X_FLOAT64X)
4603         (BT_FN_FLOAT128X_FLOAT128X_FLOAT128X): New type definitions.
4604         * builtins.def (DEF_GCC_FLOATN_NX_BUILTINS): New macro.
4605         (copysign, fabs, huge_val, inf, nan, nans): Use it.
4606         * builtins.c (expand_builtin): Use CASE_FLT_FN_FLOATN_NX for fabs
4607         and copysign.
4608         (fold_builtin_0): Use CASE_FLT_FN_FLOATN_NX for inf and huge_val.
4609         (fold_builtin_1): Use CASE_FLT_FN_FLOATN_NX for fabs.
4610         * doc/extend.texi (Other Builtins): Document these built-in
4611         functions.
4612         * fold-const-call.c (fold_const_call): Use CASE_FLT_FN_FLOATN_NX
4613         for nan and nans.
4615 2016-08-22  Gerald Pfeifer  <gerald@pfeifer.com>
4617         * doc/install.texi (Binaries): www.opencsw.org now uses https.
4619 2016-08-22  Richard Biener  <rguenther@suse.de>
4621         * tree-ssa-forwprop.c (pass_forwprop::execute): Use RPO order.
4623 2016-08-21  Uros Bizjak  <ubizjak@gmail.com>
4625         PR target/77270
4626         * config/i386/i386.md (prefetch): When TARGET_PRFCHW or
4627         TARGET_PREFETCHWT1 are disabled, emit 3dNOW! write prefetches for
4628         non-SSE2 athlons only, otherwise prefer SSE prefetches.
4630 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4632         * tree-vrp.c (vrp_visit_assignment_or_call): Changed to Return VR.
4633         (vrp_visit_cond_stmt): Just sets TAKEN_EDGE_P.
4634         (vrp_visit_switch_stmt): Likewise.
4635         (extract_range_from_stmt): Factored out from vrp_visit_stmt.
4636         (extract_range_from_phi_node): Factored out from vrp_visit_phi_stmt.
4637         (vrp_visit_stmt): Use extract_range_from_stmt.
4638         (vrp_visit_phi_node): Use extract_range_from_phi_node.
4640 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4642         * Makefile.in: Add tree-vrp.h to GTFILES.
4643         * gengtype.c (open_base_files): Add tree-vrp.h.
4644         * asan.c: Add tree-vrp.h which now has the definition value_range_type.
4645         * builtins.c: Likewise.
4646         * fold-const.c: Likewise.
4647         * gimple-builder.c: Likewise.
4648         * gimple-laddress.c: Likewise.
4649         * hsa-gen.c: Likewise.
4650         * internal-fn.c: Likewise.
4651         * ssa.h: Likewise.
4652         * targhooks.c: Liewise,
4653         * tree-ssa-address.c: Likewise.
4654         * tree-ssanames.h (value_range_type: Move to tree-vrp.h.
4655         * tree-vrp.c (struct value_range): Move to tree-vrp.h
4656         * tree-vrp.h: New file.
4658 2016-08-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
4660         PR tree-optimization/61839
4661         * tree-vrp.c (two_valued_val_range_p): New.
4662         (simplify_stmt_using_ranges): Convert CST BINOP VAR where VAR is
4663         two-valued to VAR == VAL1 ? (CST BINOP VAL1) : (CST BINOP VAL2).
4664         Also Convert VAR BINOP CST where VAR is two-valued to
4665         VAR == VAL1 ? (VAL1 BINOP CST) : (VAL2 BINOP CST).
4667 2016-08-19  David Malcolm  <dmalcolm@redhat.com>
4669         * diagnostic-show-locus.c
4670         (layout::annotation_line_showed_range_p): New method.
4671         (layout::print_any_fixits): Remove case fixit_hint::REMOVE.
4672         Reimplement case fixit_hint::REPLACE to cover removals, and
4673         replacements where the range of the replacement isn't one
4674         of the ranges in the rich_location.
4675         (test_one_liner_fixit_replace): Likewise.
4676         (selftest::test_one_liner_fixit_replace_non_equal_range): New
4677         function.
4678         (selftest::test_one_liner_fixit_replace_equal_secondary_range):
4679         New function.
4680         (selftest::test_diagnostic_show_locus_one_liner): Call the new
4681         functions.
4682         * diagnostic.c (print_parseable_fixits): Remove case
4683         fixit_hint::REMOVE.
4685 2016-08-19  Uros Bizjak  <ubizjak@gmail.com>
4687         PR target/77270
4688         * config/i386/i386.c (ix86_option_override_internal): Remove
4689         PTA_PRFCHW from entries that also have PTA_3DNOW flag.
4690         Enable SSE prefetch also for TARGET_PREFETCHWT1.
4691         Do not try to enable TARGET_PRFCHW ISA flag here.
4692         * config/i386/i386.md (prefetch): Enable also for TARGET_3DNOW.
4693         Rewrite expander function body.
4694         (*prefetch_3dnow): Enable for TARGET_3DNOW and TARGET_PREFETCHWT1.
4696 2016-08-19  Joseph Myers  <joseph@codesourcery.com>
4698         PR c/32187
4699         * tree-core.h (TI_COMPLEX_FLOAT16_TYPE)
4700         (TI_COMPLEX_FLOATN_NX_TYPE_FIRST, TI_COMPLEX_FLOAT32_TYPE)
4701         (TI_COMPLEX_FLOAT64_TYPE, TI_COMPLEX_FLOAT128_TYPE)
4702         (TI_COMPLEX_FLOAT32X_TYPE, TI_COMPLEX_FLOAT64X_TYPE)
4703         (TI_COMPLEX_FLOAT128X_TYPE, TI_FLOAT16_TYPE, TI_FLOATN_TYPE_FIRST)
4704         (TI_FLOATN_NX_TYPE_FIRST, TI_FLOAT32_TYPE, TI_FLOAT64_TYPE)
4705         (TI_FLOAT128_TYPE, TI_FLOATN_TYPE_LAST, TI_FLOAT32X_TYPE)
4706         (TI_FLOATNX_TYPE_FIRST, TI_FLOAT64X_TYPE, TI_FLOAT128X_TYPE)
4707         (TI_FLOATNX_TYPE_LAST, TI_FLOATN_NX_TYPE_LAST): New enum
4708         tree_index values.
4709         (NUM_FLOATN_TYPES, NUM_FLOATNX_TYPES, NUM_FLOATN_NX_TYPES): New
4710         macros.
4711         (struct floatn_type_info): New structure type.
4712         (floatn_nx_types): New variable declaration.
4713         * tree.h (FLOATN_TYPE_NODE, FLOATN_NX_TYPE_NODE)
4714         (FLOATNX_TYPE_NODE, float128_type_node, float64x_type_node)
4715         (COMPLEX_FLOATN_NX_TYPE_NODE): New macros.
4716         * tree.c (floatn_nx_types): New variable.
4717         (build_common_tree_nodes): Initialize _FloatN, _FloatNx and
4718         corresponding complex types.
4719         * target.def (floatn_mode): New hook.
4720         * targhooks.c: Include "real.h".
4721         (default_floatn_mode): New function.
4722         * targhooks.h (default_floatn_mode): New prototype.
4723         * doc/extend.texi (Floating Types): Document _FloatN and _FloatNx
4724         types.
4725         * doc/sourcebuild.texi (float@var{n}, float@var{n}x): Document new
4726         effective-target and dg-add-options keywords.
4727         (float@var{n}_runtime, float@var{n}x_runtime, floatn_nx_runtime):
4728         Document new effective-target keywords.
4729         * doc/tm.texi.in (TARGET_FLOATN_MODE): New @hook.
4730         * doc/tm.texi: Regenerate.
4731         * ginclude/float.h (LDBL_DECIMAL_DIG): Define to
4732         __LDBL_DECIMAL_DIG__, not __DECIMAL_DIG__.
4733         [__STDC_WANT_IEC_60559_TYPES_EXT__]: Define macros from TS
4734         18661-3.
4735         * real.h (struct real_format): Add field ieee_bits.
4736         * real.c (ieee_single_format, mips_single_format)
4737         (motorola_single_format, spu_single_format, ieee_double_format)
4738         (mips_double_format, motorola_double_format)
4739         (ieee_extended_motorola_format, ieee_extended_intel_96_format)
4740         (ieee_extended_intel_128_format)
4741         (ieee_extended_intel_96_round_53_format, ibm_extended_format)
4742         (mips_extended_format, ieee_quad_format, mips_quad_format)
4743         (vax_f_format, vax_d_format, vax_g_format, decimal_single_format)
4744         (decimal_double_format, decimal_quad_format, ieee_half_format)
4745         (arm_half_format, real_internal_format: Initialize ieee_bits
4746         field.
4747         * config/i386/i386.c (ix86_init_builtin_types): Do not initialize
4748         float128_type_node.  Set float80_type_node to float64x_type_node
4749         if appropriate and long_double_type_node not appropriate.
4750         * config/ia64/ia64.c (ia64_init_builtins): Likewise.
4751         * config/pdp11/pdp11.c (pdp11_f_format, pdp11_d_format):
4752         Initialize ieee_bits field.
4753         * config/rs6000/rs6000.c (TARGET_FLOATN_MODE): New macro.
4754         (rs6000_init_builtins): Set ieee128_float_type_node to
4755         float128_type_node.
4756         (rs6000_floatn_mode): New function.
4758 2016-08-19  Jakub Jelinek  <jakub@redhat.com>
4760         * config/i386/rdseedintrin.h (_rdseed16_step, _rdseed32_step,
4761         _rdseed64_step): Uglify argument names and/or local variable names
4762         in inline functions.
4763         * config/i386/rtmintrin.h (_xabort): Likewise.
4764         * config/i386/avx512vlintrin.h (_mm256_ternarylogic_epi64,
4765         _mm256_mask_ternarylogic_epi64, _mm256_maskz_ternarylogic_epi64,
4766         _mm256_ternarylogic_epi32, _mm256_mask_ternarylogic_epi32,
4767         _mm256_maskz_ternarylogic_epi32, _mm_ternarylogic_epi64,
4768         _mm_mask_ternarylogic_epi64, _mm_maskz_ternarylogic_epi64,
4769         _mm_ternarylogic_epi32, _mm_mask_ternarylogic_epi32,
4770         _mm_maskz_ternarylogic_epi32): Likewise.
4771         * config/i386/lwpintrin.h (__llwpcb, __lwpval32, __lwpval64,
4772         __lwpins32, __lwpins64): Likewise.
4773         * config/i386/avx2intrin.h (_mm_i32gather_pd, _mm_mask_i32gather_pd,
4774         _mm256_i32gather_pd, _mm256_mask_i32gather_pd, _mm_i64gather_pd,
4775         _mm_mask_i64gather_pd, _mm256_i64gather_pd, _mm256_mask_i64gather_pd,
4776         _mm_i32gather_ps, _mm_mask_i32gather_ps, _mm256_i32gather_ps,
4777         _mm256_mask_i32gather_ps, _mm_i64gather_ps, _mm_mask_i64gather_ps,
4778         _mm256_i64gather_ps, _mm256_mask_i64gather_ps, _mm_i32gather_epi64,
4779         _mm_mask_i32gather_epi64, _mm256_i32gather_epi64,
4780         _mm256_mask_i32gather_epi64, _mm_i64gather_epi64,
4781         _mm_mask_i64gather_epi64, _mm256_i64gather_epi64,
4782         _mm256_mask_i64gather_epi64, _mm_i32gather_epi32,
4783         _mm_mask_i32gather_epi32, _mm256_i32gather_epi32,
4784         _mm256_mask_i32gather_epi32, _mm_i64gather_epi32,
4785         _mm_mask_i64gather_epi32, _mm256_i64gather_epi32,
4786         _mm256_mask_i64gather_epi32): Likewise.
4787         * config/i386/pmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4788         * config/i386/ia32intrin.h (__writeeflags): Likewise.
4789         * config/i386/pkuintrin.h (_wrpkru): Likewise.
4790         * config/i386/avx512pfintrin.h (_mm512_mask_prefetch_i32gather_pd,
4791         _mm512_mask_prefetch_i32gather_ps, _mm512_mask_prefetch_i64gather_pd,
4792         _mm512_mask_prefetch_i64gather_ps, _mm512_prefetch_i32scatter_pd,
4793         _mm512_prefetch_i32scatter_ps, _mm512_mask_prefetch_i32scatter_pd,
4794         _mm512_mask_prefetch_i32scatter_ps, _mm512_prefetch_i64scatter_pd,
4795         _mm512_prefetch_i64scatter_ps, _mm512_mask_prefetch_i64scatter_pd,
4796         _mm512_mask_prefetch_i64scatter_ps): Likewise.
4797         * config/i386/gmm_malloc.h (_mm_malloc, _mm_free): Likewise.
4798         * config/i386/avx512fintrin.h (_mm512_ternarylogic_epi64,
4799         _mm512_mask_ternarylogic_epi64, _mm512_maskz_ternarylogic_epi64,
4800         _mm512_ternarylogic_epi32, _mm512_mask_ternarylogic_epi32,
4801         _mm512_maskz_ternarylogic_epi32, _mm512_i32gather_ps,
4802         _mm512_mask_i32gather_ps, _mm512_i32gather_pd, _mm512_i64gather_ps,
4803         _mm512_i64gather_pd, _mm512_i32gather_epi32, _mm512_i32gather_epi64,
4804         _mm512_i64gather_epi32, _mm512_i64gather_epi64): Likewise.
4806         * config/i386/fxsrintrin.h (_fxsave): Remove return keyword in inlines
4807         returning void.
4808         (_fxrstor, _fxsave64, _fxrstor64): Likewise.
4809         * config/i386/xsaveintrin.h (_xsave, _xrstor, _xsave64, _xrstor64):
4810         Likewise.
4811         * config/i386/xsaveoptintrin.h (_xsaveopt, _xsaveopt64): Likewise.
4812         * config/i386/pkuintrin.h (_wrpkru): Likewise.  Add space after
4813         function name.
4814         (_rdpkru_u32): Add space after function name.
4816         * config/i386/t-i386 (i386-c.o): Don't depend on
4817         i386-builtin-types.inc.
4818         (i386.o): Depend on i386-builtin-types.inc.
4820 2016-08-19  Matthew Wahab  <matthew.wahab@arm.com>
4822         PR target/77281
4823         * config/arm/arm.c (neon_valid_immediate): Delete declaration.
4824         Use const_vec_duplicate to check for duplicated elements.
4826 2016-08-19  Richard Biener  <rguenther@suse.de>
4828         PR tree-optimization/77290
4829         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4830         Fix flag_tree_parallelize_loops check.
4832 2016-08-19  Richard Biener  <rguenther@suse.de>
4834         * match.pd (x | 0 -> x): Add.
4836 2016-08-19  Richard Biener  <rguenther@suse.de>
4838         PR tree-optimization/77286
4839         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
4840         Deal with virtual PHIs being out-of-order.
4842 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4844         * doc/invoke.texi (fverbose-asm): Note that source code lines
4845         are emitted, and provide an example.
4846         * final.c (asm_show_source): New function.
4847         (final_scan_insn): Call asm_show_source.
4849 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4851         * diagnostic-show-locus.c (colorizer::colorizer): Replace diagnostic
4852         param with diagnostic_kind.
4853         (class colorizer): Similarly replace field m_diagnostic with
4854         m_diagnostic_kind.
4855         (colorizer::colorizer): Replace diagnostic
4856         param with diagnostic_kind.
4857         (colorizer::begin_state): Update for above field change.
4858         (layout::layout): Replace diagnostic param with rich_location *
4859         and diagnostic_kind.
4860         (diagnostic_show_locus): Replace diagnostic param with richloc
4861         and diagnostic_kind.
4862         (class selftest::test_diagnostic_context): New class.
4863         (selftest::test_diagnostic_show_locus_unknown_location): New
4864         function.
4865         (selftest::test_one_liner_simple_caret): New function.
4866         (selftest::test_one_liner_caret_and_range): New function.
4867         (selftest::test_one_liner_multiple_carets_and_ranges): New
4868         function.
4869         (selftest::test_one_liner_fixit_remove): New function.
4870         (selftest::test_one_liner_fixit_replace): New function.
4871         (selftest::test_diagnostic_show_locus_one_liner): New function.
4872         (selftest::diagnostic_show_locus_c_tests): Call the new test
4873         functions.
4874         * diagnostic.c (diagnostic_initialize): Initialize
4875         colorize_source_p, show_ruler_p and parseable_fixits_p.
4876         (default_diagnostic_finalizer): Update for change to
4877         diagnostic_show_locus.
4878         (diagnostic_append_note): Likewise.
4879         * diagnostic.h (diagnostic_show_locus): Replace
4880         const diagnostic_info * param with location * and diagnostic_t.
4882 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4884         * input.c (saved_line_table): New global.
4885         (class selftest::temp_line_table): Rename to line_table_test and
4886         move declaration to selftest.h, and drop field m_old_line_table.
4887         (selftest::temp_line_table::temp_line_table): Rename ctor to...
4888         (selftest::line_table_test::line_table_test): ...this.  Add a
4889         default ctor.  Store current value of line_table within
4890         saved_line_table.
4891         (selftest::temp_line_table::~temp_line_table): Rename dtor to...
4892         (selftest::line_table_test::~line_table_test): ...this, and
4893         restore line_table from the saved_line_table, rather than
4894         m_old_line_table.
4895         (selftest::test_accessing_ordinary_linemaps): Update for above
4896         renaming.
4897         (selftest::test_lexer): Likewise.
4898         (struct selftest::lexer_test): Likewise.
4899         (selftest::lexer_test::lexer_test): Likewise.
4900         (selftest::input_c_tests): Move the looping over test cases from
4901         here into...
4902         (selftest::for_each_line_table_case): New function.
4903         * input.h (saved_line_table): New decl.
4904         * selftest.h (struct selftest::line_table_case): New forward decl.
4905         (class selftest::line_table_test): New class, moved here from
4906         selftest::temp_line_table in input.c, and renamed.
4907         (selftest::for_each_line_table_case): New decl.
4909 2015-08-18  H.J. Lu  <hongjiu.lu@intel.com>
4911         PR target/72839
4912         * config/i386/i386.c (lakemont_cost): Set MOVE_RATIO to 17.
4914 2016-08-18  Chung-Lin Tang  <cltang@codesourcery.com>
4916         PR middle-end/70895
4917         * gimplify.c (omp_add_variable): Adjust/add variable mapping on
4918         enclosing parallel construct for reduction variables on OpenACC loop
4919         directives.
4921 2016-08-18  Pierre-Marie de Rodat  <derodat@adacore.com>
4923         * dwarf2out.c (copy_dwarf_procedure): Remove obsolete comment.
4924         (new_dwarf_proc_die): Emit DW_TAG_dwarf_procedure DIEs even for
4925         -gdwarf-3.
4926         (function_to_dwarf_procedure): Update comment.
4928 2016-08-18  David Malcolm  <dmalcolm@redhat.com>
4930         * input.c (diagnostics_file_cache_forcibly_evict_file): New
4931         function.
4932         * input.h (diagnostics_file_cache_forcibly_evict_file): New
4933         declaration.
4934         * selftest.c (selftest::temp_source_file::~temp_source_file):
4935         Evict m_filename from the diagnostic file cache.
4937 2016-08-18  Richard Biener  <rguenther@suse.de>
4939         * tree-pass.h (make_pass_materialize_all_clones): Declare.
4940         * ipa.c (pass_data_materialize_all_clones, pass_materialize_all_clones,
4941         make_pass_materialize_all_clones): New simple IPA pass encapsulating
4942         clone materialization.
4943         * passes.def (all_late_ipa_passes): Start with
4944         pass_materialize_all_clones.
4945         * cgraphunit.c (symbol_table::compile): Remove call to
4946         materialize_all_clones.
4947         * tree-into-ssa.c: Include statistics.h.
4948         (update_ssa): Count number of times we do incremental/rewrite
4949         SSA update.
4951 2016-08-18  Richard Biener  <rguenther@suse.de>
4953         PR tree-optimization/77282
4954         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
4955         When doing auto-parallelizing also prevent use of PHIs that
4956         carry dependences across loop backedges.
4958 2016-08-18  Tamar Christina  <tamar.christina@arm.com>
4959             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
4961         * varasm.c (default_use_anchors_for_symbol_p): Reject too large decls.
4963 2016-08-18  Richard Biener  <rguenther@suse.de>
4965         * ssa-iterators.h (ssa_vuse_operand): New inline.
4966         * tree-if-conv.c (ifc_temp_var): Update virtual operand.
4967         (predicate_all_scalar_phis): Use remove_phi_node to remove
4968         phi nodes predicated.  Delay removing virtual PHIs.
4969         (predicate_mem_writes): Update virtual operands.
4970         (combine_blocks): Likewise.  Propagate out remaining virtual PHIs.
4971         (tree_if_conversion): Do not rewrite virtual SSA form.
4972         * tree-phinodes.c (release_phi_node): Make static.
4973         * tree-phinodes.h (release_phi_node): Remove.
4975 2016-08-18  Jakub Jelinek  <jakub@redhat.com>
4977         * config/i386/i386.c (enum ix86_builtins): Remove IX86_BUILTIN_*
4978         codes that appear in bdesc_* arrays, instead include i386-builtin.def
4979         twice to define those.
4980         (bdesc_comi, bdesc_pcmpestr, bdesc_pcmpistr, bdesc_special_args,
4981         bdesc_args, bdesc_round_args, bdesc_mpx, bdesc_mpx_const,
4982         bdesc_multi_arg): Define by including i386-builtin.def the third time.
4983         * config/i386/i386-builtin.def: New file.
4985 2016-08-17  David Malcolm  <dmalcolm@redhat.com>
4987         * input.c (get_source_range_for_char): Rename to...
4988         (selftest::get_source_range_for_char): ...this, and move within
4989         the #if CHECKING_P guard.
4990         (get_num_source_ranges_for_substring): Rename to...
4991         (selftest::get_num_source_ranges_for_substring): ...this, move
4992         within the #if CHECKING_P guard, and make static.
4993         (selftest::assert_num_substring_ranges): Initialize
4994         actual_num_ranges.
4996 2016-08-18  Alan Modra  <amodra@gmail.com>
4998         PR rtl-optimization/72771
4999         * reload.c (find_reloads): Don't assume that a subreg mem is OK
5000         when find_reloads_toplev returns address_reloaded==-1.
5001         (alternative_allows_const_pool_ref): Update comment.
5003 2015-08-17  Alan Hayward  <alan.hayward@arm.com>
5005         PR tree-optimization/71752
5006         * tree-vect-loop.c (vectorizable_reduction): Keep SLP operand ordering.
5007         * tree-vect-slp.c (vect_get_slp_defs): Handle null operands.
5009 2016-08-17  Jakub Jelinek  <jakub@redhat.com>
5011         * gimple-fold.c (gimple_fold_call): Use gimple_call_noreturn_p
5012         instead of testing ECF_NORETURN bit in gimple_call_flags.
5013         * tree-cfg.c (make_edges_bb, execute_fixup_cfg): Likewise.
5014         * predict.c (tree_bb_level_predictions): Likewise.
5015         * gimple-low.c (gimple_stmt_may_fallthru): Likewise.
5017         PR middle-end/77259
5018         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children): If
5019         turning a call into __builtin_unreachable-like noreturn call, adjust
5020         gimple_call_set_fntype.
5021         * tree-cfgcleanup.c (fixup_noreturn_call): Remove lhs also if
5022         gimple_call_fntype has void return type.
5024 2016-08-17  Chung-Lin Tang  <cltang@codesourcery.com>
5026         * omp-low.c (lower_oacc_reductions): Adjust variable lookup to use
5027         maybe_lookup_decl, to handle nested acc loop directives.
5029 2016-08-17  Richard Biener  <rguenther@suse.de>
5031         PR tree-optimization/76490
5032         * tree-vrp.c (update_value_range): Preserve overflow infinities
5033         when intersecting with ranges from get_range_info.
5034         (operand_less_p): Handle overflow infinities correctly.
5035         (value_range_constant_singleton): Use vrp_operand_equal_p
5036         to handle overflow max/min correctly.
5037         (vrp_valueize): Likewise.
5038         (union_ranges): Likewise.
5039         (intersect_ranges): Likewise.
5040         (vrp_visit_phi_node): Improve iteration limitation to only
5041         apply when we'll possibly re-visit the PHI via a changed argument
5042         on the backedge.
5044 2016-08-17  Thomas Preud'homme  <thomas.preudhomme@arm.com>
5046         * config/arm/t-aprofile (MULTILIB_EXCEPTIONS): Rewrite into ...
5047         (MULTILIB_REQUIRED): This by specifying multilib needing to be built
5048         rather than those that should not be built.
5050 2016-08-17  Stanislaw Halik  <sthalik@misaki.pl>
5052         PR target/66488
5053         * config/i386/xm-mingw32.h (HOST_BITS_PER_PTR): Define if __x86_64__.
5055 2016-08-17  Richard Biener  <rguenther@suse.de>
5057         * tree-ssa.c: Include tree-cfg.h and tree-dfa.h.
5058         (verify_vssa): New function verifying virtual SSA form.
5059         (verify_ssa): Call it.
5060         * tree-ssa-loop-manip.c (slpeel_update_phi_nodes_for_guard2):
5061         Do not apply loop-closed SSA handling to virtuals.
5062         * ssa-iterators.h (op_iter_init): Handle GIMPLE_TRANSACTION.
5063         * tree-into-ssa.c (prepare_use_sites_for): Skip virtual SSA names
5064         when rewriting their symbol.
5065         (prepare_def_site_for): Likewise.
5066         * tree-chkp-opt.c (chkp_reduce_bounds_lifetime): Clear virtual
5067         operands of moved stmts.
5069 2016-08-17  Richard Biener  <rguenther@suse.de>
5071         PR tree-optimization/23855
5072         * tree-ssa-loop-unswitch.c: Include tree-ssa-loop-manip.h.
5073         (tree_unswitch_outer_loop): Iterate find_loop_guard as long as we
5074         find guards to hoist.  Do not update SSA form but rewrite virtuals
5075         into loop closed SSA.
5076         (find_loop_guard): Adjust to skip already hoisted guards.  Do
5077         not mark virtuals for renaming or update SSA form.
5079 2016-08-17  Martin Liska  <mliska@suse.cz>
5081         * coverage.c (get_gcov_type): Replace GCOV_TYPE_SIZE with
5082         a LONG_LONG_TYPE_SIZE comparison.
5083         * gcov-io.h: Remove macro definitions.
5084         * tree-profile.c (gimple_gen_edge_profiler): Replace usage
5085         of GCOV_TYPE_ATOMIC_FETCH_ADD with a LONG_LONG_TYPE_SIZE
5086         comparison.
5088 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5090         * config/i386/i386.c (enum ix86_builtins): Reorder enumerators, so
5091         that builtins not mentioned in bdesc_* arrays come first, then
5092         the ones mentioned in bdesc_* arrays in the order they appear in
5093         the arrays in between IX86_BUILTIN__BDESC_*_FIRST and
5094         IX86_BUILTIN__BDESC_*_LAST enumerator.
5095         (bdesc_mpx): Fix up a comment typo.
5096         (bdesc_multi_arg): Remove __builtin_ia32_vpcomne[bwdq] and
5097         __builtin_ia32_vpcomneu[bwdq] builtins.
5098         (BDESC_VERIFY, BDESC_VERIFYS): Define.
5099         (ix86_init_mmx_sse_builtins, ix86_init_mpx_builtins): Verify
5100         enum ix86_builtins ordering.
5101         (ix86_expand_builtin): Use enum ix86_builtins ordering assumption
5102         for direct bdesc_* array member access instead of searching all the
5103         arrays until an fcode match is found.
5105 2016-08-16  Uros Bizjak  <ubizjak@gmail.com>
5107         * config/i386/i386.md (*ashl<mode>3_mask): Rewrite define_insn
5108         pattern as define_insn_and_split.  Split insn before reload to
5109         ashl<mode>3_1.
5110         (*<shift_insn><mode>3_mask): Ditto.  Split insn before reload to
5111         <shift_insn><mode>3_1.
5112         (*<rotate_insn><mode>3_mask): Ditto.  Split insn before reload to
5113         <rotate_insn><mode>3_1.
5115 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5117         PR c/72857
5118         * input.c (get_source_range_for_substring): Rename to...
5119         (get_source_location_for_substring): ...this, adding param
5120         "caret_idx", and converting output param from source_range * to
5121         location_t *.
5122         (get_source_range_for_char): New function.
5123         (get_num_source_ranges_for_substring): Update comment to reflect
5124         above renaming.
5125         (assert_char_at_range): Update to use get_source_range_for_char
5126         rather than get_source_range_for_substring.
5127         (test_lexer_string_locations_concatenation_2): Likewise.
5128         * substring-locations.h (get_source_range_for_substring): Rename
5129         to...
5130         (get_source_location_for_substring): ...this, and adding param
5131         "caret_idx", and converting output param from source_range * to
5132         location_t *.
5134 2016-08-16  David Malcolm  <dmalcolm@redhat.com>
5136         * input.c (class selftest::temp_source_file): Move to
5137         selftest.h.
5138         (selftest::temp_source_file::temp_source_file): Move to
5139         selftest.c.
5140         (selftest::temp_source_file::~temp_source_file): Likewise.
5141         * selftest.c (selftest::temp_source_file::temp_source_file): Move
5142         here from input.c.
5143         (selftest::temp_source_file::~temp_source_file): Likewise.
5144         * selftest.h (class selftest::temp_source_file): Move here from
5145         input.c
5147 2016-08-16  Jakub Jelinek  <jakub@redhat.com>
5149         PR target/71910
5150         * tree-cfg.c (execute_fixup_cfg): Add node variable, use it.  Before
5151         inlining, add cgraph edge for the added __builtin_unreachable call.
5153         PR middle-end/67485
5154         * expmed.c (expand_mult_const): Change val_so_far's type to UHWI,
5155         only cast it to SHWI for the final comparison.
5157 2016-08-16  Martin Liska  <mliska@suse.cz>
5159         PR gcov-profile/36412
5160         * doc/gcov.texi: Document --hash-filenames(-x).
5161         * gcov.c (print_usage): Add the option.
5162         (process_args): Process the option, sort options alphabetically.
5163         (md5sum_to_hex): New function.
5164         (make_gcov_file_name): Do the md5sum and append it to a
5165         filename.
5167 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5169         PR tree-optimization/69848
5170         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Invert NE
5171         and swtich operands to avoid additional NOT instruction.
5172         (vcond<v_cmp_mixed><mode>): Ditto.
5173         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5175 2016-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5177         * doc/install.texi (*-*-solaris2*): Adjust latest change.
5179 2016-08-16  Richard Biener  <rguenther@suse.de>
5181         PR tree-optimization/76783
5182         * tree-ssa-propagate.c (ssa_prop_init): Use RPO order.  Clear
5183         BB visited flags at start.
5185 2016-08-16  Bin Cheng  <bin.cheng@arm.com>
5187         PR tree-optimization/72817
5188         PR tree-optimization/73450
5189         * tree-ssa-loop-niter.c (number_of_iterations_ne): Check
5190         multiple_of_p for adjusted IV.base.
5192 2016-08-15  Uros Bizjak  <ubizjak@gmail.com>
5194         PR target/72867
5195         * config/i386/sse.md (<code><mode>3<mask_name><round_saeonly_name>):
5196         Emit ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>
5197         for !flag_finite_math_only or flag_signed_zeros.
5198         (*<code><mode>3<mask_name><round_saeonly_name>): Rename from
5199         *<code><mode>3_finite<mask_name><round_saeonly_name>.  Do not
5200         depend on flag_finite_math_only.
5201         (ieee_<ieee_maxmin><mode>3<mask_name><round_saeonly_name>):
5202         New insn pattern.
5203         (*<code><mode>3<mask_name><round_saeonly_name>): Remove.
5204         (*ieee_smin<mode>3): Ditto.
5205         (*ieee_smax<mode>3): Ditto.
5206         * config/i386/mmx.md (mmx_<code>v2sf3): Emit
5207         mmx_ieee_<ieee_maxmin>v2sf3 for !flag_finite_math_only or
5208         flag_signed_zeros.
5209         (*mmx_<code>v2sf3): Rename from *mmx_<code>v2sf3_finite.  Do not
5210         depend on flag_finite_math_only.
5211         (mmx_ieee_<ieee_maxmin>v2sf3): New insn pattern.
5212         (*mmx_<code>v2sf3): Remove.
5213         * config/i386/subst.md (round_saeonly_mask_arg3): New subst attribute.
5214         * config/i386/i386.c (ix86_expand_sse_fp_mimnax): Check
5215         flag_signed_zeros instead of !flag_unsafe_math_optimizations.
5217 2016-08-15  Segher Boessenkool  <segher@kernel.crashing.org>
5219         PR rtl-optimization/73650
5220         * lra-constraints.c (simple_move_p): If the insn is multiple_sets
5221         it is not a simple move.
5223 2016-08-15  Martin Liska  <mliska@suse.cz>
5225         PR driver/72765
5226         * gcc.c (do_spec_1): Call save_string with the right size.
5227         (save_string): Do an assert about string we copy.
5229 2016-08-15  Richard Biener  <rguenther@suse.de>
5231         * ree.c (rest_of_handle_ree): Remove redundant timevar push/pop.
5232         * config/i386/i386.c (pass_data_insert_vzeroupper): Account to
5233         TV_MACH_DEP.
5234         (pass_data_stv): Likewise.
5236 2016-08-15  Richard Biener  <rguenther@suse.de>
5238         PR tree-optimization/73434
5239         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address): Preserve
5240         TBAA info on the base when forwarding a non-invariant address.
5242 2016-08-15  Jakub Jelinek  <jakub@redhat.com>
5244         * dwarf2out.c (struct checksum_attributes): Add
5245         at_string_length_bit_size and at_string_length_byte_size fields.
5246         (collect_checksum_attributes): Handle DW_AT_string_length_bit_size
5247         and DW_AT_string_length_byte_size.
5248         (die_checksum_ordered): Handle at_string_length_bit_size and
5249         at_string_length_byte_size.
5250         (gen_array_type_die): For dwarf_version >= 5 emit
5251         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5252         (adjust_string_types): For dwarf_version >= 5 remove
5253         DW_AT_string_length_byte_size instead of DW_AT_byte_size.
5254         (resolve_addr): Likewise.
5256         PR debug/71906
5257         * dwarf2out.c (string_types): New variable.
5258         (gen_array_type_die): Change early_dwarf handling of
5259         DW_AT_string_length, create DW_OP_call4 referencing the
5260         length var temporarily.  Handle parameters that are pointers
5261         to string length.
5262         (adjust_string_types): New function.
5263         (gen_subprogram_die): Temporarily set string_types to local var,
5264         call adjust_string_types if needed.
5265         (non_dwarf_expression, copy_deref_exprloc, optimize_string_length):
5266         New functions.
5267         (resolve_addr): Adjust DW_AT_string_length if it is DW_OP_call4.
5269 2016-08-15  Eric Botcazou  <ebotcazou@adacore.com>
5271         * doc/install.texi (*-*-solaris2*): Fix version number and document
5272         requirement on GNU make for building libjava with the Solaris linker.
5274 2016-08-15  Martin Liska  <mliska@suse.cz>
5275             Jakub Jelinek  <jakub@redhat.com>
5277         PR tree-optimization/72824
5278         * tree-loop-distribution.c (const_with_all_bytes_same)
5279         <case VECTOR_CST>: Fix a typo.
5281 2016-08-14  Uros Bizjak  <ubizjak@gmail.com>
5283         PR target/76342
5284         * config/i386/avx512fintrin.h (_mm512_undefined_epi32):
5285         Renamed from _mm512_undefined_si512.
5286         (_mm_undefined_si512): New definition.
5288 2016-08-13  Richard Biener  <rguenther@suse.de>
5290         * tree-ssa-forwprop.c (pass_forwprop::execute): Propagate
5291         into PHIs and update the lattice for its def.
5293 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
5295         PR c/71512
5296         * ubsan.c (instrument_si_overflow): Pass true instead of false
5297         to gsi_replace.
5298         (pass_ubsan::execute): Call gimple_purge_dead_eh_edges at the end
5299         of bbs.  Return TODO_cleanup_cfg if any returned true.
5301 2016-08-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
5303         * config/rs6000/vsx.md (vsx_concat_<mode>): Add support for the
5304         ISA 3.0 MTVSRDD instruction.
5305         (vsx_splat_<mode>): Change cpu type of MTVSRDD instruction to
5306         vecperm.
5308 2016-08-12  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5310         PR tree-optimization/71083
5311         * tree-predcom.c (ref_at_iteration): Use a COMPONENT_REF for the
5312         bitfield access when possible.
5314 2016-08-12  Patrick Palka  <ppalka@gcc.gnu.org>
5316         PR middle-end/71654
5317         * match.pd ((T)A CMP (T)B -> A CMP B): Allow (T)A to be a
5318         sign-changing cast from a shorter unsigned type to a wider
5319         signed type.
5321 2016-08-12  Jakub Jelinek  <jakub@redhat.com>
5323         * config/i386/sse.md (avx512dq_vextract<shuffletype>64x2_1_maskm,
5324         vec_extract_hi_<mode>_mask, vec_extract_lo_<mode>_mask,
5325         vec_extract_hi_<mode>_mask): Use Yk constraint instead of k.
5327 2016-08-12  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5329         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost):
5330         Correct costs for vec_construct.
5332 2016-08-12  Bin Cheng  <bin.cheng@arm.com>
5334         PR tree-optimization/69848
5335         * tree-vectorizer.h (enum vect_def_type): New condition reduction
5336         type CONST_COND_REDUCTION.
5337         * tree-vect-loop.c (vectorizable_reduction): Support new condition
5338         reudction type CONST_COND_REDUCTION.
5340 2016-08-12  Richard Biener  <rguenther@suse.de>
5342         PR tree-optimization/57326
5343         * tree-ssa-pre.c (fully_constant_expression): Handle simplification
5344         returning an SSA name.
5345         (phi_translate_1): When fully_constant_expression returns a NAME
5346         make sure we have a leader for it.
5348 2016-08-12  Martin Liska  <mliska@suse.cz>
5349             Adam Fineman  <afineman@afineman.com>
5351         * gcov.c (process_file): Create .gcov file when .gcda
5352         file is missing.
5354 2016-08-12  Marek Polacek  <polacek@redhat.com>
5356         PR c/7652
5357         * alias.c (find_base_value): Adjust fall through comment.
5358         * cfgexpand.c (expand_debug_expr): Likewise.
5359         * combine.c (find_split_point): Likewise.
5360         (expand_compound_operation): Likewise.  Add FALLTHRU.
5361         (make_compound_operation): Adjust fall through comment.
5362         (canon_reg_for_combine): Add FALLTHRU.
5363         (force_to_mode): Adjust fall through comment.
5364         (simplify_shift_const_1): Likewise.
5365         (simplify_comparison): Likewise.
5366         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Add
5367         FALLTHRU.
5368         * config/aarch64/predicates.md: Likewise.
5369         * config/i386/i386.c (function_arg_advance_32): Likewise.
5370         (ix86_gimplify_va_arg): Likewise.
5371         (print_reg): Likewise.
5372         (ix86_print_operand): Likewise.
5373         (ix86_build_const_vector): Likewise.
5374         (ix86_expand_branch): Likewise.
5375         (ix86_sched_init_global): Adjust fall through comment.
5376         (ix86_expand_args_builtin): Add FALLTHRU.
5377         (ix86_expand_builtin): Likewise.
5378         (ix86_expand_vector_init_one_var): Likewise.
5379         * config/rs6000/rs6000.c (rs6000_emit_vector_compare_inner): Likewise.
5380         (rs6000_adjust_cost): Likewise.
5381         (insn_must_be_first_in_group): Likewise.
5382         * config/rs6000/rs6000.md: Likewise.  Adjust fall through comment.
5383         * dbxout.c (dbxout_symbol): Adjust fall through comment.
5384         * df-scan.c (df_uses_record): Likewise.
5385         * dojump.c (do_jump): Add FALLTHRU.
5386         * dwarf2out.c (mem_loc_descriptor): Likewise.  Adjust fall through
5387         comment.
5388         (resolve_args_picking_1): Adjust fall through comment.
5389         (loc_list_from_tree_1): Likewise.
5390         * expmed.c (make_tree): Likewise.
5391         * expr.c (expand_expr_real_2): Add FALLTHRU.
5392         (expand_expr_real_1): Likewise.  Adjust fall through comment.
5393         * fold-const.c (const_binop): Adjust fall through comment.
5394         (fold_truth_not_expr): Likewise.
5395         (fold_cond_expr_with_comparison): Add FALLTHRU.
5396         (fold_binary_loc): Likewise.
5397         (contains_label_1): Adjust fall through comment.
5398         (multiple_of_p): Likewise.
5399         * gcov-tool.c (process_args): Add FALLTHRU.
5400         * genattrtab.c (check_attr_test): Likewise.
5401         (write_test_expr): Likewise.
5402         * genconfig.c (walk_insn_part): Likewise.
5403         * genpreds.c (validate_exp): Adjust fall through comment.
5404         (needs_variable): Likewise.
5405         * gensupport.c (get_alternatives_number): Add FALLTHRU.
5406         (subst_dup): Likewise.
5407         * gimple-pretty-print.c (dump_gimple_assign): Likewise.
5408         * gimplify.c (gimplify_addr_expr): Adjust fall through comment.
5409         (gimplify_scan_omp_clauses): Add FALLTHRU.
5410         (goa_stabilize_expr): Likewise.
5411         * graphite-isl-ast-to-gimple.c (substitute_ssa_name): Adjust fall
5412         through comment.
5413         * hsa-gen.c (get_address_from_value): Likewise.
5414         * ipa-icf.c (sem_function::hash_stmt): Likewise.
5415         * ira.c (ira_setup_alts): Add FALLTHRU.
5416         * lra-eliminations.c (lra_eliminate_regs_1): Adjust fall through
5417         comment.
5418         * lto-streamer-out.c (lto_output_tree_ref): Add FALLTHRU.
5419         * opts.c (common_handle_option): Likewise.
5420         * read-rtl.c (read_rtx_code): Likewise.
5421         * real.c (round_for_format): Likewise.
5422         * recog.c (asm_operand_ok): Likewise.
5423         * reginfo.c (reg_scan_mark_refs): Adjust fall through comment.
5424         * reload1.c (set_label_offsets): Likewise.
5425         (eliminate_regs_1): Likewise.
5426         (reload_reg_reaches_end_p): Likewise.
5427         * rtlanal.c (commutative_operand_precedence): Add FALLTHRU.
5428         (rtx_cost): Likewise.
5429         * sched-rgn.c (is_exception_free): Likewise.
5430         * simplify-rtx.c (simplify_rtx): Adjust fall through comment.
5431         * stor-layout.c (int_mode_for_mode): Likewise.
5432         * toplev.c (print_to_asm_out_file): Likewise.
5433         (print_to_stderr): Likewise.
5434         * tree-cfg.c (gimple_verify_flow_info): Likewise.
5435         * tree-chrec.c (chrec_fold_plus_1): Add FALLTHRU.
5436         (chrec_fold_multiply): Likewise.
5437         (evolution_function_is_invariant_rec_p): Likewise.
5438         (for_each_scev_op): Likewise.
5439         * tree-data-ref.c (siv_subscript_p): Likewise.
5440         (get_references_in_stmt): Likewise.
5441         * tree.c (find_placeholder_in_expr): Adjust fall through comment.
5442         (substitute_in_expr): Likewise.
5443         (type_cache_hasher::equal): Likewise.
5444         (walk_type_fields): Likewise.
5445         * var-tracking.c (adjust_mems): Add FALLTHRU.
5446         (set_dv_changed): Adjust fall through comment.
5447         * varasm.c (default_function_section): Add FALLTHRU.
5449 2016-08-12  Marek Polacek  <polacek@redhat.com>
5451         PR c/7652
5452         * tree-complex.c (expand_complex_division): Add missing break.
5454 2016-08-12  Richard Biener  <rguenther@suse.de>
5456         * passes.c (execute_todo): Do not push/pop TV_TODO.
5457         (execute_one_ipa_transform_pass): Move timevar push/pop TODO execution.
5458         (execute_one_pass): Likewise.
5459         * common.opt (ftime-report-details): New switch.
5460         * doc/invoke.texi (ftime-report-details): Document.
5461         * timevar.h (timer::print_row): Adjust signature.
5462         (timer::all_zero): New static helper.
5463         (timer::child_map_t): New typedef.
5464         (timer::time_var_def): Add children field.
5465         * timevar.c (timer::named_items::print): Adjust.
5466         (timer::~timer): Free timevar recorded children.
5467         (timer::pop_internal): When -ftime-report-details record
5468         time spent in sub-timevars.
5469         (timer::print_row): Adjust.
5470         (timer::print): Print sub-timevar stats, use all_zero.
5471         * timevar.def (TV_TODO): Remove.
5473 2016-08-12  Richard Biener  <rguenther@suse.de>
5475         PR tree-optimization/72851
5476         * tree-ssa-propagate.c: Include cfganal.h.  Rewrite block and stmt
5477         worklists to use bitmaps indexed in execution order.
5478         (executable_blocks, cfg_blocks_num, cfg_blocks_tail, cfg_blocks_head,
5479         bb_in_list, interesting_ssa_edges, varying_ssa_edges): Remove.
5480         (cfg_blocks): Make a bitmap.
5481         (bb_to_cfg_order, cfg_order_to_bb, ssa_edge_worklist, uid_to_stmt):
5482         New globals.
5483         (cfg_blocks_empty_p): Adjust.
5484         (cfg_blocks_add): Likewise.
5485         (cfg_blocks_get): Likewise.
5486         (add_ssa_edge): Likewise.
5487         (add_control_edge): Likewise.
5488         (simulate_stmt): Likewise.
5489         (process_ssa_edge_worklist): Likewise.
5490         (simulate_block): Likewise.
5491         (ssa_prop_init): Compute PRE order and stmt UIDs.
5492         (ssa_prop_fini): Adjust.
5493         (ssa_propagate): Adjust.
5495 2016-08-12  Richard Biener  <rguenther@suse.de>
5497         * tree-vrp.c (vrp_visit_phi_node): Allow a last iteration if
5498         the currently executable edges have fixed ranges.  Always
5499         go through update_value_range.
5501 2016-08-12  Alexandre Oliva  <aoliva@redhat.com>
5503         PR debug/63240
5504         * langhooks-def.h
5505         (LANG_HOOKS_FUNCTION_DECL_EXPLICIT_P): Const_tree-ify.
5506         (LANG_HOOKS_FUNCTION_DECL_DELETED_P): Likewise.
5507         (LANG_HOOKS_FUNCTION_DECL_DEFAULTED): Set default.
5508         (LANG_HOOKS_DECLS): Add it.
5509         * langhooks.h (struct lang_hooks_for_decls): Add
5510         function_decl_defaulted.  Const_tree-ify
5511         function_decl_explicit_p and function_decl_deleted_p.
5512         * dwarf2out.c (gen_subprogram_die): Add DW_AT_defaulted
5513         attribute.  Add DW_AT_deleted instead of DW_AT_GNU_deleted,
5514         also at strict DWARF v5.
5516         PR debug/55641
5517         * dwarf2out.c (decl_quals): Don't map TREE_READONLY to
5518         TYPE_QUAL_CONST in reference-typed decls.
5520         PR debug/49366
5521         * dwarf2out.c (loc_list_from_tree_1): Expand some CONSTRUCTORs
5522         in DW_OP_pieces, just enough to handle pointers to member
5523         functions.
5524         (gen_remaining_tmpl_value_param_die_attribute): Use a location
5525         expression on DWARFv5 if a constant value doesn't work.
5527 2016-08-11  David Malcolm  <dmalcolm@redhat.com>
5529         * selftest-run-tests.c (selftest::run_tests): Call selftest_c_tests.
5530         * selftest.c (selftest::test_assertions): New function.
5531         (selftest::selftest_c_tests): New function.
5532         * selftest.h (selftest::selftest_c_tests): New declaration.
5534 2016-08-11  Richard Biener  <rguenther@suse.de>
5535             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5537         PR rtl-optimization/72855
5538         * df-core.c (df_verify): Turn off DF_VERIFY_SCHEDULED at end.
5540 2016-08-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
5542         PR target/72863
5543         * vsx.md (vsx_load_<mode>): For P8LE, emit swaps at expand time.
5544         (vsx_store_<mode>): Likewise.
5546 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
5548         * config/i386/i386.c (timode_scalar_to_vector_candidate_p): Allow
5549         TImode CONST_WIDE_INT store.
5550         (timode_scalar_chain::convert_insn): Handle CONST_WIDE_INT store.
5552 2015-08-11  H.J. Lu  <hongjiu.lu@intel.com>
5554         * config/i386/i386.h (MOVE_MAX_PIECES): Use TImode in 64-bit
5555         mode if unaligned SSE load and store are optimal.
5557 2016-08-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5559         PR tree-optimization/71083
5560         * tree-predcom.c (ref_at_iteration): Correctly align the
5561         reference type.
5563 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5565         * config/s390/s390-builtin-types.def: Add INT128 types.
5566         * config/s390/s390-builtins.def: Add INT128 variants for the add
5567         sub low-level builtins dealing with TImode.
5568         * config/s390/s390.c (s390_expand_builtin): Allow mode conversions
5569         via subreg when expanding a builtin.
5570         * config/s390/s390.md: Remove UNSPEC_VEC_ADDC_U128,
5571         UNSPEC_VEC_SUB_U128, and UNSPEC_VEC_SUBC_U128 constants.
5572         Fix comment.
5573         * config/s390/vecintrin.h: Adjust builtin names accordingly.
5574         * config/s390/vx-builtins.md ("vec_add_u128"): Remove expander.
5575         ("vec_addc<mode>", "vec_addc_u128"): Merge to
5576         "vacc<bhfgq>_<mode>".
5577         ("vec_adde_u128"): Rename to "vacq". Change mode to TImode.
5578         ("vec_addec_u128"): Rename to "vacccq". Change mode to TImode.
5579         ("vec_subc<mode>", "vec_subc_u128"): Merge to
5580         "vscbi<bhfgq>_<mode>".
5581         ("vec_sube_u128"): Rename to "vsbiq". Change mode to TImode.
5582         ("vec_subec_u128"): Rename to "vsbcbiq". Change mode to TImode.
5584 2016-08-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
5586         * config/s390/s390-builtins.def: Mark last operand of s390_vlvg*
5588 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
5590         * config/aarch64/aarch64-simd.md (vcond<mode><mode>): Delete
5591         unused declaration.
5592         (vcond<v_cmp_mixed><mode>): Ditto.
5593         (vcondu<mode><mode>, vcondu<mode><v_cmp_mixed>): Ditto.
5595 2016-08-11  Bin Cheng  <bin.cheng@arm.com>
5597         * config/aarch64/aarch64-simd.md (vec_cmp<mode><v_cmp_result>): Init
5598         variable explicitly, also assert on it before use.
5600 2016-08-11  Richard Biener  <rguenther@suse.de>
5602         PR tree-optimization/72772
5603         * cfgloopmanip.c (create_preheader): Use split_edge if there
5604         is a single loop entry, avoiding degenerate PHIs.
5606 2016-08-11  Richard Biener  <rguenther@suse.de>
5608         * tree-ssa-threadbackward.c (pass_data_thread_jumps): Remove
5609         unconditional TODO_cleanup_cfg.
5610         (pass_thread_jumps::execute): Initialize loops, perform a CFG
5611         cleanup only if we threaded a jump.
5613 2016-08-11  Alan Modra  <amodra@gmail.com>
5615         PR target/71680
5616         * lra-constraints.c (simplify_operand_subreg): Allow subreg
5617         mode for mem when SLOW_UNALIGNED_ACCESS if inner mode is also
5618         slow.  Emit two reloads for slow mem case, first loading in
5619         fast innermode, then converting to required mode.
5621 2016-08-10  Kelvin Nilsen  <kelvin@gcc.gnu.org>
5623         * config/rs6000/altivec.h (vec_extract_exp): New macro.
5624         (vec_extract_sig): New macro.
5625         (vec_insert_exp): New macro.
5626         (vec_test_data_class): New macro.
5627         (scalar_extract_exp): New macro.
5628         (scalar_extract_sig): New macro.
5629         (scalar_insert_exp): New macro.
5630         (scalar_test_data_class): New macro.
5631         (scalar_test_neg): New macro.
5632         (scalar_cmp_exp_gt): New macro.
5633         (scalar_cmp_exp_lt): New macro.
5634         (scalar_cmp_exp_eq): New macro.
5635         (scalar_cmp_exp_unordered): New macro.
5636         * config/rs6000/predicates.md (u7bit_cint_operand): New predicate
5637         to enforce constraint that operand is a 7-bit unsigned literal.
5638         * config/rs6000/rs6000-builtin.def (BU_P9V_64BIT_VSX_1): New macro
5639         for power9 built-ins.
5640         (BU_P9V_VSX_2): Likewise.
5641         (BU_P9V_64BIT_VSX_2): Likewise.
5642         (VSEEDP): Add scalar extract exponent support.
5643         (VSEESP): Add scalar extract signature support.
5644         (VSTDCNDP): Add scalar test negative support.
5645         (VSTDCNSP): Likewise.
5646         (VSIEDP): Add scalar insert exponent support.
5647         (VSCEDPGT): Add scalar compare exponent greater than support.
5648         (VSCEDPLT): Add scalar compare exponent less than support.
5649         (VSCEDPEQ): Add scalar compare exponent test-for-equality support.
5650         (VSCEDPUO): Add scalar compare exponent test-for-unordered support.
5651         (VSTDCDP): Add scalar test data class support.
5652         (VSTDCSP): Likewise.
5653         (VSEEDP): Add overload support for scalar extract exponent
5654         operation.
5655         (VSESDP): Add overload support for scalar extract signature
5656         operation.
5657         (VSTDCN): Add overload support for scalar test negative
5658         operation.
5659         (VSTDCNDP): Add overload support for scalar test negative
5660         operation.
5661         (VSTDCNSP): Add overload support for scalar test negative
5662         operation.
5663         (VSIEDP): Add overload support for scalar insert exponent
5664         operation.
5665         (VSTDC): Add overload support for scalar test data class
5666         operation.
5667         (VSTDCDP): Add overload support for scalar test data class
5668         operation.
5669         (VSTDCSP): Add overload support for scalar test data class
5670         opreation.
5671         (VSCEDPGT): Add overload support for scalar compare exponent
5672         greater than operation.
5673         (VSCEDPLT): Add overload support for scalar compare exponent
5674         less than operation.
5675         (VSCEDPEQ): Add overload support for scalar compare exponent
5676         test-for-equality operation.
5677         (VSCEDPUO): Add overload support for scalar compare exponent
5678         test-for-unordered operation.
5679         (VEEDP): Add vector extract exponent support.
5680         (VEESP): Likewise.
5681         (VESDP): Add vector extract significand support.
5682         (VESSP): Likewise.
5683         (VIEDP): Add vector insert exponent support.
5684         (VIESP): Likewise.
5685         (VTDCDP): Add vector test data class support.
5686         (VTDCSP): Likewise.
5687         (VES): Add overload support for vector extract significand operation.
5688         (VESDP): Likewise.
5689         (VESSP): Likewise
5690         (VEE): Add overload support for vector extract exponent operation.
5691         (VEEDP): Likewise.
5692         (VEESP): Likewise.
5693         (VTDC): Add overload support for vector test data class operation.
5694         (VTDCDP): Likewise.
5695         (VTDCSP): Likewise.
5696         (VIE): Add overload support for vector insert exponent operation.
5697         (VIEDP): Likewise.
5698         (VIESP): Likewise.
5699         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
5700         overloaded binary floating point functions.
5701         (altivec_resolve_overloaded_builtin): Improve error messages to
5702         distinguish between functions not supported in the current
5703         compiler configuration and functions that were invoked with an
5704         invalid parameter combination, and include the built-in function
5705         name in both error messages.
5706         * config/rs6000/rs6000-protos.h (rs6000_overloaded_builtin_name):
5707         New prototype.
5708         * config/rs6000/rs6000.c (rs6000_overloaded_builtin_name): New
5709         function.
5710         (rs6000_expand_binop_builtin): Add check to enforce that argument
5711         2 of the test data class operations is a 7-bit unsigned literal.
5712         (rs6000_invalid_builtin): Add code to issue an error message if a
5713         built-in function that requires the power9_vector and -m32
5714         command-line options is compiled without these options.
5715         * config/rs6000/vsx.md (UNSPEC_VSX_SXEXPDP): New value.
5716         (UNSPEC_VSX_SXSIGDP): New value.
5717         (UNSPEC_VSX_SXSIGPDP): New value.
5718         (UNSPEC_VSX_SIEXPDP): New value.
5719         (UNSPEC_VSX_SCMPEXPDP): New value.
5720         (UNSPEC_VSX_STSTDC): New value.
5721         (UNSPEC_VSX_VXEXP): New value.
5722         (UNSPEC_VSX_VXSIG): New value.
5723         (UNSPEC_VSX_VIEXP): New value.
5724         (UNSPEC_VSX_VTSTDC): New value.
5725         (xsxexpdp): New insn for scalar extract exponent.
5726         (xsxsigdp): New insn for scalar extract significand.
5727         (xsiexpdp): New insn for scalar insert exponent.
5728         (xscmpexpdp_<code>): New expansion for scalar compare exponents.
5729         (*xscmpexpdp): New insn for scalar compare exponents.
5730         (xststdc<Fvsx): New expansion for both single- and
5731         double-precision scalar test data class operations.
5732         (xststdcneg<Fvsx>): New expansion for both single- and
5733         double-precision scalar test for negative value operations.
5734         (*xststdc<Fvsx>): New insn for scalar test data class
5735         operation.
5736         (xvxexp<VSs>): New insn for single- and double-precision
5737         vector extract exponent operation.
5738         (xvxsig<VSs>): New insn for single- and double-precision
5739         vector extract significand operation.
5740         (xviexp<VSs>): New insn for single- and double-precision
5741         vector insert exponent operation.
5742         (xvtstdc<VSs>): New insn for single- and double-precision
5743         vector test data class operation.
5744         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
5745         built-in functions to represent the Power9 binary floating-point
5746         support instructions.
5748 2016-08-10  bin cheng  <bin.cheng@arm.com>
5750         * doc/sourcebuild.texi (@item vect_cond_mixed): New item.
5752 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
5753             Renlin Li  <renlin.li@arm.com>
5754             Bin Cheng  <bin.cheng@arm.com>
5756         * config/aarch64/iterators.md (V_cmp_mixed, v_cmp_mixed): New.
5757         * config/aarch64/aarch64-simd.md (<su><maxmin>v2di3): Call
5758         gen_vcondv2div2di instead of gen_aarch64_vcond_internalv2div2di.
5759         (aarch64_vcond_internal<mode><mode>): Delete pattern.
5760         (aarch64_vcond_internal<VDQF_COND:mode><VDQF:mode>): Ditto.
5761         (vcond<v_cmp_result><mode>): Ditto.
5762         (vcond<mode><mode>): Re-implement using vec_cmp and vcond_mask.
5763         (vcondu<mode><mode>): Ditto.
5764         (vcond<v_cmp_mixed><mode>): New pattern.
5765         (vcondu<mode><v_cmp_mixed>): New pattern.
5766         (aarch64_cmtst<mode>): Revise comment using aarch64_vcond instead
5767         of aarch64_vcond_internal.
5769 2016-08-10  Alan Lawrence  <alan.lawrence@arm.com>
5770             Renlin Li  <renlin.li@arm.com>
5771             Bin Cheng  <bin.cheng@arm.com>
5773         * config/aarch64/aarch64-simd.md (vec_cmp<mode><mode>): New pattern.
5774         (vec_cmp<mode><v_cmp_result>): New pattern.
5775         (vec_cmpu<mode><mode>): New pattern.
5776         (vcond_mask_<mode><v_cmp_result>): New pattern.
5778 2016-08-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
5780         PR tree-optimization/71734
5781         * tree-ssa-loop-im.c (ref_indep_loop_p): Add new argument
5782         REF_LOOP, invoke ref_indep_loop_p_1.
5783         (outermost_indep_loop): Pass LOOP argumnet where REF was defined
5784         to ref_indep_loop_p.
5785         (ref_indep_loop_p_1): Fix commentary, add argument REF_LOOP,
5786         combine it with ref_indep_lopp_p_2, update SAFELEN if only REF
5787         is inside LOOP, do not cache dpendence value for loops with
5788         non-zero SAFELEN.
5789         (ref_indep_loop_p_2): Delete function.
5790         (can_sm_ref_p): Pass LOOP as additional argument to
5791         ref_indep_loop_p.
5793 2016-08-10  Michael Meissner  <meissner@linux.vnet.ibm.com>
5795         PR target/72853
5796         * config/rs6000/rs6000.c (mem_operand_ds_form): Add check for op
5797         being an offsettable address.
5799 2016-08-10  Martin Liska  <mliska@suse.cz>
5801         PR gcov-profile/58306
5802         * tree-profile.c (gimple_init_edge_profiler): Create conditionally
5803         atomic variants of profile update functions.
5805 2016-08-10  Martin Liska  <mliska@suse.cz>
5807         Cherry picked (and modified) from google-4_7 branch
5808         2012-12-26  Rong Xu  <xur@google.com>
5809         * common.opt (fprofile-update): Add new flag.
5810         * coretypes.h: Define enum profile_update.
5811         * doc/invoke.texi: Document -fprofile-update.
5812         * gcov-io.h: Declare GCOV_TYPE_ATOMIC_FETCH_ADD and
5813         GCOV_TYPE_ATOMIC_FETCH_ADD_FN.
5814         * tree-profile.c (gimple_init_edge_profiler): Generate
5815         also atomic profiler update.
5816         (gimple_gen_edge_profiler): Likewise.
5818 2016-08-10  David Malcolm  <dmalcolm@redhat.com>
5820         * toplev.c (finalize): Set aux_info_file, asm_out_file, and
5821         stack_usage_file to NULL after fclose calls.
5823 2016-08-10  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
5825         PR target/71873
5826         * reload.c (push_reload): Compute subreg_in_class for
5827         subregs of constants and plus expressions. Remove special
5828         handling of SYMBOL_REFs.
5830 2016-08-10  Alan Modra  <amodra@gmail.com>
5832         PR target/71680
5833         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Return
5834         SImode for TARGET_E500_DOUBLE when given SImode.
5836 2016-08-09  David Wohlferd  <dw@LimeGreenSocks.com>
5838         * config/i3836/avx512fintrin.h (_mm512_cvtsepi64_epi32): Remove
5839         unused variable __O.
5841 2016-08-09  Martin Liska  <mliska@suse.cz>
5843         * doc/gcov.texi: Change _gcov_dump to __gcov_dump and
5844         _gcov_reset to __gcov_reset.
5845         * doc/gcov-tool.texi: Fix typo.
5847 2016-08-09  Martin Liska  <mliska@suse.cz>
5849         * value-prof.c (gimple_divmod_values_to_profile): Do not
5850         instrument MOD histogram if a value is not a SSA name.
5852 2016-08-09  Martin Liska  <mliska@suse.cz>
5854         * value-prof.c (dump_histogram_value): Swap pow2 and non-pow2
5855         values.
5857 2016-08-09  Renlin Li  <renlin.li@arm.com>
5859         PR middle-end/64971
5860         * calls.c (prepare_call_address): Convert funexp to Pmode when
5861         necessary.
5862         * config/aarch64/aarch64.md (sibcall): Remove fix for PR 64971.
5863         (sibcall_value): Likewise.
5865 2016-08-09  Marek Polacek  <polacek@redhat.com>
5867         PR c/7652
5868         * cselib.c (cselib_expand_value_rtx_1): Add return.
5869         * gengtype.c (dbgprint_count_type_at): Likewise.
5870         * hsa-gen.c (gen_hsa_insn_for_internal_fn_call): Likewise.
5871         * reg-stack.c (get_true_reg): Restructure to avoid fallthrough warning.
5873 2016-08-09  Martin Jambor  <mjambor@suse.cz>
5875         PR ipa/71981
5876         * ipa-polymorphic-call.c (get_dynamic_type): Bail out gracefully
5877         if instance is a MEM_REF.
5879 2016-08-09  Uros Bizjak  <ubizjak@gmail.com>
5881         PR target/72843
5882         * config/i386/i386.md (*movtf_internal): Use
5883         lra_in_progress || reload_completed instead of !can_create_pseudo_p
5884         in the insn constraint.
5885         (*movxf_internal): Ditto.
5886         (*movdf_internal): Ditto.
5887         (*movsf_internal): Ditto.
5889 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
5891         PR tree-optimization/72772
5892         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
5893         for expanded base.
5895 2016-08-09  Bin Cheng  <bin.cheng@arm.com>
5897         PR tree-optimization/72772
5898         * tree-ssa-loop-niter.h (simplify_using_initial_conditions): Delete
5899         parameter STOP.
5900         * tree-ssa-loop-niter.c (tree_simplify_using_condition_1): Delete
5901         parameter STOP and update calls.  Move expand_simple_operations
5902         function call from here...
5903         (simplify_using_initial_conditions): ...to here.  Delete parameter
5904         STOP.
5905         (tree_simplify_using_condition): Delete parameter STOP.
5906         * tree-scalar-evolution.c (simple_iv_with_niters): Update call to
5907         simplify_using_initial_conditions.
5909 2016-08-09  Matthew Fortune  <matthew.fortune@imgtec.com>
5911         PR c/65345
5912         * config/mips/mips.c (mips_atomic_assign_expand_fenv):
5913         Use create_tmp_var_raw instead of create_tmp_var.
5915 2016-08-09  Richard Biener  <rguenther@suse.de>
5917         * tree-ssa-threadbackward.c (profitable_jump_thread_path):
5918         Treat same SSA names related.
5920 2016-08-09  Jakub Jelinek  <jakub@redhat.com>
5922         PR tree-optimization/72824
5923         * tree-loop-distribution.c (const_with_all_bytes_same): Verify
5924         real_zerop is not negative.
5926 2016-08-09  Richard Biener  <rguenther@suse.de>
5928         PR tree-optimization/71802
5929         * tree-cfgcleanup.c (cleanup_tree_cfg_bb): Make sure to catch
5930         all merge opportunities with the predecessor.
5932 2016-08-09  Richard Biener  <rguenther@suse.de>
5934         PR ipa/68273
5935         * ipa-prop.c (ipa_modify_formal_parameters): Build
5936         parameter types with natural alignment also for the
5937         over-aligned case.
5939 2016-08-08  Andi Kleen  <ak@linux.intel.com>
5941         * tree-vrp.c (get_single_symbol): Always initialize inv and neg.
5943 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5945         PR c/64955
5946         * langhooks-def.h (LANG_HOOKS_RUN_LANG_SELFTESTS): New default
5947         do-nothing langhook.
5948         (LANG_HOOKS_INITIALIZER): Add LANG_HOOKS_RUN_LANG_SELFTESTS.
5949         * langhooks.h (struct lang_hooks): Add run_lang_selftests.
5950         * selftest-run-tests.c: Include "tree.h" and "langhooks.h".
5951         (selftest::run_tests): Call lang_hooks.run_lang_selftests.
5953 2016-08-08  David Malcolm  <dmalcolm@redhat.com>
5955         PR bootstrap/72844
5956         * input.c: Ensure that HAVE_ICONV is defined.
5958 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5960         PR middle-end/72781
5961         * omp-low.c (lower_lastprivate_clauses): Set TREE_NO_WARNING on the
5962         private vars for lastprivate and for linear iterator.
5964         PR middle-end/68762
5965         * omp-simd-clone.c: Include varasm.h.
5966         (simd_clone_create): Copy over DECL_COMDAT, DECL_WEAK, DECL_EXTERNAL,
5967         DECL_VISIBILITY, DECL_VISIBILITY_SPECIFIED, DECL_DLLIMPORT_P and for
5968         DECL_ONE_ONLY call make_decl_one_only.  Fix up spelling in comment and
5969         update function name.
5971 2016-07-29  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
5973         * config/avr/driver-avr.c (specfiles_doc_url): Remove.
5974         (avr_diagnose_devicespecs_error): Remove.
5975         (avr_devicespecs_file): Remove composing absolute path for specfile
5976         and its verbose info. Remove conditions to check specs-file,
5978 2016-08-08  Jakub Jelinek  <jakub@redhat.com>
5980         PR rtl-optimization/72821
5981         * lra-spills.c (regno_in_use_p): Don't use BLOCK_FOR_INSN on barriers,
5982         just return false for them.
5984 2016-08-08  Alan Modra  <amodra@gmail.com>
5986         PR target/72771
5987         * config/rs6000/rs6000.c (toc_relative_expr_p): Allow (lo_sum (high))
5988         toc refs created during reload.  Update function comment.
5990 2016-08-08  Alan Modra  <amodra@gmail.com>
5992         PR target/72802
5993         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Sort
5994         alternatives.  Put loads first, then stores, and reg/reg moves
5995         within same class later.  Delete attr length.
5997 2016-08-08  Alan Modra  <amodra@gmail.com>
5999         PR target/72802
6000         * config/rs6000/rs6000.c (mem_operand_gpr): Remove vsx dform test.
6001         (mem_operand_ds_form): New predicate.
6002         * config/rs6000/rs6000-protos.h (mem_operand_ds_form): Declare.
6003         * config/rs6000/constraints.md (wY): Use mem_operand_df_form.
6004         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): Delete.
6005         * config/rs6000/rs6000.md (f32_lm2, f32_sm2): Use wY for SF.
6006         (extendsfdf2_fpr): Replace o constraint with wY.
6008 2016-08-07  Jan Hubicka  <hubicka@ucw.cz>
6010         * tree-ssa-threadbackward.c: Include tree-inline.h
6011         (profitable_jump_thread_path): Use estimate_num_insns to estimate
6012         size of copied block; for cold paths reduce duplication.
6013         (find_jump_threads_backwards): Remove redundant tests.
6014         (pass_thread_jumps::gate): Enable for -Os.
6016 2016-08-07  Jakub Jelinek  <jakub@redhat.com>
6018         PR c/72816
6019         * stor-layout.c (layout_decl): Fix up formatting.
6020         (relayout_decl): Allow DECL to be FIELD_DECL.
6022 2016-08-07  Alan Modra  <amodra@gmail.com>
6024         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Fix mode of reg.
6026 2016-08-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
6028         * data-streamer-in.c (streamer_read_wide_int): New.
6029         (streamer_read_widest_int): Renamed function.
6030         * data-streamer-out.c (streamer_write_wide_int): New
6031         (streamer_write_widest_int): Renamed function.
6032         * lto-streamer-in.c (streamer_read_wi): Renamed and moved to
6033         data-stream-in.c.
6034         (input_cfg): Call renamed function.
6035         * lto-streamer-out.c (streamer_write_wi): Renamed and moved to
6036         data-stream-out.c.
6037         (output_cfg): Call renamed function.
6038         * data-streamer.h: Add declarations.
6040 2016-08-08  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6042         * tree-ssa-ccp.c (extend_mask): New param sgn.
6043         Remove ORing with wi::mask.
6044         (get_default_value): Adjust call to extend_mask to pass sign.
6045         (evaluate_stmt): Likewise.
6047 2016-08-06  Jakub Jelinek  <jakub@redhat.com>
6049         * gcov.c (handle_cycle): Use INTTYPE_MAXIMUM (int64_t) instead of
6050         INT64_MAX.
6052 2016-08-06  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6054         * match.pd ((intptr_t) x eq/ne CST to x eq/ne (typeof x) cst): Disable
6055         transform if operand's type is pointer to function or method.
6057 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6059         PR tree-optimization/18046
6060         * tree-ssa-threadedge.c: Include cfganal.h.
6061         (simplify_control_statement_condition): If simplifying a
6062         GIMPLE_SWITCH, replace the index operand of the GIMPLE_SWITCH
6063         with the dominating ASSERT_EXPR before handing it off to VRP.
6064         Mention that a CASE_LABEL_EXPR may be returned.
6065         (thread_around_empty_blocks): Adjust to handle
6066         simplify_control_statement_condition() returning a
6067         CASE_LABEL_EXPR.
6068         (thread_through_normal_block): Likewise.
6069         * tree-vrp.c (simplify_stmt_for_jump_threading): Simplify
6070         a switch statement by trying to determine which case label
6071         will be taken.
6073 2016-08-05  Vladimir Makarov  <vmakarov@redhat.com>
6075         PR rtl-optimization/69847
6076         * lra-constraints.c (process_invariant_for_inheritance): Save
6077         pattern instead of src.
6078         (remove_inheritance_pseudos): Use the pattern.  Add assert.
6080 2016-08-05  David Malcolm  <dmalcolm@redhat.com>
6082         * input.c (string_concat::string_concat): New constructor.
6083         (string_concat_db::string_concat_db): New constructor.
6084         (string_concat_db::record_string_concatenation): New method.
6085         (string_concat_db::get_string_concatenation): New method.
6086         (string_concat_db::get_key_loc): New method.
6087         (class auto_cpp_string_vec): New class.
6088         (get_substring_ranges_for_loc): New function.
6089         (get_source_range_for_substring): New function.
6090         (get_num_source_ranges_for_substring): New function.
6091         (class selftest::lexer_test_options): New class.
6092         (struct selftest::lexer_test): New struct.
6093         (class selftest::ebcdic_execution_charset): New class.
6094         (selftest::ebcdic_execution_charset::s_singleton): New variable.
6095         (selftest::lexer_test::lexer_test): New constructor.
6096         (selftest::lexer_test::~lexer_test): New destructor.
6097         (selftest::lexer_test::get_token): New method.
6098         (selftest::assert_char_at_range): New function.
6099         (ASSERT_CHAR_AT_RANGE): New macro.
6100         (selftest::assert_num_substring_ranges): New function.
6101         (ASSERT_NUM_SUBSTRING_RANGES): New macro.
6102         (selftest::assert_has_no_substring_ranges): New function.
6103         (ASSERT_HAS_NO_SUBSTRING_RANGES): New macro.
6104         (selftest::test_lexer_string_locations_simple): New function.
6105         (selftest::test_lexer_string_locations_ebcdic): New function.
6106         (selftest::test_lexer_string_locations_hex): New function.
6107         (selftest::test_lexer_string_locations_oct): New function.
6108         (selftest::test_lexer_string_locations_letter_escape_1): New function.
6109         (selftest::test_lexer_string_locations_letter_escape_2): New function.
6110         (selftest::test_lexer_string_locations_ucn4): New function.
6111         (selftest::test_lexer_string_locations_ucn8): New function.
6112         (selftest::uint32_from_big_endian): New function.
6113         (selftest::test_lexer_string_locations_wide_string): New function.
6114         (selftest::uint16_from_big_endian): New function.
6115         (selftest::test_lexer_string_locations_string16): New function.
6116         (selftest::test_lexer_string_locations_string32): New function.
6117         (selftest::test_lexer_string_locations_u8): New function.
6118         (selftest::test_lexer_string_locations_utf8_source): New function.
6119         (selftest::test_lexer_string_locations_concatenation_1): New
6120         function.
6121         (selftest::test_lexer_string_locations_concatenation_2): New
6122         function.
6123         (selftest::test_lexer_string_locations_concatenation_3): New
6124         function.
6125         (selftest::test_lexer_string_locations_macro): New function.
6126         (selftest::test_lexer_string_locations_stringified_macro_argument):
6127         New function.
6128         (selftest::test_lexer_string_locations_non_string): New function.
6129         (selftest::test_lexer_string_locations_long_line): New function.
6130         (selftest::test_lexer_char_constants): New function.
6131         (selftest::input_c_tests): Call the new test functions once per
6132         case within the line_table test matrix.
6133         * input.h (struct string_concat): New struct.
6134         (struct location_hash): New struct.
6135         (class string_concat_db): New class.
6136         * substring-locations.h: New header.
6138 2016-08-05  Patrick Palka  <ppalka@gcc.gnu.org>
6140         PR tree-optimization/72810
6141         * tree-vrp.c (simplify_switch_using_ranges): Avoid changing
6142         the type of the case labels when truncating.
6144 2016-08-05  James Greenhalgh  <james.greenhalgh@arm.com>
6146         PR Target/72819
6147         * config/aarch64/aarch64.h (aarch64_fp16_type_node): Declare.
6148         (aarch64_fp16_ptr_type_node): Likewise.
6149         * config/aarch64/aarch64-simd-builtins.c
6150         (aarch64_fp16_ptr_type_node): Define.
6151         (aarch64_init_fp16_types): New, refactored out of...
6152         (aarch64_init_builtins): ...here, update to call
6153         aarch64_init_fp16_types.
6154         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Handle
6155         HFmode.
6156         (aapcs_vfp_sub_candidate): Likewise.
6158 2016-08-05  Martin Liska  <mliska@suse.cz>
6159             Joshua Cranmer  <Pidgeot18@gmail.com>
6161         * gcov.c (line_t::has_block): New function.
6162         (enum loop_type): New enum.
6163         (handle_cycle): New function.
6164         (unblock): Likewise.
6165         (circuit): Likewise.
6166         (get_cycles_count): Likewise.
6167         (accumulate_line_counts): Use new loop detection algorithm.
6169 2016-08-05  Martin Liska  <mliska@suse.cz>
6171         * gcov.c (output_intermediate_file): Rename
6172         function_info::line_next to next_file_fn.
6173         (process_file): Likewise.
6174         (read_graph_file): Likewise.
6175         (accumulate_line_counts): Likewise.
6176         (output_lines): Likewise.
6178 2016-08-05  Richard Biener  <rguenther@suse.de>
6180         * tree-ssa-threadupdate.c (thread_block_1): Remove unnecessary
6181         restriction on threading to a loop header.
6183 2016-08-05  Richard Biener  <rguenther@suse.de>
6185         * tree-cfgcleanup.c (tree_forwarder_block_p): Use bb_loop_header_p.
6186         * cfghooks.c (force_nonfallthru): If we ended up splitting a latch
6187         adjust loop info accordingly.
6189 2016-08-05  Kugan Vivekanandarajah  <kuganv@linaro.org>
6191         * tree-vrp.c (extract_range_basic): Check cfun->after_inlining
6192         before folding call to __builtin_constant_p with parameters to false.
6194 2016-08-05  Alan Modra  <amodra@gmail.com>
6196         * config/rs6000/rs6000.c (rs6000_preferred_reload_class): Delete
6197         code accidentally committed 2016-05-02 providing class when given
6198         NO_REGS.
6200 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6202         * tree-vrp.c (simplify_switch_using_ranges): Try to truncate
6203         the case label ranges that partially overlap with OP's value
6204         range.
6206 2016-08-04  Uros Bizjak  <ubizjak@gmail.com>
6208         PR target/72805
6209         * config/i386/avx512fintrin.h (_mm512_cmp_epi32_mask) [!__OPTIMIZE__]:
6210         Cast builtin function result to __mmask16 instead of __mmask8.
6211         (_mm512_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6212         (_mm512_mask_cmp_epi32_mask) [!__OPTIMIZE__]: Ditto.
6213         (_mm512_mask_cmp_epu32_mask) [!__OPTIMIZE__]: Ditto.
6215 2016-08-04  David Malcolm  <dmalcolm@redhat.com>
6217         * selftest.h (ASSERT_TRUE): Reimplement in terms of...
6218         (ASSERT_TRUE_AT): New macro.
6219         (ASSERT_FALSE): Reimplement in terms of...
6220         (ASSERT_FALSE_AT): New macro.
6221         (ASSERT_STREQ_AT): Fix typo in comment.
6223 2016-08-04  Patrick Palka  <ppalka@gcc.gnu.org>
6225         * gimple.c (preprocess_case_label_vec_for_gimple): When the case
6226         labels are exhaustive, designate the label with the widest
6227         range to be the default label.
6229 2016-08-04  Andrew Pinski  <apinski@cavium.com>
6231         * config/aarch64/aarch64.c (thunderx_vector_cost): New variable.
6232         (thunderx_tunings): Use thunderx_vector_cost instead of
6233         generic_vector_cost.
6235 2016-08-04  Martin Liska  <mliska@suse.cz>
6237         * gcov.c (main): Fix GNU coding style.
6238         (output_intermediate_file): Likewise.
6239         (process_file): Likewise.
6240         (generate_results): Likewise.
6241         (release_structures): Likewise.
6242         (create_file_names): Likewise.
6243         (find_source): Likewise.
6244         (read_graph_file): Likewise.
6245         (find_exception_blocks): Likewise.
6246         (canonicalize_name): Likewise.
6247         (make_gcov_file_name): Likewise.
6248         (mangle_name): Likewise.
6249         (accumulate_line_counts): Likewise.
6250         (output_branch_count): Likewise.
6251         (read_line): Likewise.
6253 2016-08-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6255         PR rtl-optimization/71779
6256         * emit-rtl.c (set_reg_attrs_from_value): Only propagate REG_POINTER,
6257         if the value was sign-extended according to POINTERS_EXTEND_UNSIGNED
6258         or if it was truncated.
6260         PR rtl-optimization/70903
6261         * cse.c (cse_insn): If DEST is a paradoxical SUBREG, don't record DEST.
6263 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
6265         * tree-inline.c (remap_ssa_name): Check for POINTER_TYPE_P before
6266         accessing SSA_NAME_PTR_INFO.
6268 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
6270         PR 70677
6271         * common/config/avr/avr-common.c (avr_option_optimization_table)
6272         [OPT_LEVELS_ALL]: Turn off -fcaller-saves.
6274 2016-08-04  Georg-Johann Lay  <avr@gjlay.de>
6276         PR 55181
6277         * config/avr/avr.md: New pattern to work around do_store_flag
6278         generating shift instructions for bit extractions.
6280 2016-08-04  Kugan Vivekanandarajah  <kuganv@linaro.org>
6282         * tree-vrp.c (set_value_range): Use vrp_equiv_obstack with
6283         BITMAP_ALLOC.
6284         (add_equivalence): Likewise.
6285         (get_value_range): Allocate value range with vrp_value_range_pool.
6286         (vrp_initialize): Initialize vrp_equiv_obstack for equiv allocation.
6287         (vrp_finalize): Relase vrp_equiv_obstack and vrp_value_range_pool.
6289 2016-08-03  Peter Bergner  <bergner@vnet.ibm.com>
6291         * config/rs6000/rs6000.c (rs6000_option_override_internal): Make LRA
6292         the default for the rs6000 port.
6294 2016-08-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6296         PR middle-end/71876
6297         * calls.c (special_function_p): Remove special handling of
6298         "setjmp_syscall", "qsetjmp", "longjmp", "siglongjmp" and the
6299         prefix "__x".  Recognize "savectx", "vfork" and "getcontext" only
6300         without prefix.  Remove potentially unsafe ECF_LEAF and ECF_NORETURN.
6302 2016-08-03  Vladimir Makarov  <vmakarov@redhat.com>
6304         PR middle-end/72778
6305         * lra-spills.c (regno_in_use_p): Check bb and regno modification.
6306         Don't stop on regular insns.
6308 2016-08-03  Nathan Sidwell  <nathan@codesourcery.com>
6310         * config/nvptx/nvptx.c (nvptx_declare_function_name): Round frame
6311         size to DImode boundary.
6312         (nvptx_propagate): Likewise.
6314 2016-08-03  Alan Modra  <amodra@gmail.com>
6316         * config/rs6000/rs6000.h (SLOW_UNALIGNED_ACCESS): Make scalar
6317         float access depend on TARGET_EFFICIENT_UNALIGNED_VSX.
6318         * config/rs6000/rs6000.opt (-mefficient-unaligned-vsx): Renamed
6319         from -mefficient-unaligned-vector.  Note that this affects fp too.
6321 2016-08-03  Alan Modra  <amodra@gmail.com>
6323         * config/rs6000/rs6000.c (rs6000_rtx_costs): Make unaligned mem
6324         cost more.
6326 2016-08-03  Alan Modra  <amodra@gmail.com>
6328         * config/rs6000/rs6000.md (fix_trunc<mode>si2): Force source operand
6329         to a reg.  Localize vars.
6331 2016-08-03  Alan Modra  <amodra@gmail.com>
6333         * config/rs6000/rs6000.opt: Remove negatives from help strings
6334         and comments.
6336 2016-08-03  Alan Modra  <amodra@gmail.com>
6338         * config/rs6000/rs6000.c (rs6000_secondary_reload_direct_move):
6339         Delete duplicated code.
6341 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
6343         PR middle-end/72778
6344         * lra-spills.c (regno_in_use_p): New.
6345         (lra_final_code_change): Use it.
6347 2016-08-02  Vladimir Makarov  <vmakarov@redhat.com>
6349         PR rtl-optimization/69847
6350         * lra-int.h (struct lra-reg): Use restore_rtx instead of
6351         restore_regno.
6352         (lra_rtx_hash): New.
6353         * lra.c (initialize_lra_reg_info_element): Use restore_rtx instead
6354         of restore_regno.
6355         (lra_rtx_hash): Rename and move lra-remat.c::rtx_hash.
6356         * lra-remat.c (rtx_hash): Rename and Move to lra.c.
6357         * lra-spills.c (lra_final_code_change): Don't delete insn when the
6358         next insn is USE with the same reg as the current insn source.
6359         * lra-constraints.c (curr_insn_transform): Use restore_rtx instead
6360         of restore_regno.
6361         (lra_constraints_init): Call initiate_invariants.
6362         (lra_constraints_finish): Call finish_invariants.
6363         (struct invariant, invariant_t, invariant_ptr_t): New.
6364         (const_invariant_ptr_t, invariants, invariants_pool): New.
6365         (invariant_table, invariant_hash, invariant_eq_p): New.
6366         (insert_invariant, initiate_invariants, finish_invariants): New.
6367         (clear_invariants, invalid_invariant_regs): New.
6368         (inherit_reload_reg, split_reg, fix_bb_live_info): Use restore_rtx
6369         instead of restore_regno.
6370         (invariant_p, process_invariant_for_inheritance): New.
6371         (inherit_in_ebb): Implement invariant inheritance.
6372         (lra_inheritance): Initialize and finalize invalid_invariant_regs.
6373         (remove_inheritance_pseudos): Implement undoing invariant
6374         inheritance.
6375         (undo_optional_reloads, lra_undo_inheritance): Use restore_rtx
6376         instead of restore_regno.
6377         * lra-assigns.c (regno_live_length): New.
6378         (reload_pseudo_compare_func): Use regno_live_length.
6379         (assign_by_spills): Use restore_rtx instead of restore_regno.
6380         (lra_assign): Ditto.  Initiate regno_live_length.
6382 2016-02-08  James Greenhalgh  <james.greenhalgh@arm.com>
6384         * config/aarch64/arm_neon.h (vminnm_f64): Add back missing 'f' from
6385         __builtin_aarch64_fmindf.
6387 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
6389         PR tree-optimization/34114
6390         * tree-ssa-loop-niter.c (number_of_iterations_ne): Prove no-overflow
6391         information for more control IVs.
6393 2016-08-02  Bin Cheng  <bin.cheng@arm.com>
6395         PR tree-optimization/34114
6396         * fold-const.c (multiple_of_p): Improve MULT_EXPR, PLUS_EXPR,
6397         PLUS_EXPR case.  Handle SSA_NAME case.
6399 2016-08-02  Tamar Christina  <tamar.christina@arm.com>
6401         * config/aarch64/aarch64-simd-builtins.def
6402         (__builtin_aarch64_fmindf): Change BUILTIN_VDQF to BUILTIN_VDQF_DF.
6403         (__builtin_aarch64_fmaxdf): Likewise.
6404         (__builtin_aarch64_smin_nandf): Likewise.
6405         (__builtin_aarch64_smax_nandf): Likewise.
6406         * config/aarch64/aarch64-simd.md (<fmaxmin><mode>3): Remove.
6407         * config/aarch64/aarch64.md (<fmaxmin><mode>3): Rename to...
6408         (<fmaxmin><mode>3): ...this.
6409         * config/aarch64/arm_neon.h (vmaxnm_f64): New.
6410         (vminnm_f64): Likewise.
6411         (vmin_f64): Likewise.
6412         (vmax_f64): Likewise.
6413         * config/aarch64/iterators.md (FMAXMIN): Merge with...
6414         (FMAXMIN_UNS): ...this.
6415         (fmaxmin): Merged with
6416         (fmaxmin_op): ...this...
6417         (maxmin_uns_op): ...in to this.
6419 2016-08-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
6421         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6422         Add support for vec_extract on vector float, vector int, vector
6423         short, and vector char vector types.
6424         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
6425         vector float, vector int, vector short, and vector char
6426         optimizations on 64-bit ISA 2.07 systems for both constant and
6427         variable element numbers.
6428         (rs6000_split_vec_extract_var): Likewise.
6429         * config/rs6000/vsx.md (vsx_xscvspdp_scalar2): Allow SFmode to be
6430         Altivec registers on ISA 2.07 and above.
6431         (vsx_extract_v4sf): Delete alternative that hard coded element 0,
6432         which never was matched due to the split occuring before register
6433         allocation (and the code would not have worked on little endian
6434         systems if it did match).  Allow extracts to go to the Altivec
6435         registers if ISA 2.07 (power8).  Change from using "" around the
6436         C++ code to using {}'s.
6437         (vsx_extract_v4sf_<mode>_load): New insn to optimize vector float
6438         vec_extracts when the vector is in memory.
6439         (vsx_extract_v4sf_var): New insn to optimize vector float
6440         vec_extracts when the element number is variable on 64-bit ISA
6441         2.07 systems.
6442         (vsx_extract_<mode>, VSX_EXTRACT_I iterator): Add optimizations
6443         for 64-bit ISA 2.07 as well as ISA 3.0.
6444         (vsx_extract_<mode>_p9, VSX_EXTRACT_I iterator): Likewise.
6445         (vsx_extract_<mode>_p8, VSX_EXTRACT_I iterator): Likewise.
6446         (vsx_extract_<mode>_load, VSX_EXTRACT_I iterator): New insn to
6447         optimize vector int, vector short, and vector char vec_extracts
6448         when the vector is in memory.
6449         (vsx_extract_<mode>_var, VSX_EXTRACT_I iterator): New insn to
6450         optimize vector int, vector short, and vector char vec_extracts
6451         when the element number is variable.
6453 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6455         PR target/71948
6456         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): Use a value that
6457         does not overlap with other symbol flags.
6459 2016-08-01  Wilco Dijkstra  <wdijkstr@arm.com>
6461         * config/aarch64/aarch64.h (aarch64_frame):
6462         Remove padding0 and hardfp_offset.  Add locals_offset,
6463         initial_adjust, callee_adjust, callee_offset and final_adjust.
6464         * config/aarch64/aarch64.c (aarch64_layout_frame):
6465         Remove unused padding0 and hardfp_offset initializations.
6466         Choose frame layout and set frame variables accordingly.
6467         Use INVALID_REGNUM instead of FIRST_PSEUDO_REGISTER.
6468         (aarch64_push_regs): Use INVALID_REGNUM, not FIRST_PSEUDO_REGISTER.
6469         (aarch64_pop_regs): Likewise.
6470         (aarch64_expand_prologue): Remove all decision code, just emit
6471         prolog according to frame variables.
6472         (aarch64_expand_epilogue): Remove all decision code, just emit
6473         epilog according to frame variables.
6474         (aarch64_initial_elimination_offset): Use offset to local/arg area.
6476 2015-08-01  H.J. Lu  <hongjiu.lu@intel.com>
6478         PR target/72748
6479         * config/i386/i386.c (timode_scalar_chain::convert_insn): Call
6480         fix_debug_reg_uses after changing source register mode to
6481         V1TImode if source register is undefined.
6483 2015-08-01  Alan Hayward  <alan.hayward@arm.com>
6485         PR tree-optimization/71818
6486         * tree-vect-loop-manip.c (vect_can_advance_ivs_p): Don't advance IVs
6487         with non invariant evolutions
6489 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6491         PR target/72767
6492         * config/avr/avr.md (length) [branch]: Correct insn length
6493         attribute for forward branches.
6495 2016-08-01  Georg-Johann Lay  <avr@gjlay.de>
6497         * doc/extend.texi (AVR Built-in Functions): Document
6498         __builtin_avr_nops.
6499         * config/avr/builtins.def (NOPS): New.
6500         * config/avr/avr.c (avr_expand_nops): New static function.
6501         (avr_expand_builtin): Use it to handle AVR_BUILTIN_NOPS.
6503 2016-08-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6505         * config/aarch64/aarch64.c (aarch64_classify_address): Use DImode when
6506         performing aarch64_offset_7bit_signed_scaled_p check for TImode LDP/STP
6507         addresses.
6509 2016-08-01  Virendra Pathak  <virendra.pathak@broadcom.com>
6511         * config/aarch64/aarch64.c (vulcan_tunings): Update
6512         vulcan L1 cache_line_size.
6514 2016-07-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
6516         * config/rs6000/rs6000-protos.h (rs6000_adjust_vec_address): New
6517         function that takes a vector memory address, a hard register, an
6518         element number and a temporary base register, and recreates an
6519         address that points to the appropriate element within the vector.
6520         * config/rs6000/rs6000.c (rs6000_adjust_vec_address): Likewise.
6521         (rs6000_split_vec_extract_var): Add support for the target of a
6522         vec_extract with variable element number being a scalar memory
6523         location.
6524         (rtx_is_swappable_p): VLSO insns (UNSPEC_VSX_VSLOW) are not
6525         swappable.
6526         * config/rs6000/vsx.md (vsx_extract_<mode>_load): Replace
6527         vsx_extract_<mode>_load insn with a new insn that optimizes
6528         storing either element to a memory location, using scratch
6529         registers to pick apart the vector and reconstruct the address.
6530         (vsx_extract_<P:mode>_<VSX_D:mode>_load): Likewise.
6531         (vsx_extract_<mode>_store): Rework alternatives to more correctly
6532         support Altivec registers.  Add support for ISA 3.0 Altivec d-form
6533         store instruction.
6534         (vsx_extract_<mode>_var): Add support for extracting a variable
6535         element number from memory.
6537 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
6539         * config/avr/avr.c (avr_out_compare): Use const0_rtx instead of 0
6540         when testing for compares against constants of the form 0xabab.
6542 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
6544         PR tree-optimization/57558
6545         * tree-vect-loop-manip.c (vect_create_cond_for_niters_checks): New
6546         function.
6547         (vect_loop_versioning): Support versioning with niter assumptions.
6548         * tree-vect-loop.c (tree-ssa-loop.h): Include header file.
6549         (vect_get_loop_niters): New parameter.  Reimplement to support
6550         assumptions in loop niter info.
6551         (vect_analyze_loop_form_1, vect_analyze_loop_form): Ditto.
6552         (new_loop_vec_info): Init LOOP_VINFO_NITERS_ASSUMPTIONS.
6553         (vect_estimate_min_profitable_iters): Use LOOP_REQUIRES_VERSIONING.
6554         Support loop versioning for niters.
6555         * tree-vectorizer.c (tree-ssa-loop-niter.h): Include header file.
6556         (vect_free_loop_info_assumptions): New function.
6557         (vectorize_loops): Free loop niter info for loops with flag
6558         LOOP_F_ASSUMPTIONS set if vectorization failed.
6559         * tree-vectorizer.h (struct _loop_vec_info): New field
6560         num_iters_assumptions.
6561         (LOOP_VINFO_NITERS_ASSUMPTIONS): New macro.
6562         (LOOP_REQUIRES_VERSIONING_FOR_NITERS): New macro.
6563         (LOOP_REQUIRES_VERSIONING): New macro.
6564         (vect_free_loop_info_assumptions): New decl.
6566 2016-07-29  Bin Cheng  <bin.cheng@arm.com>
6568         * cfgloop.h (struct loop): New field constraints.
6569         (LOOP_C_INFINITE, LOOP_C_FINITE): New macros.
6570         (loop_constraint_set, loop_constraint_clr, loop_constraint_set_p): New
6571         functions.
6572         * cfgloop.c (alloc_loop): Initialize new field.
6573         * cfgloopmanip.c (copy_loop_info): Copy constraints.
6574         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions):
6575         Adjust niter analysis wrto loop constraints.
6576         * doc/loop.texi (@node Number of iterations): Add description for loop
6577         constraints.
6579 2016-07-29  Marek Polacek  <polacek@redhat.com>
6581         PR c/7652
6582         * config/i386/i386.c (ix86_expand_args_builtin): Add break.
6583         (ix86_expand_round_builtin): Likewise.
6585 2016-07-29  Segher Boessenkool  <segher@kernel.crashing.org>
6586             Georg-Johann Lay  <avr@gjlay.de>
6588         PR rtl-optimization/71976
6589         * combine.c (get_last_value): Return 0 if the argument for which
6590         the function is called has a wider mode than the recorded value.
6592 2016-07-29  Marek Polacek  <polacek@redhat.com>
6594         PR c/7652
6595         * config/rs6000/rs6000.c (altivec_expand_ld_builtin): Add break.
6596         (altivec_expand_st_builtin): Likewise.
6598 2016-07-29  Georg-Johann Lay  <avr@gjlay.de>
6600         * config/avr/avr.md (addqi3) [cc]: Revert glitch in insn attribute
6601         introduced in r238381.
6603 2016-07-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
6605         PR middle-end/68217
6606         * tree-vrp.c (extract_range_from_binary_expr_1): In case of signed
6607         & sign-bit-CST, generate [-INF, 0] instead of [-INF, INF].
6609 2016-07-28  Michael Meissner  <meissner@linux.vnet.ibm.com>
6611         * config/rs6000/rs6000-protos.h (rs6000_split_vec_extract_var):
6612         New declaration.
6613         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6614         Add support for vec_extract of vector double or vector long having
6615         a variable element number on 64-bit ISA 2.07 systems or newer.
6616         * config/rs6000/rs6000.c (rs6000_expand_vector_extract):
6617         Likewise.
6618         (rs6000_split_vec_extract_var): New function to split a
6619         vec_extract built-in function with variable element number.
6620         (rtx_is_swappable_p): Variable vec_extracts and shifts are not
6621         swappable.
6622         * config/rs6000/vsx.md (UNSPEC_VSX_VSLO): New unspec.
6623         (UNSPEC_VSX_EXTRACT): Likewise.
6624         (vsx_extract_<mode>, VSX_D iterator): Fix constraints to allow
6625         direct move instructions to be generated on 64-bit ISA 2.07
6626         systems and newer, and to take advantage of the ISA 3.0 MFVSRLD
6627         instruction.
6628         (vsx_vslo_<mode>): New insn to do VSLO on V2DFmode and V2DImode
6629         arguments for vec_extract variable element.
6630         (vsx_extract_<mode>_var, VSX_D iterator): New insn to support
6631         vec_extract with variable element on V2DFmode and V2DImode
6632         vectors.
6633         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): Remove
6634         -mupper-regs-df requirement, since it isn't needed.
6635         (TARGET_DIRECT_MOVE_64BIT): New macro to say whether we can
6636         do direct moves on 64-bit systems, which allows optimization of
6637         vec_extract on 64-bit ISA 2.07 systems and newer.
6639 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
6640 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
6642          * config/aarch64/aarch64.md
6643         (zero_extend<SHORT:mode><GPI:mode>2_aarch64): Change output
6644         statement and type.
6645         (<optab>qihi2_aarch64): Likewise, and split into two.
6646         (extendqihi2_aarch64): New.
6647         (zero_extendqihi2_aarch64): New.
6648         * config/aarch64/iterators.md (ldrxt): Remove.
6649         * config/aarch64/aarch64.c (aarch64_rtx_costs): Change cost of
6650         uxtb/uxth.
6652 2016-07-28  Kristina Martsenko  <kristina.martsenko@arm.com>
6654         * config/aarch64/aarch64.c (aarch64_rtx_costs): Fix cost of zero extend.
6656 2016-07-28  Wilco Dijkstra  <wdijkstr@arm.com>
6658         * config/aarch64/aarch64.c (aarch64_pushwb_pair_reg): Rename.
6659         (aarch64_push_reg): New function to push 1 or 2 registers.
6660         (aarch64_pop_reg): New function to pop 1 or 2 registers.
6661         (aarch64_expand_prologue): Use aarch64_push_regs.
6662         (aarch64_expand_epilogue): Use aarch64_pop_regs.
6664 2016-07-28  Yuri Rumyantsev  <ysrumyan@gmail.com>
6666         PR tree-optimization/71734
6667         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Pass value of safelen
6668         attribute instead of REF_LOOP and use it.
6669         (ref_indep_loop_p_2): Use SAFELEN argument instead of REF_LOOP and
6670         set it for Loops having non-zero safelen attribute.
6671         (ref_indep_loop_p): Pass zero as initial value for safelen.
6673 2016-07-28  Ilya Enkovich  <ilya.enkovich@intel.com>
6675         PR middle-end/72657
6676         PR target/72683
6677         * tree-chkp.c (chkp_retbnd_call_by_val): Check for instrumentation
6678         call using chkp_gimple_call_builtin_p.
6679         (chkp_copy_bounds_for_assign): Likewise.
6681 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6683         * config/alpha/alpha.c (alpha_adjust_cost): Adjust.
6684         * config/arm/arm-protos.h (struct tune_params): Likewise.
6685         * config/arm/arm.c (xscale_sched_adjust_cost): Likewise.
6686         (cortex_a9_sched_adjust_cost): Likewise.
6687         (fa726te_sched_adjust_cost): Likewise.
6688         (arm_adjust_cost): Likewise.
6689         * config/bfin/bfin.c (bfin_adjust_cost): Likewise.
6690         * config/c6x/c6x.c (c6x_adjust_cost): Likewise.
6691         * config/epiphany/epiphany.c (epiphany_adjust_cost): Likewise.
6692         * config/i386/i386.c (ix86_adjust_cost): Likewise.
6693         * config/ia64/ia64.c: Likewise.
6694         * config/m68k/m68k.c: Likewise.
6695         * config/mep/mep.c (mep_adjust_cost): Likewise.
6696         * config/microblaze/microblaze.c (microblaze_adjust_cost):
6697         * Likewise.
6698         * config/mips/mips.c (mips_adjust_cost): Likewise.
6699         * config/mn10300/mn10300.c (mn10300_adjust_sched_cost):
6700         * Likewise.
6701         * config/pa/pa.c (pa_adjust_cost): Likewise.
6702         * config/rs6000/rs6000.c (rs6000_adjust_cost): Likewise.
6703         (rs6000_debug_adjust_cost): Likewise.
6704         * config/sh/sh.c (sh_adjust_cost): Likewise.
6705         * config/sparc/sparc.c (supersparc_adjust_cost): Likewise.
6706         (hypersparc_adjust_cost): Likewise.
6707         (sparc_adjust_cost): Likewise.
6708         * config/spu/spu.c (spu_sched_adjust_cost): Likewise.
6709         * config/tilegx/tilegx.c (tilegx_sched_adjust_cost): Likewise.
6710         * config/tilepro/tilepro.c (tilepro_sched_adjust_cost):
6711         * Likewise.
6712         * config/visium/visium.c (visium_adjust_cost): Likewise.
6713         * doc/tm.texi: Regenerate.
6714         * haifa-sched.c (dep_cost_1): Adjust.
6715         * target.def: Merge adjust_cost and adjust_cost_2.
6717 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6719         * haifa-sched.c (add_to_speculative_block): Make twins a vector.
6721 2016-07-28  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6723         * store-motion.c (struct st_expr): Make pattern_regs a vector.
6724         (extract_mentioned_regs): Append to a vector instead of
6725         returning a rtx_expr_list.
6726         (st_expr_entry): Adjust.
6727         (free_st_expr_entry): Likewise.
6728         (store_ops_ok): Likewise.
6729         (store_killed_in_insn): Likewise.
6730         (find_moveable_store): Likewise.
6732 2016-07-28  Martin Liska  <mliska@suse.cz>
6734         PR gcov-profile/68025
6735         * tree-profile.c (tree_profiling): Respect
6736         no_profile_instrument_function attribute.
6737         * doc/extend.texi: Document no_profile_instrument_function
6738         attribute.
6740 2016-07-28  Martin Liska  <mliska@suse.cz>
6742         PR rtl-optimization/70944
6743         * combine.c (make_compound_operation):
6744         Do not allow make_compound_operation for vector mode
6746 2016-07-28  Kugan Vivekanandarajah  <kuganv@linaro.org>
6748         PR middle-end/71994
6749         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Check tcc_comparison
6750          before calling get_ops.
6752 2016-07-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6754         * defaults.h (LOG2_BITS_PER_UNIT): Move from here...
6755         * tree.h (LOG2_BITS_PER_UNIT): ...to here.
6756         (BITS_PER_UNIT_LOG): Remove.
6757         (int_bit_position): Use LOG2_BITS_PER_UNIT instead of BITS_PER_UNIT_LOG.
6758         * expr.c (expand_assignment): Likewise.
6759         * stor-layout.c (initialize_sizetypes): Likewise.
6761 2016-07-27  Michael Meissner  <meissner@linux.vnet.ibm.com>
6763         * config/rs6000/vector.md (vec_extract<mode>): Change the calling
6764         signature of rs6000_expand_vector_extract so that the element
6765         number is a RTX instead of a constant integer.
6766         * config/rs6000/rs6000-protos.h (rs6000_expand_vector_extract):
6767         Likewise.
6768         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Likewise.
6769         (altivec_expand_vec_ext_builtin): Likewise.
6770         * config/rs6000/altivec.md (reduc_plus_scal_<mode>): Likewise.
6771         * config/rs6000/vsx.md (vsx_extract_<mode>): Fix spelling of the
6772         MFVSRLD instruction.
6774 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6776         * input.c (get_pure_location): Move here from tree.c.
6777         (make_location): Likewise.  Add header comment.
6778         (selftest::test_accessing_ordinary_linemaps): Verify
6779         pure_location_p, make_location, get_location_from_adhoc_loc and
6780         get_range_from_loc.
6781         * input.h (get_pure_location): Move declaration here from tree.h.
6782         (get_finish): Likewise for inline function.
6783         (make_location): Likewise for declaration.
6784         * tree.c (get_pure_location): Move to input.c.
6785         (make_location): Likewise.
6786         * tree.h (get_pure_location): Move declaration to tree.h.
6787         (get_finish): Likewise for inline function.
6788         (make_location): Likewise for declaration.
6790 2016-07-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6792         PR middle-end/71078
6793         * match.pd (x / abs(x) -> copysign(1.0, x)): New pattern.
6795 2016-07-27  David Malcolm  <dmalcolm@redhat.com>
6797         * system.h (STATIC_ASSERT): Use static_assert if building
6798         with C++11 onwards.
6800 2016-07-27  Richard Biener  <rguenther@suse.de>
6802         PR tree-optimization/72517
6803         * tree-vect-data-refs.c (vect_analyze_data_ref_dependences):
6804         Revert change to not compute read-read dependences.
6806 2016-07-27  Richard Biener  <rguenther@suse.de>
6808         * predict.c (set_even_probabilities): Make nedges unsigned.
6810 2016-07-27  Martin Liska  <mliska@suse.cz>
6812         * predict.c (set_even_probabilities): Handle unlikely edges.
6813         (combine_predictions_for_bb): Likewise.
6815 2016-07-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
6817         PR target/71869
6818         * config/rs6000/rs6000.c (rs6000_generate_compare): Rework
6819         __float128 support when we don't have hardware support, so that
6820         the IEEE built-in functions like isgreater, first call __unordkf3
6821         to make sure neither operand is a NaN, and if both operands are
6822         ordered, do the normal comparison.
6824 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6826         * tree-vrp.c (dump_asserts_for): Print loc->expr instead of
6827         name.
6828         (extract_code_and_val_from_cond_with_ops): Verify that name is
6829         either cond_op0 or cond_op1.
6831 2016-07-26  Patrick Palka  <ppalka@gcc.gnu.org>
6833         PR tree-optimization/18046
6834         * genmodes.c (emit_mode_size_inline): Emit an assert that
6835         verifies that mode is a valid array index.
6836         (emit_mode_nuinits_inline): Likewise.
6837         (emit_mode_inner_inline): Likewise.
6838         (emit_mode_unit_size_inline): Likewise.
6839         (emit_mode_unit_precision_inline): Likewise.
6840         * tree-vrp.c: Include params.h.
6841         (find_switch_asserts): Register edge assertions for the default
6842         label which correspond to the anti-ranges of each case label.
6843         * params.def (PARAM_MAX_VRP_SWITCH_ASSERTIONS): New.
6844         * doc/invoke.texi: Document it.
6846 2016-07-26  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
6848         * gimple-ssa-strength-reduction.c (slsr_process_phi): Remove dead
6849         and unnecessary call to gimple_bb.
6851 2016-07-26  Richard Biener  <rguenther@suse.de>
6853         PR rtl-optimization/71984
6854         * simplify-rtx.c (simplify_subreg): Use GET_MODE_SIZE and prepare
6855         for VOIDmode.
6857 2016-07-26  Richard Biener  <rguenther@suse.de>
6859         PR middle-end/72517
6860         * expmed.c (extract_bit_field_1): Constrain the vector mode
6861         with element size matching the extraction mode size when
6862         choosing a better vector mode to do the extraction from.
6864 2016-07-26  Richard Biener  <rguenther@suse.de>
6865             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6867         PR middle-end/70920
6868         * match.pd ((intptr)x eq/ne CST to x eq/ne (typeof x) CST): New
6869         pattern.
6871 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6873         * tree-ssa-structalias.c (struct scc_info): Change types of
6874         members to auto_sbitmap and auto_vec.
6875         (scc_info::scc_info): New constructor.
6876         (scc_info::~scc_info): New destructor.
6877         (init_scc_info): Remove.
6878         (free_scc_info): Remove.
6879         (find_indirect_cycles): Adjust.
6880         (perform_var_substitution): Likewise.
6881         (free_var_substitution_info): Likewise.
6883 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6885         * tree-outof-ssa.c (struct elim_graph): Change type of members
6886         to auto_vec and auto_sbitmap.
6887         (elim_graph::elim_graph): New constructor.
6888         (delete_elim_graph): Remove.
6889         (expand_phi_nodes): Adjust.
6891 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6893         * tree-outof-ssa.c (struct elim_graph): Remove typedef.
6894         (new_elim_graph): Adjust.
6895         (clear_elim_graph): Likewise.
6896         (delete_elim_graph): Likewise.
6897         (elim_graph_size): Likewise.
6898         (elim_graph_add_node): Likewise.
6899         (elim_graph_add_edge): Likewise.
6900         (elim_graph_remove_succ_edge): Likewise.
6901         (eliminate_name): Likewise.
6902         (eliminate_build): Likewise.
6903         (elim_forward): Likewise.
6904         (elim_unvisited_predecessor): Likewise.
6905         (elim_backward): Likewise.
6906         (elim_create): Likewise.
6907         (eliminate_phi): Likewise.
6908         (expand_phi_nodes): Likewise.
6910 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6912         * bt-load.c (compute_out): Use auto_sbitmap class.
6913         (link_btr_uses): Likewise.
6914         * cfganal.c (mark_dfs_back_edges): Likewise.
6915         (post_order_compute): Likewise.
6916         (inverted_post_order_compute): Likewise.
6917         (pre_and_rev_post_order_compute_fn): Likewise.
6918         (single_pred_before_succ_order): Likewise.
6919         * cfgexpand.c (pass_expand::execute): Likewise.
6920         * cfgloop.c (verify_loop_structure): Likewise.
6921         * cfgloopmanip.c (fix_bb_placements): Likewise.
6922         (remove_path): Likewise.
6923         (update_dominators_in_loop): Likewise.
6924         * cfgrtl.c (break_superblocks): Likewise.
6925         * ddg.c (check_sccs): Likewise.
6926         (create_ddg_all_sccs): Likewise.
6927         * df-core.c (df_worklist_dataflow): Likewise.
6928         * dse.c (dse_step3): Likewise.
6929         * except.c (eh_region_outermost): Likewise.
6930         * function.c (thread_prologue_and_epilogue_insns): Likewise.
6931         * gcse.c (prune_expressions): Likewise.
6932         (prune_insertions_deletions): Likewise.
6933         * gimple-ssa-backprop.c (backprop::~backprop): Likewise.
6934         * graph.c (draw_cfg_nodes_no_loops): Likewise.
6935         * ira-lives.c (remove_some_program_points_and_update_live_ranges): Likewise.
6936         * lcm.c (compute_earliest): Likewise.
6937         (compute_farthest): Likewise.
6938         * loop-unroll.c (unroll_loop_constant_iterations): Likewise.
6939         (unroll_loop_runtime_iterations): Likewise.
6940         (unroll_loop_stupid): Likewise.
6941         * lower-subreg.c (decompose_multiword_subregs): Likewise.
6942         * lra-lives.c: Likewise.
6943         * lra.c (lra): Likewise.
6944         * modulo-sched.c (schedule_reg_moves): Likewise.
6945         (optimize_sc): Likewise.
6946         (get_sched_window): Likewise.
6947         (sms_schedule_by_order): Likewise.
6948         (check_nodes_order): Likewise.
6949         (order_nodes_of_sccs): Likewise.
6950         (order_nodes_in_scc): Likewise.
6951         * recog.c (split_all_insns): Likewise.
6952         * regcprop.c (pass_cprop_hardreg::execute): Likewise.
6953         * reload1.c (reload): Likewise.
6954         * sched-rgn.c (haifa_find_rgns): Likewise.
6955         (split_edges): Likewise.
6956         (compute_trg_info): Likewise.
6957         * sel-sched.c (init_seqno): Likewise.
6958         * store-motion.c (remove_reachable_equiv_notes): Likewise.
6959         * tree-into-ssa.c (update_ssa): Likewise.
6960         * tree-ssa-live.c (live_worklist): Likewise.
6961         * tree-ssa-loop-im.c (fill_always_executed_in): Likewise.
6962         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
6963         * Likewise.
6964         (try_peel_loop): Likewise.
6965         * tree-ssa-loop-manip.c (tree_transform_and_unroll_loop):
6966         * Likewise.
6967         * tree-ssa-pre.c (compute_antic): Likewise.
6968         * tree-ssa-reassoc.c (undistribute_ops_list): Likewise.
6969         * tree-stdarg.c (reachable_at_most_once): Likewise.
6970         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Likewise.
6971         * var-tracking.c (vt_find_locations): Likewise.
6973 2016-07-26  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
6975         * sbitmap.h (auto_sbitmap): New class.
6977 2016-07-26  Alan Modra  <amodra@gmail.com>
6979         PR target/72103
6980         * config/rs6000/rs6000.c (rs6000_secondary_reload): Initialize
6981         sri->t_icode.
6983 2016-07-25  David Malcolm  <dmalcolm@redhat.com>
6985         * input.c (selftest::temp_source_file::temp_source_file): Fix
6986         missing "%s" in fprintf.
6988 2016-07-25  John David Anglin  <danglin@gcc.gnu.org>
6990         PR middle-end/71732
6991         * cselib.c (cselib_process_insn): Invalidate argument slots for
6992         const/pure calls.
6994 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
6996         * config/aarch64/arm_neon.h (vfmah_lane_f16, vfmah_laneq_f16,
6997         vfmsh_lane_f16, vfmsh_laneq_f16, vmulh_lane_f16, vmulh_laneq_f16,
6998         vmulxh_lane_f16, vmulxh_laneq_f16): New.
7000 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7002         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7003         * config/aarch64/aarch64.md (fma, fnma): Support HF.
7004         * config/aarch64/arm_fp16.h (vfmah_f16, vfmsh_f16): New.
7006 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7008         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7009         * config/aarch64/aarch64.md (<FCVT_F2FIXED:fcvt_fixed_insn>hf<mode>3):
7010         New.
7011         (<FCVT_FIXED2F:fcvt_fixed_insn><mode>hf3): Likewise.
7012         (add<mode>3): Likewise.
7013         (sub<mode>3): Likewise.
7014         (mul<mode>3): Likewise.
7015         (div<mode>3): Likewise.
7016         (*div<mode>3): Likewise.
7017         (<fmaxmin><mode>3): Extend to HF.
7018         * config/aarch64/aarch64-simd.md (aarch64_rsqrts<mode>): Likewise.
7019         (fabd<mode>3): Likewise.
7020         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_HSDF:mode>3): Likewise.
7021         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_HSDI:mode>3): Likewise.
7022         (aarch64_fmulx<mode>): Likewise.
7023         (aarch64_fac<optab><mode>): Likewise.
7024         (aarch64_frecps<mode>): Likewise.
7025         (<FCVT_F2FIXED:fcvt_fixed_insn>hfhi3): New.
7026         (<FCVT_FIXED2F:fcvt_fixed_insn>hihf3): Likewise.
7027         * config/aarch64/iterators.md (VHSDF_SDF): Delete.
7028         (VSDQ_HSDI): Support HI.
7029         (fcvt_target, FCVT_TARGET): Likewise.
7030         * config/aarch64/arm_fp16.h (vaddh_f16, vsubh_f16, vabdh_f16,
7031         vcageh_f16, vcagth_f16, vcaleh_f16, vcalth_f16, vceqh_f16, vcgeh_f16,
7032         vcgth_f16, vcleh_f16, vclth_f16, vcvth_n_f16_s16, vcvth_n_f16_s32,
7033         vcvth_n_f16_s64, vcvth_n_f16_u16, vcvth_n_f16_u32, vcvth_n_f16_u64,
7034         vcvth_n_s16_f16, vcvth_n_s32_f16, vcvth_n_s64_f16, vcvth_n_u16_f16,
7035         vcvth_n_u32_f16, vcvth_n_u64_f16, vdivh_f16, vmaxh_f16, vmaxnmh_f16,
7036         vminh_f16, vminnmh_f16, vmulh_f16, vmulxh_f16, vrecpsh_f16,
7037         vrsqrtsh_f16): New.
7039 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7041         * config.gcc (aarch64*-*-*): Install arm_fp16.h.
7042         * config/aarch64/aarch64-builtins.c (hi_UP): New.
7043         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7044         * config/aarch64/aarch64-simd.md (aarch64_frsqrte<mode>): Extend to HF
7045         mode.
7046         (aarch64_frecp<FRECP:frecp_suffix><mode>): Likewise.
7047         (aarch64_cm<optab><mode>): Likewise.
7048         * config/aarch64/aarch64.md (<frint_pattern><mode>2): Likewise.
7049         (l<fcvt_pattern><su_optab><GPF:mode><GPI:mode>2): Likewise.
7050         (fix_trunc<GPF:mode><GPI:mode>2): Likewise.
7051         (sqrt<mode>2): Likewise.
7052         (*sqrt<mode>2): Likewise.
7053         (abs<mode>2): Likewise.
7054         (<optab><mode>hf2): New pattern for HF mode.
7055         (<optab>hihf2): Likewise.
7056         * config/aarch64/arm_neon.h: Include arm_fp16.h.
7057         * config/aarch64/iterators.md (GPF_F16, GPI_F16, VHSDF_HSDF): New.
7058         (w1, w2, v, s, q, Vmtype, V_cmp_result, fcvt_iesize, FCVT_IESIZE):
7059         Support HF mode.
7060         * config/aarch64/arm_fp16.h: New file.
7061         (vabsh_f16, vceqzh_f16, vcgezh_f16, vcgtzh_f16, vclezh_f16, vcltzh_f16,
7062         vcvth_f16_s16, vcvth_f16_s32, vcvth_f16_s64, vcvth_f16_u16,
7063         vcvth_f16_u32, vcvth_f16_u64, vcvth_s16_f16, vcvth_s32_f16,
7064         vcvth_s64_f16, vcvth_u16_f16, vcvth_u32_f16, vcvth_u64_f16,
7065         vcvtah_s16_f16, vcvtah_s32_f16, vcvtah_s64_f16, vcvtah_u16_f16,
7066         vcvtah_u32_f16, vcvtah_u64_f16, vcvtmh_s16_f16, vcvtmh_s32_f16,
7067         vcvtmh_s64_f16, vcvtmh_u16_f16, vcvtmh_u32_f16, vcvtmh_u64_f16,
7068         vcvtnh_s16_f16, vcvtnh_s32_f16, vcvtnh_s64_f16, vcvtnh_u16_f16,
7069         vcvtnh_u32_f16, vcvtnh_u64_f16, vcvtph_s16_f16, vcvtph_s32_f16,
7070         vcvtph_s64_f16, vcvtph_u16_f16, vcvtph_u32_f16, vcvtph_u64_f16,
7071         vnegh_f16, vrecpeh_f16, vrecpxh_f16, vrndh_f16, vrndah_f16, vrndih_f16,
7072         vrndmh_f16, vrndnh_f16, vrndph_f16, vrndxh_f16, vrsqrteh_f16,
7073         vsqrth_f16): New.
7075 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7077         * config/aarch64/aarch64-simd-builtins.def (reduc_smax_scal_,
7078         reduc_smin_scal_): Use VDQIF_F16.
7079         (reduc_smax_nan_scal_, reduc_smin_nan_scal_): Use VHSDF.
7080         * config/aarch64/aarch64-simd.md (reduc_<maxmin_uns>_scal_<mode>):
7081         Use VHSDF.
7082         (aarch64_reduc_<maxmin_uns>_internal<mode>): Likewise.
7083         * config/aarch64/iterators.md (VDQIF_F16): New.
7084         (vp): Support HF modes.
7085         * config/aarch64/arm_neon.h (vmaxv_f16, vmaxvq_f16, vminv_f16,
7086         vminvq_f16, vmaxnmv_f16, vmaxnmvq_f16, vminnmv_f16, vminnmvq_f16): New.
7088 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7090         * config/aarch64/aarch64-simd.md (*aarch64_mulx_elt_to_64v2df): Rename to
7091         "*aarch64_mulx_elt_from_dup<mode>".
7092         (*aarch64_mul3_elt<mode>): Update schedule type.
7093         (*aarch64_mul3_elt_from_dup<mode>): Likewise.
7094         (*aarch64_fma4_elt_from_dup<mode>): Likewise.
7095         (*aarch64_fnma4_elt_from_dup<mode>): Likewise.
7096         * config/aarch64/iterators.md (VMUL): Supprt half precision float modes.
7097         (f, fp): Support HF modes.
7098         * config/aarch64/arm_neon.h (vfma_lane_f16, vfmaq_lane_f16,
7099         vfma_laneq_f16, vfmaq_laneq_f16, vfma_n_f16, vfmaq_n_f16, vfms_lane_f16,
7100         vfmsq_lane_f16, vfms_laneq_f16, vfmsq_laneq_f16, vfms_n_f16,
7101         vfmsq_n_f16, vmul_lane_f16, vmulq_lane_f16, vmul_laneq_f16,
7102         vmulq_laneq_f16, vmul_n_f16, vmulq_n_f16, vmulx_lane_f16,
7103         vmulxq_lane_f16, vmulx_laneq_f16, vmulxq_laneq_f16): New.
7105 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7107         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7108         * config/aarch64/aarch64-simd.md (fma<mode>4, fnma<mode>4): Extend to HF
7109         modes.
7110         * config/aarch64/arm_neon.h (vfma_f16, vfmaq_f16, vfms_f16,
7111         vfmsq_f16): New.
7113 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7115         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7116         * config/aarch64/aarch64-simd.md
7117         (aarch64_rsqrts<mode>): Extend to HF modes.
7118         (fabd<mode>3): Likewise.
7119         (<FCVT_F2FIXED:fcvt_fixed_insn><VHSDF_SDF:mode>3): Likewise.
7120         (<FCVT_FIXED2F:fcvt_fixed_insn><VHSDI_SDI:mode>3): Likewise.
7121         (aarch64_<maxmin_uns>p<mode>): Likewise.
7122         (<su><maxmin><mode>3): Likewise.
7123         (<maxmin_uns><mode>3): Likewise.
7124         (<fmaxmin><mode>3): Likewise.
7125         (aarch64_faddp<mode>): Likewise.
7126         (aarch64_fmulx<mode>): Likewise.
7127         (aarch64_frecps<mode>): Likewise.
7128         (*aarch64_fac<optab><mode>): Rename to aarch64_fac<optab><mode>.
7129         (add<mode>3): Extend to HF modes.
7130         (sub<mode>3): Likewise.
7131         (mul<mode>3): Likewise.
7132         (div<mode>3): Likewise.
7133         (*div<mode>3): Likewise.
7134         * config/aarch64/aarch64.c (aarch64_emit_approx_div): Return false for
7135         HF, V4HF and V8HF.
7136         * config/aarch64/iterators.md (VDQ_HSDI, VSDQ_HSDI): New mode iterator.
7137         * config/aarch64/arm_neon.h (vadd_f16, vaddq_f16, vabd_f16, vabdq_f16,
7138         vcage_f16, vcageq_f16, vcagt_f16, vcagtq_f16, vcale_f16, vcaleq_f16,
7139         vcalt_f16, vcaltq_f16, vceq_f16, vceqq_f16, vcge_f16, vcgeq_f16,
7140         vcgt_f16, vcgtq_f16, vcle_f16, vcleq_f16, vclt_f16, vcltq_f16,
7141         vcvt_n_f16_s16, vcvtq_n_f16_s16, vcvt_n_f16_u16, vcvtq_n_f16_u16,
7142         vcvt_n_s16_f16, vcvtq_n_s16_f16, vcvt_n_u16_f16, vcvtq_n_u16_f16,
7143         vdiv_f16, vdivq_f16, vdup_lane_f16, vdup_laneq_f16, vdupq_lane_f16,
7144         vdupq_laneq_f16, vdups_lane_f16, vdups_laneq_f16, vmax_f16, vmaxq_f16,
7145         vmaxnm_f16, vmaxnmq_f16, vmin_f16, vminq_f16, vminnm_f16, vminnmq_f16,
7146         vmul_f16, vmulq_f16, vmulx_f16, vmulxq_f16, vpadd_f16, vpaddq_f16,
7147         vpmax_f16, vpmaxq_f16, vpmaxnm_f16, vpmaxnmq_f16, vpmin_f16, vpminq_f16,
7148         vpminnm_f16, vpminnmq_f16, vrecps_f16, vrecpsq_f16, vrsqrts_f16,
7149         vrsqrtsq_f16, vsub_f16, vsubq_f16): New.
7151 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7153         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New.
7154         * config/aarch64/aarch64-simd-builtins.def: Register new builtins.
7155         * config/aarch64/aarch64-simd.md (aarch64_rsqrte<mode>): Extend to HF modes.
7156         (neg<mode>2): Likewise.
7157         (abs<mode>2): Likewise.
7158         (<frint_pattern><mode>2): Likewise.
7159         (l<fcvt_pattern><su_optab><VDQF:mode><fcvt_target>2): Likewise.
7160         (<optab><VDQF:mode><fcvt_target>2): Likewise.
7161         (<fix_trunc_optab><VDQF:mode><fcvt_target>2): Likewise.
7162         (ftrunc<VDQF:mode>2): Likewise.
7163         (<optab><fcvt_target><VDQF:mode>2): Likewise.
7164         (sqrt<mode>2): Likewise.
7165         (*sqrt<mode>2): Likewise.
7166         (aarch64_frecpe<mode>): Likewise.
7167         (aarch64_cm<optab><mode>): Likewise.
7168         * config/aarch64/aarch64.c (aarch64_emit_approx_sqrt): Return false for
7169         HF, V4HF and V8HF.
7170         * config/aarch64/iterators.md (VHSDF, VHSDF_DF, VHSDF_SDF): New.
7171         (VDQF_COND, fcvt_target, FCVT_TARGET, hcon): Extend mode attribute to HF modes.
7172         (stype): New.
7173         * config/aarch64/arm_neon.h (vdup_n_f16): New.
7174         (vdupq_n_f16): Likewise.
7175         (vld1_dup_f16): Use vdup_n_f16.
7176         (vld1q_dup_f16): Use vdupq_n_f16.
7177         (vabs_f16, vabsq_f16, vceqz_f16, vceqzq_f16, vcgez_f16, vcgezq_f16,
7178         vcgtz_f16, vcgtzq_f16, vclez_f16, vclezq_f16, vcltz_f16, vcltzq_f16,
7179         vcvt_f16_s16, vcvtq_f16_s16, vcvt_f16_u16, vcvtq_f16_u16, vcvt_s16_f16,
7180         vcvtq_s16_f16, vcvt_u16_f16, vcvtq_u16_f16, vcvta_s16_f16,
7181         vcvtaq_s16_f16, vcvta_u16_f16, vcvtaq_u16_f16, vcvtm_s16_f16,
7182         vcvtmq_s16_f16, vcvtm_u16_f16, vcvtmq_u16_f16, vcvtn_s16_f16,
7183         vcvtnq_s16_f16, vcvtn_u16_f16, vcvtnq_u16_f16, vcvtp_s16_f16,
7184         vcvtpq_s16_f16, vcvtp_u16_f16, vcvtpq_u16_f16, vneg_f16, vnegq_f16,
7185         vrecpe_f16, vrecpeq_f16, vrnd_f16, vrndq_f16, vrnda_f16, vrndaq_f16,
7186         vrndi_f16, vrndiq_f16, vrndm_f16, vrndmq_f16, vrndn_f16, vrndnq_f16,
7187         vrndp_f16, vrndpq_f16, vrndx_f16, vrndxq_f16, vrsqrte_f16, vrsqrteq_f16,
7188         vsqrt_f16, vsqrtq_f16): New.
7190 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7192         * config/aarch64/aarch64-simd.md
7193         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Use VALL_F16.
7194         (aarch64_ext<mode>): Likewise.
7195         (aarch64_rev<REVERSE:rev_op><mode>): Likewise.
7196         * config/aarch64/aarch64.c (aarch64_evpc_trn, aarch64_evpc_uzp,
7197         aarch64_evpc_zip, aarch64_evpc_ext, aarch64_evpc_rev): Support V4HFmode
7198         and V8HFmode.
7199         * config/aarch64/arm_neon.h (__INTERLEAVE_LIST): Support float16x4_t,
7200         float16x8_t.
7201         (__aarch64_vdup_lane_f16, __aarch64_vdup_laneq_f16,
7202         __aarch64_vdupq_lane_f16, __aarch64_vdupq_laneq_f16, vbsl_f16,
7203         vbslq_f16, vdup_n_f16, vdupq_n_f16, vdup_lane_f16, vdup_laneq_f16,
7204         vdupq_lane_f16, vdupq_laneq_f16, vduph_lane_f16, vduph_laneq_f16,
7205         vext_f16, vextq_f16, vmov_n_f16, vmovq_n_f16, vrev64_f16, vrev64q_f16,
7206         vtrn1_f16, vtrn1q_f16, vtrn2_f16, vtrn2q_f16, vtrn_f16, vtrnq_f16,
7207         vuzp1_f16, vuzp1q_f16, vuzp2_f16, vuzp2q_f16, vzip1_f16, vzip2q_f16):
7208         New.
7209         (vmov_n_f16): Reimplement using vdup_n_f16.
7210         (vmovq_n_f16): Reimplement using vdupq_n_f16..
7212 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7214         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter
7215         "frame_related_p".  Generate CFA annotation when it's necessary.
7216         (aarch64_expand_prologue): Use aarch64_add_constant.
7217         (aarch64_expand_epilogue): Likewise.
7218         (aarch64_output_mi_thunk): Pass "false" when calling
7219         aarch64_add_constant.
7221 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7223         * config/aarch64/aarch64.c (aarch64_add_constant): Optimize instruction
7224         sequences.
7226 2016-07-25  Jiong Wang  <jiong.wang@arm.com>
7228         * config/aarch64/aarch64.c (aarch64_add_constant): New parameter "mode".
7229         Use aarch64_internal_mov_immediate instead of aarch64_build_constant.
7230         (aarch64_output_mi_thunk): Pass Pmode when calling aarch64_add_constant.
7231         (aarch64_build_constant): Delete.
7233 2016-07-25  Alexander Monakov  <amonakov@ispras.ru>
7235         Revert
7236         2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
7238         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7239         flag_toplevel_reorder.
7241 2016-07-25  Richard Biener  <rguenther@suse.de>
7243         * cgraph.c (cgraph_node::verify_node): Compare against builtin
7244         by using DECL_BUILT_IN_CLASS and DECL_FUNCTION_CODE.
7245         * tree-chkp.c (chkp_gimple_call_builtin_p): Likewise.
7246         * tree-streamer.h (streamer_handle_as_builtin_p): Remove.
7247         (streamer_get_builtin_tree): Likewise.
7248         (streamer_write_builtin): Likewise.
7249         * lto-streamer.h (LTO_builtin_decl): Remove.
7250         * lto-streamer-in.c (lto_read_tree_1): Remove assert.
7251         (lto_input_scc): Remove LTO_builtin_decl handling.
7252         (lto_input_tree_1): Liekwise.
7253         * lto-streamer-out.c (lto_output_tree_1): Remove special
7254         handling of builtins.
7255         (DFS::DFS): Likewise.
7256         * tree-streamer-in.c (streamer_get_builtin_tree): Remove.
7257         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Remove
7258         assert.
7259         (streamer_write_builtin): Remove.
7261 2016-07-25  Martin Liska  <mliska@suse.cz>
7263         * lto-cgraph.c (input_symtab): Don't call get_working_sets
7264         if flag_auto_profile is set to true.
7266 2016-07-25  Martin Liska  <mliska@suse.cz>
7268         PR gcov-profile/71868
7269         * cfgloopanal.c (expected_loop_iterations_unbounded): When we
7270         have a function with multiple latches, count them all.
7272 2016-07-25  Martin Liska  <mliska@suse.cz>
7274         * tree-ssa-loop-niter.c (loop_only_exit_p): Release body array.
7276 2016-07-25  Martin Liska  <mliska@suse.cz>
7278         PR tree-optimization/71987
7279         * tree-ssa-reassoc.c (maybe_optimize_range_tests): Call get_ops
7280         just for SSA_NAMEs. Fix GNU coding style.
7282 2016-07-25  Martin Liska  <mliska@suse.cz>
7284         PR gcov-profile/64874
7285         * gcov-io.h: Update command about file format.
7286         * gcov-iov.c (main): Adapt the numbering scheme.
7288 2016-07-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
7290         PR middle-end/66726
7291         * tree-ssa-reassoc.c (optimize_vec_cond_expr): Handle tcc_compare stmt
7292         whose result is used in PHI.
7293         (final_range_test_p): Likewise.
7294         (maybe_optimize_range_tests): Likewise.
7296 2016-07-22  Michael Meissner  <meissner@linux.vnet.ibm.com>
7298         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
7299         Reformat two multi-line strings.
7301 2016-07-22  Martin Sebor  <msebor@redhat.com>
7303         * doc/extend.texi (Compound Literals): Add '@' missed in last commit.
7305 2016-07-22  Martin Sebor  <msebor@redhat.com>
7307         PR c/71560
7308         * doc/extend.texi (Compound Literals): Correct and clarify.
7309         (Cast to Union): Same.
7311 2016-07-22  Kelvin Nilsen  <kelvin@gcc.gnu.org>
7313         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
7314         comments to explain why certain error messages make mention of
7315         undocumented options.
7316         (rs6000_invalid_builtin): Change error messages to replace mention
7317         of undocumented options with mention of the -mcpu=power9 option
7318         that enables those undocumented options.
7319         * config/rs6000/rs6000.h (MASK_FLOAT128): New macro.
7320         (RS6000_BTM_FLOAT128): Use the new MASK_FLOAT128 macro in the
7321         definition of this macro to correct an existing error.
7322         * config/rs6000/rs6000.opt: Add the Undocumented qualifier to the
7323         mpower9-fusion, mpower9-vector, mpower9-dform, and mmodulo entries.
7324         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Modify
7325         descriptions of built-in functions so that they depend on
7326         -mcpu=power9 instead of on the corresponding undocumented flags.
7327         * doc/invoke.texi (Option Summary):  Remove all mention of newly
7328         undocumented flags.
7329         (IBM RS/6000 and PowerPC Options): Likewise.
7330         * doc/md.texi (Constraints for Particuliar Machines): Remove all
7331         mention of newly undocumented flags.
7333 2016-07-22  Evgeny Stupachenko  <evstupac@gmail.com>
7335         * ipa-cp.c (determine_versionability): Do not create constprop clones,
7336         when target_clones attribute is set.
7338 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
7340         * common.opt (funsafe-loop-optimizations): Mark ignore.
7341         * doc/invoke.texi (funsafe-loop-optimizations): Remove.
7342         * loop-iv.c (get_simple_loop_desc): Remove unsafe-loop-optimizations
7343         related code.
7344         * tree-ssa-loop-niter.c (finite_loop_p): Ditto.
7345         * config/bfin/bfin.c (bfin_can_use_doloop_p): Ditto.
7347 2016-07-22  Bin Cheng  <bin.cheng@arm.com>
7349         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7350         Parameter.
7351         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7352         Parameter.
7353         (number_of_iterations_exit): Warn missed loop optimization for
7354         possible infinite loops.
7356 2016-07-22  Segher Boessenkool  <segher@kernel.crashing.org>
7358         PR target/71216
7359         * config/rs6000/rs6000.c (rs6000_file_start): Fix condition for
7360         when to emit a ".machine" pseudo-op.
7362 2016-07-22  Martin Liska  <mliska@suse.cz>
7364         PR gcov-profile/69028
7365         PR gcov-profile/62047
7366         * coverage.c (coverage_compute_lineno_checksum): Do not
7367         calculate checksum for fns w/o xloc.file.
7368         (coverage_compute_profile_id): Likewise.
7370 2016-07-22  Georg-Johann Lay  <avr@gjlay.de>
7372         * config/avr/avr.c (TARGET_SECONDARY_RELOAD): Remove hook define...
7373         (avr_secondary_reload): ...and implementation.
7374         (avr_adjust_insn_length) [ADJUST_LEN_LPM]: Remove handling.
7375         * config/avr/avr.md (reload_in<mode>): Remove insns.
7376         (adjust_len) [lpm]: Remove insn attribute value.
7377         * config/avr/predicates.md (flash_operand): Remove insn predicate.
7379 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7381         PR middle-end/71876
7382         * builtin-attrs.def (ATTR_RT_NOTHROW_LEAF_LIST): New return twice
7383         attribute.
7384         * builtins.def (BUILT_IN_SETJMP): Use ATTR_RT_NOTHROW_LEAF_LIST here.
7385         * calls.c (special_function_p): Remove the special handling of the
7386         "__builtin_" prefix.
7388 2016-07-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7390         PR middle-end/71876
7391         * calls.c (gimple_maybe_alloca_call_p): New function.  Return true
7392         if STMT may be an alloca call.
7393         (gimple_alloca_call_p, alloca_call_p): Return only true for the
7394         builtin alloca call.
7395         * calls.h (gimple_maybe_alloca_call_p): New function.
7396         * tree-inline.c (inline_forbidden_p_stmt): Use
7397         gimple_maybe_alloca_call_p here.
7399 2016-07-21  David Malcolm  <dmalcolm@redhat.com>
7401         * spellcheck-tree.c (best_macro_match::best_macro_match):
7402         Explictly specify the template arguments when invoking the base
7403         class constructor, to help older C++ compilers.
7405 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
7407         PR sanitizer/71953
7408         * asan.c (asan_dynamic_init_call): Call asan_init_shadow_ptr_types
7409         before builtin_decl_implicit.
7411 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7413         * optabs.c (emit_condiitonal_move): Short circuit for identical
7414         sources.
7416 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7418         * ifcvt.c (noce_if_info): New fields: speed_p, original_cost,
7419         max_seq_cost.  Removed fields: then_cost, else_cost, branch_cost.
7420         (noce_conversion_profitable_p): New.
7421         (noce_try_store_flag_constants): Use it.
7422         (noce_try_addcc): Likewise.
7423         (noce_try_store_flag_mask): Likewise.
7424         (noce_try_cmove): Likewise.
7425         (noce_try_cmove_arith): Likewise.
7426         (bb_valid_for_noce_process_p): Add to the cost parameter rather than
7427         overwriting it.
7428         (noce_convert_multiple_sets): Move cost model to here, from...
7429         (bb_ok_for_noce_convert_multiple_sets) ...here.
7430         (noce_process_if_block): Update calls for above changes.
7431         (noce_find_if_block): Record new noce_if_info parameters.
7433 2016-07-21  James Greenhalgh  <james.greenhalgh@arm.com>
7435         * target.def (max_noce_ifcvt_seq_cost): New.
7436         * doc/tm.texi.in (TARGET_MAX_NOCE_IFCVT_SEQ_COST): Document it.
7437         * doc/tm.texi: Regenerate.
7438         * targhooks.h (default_max_noce_ifcvt_seq_cost): New.
7439         * targhooks.c (default_max_noce_ifcvt_seq_cost): New.
7440         * params.def (PARAM_MAX_RTL_IF_CONVERSION_PREDICTABLE_COST): New.
7441         (PARAM_MAX_RTL_IF_CONVERSION_UNPREDICTABLE_COST): Likewise.
7442         * doc/invoke.texi: Document new params.
7444 2016-07-21  Richard Biener  <rguenther@suse.de>
7446         PR tree-optimization/71947
7447         * tree-vrp.c (extract_range_from_assert): Singleton symbolic
7448         ranges have useful limit_vr information.
7450 2016-07-21  Richard Biener  <rguenther@suse.de>
7452         * function-tests.c (build_trivial_generic_function): Set
7453         BLOCK_SUPERCONTEXT of DECL_INITIAL.
7454         * omp-low.c (create_omp_child_function): Likewise.
7455         (grid_expand_target_grid_body): Likewise.
7456         * cgraphunit.c (init_lowered_empty_function): Likewise.
7457         (cgraph_node::expand_thunk): Likewise.
7458         * tree-parloops.c (create_loop_fn): Likewise.
7459         * ipa.c (cgraph_build_static_cdtor_1): Likewise.
7461 2016-07-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7463         * tree-ssa-strlen.c (strlen_dom_walker::before_dom_children): Fix typo
7464         in comment.
7466 2016-07-21  Georg-Johann Lay  <avr@gjlay.de>
7468         * config/avr/avr.md (any_extract, any_shiftrt): New code iterators.
7469         (*insv.extract, *insv.shiftrt, *insv.not-bit.0, *insv.not-bit.7)
7470         (*insv.xor-extract, *insv.xor1-bit.0): New insns.
7471         (adjust_len) [insv_notbit, insv_notbit_0, insv_notbit_7]: New
7472         values for insn attribute.
7473         * config/avr/avr.c (avr_out_insert_notbit): New function.
7474         (avr_adjust_insn_length): Handle ADJUST_LEN_INSV_NOTBIT,
7475         ADJUST_LEN_INSV_NOTBIT_0/_7.
7476         * config/avr/avr-protos.h (avr_out_insert_notbit): New proto.
7478 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
7480         * tree-chrec.c (convert_affine_scev): New parameter.  Pass new arg.
7481         (chrec_convert_1, chrec_convert): Ditto.
7482         * tree-chrec.h (chrec_convert, convert_affine_scev): New parameter.
7483         * tree-scalar-evolution.c (interpret_rhs_expr): Pass new arg.
7484         * tree-vrp.c (adjust_range_with_scev): Ditto.
7485         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): Ditto.
7486         (scev_var_range_cant_overflow): New function.
7487         (scev_probably_wraps_p): New parameter.  Call above function.
7488         * tree-ssa-loop-niter.h (scev_probably_wraps_p): New parameter.
7490 2016-07-21  Bin Cheng  <bin.cheng@arm.com>
7492         * tree-ssa-loop-niter.c (number_of_iterations_lt_to_ne): Clean up
7493         by removing computation of may_be_zero.
7495 2016-07-21  Jakub Jelinek  <jakub@redhat.com>
7497         * tree-object-size.c (unknown): Use HOST_WIDE_INT_M1U instead of -1.
7499 2016-07-21  Andrew Sutton  <andrew.n.sutton@gmail.com>
7501         Improving concepts performance and diagnostics.
7502         * timevar.def (TV_CONSTRAINT_SAT, TV_CONSTRAINT_SUB): New time vars
7503         for constraint satisfaction and subsumption.
7504         * timevar.h (auto_timevar): New constructor that matches the push/pop
7505         pattern of usage in pt.c.
7507 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
7509         * hwint.h (HOST_WIDE_INT_0): New define.
7510         (HOST_WIDE_INT_0U): Ditto.
7511         * double-int.c: Use HOST_WIDE_INT_0 instead of (HOST_WIDE_INT) 0.
7512         * dse.c: Use HOST_WIDE_INT_0U instead of (unsigned HOST_WIDE_INT) 0.
7513         * simplify-rtx.c: Ditto.
7514         * tree-object-size.c: Ditto.
7516 2016-07-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7518         * config/s390/s390.c (s390_encode_section_info): Remove mode size
7519         check.
7521 2016-07-20  Uros Bizjak  <ubizjak@gmail.com>
7523         * cse.c: Use HOST_WIDE_INT_M1 instead of ~(HOST_WIDE_INT) 0.
7524         * combine.c: Use HOST_WIDE_INT_M1U instead of
7525         ~(unsigned HOST_WIDE_INT) 0.
7526         * double-int.h: Ditto.
7527         * dse.c: Ditto.
7528         * dwarf2asm.c:Ditto.
7529         * expmed.c: Ditto.
7530         * genmodes.c: Ditto.
7531         * match.pd: Ditto.
7532         * read-rtl.c: Ditto.
7533         * tree-ssa-loop-ivopts.c: Ditto.
7534         * tree-ssa-loop-prefetch.c: Ditto.
7535         * tree-vect-generic.c: Ditto.
7536         * tree-vect-patterns.c: Ditto.
7537         * tree.c: Ditto.
7539 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7541         * gcc/config/avr.c (avr_legitimize_address) [AVR_TINY]: Force
7542         constant addresses outside [0,0xc0] into a register.
7543         (avr_out_movhi_r_mr_reg_no_disp_tiny): Pass insn.  And handle
7544         cases where the base address register is unused after.
7545         (avr_out_movhi_r_mr_reg_disp_tiny): Same.
7546         (avr_out_movhi_mr_r_reg_disp_tiny): Same.
7547         (avr_out_store_psi_reg_disp_tiny): Same.
7549 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7551         Implement attribute progmem on reduced Tiny cores by adding
7552         flash offset 0x4000 to respective symbols.
7554         PR target/71948
7555         * doc/extend.texi (AVR Variable Attributes) [progmem]: Add
7556         documentation how it works on reduced Tiny cores.
7557         (AVR Named Address Spaces): No support for reduced Tiny.
7558         * config/avr/avr.c (AVR_SYMBOL_FLAG_TINY_PM): New macro.
7559         (avr_address_tiny_pm_p): New static function.
7560         (avr_print_operand_address) [AVR_TINY]: Add AVR_TINY_PM_OFFSET
7561         if the address is in progmem.
7562         (avr_assemble_integer): Same.
7563         (avr_encode_section_info) [AVR_TINY]: Set AVR_SYMBOL_FLAG_TINY_PM
7564         for symbol_ref in progmem.
7565         * config/avr/avr.h (AVR_TINY_PM_OFFSET): New macro.
7566         * config/avr/avr-c.c (avr_cpu_cpp_builtins): Use it instead of
7567         magic 0x4000 when built-in def'ing __AVR_TINY_PM_BASE_ADDRESS__.
7569 2016-07-20  Patrick Palka  <ppalka@gcc.gnu.org>
7571         * configure.ac (thin_archive_support): New variable.  AC_SUBST it.
7572         * configure: Regenerate.
7573         * Makefile.in (THIN_ARCHIVE_SUPPORT): New variable.
7574         (USE_THIN_ARCHIVES): New variable.
7575         (libbackend.a): If USE_THIN_ARCHIVES then pass T to ar to build
7576         this archive as a thin archive.
7578 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
7580         * diagnostic-show-locus.c (diagnostic_show_locus): If this is the
7581         same location as last time, don't skip if we have fix-it hints.
7582         Clarify the skipping logic by converting it from one "if" clause
7583         to repeated "if" clauses.
7584         * spellcheck-tree.c: Include "cpplib.h".
7585         (find_closest_macro_cpp_cb): Move here from c/c-decl.c.
7586         (best_macro_match::best_macro_match): New constructor.
7587         * spellcheck-tree.h (struct edit_distance_traits<cpp_hashnode *>):
7588         Move here from c/c-decl.c.
7589         (class best_macro_match): Move here from c/c-decl.c, converting
7590         from a typedef to a subclass, gaining a ctor.
7592 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7594         * config/avr/avr-protos.h (avr_addr_space_supported_p): New prototype.
7595         * config/avr/avr.c (TARGET_ADDR_SPACE_DIAGNOSE_USAGE): New hook
7596         define...
7597         (avr_addr_space_diagnose_usage): ...and implementation.
7598         (avr_addr_space_supported_p): New function.
7599         (avr_nonconst_pointer_addrspace, avr_pgm_check_var_decl): Only
7600         report bad address space usage if that space is supported.
7601         (avr_insert_attributes): Same.  No more complain about unsupported
7602         address spaces.
7603         * config/avr/avr-c.c (tm_p.h): Include it.
7604         (avr_cpu_cpp_builtins): Only define addr-space related built-in
7605         macro if avr_addr_space_supported_p.
7607 2016-07-20  Alexander Monakov  <amonakov@ispras.ru>
7609         * config/nvptx/nvptx.c (nvptx_option_override): Do not set
7610         flag_toplevel_reorder.
7612 2016-07-20  David Malcolm  <dmalcolm@redhat.com>
7614         * gcc-rich-location.c
7615         (gcc_rich_location::add_fixit_misspelled_id): New overload, taking
7616         a const char *.
7617         * gcc-rich-location.h
7618         (gcc_rich_location::add_fixit_misspelled_id): Likewise.
7620 2016-07-20  Georg-Johann Lay  <avr@gjlay.de>
7622         * target.def (addr_space): Add new diagnose_usage to hook vector.
7623         * targhooks.c (default_addr_space_diagnose_usage): Add default
7624         implementation and...
7625         * targhooks.h (default_addr_space_diagnose_usage): ... its prototype.
7626         * c/c-parser.c (c_lex_one_token) [CPP_NAME]: If the token
7627         is some address space, call targetm.addr_space.diagnose_usage.
7628         * doc/tm.texi.in (Named Address Spaces): Add anchor for
7629         TARGET_ADDR_SPACE_DIAGNOSE_USAGE documentation.
7630         * doc/tm.texi: Regenerate.
7632 2016-07-20  Martin Liska  <mliska@suse.cz>
7634         PR middle-end/71898
7635         * graphite-isl-ast-to-gimple.c (later_of_the_two):
7636         Properly handly PHI stmts.
7638 2016-07-20  Bin Cheng  <bin.cheng@arm.com>
7640         PR tree-optimization/71503
7641         PR tree-optimization/71683
7642         * tree-if-conv.c (gen_phi_arg_condition): Record true predicate
7643         and break.
7645 2016-07-20  Martin Liska  <mliska@suse.cz>
7647         * doc/invoke.texi (-fipa-ra): Document when the option is
7648         disabled. Fix a typo.
7650 2016-07-20  Martin Liska  <mliska@suse.cz>
7652         * Makefile.in: Include fibonacci_heap.c
7653         * fibonacci_heap.c: New file.
7654         * fibonacci_heap.h (fibonacci_heap::insert): Use insert_node.
7655         (fibonacci_heap::union_with): Fix deletion of the second heap.
7656         * selftest-run-tests.c (selftest::run_tests): Incorporate
7657         fibonacci heap tests.
7658         * selftest.h: Declare fibonacci_heap_c_tests.
7660 2016-07-20  Martin Liska  <mliska@suse.cz>
7662         * selftest-run-tests.c (selftest::run_tests): New function.
7663         * selftest.h (sreal_c_tests): Declare.
7664         * sreal.c (sreal_verify_basics): New function.
7665         (verify_aritmetics): Likewise.
7666         (sreal_verify_arithmetics): Likewise.
7667         (verify_shifting): Likewise.
7668         (sreal_verify_shifting): Likewise.
7669         (void sreal_c_tests): Likewise.
7671 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
7673         PR rtl-optimization/71916
7674         * cfgrtl.c (contains_no_active_insn_p): Return false also for
7675         bb which have a single succ fake edge.
7677 2016-07-19  Aldy Hernandez  <aldyh@redhat.com>
7679         PR debug/71855
7680         * dwarf2out.c (gen_subprogram_die): Only call
7681         gen_unspecified_parameters_die while dumping early dwarf.
7683 2016-07-19  Jakub Jelinek  <jakub@redhat.com>
7685         PR middle-end/71874
7686         * gimple-fold.c (fold_builtin_memory_op): Use
7687         get_addr_base_and_unit_offset instead of get_ref_base_and_extent.
7689 2016-07-19  Uros Bizjak  <ubizjak@gmail.com>
7691         * builtins.c: Use HOST_WIDE_INT_1 instead of (HOST_WIDE_INT) 1,
7692         HOST_WIDE_INT_1U instead of (unsigned HOST_WIDE_INT) 1,
7693         HOST_WIDE_INT_M1 instead of (HOST_WIDE_INT) -1 and
7694         HOST_WIDE_INT_M1U instead of (unsigned HOST_WIDE_INT) -1.
7695         * combine.c: Ditto.
7696         * cse.c: Ditto.
7697         * dojump.c: Ditto.
7698         * double-int.c: Ditto.
7699         * dse.c: Ditto.
7700         * dwarf2out.c: Ditto.
7701         * expmed.c: Ditto.
7702         * expr.c: Ditto.
7703         * fold-const.c: Ditto.
7704         * function.c: Ditto.
7705         * fwprop.c: Ditto.
7706         * genmodes.c: Ditto.
7707         * hwint.c: Ditto.
7708         * hwint.h: Ditto.
7709         * ifcvt.c: Ditto.
7710         * loop-doloop.c: Ditto.
7711         * loop-invariant.c: Ditto.
7712         * loop-iv.c: Ditto.
7713         * match.pd: Ditto.
7714         * optabs.c: Ditto.
7715         * real.c: Ditto.
7716         * reload.c: Ditto.
7717         * rtlanal.c: Ditto.
7718         * simplify-rtx.c: Ditto.
7719         * stor-layout.c: Ditto.
7720         * toplev.c: Ditto.
7721         * tree-ssa-loop-ivopts.c: Ditto.
7722         * tree-vect-generic.c: Ditto.
7723         * tree-vect-patterns.c: Ditto.
7724         * tree.c: Ditto.
7725         * tree.h: Ditto.
7726         * ubsan.c: Ditto.
7727         * varasm.c: Ditto.
7728         * wide-int-print.cc: Ditto.
7729         * wide-int.cc: Ditto.
7730         * wide-int.h: Ditto.
7732 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
7734         * selftest.c (selftest::assert_streq): Handle NULL values of
7735         val_actual and val_expected.
7737 2016-07-19  Martin Jambor  <mjambor@suse.cz>
7739         PR fortran/71688
7740         * trans-decl.c (gfc_generate_function_code): Use cgraph_get_create_node
7741         rather than cgraph_create_node to get a call graph node.
7743 2016-07-19  Richard Biener  <rguenther@suse.de>
7745         * gimple-fold.c (get_base_constructor): Add VIEW_CONVERT case,
7746         handle all tcc_constant bases and valueize SSA names.
7747         * tree-ssa-sccvn.c (fully_constant_vn_reference_p): Handle
7748         tcc_constant bases.
7750 2016-07-19  David Malcolm  <dmalcolm@redhat.com>
7752         * function-tests.c (selftest::verify_three_block_rtl_cfg): Verify
7753         the flags of the exit block and bb2, not just the entry block.
7755 2016-07-19  Richard Biener  <rguenther@suse.de>
7757         PR tree-optimization/71901
7758         * tree-ssa-sccvn.h (struct vn_reference_op_struct): Add
7759         align member, group stuff with the bitfield.
7760         (vn_ref_op_align_unit): New inline.
7761         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): For ARRAY_REFs
7762         record element alignment and operand 3 unchanged.
7763         (ao_ref_init_from_vn_reference): Adjust.
7764         (valueize_refs_1): Likewise.
7765         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Likewise.
7767 2016-07-19  Richard Biener  <rguenther@suse.de>
7769         PR tree-optimization/71908
7770         * tree-ssa-structalias.c (get_constraint_for_component_ref): Handle
7771         symbolic constants in a more reliable way.
7773 2016-07-19  Ilya Enkovich  <ilya.enkovich@intel.com>
7775         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer): Update
7776         comment.
7777         (vect_update_inits_of_drs): Likewise.
7778         (vect_create_cond_for_alias_checks): Likewise.
7779         * tree-vect-loop.c (vect_get_known_peeling_cost): Likewise.
7781 2016-07-19  Richard Biener  <rguenther@suse.de>
7783         PR lto/71907
7784         * lto-streamer-out.c (DFS::DFS_write_tree_body): For blocks
7785         with an abstract origin that is not an inlined function outer
7786         scope add a self-reference as abstract origin.
7787         * tree-streamer-out.c (write_ts_block_tree_pointers): Likewise.
7789 2016-07-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
7791         PR target/71493
7792         * config/rs6000/rs6000.c (rs6000_function_value): Fix
7793         unintentional System V.4 structure return breakage for structures
7794         with a single floating point element.
7796 2016-07-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
7798         PR tree-optimization/71734
7799         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Add REF_LOOP argument which
7800         contains REF, use it to check safelen, assume that safelen value
7801         must be greater 1, fix style.
7802         (ref_indep_loop_p_2): Add REF_LOOP argument.
7803         (ref_indep_loop_p): Pass LOOP as additional argument to
7804         ref_indep_loop_p_2.
7806 2016-07-18  Dominik Vogt  <vogt@linux.vnet.ibm.com>
7808         * cfgexpand.c (expand_stack_vars): Implement synamic stack space
7809         allocation in the prologue.
7810         * explow.c (get_dynamic_stack_base): New function to return an address
7811         expression for the dynamic stack base.
7812         (get_dynamic_stack_size): New function to do the required dynamic stack
7813         space size calculations.
7814         (allocate_dynamic_stack_space): Use new functions.
7815         (align_dynamic_address): Move some code from
7816         allocate_dynamic_stack_space to new function.
7817         * explow.h (get_dynamic_stack_base, get_dynamic_stack_size): Export.
7819 2016-07-18  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
7821         * config/s390/s390.c (s390_encode_section_info): Always set
7822         notaligned marker if mode size is 0 or no MEM_ALIGN info could be
7823         found.
7825 2016-07-18  Richard Biener  <rguenther@suse.de>
7827         PR tree-optimization/71893
7828         * tree-ssa-pre.c (create_component_ref_by_pieces_1): Compensate
7829         for sizetype cast added by array_ref_element_size.
7830         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
7832 2016-07-16  John David Anglin  <danglin@gcc.gnu.org>
7834         * config/pa/pa.c (hppa_profile_hook): Allocate stack space for
7835         register parameters.  Remove code to initialize argument pointer
7836         on TARGET_64BIT.  Optimize call to _mcount when it can be reached
7837         using a pc-relative branch.  Cleanup conditional code.
7838         * config/pa/pa.md (call_mcount): New expander.
7839         (call_mcount_nonpic): New insn.
7840         (call_mcount_pic): New insn and split.
7841         (call_mcount_pic_post_reload): New insn.
7842         (call_mcount_64bit): New insn and split.
7843         (call_mcount_64bit_post_reload): New insn.
7845 2016-07-15  Georg-Johann Lay  <avr@gjlay.de>
7847         * config/avr/predicates.md (const_m255_to_m1_operand): New.
7848         * config/avr/constraints.md (Cn8, Ca1, Co1, Yx2): New constraints.
7849         * config/avr/avr.md (add<mode>3) <ALL1>: Fix set_vzn for +/-2.
7850         (*cmphi.zero-extend.0, *cmphi.zero-extend.1)
7851         (*usum_widenqihi3, *udiff_widenqihi3)
7852         (*addhi3_zero_extend.const): New combiner insns.
7853         (andqi3, iorqi3): Provide "l" (NO_LD_REGS) alternative if
7854         just 1 bit is affected.
7855         * config/avr/avr.c (avr_out_bitop) <QImode>: Don't access xop[3].
7856         (avr_out_compare) [EQ,NE]: Tweak comparing d-regs against -1.
7858 2016-07-15  Cesar Philippidis  <cesar@codesourcery.com>
7860         * omp-low.c (lower_omp_target): Mark data clauses with
7861         GOMP_MAP_FORCE_{PRESENT,TO,FROM,TOFROM} as potentially having
7862         zero-length subarrays.
7864 2016-07-15  Richard Biener  <rguenther@suse.de>
7866         PR tree-optimization/71881
7867         * tree-loop-distribution.c (destroy_loop): Remove blocks in
7868         reverse DOM order to make debug temp generation happy.
7870 2016-07-15  Richard Biener  <rguenther@suse.de>
7872         PR tree-optimization/71887
7873         * tree-ssa-phiopt.c (absorbing_element_p): Add rhs arg and
7874         verify it is not zero for division / modulo handling.
7875         (value_replacement): Adjust.
7877 2016-07-15  Virendra Pathak  <virendra.pathak@broadcom.com>
7878             Julian Brown  <julian@codesourcery.com>
7880         * config/aarch64/aarch64-cores.def: Update vulcan COSTS.
7881         * config/aarch64/aarch64-cost-tables.h
7882         (vulcan_extra_costs): New variable.
7883         * config/aarch64/aarch64.c
7884         (vulcan_addrcost_table): Likewise.
7885         (vulcan_regmove_cost): Likewise.
7886         (vulcan_vector_cost): Likewise.
7887         (vulcan_branch_cost): Likewise.
7888         (vulcan_tunings): Likewise.
7890 2016-07-15  Alexander Monakov  <amonakov@ispras.ru>
7892         * cgraphunit.c (cgraph_order_sort_kind): New entry ORDER_VAR_UNDEF.
7893         (output_in_order): Loop over undefined variables too.  Output them
7894         via assemble_undefined_decl.  Skip variables that correspond to hard
7895         registers or have value-exprs.
7896         * varpool.c (symbol_table::output_variables): Handle undefined
7897         variables together with defined ones.
7899 2016-07-15  Richard Biener  <rguenther@suse.de>
7901         * tree-ssa-pre.c (get_representative_for): Make sure to return
7902         the value number of SSA names.
7903         (phi_translate_1): get_representative_for cannot return NULL.
7904         (do_pre_regular_insertion): Remove redundant call to
7905         fully_constant_expression.
7906         (do_pre_partial_partial_insertion): Likewise.
7908 2016-07-15  Bin Cheng  <bin.cheng@arm.com>
7910         * tree-scalar-evolution.c (simple_iv_with_niters): New funcion.
7911         (derive_simple_iv_with_niters): New function.
7912         (simple_iv): Rewrite using simple_iv_with_niters.
7913         * tree-scalar-evolution.h (simple_iv_with_niters): New decl.
7914         * tree-ssa-loop-niter.c (number_of_iterations_exit_assumptions): New
7915         function.
7916         (number_of_iterations_exit): Rewrite using above function.
7917         * tree-ssa-loop-niter.h (number_of_iterations_exit_assumptions): New
7918         Decl.
7920 2016-07-15  Richard Biener  <rguenther@suse.de>
7922         * config/i386/i386.c (ix86_builtin_vectorization_cost): Adjust
7923         vec_construct cost.
7925 2016-07-14  Jakub Jelinek  <jakub@redhat.com>
7927         PR tree-optimization/71872
7928         * tree-data-ref.c (get_references_in_stmt): Ignore references
7929         with is_gimple_constant get_base_address.
7931 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7933         * config/arm/arm.h (TARGET_HAVE_LDACQ): Enable for ARMv8-M Mainline.
7934         (TARGET_HAVE_LDACQD): New macro.
7935         * config/arm/sync.md (atomic_loaddi): Use TARGET_HAVE_LDACQD rather
7936         than TARGET_HAVE_LDACQ.
7937         (arm_load_acquire_exclusivedi): Likewise.
7938         (arm_store_release_exclusivedi): Likewise.
7940 2016-07-14  Thomas Preud'homme  <thomas.preudhomme@arm.com>
7942         PR rtl-optimization/71878
7943         * lra-constraints.c (match_reload): Pass information about other
7944         output operands.  Create new unique register value if matching input
7945         operand shares same register value as output operand being considered.
7946         (curr_insn_transform): Record output operands already processed.
7948 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7950         PR target/65951
7951         PR tree-optimization/70923
7952         * tree-vect-patterns.c: Include mult-synthesis.h.
7953         (target_supports_mult_synth_alg): New function.
7954         (synth_lshift_by_additions): Likewise.
7955         (apply_binop_and_append_stmt): Likewise.
7956         (vect_synth_mult_by_constant): Likewise.
7957         (target_has_vecop_for_code): Likewise.
7958         (vect_recog_mult_pattern): Use above functions to synthesize vector
7959         multiplication by integer constants.
7961 2016-07-14  Alan Modra  <amodra@gmail.com>
7963         * gcc/config/rs6000/altivec.md (altivec_mov<mode>): Disparage
7964         gpr alternatives.  Correct '*' placement on Y,r alternative.
7965         Add '*' on operand 1 of r,r alternative.
7967 2016-07-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7969         * expmed.c (mult_variant, choose_mult_variant): Move declaration to...
7970         * expmed.h: ... Here.
7972 2016-07-14  Jan Hubicka  <hubicka@ucw.cz>
7974         * gimple.h (stmt_can_terminate_bb_p): New function.
7975         * tree-cfg.c (need_fake_edge_p): Rename to ...
7976         (stmt_can_terminate_bb_p): ... this; return true if stmt can
7977         throw external; handle const and pure calls.
7978         * tree-ssa-loop-niter.c (loop_only_exit_p): Use it.
7980 2016-07-14  Richard Biener  <rguenther@suse.de>
7982         PR tree-optimization/71866
7983         * tree-ssa-pre.c (get_constant_for_value_id): Remove.
7984         (do_hoist_insertion): Avoid endless recursion when we
7985         didn't insert anything because we managed to simplify
7986         things down to a constant or SSA name.
7987         (fully_constant_expression): Re-write in terms of ...
7988         * tree-ssa-sccvn.h (vn_nary_simplify): ... this.  Declare.
7989         * tree-ssa-sccvn.c (vn_nary_simplify): New wrapper around
7990         vn_nary_build_or_lookup_1.
7991         (vn_nary_build_or_lookup_1): Added flag and renamed from ...
7992         (vn_nary_build_or_lookup): ... this which now wraps it.
7994 2016-07-14  Alan Modra  <amodra@gmail.com>
7996         PR target/71733
7997         * config/rs6000/rs6000.c (rs6000_option_override_internal): Deal
7998         with p9_vector override before power9-dform override.
8000 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8002         * value-prof.c (gimple_value_profile_transformations): Don't run
8003         when auto_profile is on.
8005 2016-07-13  Andi Kleen  <ak@linux.intel.com>
8007         * auto-profile.c (update_inlined_ind_target,
8008         afdo_indirect_call): Print information to dump file.
8010 2016-07-13  Andrew Burgess  <andrew.burgess@embecosm.com>
8012         * genrecog.c (special_predicate_operand_p): New function.
8013         (predicate_name): Move function.
8014         (validate_pattern): Don't warn about missing mode for all
8015         define_special_predicate predicates.
8017 2016-07-13  Bin Cheng  <bin.cheng@arm.com>
8019         * tree-vect-data-refs.c (vect_no_alias_p): New function.
8020         (vect_prune_runtime_alias_test_list): Call vect_no_alias_p to
8021         resolve alias checks which are known at compilation time.
8022         Truncate vector LOOP_VINFO_MAY_ALIAS_DDRS(loop_vinfo) if all
8023         alias checks are resolved.  Move dump info for too many runtime
8024         alias checks to here...
8025         * tree-vect-loop.c (vect_analyze_loop_2): ...From here.
8027 2016-07-13  Richard Biener  <rguenther@suse.de>
8029         PR tree-optimization/24574
8030         * tree-ssa-phiopt.c (absorbing_element_p): Pass in argument
8031         position and add shift, rotate, divison and modulo support
8032         for left zero.
8033         (value_replacement): Pass in argument position to absorbing_element_p.
8035 2016-07-13  Ilya Enkovich  <ilya.enkovich@intel.com>
8037         PR ipa/71633
8038         * ipa-inline-transform.c (inline_call): Support
8039         instrumented thunks.
8041 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8043         * config/arm/arm.h (TARGET_HAVE_CBZ): Define.
8044         (TARGET_IDIV): Set for all Thumb targets provided they have hardware
8045         divide feature.
8046         * config/arm/arm.md (divsi3): New unpredicable alternative for ARMv8-M
8047         Baseline.  Make initial alternative TARGET_32BIT only.
8048         (udivsi3): Likewise.
8049         * config/arm/thumb1.md (thumb1_cbz): New define_insn.
8050         * doc/sourcebuild.texi (arm_thumb1_cbz_ok): Document new effective
8051         target.
8053 2016-07-13  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8055         * config/arm/arm.h (TARGET_HAVE_MOVT): Include ARMv8-M as having MOVT.
8056         * config/arm/arm.c (arm_arch_name): (const_ok_for_op): Check MOVT/MOVW
8057         availability with TARGET_HAVE_MOVT.
8058         (thumb_legitimate_constant_p): Strip the high part of a label_ref.
8059         (thumb1_rtx_costs): Also return 0 if setting a half word constant and
8060         MOVW is available and replace (unsigned HOST_WIDE_INT) INTVAL by
8061         UINTVAL.
8062         (thumb1_size_rtx_costs): Make set of half word constant also cost 1
8063         extra instruction if MOVW is available.  Use a cost variable
8064         incremented by COSTS_N_INSNS (1) when the condition match rather than
8065         returning an arithmetic expression based on COSTS_N_INSNS.  Make
8066         constant with bottom half word zero cost 2 instruction if MOVW is
8067         available.
8068         * config/arm/arm.md (define_attr "arch"): Add v8mb.
8069         (define_attr "arch_enabled"): Set to yes if arch value is v8mb and
8070         target is ARMv8-M Baseline.
8071         (arm_movt): New unpredicable alternative for ARMv8-M Baseline.
8072         (arm_movtas_ze): Likewise.
8073         * config/arm/thumb1.md (thumb1_movdi_insn): Add ARMv8-M Baseline only
8074         alternative for constants satisfying j constraint.
8075         (thumb1_movsi_insn): Likewise.
8076         (movsi splitter for K alternative): Tighten condition to not trigger
8077         if movt is available and j constraint is satisfied.
8078         (Pe immediate splitter): Likewise.
8079         (thumb1_movhi_insn): Add ARMv8-M Baseline only alternative for
8080         constant fitting in an halfword to use MOVW.
8081         * doc/sourcebuild.texi (arm_thumb1_movt_ok): Document new ARM
8082         effective target.
8084 2016-07-13  Richard Biener  <rguenther@suse.de>
8086         PR middle-end/71104
8087         * gimplify.c (gimplify_modify_expr): Gimplify the RHS before
8088         gimplifying the LHS.  Make sure to gimplify a returning twice
8089         call LHS without using SSA names.
8091 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8093         * tree-data-ref.c (find_data_references_in_stmt): Remove
8094         unnecessary call to vec::release.
8095         (graphite_find_data_references_in_stmt): Likewise.
8096         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p): Likewise.
8097         * tree-vect-stmts.c (vectorizable_condition): Likewise.
8099 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8101         * cfgexpand.c (expand_used_vars): Make the type of a local
8102         variable auto_vec.
8103         * genmatch.c (lower_for): Likewise.
8104         * haifa-sched.c (haifa_sched_init): Likewise.
8105         (add_to_speculative_block): Likewise.
8106         (create_check_block_twin): Likewise.
8107         * predict.c (handle_missing_profiles): Likewise.
8108         * tree-data-ref.c (loop_nest_has_data_refs): Likewise.
8109         * tree-diagnostic.c (maybe_unwind_expanded_macro_loc): Likewise.
8110         * tree-ssa-loop-niter.c (discover_iteration_bound_by_body_walk):
8111         Likewise.
8112         (maybe_lower_iteration_bound): Likewise.
8113         * tree-ssa-sccvn.c (DFS): Likewise.
8114         * tree-stdarg.c (reachable_at_most_once): Likewise.
8115         * tree-vect-stmts.c (vectorizable_conversion): Likewise.
8116         (vectorizable_store): Likewise.
8118 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8120         * tree-ssa-sccvn.c (sccvn_dom_walker::~sccvn_dom_walker): remove.
8121         (sccvn_dom_walker): make cond_stack an auto_vec.
8123 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8125         * ree.c (struct ext_state): Make type of members auto_vec.
8126         (find_and_remove_re): Adjust.
8128 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8130         * cfgexpand.c (struct stack_vars_data): Make type of fields
8131         auto_vec.
8132         (expand_used_vars): Adjust.
8134 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8136         * ipa.c (record_cdtor_fn): Adjust.
8137         (build_cdtor_fns): Likewise.
8138         (ipa_cdtor_merge): Make static_ctors and static_dtors local
8139         variables.
8141 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8143         * genextract.c (struct accum_extract): Add constructor and make
8144         members auto_vec.
8145         (gen_insn): Adjust.
8147 2016-07-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8149         * tree.c (struct free_lang_data_d): Add constructor and change
8150         types of members to ones that automatically manage resources.
8151         (fld_worklist_push): Adjust.
8152         (find_decls_types): Likewise.
8153         (find_decls_types_in_eh_region): Likewise.
8154         (free_lang_data_in_cgraph): Stop manually creating and
8155         destroying members of free_lang_data_d.
8157 2016-07-13  Uros Bizjak  <ubizjak@gmail.com>
8159         PR rtl-optimization/68961
8160         * config/i386/sse.md (movsd/movhpd to movupd peephole2s): Add new
8161         peephole variant.  Use sse_reg_operand predicates.
8163 2016-07-12  Uros Bizjak  <ubizjak@gmail.com>
8165         * config/i386/predicates.md (x86_64_immediate_operand)
8166         <case CONST_INT>: Remove unneeded truncation to DImode.
8167         <case CONST>: Ditto.
8168         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8170 2016-07-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
8172         PR target/71805
8173         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal):
8174         The xxperm and xxpermr instructions require that the 2nd input
8175         operand overlap with the output operand, and not the 1st.
8176         (altivec_vperm_v8hiv16qi): Likewise.
8177         (altivec_vperm_<mode>_uns_internal): Likewise.
8178         (altivec_vpermr_<mode>_internal): Likewise.
8179         (vperm_v8hiv4si): Likewise.
8180         (vperm_v16qiv8hi): Likewise.
8182 2016-07-12  Nathan Sidwell  <nathan@acm.org>
8184         * config/arm/arm.c (arm_option_override): Set MASK_SINGLE_PIC_BASE
8185         when -mno-pic-data-is-text-relative is in effect, by default.
8186         * doc/invoke.texi (mpic-data-is-text-relative): Document new
8187         behavior and clarify.
8189 2016-07-12  Martin Liska  <mliska@suse.cz>
8191         * params.def: Add avg-loop niter.
8192         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use the param.
8193         * cfgloopanal.c (expected_loop_iterations_unbounded): Likewise.
8194         * doc/invoke.texi: Document the new parameter.
8196 2016-07-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8198         PR middle-end/71700
8199         * expr.c (store_constructor): Mask sign-extended bits when widening
8200         sub-word constructor element at the start of a word.
8202 2016-07-12  Martin Liska  <mliska@suse.cz>
8204         * Makefile.in: Append rule for params-options.h.
8205         * params-options.h: New file.
8207 2016-07-12  Martin Liska  <mliska@suse.cz>
8209         * ira-build.c (mark_loops_for_removal): Properly iterate
8210         loops.
8212 2016-07-12  Steven Bosscher  <steven@gcc.gnu.org>
8213             Richard Biener  <rguenther@suse.de>
8215         PR tree-optimization/23286
8216         PR tree-optimization/70159
8217         * doc/invoke.texi: Document -fcode-hoisting.
8218         * common.opt (fcode-hoisting): New flag.
8219         * opts.c (default_options_table): Enable -fcode-hoisting at -O2+.
8220         * tree-ssa-pre.c (pre_stats): Add hoist_insert.
8221         (do_regular_insertion): Rename to ...
8222         (do_pre_regular_insertion): ... this and amend general comments
8223         on insertion strathegy.
8224         (do_partial_partial_insertion): Rename to ...
8225         (do_pre_partial_partial_insertion): ... this.
8226         (do_hoist_insertion): New function.
8227         (insert_aux): Take flags on whether to do PRE and/or hoist insertion
8228         and call do_hoist_insertion properly.
8229         (insert): Adjust.
8230         (pass_pre::gate): Enable also if -fcode-hoisting is enabled.
8231         (pass_pre::execute): Register hoist_insert stats.
8233 2016-07-12  Jakub Jelinek  <jakub@redhat.com>
8235         PR middle-end/71716
8236         * gimple-fold.c (optimize_atomic_compare_exchange_p): Return false
8237         for SCALAR_FLOAT_TYPE_P type of expected var, or if TYPE_PRECISION
8238         is different from mode's bitsize.  Small cleanup.
8240 2016-07-12  Richard Biener  <rguenther@suse.de>
8242         PR rtl-optimization/68961
8243         * fwprop.c (propagate_rtx): Allow SUBREGs of VEC_CONCAT and CONCAT
8244         to simplify to a non-constant.
8246 2016-07-11  Jakub Jelinek  <jakub@redhat.com>
8248         PR middle-end/71758
8249         * omp-low.c (expand_omp_target): Gimplify device.
8251         PR tree-optimization/71823
8252         * tree-vect-stmts.c (vectorizable_operation): Use vect_get_vec_defs
8253         to get vec_oprnds2 from op2.
8255 2016-07-11  Uros Bizjak  <ubizjak@gmail.com>
8257         * config/i386/predicates.md (x86_64_immediate_operand) <case CONST>:
8258         Hoist common subexpressions.
8259         (x86_64_zext_immediate_operand) <case CONST>: Ditto.
8261 2016-07-11  Pat Haugen  <pthaugen@us.ibm.com>
8263         PR target/71800
8264         * config/rs6000/rs6000.md (stfiwx): Change constraint to 'wu' to
8265         prevent generation of 'stxsiwx' on pre Power8 hardware.
8267 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
8269         * input.c: Include cpplib.h.
8270         (selftest::temp_source_file): New class.
8271         (selftest::temp_source_file::temp_source_file): New ctor.
8272         (selftest::temp_source_file::~temp_source_file): New dtor.
8273         (selftest::should_have_column_data_p): New function.
8274         (selftest::test_should_have_column_data_p): New function.
8275         (selftest::temp_line_table): New class.
8276         (selftest::temp_line_table::temp_line_table): New ctor.
8277         (selftest::temp_line_table::~temp_line_table): New dtor.
8278         (selftest::test_accessing_ordinary_linemaps): Add case_ param; use
8279         it to create a temp_line_table.
8280         (selftest::assert_loceq): Only verify LOCATION_COLUMN for
8281         locations that are known to have column data.
8282         (selftest::line_table_case): New struct.
8283         (selftest::test_reading_source_line): Move tempfile handling
8284         to class temp_source_file.
8285         (ASSERT_TOKEN_AS_TEXT_EQ): New macro.
8286         (selftest::assert_token_loc_eq): New function.
8287         (ASSERT_TOKEN_LOC_EQ): New macro.
8288         (selftest::test_lexer): New function.
8289         (selftest::boundary_locations): New array.
8290         (selftest::input_c_tests): Call test_should_have_column_data_p.
8291         Loop over a test matrix of interesting values of location and
8292         default_range_bits, calling test_lexer on each case in the matrix.
8293         Move call to test_accessing_ordinary_linemaps into the matrix.
8294         * selftest.h (ASSERT_EQ): Reimplement in terms of...
8295         (ASSERT_EQ_AT): New macro.
8297 2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
8299         PR target/71801
8300         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
8301         Don't convert TImode in debug insn.
8303 2016-07-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8305         Convert TYPE_ALIGN_OK to a TYPE_LANG_FLAG.
8306         * tree-core.h (tree_base::nothrow_flag): Adjust comment.
8307         (tree_type_common::lang_flag_7): New.
8308         (tree_type_common::spare): Reduce size.
8309         * tree.h (TYPE_ALIGN_OK): Remove.
8310         (TYPE_LANG_FLAG_7): New.
8311         (get_inner_reference): Adjust header.
8312         * print-tree.c (print_node): Adjust.
8313         * expr.c (get_inner_reference): Remove parameter keep_aligning.
8314         (get_bit_range, expand_assignment, expand_expr_addr_expr_1): Adjust
8315         calls to get_inner_reference.
8316         (expand_expr_real_1): Adjust call to get_inner_reference.  Remove
8317         handling of TYPE_ALIGN_OK.
8318         * builtins.c (get_object_alignment_2): Adjust call to
8319         get_inner_reference.  Remove handling of VIEW_CONVERT_EXPR.
8320         * emit-rtl.c (set_mem_attributes_minus_bitpos): Remove handling of
8321         TYPE_ALIGN_OK.
8322         * asan.c (instrument_derefs): Adjust calls to get_inner_reference.
8323         * cfgexpand.c (expand_debug_expr): Likewise.
8324         * dbxout.c (dbxout_expand_expr): Likewise.
8325         * dwarf2out.c (loc_list_for_address_of_addr_expr_of_indirect_ref,
8326         loc_list_from_tree, fortran_common): Likewise.
8327         * fold-const.c (optimize_bit_field_compare,
8328         decode_field_reference, fold_unary_loc, fold_comparison,
8329         split_address_to_core_and_offset): Likewise.
8330         * gimple-laddress.c (execute): Likewise.
8331         * gimple-ssa-strength-reduction.c (slsr_process_ref): Likewise.
8332         * gimplify.c (gimplify_scan_omp_clauses): Likewise.
8333         * hsa-gen.c (gen_hsa_addr): Likewise.
8334         * simplifx-rtx.c (delegitimize_mem_from_attrs): Likewise.
8335         * tsan.c (instrument_expr): Likewise.
8336         * ubsan.c (instrument_bool_enum_load, instrument_object_size): Likewise.
8337         * tree.c (verify_type_variant): Remove handling of TYPE_ALIGN_OK.
8338         * tree-affine.c (tree_to_aff_combination,
8339         get_inner_reference_aff): Adjust calls to get_inner_reference.
8340         * tree-data-ref.c (split_constant_offset_1,
8341         dr_analyze_innermost): Likewise.
8342         * tree-scalar-evolution.c (interpret_rhs_expr): Likewise.
8343         * tree-sra.c (ipa_sra_check_caller): Likewise.
8344         * tree-ssa-loop-ivopts.c (split_address_cost): Likewise.
8345         * tree-ssa-math-opts.c (find_bswap_or_nop_load,
8346         bswap_replace): Likewise.
8347         * tree-vect-data-refs.c (vect_check_gather,
8348         vect_analyze_data_refs): Likewise.
8349         * config/mips/mips.c (r10k_safe_mem_expr_p): Likewise.
8350         * config/pa/pa.c (pa_emit_move_sequence): Remove handling of
8351         TYPE_ALIGN_OK.
8353 2016-07-11  David Malcolm  <dmalcolm@redhat.com>
8355         * Makefile.in (selftest-valgrind): New phony target.
8356         * function-tests.c (selftest::build_cfg): Delete pass instances
8357         created by the test.
8358         (selftest::convert_to_ssa): Likewise.
8359         (selftest::test_expansion_to_rtl): Likewise.
8360         * tree-cfg.c (selftest::test_linear_chain): Release dominator
8361         vectors.
8362         (selftest::test_diamond): Likewise.
8364 2016-07-11  Richard Biener  <rguenther@suse.de>
8366         PR tree-optimization/71816
8367         * tree-ssa-pre.c (compute_avail): Adjust alignment of ref rather
8368         than replacing all of its operands.
8370 2016-07-11  Alan Modra  <amodra@gmail.com>
8372         * config/rs6000/rs6000.md (UNSPEC_DOLOOP): New unspec.
8373         (ctr<mode>): Add unspec.
8374         (ctr<mode>_internal*): Likewise.
8376 2016-07-08  James Bowman  <james.bowman@ftdichip.com>
8378         * config/ft32/ft32.c (ft32_elf_encode_section_info): New function.
8379         * config/ft32/ft32.h (ASM_OUTPUT_SYMBOL_REF): New function.
8381 2016-07-08  Vladimir Makarov  <vmakarov@redhat.com>
8383         PR rtl-optimization/71621
8384         * lra-constraints.c (process_alt_operands): Check combination of
8385         reg class and mode.
8387 2016-07-08  Jason Merrill  <jason@redhat.com>
8388             Richard Biener  <rguenther@suse.de>
8390         P0145: Refining Expression Order for C++.
8391         * gimplify.c (initial_rhs_predicate_for): New.
8392         (gimplfy_modify_expr): Gimplify RHS before LHS.
8394 2016-07-08  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8396         PR target/71297
8397         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8398         Allow standard error handling to take over when a wrong number
8399         of arguments is presented to __builtin_vec_ld () or
8400         __builtin_vec_st ().
8402 2016-07-08  Jiong Wang  <jiong.wang@arm.com>
8404         * config/aarch64/aarch64-simd-builtins.def (smax): Remove float
8405         variants.
8406         (smin): Likewise.
8407         (fmax): New entry.
8408         (fmin): Likewise.
8409         * config/aarch64/arm_neon.h (vmaxnm_f32): Use
8410         __builtin_aarch64_fmaxv2sf.
8411         (vmaxnmq_f32): Likewise.
8412         (vmaxnmq_f64): Likewise.
8413         (vminnm_f32): Likewise.
8414         (vminnmq_f32): Likewise.
8415         (vminnmq_f64): Likewise.
8417 2016-07-08  Michael Meissner  <meissner@linux.vnet.ibm.com>
8419         PR target/71806
8420         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Do not
8421         enable -mfloat128-hardware by default.
8422         (ISA_3_0_MASKS_IEEE): New macro to give all of the VSX options
8423         that IEEE 128-bit hardware support needs.
8424         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
8425         -mcpu=power9 -mfloat128, enable -mfloat128-hardware by default.
8426         Use ISA_3_0_MASKS_IEEE as the set of options that IEEE 128-bit
8427         floating point requires.
8428         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
8429         -mfloat128 and -mfloat128-hardware changes.
8431 2016-07-08  Alan Hayward  <alan.hayward@arm.com>
8433         PR tree-optimization/71667
8434         * tree-vect-loop.c (vectorizable_live_operation): ignore DEBUG stmts
8436 2016-07-08  Martin Liska  <mliska@suse.cz>
8438         PR middle-end/71606
8439         * fold-const.c (fold_convertible_p): As COMPLEX_TYPE
8440         folding produces SAVE_EXPRs, thus return false for the type.
8442 2016-07-07  Martin Liska  <mliska@suse.cz>
8444         * file-find.c (remove_prefix): New function.
8445         * file-find.h (remove_prefix): Declare the function.
8446         * gcc-ar.c (main): Skip a folder of the wrapper if
8447         a wrapped binary would point to the same file.
8449 2016-07-07  Jan Hubicka  <jh@suse.cz>
8451         * tree-scalar-evolution.c (iv_can_overflow_p): export.
8452         * tree-scalar-evolution.h (iv_can_overflow_p): Declare.
8453         * tree-ssa-loop-ivopts.c (alloc_iv): Use it.
8455 2016-07-07  Ilya Enkovich  <ilya.enkovich@intel.com>
8457         PR ipa/71624
8458         * ipa-inline-analysis.c (compute_inline_parameters): Set
8459         local.can_change_signature to false for intrumentation
8460         thunk callees.
8462 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8464         * config/arm/arm.h (TARGET_USE_MOVT): Check MOVT/MOVW availability
8465         with TARGET_HAVE_MOVT.
8466         (TARGET_HAVE_MOVT): Define.
8467         * config/arm/arm.c (const_ok_for_op): Check MOVT/MOVW
8468         availability with TARGET_HAVE_MOVT.
8469         * config/arm/arm.md (arm_movt): Use TARGET_HAVE_MOVT to check MOVT
8470         availability.
8471         (addsi splitter): Use TARGET_THUMB && TARGET_HAVE_MOVT rather than
8472         TARGET_THUMB2.
8473         (symbol_refs movsi splitter): Remove TARGET_32BIT check.
8474         (arm_movtas_ze): Use TARGET_HAVE_MOVT to check MOVT availability.
8475         * config/arm/constraints.md (define_constraint "j"): Use
8476         TARGET_HAVE_MOVT to check MOVT availability.
8478 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8480         * config/arm/arm-protos.h: Reindent FL_FOR_* macro definitions.
8482 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8484         * config/arm/arm-arches.def (armv8-m.base): Define new architecture.
8485         (armv8-m.main): Likewise.
8486         (armv8-m.main+dsp): Likewise.
8487         * config/arm/arm-protos.h (FL_FOR_ARCH8M_BASE): Define.
8488         (FL_FOR_ARCH8M_MAIN): Likewise.
8489         * config/arm/arm-tables.opt: Regenerate.
8490         * config/arm/bpabi.h: Add armv8-m.base, armv8-m.main and
8491         armv8-m.main+dsp to BE8_LINK_SPEC.
8492         * config/arm/arm.h (TARGET_HAVE_LDACQ): Exclude ARMv8-M.
8493         (enum base_architecture): Add BASE_ARCH_8M_BASE and BASE_ARCH_8M_MAIN.
8494         * config/arm/arm.c (arm_arch_name): Increase size to work with ARMv8-M
8495         Baseline and Mainline.
8496         (arm_option_override_internal): Also disable arm_restrict_it when
8497         !arm_arch_notm.  Update comment for -munaligned-access to also cover
8498         ARMv8-M Baseline.
8499         (arm_file_start): Increase buffer size for printing architecture name.
8500         * doc/invoke.texi: Document architectures armv8-m.base, armv8-m.main
8501         and armv8-m.main+dsp.
8502         (mno-unaligned-access): Clarify that this is disabled by default for
8503         ARMv8-M Baseline architectures as well.
8505 2016-07-07  Thomas Preud'homme  <thomas.preudhomme@arm.com>
8507         * config/arm/elf.h: Use __ARM_ARCH_ISA_THUMB and __ARM_ARCH_ISA_ARM to
8508         decide whether to prevent some libgcc routines being included for some
8509         multilibs rather than __ARM_ARCH_6M__ and add comment to indicate the
8510         link between this condition and the one in
8511         libgcc/config/arm/lib1func.S.
8513 2016-07-07  Richard Biener  <rguenther@suse.de>
8515         * tree-ssa-pre.c: Include alias.h.
8516         (compute_avail): If we have multiple VN_REFERENCEs with the
8517         same hashtable entry adjust that to make it a valid replacement
8518         for all of them with respect to alignment and aliasing
8519         when doing insertion.
8520         * tree-ssa-sccvn.h (vn_reference_operands_for_lookup): Declare.
8521         * tree-ssa-sccvn.c (vn_reference_operands_for_lookup): New function.
8523 2016-07-06  Segher Boessenkool  <segher@kernel.crashing.org>
8525         PR target/70098
8526         PR target/71763
8527         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
8528         *ctr<mode>_internal5, *ctr<mode>_internal6): Add *wi to the output
8529         constraint.
8531 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8533         * var-tracking.c (struct adjust_mem_data): Make side_effects a vector.
8534         (adjust_mems): Adjust.
8535         (adjust_insn): Likewise.
8536         (prepare_call_arguments): Likewise.
8538 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8540         * gcse.c (struct ls_expr): Make stores field a vector.
8541         (ldst_entry): Adjust.
8542         (free_ldst_entry): Likewise.
8543         (print_ldst_list): Likewise.
8544         (compute_ld_motion_mems): Likewise.
8545         (update_ld_motion_stores): Likewise.
8547 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8549         * gcse.c (struct ls_expr): Remove loads field.
8550         (ldst_entry): Adjust.
8551         (free_ldst_entry): Likewise.
8552         (print_ldst_list): Likewise.
8553         (compute_ld_motion_mems): Likewise.
8555 2016-07-06  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
8557         * store-motion.c (struct st_expr): Make antic_stores a vector.
8558         (st_expr_entry): Adjust.
8559         (free_st_expr_entry): Likewise.
8560         (print_store_motion_mems): Likewise.
8561         (find_moveable_store): Likewise.
8562         (compute_store_table): Likewise.
8563         (remove_reachable_equiv_notes): Likewise.
8564         (replace_store_insn): Likewise.
8565         (build_store_vectors): Likewise.
8567 2016-07-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8569         * config/arm/driver-arm.c (arm_cpu_table): Add entries for cortex-a32,
8570         cortex-a35, cortex-a53, cortex-a57, cortex-a72, cortex-a73.
8572 2016-07-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
8574         PR tree-optimization/71518
8575         * tree-vect-data-refs.c (vect_compute_data_ref_alignment): Adjust
8576         misalign also for outer loops with negative step.
8578 2016-07-06  Wilco Dijkstra  <wdijkstr@arm.com>
8580         * config/arm/cortex-a53.md: Use final_presence_set for in-order.
8581         (cortex_a53_shift): Add mov_shift.
8582         (cortex_a53_shift_reg): Add new reservation for register shifts.
8583         (cortex_a53_alu): Remove bfm.
8584         (cortex_a53_alu_shift): Add bfm, remove mov_shift.
8585         (cortex_a53_alu_extr): Add new reservation for EXTR.
8586         (bypasses): Improve bypass modelling.
8588 2016-07-06  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
8590         PR target/50739
8591         * config/avr/avr.c (avr_asm_select_section): Strip off
8592         SECTION_DECLARED from flags when calling get_section.
8594 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8596         * tree-vectorizer.h (vect_memory_access_type): Add
8597         VMAT_INVARIANT, VMAT_CONTIGUOUS_DOWN and VMAT_CONTIGUOUS_REVERSED.
8598         * tree-vect-stmts.c (compare_step_with_zero): New function.
8599         (perm_mask_for_reverse): Move further up file.
8600         (get_group_load_store_type): Stick to VMAT_ELEMENTWISE if the
8601         step is negative.
8602         (get_negative_load_store_type): New function.
8603         (get_load_store_type): Call it.  Add an ncopies argument.
8604         (vectorizable_mask_load_store): Update call accordingly and
8605         remove tests for negative steps.
8606         (vectorizable_store, vectorizable_load): Likewise.  Handle new
8607         memory_access_types.
8609 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8611         * tree-vectorizer.h (vect_memory_access_type): New enum.
8612         (_stmt_vec_info): Add a memory_access_type field.
8613         (STMT_VINFO_MEMORY_ACCESS_TYPE): New macro.
8614         (vect_model_store_cost): Take an access type instead of a boolean.
8615         (vect_model_load_cost): Likewise.
8616         * tree-vect-slp.c (vect_analyze_slp_cost_1): Update calls to
8617         vect_model_store_cost and vect_model_load_cost.
8618         * tree-vect-stmts.c (vec_load_store_type): New enum.
8619         (vect_model_store_cost): Take an access type instead of a
8620         store_lanes_p boolean.  Simplify tests.
8621         (vect_model_load_cost): Likewise, but for load_lanes_p.
8622         (get_group_load_store_type, get_load_store_type): New functions.
8623         (vectorizable_store): Use get_load_store_type.  Record the access
8624         type in STMT_VINFO_MEMORY_ACCESS_TYPE.
8625         (vectorizable_load): Likewise.
8626         (vectorizable_mask_load_store): Likewise.  Replace is_store
8627         variable with vls_type.
8629 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8631         * tree-vectorizer.h (vect_grouped_load_supported): Add a
8632         single_element_p parameter.
8633         * tree-vect-data-refs.c (vect_grouped_load_supported): Likewise.
8634         Check the PR65518 case here rather than in vectorizable_load.
8635         * tree-vect-loop.c (vect_analyze_loop_2): Update call accordignly.
8636         * tree-vect-stmts.c (vectorizable_load): Likewise.
8638 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8640         * tree-vectorizer.h (gather_scatter_info): New structure.
8641         (vect_check_gather_scatter): Return a bool rather than a decl.
8642         Replace return-by-pointer arguments with a single
8643         gather_scatter_info *.
8644         * tree-vect-data-refs.c (vect_check_gather_scatter): Likewise.
8645         (vect_analyze_data_refs): Update call accordingly.
8646         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
8647         (vectorizable_mask_load_store): Likewise.  Also record the
8648         offset dt and vectype in the gather_scatter_info.
8649         (vectorizable_store): Likewise.
8650         (vectorizable_load): Likewise.
8652 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8654         * tree-vect-stmts.c (vect_model_store_cost): For non-SLP
8655         strided groups, use the cost of N scalar accesses instead
8656         of ncopies vector accesses.
8657         (vect_model_load_cost): Likewise.
8659 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8661         * tree-vect-stmts.c (vect_cost_group_size): Delete.
8662         (vect_model_store_cost): Avoid calling it.  Use first_stmt_p
8663         variable to indicate when once-per-group costs are being used.
8664         (vect_model_load_cost): Likewise.  Fix comment and misindented code.
8666 2016-07-06  Richard Sandiford  <richard.sandiford@arm.com>
8668         * tree-vect-stmts.c (vectorizable_load): Remove unnecessary
8669         peeling-for-gaps condition.
8671 2016-07-06  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
8673         * config/s390/s390.c (s390_expand_vec_init): Force initializer
8674         element to register if it doesn't match general_operand.
8676 2016-07-05  Michael Meissner  <meissner@linux.vnet.ibm.com>
8677             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
8679         * config/rs6000/rs6000-protos.h (rs6000_split_signbit): New
8680         prototype.
8681         * config/rs6000/rs6000.c (rs6000_split_signbit): New function.
8682         * config/rs6000/rs6000.md (UNSPEC_SIGNBIT): New constant.
8683         (SIGNBIT): New mode iterator.
8684         (Fsignbit): New mode attribute.
8685         (signbit<mode>2): Change operand1 to match FLOAT128 instead of
8686         IBM128; dispatch to gen_signbit{kf,tf}2_dm for __float128
8687         when direct moves are available.
8688         (signbit<mode>2_dm): New define_insn_and_split).
8689         (signbit<mode>2_dm2): New define_insn.
8691 2016-07-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8693         PR rtl-optimization/71594
8694         * ifcvt.c (noce_convert_multiple_sets): Wrap new_val or old_val
8695         into subregs of appropriate mode before trying to emit a conditional
8696         move.
8698 2016-07-05  Jan Hubicka  <jh@suse.cz>
8700         * tree-scalar-evolution.c (iv_can_overflow_p): New function.
8701         (simple_iv): Use it.
8703 2016-07-05  Jan Hubicka  <jh@suse.cz>
8705         * tree-ssa-loop-niter.c (nowrap_type_p): Use ANY_INTEGRAL_TYPE_P.
8707 2016-07-05  Jiong Wang  <jiong.wang@arm.com>
8709         * lra-constraints.c (process_alt_operands): Don't add spilling cost for
8710         "offmemok".
8712 2016-07-05  Jan Hubicka  <jh@suse.cz>
8714         * tree-scalar-evoluiton.c (simple_iv): Use nowrap_type to check if
8715         IV can overflow.
8717 2016-07-05  Richard Biener  <rguenther@suse.de>
8719         * gimple-ssa-split-paths.c (find_block_to_duplicate_for_splitting_pa):
8720         Handle empty else block.
8721         (is_feasible_trace): Likewise.
8722         (split_paths): Likewise.
8724 2016-07-05  Richard Biener  <rguenther@suse.de>
8726         * tree-loop-distribution.c (distribute_loop): Fix issue with
8727         the cost model loop.
8729 2016-07-05  Christophe Lyon  <christophe.lyon@linaro.org>
8731         * config/arm/neon-testgen.ml: Delete.
8732         * config/arm/neon.ml: Delete.
8734 2016-07-04  Jakub Jelinek  <jakub@redhat.com>
8736         PR c++/71739
8737         * tree.c (attribute_value_equal): Use get_attribute_name instead of
8738         directly using TREE_PURPOSE.
8740 2016-07-04  Jiong Wang  <jiong.wang@arm.com>
8742         * config/aarch64/aarch64.h: Rename "ARMv8.1" to "ARMv8.1-A".
8743         * config/aarch64/aarch64_neon.h: Likewise.
8744         * config/aarch64/arm_neon.h: Likewise.
8745         * config/aarch64/atomics.md: Likewise.
8746         * config/aarch64/aarch64-simd-builtins.def: Likewise.
8747         * doc/invoke.texi: Likewise.
8749 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8751         * config/s390/s390.md: Add "z13" cpu_facility.
8752         ("*mov<mode>cc"): Add support for z13 instructions lochi and locghi.
8753         * config/s390/predicates.md ("loc_operand"): New predicate for "load on
8754         condition" type instructions.
8756 2016-07-04  Dominik Vogt  <vogt@linux.vnet.ibm.com>
8757             Jeff Law  <law@redhat.com>
8759         * explow.c (allocate_dynamic_stack_space): Simplify knowing that
8760         MUST_ALIGN was always true and extra_align ist always BITS_PER_UNIT.
8762 2016-07-04  Yuri Rumyantsev  <ysrumyan@gmail.com>
8764         * config/i386/i386.c (ix86_expand_vec_perm): Add handle one-operand
8765         permutation for TARGET_AVX512F.
8766         (ix86_expand_vec_one_operand_perm_avx512): New function.
8767         (expand_vec_perm_1): Invoke introduced function.
8768         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
8769         it may be not valid after vectorization.
8771 2016-07-04  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
8773         PR target/63874
8774         * config/aarch64/aarch64.c (aarch64_classify_symbol): Fix
8775         typo in comment.  Only force to memory if it is a weak
8776         external reference.
8778 2016-07-04  Matthew Wahab  <matthew.wahab@arm.com>
8779             Jiong Wang  <jiong.wang@arm.com>
8781         * config/aarch64/aarch64-arches.def: Add "armv8.2-a".
8782         * config/aarch64/aarch64.h (AARCH64_FL_V8_2): New.
8783         (AARCH64_FL_F16): New.
8784         (AARCH64_FL_FOR_ARCH8_2): New.
8785         (AARCH64_ISA_8_2): New.
8786         (AARCH64_ISA_F16): New.
8787         (TARGET_FP_F16INST): New.
8788         (TARGET_SIMD_F16INST): New.
8789         * config/aarch64/aarch64-option-extensions.def ("fp16"): New entry.
8790         ("fp"): Disabling "fp" also disables "fp16".
8791         * config/aarch64/aarch64-c.c (arch64_update_cpp_builtins):
8792         Conditionally define __ARM_FEATURE_FP16_SCALAR_ARITHMETIC
8793         and __ARM_FEATURE_FP16_VECTOR_ARITHMETIC.
8794         * doc/invoke.texi (AArch64 Options): Document "armv8.2-a" and "fp16".
8796 2016-07-04  Jan Beulich  <jbeulich@suse.com>
8798         * gcc.c (default_compilers["@c-header"]): Conditionalize "-o".
8800 2016-07-01  Michael Meissner  <meissner@linux.vnet.ibm.com>
8802         PR target/71720
8803         * config/rs6000/vsx.md (vsx_splat_v4sf_internal): When splitting
8804         the insns, use an insn form that does not adjust the offset on
8805         little endian systems.
8807 2016-07-01  Jan Beulich  <jbeulich@suse.com>
8809         * varasm.c (get_variable_section): Validate initializer in
8810         named .bss-like sections.
8812 2016-07-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8814         * config/rs6000/altivec.md (*altivec_vpermr_<mode>_internal):
8815         Exchange the order of the second and third operands in the vpermr
8816         instruction tmeplate.
8818 2016-07-01  Peter Bergner  <bergner@vnet.ibm.com>
8820         PR target/71698
8821         * config/rs6000/rs6000.c (rs6000_secondary_reload_simple_move):
8822         Disallow TDmode values.
8824 2016-07-01  Alan Modra  <amodra@gmail.com>
8826         PR rtl-optimization/71709
8827         * ira-lives.c (find_call_crossed_cheap_reg): Exit loop on arg reg
8828         being set, not referenced.
8830 2016-07-01  Yuri Rumyantsev  <ysrumyan@gmail.com>
8832         PR tree-optimization/70729
8833         * tree-vectorizer.c (adjust_simduid_builtins): Nullify safelen field
8834         of loop since it can be not valid after transformation.
8836 2016-07-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8838         * config/arm/arm.c (thumb_reload_in_hi): Delete.
8839         * config/arm/arm-protos.h (thumb_reload_in_hi): Delete prototype.
8841 2016-07-01  Eric Botcazou  <ebotcazou@adacore.com>
8843         * config/arm/arm.c (arm_function_ok_for_sibcall): Add another check
8844         for NULL decl.
8846 2016-06-30  Michael Meissner  <meissner@linux.vnet.ibm.com>
8848         PR target/71677
8849         * config/rs6000/constraints.md (wY constraint): New constraint to
8850         match the requirements for the LXSD and STXSD instructions.
8851         * config/rs6000/predicates.md (offsettable_mem_14bit_operand): New
8852         predicate to match the requirements for the LXSD and STXSD
8853         instructions.
8854         * config/rs6000/rs6000.md (mov<mode>_hardfloat32, FMOVE64 case):
8855         Use constaint wY for LXSD/STXSD instructions instead of 'o' or 'Y'
8856         to make sure that the bottom 2 bits of offset are 0, the address
8857         form is offsettable, and no updating is done in the address mode.
8858         (mov<mode>_hardfloat64, FMOVE64 case): Likewise.
8859         (movdi_internal32): Likewise
8860         (movdi_internal64): Likewise.
8862 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8864         PR tree-optimization/71707
8865         * tree-ssa-strlen.c (get_stridx_plus_constant): Handle already present
8866         strinfo even for ADDR_EXPR ptr.
8868 2016-06-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
8870         * config/rs6000/altivec.md (darn_32): Change the condition to
8871         TARGET_P9_MISC instead of TARGET_MODULO.
8872         (darn_raw): Replace TARGET_MODULO with TARGET_P9_MISC in the
8873         condition expression.
8874         (darn): Replace TARGET_MODULO with TARGET_P9_MISC in the
8875         condition expression.
8876         * config/rs6000/dfp.md (UNSPEC_DTSTSFI): New unspec constant.
8877         (DFP_TEST): New code iterator.
8878         (dfptstsfi_<code>_mode>): New define_expand.
8879         (*dfp_sgnfcnc_<mode>): New define_insn.
8880         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_0): Move this macro
8881         definition next to BU_P9_MISC_1 definition and change the MASK
8882         value to RS6000_BTM_P9_MISC.
8883         (BU_P9_MISC_1): Change the MASK value to RS6000_BTM_P9_MISC.
8884         (BU_P9_64BIT_MISC_0): Likewise.
8885         (BU_P9_DFP_MISC_0): New macro definition.
8886         (BU_P9_DFP_MISC_1): New macro definition.
8887         (BU_P9_DFP_MISC_2): New macro definition.
8888         (BU_P9_DFP_OVERLOAD_1): New macro definition.
8889         (BU_P9_DFP_OVERLOAD_2): New macro definition.
8890         (BU_P9_DFP_OVERLOAD_3): New macro definition.
8891         (TSTSFI_LT_DD): New BU_P9_DFP_MISC_2.
8892         (TSTSFI_LT_TD): Likewise.
8893         (TSTSFI_EQ_DD): Likewise.
8894         (TSTSFI_EQ_TD): Likewise.
8895         (TSTSFI_GT_DD): Likewise.
8896         (TSTSFI_GT_TD): Likewise.
8897         (TSTSFI_OV_DD): Likewise.
8898         (TSTSFI_OV_TD): Likewise.
8899         (TSTSFI_LT): New BU_P9_DFP_OVERLOAD_2.
8900         (TSTSFI_LT_DD): Likewise.
8901         (TSTSFI_LT_TD): Likewise.
8902         (TSTSFI_EQ): Likewise.
8903         (TSTSFI_EQ_DD): Likewise.
8904         (TSTSFI_EQ_TD): Likewise.
8905         (TSTSFI_GT): Likewise.
8906         (TSTSFI_GT_DD): Likewise.
8907         (TSTSFI_GT_TD): Likewise.
8908         (TSTSFI_OV): Likewise.
8909         (TSTSFI_OV_DD): Likewise.
8910         (TSTSFI_OV_TD): Likewise.
8911         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
8912         overloaded test significance functions.
8913         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
8914         OPTION_MASK_P9_MISC into the representation of this mask.
8915         (POWERPC_MASKS): Add OPTION_MASK_P9_MISC into the representation
8916         of this mask.
8917         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Set the
8918         RS6000_BTM_P9_MISC flag in the return value if TARGET_P9_MISC is
8919         non-zero.
8920         (rs6000_expand_binop_builtin): Enforce that argument 0 of the exp
8921         argument is a 6-bit unsigned literal value if the icode argument
8922         represents a DFP test significance built-in call.
8923         (rs6000_invalid_builtin): Add support for the RS6000_BTM_P9_MISC
8924         flag used independently and in combination with the
8925         RS6000_BTM_64BIT flag.
8926         (rs6000_opt_masks): Add entry for power9-misc command-line option.
8927         (rs6000_builtin_mask_names): Add entry for power9-misc
8928         command-line option.
8929         * config/rs6000/rs6000.h: Redefine TARGET_P9_MISC as 0 if
8930         HAVE_AS_POWER9 is not a defined macro.  Define MASK_P9_MISC and
8931         RS6000_BTM_P9_MISC macros.
8932         * config/rs6000/rs6000.opt: Add support for the -mpower9-misc
8933         option and change the description of the -mpower9-vector option to
8934         enable only vector instructions, removing its erroneously claimed
8935         support for scalar instructions.
8936         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
8937         the ISA 3.0 digital floating point test significance built-in
8938         functions.
8940 2016-06-30  Wilco Dijkstra  <wdijkstr@arm.com>
8942         * config/aarch64/aarch64.c (cortexa35_tunings):
8943         Enable AES fusion.  Use cortexa57_branch_cost.
8944         (cortexa53_tunings): Use cortexa57_branch_cost.
8945         (cortexa72_tunings): Use cortexa57_branch_cost.
8946         Use AUTOPREFETCHER_WEAK.
8947         (cortexa73_tunings): Use cortexa57_branch_cost.
8949 2016-06-30  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8950             James Greenhalgh  <james.greenhalgh@arm.com>
8952         * config/aarch64/arm_neon.h (vcopyq_lane_f32, vcopyq_lane_f64,
8953         vcopyq_lane_p8, vcopyq_lane_p16, vcopyq_lane_s8, vcopyq_lane_s16,
8954         vcopyq_lane_s32, vcopyq_lane_s64, vcopyq_lane_u8, vcopyq_lane_u16,
8955         vcopyq_lane_u32, vcopyq_lane_u64): Reimplement in C.
8956         (vcopy_lane_f32, vcopy_lane_f64, vcopy_lane_p8, vcopy_lane_p16,
8957         vcopy_lane_s8, vcopy_lane_s16, vcopy_lane_s32, vcopy_lane_s64,
8958         vcopy_lane_u8, vcopy_lane_u16, vcopy_lane_u32, vcopy_lane_u64,
8959         vcopy_laneq_f32, vcopy_laneq_f64, vcopy_laneq_p8, vcopy_laneq_p16,
8960         vcopy_laneq_s8, vcopy_laneq_s16, vcopy_laneq_s32, vcopy_laneq_s64,
8961         vcopy_laneq_u8, vcopy_laneq_u16, vcopy_laneq_u32, vcopy_laneq_u64,
8962         vcopyq_laneq_f32, vcopyq_laneq_f64, vcopyq_laneq_p8, vcopyq_laneq_p16,
8963         vcopyq_laneq_s8, vcopyq_laneq_s16, vcopyq_laneq_s32, vcopyq_laneq_s64,
8964         vcopyq_laneq_u8, vcopyq_laneq_u16, vcopyq_laneq_u32, vcopyq_laneq_u64):
8965         New intrinsics.
8967 2016-06-30  James Greenhalgh  <james.greenhalgh@arm.com>
8968             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8970         * config/aarch64/aarch64-simd.md (*aarch64_simd_vec_copy_lane<mode>):
8971         New define_insn.
8972         (*aarch64_simd_vec_copy_lane_<vswap_width_name><mode>): Likewise.
8974 2016-06-30  David Malcolm  <dmalcolm@redhat.com>
8976         PR driver/71651
8977         * gcc.c (driver::build_option_suggestions): Pass "option" to
8978         add_misspelling_candidates.
8979         * opts-common.c (add_misspelling_candidates): Add "option" param;
8980         use it to avoid adding negated forms for options marked with
8981         RejectNegative.
8982         * opts.h (add_misspelling_candidates): Add "option" param.
8984 2016-06-30  Jakub Jelinek  <jakub@redhat.com>
8986         PR middle-end/71693
8987         * fold-const.c (fold_binary_loc) <case RROTATE_EXPR>: Cast
8988         TREE_OPERAND (arg0, 0) and TREE_OPERAND (arg0, 1) to type
8989         first when permuting bitwise operation with rotate.  Cast
8990         TREE_OPERAND (arg0, 0) to type when cancelling two rotations.
8992 2016-06-29  David Malcolm  <dmalcolm@redhat.com>
8994         * opts.c (handle_param): Use find_param_fuzzy to offer suggestions
8995         for misspelled param names.
8996         * params.c: Include spellcheck.h.
8997         (find_param_fuzzy): New function.
8998         * params.h (find_param_fuzzy): New prototype.
8999         * spellcheck.c (struct edit_distance_traits<const char *>): Move to...
9000         * spellcheck.h (struct edit_distance_traits<const char *>):
9001         ...here.
9003 2016-06-29  Michael Meissner  <meissner@linux.vnet.ibm.com>
9005         * config/rs6000/predicates.md (const_0_to_7_operand): New
9006         predicate, recognize 0..7.
9007         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
9008         support for doing extracts from V16QImode, V8HImode, V4SImode
9009         under ISA 3.0.
9010         * config/rs6000/vsx.md (VSX_EXTRACT_I): Mode iterator for ISA 3.0
9011         vector extract support.
9012         (VSX_EXTRACT_PREDICATE): Mode attribute to validate element number
9013         for ISA 3.0 vector extract.
9014         (VSX_EX): Constraints to use for ISA 3.0 vector extract.
9015         (vsx_extract_<mode>, VSX_EXTRACT_I): Add support for doing
9016         extracts of a constant element number from small integer vectors
9017         on 64-bit ISA 3.0 systems.
9018         (vsx_extract_<mode>_di): Likewise.
9019         * config/rs6000/rs6000.h (TARGET_VEXTRACTUB): New target macro to
9020         say when we can do ISA 3.0 vector extracts.
9021         * config/rs6000/rs6000.md (stfiwx): Allow DImode in Altivec
9022         registers, using the stxsiwx instruction.
9024 2016-06-29  Jim Wilson  <jim.wilson@linaro.org>
9026         * config/aarch64/aarch64-cores.def (qdf24xx): Use qdf24xx tuning.
9027         * config/aarch64/aarch64.c (qdf24xx_addrcost_table,
9028         qdf24xx_regmove_cost, qdf24xx_tunings): New.
9029         * config/arm/aarch64-cost-tables.h (qdf24xx_extra_costs): New.
9030         * config/arm/arm-cores.def (qdf24xx): Use qdf24xx tuning.
9031         * config/arm/arm.c (arm_qdf24xx_tune): New.
9033 2016-06-29  Wilco Dijkstra  <wdijkstr@arm.com>
9035         * config/aarch64/aarch64.c (cortexa53_tunings):
9036         Increase loop alignment to 8.  Set function alignment to 16.
9037         (cortexa35_tunings): Likewise.
9038         (cortexa57_tunings): Increase loop alignment to 8.
9039         (cortexa72_tunings): Likewise.
9040         (cortexa73_tunings): Likewise.
9042 2016-06-29  Matthew Wahab  <matthew.wahab@arm.com>
9044         * doc/sourcebuild.texi (Effective-Target keywords): Add entries
9045         for arm_fp16_ok and arm_fp16_hw.
9046         (Add Options): Add entries for arm_fp16, arm_fp16_ieee and
9047         arm_fp16_alternative.
9049 2016-06-29  Ilya Enkovich  <ilya.enkovich@intel.com>
9051         PR tree-optimization/71655
9052         * tree-vect-stmts.c (vectorizable_comparison): Swap definition
9053         types when swapping operands.
9055 2016-06-29  Martin Liska  <mliska@suse.cz>
9057         PR middle-end/71585
9058         * common.opt (flag_stack_protect): Mark the flag as optimization flag.
9059         * ipa-inline-transform.c (inline_call): Remove unnecessary call
9060         of build_optimization_node.
9062 2016-06-29  Yuri Rumyantsev  <ysrumyan@gmail.com>
9064         PR tree-optimization/70729
9065         * tree-ssa-loop-im.c (ref_indep_loop_p_1): Consider memory reference as
9066         independent in loops having positive safelen value.
9067         * tree-vect-loop.c (vect_transform_loop): Clear-up safelen value since
9068         it may be not valid after vectorization.
9070 2016-06-29  Jakub Jelinek  <jakub@redhat.com>
9072         PR tree-optimization/71625
9073         * tree-ssa-strlen.c (get_addr_stridx): Add PTR argument.  Assume list
9074         is sorted by ascending list->offset.  If PTR is non-NULL and there is
9075         previous strinfo, call get_stridx_plus_constant.
9076         (get_stridx): Pass exp as second argument to get_addr_stridx.
9077         (addr_stridxptr): Add missing list = list->next, so that there can be
9078         more than one entries in the list.  Bump limit from 16 to 32.  Ensure
9079         the list is sorted by ascending list->offset.
9080         (get_stridx_plus_constant): Adjust so that it can be also called with
9081         ADDR_EXPR instead of SSA_NAME as PTR.
9082         (handle_char_store): Pass NULL_TREE as second argument to
9083         get_addr_stridx.
9085 2016-06-29  Richard Biener  <rguenther@suse.de>
9087         PR rtl-optimization/68961
9088         * simplify-rtx.c (simplify_subreg): Handle VEC_CONCAT like CONCAT.
9090 2016-06-29  Richard Biener  <rguenther@suse.de>
9092         PR middle-end/71002
9093         * alias.c (component_uses_parent_alias_set_from): Handle
9094         type punning through union accesses by using the union alias set.
9095         * gimple.c (gimple_get_alias_set): Remove union type punning case.
9097 2016-07-29  Richard Biener  <rguenther@suse.de>
9099         * match.pd ((T)(T2)x -> (T)x): Remove restriction on final
9100         precision not matching mode precision.
9102 2016-06-28  John David Anglin  <danglin@gcc.gnu.org>
9104         * config/pa/pa.md (call_symref_64bit_post_reload): Don't call
9105         pa_output_arg_descriptor.
9106         (call_val_symref_64bit_post_reload): Likewise.
9107         (call_val_powf_64bit_post_reload): Likewise.
9108         (sibcall_internal_symref_64bit): Likewise.
9109         (sibcall_value_internal_symref_64bit): Likewise.
9111 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9113         PR middle-end/71626
9114         * config/i386/i386.c (ix86_expand_vector_move): For SUBREG of
9115         a constant, force its SUBREG_REG into memory or register instead
9116         of whole op1.
9118 2016-06-28  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
9120         PR target/58655
9121         * config/avr/avr.opt (-mfract-convert-truncate): Update description.
9122         * doc/invoke.texi (AVR Options): Document it.
9124 2016-06-28  Walter Lee  <walt@tilera.com>
9126         * config/tilegx/linux.h: Do not include arch/icache.h
9127         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9128         * config/tilepro/linux.h: Do not include arch/icache.h
9129         (CLEAR_INSN_CACHE): Provide inlined definition directly.
9131 2016-06-28  Wilco Dijkstra  <wdijkstr@arm.com>
9133         * tree-ssa-math-opts.c (find_bswap_or_nop_1): Adjust bitnumbering
9134         for big-endian BIT_FIELD_REF.
9136 2016-06-28  Pat Haugen  <pthaugen@us.ibm.com>
9138         * config/rs6000/rs6000.md ('type' attribute): Add htmsimple/dfp types.
9139         ('size' attribute): Add '128'.
9140         Include power9.md.
9141         (*mov<mode>_hardfloat32, *mov<mode>_hardfloat64, *movdi_internal32,
9142         *movdi_internal64, *movdf_update1): Set size attribute to '64'.
9143         (add<mode>3, sub<mode>3, mul<mode>3, div<mode>3, sqrt<mode>2,
9144         copysign<mode>3, neg<mode>2_hw, abs<mode>2_hw, *nabs<mode>2_hw,
9145         *fma<mode>4_hw, *fms<mode>4_hw, *nfma<mode>4_hw, *nfms<mode>4_hw,
9146         extend<SFDF:mode><IEEE128:mode>2_hw, trunc<mode>df2_hw,
9147         *xscvqp<su>wz_<mode>, *xscvqp<su>dz_<mode>, *xscv<su>dqp_<mode>,
9148         *trunc<mode>df2_odd): Set size attribute to '128'.
9149         (*cmp<mode>_hw): Change type to veccmp and set size attribute to '128'.
9150         * config/rs6000/power6.md (power6-fp): Include dfp type.
9151         * config/rs6000/power7.md (power7-fp): Likewise.
9152         * config/rs6000/power8.md (power8-fp): Likewise.
9153         * config/rs6000/power9.md: New file.
9154         * config/rs6000/t-rs6000 (MD_INCLUDES): Add power9.md.
9155         * config/rs6000/htm.md (*tabort, *tabort<wd>c, *tabort<wd>ci,
9156         *trechkpt, *treclaim, *tsr, *ttest): Change type attribute to
9157         htmsimple.
9158         * config/rs6000/dfp.md (extendsddd2, truncddsd2, extendddtd2,
9159         trunctddd2, adddd3, addtd3, subdd3, subtd3, muldd3, multd3, divdd3,
9160         divtd3, *cmpdd_internal1, *cmptd_internal1, floatdidd2, floatditd2,
9161         ftruncdd2, fixdddi2, ftrunctd2, fixtddi2, dfp_ddedpd_<mode>,
9162         dfp_denbcd_<mode>, dfp_dxex_<mode>, dfp_diex_<mode>, dfp_dscli_<mode>,
9163         dfp_dscri_<mode>): Change type attribute to dfp.
9164         * config/rs6000/crypto.md (crypto_vshasigma<CR_char>): Change type
9165         attribute to vecsimple.
9166         * config/rs6000/rs6000.c (power9_cost): Update costs, cache size
9167         and prefetch streams.
9168         (rs6000_option_override_internal): Remove temporary code setting
9169         tuning to power8.  Don't set rs6000_sched_groups for power9.
9170         (last_scheduled_insn): Change to rtx_insn *.
9171         (divide_cnt, vec_load_pendulum): New variables.
9172         (rs6000_adjust_cost): Add Power9 to test for store->load separation.
9173         (rs6000_issue_rate): Set issue rate for Power9.
9174         (is_power9_pairable_vec_type): New.
9175         (power9_sched_reorder2): New.
9176         (rs6000_sched_reorder2): Call new function for Power9 specific
9177         reordering.
9178         (insn_must_be_first_in_group): Remove Power9.
9179         (insn_must_be_last_in_group): Likewise.
9180         (force_new_group): Likewise.
9181         (rs6000_sched_init): Fix initialization of last_scheduled_insn.
9182         Initialize divide_cnt/vec_load_pendulum.
9183         (_rs6000_sched_context, rs6000_init_sched_context,
9184         rs6000_set_sched_context): Handle context save/restore of new
9185         variables.
9187 2016-06-28  Richard Biener  <rguenther@suse.de>
9189         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
9190         Properly handle DECL_BIT_FIELD_REPRESENTATIVE occuring as
9191         COMPONENT_REF operand.
9192         (nonoverlapping_component_refs_p): Likewise.
9193         * stor-layout.c (start_bitfield_representative): Mark
9194         DECL_BIT_FIELD_REPRESENTATIVE as DECL_NONADDRESSABLE_P.
9196 2016-06-28  Jakub Jelinek  <jakub@redhat.com>
9198         * Makefile.in: Don't cat ../stage_current if it does not exist.
9200         * doc/extend.texi (__builtin_add_overflow_p): Clarify behavior when
9201         last argument is a bit-field.
9203         PR rtl-optimization/71673
9204         * internal-fn.c (expand_arith_overflow_result_store): Use
9205         OPTAB_LIB_WIDEN instead of OPTAB_DIRECT as last argument to
9206         expand_simple_binop.
9208         PR middle-end/66867
9209         * builtins.c (expand_ifn_atomic_compare_exchange_into_call,
9210         expand_ifn_atomic_compare_exchange): New functions.
9211         * internal-fn.c (expand_ATOMIC_COMPARE_EXCHANGE): New function.
9212         * tree.h (build_call_expr_internal_loc): Rename to ...
9213         (build_call_expr_internal_loc_array): ... this.  Fix up type of
9214         last argument.
9215         * internal-fn.def (ATOMIC_COMPARE_EXCHANGE): New internal fn.
9216         * predict.c (expr_expected_value_1): Handle IMAGPART_EXPR of
9217         ATOMIC_COMPARE_EXCHANGE result.
9218         * builtins.h (expand_ifn_atomic_compare_exchange): New prototype.
9219         * gimple-fold.h (optimize_atomic_compare_exchange_p,
9220         fold_builtin_atomic_compare_exchange): New prototypes.
9221         * gimple-fold.c (optimize_atomic_compare_exchange_p,
9222         fold_builtin_atomic_compare_exchange): New functions..
9223         * tree-ssa.c (execute_update_addresses_taken): If
9224         optimize_atomic_compare_exchange_p, ignore &var in 2nd argument
9225         of call when finding addressable vars, and if such var becomes
9226         non-addressable, call fold_builtin_atomic_compare_exchange.
9228 2016-06-27  Segher Boessenkool  <segher@kernel.crashing.org>
9230         PR target/71670
9231         * config/rs6000/rs6000.md (ashdi3_extswsli_dot): Use
9232         gen_ashdi3_extswsli_dot2 instead of gen_ashdi3_extswsli_dot.
9234 2016-06-27  Pat Haugen  <pthaugen@us.ibm.com>
9236         * config/rs6000/rs6000.md ('type' attribute): Add
9237         veclogical,veccmpfx,vecexts,vecmove insn types.
9238         (*abs<mode>2_fpr, *nabs<mode>2_fpr, *neg<mode>2_fpr, *extendsfdf2_fpr,
9239         copysign<mode>3_fcpsgn, trunc<mode>df2_internal1, neg<mode>2_internal,
9240         p8_fmrgow_<mode>, pack<mode>): Change type to fpsimple.
9241         (*xxsel<mode>, copysign<mode>3_hard, neg<mode>2_hw, abs<mode>2_hw,
9242         *nabs<mode>2_hw): Change type to vecmove.
9243         (*and<mode>3_internal, *bool<mode>3_internal, *boolc<mode>3_internal,
9244         *boolcc<mode>3_internal, *eqv<mode>3_internal,
9245         *one_cmpl<mode>3_internal, *ieee_128bit_vsx_neg<mode>2_internal,
9246         *ieee_128bit_vsx_abs<mode>2_internal,
9247         *ieee_128bit_vsx_nabs<mode>2_internal, extendkftf2, trunctfkf2,
9248         *ieee128_mfvsrd_64bit, *ieee128_mfvsrd_32bit, *ieee128_mtvsrd_64bit,
9249         *ieee128_mtvsrd_32bit): Change type to veclogical.
9250         (mov<mode>_hardfloat, *mov<mode>_hardfloat32, *mov<mode>_hardfloat64,
9251         *movdi_internal32, *movdi_internal64): Update insn types.
9252         * config/rs6000/vsx.md (*vsx_le_undo_permute_<mode>,
9253         vsx_extract_<mode>): Change type to veclogical.
9254         (*vsx_xxsel<mode>, *vsx_xxsel<mode>_uns): Change type to vecmove.
9255         (vsx_sign_extend_qi_<mode>, *vsx_sign_extend_hi_<mode>,
9256         *vsx_sign_extend_si_v2di): Change type to vecexts.
9257         * config/rs6000/altivec.md (*altivec_mov<mode>, *altivec_movti): Change
9258         type to veclogical.
9259         (*altivec_eq<mode>, *altivec_gt<mode>, *altivec_gtu<mode>,
9260         *altivec_vcmpequ<VI_char>_p, *altivec_vcmpgts<VI_char>_p,
9261         *altivec_vcmpgtu<VI_char>_p): Change type to veccmpfx.
9262         (*altivec_vsel<mode>, *altivec_vsel<mode>_uns): Change type to vecmove.
9263         * config/rs6000/dfp.md (*negdd2_fpr, *absdd2_fpr, *nabsdd2_fpr,
9264         negtd2, *abstd2_fpr, *nabstd2_fpr): Change type to fpsimple.
9265         * config/rs6000/40x.md (ppc405-float): Add fpsimple.
9266         * config/rs6000/440.md (ppc440-fp): Add fpsimple.
9267         * config/rs6000/476.md (ppc476-fp): Add fpsimple.
9268         * config/rs6000/601.md (ppc601-fp): Add fpsimple.
9269         * config/rs6000/603.md (ppc603-fp): Add fpsimple.
9270         * config/rs6000/6xx.md (ppc604-fp): Add fpsimple.
9271         * config/rs6000/7xx.md (ppc750-fp): Add fpsimple.
9272         (ppc7400-vecsimple): Add veclogical, vecmove, veccmpfx.
9273         * config/rs6000/7450.md (ppc7450-fp): Add fpsimple.
9274         (ppc7450-vecsimple): Add veclogical, vecmove.
9275         (ppc7450-veccmp): Add veccmpfx.
9276         * config/rs6000/8540.md (ppc8540_simple_vector): Add veclogical,
9277         vecmove.
9278         (ppc8540_vector_compare): Add veccmpfx.
9279         * config/rs6000/a2.md (ppca2-fp): Add fpsimple.
9280         * config/rs6000/cell.md (cell-fp): Add fpsimple.
9281         (cell-vecsimple): Add veclogical, vecmove.
9282         (cell-veccmp): Add veccmpfx.
9283         * config/rs6000/e300c2c3.md (ppce300c3_fp): Add fpsimple.
9284         * config/rs6000/e6500.md (e6500_vecsimple): Add veclogical, vecmove,
9285         veccmpfx.
9286         * config/rs6000/mpc.md (mpccore-fp): Add fpsimple.
9287         * config/rs6000/power4.md (power4-fp): Add fpsimple.
9288         (power4-vecsimple): Add veclogical, vecmove.
9289         (power4-veccmp): Add veccmpfx.
9290         * config/rs6000/power5.md (power5-fp): Add fpsimple.
9291         * config/rs6000/power6.md (power6-fp): Add fpsimple.
9292         (power6-vecsimple): Add veclogical, vecmove.
9293         (power6-veccmp): Add veccmpfx.
9294         * config/rs6000/power7.md (power7-fp): Add fpsimple.
9295         (power7-vecsimple): Add veclogical, vecmove, veccmpfx.
9296         * config/rs6000/power8.md (power8-fp): Add fpsimple.
9297         (power8-vecsimple): Add veclogical, vecmove, veccmpfx.
9298         * config/rs6000/rs64.md (rs64a-fp): Add fpsimple.
9299         * config/rs6000/titan.md (titan_fp): Add fpsimple.
9300         * config/rs6000/xfpu.md (fp-default, fp-addsub-s, fp-addsub-d): Add
9301         fpsimple.
9302         * config/rs6000/rs6000.c (rs6000_adjust_cost): Add TYPE_FPSIMPLE.
9304 2016-06-27  Peter Bergner  <bergner@vnet.ibm.com>
9306         PR target/71656
9307         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
9308         OPTION_MASK_P9_DFORM_VECTOR.
9309         * config/rs6000/rs6000.c (rs6000_option_override_internal): Do not
9310         disable -mpower9-dform-vector when using reload.
9311         (quad_address_p): Remove 'gpr_p' argument and all associated code.
9312         New 'strict' argument.  Update all callers.  Add strict addressing
9313         support.
9314         (rs6000_legitimate_offset_address_p): Remove call to
9315         virtual_stack_registers_memory_p.
9316         (rs6000_legitimize_reload_address): Add quad address support.
9317         (rs6000_legitimate_address_p): Move call to quad_address_p above
9318         call to virtual_stack_registers_memory_p.  Adjust quad_address_p args
9319         to account for new strict usage.
9320         (rs6000_output_move_128bit): Adjust quad_address_p args to account
9321         for new strict usage.
9322         * config/rs6000/predicates.md (quad_memory_operand): Likewise.
9324 2016-06-26  Uros Bizjak  <ubizjak@gmail.com>
9326         PR target/70902
9327         PR target/71453
9328         PR target/71555
9329         PR target/71596
9330         PR target/71657
9331         * config/i386/i386.c (ix86_spill_class): Disable condition to
9332         always return NO_REGS.
9334 2016-06-26  Jan Hubicka  <hubicka@ucw.cz>
9336         * predict.c: Include gimple-pretty-print.h
9337         (predicted_by_loop_heuristics_p): Check also
9338         PRED_LOOP_EXIT_WITH_RECURSION
9339         (predict_loops): Find self recursive calls and use special purpose
9340         predictors for them; dump log about decisions.
9341         (pass_profile::execute): Dump info about #of iterations.
9342         * predict.def (PRED_LOOP_EXIT_WITH_RECURSION,
9343         (PRED_LOOP_GUARD_WITH_RECURSION): New predictors.
9345 2016-06-26  John David Anglin  <danglin@gcc.gnu.org>
9347         * config/pa/pa.c (pa_output_indirect_call): Rework to combine
9348         output_asm_insn calls and shorten long lines.  Output .CALL
9349         argument descriptor using pa_output_arg_descriptor.  Add various
9350         inline $$dyncall and other optimizations.
9351         (pa_attr_length_indirect_call): Adjust ordering and lengths.
9353 2016-06-25  Jakub Jelinek  <jakub@redhat.com>
9355         PR tree-optimization/71643
9356         * tree-ssa-tail-merge.c (find_clusters_1): Ignore basic blocks with
9357         EH preds.
9359         * tree-ssa-tail-merge.c (deps_ok_for_redirect_from_bb_to_bb): Don't
9360         leak a bitmap if dep_bb is NULL.
9362         PR tree-optimization/71631
9363         * tree-ssa-reassoc.c (reassociate_bb): Pass true as last argument
9364         to rewrite_expr_tree even if negate_result, move new_lhs var
9365         declaration and initialization earlier, for powi_result set afterwards
9366         new_lhs to lhs.  For negate_result, use new_lhs instead of tmp
9367         if new_lhs != lhs, and don't shadow gsi var.
9369 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
9371         * predict.c (predict_paths_leading_to, predict_paths_leading_to_edge):
9372         Add in_loop parameter.
9373         (predict_loops): Add loop guard heuristics.
9374         * predict.def (PRED_LOOP_GUARD): New heuristics.
9376 2016-06-24  Jan Hubicka  <hubicka@ucw.cz>
9378         * predict.c: Include ipa-utils.h
9379         (tree_bb_level_prediction): Predict recursive calls.
9380         (tree_estimate_probability_bb): Skip inexpensive calls for call
9381         predictor.
9382         * predict.def (PRED_RECURSIVE_CALL): New.
9384 2016-06-24  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9386         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): New #define.
9387         (BU_FLOAT128_1): Likewise.
9388         (FABSQ): Likewise.
9389         (COPYSIGNQ): Likewise.
9390         (RS6000_BUILTIN_NANQ): Likewise.
9391         (RS6000_BUILTIN_NANSQ): Likewise.
9392         (RS6000_BUILTIN_INFQ): Likewise.
9393         (RS6000_BUILTIN_HUGE_VALQ): Likewise.
9394         * config/rs6000/rs6000.c (rs6000_fold_builtin): New prototype.
9395         (TARGET_FOLD_BUILTIN): New #define.
9396         (rs6000_builtin_mask_calculate): Add TARGET_FLOAT128 entry.
9397         (rs6000_invalid_builtin): Add handling for RS6000_BTM_FLOAT128.
9398         (rs6000_fold_builtin): New target hook implementation, handling
9399         folding of 128-bit NaNs and infinities.
9400         (rs6000_init_builtins): Initialize const_str_type_node; ensure all
9401         entries are filled in to avoid problems during bootstrap
9402         self-test; define builtins for 128-bit NaNs and infinities.
9403         (rs6000_opt_mask): Add entry for float128.
9404         * config/rs6000/rs6000.h (RS6000_BTM_FLOAT128): New #define.
9405         (RS6000_BTM_COMMON): Include RS6000_BTM_FLOAT128.
9406         (rs6000_builtin_type_index): Add RS6000_BTI_const_str.
9407         (const_str_type_node): New #define.
9408         * config/rs6000/rs6000.md (copysign<mode>3 for IEEE128): Convert
9409         to a define_expand that dispatches to either copysign<mode>3_soft
9410         or copysign<mode>3_hard.
9411         (copysign<mode>3_hard): Rename from copysign<mode>3.
9412         (copysign<mode>3_soft): New define_insn.
9413         * doc/extend.texi: Document new builtins.
9415 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9417         * cfgloop.c (flow_loop_dump): Cast nit to uint64_t and print it using
9418         PRIu64 instead of lu.
9420 2016-06-24  Eric Botcazou  <ebotcazou@adacore.com>
9422         PR debug/71642
9423         * tree-inline.c (remap_decl): When fixing up DECL_ORIGINAL_TYPE, just
9424         copy the type name.
9426 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9428         PR tree-optimization/71647
9429         * omp-low.c (lower_rec_input_clauses): Convert
9430         omp_clause_aligned_alignment (c) to size_type_node for the
9431         last argument of __builtin_assume_aligned.
9433 2016-06-24  H.J. Lu  <hongjiu.lu@intel.com>
9435         * configure.ac (calling ___tls_get_addr via GOT): New
9436         assembler/linker check.
9437         (HAVE_AS_IX86_TLS_GET_ADDR_GOT): New.  Defined to 1 if 32-bit
9438         assembler and linker supports calling ___tls_get_addr via GOT.
9439         Otherise, defined to 0.
9440         * config.in: Regenerated.
9441         * configure: Likewise.
9442         * config/i386/constraints.md (Yb): New constraint.
9443         * config/i386/i386.h (reg_class): Add TLS_GOTBASE_REGS.
9444         (REG_CLASS_NAMES): Likewise.
9445         (REG_CLASS_CONTENTS): Likewise.
9446         * config/i386/i386.md (*tls_global_dynamic_32_gnu): Replace
9447         the b constraint with the Yb constraint.  Call ___tls_get_addr
9448         via GOT for GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT
9449         is 1.
9450         (*tls_local_dynamic_base_32_gnu): Likewise.
9451         (*tls_global_dynamic_64_<mode>): Call _tls_get_addr via GOT for
9452         GNU TLS with -fno-plt if HAVE_AS_IX86_TLS_GET_ADDR_GOT is 1.
9453         (*tls_local_dynamic_base_64_<mode>): Likewise.
9455 2016-06-24  Martin Liska  <mliska@suse.cz>
9457         * cfgloop.c (flow_loop_dump): Dump average number of loop iterations.
9458         * cfgloop.h: Change 'struct loop' to 'const struct loop' for a
9459         few functions.
9460         * cfgloopanal.c (expected_loop_iterations_unbounded): Set a new
9461         argument to true if the expected number of iterations is
9462         loop-based.
9464 2016-06-24  Uros Bizjak  <ubizjak@gmail.com>
9466         * configure.ac (HAVE_AS_GOTOF_IN_DATA): Use $as_ix86_gas_32_opt to
9467         assemble for 32bit target.
9468         (HAVE_AS_IX86_TLSGDPLT): Use $as_ix86_gas_32_opt to assemble
9469         and $ld_ix86_gld_32_opt to link for 32bit target.
9470         (HAVE_AS_IX86_TLSLDMPLT): Ditto.
9471         * configure: Regenerate.
9473 2016-06-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9475         * config/arm/arm.c (int_log2): Delete definition and prototype.
9476         (shift_op): Use exact_log2 instead of int_log2.
9477         (vfp3_const_double_for_fract_bits): Likewise.
9479 2016-06-24  Jakub Jelinek  <jakub@redhat.com>
9481         * internal-fn.c (expand_arith_set_overflow): New function.
9482         (expand_addsub_overflow, expand_neg_overflow, expand_mul_overflow):
9483         Use it.
9484         (expand_arith_overflow_result_store): Likewise.  Handle precision
9485         smaller than mode precision.
9486         * tree-vrp.c (extract_range_basic): For imag part, handle
9487         properly signed 1-bit precision result.
9488         * doc/extend.texi (__builtin_add_overflow): Document that last
9489         argument can't be pointer to enumerated or boolean type.
9490         (__builtin_add_overflow_p): Document that last argument can't
9491         have enumerated or boolean type.
9493 2016-06-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
9494             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
9496         * config/rs6000/predicates.md (splat_input_operand): Rework.
9497         Don't allow constants, since the insns that use this predicate
9498         don't support constants.  Constants are handled by other insns
9499         that are created via combine.  During and after register
9500         allocation, only allow indexed or indirect addresses, and not
9501         general addresses.  Only allow modes supported by the hardware.
9502         * config/rs6000/rs6000.c (xxsplitb_constant_p): Update usage
9503         comment.  Move check for using VSPLTIS<x> to a common location,
9504         instead of doing it in two different places.
9506 2016-06-23  Jocelyn Mayer  <l_indien@magic.fr>
9508         * config/i386/driver-i386.c (host_detect_local_cpu): Set
9509         PROCESSOR_PENTIUMPRO for signature_CENTAUR_ebx family >= 9.
9510         <case PROCESSOR_PENTIMUMPRO>: Pass c7 or nehemiah for
9511         signature_CENTAUR_ebx.
9513 2016-06-23  H.J. Lu  <hongjiu.lu@intel.com>
9515         PR target/66232
9516         PR target/67400
9517         * configure.ac (as_ix86_tls_ldm_opt): Renamed to ...
9518         (as_ix86_gas_32_opt): This.
9519         (ld_ix86_tls_ldm_opt): Renamed to ...
9520         (ld_ix86_gld_32_opt): This.
9521         (R_386_TLS_LDM reloc): Updated.
9522         (R_386_GOT32X reloc): New assembler/linker check.
9523         (HAVE_AS_IX86_GOT32X): New.  Defined to 1 if 32-bit assembler and
9524         linker support "jmp *_start@GOT" and "cmpl $0, bar@GOT".  Otherise,
9525         defined to 0.
9526         * config.in: Regenerated.
9527         * configure: Likewise.
9528         * config/i386/i386.c (ix86_force_load_from_GOT_p): Return
9529         true if HAVE_AS_IX86_GOT32X is 1 in 32-bit mode.
9530         (ix86_legitimate_address_p): Allow UNSPEC_GOT for -fno-plt
9531         if ix86_force_load_from_GOT_p returns true.
9532         (ix86_print_operand_address_as): Also support UNSPEC_GOT if
9533         ix86_force_load_from_GOT_p returns true.
9534         (ix86_expand_move): Generate UNSPEC_GOT in 32-bit mode to load
9535         the external function address via the GOT slot.
9536         (ix86_nopic_noplt_attribute_p): Check both TARGET_64BIT and
9537         HAVE_AS_IX86_GOT32X before returning false.
9538         (ix86_output_call_insn): Generate "%!jmp/call\t*%p0@GOT" in
9539         32-bit mode if ix86_nopic_noplt_attribute_p returns true.
9541 2016-06-23  Eric Botcazou  <ebotcazou@adacore.com>
9543         * tree-inline.c (remap_decl): Preserve DECL_ORIGINAL_TYPE invariant.
9545 2016-06-23  Andi Kleen  <ak@linux.intel.com>
9547         * Makefile.in: Regenerate.
9548         * doc/install.texi: Document autoprofiledbootstrap.
9550 2016-06-23  Andi Kleen  <ak@linux.intel.com>
9552         * config/i386/gcc-auto-profile: New file.
9554 2016-06-23  Martin Liska  <mliska@suse.cz>
9556         PR middle-end/71619
9557         * predict.c (predict_loops): Revert the hunk that was removed
9558         in r237103.
9560 2016-06-23  Jakub Sejdak  <jakub.sejdak@phoesys.com>
9562         * config.gcc: Add support for arm*-*-phoenix* targets.
9563         * config/arm/t-phoenix: New.
9564         * config/phoenix.h: New.
9566 2016-06-23  Uros Bizjak  <ubizjak@gmail.com>
9567             H.J. Lu  <hongjiu.lu@intel.com>
9569         PR target/67400
9570         * config/i386/i386-protos.h (ix86_force_load_from_GOT_p): New.
9571         * config/i386/i386.c (ix86_force_load_from_GOT_p): New function.
9572         (ix86_legitimate_constant_p): Do not allow UNSPEC_GOTPCREL if
9573         ix86_force_load_from_GOT_p returns true.
9574         (ix86_legitimate_address_p): Allow UNSPEC_GOTPCREL if
9575         ix86_force_load_from_GOT_p returns true.
9576         (ix86_print_operand_address_as): Support UNSPEC_GOTPCREL if
9577         ix86_force_load_from_GOT_p returns true.
9578         (ix86_expand_move): Load the external function address via the
9579         GOT slot if ix86_force_load_from_GOT_p returns true.
9580         * config/i386/predicates.md (x86_64_immediate_operand): Return
9581         false for SYMBOL_REFs where ix86_force_load_from_GOT_p returns true.
9582         (x86_64_zext_immediate_operand): Ditto.
9584 2016-06-22  Uros Bizjak  <ubizjak@gmail.com>
9586         * config/i386/i386.c (ix86_expand_move): Simplify SYMBOL_REF handling.
9588 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
9590         PR c/70339
9591         * diagnostic-core.h (pedwarn_at_rich_loc): New prototype.
9592         * diagnostic.c (pedwarn_at_rich_loc): New function.
9593         * spellcheck.h (best_match::best_match): Add a
9594         "best_distance_so_far" optional parameter.
9595         (best_match::set_best_so_far): New method.
9596         (best_match::get_best_distance): New accessor.
9597         (best_match::get_best_candidate_length): New accessor.
9599 2016-06-22  Nick Clifton  <nickc@redhat.com>
9601         * dwarf2out.c (scompare_loc_descriptor): Use SCALAR_INT_MODE_P() in
9602         place of GET_MODE_CLASS() == MODE_INT, so that partial integer
9603         modes are accepted as well.
9604         (ucompare_loc_descriptor): Likewise.
9605         (minmax_loc_descriptor): Likewise.
9606         (clz_loc_descriptor): Likewise.
9607         (popcount_loc_descriptor): Likewise.
9608         (bswap_loc_descriptor): Likewise.
9609         (rotate_loc_descriptor): Likewise.
9610         (mem_loc_descriptor): Likewise.
9611         (loc_descriptor): Likewise.
9613 2016-06-22  David Malcolm  <dmalcolm@redhat.com>
9615         * common.opt (fdiagnostics-parseable-fixits): New option.
9616         * diagnostic.c: Include "selftest.h".
9617         (print_escaped_string): New function.
9618         (print_parseable_fixits): New function.
9619         (diagnostic_report_diagnostic): Call print_parseable_fixits.
9620         (selftest::assert_print_escaped_string): New function.
9621         (ASSERT_PRINT_ESCAPED_STRING_STREQ): New macro.
9622         (selftest::test_print_escaped_string): New function.
9623         (selftest::test_print_parseable_fixits_none): New function.
9624         (selftest::test_print_parseable_fixits_insert): New function.
9625         (selftest::test_print_parseable_fixits_remove): New function.
9626         (selftest::test_print_parseable_fixits_replace): New function.
9627         (selftest::diagnostic_c_tests): New function.
9628         * diagnostic.h (struct diagnostic_context): Add field
9629         "parseable_fixits_p".
9630         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
9631         -fdiagnostics-parseable-fixits.
9632         (-fdiagnostics-parseable-fixits): New option.
9633         * opts.c (common_handle_option): Handle
9634         -fdiagnostics-parseable-fixits.
9635         * selftest-run-tests.c (selftest::run_tests): Call
9636         selftest::diagnostic_c_tests.
9637         * selftest.h (selftest::diagnostic_c_tests): New prototype.
9639 2016-06-22  Ilya Enkovich  <ilya.enkovich@intel.com>
9641         PR tree-optimization/71488
9642         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Support
9643         comparison of boolean vectors.
9644         * tree-vect-stmts.c (vectorizable_comparison): Vectorize comparison
9645         of boolean vectors using bitwise operations.
9647 2016-06-22  Andreas Schwab  <schwab@suse.de>
9649         * config/aarch64/aarch64-protos.h (aarch64_elf_asm_named_section):
9650         Remove declaration.
9652 2016-06-22  Eric Botcazou  <ebotcazou@adacore.com>
9654         * function.c (assign_parm_setup_reg): Prevent sharing in another case.
9656 2016-06-22  Bernd Edlinger  <bernd.edlinger@hotmail.de>
9658         * config/i386/i386.c (print_reg): Emit an error message on attempt to
9659         print FLAGS_REG.
9661 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9663         * config/arm/arm.c (arm_cortex_a73_tune): New struct.
9664         * config/arm/arm-cores.def (cortex-a73): New entry.
9665         (cortex-a73.cortex-a35): Likewise.
9666         (cortex-a73.cortex-a53): Likewise.
9667         * config/arm/arm-tables.opt: Regenerate.
9668         * config/arm/arm-tune.md: Likewise.
9669         * config/arm/bpabi.h (BE8_LINK_SPEC): Handle mcpu=cortex-a73,
9670         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9671         * config/arm/t-aprofile: Handle mcpu=cortex-a73,
9672         mcpu=cortex-a73.cortex-a35 and mcpu=cortex-a73.cortex-a53.
9673         * doc/invoke.texi (ARM Options): Document cortex-a73,
9674         cortex-a73.cortex-a35 and cortex-a73.cortex-a53.
9676 2016-06-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9678         * config/aarch64/aarch64.c (cortexa73_tunings): New struct.
9679         * config/aarch64/aarch64-cores.def (cortex-a73): New entry.
9680         (cortex-a73.cortex-a35): Likewise.
9681         (cortex-a73.cortex-a53): Likewise.
9682         * config/aarch64/aarch64-tune.md: Regenerate.
9683         * doc/invoke.texi (AArch64 Options): Document cortex-a73,
9684         cortex-a73.cortex-a35 and cortex-a73.cortex-a53 arguments to
9685         -mcpu and -mtune.
9687 2016-06-22  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
9689         * configure.ac (gcc_cv_as_compress_debug): Remove
9690         --compress-debug-sections as extra as switch.
9691         Handle gas --compress-debug-sections=type.
9692         (gcc_cv_ld_compess_debug): Remove bogus ld_date check.
9693         Handle gld --compress-debug-sections=type.
9694         * configure: Regenerate.
9696 2016-06-21  Andrew Burgess  <andrew.burgess@embecosm.com>
9698         * bb-reorder.c (pass_partition_blocks::gate): Update comment.
9700 2016-06-21  John David Anglin  <danglin@gcc.gnu.org>
9702         * gcov-tool.c (profile_rewrite): Use int64_t instead of long long.
9703         (do_rewrite): likewise.
9705 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9707         * common/config/mep/mep-common.c: Remove.
9708         * config.gcc: Remove mep-* support.
9709         * config/mep/constraints.md: Remove.
9710         * config/mep/default.h: Remove.
9711         * config/mep/intrinsics.h: Remove.
9712         * config/mep/intrinsics.md: Remove.
9713         * config/mep/ivc2-template.h: Remove.
9714         * config/mep/mep-c5.cpu: Remove.
9715         * config/mep/mep-core.cpu: Remove.
9716         * config/mep/mep-default.cpu: Remove.
9717         * config/mep/mep-ext-cop.cpu: Remove.
9718         * config/mep/mep-intrin.h: Remove.
9719         * config/mep/mep-ivc2.cpu: Remove.
9720         * config/mep/mep-pragma.c: Remove.
9721         * config/mep/mep-protos.h: Remove.
9722         * config/mep/mep.c: Remove.
9723         * config/mep/mep.cpu: Remove.
9724         * config/mep/mep.h: Remove.
9725         * config/mep/mep.md: Remove.
9726         * config/mep/mep.opt: Remove.
9727         * config/mep/predicates.md: Remove.
9728         * config/mep/t-mep: Remove.
9729         * doc/install.texi: Remove mep-* documentation.
9730         * doc/md.texi: Likewise.
9732 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9734         * config.gcc: Remove support for avr-rtems.
9735         * config/avr/gen-avr-mmcu-specs.c: Likewise.
9736         * config/avr/rtems.h: Remove.
9737         * config/avr/t-rtems: Remove.
9739 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9741         * config.gcc: Remove m32r-rtems support.
9742         * config/m32r/rtems.h: Remove.
9744 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9746         * config.gcc: Remove h8300-rtems support.
9747         * config/h8300/rtems.h: Remove.
9748         * config/h8300/t-rtems: Remove.
9750 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9752         * config.gcc: Remove support for knetbsd.
9753         * configure.ac: Likewise.
9754         * config/i386/knetbsd-gnu.h: Remove.  * config/i386/knetbsd-gnu64.h: Remove.
9755         * config/knetbsd-gnu.h: Remove.
9756         * configure: Regenerate.
9758 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9760         * config.gcc: Remove support for openbsd 2 and 3.
9761         * config/openbsd-oldgas.h: Remove.
9763 2016-06-21  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
9765         * config.gcc: Remove interix support.
9766         * config/i386/i386-interix.h: Remove.
9767         * config/i386/interix.opt: Remove.
9768         * config/i386/t-interix: Remove.
9769         * configure: Regenerate.
9770         * configure.ac: Remove interix support.
9771         * doc/install.texi: Remove interix documentation.
9773 2016-06-21  Kelvin Nilsen  <kelvin@gcc.gnu.org>
9775         * config/rs6000/rs6000.h: Add conditional preprocessing directives
9776         to disable Power9-specific compiler features if HAVE_AS_POWER9 is
9777         not defined.
9779 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9781         * tree.c (verify_type_variant): Skip TYPE_SIZE and TYPE_SIZE_UNIT if
9782         they are both PLACEHOLDER_EXPRs.
9784 2016-06-21  Michael Meissner  <meissner@linux.vnet.ibm.com>
9786         * stor-layout.c (layout_type): Move setting complex MODE to
9787         layout_type, instead of setting it ahead of time by the caller.
9788         * tree.c (build_complex_type): Likewise.
9790 2016-06-21  Martin Liska  <mliska@suse.cz>
9792         * predict.c (force_edge_cold): Replace imposisble with
9793         impossible.
9795 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9797         * config/i386/i386.c (ix86_emit_swsqrtsf): Emit vrsqrt28ps.
9798         * config/i386/sse.md (define_expand "rsqrtv16sf2"): New.
9800 2016-06-21  Ilya Verbin  <ilya.verbin@intel.com>
9802         * config/i386/i386.c (ix86_emit_swdivsf): Emit vrcp28ps.
9804 2016-06-21  H.J. Lu  <hongjiu.lu@intel.com>
9805             Ilya Enkovich  <ilya.enkovich@intel.com>
9807         PR target/71549
9808         * config/i386/i386.c (timode_scalar_chain::fix_debug_reg_uses):
9809         New member function to convert V1TImode register to SUBREG
9810         TImode in debug insn.
9811         (timode_scalar_chain::convert_insn): Call fix_debug_reg_uses
9812         after changing register mode to V1TImode.
9814 2016-06-21  Virendra Pathak  <virendra.pathak@broadcom.com>
9816         * config/aarch64/aarch64-cores.def (vulcan): New core.
9817         * config/aarch64/aarch64-tune.md: Regenerate.
9818         * doc/invoke.texi: Document vulcan as an available option.
9820 2016-06-21  Eric Botcazou  <ebotcazou@adacore.com>
9822         * cse.c (canon_asm_operands): New function extracted from...
9823         (canonicalize_insn): ...here.  Call it to canonicalize an ASM_OPERANDS
9824         either standalone or member of a PARALLEL.
9826 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9828         PR target/30417
9829         * config/avr/gen-avr-mmcu-specs.c (print_mcu):
9830         [*link_data_start]: Wrap -Tdata into %{!Tdata:...}.
9831         [*link_text_start]: Wrap -Ttext into %{!Ttext:...}.
9833 2016-06-21  Georg-Johann Lay  <avr@gjlay.de>
9835         PR target/71103
9836         * config/avr/avr.md (movqi): Only handle loading subreg:qi of
9837         constant addresses if can_create_pseudo_p.
9839 2016-06-21  Jakub Jelinek  <jakub@redhat.com>
9841         PR tree-optimization/71588
9842         * tree-ssa-strlen.c (valid_builtin_call): New function.
9843         (adjust_last_stmt, handle_builtin_memset, strlen_optimize_stmt): Use
9844         it.
9846 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9848         PR middle-end/71581
9849         * tree-ssa-uninit.c (warn_uninit): If EXPR and VAR are NULL,
9850         see if T isn't anonymous SSA_NAME with COMPLEX_EXPR created
9851         for conversion of scalar user var to complex type and use the
9852         underlying SSA_NAME_VAR in that case.  If EXPR is still NULL,
9853         punt.
9855         PR rtl-optimization/71591
9856         * toplev.c (toplev::run_self_tests): If no_backend, complain and
9857         don't run any tests.
9859 2016-06-20  Hans-Peter Nilsson  <hp@axis.com>
9861         PR target/71571
9862         * config/cris/cris.c (cris_asm_output_mi_thunk): Add missing "ba"
9863         delay-slot "nop" for PIC with CRIS v32.  Also add missing leading
9864         space for PIC with non-v32 and the common non-PIC "jump".
9866 2016-06-20  Jakub Jelinek  <jakub@redhat.com>
9868         PR target/71559
9869         * config/i386/i386.c (ix86_fp_cmp_code_to_pcmp_immediate): Fix up
9870         returned values and add UN*/LTGT/*ORDERED cases with values matching
9871         D operand modifier on vcmp for AVX.
9873 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9875         * config/aarch64/aarch64.opt
9876         (mpc-relative-literal-loads): Rename internal option name.
9877         * config/aarch64/aarch64.c
9878         (aarch64_nopcrelative_literal_loads): Rename to
9879         aarch64_pcrelative_literal_loads.
9880         (aarch64_expand_mov_immediate): Likewise.
9881         (aarch64_secondary_reload): Likewise.
9882         (aarch64_can_use_per_function_literal_pools_p): Likewise.
9883         (aarch64_override_options_after_change_1): Rename and simplify logic.
9884         (aarch64_classify_symbol): Merge large model checks into switch,
9885         remove pc-relative load check.
9887 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9889         * config/arm/aarch-cost-tables.h (cortexa53_extra_costs): Make FP
9890         costs relative to the cost of a register move.
9892 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9894         * config/aarch64/arm_neon.h (vcvt_n_f64_s64): New.
9895         (vcvt_n_f64_u64): Likewise.
9896         (vcvt_n_s64_f64): Likewise.
9897         (vcvt_n_u64_f64): Likewise.
9898         (vcvt_f64_s64): Likewise.
9899         (vrecpe_f64): Likewise.
9900         (vcvt_f64_u64): Likewise.
9901         (vrecps_f64): Likewise.
9903 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9905         * config/aarch64/aarch64.md
9906         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3): Add attributes to
9907         iterators.
9908         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>3): Likewise.  Correct
9909         attributes.
9910         * config/aarch64/aarch64-builtins.c
9911         (aarch64_types_binop_uss_qualifiers): Delete.
9912         (TYPES_BINOP_USS): Likewise.
9913         (aarch64_types_binop_sus_qualifiers): Likewise.
9914         (TYPES_BINOP_SUS): Likewise.
9915         (aarch64_types_fcvt_from_unsigned_qualifiers): New.
9916         (TYPES_FCVTIMM_SUS): Likewise.
9917         * config/aarch64/aarch64-simd-builtins.def (scvtf): Use SHIFTIMM
9918         rather than BINOP.
9919         (ucvtf): Use FCVTIMM_SUS rather than BINOP_SUS.
9920         (fcvtzs): Use SHIFTIMM rather than BINOP.
9921         (fcvtzu): Use SHIFTIMM_USS rather than BINOP_USS.
9923 2016-06-20  James Greenhalgh  <james.greenhalgh@arm.com>
9925         * config/arm/aarch-cost-tables.h (cortexa57_extra_costs): Make FP
9926         costs relative to the cost of a register move.
9928 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9930         * config/aarch64/aarch64.c (aarch64_modes_tieable_p):
9931         Allow scalar/single vector modes to be tieable.
9933 2016-06-20  Wilco Dijkstra  <wdijkstr@arm.com>
9935         * config/arm/cortex-a57.md (cortex_a57_fp_cpys): Add fcsel.
9937 2016-06-20  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9939         * params.def (PARAM_ALIGN_LOOP_ITERATIONS): Use "alignment" instead of
9940         "alignement".
9941         * tree.h (TYPE_ALIGN): Likewise.
9943 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9945         PR target/71103
9946         * config/avr/avr.md (movqi): Handle loading subreg:qi (const).
9948 2016-06-20  Georg-Johann Lay  <avr@gjlay.de>
9950         * config/avr/avr.c (avr_print_operand): Fix "format not a string
9951         literal" build warnings.
9952         (avr_print_operand_address): Dito.
9954 2016-06-19  David Edelsohn  <dje.gcc@gmail.com>
9956         PR target/71375
9957         * config/rs6000/aix51.h (TARGET_EXTRA_BUILTINS): Define as 0.
9958         * config/rs6000/aix43.h (TARGET_EXTRA_BUILTINS): Same.
9960 2016-06-18  John David Anglin  <danglin@gcc.gnu.org>
9962         * config/pa/pa.h (TARGET_LONG_PIC_PCREL_CALL): Remove.
9964 2016-06-18  Eric Botcazou  <ebotcazou@adacore.com>
9966         PR bootstrap/71435
9967         * reload1.c (reload): Pass 0 to finish_spills when called because
9968         update_eliminables_and_spill returns true and remove did_spill.
9969         (finish_spills): Adjust comment and document GLOBAL parameter.
9971 2016-06-17  DJ Delorie  <dj@redhat.com>
9973         PR target/71338
9974         * config/rl78/rl78-expand.c (umulqihi3): Enable for G10.
9975         * config/rl78/rl78-virtual.c (umulhi3_shift_virt): Likewise.
9976         (umulqihi3_virt): Likewise.
9977         * config/rl78/rl78-real.c (umulhi3_shift_real): Likewise.
9978         (umulqihi3_real): Likewise.
9980 2016-06-17  Martin Liska  <mliska@suse.cz>
9982         * tree-ssa-reassoc.c (transform_add_to_multiply): Use auto_vec.
9984 2016-06-17  Martin Liska  <mliska@suse.cz>
9986         * predict.def: PRED_LOOP_EXIT from 92 to 85.
9988 2016-06-17  James Greenhalgh  <james.greenhalgh@arm.com>
9990         * config/arm/arm_neon.h (vadd_f32): replace __FAST_MATH with
9991         __FAST_MATH__.
9992         (vaddq_f32): Likewise.
9993         (vmul_f32): Likewise.
9994         (vmulq_f32): Likewise.
9995         (vsub_f32): Likewise.
9996         (vsubq_f32): Likewise.
9998 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10000         PR tree-optimization/71347
10001         * tree-ssa-loop-ivopts.c (determine_group_iv_cost_address): Compute
10002         cost for all uses in group.
10004 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10006         * tree-vect-loop.c (vect_create_epilog_for_reduction): Only
10007         insert gimple seq if it's not empty.
10009 2016-06-17  Bin Cheng  <bin.cheng@arm.com>
10011         * tree-vectorizer.h (struct dr_with_seg_len): Remove class
10012         member OFFSET.
10013         * tree-vect-data-refs.c (operator ==): Handle DR_OFFSET directly,
10014         rather than OFFSET.
10015         (comp_dr_with_seg_len_pair): Ditto.
10016         (vect_prune_runtime_alias_test_list): Ditto.  Also Canonicalize
10017         struct dr_with_seg_len_pair against DR_OFFSET.
10018         * tree-vect-loop-manip.c (vect_create_cond_for_alias_checks): Handle
10019         DR_OFFSET directly.
10021 2016-06-17  Szabolcs Nagy  <szabolcs.nagy@arm.com>
10023         * config/aarch64/geniterators.sh: Handle parenthesised conditions.
10025 2016-06-16  John David Anglin  <danglin@gcc.gnu.org>
10027         * config/pa/pa.c (pa_output_pic_pcrel_sequence): New.
10028         (pa_output_lbranch): Use pa_output_pic_pcrel_sequence.
10029         (pa_output_millicode_call): Likewise.
10030         (pa_output_call): Likewise.
10031         (pa_output_indirect_call): Likewise.
10032         (pa_asm_output_mi_thunk): Likewise.
10034 2016-06-16  Bernhard Reutner-Fischer  <aldot@gcc.gnu.org>
10036         * doc/invoke.texi (x86 Options): Fix -mno-fp-ret-in-387 typo.
10038 2016-06-16  Martin Liska  <mliska@suse.cz>
10040         * predict.c (combine_predictions_for_insn): When we find a first
10041         match predictor, we should consider just predictors with
10042         PRED_FLAG_FIRST_MATCH.  Print either first match (if any) or
10043         DS theory predictor.
10044         (combine_predictions_for_bb): Likewise.
10046 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10048         * gimplify.c (gimplify_scan_omp_clauses): Handle COMPONENT_REFs
10049         with base of reference to struct.
10051 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10053         * doc/invoke.texi (x86 Options): Document -m80387 and -mhard-float.
10055 2016-06-16  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
10057         PR target/71151
10058         * config/avr/avr.c (avr_asm_init_sections): Remove setup of
10059         progmem_swtable_section.
10060         (progmem_swtable_section): Remove.
10061         (avr_asm_function_rodata_section): Remove.
10062         (TARGET_ASM_FUNCTION_RODATA_SECTION): Remove.
10063         * config/avr/avr.h (JUMP_TABLES_IN_TEXT_SECTION: Define to 1.
10065 2016-06-16  Jocelyn Mayer  <l_indien@magic.fr>
10067         * config/i386/driver-i386.c (host_detect_local_cpu): Set
10068         PROCESSOR_K8 for signature_CENTAUR_ebx with has_longmode.
10069         <case PROCESSOR_K8>: Pass nano-3000, nano, eden-x2 or k8 for
10070         signature_CENTAUR_ebx.
10071         * config/i386/i386.c (ix86_option_override_internal): Add
10072         definitions for VIA c7, samuel-2, nehemiah, esther, eden-x2, eden-x4,
10073         nano, nano-1000, nano-2000, nano-3000, nano-x2 and nano-x4.
10074         * doc/invoke.texi (x86 Options): Document new VIA -march entries.
10076 2016-06-16  Martin Liska  <mliska@suse.cz>
10078         * predict.def: Add fortran loop preheader predictor.
10079         * gimple-fold.c (gimple_fold_stmt_to_constant_1): Properly
10080         fold IFN_BUILTIN_EXPECT with a known constant argument.
10082 2016-06-16  Martin Liska  <mliska@suse.cz>
10084         * predict.def: Add 'Fortran' to display text of all
10085         PRED_FORTRAN_* predictors.
10087 2016-06-16  Uros Bizjak  <ubizjak@gmail.com>
10089         PR target/71242
10090         * config/ia64/ia64.c (enum ia64_builtins) [IA64_BUILTIN_NANQ]: New.
10091         [IA64_BUILTIN_NANSQ]: Ditto.
10092         (ia64_fold_builtin): New function.
10093         (TARGET_FOLD_BUILTIN): New define.
10094         (ia64_init_builtins) Declare const_string_type node.
10095         Add __builtin_nanq and __builtin_nansq builtin functions.
10096         (ia64_expand_builtin): Handle IA64_BUILTIN_NANQ and IA64_BUILTIN_NANSQ.
10098 2016-06-16  Nick Clifton  <nickc@redhat.com>
10100         * config/msp430/msp430-opts.h (msp430_hwmult_types): Add
10101         MSP430_HWMULT_ prefix to enum values.
10102         (msp430_regions): Add MSP430_REGION_ prefix to enum values.
10103         * config/msp430/msp430.c: Update use of enum values.
10104         * config/msp430/msp430.md: Likewise.
10105         * config/msp430/msp430.opt: Likewise.
10107 2016-06-16  Jan Hubicka  <hubicka@ucw.cz>
10109         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Fix estimation
10110         of comparsions in the last iteration.
10112 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10113             Joern Rennecke  <joern.rennecke@embecosm.com>
10115         * config/arc/arc.c (arc_print_operand_address): Handle pc-relative
10116         addresses.
10117         (arc_needs_pcl_p): Add GOTOFFPC.
10118         (arc_legitimate_pic_addr_p): Likewise.
10119         (arc_output_pic_addr_const): Likewise.
10120         (arc_legitimize_pic_address): Generate a pc-relative address using
10121         GOTOFFPC.
10122         (arc_output_libcall): Use @pcl syntax.
10123         (arc_delegitimize_address_0): Delegitimize ARC_UNSPEC_GOTOFFPC.
10124         * config/arc/arc.md ("unspec"): Add ARC_UNSPEC_GOTOFFPC.
10125         (*movsi_insn): Use @pcl syntax.
10126         (doloop_begin_i): Likewise.
10128 2016-06-16  Martin Liska  <mliska@suse.cz>
10130         * predict.def: Define a new predictor.
10132 2016-06-16  Claudiu Zissulescu  <claziss@synopsys.com>
10134         * config/arc/arc.opt (mtp-regno): Update text.
10136 2016-06-16  Renlin Li  <renlin.li@arm.com>
10138         * config/aarch64/aarch64.c (aarch64_legitimize_address): Fix a typo.
10140 2016-06-16  Jakub Jelinek  <jakub@redhat.com>
10142         PR target/71554
10143         * config/i386/i386.md (setcc + movzbl peephole2): Use reg_set_p.
10144         (setcc + and peephole2): Likewise.
10146         PR rtl-optimization/71532
10147         * cse.c (cse_insn): For const/pure calls, invalidate argument passing
10148         memory slots.
10150 2016-06-15  Michael Meissner  <meissner@linux.vnet.ibm.com>
10152         * config/rs6000/vsx.md (VSINT_84): Add DImode to enable loading
10153         DImode constants with XXSPLTIB in vector registers.
10154         (vsx_extract_<mode>, V2DImode/V2DFmode): Combine both
10155         vsx_extract_<mode>_internal{1,2} into a single insn that handles
10156         direct move (both ISA 2.07 and ISA 3.0 versions), and optimizes
10157         extraction of the element at the top of the register as a scalar
10158         value.
10159         (vsx_extract_<mode>_internal1): Likewise.
10160         (vsx_extract_<mode>_internal2): Likewise.
10161         * config/rs6000/constraints.md (wi constraint): Remove a comment
10162         about DImode not being allowed in Altivec registers.
10163         (wB constraint): New constraint for constants that can be
10164         generated in Altivec registers with VSPLTISW/VUPKHSW.
10165         * config/rs6000/predicates.md (xxspltib_constant_split): Update
10166         comments.
10167         (xxspltib_constant_nosplit): Likewise.
10168         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Add
10169         support for -mupper-regs-di to enable DImode to go into Altivec
10170         registers.
10171         (POWERPC_MASKS): Likewise.
10172         (power7 cpu): Likewise.
10173         * config/rs6000/rs6000.opt (-mupper-regs-di): Likewise.
10174         * config/rs6000/rs6000.c (rs6000_hard_regno_mode_ok): Add support
10175         for DImode being allowed in Altivec registers.  Update wi/wj
10176         constraints.  Set scalar_in_vmx_p flag.
10177         (rs6000_option_override_internal): Add checks for -mupper-regs-di.
10178         (xxspltib_constant_p): Allow CONST_INT's with VOIDmode.  Don't
10179         return true if we could use VSPLTISW/VUPKHSW instead of XXSPLTIB.
10180         (rs6000_opt_masks): Add -mupper-regs-di.
10181         * config/rs6000/rs6000.md (lfiwax): Update clobbers that don't use
10182         direct move to use wi and not wj.
10183         (lfiwzx): Likewise.
10184         (floatsi<mode>2_lfiwax_mem): Combine alternatives into a single
10185         alternative.
10186         (floatunssi<mode>2_lfiwzx_mem): Likewise.
10187         (fix_trunc<mode>di2_fctidz): Change second alternative to allow
10188         any VSX register, instead of just Altivec registers, to allow
10189         either operand to be an Altivec register or both.
10190         (fixuns_trunc<mode>di2_fctiduz): Likewise.
10191         (movdi_internal32): Add support for -mupper-regs-di.  Add support
10192         to load constants via XXSPLTIB or VSPLTISW.  Add spacing to allow
10193         the alternatives and attributes to be lined up to be easier to
10194         read.
10195         (movdi_internal64): Likewise.
10196         (64-bit DImode splitters): Change predicates to only split loading
10197         up GPR registers.  Add splits for using XXSPLTIB or VSPLTISW to
10198         load constants in ISA 3.0 or ISA 2.07 respectively.
10199         * doc/invoke.texi (RS/6000 and PowerPC Options): Document
10200         -mupper-regs-di.  Update -mupper-regs-df and -mupper-regs-sf to
10201         mention -mcpu=power9 sets these options.
10202         * doc/md.texi (PowerPC and IBM RS6000 constraints): Document the
10203         wB constraint.
10205 2016-06-15  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
10207         PR target/67353
10208         * config/avr/avr.c (avr_set_current_function): Warn misspelled
10209         interrupt/ signal handler if -Wmisspelled-isr flag is enabled.
10210         * config/avr/avr.opt (Wmisspelled-isr): New warning flag. Enabled
10211         by default to warn misspelled interrupt/ signal handler.
10212         * doc/invoke.texi (AVR Options): Document it. Update description
10213         for -nodevicelib option.
10215 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10217         * config/aarch64/aarch64-simd.md (aarch64_<sur>shll_n<mode>): Clean
10218         up parentheses.  Use GET_MODE_UNIT_BITSIZE.
10219         (aarch64_<sur>shll2_n<mode>): Likewise.
10221 2016-06-15  Ilya Enkovich  <ilya.enkovich@intel.com>
10223         PR middle-end/71529
10224         * ipa-chkp.c (chkp_build_instrumented_fndecl): Fix
10225         DECL_CONTEXT for copied arguments.
10227 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10229         PR tree-optimization/71483
10230         * tree-vect-loop.c (vectorizable_live_operation): Pick correct index
10231         for slp
10233 2016-06-15  Martin Liska  <mliska@suse.cz>
10235         * predict.c (tree_predict_by_opcode): Call predict_edge_def
10236         instead of predict_edge w/o a probability.
10238 2016-06-15  Alan Hayward  <alan.hayward@arm.com>
10240         PR tree-optimization/71439
10241         * tree-vect-loop.c (vect_analyze_loop_operations): Additional check for
10242         live PHIs.
10244 2016-06-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10246         * ifcvt.c (bb_ok_for_noce_multiple_sets): Allow simple lowpart
10247         register subregs in SET_SRC.
10249 2016-06-15  Richard Biener  <rguenther@suse.de>
10251         * tree-vect-stmts.c (vectorizable_store): Remove strided grouped
10252         store restrictions.
10254 2016-06-15  Richard Biener  <rguenther@suse.de>
10256         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence): Do
10257         not consider dependences between accesses that belong to the
10258         same group.
10259         (vect_analyze_data_ref_dependences): Do not analyze read-read
10260         or self-dependences.
10262 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10264         * spellcheck-tree.c: Include spellcheck-tree.h rather than
10265         spellcheck.h.
10266         (find_closest_identifier): Reimplement in terms of
10267         best_match<tree,tree>.
10268         * spellcheck-tree.h: New file.
10269         * spellcheck.c (struct edit_distance_traits<const char *>): New
10270         struct.
10271         (find_closest_string): Reimplement in terms of
10272         best_match<const char *, const char *>.
10273         * spellcheck.h (levenshtein_distance): Move prototype of tree-based
10274         overload to spellcheck-tree.h.
10275         (find_closest_identifier): Likewise.
10276         (struct edit_distance_traits<T>): New template.
10277         (class best_match): New class.
10279 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10281         * selftest-run-tests.c (selftest::run_tests): Call
10282         selftest::spellcheck_tree_c_tests.
10283         * selftest.h (selftest::spellcheck_tree_c_tests): New decl.
10284         * spellcheck-tree.c: Include selftest.h and stringpool.h.
10285         (selftest::test_find_closest_identifier): New function.
10286         (selftest::spellcheck_tree_c_tests): New function.
10287         * spellcheck.c (selftest::test_find_closest_string): Verify that
10288         the order of the vec does not affect the results for this case.
10289         (selftest::test_data): New array.
10290         (selftest::test_metric_conditions): New function.
10291         (selftest::spellcheck_c_tests): Add a test of case-comparison.
10292         Call selftest::test_metric_conditions.
10294 2016-06-14  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
10296         * config/rs6000/rs6000-builtin.def (commentary): Typo.
10297         (BU_P9_MISC_1): Likewise.
10298         (BU_P9_64BIT_MISC_0): Likewise.
10299         (BU_P9_MISC_0): Likewise.
10301 2016-06-14  David Malcolm  <dmalcolm@redhat.com>
10303         * gcc-rich-location.c
10304         (gcc_rich_location::add_fixit_misspelled_id): New method.
10305         * gcc-rich-location.h
10306         (gcc_rich_location::add_fixit_misspelled_id): Add decl.
10308 2016-06-14  Andreas Tobler  <andreast@gcc.gnu.org>
10310         * config/arm/freebsd.h: Only enable unaligned access for armv6 on
10311         FreeBSD 11 and above.
10313 2016-06-14  Uros Bizjak  <ubizjak@gmail.com>
10315         * config/i386/i386.md (signbittf2): Emit sse_movmskps for TARGET_SSE.
10317 2016-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10319         * expmed.h: Close parenthesis in "at your option" in copyright
10320         boilerplate.
10321         * lower-subreg.h: Likewise.
10323 2016-06-14  Richard Biener  <rguenther@suse.de>
10325         PR middle-end/71526
10326         * genmatch.c (expr::gen_transform): Use in_type for comparisons
10327         if available.
10329 2015-06-14  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10331         * config/aarch64/aarch64.c (aarch64_mask_and_shift_for_ubfiz_p):
10332         New function.
10333         (aarch64_rtx_costs): Use it.  Rewrite CONST_INT_P (op1) case to handle
10334         mask+shift version.
10335         * config/aarch64/aarch64-protos.h (aarch64_mask_and_shift_for_ubfiz_p):
10336         New prototype.
10337         * config/aarch64/aarch64.md (*andim_ashift<mode>_bfiz): Replace
10338         matching condition with aarch64_mask_and_shift_for_ubfiz_p.
10340 2016-06-14  Richard Biener  <rguenther@suse.de>
10342         PR tree-optimization/71522
10343         * tree-ssa.c (non_rewritable_lvalue_p): Do not rewrite non-float
10344         copying into float copying.
10346 2016-06-14  Jakub Jelinek  <jakub@redhat.com>
10348         PR tree-optimization/71520
10349         * tree-ssa-tail-merge.c (find_duplicate): Handle labels.
10350         (replace_block_by): Move user labels from bb1 to bb2.
10352 2016-06-14  Richard Biener  <rguenther@suse.de>
10354         PR middle-end/71310
10355         PR bootstrap/71510
10356         * expr.h (get_bit_range): Declare.
10357         * expr.c (get_bit_range): Export.
10358         * fold-const.c (optimize_bit_field_compare): Use get_bit_range and
10359         word_mode again to constrain the bitfield access.
10361 2016-06-14  Richard Biener  <rguenther@suse.de>
10363         PR tree-optimization/71521
10364         * tree-vrp.c (extract_range_from_binary_expr_1): Guard
10365         division int_const_binop against zero divisor.
10367 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10369         * config/i386/i386.md (signbittf2): New expander.
10370         * config/i386/sse.md (ptesttf2): New insn pattern.
10372 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10374         PR bootstrap/71481
10375         * input.c (selftest::test_reading_source_line): Avoid reading from
10376         __FILE__ by creating a tempfile with known content and reading
10377         from that instead.
10379 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10381         * pretty-print.c (assert_pp_format_colored): Skip the test if
10382         GCC_COLORS is set.
10383         (test_pp_format): Remove comment about GCC_COLORS.
10385 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10387         * input.c (test_reading_source_line): Use SELFTEST_LOCATION.
10388         * pretty-print.c (assert_pp_format_va): Add location param and use
10389         it with ASSERT_STREQ_AT.
10390         (assert_pp_format): Add location param and pass it to
10391         assert_pp_format_va.
10392         (assert_pp_format_colored): Likewise.
10393         (ASSERT_PP_FORMAT_1): New.
10394         (ASSERT_PP_FORMAT_2): New.
10395         (ASSERT_PP_FORMAT_3): New.
10396         (test_pp_format): Provide SELFTEST_LOCATION throughout, either
10397         explicitly, or implicitly via the above macros.
10398         * selftest.c (selftest::pass): Use a selftest::location rather
10399         than file and line.
10400         (selftest::fail): Likewise.  Print the function name.
10401         (selftest::fail_formatted): Likewise.
10402         (selftest::assert_streq): Use a selftest::location rather than
10403         file and line.
10404         * selftest.h (selftest::location): New struct.
10405         (SELFTEST_LOCATION): New macro.
10406         (selftest::pass): Accept a const location & rather than file
10407         and line.
10408         (selftest::fail): Likewise.
10409         (selftest::fail_formatted): Likewise.
10410         (selftest::assert_streq): Likewise.
10411         (ASSERT_TRUE): Update for above changes, using SELFTEST_LOCATION.
10412         (ASSERT_FALSE): Likewise.
10413         (ASSERT_EQ): Likewise.
10414         (ASSERT_NE): Likewise.
10415         (ASSERT_STREQ): Likewise.
10416         (ASSERT_PRED1): Likewise.
10417         (ASSERT_STREQ_AT): New macro.
10419 2016-06-13  David Malcolm  <dmalcolm@redhat.com>
10421         * selftest.c (selftest::fail_formatted): New function.
10422         (selftest::assert_streq): New function.
10423         * selftest.h (selftests::fail_formatted): New decl.
10424         (selftest::assert_streq): New decl.
10425         (ASSERT_STREQ): Reimplement in terms of selftest::assert_streq.
10427 2016-06-13  Jeff Law  <law@redhat.com>
10429         PR tree-optimization/71403
10430         * tree-ssa-threadbackward.c
10431         (convert_and_register_jump_thread_path): No longer accept reference
10432         to path.  Do not pop items off the path anymore.
10433         (fsm_find_control_statement_thread_paths): Do not allow threading
10434         to a deeper loop nest.  Pop the last item off the path here rather
10435         than in convert_and_register_jump_thread_path.
10437 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10438             Wilco Dijkstra  <Wilco.Dijkstra@arm.com>
10440         [AArch64] Emit division using the Newton series
10442         * config/aarch64/aarch64-protos.h
10443         (cpu_approx_modes): Add new member "division".
10444         (aarch64_emit_approx_div): Declare new function.
10445         * config/aarch64/aarch64.c
10446         (generic_approx_modes): New member "division".
10447         (exynosm1_approx_modes): Likewise.
10448         (xgene1_approx_modes): Likewise.
10449         (aarch64_emit_approx_div): Define new function.
10450         * config/aarch64/aarch64.md ("div<mode>3"): New expansion.
10451         * config/aarch64/aarch64-simd.md ("div<mode>3"): Likewise.
10452         * config/aarch64/aarch64.opt (-mlow-precision-div): Add new option.
10453         * doc/invoke.texi (-mlow-precision-div): Describe new option.
10455 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10456             Wilco Dijkstra  <wilco.dijkstra@arm.com>
10458         [AArch64] Emit square root using the Newton series
10460         * config/aarch64/aarch64-protos.h
10461         (aarch64_emit_approx_rsqrt): Replace with new function
10462         "aarch64_emit_approx_sqrt".
10463         (cpu_approx_modes): New member "sqrt".
10464         * config/aarch64/aarch64.c
10465         (generic_approx_modes): New member "sqrt".
10466         (exynosm1_approx_modes): Likewise.
10467         (xgene1_approx_modes): Likewise.
10468         (aarch64_emit_approx_rsqrt): Replace with new function
10469         "aarch64_emit_approx_sqrt".
10470         (aarch64_override_options_after_change_1): Handle new option.
10471         * config/aarch64/aarch64-simd.md
10472         (rsqrt<mode>2): Use new function instead.
10473         (sqrt<mode>2): New expansion and insn definitions.
10474         * config/aarch64/aarch64.md: Likewise.
10475         * config/aarch64/aarch64.opt
10476         (mlow-precision-sqrt): Add new option description.
10477         * doc/invoke.texi (mlow-precision-sqrt): Likewise.
10479 2016-06-13  Evandro Menezes  <e.menezes@samsung.com>
10481         [AArch64] Add more choices for the reciprocal square root approximation
10483         Allow a target to prefer such operation depending on the operation mode.
10485         * config/aarch64/aarch64-protos.h
10486         (AARCH64_APPROX_MODE): New macro.
10487         (AARCH64_APPROX_{NONE,ALL}): Likewise.
10488         (cpu_approx_modes): New structure.
10489         (tune_params): New member "approx_modes".
10490         * config/aarch64/aarch64-tuning-flags.def
10491         (AARCH64_EXTRA_TUNE_APPROX_RSQRT): Remove macro.
10492         * config/aarch64/aarch64.c
10493         (generic_approx_modes): New core "cpu_approx_modes" structure.
10494         (exynosm1_approx_modes): Likewise.
10495         (xgene1_approx_modes): Likewise.
10496         (generic_tunings): New member "approx_modes".
10497         (cortexa35_tunings): Likewise.
10498         (cortexa53_tunings): Likewise.
10499         (cortexa57_tunings): Likewise.
10500         (cortexa72_tunings): Likewise.
10501         (exynosm1_tunings): Likewise.
10502         (thunderx_tunings): Likewise.
10503         (xgene1_tunings): Likewise.
10504         (use_rsqrt_p): New argument for the mode and use new member from
10505         "tune_params".
10506         (aarch64_builtin_reciprocal): Devise mode from builtin.
10507         (aarch64_optab_supported_p): New argument for the mode.
10508         * doc/invoke.texi (-mlow-precision-recip-sqrt): Reword description.
10510 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10512         * config/rs6000/rs6000.h (RS6000_BTM_COMMON): Add the
10513         RS6000_BTM_MODULO flag into the set of flags that are considered
10514         to be part of the common configuration.
10516 2016-06-13  Kelvin Nilsen  <kelvin@gcc.gnu.org>
10518         * config/rs6000/altivec.h (vec_absd): New macro for vector absolute
10519         difference unsigned.
10520         (vec_absdb): New macro for vector absolute difference unsigned
10521         byte.
10522         (vec_absdh): New macro for vector absolute difference unsigned
10523         half-word.
10524         (vec_absdw): New macro for vector absolute difference unsigned word.
10525         * config/rs6000/altivec.md (UNSPEC_VADU): New value.
10526         (vadu<mode>3): New insn.
10527         (*p9_vadu<mode>3): New insn.
10528         * config/rs6000/rs6000-builtin.def (vadub): New built-in
10529         definition.
10530         (vaduh): New built-in definition.
10531         (vaduw): New built-in definition.
10532         (vadu): New overloaded built-in definition.
10533         (vadub): New overloaded built-in definition.
10534         (vaduh): New overloaded built-in definition.
10535         (vaduw): New overloaded built-in definition.
10536         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
10537         overloaded vector absolute difference unsigned functions.
10538         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
10539         the ISA 3.0 vector absolute difference unsigned built-in functions.
10541 2016-06-13  Eric Botcazou  <ebotcazou@adacore.com>
10543         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use a uniform test and
10544         update shared_lookup_references only once after changing operands.
10546 2016-06-13  Thomas Schwinge  <thomas@codesourcery.com>
10548         PR middle-end/71373
10549         * tree-nested.c (convert_nonlocal_omp_clauses)
10550         (convert_local_omp_clauses): Document missing OMP_CLAUSE_*.
10552         * tree-cfg.c (edge_to_cases_cleanup): Fix CASE_CHAIN typo.
10553         * tree.def (CASE_LABEL_EXPR): Likewise.
10555 2016-06-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10557         PR bootstrap/71481
10558         * input.c (test_builtins): Fix an assertion.
10560 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10562         * config/i386/i386.md (paritydi2): Use ix86_expand_setcc.
10563         (paritysi2): Ditto.
10564         (isinfxf2): Ditto.
10565         (isinf<mode>2): Ditto.
10567 2016-06-13  Uros Bizjak  <ubizjak@gmail.com>
10569         * ggc-tests.c (test_finalization): Only test need_finalization_p
10570         for GCC_VERSION >= 4003.
10572 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10574         * config/s390/vecintrin.h: Fix file description in comment.
10576 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10578         * config/s390/s390-builtin-types.def: Change builtin type naming
10579         scheme to match builtin-types.def.
10581 2016-06-13  Marc Glisse  <marc.glisse@inria.fr>
10583         * fold-const.c (optimize_minmax_comparison): Remove.
10584         (fold_comparison): Remove call to the above.
10585         * match.pd (MIN (X, Y) == X, MIN (X, 5) == 0, MIN (X, C1) < C2):
10586         New transformations.
10588 2016-06-13  Alan Hayward  <alan.hayward@arm.com>
10590         PR tree-optimization/71416
10591         * tree-vect-loop.c (vectorizable_live_operation): Let worklist have
10592         multiple entries
10594 2016-06-13  Martin Liska  <mliska@suse.cz>
10596         * predict.c (enum predictor_reason): Prefix enum with REASON_.
10597         (combine_predictions_for_insn): Likewise.
10598         (prune_predictions_for_bb): Likewise.
10599         (combine_predictions_for_bb): Likewise.
10601 2016-06-13  Richard Biener  <rguenther@suse.de>
10603         PR tree-optimization/71505
10604         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Make
10605         assert match comment.
10607 2016-06-13  Marek Polacek  <polacek@redhat.com>
10609         PR middle-end/71476
10610         * gimplify.c (maybe_warn_switch_unreachable): Factored out of
10611         gimplify_switch_expr.
10612         (warn_switch_unreachable_r): New function.
10614 2016-06-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
10616         PR target/71379
10617         * config/s390/s390.c (s390_expand_builtin): Increase MAX_ARGS by
10618         one.
10620 2016-06-13  Richard Biener  <rguenther@suse.de>
10622         PR middle-end/64516
10623         * fold-const.c (fold_unary_loc): Preserve alignment when
10624         folding a VIEW_CONVERT_EXPR into a MEM_REF.
10626 2016-06-13  Martin Liska  <mliska@suse.cz>
10628         PR sanitizer/71458
10629         * toplev.c (process_options): Do not enable -fcheck-pointer-bounds
10630         w/ -fsanitize=bounds.
10632 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
10634         * config/i386/i386.c (ix86_init_builtins): Calculate
10635         FLOAT128_FTYPE_CONST_STRING function type only once.
10636         * doc/extend.texi (x86 Built-in Functions): Update text, __float128
10637         built-in functions are available for x86-32 and x86-64 targets.
10639 2016-06-12  Uros Bizjak  <ubizjak@gmail.com>
10641         PR target/71241
10642         * config/i386/i386.i386-builtin-types.def (CONST_STRING):
10643         New primitive type.
10644         (FLOAT128_FTYPE_CONST_STRING): New function type.
10645         * config/i386/i386.c (enum ix86_builtins) [IX86_BUILTIN_NANQ]: New.
10646         [IX86_BUILTIN_NANSQ]: Ditto.
10647         (ix86_fold_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10648         (ix86_init_builtin_types): Declare const_string_type_node.
10649         (ix86_init_builtins): Add __builtin_nanq and __builtin_nansq
10650         builtin functions.
10651         (ix86_expand_builtin): Handle IX86_BUILTIN_NANQ and IX86_BUILTIN_NANSQ.
10652         * doc/extend.texi (x86 Built-in Functions): Document
10653         __builtin_nanq and __builtin_nansq.
10655 2016-06-11  Jiong Wang  <jiong.wang@arm.com>
10657         PR target/71061
10658         * config/arm/arm-protos.h (arm_attr_length_pop_multi): New declaration.
10659         * config/arm/arm.c (arm_attr_length_pop_multi): New function to return
10660         length for pop patterns.
10661         (arm_attr_length_push_multi): Update comments.
10662         * config/arm/arm.md (*load_multiple_with_writeback): Set "length"
10663         attribute.
10664         (*pop_multiple_with_writeback_and_return): Likewise.
10665         (*pop_multiple_with_return): Likewise.
10667 2016-06-11  Segher Boessenkool  <segher@kernel.crashing.org>
10669         PR middle-end/71310
10670         * fold-const.c (optimize_bit_field_compare): Don't try to use
10671         word_mode unconditionally for reading the bit field, look at
10672         DECL_BIT_FIELD_REPRESENTATIVE instead.
10674 2016-06-11  Kugan Vivekanandarajah  <kuganv@linaro.org>
10676         PR middle-end/71478
10677         * tree-ssa-reassoc.c (reassociate_bb): Remove (-1) from ops list for
10678         vector integer type.
10680 2016-06-10  Jakub Jelinek  <jakub@redhat.com>
10682         PR middle-end/71494
10683         * tree-nested.c (convert_nonlocal_reference_stmt): For GIMPLE_GOTO
10684         without LABEL_DECL, set *handled_ops_p to false instead of true.
10686 2016-06-10  Martin Sebor  <msebor@redhat.com>
10688         PR c/71392
10689         * builtin-attrs.def (ATTR_NOTHROW_NONNULL_LEAF_LIST): New macro.
10690         (ATTR_NOTHROW_NONNULL_TYPEGENERIC_LEAF): Same.
10691         * builtins.def (BUILT_IN_SADD_OVERFLOW, BUILT_IN_SADDL_OVERFLOW): Use
10692         them.
10693         (BUILT_IN_SADDLL_OVERFLOW, BUILT_IN_SSUB_OVERFLOW): Same.
10694         (BUILT_IN_SSUBL_OVERFLOW, BUILT_IN_SSUBLL_OVERFLOW): Same.
10695         (BUILT_IN_SMUL_OVERFLOW, BUILT_IN_SMULL_OVERFLOW): Same.
10696         (BUILT_IN_SMULLL_OVERFLOW, BUILT_IN_UADD_OVERFLOW): Same.
10697         (BUILT_IN_UADDL_OVERFLOW, BUILT_IN_UADDLL_OVERFLOW): Same.
10698         (BUILT_IN_USUB_OVERFLOW, BUILT_IN_USUBL_OVERFLOW): Same.
10699         (BUILT_IN_USUBLL_OVERFLOW, BUILT_IN_UMUL_OVERFLOW): Same.
10700         (BUILT_IN_UMULL_OVERFLOW, BUILT_IN_UMULLL_OVERFLOW): Same.
10702 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10704         * config/arm/arm.h (pool_vector_label,
10705         return_used_this_function): Remove.
10707 2016-06-10  Jeff Law  <law@redhat.com>
10709         PR tree-optimization/71335
10710         * tree-ssa-threadbackward.c (profitable_jump_thread_path): Filter out
10711         zero length paths here.
10712         (convert_and_register_jump_thread_path): Remove hacks related to
10713         duplicated blocks in the jump thread path.
10714         (fsm_find_control_statement_thread_paths): Avoid putting the same
10715         block on the thread path twice, but ensure the thread path is
10716         unchanged from the caller's point of view.
10718 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
10720         * predict.c (predict_loops): Remove PRED_LOOP_BRANCH.
10721         * predict.def (PRED_LOOP_BRANCH): Remove.
10723 2016-06-10  David Malcolm  <dmalcolm@redhat.com>
10725         * Makefile.in (OBJS): Add ggc-tests.o.
10726         (GTFILES): Add ggc-tests.c.
10727         * ggc-tests.c: New file.
10728         * selftest-run-tests.c (selftest::run_tests): Call
10729         selftest::ggc_tests_c_tests.
10730         * selftest.h (selftest::ggc_tests_c_tests): New prototype.
10732 2016-06-10  Alexander Monakov  <amonakov@ispras.ru>
10734         * match.pd (-1 / B < A): Use :c to avoid pattern duplication.
10736 2016-06-10  Maxim Ostapenko  <m.ostapenko@samsung.com>
10738         PR sanitizer/71480
10739         * varasm.c (place_block_symbol): Adjust alignment for asan protected
10740         STRING_CSTs even if TREE_CONSTANT_POOL_ADDRESS_P.
10742 2016-06-10  Jan Hubicka  <hubicka@ucw.cz>
10744         * profile.c: Include cfgloop.h.
10745         (branch_prob): Compute estimated number of iterations.
10746         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Do not
10747         recompute estimate number of iterations from profile.
10749 2016-06-10  Bernd Edlinger  <bernd.edlinger@hotmail.de>
10751         PR inline-asm/68843
10752         * reg-stack.c (check_asm_stack_operands): Explicit input arguments
10753         must be grouped on top of stack.  Don't force early clobber
10754         on ordinary reg outputs.
10756 2016-06-10  Richard Biener  <rguenther@suse.de>
10758         * targhooks.c (default_builtin_vectorization_cost): Adjust
10759         vec_construct cost.
10761 2016-06-10  Richard Biener  <rguenther@suse.de>
10763         * gimple-fold.c (gimple_fold_builtin_memory_op): Make sure
10764         to fold the RHS to a constant if possible.
10766 2016-06-10  Thomas Schwinge  <thomas@codesourcery.com>
10768         PR middle-end/71373
10769         * tree-nested.c (convert_nonlocal_omp_clauses)
10770         (convert_local_omp_clauses): Handle OMP_CLAUSE_ASYNC,
10771         OMP_CLAUSE_WAIT, OMP_CLAUSE_INDEPENDENT, OMP_CLAUSE_AUTO,
10772         OMP_CLAUSE__CACHE_, OMP_CLAUSE_TILE.
10774         * gimplify.c (gimplify_adjust_omp_clauses): Discard
10775         OMP_CLAUSE_TILE.
10776         * omp-low.c (scan_sharing_clauses): Don't expect OMP_CLAUSE_TILE.
10778         * omp-low.c (scan_sharing_clauses): Don't expect
10779         OMP_CLAUSE__CACHE_.
10781 2016-06-10  Alan Hayward  <alan.hayward@arm.com>
10783         PR tree-optimization/71407
10784         PR tree-optimization/71416
10785         * tree-vect-loop.c (vectorizable_live_operation): Use vectype for
10786         BIT_FIELD_REF type.
10788 2016-06-10  Richard Biener  <rguenther@suse.de>
10790         PR middle-end/71477
10791         * cfgloop.c (alloc_loop): Initialize nb_iterations_likely_upper_bound.
10793 2016-06-09  Eric Botcazou  <ebotcazou@adacore.com>
10795         * df-problems.c (df_note_bb_compute): Guard use of DF_INSN_INFO_GET.
10797 2016-06-09  Vladimir Makarov  <vmakarov@redhat.com>
10798             Jiong Wang  <jiong.wang@arm.com>
10800         PR rtl-optimization/70751
10801         * lra-constraints.c (process_alt_operands): Recognize Non-pseudo
10802         spilled into memory.
10804 2016-06-09  Jonathan Yong  <10walls@gmail.com>
10806         Revert:
10807         2015-09-21  Jonathan Yong  <10walls@gmail.com>
10809         * config/i386/cygwin.h (STARTFILE_SPEC): Explicitly search
10810         sysroot/usr/lib/32api for additional win32 libraries,
10811         fixes failing Cygwin bootstrapping.
10813 2016-06-09  Marcin Baczyński  <marbacz@gmail.com>
10815         * diagnostic.h (diagnostic_line_cutoff, diagnostic_flush_buffer):
10816         Delete.
10818 2016-06-09  David Malcolm  <dmalcolm@redhat.com>
10820         PR bootstrap/71471
10821         * pretty-print.c (pp_indent): Specify that %p is printed in a
10822         host-dependent manner.
10823         (test_pp_format): Remove the test for %p.
10825 2016-06-09  Maciej W. Rozycki  <macro@imgtec.com>
10827         * config/mips/mips.c (mips_output_jump): Fix formatting.
10829 2016-06-09  Richard Biener  <rguenther@suse.de>
10831         PR tree-optimization/71462
10832         * tree-ssa-loop-manip.c (find_uses_to_rename): Guard against
10833         removed blocks.
10835 2016-06-09  Martin Liska  <mliska@suse.cz>
10837         * predict.c (dump_prediction): Add new argument.
10838         (enum predictor_reason): New enum.
10839         (struct predictor_hash): New struct.
10840         (predictor_hash::hash): New function.
10841         (predictor_hash::equal): Likewise.
10842         (not_removed_prediction_p): New function.
10843         (prune_predictions_for_bb): Likewise.
10844         (combine_predictions_for_bb): Prune predictions.
10846 2016-06-09  Martin Liska  <mliska@suse.cz>
10848         * predict.c (filter_predictions): New function.
10849         (remove_predictions_associated_with_edge): Use the filter
10850         function.
10851         (equal_edge_p): New function.
10853 2016-06-09  Stefan Bruens  <stefan.bruens@rwth-aachen.de>
10855         * doc/invoke.texi (ARM Options): Use lexicographical ordering.
10856         Correct usage of @samp vs @option, add @samp where appropriate.
10857         Add -march={armv6k,armv6z,arm6zk}, remove -march=ep9312.
10858         Add armv6s-m and document it, as it is no official ARM name.
10860 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10862         * ifcvt.c (struct noce_if_info): Add transform_name field.
10863         (noce_try_move): Set if_info->transform_name to the function name.
10864         (noce_try_ifelse_collapse): Likewise.
10865         (noce_try_store_flag): Likewise.
10866         (noce_try_inverse_constants): Likewise.
10867         (noce_try_store_flag_constants): Likewise.
10868         (noce_try_addcc): Likewise.
10869         (noce_try_store_flag_mask): Likewise.
10870         (noce_try_cmove): Likewise.
10871         (noce_try_cmove_arith): Likewise.
10872         (noce_try_minmax): Likewise.
10873         (noce_try_abs): Likewise.
10874         (noce_try_sign_mask): Likewise.
10875         (noce_try_bitop): Likewise.
10876         (noce_convert_multiple_sets): Likewise.
10877         (noce_process_if_block): Print if_info->transform_name to
10878         dump_file if transformation succeeded.
10880 2016-06-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
10882         * config/arm/cortex-a57.md (cortex_a57_alu):
10883         Handle csel type.
10885 2016-06-08  Martin Sebor  <msebor@redhat.com>
10886             Jakub Jelinek  <jakub@redhat.com>
10888         PR c++/70507
10889         PR c/68120
10890         * builtins.def (BUILT_IN_ADD_OVERFLOW_P, BUILT_IN_SUB_OVERFLOW_P,
10891         BUILT_IN_MUL_OVERFLOW_P): New builtins.
10892         * builtins.c: Include gimple-fold.h.
10893         (fold_builtin_arith_overflow): Handle
10894         BUILT_IN_{ADD,SUB,MUL}_OVERFLOW_P.
10895         (fold_builtin_3): Likewise.
10896         * doc/extend.texi (Integer Overflow Builtins): Document
10897         __builtin_{add,sub,mul}_overflow_p.
10899 2016-06-08  Jose E. Marchesi  <jose.marchesi@oracle.com>
10901         * config/sparc/driver-sparc.c (cpu_names): Fix the entry for the
10902         SPARC-M7 and add an entry for SPARC-S7 cpus (Sonoma).
10904 2016-06-08  Alan Lawrence  <alan.lawrence@arm.com>
10906         * config/aarch64/aarch64.c (aarch64_function_arg_alignment):
10907         Rewrite, looking one level down for records and arrays.
10909 2016-06-08  David Malcolm  <dmalcolm@redhat.com>
10911         * pretty-print.c: Include "selftest.h".
10912         (pp_format): Fix comment.
10913         (identifier_to_locale): Likewise.
10914         (selftest::test_basic_printing): New function.
10915         (selftest::assert_pp_format): New function.
10916         (selftest::test_pp_format): New function.
10917         (selftest::pretty_print_c_tests): New function.
10918         * selftest-run-tests.c (selftest::run_tests): Call
10919         selftest::pretty_print_c_tests.
10920         * selftest.h (pretty_print_c_tests): New declaration.
10922 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
10924         * invoke.texi (max-loop-headers-insns): Document.
10925         * params.def (PARAM_MAX_LOOP_HEADER_INSNS): New.
10926         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Update comment.
10927         (ch_base::copy_headers): Use PARAM_MAX_LOOP_HEADER_INSNS.
10929 2016-06-08  Richard Biener  <rguenther@suse.de>
10931         * tree-vect-stmts.c (vectorizable_load): Remove restrictions
10932         on strided SLP loads and fall back to scalar loads in case
10933         we can't chunk them.
10935 2016-06-08  Richard Biener  <rguenther@suse.de>
10937         PR tree-optimization/71452
10938         * tree-ssa.c (non_rewritable_lvalue_p): Make sure that the
10939         type used for the SSA rewrite has enough precision to cover
10940         the dynamic type of the location.
10942 2016-06-08  Jakub Jelinek  <jakub@redhat.com>
10943             Richard Biener  <rguenther@suse.de>
10945         PR c++/71448
10946         * fold-const.c (fold_comparison): Handle CONSTANT_CLASS_P (base0)
10947         the same as DECL_P (base0) for indirect_base0.  Use equality_code
10948         in one further place.
10950 2016-06-08  Richard Sandiford  <richard.sandiford@arm.com>
10952         * expmed.c (store_bit_field_1): Do not restrict a multiword op0
10953         to one word if the field is known to overlap other words.
10954         (extract_bit_field_1): Likewise.
10955         (store_split_bit_field): Remove compensating code.
10956         (extract_split_bit_field): Likewise.
10958 2016-06-08  Bernd Schmidt  <bschmidt@redhat.com>
10960         PR debug/71432
10961         PR ada/71413
10962         * tree-ssa-strlen.c (handle_builtin_memcmp): Ignore debug insns.
10964 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10966         * config/aarch64/aarch64-builtins.def (faddp): New builtins for modes in
10967         VDQF.
10968         * config/aarch64/aarch64-simd.md (aarch64_faddp<mode>): New.
10969         (arch64_addpv4sf): Delete.
10970         (reduc_plus_scal_v4sf): Use "gen_aarch64_faddpv4sf" instead of
10971         "gen_aarch64_addpv4sf".
10972         * config/aarch64/arm_neon.h (vpadd_f32): Remove inline assembly.  Use
10973         builtin.
10974         (vpadds_f32): Likewise.
10975         (vpaddq_f32): Likewise.
10976         (vpaddq_f64): Likewise.
10978 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10980         * config/aarch64/aarch64-builtins.def (fabd): New builtins for modes
10981         VALLF.
10982         * config/aarch64/aarch64-simd.md (fabd<mode>_3): Extend modes from VDQF
10983         to VALLF.  Rename to "fabd<mode>3".
10984         "*fabd_scalar<mode>3): Delete.
10985         * config/aarch64/arm_neon.h (vabds_f32): Remove inline assembly.
10986         Use builtin.
10987         (vabdd_f64): Likewise.
10988         (vabd_f32): Likewise.
10989         (vabd_f64): Likewise.
10990         (vabdq_f32): Likewise.
10991         (vabdq_f64): Likewise.
10993 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
10995         * config/aarch64/aarch64-builtins.def (rsqrts): New builtins for modes
10996         VALLF.
10997         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_<mode>3): Rename to
10998         "aarch64_rsqrts<mode>".
10999         * config/aarch64/aarch64.c (get_rsqrts_type): Update gen* name.
11000         * config/aarch64/arm_neon.h (vrsqrtss_f32): Remove inline assembly.  Use
11001         builtin.
11002         (vrsqrtsd_f64): Likewise.
11003         (vrsqrts_f32): Likewise.
11004         (vrsqrts_f64): Likewise.
11005         (vrsqrtsq_f32): Likewise.
11006         (vrsqrtsq_f64): Likewise.
11008 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11010         * config/aarch64/aarch64-builtins.def (rsqrte): New builtins for modes
11011         VALLF.
11012         * config/aarch64/aarch64-simd.md (aarch64_rsqrte_<mode>2): Rename to
11013         "aarch64_rsqrte<mode>".
11014         * config/aarch64/aarch64.c (get_rsqrte_type): Update gen* name.
11015         * config/aarch64/arm_neon.h (vrsqrts_f32): Remove inline assembly.  Use
11016         builtin.
11017         (vrsqrted_f64): Likewise.
11018         (vrsqrte_f32): Likewise.
11019         (vrsqrte_f64): Likewise.
11020         (vrsqrteq_f32): Likewise.
11021         (vrsqrteq_f64): Likewise.
11023 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11025         * config/aarch64/aarch64-builtins.def (scvtf): Register vector modes.
11026         (ucvtf): Likewise.
11027         (fcvtzs): Likewise.
11028         (fcvtzu): Likewise.
11029         * config/aarch64/aarch64-simd.md
11030         (<FCVT_F2FIXED:fcvt_fixed_insn><VDQF:mode>3): New.
11031         (<FCVT_FIXED2F:fcvt_fixed_insn><VDQ_SDI:mode>3): Likewise.
11032         * config/aarch64/arm_neon.h (vcvt_n_f32_s32): Remove inline assembly.
11033         Use builtin.
11034         (vcvt_n_f32_u32): Likewise.
11035         (vcvt_n_s32_f32): Likewise.
11036         (vcvt_n_u32_f32): Likewise.
11037         (vcvtq_n_f32_s32): Likewise.
11038         (vcvtq_n_f32_u32): Likewise.
11039         (vcvtq_n_f64_s64): Likewise.
11040         (vcvtq_n_f64_u64): Likewise.
11041         (vcvtq_n_s32_f32): Likewise.
11042         (vcvtq_n_s64_f64): Likewise.
11043         (vcvtq_n_u32_f32): Likewise.
11044         (vcvtq_n_u64_f64): Likewise.
11045         * config/aarch64/iterators.md (VDQ_SDI): New mode iterator.
11046         (VSDQ_SDI): Likewise.
11047         (fcvt_target): Support V4DI, V4SI and V2SI.
11048         (FCVT_TARGET): Likewise.
11050 2016-06-08  Jiong Wang  <jiong.wang@arm.com>
11052         * config/aarch64/aarch64-builtins.c (TYPES_BINOP_USS): New
11053         (TYPES_BINOP_SUS): Likewise.
11054         (aarch64_simd_builtin_data): Update include file name.
11055         (aarch64_builtins): Likewise.
11056         * config/aarch64/aarch64-simd-builtins.def (scvtf): New entries
11057         for conversion between scalar float-point and fixed-point.
11058         (ucvtf): Likewise.
11059         (fcvtzs): Likewise.
11060         (fcvtzu): Likewise.
11061         * config/aarch64/aarch64.md
11062         (<FCVT_F2FIXED:fcvt_fixed_insn><GPF:mode>3: New
11063         pattern for conversion between scalar float to fixed-pointer.
11064         (<FCVT_FIXED2F:fcvt_fixed_insn><GPI:mode>: Likewise.
11065         (UNSPEC_FCVTZS): New UNSPEC enumeration.
11066         (UNSPEC_FCVTZU): Likewise.
11067         (UNSPEC_SCVTF): Likewise.
11068         (UNSPEC_UCVTF): Likewise.
11069         * config/aarch64/arm_neon.h (vcvtd_n_f64_s64): Remove inline assembly.
11070         Use builtin.
11071         (vcvtd_n_f64_u64): Likewise.
11072         (vcvtd_n_s64_f64): Likewise.
11073         (vcvtd_n_u64_f64): Likewise.
11074         (vcvtd_n_f32_s32): Likewise.
11075         (vcvts_n_f32_u32): Likewise.
11076         (vcvtd_n_s32_f32): Likewise.
11077         (vcvts_n_u32_f32): Likewise.
11078         * config/aarch64/iterators.md (fcvt_target): Support integer to float
11079         mapping.
11080         (FCVT_TARGET): Likewise.
11081         (FCVT_FIXED2F): New iterator.
11082         (FCVT_F2FIXED): Likewise.
11083         (fcvt_fixed_insn): New define_int_attr.
11085 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11087         * predict.c (pass_strip_predict_hints::execute): Cleanup CFG if
11088         some statements was removed.
11090 2016-06-08  Alan Hayward  <alan.hayward@arm.com>
11092         * tree-vect-data-refs.c (vect_analyze_data_refs): Remove debug newline.
11093         * tree-vect-loop-manip.c (slpeel_make_loop_iterate_ntimes): likewise.
11094         (vect_can_advance_ivs_p): likewise.
11095         (vect_update_ivs_after_vectorizer): likewise.
11096         * tree-vect-loop.c (vect_determine_vectorization_factor): likewise.
11097         (vect_analyze_scalar_cycles_1): likewise.
11098         (vect_analyze_loop_operations): likewise.
11099         (report_vect_op): likewise.
11100         (vect_is_slp_reduction): likewise.
11101         (vect_is_simple_reduction): likewise.
11102         (get_initial_def_for_induction): likewise.
11103         (vect_transform_loop): likewise.
11104         * tree-vect-patterns.c (vect_recog_dot_prod_pattern): likewise.
11105         (vect_recog_sad_pattern): likewise.
11106         (vect_recog_widen_sum_pattern): likewise.
11107         (vect_recog_widening_pattern): likewise.
11108         (vect_recog_divmod_pattern): likewise.
11109         * tree-vect-slp.c (vect-build-slp_tree_1): likewise.
11110         (vect_analyze_slp_instance): likewise.
11111         (vect_transform_slp_perm_load): likewise.
11112         (vect_schedule_slp_instance): likewise.
11114 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11116         * predict.c (predict_iv_comparison): Mention that heuristics is broken.
11117         (return_prediction): PRED_CONST_RETURN predict return as not taken.
11118         * predict.def (PRED_CONTINUE): Change hitrate 50->67
11119         (PRED_LOOP_BRANCH): Document predictor as broken.
11120         (PRED_LOOP_EXIT): Change hitrate 91->92.
11121         (PRED_LOOP_EXTRA_EXIT): Change hitrate 91->83.
11122         (PRED_POINTER, PRED_TREE_POINTER): Change hitrate 85->70.
11123         (PRED_OPCODE_POSITIVE): Change hitrate 79->64.
11124         (PRED_OPCODE_NONEQUAL): Change hitrate 91->66.
11125         (PRED_TREE_OPCODE_POSITIVE): Change hitrate 73->64
11126         (PRED_TREE_OPCODE_NONEQUAL): Chnage hitrate 72->66
11127         (PRED_CALL): Chane hitrate 71->67.
11128         (PRED_TREE_EARLY_RETURN): Document issues, change hitrate 61->54.
11129         (PRED_GOTO): Document as unused right now.
11130         (PRED_CONST_RETURN): Change hitrate 67->69
11131         (PRED_NEGATIVE_RETURN): Change hitrate 96->98
11132         (PRED_NULL_RETURN): Change hitrate 91->90.
11133         (PRED_LOOP_IV_COMPARE_GUESS): Change hitrate to 98.
11134         (PRED_FORTRAN_FAIL_ALLOC): Change hitrate to 62; document issues.
11135         (PRED_FORTRAN_SIZE_ZERO): Change hitrate to 99.
11137 2016-06-07  Bill Seurer  <seurer@linux.vnet.ibm.com>
11139         * config/rs6000/altivec.h: Add __builtin_vec_mul.
11140         * config/rs6000/rs6000-builtin.def (vec_mul): Change vec_mul to a
11141         special case Altivec builtin.
11142         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
11143         VSX_BUILTIN_VEC_MUL (replaced with special case code).
11144         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
11145         code for ALTIVEC_BUILTIN_VEC_MUL.
11146         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
11147         for __builtin_vec_mul.
11149 2016-06-07  Peter Bergner  <bergner@vnet.ibm.com>
11151         * doc/invoke.texi (RS/6000 and PowerPC Options): Document -mhtm and
11152         -mno-htm.
11154 2016-06-07  David Malcolm  <dmalcolm@redhat.com>
11156         * spellcheck.c (selftest::test_find_closest_string): New function.
11157         (spellcheck_c_tests): Call the above.
11159 2016-06-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11161         * simplify-rtx.c (simplify_cond_clz_ctz): Delete 'mode' local variable.
11163 2016-06-07  Jakub Jelinek  <jakub@redhat.com>
11165         * config/i386/sse.md (avx_vec_concat<mode>): Add v=v,vm and
11166         Yv=Yv,C alternatives.
11168 2016-06-07  Richard Biener  <rguenther@suse.de>
11170         PR c/61564
11171         * common.opt (ffast-math): Make Optimization.
11173 2016-06-07  Simon Dardis  <simon.dardis@imgtec.com>
11174             Prachi Godbole  <prachi.godbole@imgtec.com>
11176         * config/mips/p5600.md (p5600_fpu_fadd): Remove checking for
11177         `fabs' and `fneg' type attributes.
11178         (p5600_fpu_fabs): Add `fmove' to the comment.
11180 2016-06-07  Jan Hubicka  <hubicka@ucw.cz>
11182         * gimple.c: Include builtins.h
11183         (gimple_inexpensive_call_p): New function.
11184         * gimple.h (gimple_inexpensive_call_p): Declare.
11185         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use it.
11186         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Likewise;
11187         fix formatting.
11189 2016-06-07  Paolo Carlini  <paolo.carlini@oracle.com>
11191         * diagnostic.c (diagnostic_impl, diagnostic_n_impl): New.
11192         (inform, inform_at_rich_loc, inform_n, warning, warning_at,
11193         warning_at_rich_loc, warning_n, pedwarn, permerror,
11194         permerror_at_rich_loc, error, error_n, error_at, error_at_rich_loc,
11195         sorry, fatal_error, internal_error, internal_error_no_backtrace):
11196         Use the above.
11198 2016-06-07  Richard Biener  <rguenther@suse.de>
11200         PR tree-optimization/71428
11201         * tree-ssa-math-opts.c (perform_symbolic_merge): Properly distinguish
11202         BIT_FIELD_REF op vs. load.
11204 2016-06-07  Richard Biener  <rguenther@suse.de>
11206         PR middle-end/71423
11207         * match.pd ((X | ~Y) -> Y <= X): Properly invert the comparison
11208         for signed ops.
11210 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11212         * config/pa/pa.md (call): Generate indirect long calls to non-local
11213         functions on TARGET_64BIT.
11214         (call_value): Likewise.
11216 2016-06-06  John David Anglin  <danglin@gcc.gnu.org>
11218         * config/pa/pa.md (call_val_reg_64bit): Remove "reg: DI " clobber from
11219         pattern and subsequent splitters.
11220         (call_val_reg_64bit_post_reload): Likewise.
11222 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11224         PR middle-end/71408
11225         * tree-ssa-reassoc.c (zero_one_operation): Fix NEGATE_EXPR operand for
11226         propagate_op_to_single_use.
11228 2016-06-07  Kugan Vivekanandarajah  <kuganv@linaro.org>
11230         PR middle-end/71281
11231         * tree-ssa-reassoc.c (reassociate_bb): Set uid for negate stmt.
11233 2016-06-07  Uros Bizjak  <ubizjak@gmail.com>
11235         * config/i386/i386.h (enum ix86_enitity): Add X86_DIRFLAG.
11236         (enum x86_dirflag_state): New enum.
11237         (NUM_MODES_FOR_MODE_SWITCHING): Add X86_DIRFLAG_ANY.
11238         (machine_function): Remove needs_cld.
11239         (ix86_current_function_needs_cld): Remove.
11240         * config/i386/i386.c (ix86_set_func_type): Set
11241         ix86_optimize_mode_switching[X86_DIRFLAG] to 1.
11242         (ix86_expand_prologue): Do not emit CLD here.
11243         (ix86_dirflag_mode_needed): New function.
11244         (ix86_dirflag_mode_entry): Ditto.
11245         (ix86_mode_needed): Handle X86_DIRFLAG entity.
11246         (ix86_mode_after): Ditto.
11247         (ix86_mode_entry): Ditto.
11248         (ix86_mode_exit): Ditto.
11249         (ix86_emit_mode_set): Ditto.
11250         * config/i386/i386.md (strmov_singleop): Set
11251         ix86_optimize_mode_switching[X86_DIRFLAG] to 1 for TARGET_CLD.
11252         Do not set ix86_current_function_needs_cld.
11253         (rep_mov): Ditto.
11254         (strset_singleop): Ditto.
11255         (rep_stos): Ditto.
11256         (cmpstrnqi_nz_1): Ditto.
11257         (cmpstrnqi_1): Ditto.
11258         (strlenqi_1): Ditto.
11260 2016-06-06  Jakub Jelinek  <jakub@redhat.com>
11262         PR tree-optimization/71259
11263         * tree-vect-slp.c (vect_get_constant_vectors): For
11264         VECTOR_BOOLEAN_TYPE_P, return all ones constant instead of
11265         one for constant op, and use COND_EXPR for non-constant.
11267 2016-06-06  David Malcolm  <dmalcolm@redhat.com>
11269         * Makefile.in (OBJS): Add function-tests.o,
11270         hash-map-tests.o, hash-set-tests.o, rtl-tests.o,
11271         selftest-run-tests.o.
11272         (OBJS-libcommon): Add selftest.o.
11273         (OBJS-libcommon-target): Add selftest.o.
11274         (all.internal): Add "selftest".
11275         (all.cross): Likewise.
11276         (selftest): New phony target.
11277         (s-selftest): New target.
11278         (selftest-gdb): New phony target.
11279         (COLLECT2_OBJS): Add selftest.o.
11280         * bitmap.c: Include "selftest.h".
11281         (selftest::test_gc_alloc): New function.
11282         (selftest::test_set_range): New function.
11283         (selftest::test_clear_bit_in_middle): New function.
11284         (selftest::test_copying): New function.
11285         (selftest::test_bitmap_single_bit_set_p): New function.
11286         (selftest::bitmap_c_tests): New function.
11287         * common.opt (fself-test): New.
11288         * diagnostic-show-locus.c: Include "selftest.h".
11289         (make_range): New function.
11290         (test_range_contains_point_for_single_point): New function.
11291         (test_range_contains_point_for_single_line): New function.
11292         (test_range_contains_point_for_multiple_lines): New function.
11293         (assert_eq): New function.
11294         (test_get_line_width_without_trailing_whitespace): New function.
11295         (selftest::diagnostic_show_locus_c_tests): New function.
11296         * et-forest.c: Include "selftest.h".
11297         (selftest::test_single_node): New function.
11298         (selftest::test_simple_tree): New function.
11299         (selftest::test_disconnected_nodes): New function.
11300         (selftest::et_forest_c_tests): New function.
11301         * fold-const.c: Include "selftest.h".
11302         (selftest::assert_binop_folds_to_const): New function.
11303         (selftest::assert_binop_folds_to_nonlvalue): New function.
11304         (selftest::test_arithmetic_folding): New function.
11305         (selftest::fold_const_c_tests): New function.
11306         * function-tests.c: New file.
11307         * gimple.c: Include "selftest.h".
11308         Include "gimple-pretty-print.h".
11309         (selftest::verify_gimple_pp): New function.
11310         (selftest::test_assign_single): New function.
11311         (selftest::test_assign_binop): New function.
11312         (selftest::test_nop_stmt): New function.
11313         (selftest::test_return_stmt): New function.
11314         (selftest::test_return_without_value): New function.
11315         (selftest::gimple_c_tests): New function.
11316         * hash-map-tests.c: New file.
11317         * hash-set-tests.c: New file.
11318         * input.c: Include "selftest.h".
11319         (selftest::assert_loceq): New function.
11320         (selftest::test_accessing_ordinary_linemaps): New function.
11321         (selftest::test_unknown_location): New function.
11322         (selftest::test_builtins): New function.
11323         (selftest::test_reading_source_line): New function.
11324         (selftest::input_c_tests): New function.
11325         * rtl-tests.c: New file.
11326         * selftest-run-tests.c: New file.
11327         * selftest.c: New file.
11328         * selftest.h: New file.
11329         * spellcheck.c: Include "selftest.h".
11330         (selftest::levenshtein_distance_unit_test_oneway): New function,
11331         adapted from testsuite/gcc.dg/plugin/levenshtein_plugin.c.
11332         (selftest::levenshtein_distance_unit_test): Likewise.
11333         (selftest::spellcheck_c_tests): Likewise.
11334         * toplev.c: Include selftest.h.
11335         (toplev::run_self_tests): New.
11336         (toplev::main): Handle -fself-test.
11337         * toplev.h (toplev::run_self_tests): New.
11338         * tree.c: Include "selftest.h".
11339         (selftest::test_integer_constants): New function.
11340         (selftest::test_identifiers): New function.
11341         (selftest::test_labels): New function.
11342         (selftest::tree_c_tests): New function.
11343         * tree-cfg.c: Include "selftest.h".
11344         (selftest::push_fndecl): New function.
11345         (selftest::test_linear_chain): New function.
11346         (selftest::test_diamond): New function.
11347         (selftest::test_fully_connected): New function.
11348         (selftest::tree_cfg_c_tests): New function.
11349         * vec.c: Include "selftest.h".
11350         (selftest::safe_push_range): New function.
11351         (selftest::test_quick_push): New function.
11352         (selftest::test_safe_push): New function.
11353         (selftest::test_truncate): New function.
11354         (selftest::test_safe_grow_cleared): New function.
11355         (selftest::test_pop): New function.
11356         (selftest::test_safe_insert): New function.
11357         (selftest::test_ordered_remove): New function.
11358         (selftest::test_unordered_remove): New function.
11359         (selftest::test_block_remove): New function.
11360         (selftest::reverse_cmp): New function.
11361         (selftest::test_qsort): New function.
11362         (selftest::vec_c_tests): New function.c.
11363         * wide-int.cc: Include selftest.h and wide-int-print.h.
11364         (selftest::from_int <wide_int>): New function.
11365         (selftest::from_int <offset_int>): New function.
11366         (selftest::from_int <widest_int>): New function.
11367         (selftest::assert_deceq): New function.
11368         (selftest::assert_hexeq): New function.
11369         (selftest::test_printing <VALUE_TYPE>): New function template.
11370         (selftest::test_ops <VALUE_TYPE>): New function template.
11371         (selftest::test_comparisons <VALUE_TYPE>): New function template.
11372         (selftest::run_all_wide_int_tests <VALUE_TYPE>): New function
11373         template.
11374         (selftest::wide_int_cc_tests): New function.
11376 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11378         PR middle-end/37780
11379         * ifcvt.c (noce_try_ifelse_collapse): New function.
11380         Declare prototype.
11381         (noce_process_if_block): Call noce_try_ifelse_collapse.
11382         * simplify-rtx.c (simplify_cond_clz_ctz): New function.
11383         (simplify_ternary_operation): Use the above to simplify
11384         conditional CLZ/CTZ expressions.
11386 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11388         PR middle-end/37780
11389         * config/aarch64/aarch64.md (ctz<mode>2): Convert to
11390         define_insn_and_split.
11392 2016-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11394         PR middle-end/37780
11395         * config/arm/arm.md (ctzsi2): Convert to define_insn_and_split.
11397 2016-06-06  Bernd Edlinger  <bernd.edlinger@hotmail.de>
11399         PR c/24414
11400         * cfgexpand.c (expand_asm_loc): Remove handling for ADDR_EXPR.
11401         Implicitly clobber memory for basic asm with non-empty assembler
11402         string.  Use targetm.md_asm_adjust also here.
11403         * compare-elim.c (arithmetic_flags_clobber_p): Use asm_noperands here.
11404         * final.c (final_scan_insn): Handle basic asm in PARALLEL block.
11405         * gimple.c (gimple_asm_clobbers_memory_p): Handle basic asm with
11406         non-empty assembler string.
11407         * ira.c (compute_regs_asm_clobbered): Use asm_noperands here.
11408         * recog.c (asm_noperands): Handle basic asm in PARALLEL block.
11409         (decode_asm_operands): Handle basic asm in PARALLEL block.
11410         (extract_insn): Handle basic asm in PARALLEL block.
11411         * doc/extend.texi: Mention new behavior of basic asm.
11412         * config/ia64/ia64 (rtx_needs_barrier): Handle ASM_INPUT here.
11413         * config/pa/pa.c (branch_to_delay_slot_p, branch_needs_nop_p,
11414         branch_needs_nop_p): Use asm_noperands.
11416 2016-06-06  Jose E. Marchesi  <jose.marchesi@oracle.com>
11418         * config/sparc/sparc.md (cpu): Add niagara7 cpu type.
11419         Include the M7 SPARC DFA scheduler.
11420         New attribute v3pipe.
11421         Annotate insns with v3pipe where appropriate.
11422         Define cpu_feature vis4.
11423         Add lzd instruction type and set it on clzdi_sp64 and clzsi_sp64.
11424         Add (V8QI "8") to vbits.
11425         Add insns {add,sub}v8qi3
11426         Add insns ss{add,sub}v8qi3
11427         Add insns us{add,sub}{v8qi,v4hi}3
11428         Add insns {min,max}{v8qi,v4hi,v2si}3
11429         Add insns {minu,maxu}{v8qi,v4hi,v2si}3
11430         Add insns fpcmp{le,gt,ule,ug,ule,ugt}{8,16,32}_vis.
11431         * config/sparc/niagara4.md: Add a comment explaining the
11432         discrepancy between the documented latenty numbers and the
11433         implemented ones.
11434         * config/sparc/niagara7.md: New file.
11435         * configure.ac (HAVE_AS_SPARC5_VIS4): Define if the assembler
11436         supports SPARC5 and VIS 4.0 instructions.
11437         * configure: Regenerate.
11438         * config.in: Likewise.
11439         * config.gcc: niagara7 is a supported cpu in sparc*-*-* targets.
11440         * config/sparc/sol2.h (ASM_CPU32_DEFAUILT_SPEC): Set for
11441         TARGET_CPU_niagara7.
11442         (ASM_CPU64_DEFAULT_SPEC): Likewise.
11443         (CPP_CPU_SPEC): Handle niagara7.
11444         (ASM_CPU_SPEC): Likewise.
11445         * config/sparc/sparc-opts.h (processor_type): Add
11446         PROCESSOR_NIAGARA7.
11447         (mvis4): New option.
11448         * config/sparc/sparc.h (TARGET_CPU_niagara7): Define.
11449         (AS_NIAGARA7_FLAG): Define.
11450         (ASM_CPU64_DEFAULT_SPEC): Set for niagara7.
11451         (CPP_CPU64_DEFAULT_SPEC): Likewise.
11452         (CPP_CPU_SPEC): Handle niagara7.
11453         (ASM_CPU_SPEC): Likewise.
11454         * config/sparc/sparc.c (niagara7_costs): Define.
11455         (sparc_option_override): Handle niagara7 and adjust cache-related
11456         parameters with better values for niagara cpus.  Also support VIS4.
11457         (sparc32_initialize_trampoline): Likewise.
11458         (sparc_use_sched_lookahead): Likewise.
11459         (sparc_issue_rate): Likewise.
11460         (sparc_register_move_cost): Likewise.
11461         (dump_target_flag_bits): Support VIS4.
11462         (sparc_vis_init_builtins): Likewise.
11463         (sparc_builtins): Likewise.
11464         * config/sparc/sparc-c.c (sparc_target_macros): Define __VIS__ for
11465         VIS4 4.0.
11466         * config/sparc/driver-sparc.c (cpu_names): Add SPARC-M7 and
11467         UltraSparc M7.
11468         * config/sparc/sparc.opt (sparc_processor_type): New value
11469         niagara7.
11470         * config/sparc/visintrin.h (__attribute__): Prototypes for the
11471         VIS4 builtins.
11472         * doc/invoke.texi (SPARC Options): Document -mcpu=niagara7 and
11473         -mvis4.
11474         * doc/extend.texi (SPARC VIS Built-in Functions): Document the
11475         VIS4 builtins.
11477 2016-06-06  Jonathan Wakely  <jwakely@redhat.com>
11479         * doc/sourcebuild.texi (Directives): Remove extra closing braces.
11481 2016-06-06  Richard Biener  <rguenther@suse.de>
11483         PR tree-optimization/71398
11484         * tree-ssa-loop-ivcanon.c (unloop_loops): First unloop, then
11485         remove edges.
11487 2016-06-05  James Bowman  <james.bowman@ftdichip.com>
11489         * config/ft32/ft32.c (ft32_setup_incoming_varargs,
11490         ft32_expand_prolog, ft32_expand_epilogue):
11491         Handle pretend_args.
11492         * config/ft32/ft32.h: Remove OUTGOING_REG_PARM_STACK_SPACE.
11493         * config/ft32/ft32.md: Add pretend_returner.
11495 2016-06-06  Uros Bizjak  <ubizjak@gmail.com>
11497         PR target/71389
11498         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
11499         Copy op1 RTX to avoid invalid sharing.
11500         (ix86_expand_vector_move_misalign): Ditto.
11502 2016-06-05  John David Anglin  <danglin@gcc.gnu.org>
11504         * expr.c (move_by_pieces_d::generate): Mark mode parameter with
11505         ATTRIBUTE_UNUSED.
11507 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
11509         * predict.c (predicted_by_loop_heuristics_p): New function.
11510         (predict_iv_comparison): Use it.
11511         (predict_loops): Walk from innermost loops; do not predict edges
11512         leaving multiple loops multiple times; implement
11513         PRED_LOOP_ITERATIONS_MAX heuristics.
11514         * predict.def (PRED_LOOP_ITERATIONS_MAX): New predictor.
11516 2016-06-05  Jan Hubicka  <hubicka@ucw.cz>
11518         * cfg.c (check_bb_profile): Do not report mismatched profiles when
11519         only edges out of BB are EH edges.
11521 2016-06-04  Martin Sebor  <msebor@redhat.com>
11522             Marcin Baczyński  <marbacz@gmail.com>
11524         PR c/48116
11525         * doc/invoke.texi (-Wreturn-type): Mention not warning on return with
11526         a void expression in a void function.
11528 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
11530         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Do not check
11531         aux; dump reasons of decisions.
11532         (should_duplicate_loop_header_p): Likewise.
11533         (do_while_loop_p): Likewise.
11534         (ch_base::copy_headers): Dump asi num insns duplicated.
11536 2016-06-04  Jakub Jelinek  <jakub@redhat.com>
11538         PR tree-optimization/71405
11539         * tree-ssa.c (execute_update_addresses_taken): For clobber with
11540         incompatible type, build a new clobber with the right type instead
11541         of building a VIEW_CONVERT_EXPR around it.
11543 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
11545         PR tree-optimization/52171
11546         * config/sh/sh.c (sh_use_by_pieces_infrastructure_p): Use
11547         by_pieces_ninsns instead of move_by_pieces_ninsns.
11549 2016-06-04  Oleg Endo  <olegendo@gcc.gnu.org>
11551         * config/sh/sh.c (sh_print_operand_address): Don't use hardcoded 'r0'
11552         for reg+reg addressing mode.
11554 2016-06-03  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
11556         * rs6000-c.c (c/c-tree.h): Add #include.
11557         (altivec_resolve_overloaded_builtin): Handle ARRAY_TYPE arguments
11558         in C++ when found in the base position of vec_ld or vec_st.
11560 2016-06-03  Jan Hubicka  <hubicka@ucw.cz>
11562         * tree-ssa-loop-niter.c (estimate_numbers_of_iterations_loop): Avoid
11563         use of profile unless profile status is PROFILE_READ.
11564         * profile.c (compute_branch_probabilities): Set profile status
11565         only after reporting predictor hitrates.
11567 2016-06-03  Joseph Myers  <joseph@codesourcery.com>
11569         PR target/71276
11570         PR target/71277
11571         * common.opt (ffp-int-builtin-inexact): New option.
11572         * doc/invoke.texi (-fno-fp-int-builtin-inexact): Document.
11573         * doc/md.texi (floor@var{m}2, btrunc@var{m}2, round@var{m}2)
11574         (ceil@var{m}2): Document dependence on this option.
11575         * ipa-inline-transform.c (inline_call): Handle
11576         flag_fp_int_builtin_inexact.
11577         * ipa-inline.c (can_inline_edge_p): Likewise.
11578         * config/i386/i386.md (rintxf2): Do not test
11579         flag_unsafe_math_optimizations.
11580         (rint<mode>2_frndint): New define_insn.
11581         (rint<mode>2): Do not test flag_unsafe_math_optimizations for 387
11582         or !flag_trapping_math for SSE.  Just use gen_rint<mode>2_frndint
11583         for 387 instead of extending and truncating.
11584         (frndintxf2_<rounding>): Test flag_fp_int_builtin_inexact ||
11585         !flag_trapping_math instead of flag_unsafe_math_optimizations.
11586         Change to frndint<mode>2_<rounding>.
11587         (frndintxf2_<rounding>_i387): Likewise.  Change to
11588         frndint<mode>2_<rounding>_i387.
11589         (<rounding_insn>xf2): Likewise.
11590         (<rounding_insn><mode>2): Test flag_fp_int_builtin_inexact ||
11591         !flag_trapping_math instead of flag_unsafe_math_optimizations for
11592         x87.  Test TARGET_ROUND || !flag_trapping_math ||
11593         flag_fp_int_builtin_inexact instead of !flag_trapping_math for
11594         SSE.  Use ROUND_NO_EXC in constant operand of
11595         gen_sse4_1_round<mode>2.  Just use gen_frndint<mode>2_<rounding>
11596         for 387 instead of extending and truncating.
11598 2016-06-03  H.J. Lu  <hongjiu.lu@intel.com>
11599             Julia Koval  <julia.koval@intel.com>
11601         PR target/66960
11602         PR target/67630
11603         PR target/67634
11604         PR target/67841
11605         PR target/68037
11606         PR target/68618
11607         PR target/68661
11608         PR target/69575
11609         PR target/69596
11610         PR target/69734
11611         * config/i386/i386-protos.h (ix86_epilogue_uses): New prototype.
11612         * config/i386/i386.c (ix86_conditional_register_usage): Preserve
11613         all registers, except for function return registers if there are
11614         no caller-saved registers.
11615         (ix86_set_func_type): New function.
11616         (ix86_set_current_function): Call ix86_set_func_type to set
11617         no_caller_saved_registers and func_type.  Call reinit_regs if
11618         caller-saved registers are changed.  Don't allow MPX, SSE, MMX
11619         nor x87 instructions in interrupt handler nor function with
11620         no_caller_saved_registers attribute.
11621         (ix86_function_ok_for_sibcall): Return false if there are no
11622         caller-saved registers.
11623         (type_natural_mode): Don't warn ABI change for MMX in interrupt
11624         handler.
11625         (ix86_function_arg_advance): Skip for callee in interrupt handler.
11626         (ix86_function_arg): Return special arguments in interrupt handler.
11627         (ix86_promote_function_mode): Promote pointer to word_mode only
11628         for normal functions.
11629         (ix86_can_use_return_insn_p): Don't use `ret' instruction in
11630         interrupt handler.
11631         (ix86_epilogue_uses): New function.
11632         (ix86_hard_regno_scratch_ok): Likewise.
11633         (ix86_save_reg): Preserve all registers in interrupt handler
11634         after reload.  Preserve all registers, except for function return
11635         registers, if there are no caller-saved registers after reload.
11636         (find_drap_reg): Always use callee-saved register if there are
11637         no caller-saved registers.
11638         (ix86_minimum_incoming_stack_boundary): Return MIN_STACK_BOUNDARY
11639         for interrupt handler.
11640         (ix86_expand_prologue): Don't allow DRAP in interrupt handler.
11641         Emit cld instruction if stringops are used in interrupt handler
11642         or interrupt handler isn't a leaf function.
11643         (ix86_expand_epilogue): Generate interrupt return for interrupt
11644         handler and pop the 'ERROR_CODE' off the stack before interrupt
11645         return in exception handler.
11646         (ix86_expand_call): Disallow calling interrupt handler directly.
11647         If there are no caller-saved registers, mark all registers that
11648         are clobbered by the call which returns as clobbered.
11649         (ix86_handle_no_caller_saved_registers_attribute): New function.
11650         (ix86_handle_interrupt_attribute): Likewise.
11651         (ix86_attribute_table): Add interrupt and no_caller_saved_registers
11652         attributes.
11653         (TARGET_HARD_REGNO_SCRATCH_OK): Likewise.
11654         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use argument
11655         accumulation in interrupt function if stack may be realigned to
11656         avoid DRAP.
11657         (EPILOGUE_USES): New.
11658         (function_type): New enum.
11659         (machine_function): Add func_type and no_caller_saved_registers.
11660         * config/i386/i386.md (UNSPEC_INTERRUPT_RETURN): New.
11661         (interrupt_return): New pattern.
11662         * doc/extend.texi: Document x86 interrupt and
11663         no_caller_saved_registers attributes.
11665 2016-06-03  Bernd Schmidt  <bschmidt@redhat.com>
11667         PR tree-optimization/52171
11668         * builtins.c (expand_cmpstrn_or_cmpmem): Delete, moved elsewhere.
11669         (expand_builtin_memcmp): New arg RESULT_EQ.  All callers changed.
11670         Look for constant strings.  Move some code to emit_block_cmp_hints
11671         and use it.
11672         * builtins.def (BUILT_IN_MEMCMP_EQ): New.
11673         * defaults.h (COMPARE_MAX_PIECES): New macro.
11674         * expr.c (move_by_pieces_d, store_by_pieces_d): Remove old structs.
11675         (move_by_pieces_1, store_by_pieces_1, store_by_pieces_2): Remvoe.
11676         (clear_by_pieces_1): Don't declare.  Move definition before use.
11677         (can_do_by_pieces): New static function.
11678         (can_move_by_pieces): Use it.  Return bool.
11679         (by_pieces_ninsns): Renamed from move_by_pieces_ninsns.  New arg
11680         OP.  All callers changed.  Handle COMPARE_BY_PIECES.
11681         (class pieces_addr); New.
11682         (pieces_addr::pieces_addr, pieces_addr::decide_autoinc,
11683         pieces_addr::adjust, pieces_addr::increment_address,
11684         pieces_addr::maybe_predec, pieces_addr::maybe_postinc): New member
11685         functions for it.
11686         (class op_by_pieces_d): New.
11687         (op_by_pieces_d::op_by_pieces_d, op_by_pieces_d::run): New member
11688         functions for it.
11689         (class move_by_pieces_d, class compare_by_pieces_d,
11690         class store_by_pieces_d): New subclasses of op_by_pieces_d.
11691         (move_by_pieces_d::prepare_mode, move_by_pieces_d::generate,
11692         move_by_pieces_d::finish_endp, store_by_pieces_d::prepare_mode,
11693         store_by_pieces_d::generate, store_by_pieces_d::finish_endp,
11694         compare_by_pieces_d::generate, compare_by_pieces_d::prepare_mode,
11695         compare_by_pieces_d::finish_mode): New member functions.
11696         (compare_by_pieces, emit_block_cmp_via_cmpmem): New static
11697         functions.
11698         (expand_cmpstrn_or_cmpmem): Moved here from builtins.c.
11699         (emit_block_cmp_hints): New function.
11700         (move_by_pieces, store_by_pieces, clear_by_pieces): Rewrite to just
11701         use the newly defined classes.
11702         * expr.h (by_pieces_constfn): New typedef.
11703         (can_store_by_pieces, store_by_pieces): Use it in arg declarations.
11704         (emit_block_cmp_hints, expand_cmpstrn_or_cmpmem): Declare.
11705         (move_by_pieces_ninsns): Don't declare.
11706         (can_move_by_pieces): Change return value to bool.
11707         * target.def (TARGET_USE_BY_PIECES_INFRASTRUCTURE_P): Update docs.
11708         (compare_by_pieces_branch_ratio): New hook.
11709         * target.h (enum by_pieces_operation): Add COMPARE_BY_PIECES.
11710         (by_pieces_ninsns): Declare.
11711         * targethooks.c (default_use_by_pieces_infrastructure_p): Handle
11712         COMPARE_BY_PIECES.
11713         (default_compare_by_pieces_branch_ratio): New function.
11714         * targhooks.h (default_compare_by_pieces_branch_ratio): Declare.
11715         * doc/tm.texi.in (STORE_MAX_PIECES, COMPARE_MAX_PIECES): Document.
11716         * doc/tm.texi: Regenerate.
11717         * tree-ssa-strlen.c: Include "builtins.h".
11718         (handle_builtin_memcmp): New static function.
11719         (strlen_optimize_stmt): Call it for BUILT_IN_MEMCMP.
11720         * tree.c (build_common_builtin_nodes): Create __builtin_memcmp_eq.
11722 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11724         * tree-vect-stmts.c (vect_stmt_relevant_p): Do not vectorize non live
11725         relevant stmts which are simple and invariant.
11726         * tree-vect-loop.c (vectorizable_live_operation): Check relevance
11727         instead of simple and invariant
11729 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11731         * tree-vect-loop.c (vect_analyze_loop_operations): Allow live stmts.
11732         (vectorizable_reduction): Check for new relevant state.
11733         (vectorizable_live_operation): vectorize live stmts using
11734         BIT_FIELD_REF.  Remove special case for gimple assigns stmts.
11735         * tree-vect-stmts.c (is_simple_and_all_uses_invariant): New function.
11736         (vect_stmt_relevant_p): Check for stmts which are only used live.
11737         (process_use): Use of a stmt does not inherit it's live value.
11738         (vect_mark_stmts_to_be_vectorized): Simplify relevance inheritance.
11739         (vect_analyze_stmt): Check for new relevant state.
11740         * tree-vectorizer.h (vect_relevant): New entry for a stmt which is used
11741         outside the loop, but not inside it.
11743 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11745         * tree-vectorizer.h (vect_get_vec_def_for_operand_1): New.
11746         * tree-vect-stmts.c (vect_get_vec_def_for_operand_1): New.
11747         (vect_get_vec_def_for_operand): Split out code.
11749 2016-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
11751         * config/rs6000/rs6000.md (define_peepholes for two mfcr's): Delete.
11753 2016-06-03  Alan Hayward  <alan.hayward@arm.com>
11755         * tree-vect-stmts.c (vectorizable_call) Remove GOMP_SIMD_LANE code.
11757 2016-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11759         * config/arm/thumb1.md (*thumb1_mulsi3): Fix typos in comment.
11761 2016-06-03  Jakub Jelinek  <jakub@redhat.com>
11763         PR middle-end/71387
11764         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): If redirecting
11765         to noreturn e->callee->decl that has void return type and void
11766         arguments, adjust gimple_call_fntype and remove lhs even if it had
11767         previously addressable type.
11769 2016-06-02  Jeff Law  <law@redhat.com>
11771         PR tree-optimization/71328
11772         * tree-ssa-threadupdate.c (duplicate_thread_path): Fix off-by-one
11773         error when checking for a jump back onto the copied path.
11775 2016-06-02  David Malcolm  <dmalcolm@redhat.com>
11777         * config/microblaze/microblaze.c (get_branch_target): Add return
11778         NULL_RTX for the non-CALL_P case.
11779         (insert_wic_for_ilb_runout): Remove unused local "wic_addr1".
11780         (insert_wic): Remove unused local "j".
11782 2016-06-02  Martin Liska  <mliska@suse.cz>
11784         * predict.def: Fix typo in PRED_FORTRAN_FAIL_IO display name.
11786 2016-06-02  H.J. Lu  <hongjiu.lu@intel.com>
11787             Julia Koval  <julia.koval@intel.com>
11789         * function.c (assign_parm_setup_stack): Force source into a
11790         register if needed.
11791         * target.def (function_incoming_arg): Update documentation to
11792         allow arbitrary address computation based on hard register.
11793         * doc/tm.texi: Regenerated.
11795 2016-06-02  Martin Liska  <mliska@suse.cz>
11797         * predict.c (combine_predictions_for_bb): Fix first match in
11798         cases where a first predictor contains more than one occurence
11799         in list of predictors.  Take the best value in such case.
11801 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11803         PR rtl-optimization/71295
11804         * rtlanal.c (subreg_get_info): If taking a subreg at the requested
11805         offset would go over the size of the inner mode reject it.
11807 2016-06-02  Jakub Jelinek  <jakub@redhat.com>
11809         * config/i386/sse.md (*vec_concatv4si): Use v=v,v instead of
11810         x=x,x and v=v,m instead of x=x,m.
11812         * config/i386/sse.md (*vec_concatv2si_sse4_1): Add avx512dq v=Yv,rm
11813         alternative.  Change x=x,x alternative to v=Yv,Yv and x=rm,C
11814         alternative to v=rm,C.
11816         * config/i386/sse.md (*vec_concatv2di): Add x86_avx512dq v=Yv,rm
11817         alternative.  Change x=xm,C alternative to v=vm,C, x=x,x alternative
11818         to v=Yv,Yv and x=x,m to v=v,m.  Use maybe_evex prefix attribute
11819         instead of vex for the last two above mentioned alternatives.
11821 2016-06-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11823         PR target/70830
11824         * config/arm/arm.c (arm_output_multireg_pop): Guard "pop" on update.
11826 2016-06-02  Segher Boessenkool  <segher@kernel.crashing.org>
11828         * config/rs6000/dfp.md (trunctddd2): Correct the "length" attribute.
11830 2016-06-01  David Malcolm  <dmalcolm@redhat.com>
11832         * config/rl78/rl78.c (rl78_expand_prologue): Convert local
11833         from int to unsigned.
11835 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11837         * config/rs6000/vsx.md (vsx_splat_<mode>, V2DI/V2DF): Simplify
11838         alternatives, eliminating preferred register class.  Add support
11839         for the MTVSRDD instruction in ISA 3.0.
11840         (vsx_splat_v4si_internal): Use splat_input_operand instead of
11841         reg_or_indexed_operand.
11842         (vsx_splat_v4sf_internal): Likewise.
11844 2016-05-31  Michael Meissner  <meissner@linux.vnet.ibm.com>
11846         PR target/71186
11847         * config/rs6000/vsx.md (xxspltib_<mode>_nosplit): Add alternatives
11848         for loading up all 0's or all 1's.
11850 2016-06-01  Thomas Preud'homme  <thomas.preudhomme@arm.com>
11852         * doc/sourcebuild.texi (arm_acq_rel): Document new effective target.
11854 2016-06-01  Eduard Sanou  <dhole@openmailbox.org>
11856         * doc/cppenv.texi: Note that the `%s` in `date` is a non-standard
11857         extension.
11858         * gcc.c (driver_handle_option): Call set_source_date_epoch_envvar.
11859         * gcc.c (set_source_date_epoch_envvar): New function, sets
11860         the SOURCE_DATE_EPOCH environment variable to the current time.
11862 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11864         * tree-vect-loop.c (vect_determine_vectorization_factor): Also compute
11865         the factor for live Phi nodes.
11867 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11869         * loop-dolop.c (doloop_optimize): Us likely max iteration bound.
11870         * tree-parloops.c (parallelize_loops): likewise.
11871         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop,
11872         tree_unswitch_outer_loop): likewise.
11874 2016-06-01  Jakub Jelinek  <jakub@redhat.com>
11876         PR middle-end/71371
11877         * gimplify.c (gimplify_omp_for): Temporarily clear gimplify_omp_ctxp
11878         around creation of the temporary.
11880 2016-06-01  Richard Biener  <rguenther@suse.de>
11882         PR tree-optimization/71366
11883         * tree-ssa-loop-ivcanon.c (edges_to_remove): New global.
11884         (unloop_loops): Move removing edges here ...
11885         (try_unroll_loop_completely): ... from here.
11886         (try_peel_loop): ... and here.
11887         (tree_unroll_loops_completely_1): Track parent loops via
11888         bitmap of header BBs.
11889         (tree_unroll_loops_completely): Adjust for that.
11891 2016-06-01  Kelvin Nilsen  <kelvin@gcc.gnu.org>
11893         * config/rs6000/altivec.h (vec_slv): New macro.
11894         (vec_srv): New macro.
11895         * config/rs6000/altivec.md (UNSPEC_VSLV): New value.
11896         (UNSPEC_VSRV): New value.
11897         (vslv): New insn.
11898         (vsrv): New insn.
11899         * config/rs6000/rs6000-builtin.def (vslv): New builtin definition.
11900         (vsrv): New builtin definition.
11901         * config/rs6000/rs6000-c.c (P9V_BUILTIN_VSLV): Macro expansion to
11902         define argument types for new builtin.
11903         (P9V_BUILTIN_VSRV): Macro expansion to define argument types for
11904         new builtin.
11905         * doc/extend.texi: Document the new vec_vslv and vec_srv built-in
11906         functions.
11908 2016-06-01  Uros Bizjak  <ubizjak@gmail.com>
11909             Jocelyn Mayer  <l_indien@magic.fr>
11911         PR target/67310
11912         * config/i386/driver-i386.c (host_detect_local_cpu): Correctly
11913         detect processor family for signature_CENTAUR_ebx.
11914         <case PROCESSOR_I486>: Pass c3, winchip2 or winchip-c6 for
11915         signature_CENTAUR_ebx.
11916         <case PROCESSOR _PENTIUMPRO>: Pass c3-2 for signature_CENTAUR_ebx.
11917         <default>: Pass x86-64 for has_longmode.
11919 2016-06-01  Nathan Sidwell  <nathan@acm.org>
11921         * config/nvptx/nvptx.c (nvptx_assemble_undefined_decl): Reject
11922         undefined weak.
11924 2016-06-01  Richard Biener  <rguenther@suse.de>
11926         PR tree-optimization/71261
11927         * tree-vect-patterns.c (check_bool_pattern): Gather a hash-set
11928         of stmts successfully put in the bool pattern.  Remove
11929         single-use restriction.
11930         (adjust_bool_pattern_cast): Add cast at the use site via the
11931         pattern def sequence.
11932         (adjust_bool_pattern): Remove recursion, maintain a hash-map
11933         of patterned defs.  Use the pattern def seqence instead of
11934         multiple independent patterns.
11935         (sort_after_uid): New qsort compare function.
11936         (adjust_bool_stmts): New function to process stmts in the bool
11937         pattern in IL order.
11938         (vect_recog_bool_pattern): Adjust.
11939         * tree-if-conv.c (ifcvt_split_def_stmt): Remove.
11940         (ifcvt_walk_pattern_tree): Likewise.
11941         (stmt_is_root_of_bool_pattern): Likewise.
11942         (ifcvt_repair_bool_pattern): Likewise.
11943         (tree_if_conversion): Do not call ifcvt_repair_bool_pattern.
11945 2016-06-01  Jan Hubicka  <hubicka@ucw.cz>
11947         * loop-unroll.c (decide_unroll_constant_iterations,
11948         decide_unroll_runtime_iterations, decide_unroll_stupid): Use
11949         likely upper bounds.
11950         * loop-iv.c (find_simple_exit): Dump likely upper bounds.
11952 2016-06-01  Thomas Schwinge  <thomas@codesourcery.com>
11954         * tree-core.h (enum omp_clause_code): Remove
11955         OMP_CLAUSE_DEVICE_RESIDENT.  Adjust all users.
11957 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11959         * config/arm/sync.md (arm_store_exclusive<mode>):
11960         Use 'H' output modifier on operands[2] rather than creating a new
11961         entry in out-of-bounds memory of the operands array.
11962         (arm_store_release_exclusivedi): Likewise.
11964 2016-06-01  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
11966         * config/arm/arm.c (arm_fusion_enabled_p): New function.
11967         * config/arm/arm-protos.h (arm_fusion_enabled_p): Declare prototype.
11968         * config/arm/crypto.md (crypto_<crypto_pattern>, CRYPTO_UNARY):
11969         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
11971 2016-06-01  Eric Botcazou  <ebotcazou@adacore.com>
11973         * tree-vect-loop.c (vect_determine_vectorization_factor): Also take
11974         into account live statements for mask producers.
11976 2016-06-01  Richard Biener  <rguenther@suse.de>
11978         PR tree-optimization/71311
11979         * match.pd (@0 < @1 && @0 < @2 -> @0 < min(@1,@2)): Add :c and
11980         restrict to non-INTEGER_CST @0.
11982 2016-06-01  Richard Biener  <rguenther@suse.de>
11984         * match.pd ((A & B) - (A & ~B) -> B - (A ^ B)): Add missing :c.
11985         (relational patterns): Use :c to avoid pattern duplications.
11987 2016-06-01  Richard Biener  <rguenther@suse.de>
11989         * genmatch.c (comparison_code_p): New predicate.
11990         (swap_tree_comparison): New function.
11991         (commutate): Add for_vec parameter to append new for entries.
11992         Support commutating relational operators by swapping it alongside
11993         operands.
11994         (lower_commutative): Adjust.
11995         (dt_simplify::gen): Do not pass artificial operators to gen
11996         functions.
11997         (decision_tree::gen): Do not add artificial operators as parameters.
11998         (parser::parse_expr): Verify operator commutativity when :c is
11999         applied.  Allow :C to override this.
12000         * match.pd: Adjust patterns to use :C instead of :c where required.
12002 2016-06-01  Patrick Palka  <ppalka@gcc.gnu.org>
12004         PR tree-optimization/71077
12005         * tree-ssa-threadedge.c (simplify_control_stmt_condition_1): In
12006         the combining step, use boolean_false_node and boolean_true_node
12007         as the designated false/true return values.
12009 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12011         * predict.def (PRED_LOOP_EXTRA_EXIT): Define.
12012         * predict.c (predict_iv_comparison): Also check PRED_LOOP_EXTRA_EXIT.
12013         (predict_extra_loop_exits): Use PRED_LOOP_EXTRA_EXIT instead of
12014         PRED_LOOP_EXIT.
12016 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12018         * doc/invoke.texi (-frename-registers): Drop -fpeel-loops from list
12019         of flags impliying the register renaming.
12020         * toplev.c (process_options): Do not imply flag_rename_registers with
12021         loop peeling.
12023 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12025         * config/sh/sh.h (ASM_OUTPUT_SYMBOL_REF): Remove macro and use the
12026         default implementation.
12028 2016-05-31  Nathan Sidwell  <nathan@acm.org>
12030         * dwarf2out.c (cur_line_info_table): Add GTY marker.
12032 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12034         * config/sh/constraints.md (b): Remove constraint.
12035         * config/sh/predicates.md (arith_reg_operand): Remove
12036         TARGET_REGISTER_P.
12037         * config/sh/sh-modes.def (PDI): Remove.
12038         * config/sh/sh.c (sh_target_reg_class,
12039         sh_optimize_target_register_callee_saved): Remove functions.
12040         (sh_option_override): Don't set MASK_SAVE_ALL_TARGET_REGS.
12041         (sh_expand_epilogue): Update comment.
12042         (sh_hard_regno_mode_ok, sh_register_move_cost, calc_live_regs,
12043         sh_secondary_reload): Remove TARGET_REGS related code.
12044         * config/sh/sh.h (FIRST_TARGET_REG, LAST_TARGET_REG,
12045         TARGET_REGISTER_P): Remove macros.
12046         (SH_DBX_REGISTER_NUMBER, REG_ALLOC_ORDER): Remove target regs.
12047         * config/sh/sh.md (PR_MEDIA_REG, T_MEDIA_REG, FR23_REG, TR0_REG,
12048         TR1_REG, TR2_REG): Remove constants.
12049         * config/sh/sh.opt (SAVE_ALL_TARGET_REGS): Remove.
12051 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12053         * config/sh/sh.md (adddi3, subdi3, negdi2, abs<mode>2): Remove
12054         define_expand patterns.
12055         (adddi3_compact): Rename to adddi3.
12056         (subdi3_compact): Rename to subdi3.
12057         (*negdi2): Rename to negdi2.
12058         (*abs<mode>2): Rename to abs<mode>2.
12060 2016-05-31  Oleg Endo  <olegendo@gcc.gnu.org>
12062         * config/rx/rx.md (FETCHOP_NO_MINUS): New code iterator.
12063         (atomic_<fetchop_name>_fetchsi): Extract minus operator into ...
12064         (atomic_sub_fetchsi): ... this new pattern.
12065         (mvtc): Add CC_REG clobber.
12067 2016-05-31  Marek Polacek  <polacek@redhat.com>
12069         * gimplify.c (gimplify_switch_expr): Also handle GIMPLE_TRY.
12071 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12073         * config/aarch64/aarch64.c (aarch_macro_fusion_pair_p): Use
12074         aarch64_fusion_enabled_p to check for fusion capabilities.
12076 2016-05-31  Richard Biener  <rguenther@suse.de>
12078         PR tree-optimization/71352
12079         * tree-ssa-reassoc.c (zero_one_operation): Handle op equal to
12080         minus one and a negate.
12082 2016-05-31  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12084         * config/aarch64/aarch64.c (aarch64_simd_attr_length_move): Delete.
12085         * config/aarch64/aarch64-protos.h (aarch64_simd_attr_length_move):
12086         Delete prototype.
12087         * config/aarch64/iterators.md (insn_count): Add descriptive comment.
12088         * config/aarch64/aarch64-simd.md (*aarch64_mov<mode>, VSTRUCT modes):
12089         Remove use of aarch64_simd_attr_length_move, set length attribute
12090         directly.
12091         (*aarch64_be_movoi): Likewise.
12092         (*aarch64_be_movci): Likewise.
12093         (*aarch64_be_movxi): Likewise.
12095 2016-05-31  Jan Hubicka  <hubicka@ucw.cz>
12097         * loop-init.c (gate): Do not enale RTL loop unroller with -fpeel-loops.
12098         It no longer does that.
12099         * toplev.c (process_options): Do not enable flag_web with -fpeel-loops.
12101 2016-05-31  Wladimir J. van der Laan  <laanwj@gmail.com>
12103         * config/aarch64/arm_neon.h (vdupb_laneq_s8): Remove spurious
12104         attribute __unused__.
12106 2016-05-31  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12108         * config/arm/arm-protos.h (arm_arch_thumb1): Declare.
12109         * config/arm/arm.c (arm_arch_thumb1): Define.
12110         (arm_option_override): Initialize arm_arch_thumb1.
12111         * config/arm/arm.h (arm_arch_thumb1): Declare.
12112         (TARGET_ARM_ARCH_ISA_THUMB): Use arm_arch_thumb to determine if target
12113         support Thumb-1 ISA.
12115 2016-05-31  Kirill Yukhin  <kirill.yukhin@intel.com>
12117         PR target/71346
12118         * config/i386/sse.md (define_insn_and_split "*vec_extractv4sf_0"): Use
12119         `Yv' for scalar operand.
12121 2016-05-31  Tom de Vries  <tom@codesourcery.com>
12123         PR tree-optimization/69068
12124         * graphite-isl-ast-to-gimple.c (copy_bb_and_scalar_dependences): Handle
12125         phis with more than two args.
12127 2016-05-30  Andreas Tobler  <andreast@gcc.gnu.org>
12129         * config.gcc: Move hard float support for arm*hf*-*-freebsd* into
12130         armv6*-*-freebsd* for FreeBSD 11. Eliminate the arm*hf*-*-freebsd*
12131         target.
12133 2016-05-30  Jose E. Marchesi  <jose.marchesi@oracle.com>
12135         * config.gcc (sparc*-*-*): Support cpu_32, cpu_64, tune_32 and
12136         tune_64.
12137         * doc/install.texi (--with-cpu-32, --with-cpu-64): Document
12138         support on SPARC.
12139         * config/sparc/linux64.h (OPTION_DEFAULT_SPECS): Add entries for
12140         cpu_32, cpu_64, tune_32 and tune_64.
12141         * config/sparc/sol2.h (OPTION_DEFAULT_SPECS): Likewise.
12143 2016-05-30  Uros Bizjak  <ubizjak@gmail.com>
12145         * config/i386/sync.md (mfence_nosse): Use "lock orl $0, -4(%esp)".
12147 2016-05-30  Andi Kleen  <ak@linux.intel.com>
12149         * auto-profile.c (read_profile): Replace asserts with errors
12150         when file does not exist.
12151         * gcov-io.c (gcov_read_words): Dito.
12153 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12155         * tree-cfg.c (print_loop): Print likely upper bounds.
12157 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12159         * doc/invoke.texi (-fpeel-loops,-O3): Update documentation.
12160         * opts.c (default_options): Enable peel loops at -O3.
12161         * tree-ssa-loop-ivcanon.c (peeled_loops): New static var.
12162         (try_peel_loop): Do not re-peel already peeled loops;
12163         use likely upper bounds; fix profile updating.
12164         (pass_complete_unroll::execute): Initialize peeled_loops.
12166 2016-05-30  Martin Liska  <mliska@suse.cz>
12168         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Scale
12169         computed costs by frequency of BB they belong to.
12170         (get_scaled_computation_cost_at): New function.
12172 2016-05-30  Alexander Monakov  <amonakov@ispras.ru>
12173             Marc Glisse  <marc.glisse@inria.fr>
12175         PR tree-optimization/71289
12176         * match.pd (-1 / B < A, A > -1 / B): New transformations.
12178 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12180         * tree-vect-loop.c (vect_transform_loop): Update likely bounds.
12182 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12184         * tree-ssa-loop-ivcanon.c (try_peel_loop): Correctly set wont_exit
12185         for peeled copies; avoid underflow when updating estimates; correctly
12186         scale loop profile.
12188 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12190         * tree-ssa-reassoc.ci (swap_ops_for_binary_stmt): Fix typo from commit
12191         r236875. Corrected oe3 to oe2 as obvious.
12193 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12195         PR middle-end/71269
12196         PR middle-end/71252
12197         * tree-ssa-reassoc.c (insert_stmt_before_use): Use find_insert_point so
12198         that inserted stmt will not dominate stmts that defines its operand.
12199         (rewrite_expr_tree): Add stmt_to_insert before adding the use stmt.
12200         (rewrite_expr_tree_parallel): Likewise.
12202 2016-05-30  Kugan Vivekanandarajah  <kuganv@linaro.org>
12204         PR middle-end/71252
12205         * tree-ssa-reassoc.c (swap_ops_for_binary_stmt): Fix swap such that
12206         all fields including stmt_to_insert are swapped.
12208 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12210         * predict.h (force_edge_cold): Declare.
12211         * predict.c (force_edge_cold): New function.
12212         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely): Fix profile
12213         updating.
12214         (canonicalize_loop_induction_variables): Fix formating.
12216 2016-05-30  Eric Botcazou  <ebotcazou@adacore.com>
12218         * config/visium/visium.c (visium_split_double_add): Minor tweaks.
12219         (visium_expand_copysign): Use gen_int_mode directly.
12220         (visium_compute_frame_size): Minor tweaks.
12222 2016-05-30  Jan Hubicka  <hubicka@ucw.cz>
12224         * tree-vect-loop.c (vect_analyze_loop_2): Use
12225         likely_max_stmt_executions_int.
12227 2016-05-30  Tom de Vries  <tom@codesourcery.com>
12229         PR tree-optimization/69067
12230         * graphite-isl-ast-to-gimple.c (get_def_bb_for_const): Remove assert.
12232 2016-05-29  Uros Bizjak  <ubizjak@gmail.com>
12234         PR target/71245
12235         * config/i386/sync.md (define_peephole2 atomic_storedi_fpu):
12236         New peepholes to remove unneeded fild/fistp pairs.
12237         (define_peephole2 atomic_loaddi_fpu): Ditto.
12239 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12241         * predict.c (maybe_hot_frequency_p): Avoid division.
12243 2016-05-28  Gerald Pfeifer  <gerald@pfeifer.com>
12245         * doc/install.texi: Use https for shop.fsf.org.
12247 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12249         * tree-ssa-loop-ivopts.c (estimated_stmt_executions_int): Use
12250         likely_max_stmt_executions_int.
12252 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12254         * tree-ssa-loop-prefetch.c (loop_prefetch_arrays): Use
12255         likely_max_stmt_executions_int.
12257 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12259         * profile.c (compute_branch_probabilities): Do not report hitrates
12260         here.
12261         (branch_prob): Report hitrates here.
12262         * predict.c (gimple_predict_edge): Do not assert profile status;
12263         fix formatting issues.
12265 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12267         * predict.c (edge_predicted_by_p): New function.
12268         (predict_paths_for_bb): Do not put multiple predictions of the same type
12269         on one edge.
12271 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12273         * tree-ssa-loop-niter.c (number_of_iterations_exit): Revert accidental
12274         commit.
12276 2016-05-28  Alan Modra  <amodra@gmail.com>
12278         * dominance.c (verify_dominators): Don't segfault on NULL imm_bb.
12280 2016-05-28  Alan Modra  <amodra@gmail.com>
12282         PR rtl-optimization/71275
12283         * ira.c (ira): Free dominance info.
12285 2016-05-27  Gerald Pfeifer  <gerald@pfeifer.com>
12287         * doc/sourcebuild.texi: New address for upstream Go repository.
12289 2016-05-27  Thomas Preud'homme  <thomas.preudhomme@arm.com>
12291         * config/arm/arm.h (TARGET_ARM_V6M): Remove.
12292         (TARGET_ARM_V7M): Likewise.
12294 2016-05-26  Jeff Law  <law@redhat.com>
12296         * tree-ssa-threadedge.c: Remove include of tree-ssa-threadbackward.h.
12297         (thread_across_edge): Remove calls to find_jump_threads_backwards.
12298         * passes.def: Add jump threading passes before DOM/VRP.
12299         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Change
12300         argument to a basic block from an edge.  Remove tests which are
12301         handled elsewhere.
12302         (pass_data_thread_jumps, class pass_thread_jumps): New.
12303         (pass_thread_jumps::gate, pass_thread_jumps::execute): New.
12304         (make_pass_thread_jumps): Likewise.
12305         * tree-pass.h (make_pass_thread_jumps): Declare.
12307 2016-05-27  Eric Botcazou  <ebotcazou@adacore.com>
12309         * config/visium/visium-protos.h (split_double_move): Rename into...
12310         (visium_split_double_move): ...this.
12311         (visium_split_double_add): Declare.
12312         * config/visium/visium.c (split_double_move): Rename into...
12313         (visium_split_double_move): ...this.
12314         (visium_split_double_add): New function.
12315         (visium_expand_copysign): Renumber operands for consistency.
12316         * config/visium/visium.md (DImode move splitter): Adjust to renaming.
12317         (DFmode move splitter): Likewise.
12318         (*addi3_insn): Split by means of visium_split_double_add.
12319         (*adddi3_insn_flags): Delete.
12320         (*plus_plus_sltu<subst_arith>): New insn.
12321         (*subdi3_insn): Split by means of visium_split_double_add.
12322         (subdi3_insn_flags): Delete.
12323         (*minus_minus_sltu<subst_arith>): New insn.
12324         (*negdi2_insn): Split by means of visium_split_double_add.
12325         (*negdi2_insn_flags): Delete.
12327 2016-05-27  Ulrich Weigand  <uweigand@de.ibm.com>
12329         * configure.ac: Treat a --with-headers option without argument
12330         the same as the default (i.e. consult sys-include directory).
12331         * configure: Regenerate.
12333 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12335         * config/aarch64/aarch64.c (aarch64_fusion_enabled_p): New function.
12336         * config/aarch64/aarch64-protos.h (aarch64_fusion_enabled_p): Declare
12337         prototype.
12338         * config/aarch64/aarch64-simd.md (aarch64_crypto_aes<aesmc_op>v16qi):
12339         Add "=w,0" alternative.  Enable it when AES/AESMC fusion is enabled.
12341 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
12343         PR target/63596
12344         * config/aarch64/aarch64.c (aarch64_expand_builtin_va_start): Honor
12345         tree-stdarg analysis results.
12346         (aarch64_setup_incoming_varargs): Likewise.
12348 2016-05-27  Jiong Wang  <jiong.wang@arm.com>
12350         * config/aarch64/aarch64.c (aarch64_build_builtin_va_list): Initialize
12351         va_list_gpr_counter_field and va_list_fpr_counter_field.
12353 2016-05-27  Wilco Dijkstra  <wdijkstr@arm.com>
12355         PR67609
12356         * config/aarch64/aarch64.h (CANNOT_CHANGE_MODE_CLASS): Remove.
12357         * config/aarch64/aarch64.c
12358         (aarch64_cannot_change_mode_class): Remove function.
12359         * config/aarch64/aarch64-protos.h
12360         (aarch64_cannot_change_mode_class): Remove.
12362 2016-05-27  Jan Hubicka  <hubicka@ucw.cz>
12364         * cfgloop.c (record_niter_bound): Record likely upper bounds.
12365         (likely_max_stmt_executions_int, get_likely_max_loop_iterations,
12366         get_likely_max_loop_iterations_int): New.
12367         * cfgloop.h (struct loop): Add nb_iterations_likely_upper_bound,
12368         any_likely_upper_bound.
12369         (get_likely_max_loop_iterations_int, get_likely_max_loop_iterations):
12370         Declare.
12371         * cfgloopmanip.c (copy_loop_info): Copy likely upper bounds.
12372         * loop-unroll.c (unroll_loop_constant_iterations): Update likely
12373         upper bound.
12374         (unroll_loop_constant_iterations): Likewise.
12375         (unroll_loop_runtime_iterations): Likewise.
12376         * lto-streamer-in.c (input_cfg): Stream likely upper bounds.
12377         * lto-streamer-out.c (output_cfg): Likewise.
12378         * tree-ssa-loop-ivcanon.c (try_peel_loop): Update likely upper
12379         bounds.
12380         (canonicalize_loop_induction_variables): Dump likely upper bounds.
12381         * tree-ssa-loop-niter.c (record_estimate): Record likely upper bounds.
12382         (likely_max_loop_iterations): New.
12383         (likely_max_loop_iterations_int): New.
12384         (likely_max_stmt_executions): New.
12385         * tree-ssa-loop-niter.h (likely_max_loop_iterations,
12386         likely_max_loop_iterations_int, likely_max_stmt_executions_int,
12387         likely_max_stmt_executions): Declare.
12389 2016-05-27  Marek Polacek  <polacek@redhat.com>
12391         PR middle-end/71308
12392         * gimple-fold.c (gimple_fold_call): Check that LHS is not null.
12394 2016-05-27  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
12396         * config/s390/s390.md (2x risbg splitters): Use
12397         reg_overlap_mentioned_p instead of rtx_equal_p.
12399 2016-05-27  Dominik Vogt  <vogt@linux.vnet.ibm.com>
12401         * combine.c (make_compound_operation): Take known zero bits into
12402         account when checking for possible zero_extend.
12404 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12406         * config/aarch64/aarch64.md (ashl<mode>3, SHORT modes):
12407         Use const_int_operand for operand 2 predicate.  Simplify expand code
12408         as a result.
12410 2016-05-27  Ilya Enkovich  <ilya.enkovich@intel.com>
12412         PR middle-end/71279
12413         * fold-const.c (fold_ternary_loc): Don't fold VEC_COND_EXPR
12414         into comparison.
12416 2016-05-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12418         * config/aarch64/aarch64-modes.def (CC_ZESWP, CC_SESWP): Delete.
12419         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Remove condition
12420         that returns CC_SESWPmode and CC_ZESWPmode.
12421         (aarch64_get_condition_code_1): Remove handling of CC_SESWPmode
12422         and CC_SESWPmode.
12423         (aarch64_rtx_costs): Likewise.
12425 2016-05-26  Michael Meissner  <meissner@linux.vnet.ibm.com>
12427         * config/rs6000/rs6000.c (rs6000_emit_p9_fp_minmax): New function
12428         for ISA 3.0 min/max support.
12429         (rs6000_emit_p9_fp_cmove): New function for ISA 3.0 floating point
12430         conditional move support.
12431         (rs6000_emit_cmove): Call rs6000_emit_p9_fp_minmax and
12432         rs6000_emit_p9_fp_cmove if the ISA 3.0 instructions are
12433         available.
12434         * config/rs6000/rs6000.md (SFDF2): New iterator to allow doing
12435         conditional moves where the comparison type is different from move
12436         type.
12437         (fp_minmax): New code iterator for smin/smax.
12438         (minmax): New code attributes for min/max.
12439         (SMINMAX): Likewise.
12440         (smax<mode>3): Combine min, max insns into one insn using the
12441         fp_minmax code iterator.  Add support for ISA 3.0 min/max
12442         instructions that don't need -ffast-math.
12443         (s<minmax><mode>3): Likewise.
12444         (smax<mode>3_vsx): Likewise.
12445         (smin<mode>3): Likewise.
12446         (s<minmax><mode>3_vsx): Likewise.
12447         (smin<mode>3_vsx): Likewise.
12448         (pre-VSX min/max splitters): Likewise.
12449         (s<minmax><mode>3_fpr): Likewise.
12450         (movsfcc): Rewrite floating point conditional moves to combine
12451         SFmode/DFmode into a single insn.
12452         (mov<mode>cc): Likewise.
12453         (movdfcc): Likewise.
12454         (fselsfsf4): Combine FSEL cases into a single insn, using SFDF and
12455         SFDF2 iterators to handle all combinations.
12456         (fseldfsf4): Likewise.
12457         (fsel<SFDF:mode><SFDF2:mode>4): Likewise.
12458         (fseldfdf4): Likewise.
12459         (fselsfdf4): Likewise.
12460         (mov<SFDF:mode><SFDF2:mode>cc_p9): Add support for the ISA 3.0
12461         comparison instructions that set a 0/-1 mask, and use it for
12462         floating point conditional move via XXSEL.
12463         (fpmask<mode>): Likewise.
12464         (xxsel<mode>): Likewise.
12465         * config/rs6000/predicates.md (min_max_operator): Delete, no
12466         longer used.
12467         (fpmask_comparison_operaton): New insn for ISA 3.0 comparison
12468         instructions that generate a 0/-1 mask for use with XXSEL.
12469         * config/rs6000/rs6000.h (TARGET_MINMAX_SF): New helper macros to
12470         say whether floating point min/max is available, either through
12471         FSEL, ISA 2.06 min/max, and ISA 3.0 min/max instrucitons.
12472         (TARGET_MINMAX_DF): Likewise.
12474 2016-05-27  Alan Modra  <amodra@gmail.com>
12476         PR rtl-optimization/71275
12477         * ira.c (ira): Call loop_optimizer_init to set up bb_loop_depth
12478         for update_equiv_regs and combine_and_move_insns.
12480 2016-05-26  Uros Bizjak  <ubizjak@gmail.com>
12482         * config/i386/i386.md (*movqi_internal) <attr "isa">: Use
12483         if_then_else or cond RTXes to calculate attribute value.
12484         * config/i386/mmx.md (*vec_extractv2sf_1) <attr "prefix_rep">: Ditto.
12485         <attr "length_immediate>: Ditto.
12486         (*vec_extractv2sf_1) <attr "length_immediate">: Ditto.
12487         * config/i386/sse.md (sse_loadlps) <attr "length_immediate">: Ditto.
12488         (*vec_concatv2sf_sse4_1) <attr "isa">: Ditto.
12489         <attr "type">: Ditto.
12490         <attr "prefix_data16">: Ditto.
12491         <attr "prefix_extra">: Ditto.
12492         <attr "length_immediate">: Ditto.
12493         <attr "prefix">: Ditto.
12494         (vec_set<mode>_0) <attr "isa">: Ditto.
12495         <attr "prefix_extra">: Ditto.
12496         <attr "length_immediate">: Ditto.
12497         <attr "prefix">: Ditto.
12498         (*vec_interleave_highv2df) <attr "prefix_data16">: Ditto.
12499         (*vec_interleave_lowv2df) <attr "prefix_data16">: Ditto.
12500         (sse2_storelpd) <attr "prefix_data16">: Ditto.
12501         (sse2_loadhpd) <attr "prefix_data16">: Ditto.
12502         (sse2_loadlpd) <attr "prefix_data16">: Ditto.
12503         <attr "length_immediate">: Ditto.
12504         <attr "prefix">: Ditto.
12505         (sse2_movsd) <attr "length_immediate">: Ditto.
12506         <attr "prefix">: Ditto.
12507         (vec_concatv2df)  <attr "isa">: Ditto.
12508         <attr "prefix">: Ditto.
12509         (*vec_extractv4si) <attr "prefix_extra">: Ditto.
12510         (*vec_extractv2di_1) <attr "isa">: Ditto.
12511         <attr "type">: Ditto.
12512         <attr "length_immediate">: Ditto.
12513         <attr "prefix_rex">: Ditto.
12514         <attr "prefix_extra">: Ditto.
12515         (*vec_concatv2si_sse4_1) <attr "type">: Ditto.
12516         <attr "prefix_extra">: Ditto.
12517         <attr "length_immediate">: Ditto.
12518         (vec_concatv2di) <attr "isa">: Ditto.
12519         <attr "prefix_extra">: Ditto.
12520         <attr "length_immediate">: Ditto.
12521         <attr "prefix">: Ditto.
12523 2016-05-26  Martin Liska  <mliska@suse.cz>
12525         * tree-ssa-loop-ivopts.c (comp_cost::infinite_cost_p): New
12526         function.
12527         (operator+): Likewise.
12528         (operator-): Likewise.
12529         (comp_cost::operator+=): Likewise.
12530         (comp_cost::operator-=): Likewise.
12531         (comp_cost::operator/=): Likewise.
12532         (comp_cost::operator*=): Likewise.
12533         (operator<): Likewise.
12534         (operator==): Likewise.
12535         (operator<=): Likewise.
12536         (new_cost): Remove.
12537         (infinite_cost_p): Likewise.
12538         (add_costs): Likewise.
12539         (sub_costs): Likewise.
12540         (compare_costs): Likewise.
12541         (set_group_iv_cost): Use the newly introduced functions.
12542         (get_address_cost): Likewise.
12543         (get_shiftadd_cost): Likewise.
12544         (force_expr_to_var_cost): Likewise.
12545         (split_address_cost): Likewise.
12546         (ptr_difference_cost): Likewise.
12547         (difference_cost): Likewise.
12548         (get_computation_cost_at): Likewise.
12549         (determine_group_iv_cost_generic): Likewise.
12550         (determine_group_iv_cost_address): Likewise.
12551         (determine_group_iv_cost_cond): Likewise.
12552         (autoinc_possible_for_pair): Likewise.
12553         (determine_group_iv_costs): Likewise.
12554         (cheaper_cost_pair): Likewise.
12555         (iv_ca_recount_cost): Likewise.
12556         (iv_ca_set_no_cp): Likewise.
12557         (iv_ca_set_cp): Likewise.
12558         (iv_ca_cost): Likewise.
12559         (iv_ca_new): Likewise.
12560         (iv_ca_dump): Likewise.
12561         (iv_ca_narrow): Likewise.
12562         (iv_ca_prune): Likewise.
12563         (iv_ca_replace): Likewise.
12564         (try_add_cand_for): Likewise.
12565         (try_improve_iv_set): Likewise.
12566         (find_optimal_iv_set): Likewise.
12568 2016-05-26  Richard Sandiford  <richard.sandiford@arm.com>
12570         * tree-ssa-loop-ivopts.c (loop_body_includes_call): Don't assume
12571         that internal functions will clobber all caller-saved registers.
12573 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
12575         * config/aarch64/aarch64.c (aarch64_case_values_threshold):
12576         Return a better case_values_threshold when optimizing.
12578 2016-05-26  Wilco Dijkstra  <wdijkstr@arm.com>
12580         * config/aarch64/aarch64-simd.md (aarch64_combinez):
12581         Add ? to integer variant.
12582         (aarch64_combinez_be): Likewise.
12584 2016-05-26  Jakub Jelinek  <jakub@redhat.com>
12586         * config/i386/sse.md (*vcvtps2ph_store<mask_name>): Use v constraint
12587         instead of x constraint.
12588         (vcvtps2ph256<mask_name>): Likewise.
12590         * config/i386/sse.md (*ssse3_palignr<mode>_perm): Add avx512bw
12591         alternative.  Formatting fix.
12593         * config/i386/sse.md
12594         (<mask_codefor>avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Rename
12595         to ...
12596         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>): ... this.
12597         (*avx_vperm_broadcast_v4sf): Use v constraint instead of x.  Use
12598         maybe_evex prefix instead of vex.
12599         (*avx_vperm_broadcast_<mode>): Use v constraint instead of x.  Handle
12600         EXT_REX_SSE_REG_P (op0) case in the splitter.
12602 2016-05-25  Jeff Law  <law@redhat.com>
12604         PR tree-optimization/71272
12605         * tree-ssa-threadbackward.c (convert_and_register_jump_thread_path):
12606         Update comments.  Add test for empty path.
12608 2016-05-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
12610         * config/rs6000/altivec.h (vec_cmpne): Add #define for vec_cmpne.
12611         * config/rs6000/rs6000-builtin.def (vec_cmpne): Add vec_cmpne as a
12612         special case builtin.
12613         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
12614         code for ALTIVEC_BUILTIN_VEC_CMPNE.
12615         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
12616         for __builtin_vec_cmpne.
12618 2016-05-25  Eric Botcazou  <ebotcazou@adacore.com>
12620         * tree-ssa-phiopt.c (factor_out_conditional_conversion): Remove
12621         redundant test and bail out if the type of the new operand is not
12622         a GIMPLE register type after stripping a VIEW_CONVERT_EXPR.
12624 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
12626         * config/i386/i386.opt (ix86_target_flags_explicit): Remove.
12627         (x_ix86_target_flags_explicit): Remove.
12628         * config/i386/i386.c (ix86_function_specific_save): Do not copy
12629         x_ix86_target_flags_explicit.
12630         (ix86_function_specific_restore): Ditto.
12632 2016-05-25  Uros Bizjak  <ubizjak@gmail.com>
12633             H.J. Lu  <hongjiu.lu@intel.com>
12635         PR target/70738
12636         * common/config/i386/i386-common.c
12637         (OPTION_MASK_ISA_GENERAL_REGS_ONLY_UNSET): New.
12638         (ix86_handle_option) <case OPT_mgeneral_regs_only>: Disable
12639         MPX, MMX, SSE and x87 instructions for -mgeneral-regs-only.
12640         * config/i386/i386.opt (ix86_target_flags): Add new Variable.
12641         (-mgeneral-regs-only): Add new option.
12642         * config/i386/i386.c (ix86_option_override_internal): Don't enable
12643         x87 instructions if only general registers are allowed.
12644         (ix86_target_string): Add ix86_flags argument. Handle additional
12645         flags options through ix86_flags argument.  Update all callers.
12646         * doc/invoke.texi (x86 Options): Document -mgeneral-regs-only.
12648 2016-05-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12650         PR rtl-optimization/66940
12651         * ifcvt.c (noce_get_alt_condition): Check that incrementing or
12652         decrementing desired_val will not overflow before performing these
12653         operations.
12655 2016-05-25  Ilya Verbin  <ilya.verbin@intel.com>
12657         * config/i386/i386-builtin-types.def: Add V16SI_FTYPE_V16SF,
12658         V8DF_FTYPE_V8DF_ROUND, V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND.
12659         * config/i386/i386.c (enum ix86_builtins): Add
12660         IX86_BUILTIN_CVTPS2DQ512_MASK, IX86_BUILTIN_FLOORPS512,
12661         IX86_BUILTIN_FLOORPD512, IX86_BUILTIN_CEILPS512, IX86_BUILTIN_CEILPD512,
12662         IX86_BUILTIN_TRUNCPS512, IX86_BUILTIN_TRUNCPD512,
12663         IX86_BUILTIN_CVTPS2DQ512, IX86_BUILTIN_VEC_PACK_SFIX512,
12664         IX86_BUILTIN_FLOORPS_SFIX512, IX86_BUILTIN_CEILPS_SFIX512,
12665         IX86_BUILTIN_ROUNDPS_AZ_SFIX512.
12666         (builtin_description bdesc_args): Add __builtin_ia32_floorps512,
12667         __builtin_ia32_ceilps512, __builtin_ia32_truncps512,
12668         __builtin_ia32_floorpd512, __builtin_ia32_ceilpd512,
12669         __builtin_ia32_truncpd512, __builtin_ia32_cvtps2dq512,
12670         __builtin_ia32_vec_pack_sfix512, __builtin_ia32_roundps_az_sfix512,
12671         __builtin_ia32_floorps_sfix512, __builtin_ia32_ceilps_sfix512.
12672         Change IX86_BUILTIN_CVTPS2DQ512 to IX86_BUILTIN_CVTPS2DQ512_MASK for
12673         __builtin_ia32_cvtps2dq512_mask.
12674         (ix86_expand_args_builtin): Handle V8DF_FTYPE_V8DF_ROUND,
12675         V16SF_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF_ROUND, V16SI_FTYPE_V16SF.
12676         (ix86_builtin_vectorized_function): Handle builtins mentioned above.
12677         * config/i386/sse.md
12678         (<mask_codefor>avx512f_fix_notruncv16sfv16si<mask_name><round_name>):
12679         Rename to ...
12680         (avx512f_fix_notruncv16sfv16si<mask_name><round_name>): ... this.
12681         (<mask_codefor>avx512f_cvtpd2dq512<mask_name><round_name>): Rename
12682         to ...
12683         (avx512f_cvtpd2dq512<mask_name><round_name>): ... this.
12684         (avx512f_vec_pack_sfix_v8df): New define_expand.
12685         (avx512f_roundpd512): Rename to ...
12686         (avx512f_round<castmode>512): ... this.  Change iterator.
12687         (avx512f_roundps512_sfix): New define_expand.
12688         (round<mode>2_sfix): Change iterator.
12690 2016-05-25  Nick Clifton  <nickc@redhat.com>
12692         * config/msp430/msp430.c (msp430_attr): Produce an error if a
12693         static interrupt handler is detected.
12694         * config/msp430/msp430.h (LIB_SPEC): Do not use msp430.ld as the
12695         default linker script.
12696         * config/msp430/msp430.md (movpsihi2_lo): New pattern for loading
12697         the low part of a symbolic pointer.
12699 2016-05-25  Richard Biener  <rguenther@suse.de>
12701         PR tree-optimization/71261
12702         * tree-if-conv.c (ifcvt_split_def_stmt): Walk uses on the
12703         interesting stmt instead of immediate uses when looking
12704         for the use operand to replace.
12706 2016-05-25  Martin Liska  <mliska@suse.cz>
12708         * ipa-inline.c (edge_badness): Use 'w/' instead of 'w'.
12710 2016-05-25  Richard Biener  <rguenther@suse.de>
12712         PR tree-optimization/71264
12713         * tree-vect-stmts.c (vect_init_vector): Properly deal with
12714         vector type val.
12716 2016-05-25  Martin Liska  <mliska@suse.cz>
12718         PR tree-optimization/71239
12719         * tree.c (array_at_struct_end_p): Do not call operand_equal_p
12720         if DECL_SIZE is NULL.
12722 2016-05-25  Richard Biener  <rguenther@suse.de>
12724         * timevar.def (TV_TREE_LOOP_IFCVT): Add.
12725         * tree-if-conv.c (pass_data_if_conversion): Use it.
12727 2016-05-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
12729         * cgraph.c (cgraph_node::get_availability): Fix typo in comment.
12730         * symtab.c (symtab_node::binds_to_current_def_p): Likewise.
12731         * varpool.c (varpool_node::get_availability): Likewise.
12733 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12735         * config/rs6000/altivec.md (VNEG iterator): New iterator for
12736         VNEGW/VNEGD instructions.
12737         (p9_neg<mode>2): New insns for ISA 3.0 VNEGW/VNEGD.
12738         (neg<mode>2): Add expander for V2DImode added in ISA 2.07, and
12739         support for ISA 3.0 VNEGW/VNEGD instructions.
12741 2016-05-24  Cesar Philippidis  <cesar@codesourcery.com>
12743         * gimplify.c (omp_notice_variable): Use zero-length arrays for data
12744         pointers inside OACC_DATA regions.
12745         (gimplify_scan_omp_clauses): Prune firstprivate clause associated
12746         with OACC_DATA, OACC_ENTER_DATA and OACC_EXIT data regions.
12747         (gimplify_adjust_omp_clauses): Fix typo in comment.
12749 2016-05-24  Michael Meissner  <meissner@linux.vnet.ibm.com>
12751         * config/rs6000/altivec.md (VParity): New mode iterator for vector
12752         parity built-in functions.
12753         (p9v_ctz<mode>2): Add support for ISA 3.0 vector count trailing
12754         zeros.
12755         (p9v_parity<mode>2): Likewise.
12756         * config/rs6000/vector.md (VEC_IP): New mode iterator for vector
12757         parity.
12758         (ctz<mode>2): ISA 3.0 expander for vector count trailing zeros.
12759         (parity<mode>2): ISA 3.0 expander for vector parity.
12760         * config/rs6000/rs6000-builtin.def (BU_P9_MISC_1): New macros for
12761         power9 built-ins.
12762         (BU_P9_64BIT_MISC_0): Likewise.
12763         (BU_P9_MISC_0): Likewise.
12764         (BU_P9V_AV_1): Likewise.
12765         (BU_P9V_AV_2): Likewise.
12766         (BU_P9V_AV_3): Likewise.
12767         (BU_P9V_AV_P): Likewise.
12768         (BU_P9V_VSX_1): Likewise.
12769         (BU_P9V_OVERLOAD_1): Likewise.
12770         (BU_P9V_OVERLOAD_2): Likewise.
12771         (BU_P9V_OVERLOAD_3): Likewise.
12772         (VCTZB): Add vector count trailing zeros support.
12773         (VCTZH): Likewise.
12774         (VCTZW): Likewise.
12775         (VCTZD): Likewise.
12776         (VPRTYBD): Add vector parity support.
12777         (VPRTYBQ): Likewise.
12778         (VPRTYBW): Likewise.
12779         (VCTZ): Add overloaded vector count trailing zeros support.
12780         (VPRTYB): Add overloaded vector parity support.
12781         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
12782         overloaded vector count trailing zeros and parity instructions.
12783         * config/rs6000/rs6000.md (wd mode attribute): Add V1TI and TI for
12784         vector parity support.
12785         * config/rs6000/altivec.h (vec_vctz): Add ISA 3.0 vector count
12786         trailing zeros support.
12787         (vec_cntlz): Likewise.
12788         (vec_vctzb): Likewise.
12789         (vec_vctzd): Likewise.
12790         (vec_vctzh): Likewise.
12791         (vec_vctzw): Likewise.
12792         (vec_vprtyb): Add ISA 3.0 vector parity support.
12793         (vec_vprtybd): Likewise.
12794         (vec_vprtybw): Likewise.
12795         (vec_vprtybq): Likewise.
12796         * doc/extend.texi (PowerPC AltiVec Built-in Functions): Document
12797         the ISA 3.0 vector count trailing zeros and vector parity built-in
12798         functions.
12800 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12802         * tree-ssa-reassoc.c (sort_by_operand_rank): Skip checking gimple_bb
12803         when there is stmt_to_insert.
12805 2016-05-24  Martin Sebor  <msebor@redhat.com>
12807         PR c++/71147
12808         * tree.h (complete_or_array_type_p): New inline function.
12810 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12812         * config/i386/i386.h (TARGET_AVOID_4BYTE_PREFIXES): Define.
12813         * config/i386/constraints.md (Yr): Test TARGET_AVOID_4BYTE_PREFIXES
12814         rather than X86_TUNE_AVOID_4BYTE_PREFIXES.
12816         * config/i386/sse.md (<sse4_1>_round<ssemodesuffix><avxsizesuffix>):
12817         Limit 1st alternative to noavx isa, split 2nd alternative into one
12818         noavx and one avx alternative, use *x and Bm in the former and
12819         x and m in the latter.
12821         * config/i386/sse.md (vec_set<mode>_0): Use sse4_noavx isa instead
12822         of sse4 for the first alternative, drop %v from the template
12823         and d operand modifier.  Split second alternative into one sse4_noavx
12824         and one avx alternative, use *x instead of *v in the former and v
12825         instead of *v in the latter.
12826         (*sse4_1_extractps): Use noavx isa instead of * for the first
12827         alternative, drop %v from the template.  Split second alternative into
12828         one noavx and one avx alternative, use *x instead of *v in the
12829         former and v instead of *v in the latter.
12830         (<vi8_sse4_1_avx2_avx512>_movntdqa): Guard the first 2 alternatives
12831         with noavx and the last one with avx.
12832         (sse4_1_phminposuw): Guard first alternative with noavx isa,
12833         split the second one into one noavx and one avx alternative,
12834         use *x and Bm in the former and x and m in the latter one.
12835         (<sse4_1>_ptest<mode>): Use noavx instead of * for the first two
12836         alternatives.
12838         * config/i386/sse.md (sse4_1_<code>v8qiv8hi2<mask_name>): Limit
12839         first two alternatives to noavx, use *x instead of *v in the second
12840         one, add avx alternative without *.
12841         (sse4_1_<code>v4qiv4si2<mask_name>, sse4_1_<code>v4hiv4si2<mask_name>,
12842         sse4_1_<code>v2qiv2di2<mask_name>, sse4_1_<code>v2hiv2di2<mask_name>,
12843         sse4_1_<code>v2siv2di2<mask_name>): Likewise.
12845 2016-05-24  Jeff Law  <law@redhat.com>
12847         * tree-ssa-threadbackwards.c (convert_and_register_jump_thread_path):
12848         New function, extracted from...
12849         (fsm_find_control_statement_thread_paths): Here.  Use the new function.
12850         Allow simple copies and constant initializations in the SSA chain.
12852 2016-05-24  Marek Polacek  <polacek@redhat.com>
12854         PR c/71249
12855         * gimplify.c (gimplify_switch_expr): Look into the innermost lexical
12856         scope.
12858 2016-05-24  Jakub Jelinek  <jakub@redhat.com>
12860         PR c++/71257
12861         * tree-vect-stmts.c (vectorizable_simd_clone_call): Handle
12862         SIMD_CLONE_ARG_TYPE_LINEAR_REF_CONSTANT_STEP like
12863         SIMD_CLONE_ARG_TYPE_LINEAR_CONSTANT_STEP.  Add
12864         SIMD_CLONE_ARG_TYPE_LINEAR_VAL_CONSTANT_STEP and
12865         SIMD_CLONE_ARG_TYPE_LINEAR_UVAL_CONSTANT_STEP cases explicitly.
12867 2016-05-24  Richard Biener  <rguenther@suse.de>
12869         PR tree-optimization/71240
12870         * tree-ssa-math-opts.c (init_symbolic_number): Verify the source
12871         has integral type.
12873 2016-05-24  Richard Biener  <rguenther@suse.de>
12875         PR tree-optimization/71230
12876         * tree-ssa-reassoc.c (zero_one_operation): Handle negate special ops.
12878 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12880         * tree-vectorizer.h (vectorizable_comparison): Delete.
12881         * tree-vect-loop.c (vectorizable_reduction): Remove redundant
12882         PURE_SLP_STMT check.
12883         * tree-vect-stmts.c (vectorizable_call): Likewise.
12884         (vectorizable_simd_clone_call): Likewise.
12885         (vectorizable_conversion): Likewise.
12886         (vectorizable_assignment): Likewise.
12887         (vectorizable_shift): Likewise.
12888         (vectorizable_operation): Likewise.
12889         (vectorizable_load): Likewise.
12890         (vectorizable_condition): Likewise.
12891         (vectorizable_store): Likewise.  Assert that we don't have
12892         hybrid SLP.
12893         (vectorizable_comparison): Make static.  Remove redundant
12894         PURE_SLP_STMT check.
12895         (vect_transform_stmt): Assert that we always have an slp_node
12896         if PURE_SLP_STMT.
12898 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12900         * config/arm/neon.md (ashldi3_neon):  Replace comparison of INTVAL of
12901         operands[2] against 1 with comparison against CONST1_RTX.
12902         (<shift>di3_neon): Likewise.
12903         * config/arm/predicates.md (const0_operand): Replace with comparison
12904         against CONST0_RTX.
12906 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12908         * config/arm/arm.md (ashldi3): Replace comparison of INTVAL of
12909         operands[2] against 1 with comparison against CONST1_RTX.
12910         (ashrdi3): Likewise.
12911         (lshrdi3): Likewise.
12912         (ashlsi3): Replace cast of INTVAL to unsigned HOST_WIDE_INT with
12913         UINTVAL.
12914         (ashrsi3): Likewise.
12915         (lshrsi3): Likewise.
12916         (rotrsi3): Likewise.
12917         (define_split above *compareqi_eq0): Likewise.
12918         (define_split above "prologue"): Likewise.
12919         * config/arm/arm.c (thumb1_size_rtx_costs): Likewise.
12920         * config/arm/predicates.md (shift_operator): Likewise.
12921         (shift_nomul_operator): Likewise.
12922         (sat_shift_operator): Likewise.
12923         (thumb1_cmp_operand): Likewise.
12924         (const_neon_scalar_shift_amount_operand): Replace manual range
12925         check with IN_RANGE.
12926         * config/arm/thumb1.md (define_peephole2 above *thumb_subdi3):
12927         Replace cast of INTVAL to unsigned HOST_WIDE_INT with UINTVAL.
12929 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12931         * config/arm/arm.md (andsi3): Replace cast of 1 to HOST_WIDE_INT
12932         with HOST_WIDE_INT_1.
12933         (insv): Likewise.
12934         * config/arm/arm.c (optimal_immediate_sequence): Replace cast of
12935         1 to unsigned HOST_WIDE_INT with HOST_WIDE_INT_1U.
12936         (arm_canonicalize_comparison): Likewise.
12937         (thumb1_rtx_costs): Replace cast of 1 to HOST_WIDE_INT with
12938         HOST_WIDE_INT_1.
12939         (thumb1_size_rtx_costs): Likewise.
12940         (vfp_const_double_index): Replace cast of 1 to unsigned
12941         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12942         (get_jump_table_size): Replace cast of 1 to HOST_WIDE_INT with
12943         HOST_WIDE_INT_1.
12944         (arm_asan_shadow_offset): Replace cast of 1 to unsigned
12945         HOST_WIDE_INT with HOST_WIDE_INT_1U.
12946         * config/arm/neon.md (vec_set<mode>): Replace cast of 1 to
12947         HOST_WIDE_INT with HOST_WIDE_INT_1.
12949 2016-05-24  Marek Polacek  <polacek@redhat.com>
12951         * tree-cfg.h (should_remove_lhs_p): New predicate.
12952         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Use it.
12953         * gimplify.c (gimplify_modify_expr): Likewise.
12954         * tree-cfg.c (verify_gimple_call): Likewise.
12955         * tree-cfgcleanup.c (fixup_noreturn_call): Likewise.
12956         * gimple-fold.c: Include "tree-cfg.h".
12957         (gimple_fold_call): Use should_remove_lhs_p.
12959 2016-05-24  Richard Biener  <rguenther@suse.de>
12961         PR tree-optimization/71253
12962         * cfganal.h (control_dependences): Make robust against edge
12963         and BB removal.
12964         (control_dependences::control_dependences): Remove edge_list argument.
12965         (control_dependences::get_edge): Remove.
12966         (control_dependences::get_edge_src): Add.
12967         (control_dependences::get_edge_dest): Likewise.
12968         (control_dependences::m_el): Make a vector of edge src/dest index.
12969         * cfganal.c (control_dependences::find_control_dependence): Adjust.
12970         (control_dependences::control_dependences): Likewise.
12971         (control_dependences::~control_dependence): Likewise.
12972         (control_dependences::get_edge): Remove.
12973         (control_dependences::get_edge_src): Add.
12974         (control_dependences::get_edge_dest): Likewise.
12975         * tree-ssa-dce.c (mark_control_dependent_edges_necessary): Use
12976         get_edge_src.
12977         (perform_tree_ssa_dce): Adjust.
12978         * tree-loop-distribution.c (create_edge_for_control_dependence): Use
12979         get_edge_src.
12980         (pass_loop_distribution::execute): Adjust.  Do loop destroying
12981         conditional on changed.
12983 2016-05-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12985         PR target/69857
12986         * config/arm/arm.c (gen_operands_ldrd_strd): Remove bogus early
12987         return.  Reindent transformation comment and mention the ARM state
12988         behavior.
12990 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
12992         PR middle-end/71252
12993         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Add stmt_to_insert
12994         after build_and_add_sum creates new use stmt.
12996 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
12998         * tree-vect-stmts.c (vectorizable_load): Reorder checks so that
12999         load_lanes/grouped_load classification comes first.  Don't check
13000         whether the vectorization factor is a multiple of the group size
13001         for load_lanes.
13003 2016-05-24  Richard Sandiford  <richard.sandiford@arm.com>
13005         * tree-vect-data-refs.c (vect_analyze_group_access_1): Set
13006         GROUP_GAP for single-element interleaving.
13007         * tree-vect-stmts.c (vectorizable_load): Remove force_peeling
13008         variable.
13010 2016-05-24  Richard Biener  <rguenther@suse.de>
13012         PR middle-end/70434
13013         PR c/69504
13014         * tree-ssa.c (non_rewritable_mem_ref_base): Make sure to mark
13015         bases which are accessed with non-invariant indices.
13016         * gimple-fold.c (maybe_canonicalize_mem_ref_addr): Re-write
13017         constant index ARRAY_REFs of vectors into BIT_FIELD_REFs.
13019 2016-05-24  Kugan Vivekanandarajah  <kuganv@linaro.org>
13021         PR middle-end/71170
13022         * tree-ssa-reassoc.c (struct operand_entry): Add field stmt_to_insert.
13023         (add_to_ops_vec): Add stmt_to_insert.
13024         (add_repeat_to_ops_vec): Init stmt_to_insert.
13025         (insert_stmt_before_use): New.
13026         (transform_add_to_multiply): Remove mult_stmt insertion and add it
13027         to ops vector.
13028         (get_ops): Init stmt_to_insert.
13029         (maybe_optimize_range_tests): Likewise.
13030         (rewrite_expr_tree): Insert stmt_to_insert before use stmt.
13031         (rewrite_expr_tree_parallel): Likewise.
13032         (reassociate_bb): Likewise.
13034 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13036         PR target/71201
13037         * config/rs6000/altivec.md (altivec_vperm_<mode>_internal): Drop
13038         ISA 3.0 xxperm fusion alternative.
13039         (altivec_vperm_v8hiv16qi): Likewise.
13040         (altivec_vperm_<mode>_uns_internal): Likewise.
13041         (vperm_v8hiv4si): Likewise.
13042         (vperm_v16qiv8hi): Likewise.
13044 2016-05-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
13045             Kelvin Nilsen  <kelvin@gcc.gnu.org>
13047         * config/rs6000/rs6000.c (rs6000_expand_vector_set): Generate
13048         vpermr/xxpermr on ISA 3.0.
13049         (altivec_expand_vec_perm_le): Likewise.
13050         * config/rs6000/altivec.md (UNSPEC_VPERMR): New unspec.
13051         (altivec_vpermr_<mode>_internal): Add VPERMR/XXPERMR support for
13052         ISA 3.0.
13054 2016-05-23  Uros Bizjak  <ubizjak@gmail.com>
13056         * config/i386/i386.h (IS_STACK_MODE): Enable for
13057         TARGET_MIX_SSE_I387.  Rewrite using X87_FLOAT_MODE_P and
13058         SSE_FLOAT_MODE_P macros.
13059         * config/i386/i386.c (ix86_preferred_reload_class): Use
13060         IS_STACK_MODE, INTEGER_CLASS_P, FLOAT_CLASS_P and Q_CLASS_P macros.
13061         Cleanup regclass processing for CONST_DOUBLE_P.
13062         (ix86_preferred_output_reload_class): Use IS_STACK_MODE macro.
13063         (ix86_rtx_costs): Remove redundant TARGET_80387 check
13064         with IS_STACK_MODE macro.
13065         * config/i386/i386.md: Replace SSE_FLOAT_MODE_P (DFmode)
13066         with TARGET_SSE2.
13067         (*movdf_internal): Use IS_STACK_MODE macro.
13068         (*movsf_internal): Ditto.
13070 2016-05-23  Marc Glisse  <marc.glisse@inria.fr>
13072         * match.pd (a * (1 << b), ~x & ~y, ~X ^ ~Y, (X ^ Y) ^ Y, ~ (-A),
13073         ~ (A - 1), ~(~X >> Y), ~(~X >>r Y)): Relax constraints.
13075 2016-05-23  Jeff Law  <law@redhat.com>
13077         * tree-ssa-threadbackward.c (profitable_jump_thread_path): New function
13078         extracted from ...
13079         (fsm_find_control_statement_thread_paths): Call it.
13081 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13083         PR ipa/71234
13084         * ipa-cp.c (ipa_get_indirect_edge_target_1): Only check value of
13085         from_global_constant if t is not NULL.
13087 2016-05-23  Marek Polacek  <polacek@redhat.com>
13089         PR c/49859
13090         * common.opt (Wswitch-unreachable): New option.
13091         * doc/invoke.texi: Document -Wswitch-unreachable.
13092         * gimplify.c (gimplify_switch_expr): Implement the -Wswitch-unreachable
13093         warning.
13095 2016-05-23  Bin Cheng  <bin.cheng@arm.com>
13097         * tree-ssa-address.c (copy_ref_info): Check NULL TMR_STEP when
13098         TMR_INDEX is non-NULL.
13100 2016-05-23  Richard Biener  <rguenther@suse.de>
13102         PR tree-optimization/71230
13103         * tree-ssa-reassoc.c (acceptable_pow_call): Move initial condition...
13104         (try_special_add_to_ops): ... here.  Always test for single-use.
13106 2016-05-23  Martin Jambor  <mjambor@suse.cz>
13108         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Create an empty
13109         default block if a PHI node in the original one would be resized.
13111 2016-05-23  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
13113         PR tree-optimization/58135
13114         * tree-vect-slp.c: When group size is not multiple
13115         of vector size, allow splitting of store group at
13116         vector boundary.
13118 2016-05-23  Christophe Lyon  <christophe.lyon@linaro.org>
13120         * config/arm/arm_neon.h (vtst_p16, vtstq_p16): New.
13122 2016-05-22  Jakub Jelinek  <jakub@redhat.com>
13124         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
13125         vec_set_hi_<mode><mask_name>): Add && <mask_avx512dq_condition>
13126         condition.  For !TARGET_AVX512DQ, emit 32x4 instruction instead
13127         of 64x2.
13129         * config/i386/sse.md (vec_set_lo_v16hi, vec_set_hi_v16hi,
13130         vec_set_lo_v32qi, vec_set_hi_v32qi): Add alternative with
13131         v constraint instead of x and vinserti32x4 insn.
13133         * config/i386/sse.md (i128vldq): New mode iterator.
13134         (avx2_vbroadcasti128_<mode>, avx_vbroadcastf128_<mode>): Add
13135         avx512dq and avx512vl alternatives.
13137         * config/i386/sse.md (avx2_vec_dupv4df): Use v instead of x
13138         constraint, use maybe_evex prefix instead of vex.
13139         (vec_dupv4sf): Use v constraint instead of x for output
13140         operand except for noavx alternative, use Yv constraint
13141         instead of x for input.  Use maybe_evex prefix instead of vex.
13142         (*vec_dupv4si): Likewise.
13143         (*vec_dupv2di): Likewise.
13145 2016-05-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
13147         PR middle-end/40921
13148         * tree-ssa-reassoc.c (try_special_add_to_ops): New.
13149         (linearize_expr_tree): Call try_special_add_to_ops.
13150         (reassociate_bb): Convert MULT_EXPR by (-1) to NEGATE_EXPR.
13152 2016-05-21  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
13154         * config/avr/avr.c (avr_expand_prologue): Add INCOMING_FRAME_SP_OFFSET
13155         to computed stack_usage.
13157 2016-05-21  Pitchumani Sivanupandi  <pitchumani.s@atmel.com>
13159         PR target/71103
13160         * config/avr/avr.md (define_expand "mov<mode>"): If the source
13161         operand is subreg (symbol_ref) then move the symbol ref to register.
13163 2016-05-21  Jan Hubicka  <hubicka@ucw.cz>
13165         * tree.c (array_at_struct_end_p): Look through MEM_REF.
13167 2016-05-21  Kugan Vivekanandarajah  <kuganv@linaro.org>
13169         PR middle-end/71179
13170         * tree-ssa-reassoc.c (transform_add_to_multiply): Disallow float
13171         VECTOR type.
13173 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13175         * tree-vrp.c (compare_values_warnv): Simplify handling of symbolic
13176         ranges by calling get_single_symbol and tidy up.  Look more closely
13177         into NAME + CST1 vs CST2 comparisons if type overflow is undefined.
13179 2016-05-20  Jeff Law  <law@redhat.com>
13181         * bitmap.c (bitmap_find_bit): Remove useless test.
13183 2016-05-20  Segher Boessenkool  <segher@kernel.crashing.org>
13185         * function.c (thread_prologue_and_epilogue_insns): Commit the
13186         insertion of the epilogue.
13188 2016-05-20  Martin Jambor  <mjambor@suse.cz>
13190         PR tree-optimization/70884
13191         * tree-sra.c (initialize_constant_pool_replacements): Do not check
13192         should_scalarize_away_bitmap and cannot_scalarize_away_bitmap bits.
13193         (sort_and_splice_var_accesses): Do not consider multiple scalar reads
13194         of constant pool data as a reason for scalarization.
13196 2016-05-20  Eric Botcazou  <ebotcazou@adacore.com>
13198         * config/arm/arm.c (arm_expand_prologue): Set the stack usage to 0
13199         for naked functions.
13200         (thumb1_expand_prologue): Likewise.
13202 2016-05-20  Nathan Sidwell  <nathan@acm.org>
13204         * config/nvptx/nptx.c (nvptx_option_override): Only set
13205         flag_toplevel_reorder, if not explicitly specified.  Set
13206         flag_no_common, unless explicitly specified.
13208 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13210         * calls.c (can_implement_as_sibling_call_p): Mark param
13211         reg_parm_stack_space with ATTRIBUTE_UNUSED.
13213 2016-05-20  Uros Bizjak  <ubizjak@gmail.com>
13215         * config/i386/i386.c (ix86_rtx_costs) <case CONST_DOUBLE>:
13216         Use IS_STACK_MODE when calculating cost of standard 80387 constants.
13217         Fallthru to CONST_VECTOR case to calculate cost of standard SSE
13218         constants.
13219         <case CONST_WIDE_INT>: Calculate cost of (MEM (SYMBOL_REF)).
13220         (ix86_legitimate_constant_p): Use CASE_CONST_SCALAR_INT
13221         and CASE_CONST_ANY.
13223 2016-05-20  Cesar Philippidis  <cesar@codesourcery.com>
13225         * config/nvptx/nvptx.md (sincossf3): New pattern.
13227 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13229         * calls.c (maybe_complain_about_tail_call): New function.
13230         (initialize_argument_information): Call
13231         maybe_complain_about_tail_call when clearing *may_tailcall.
13232         (can_implement_as_sibling_call_p): Call
13233         maybe_complain_about_tail_call when returning false.
13234         (expand_call): Read CALL_EXPR_MUST_TAIL_CALL and, if set,
13235         ensure try_tail_call is set.  Call maybe_complain_about_tail_call
13236         if tail-call optimization fails.
13237         * cfgexpand.c (expand_call_stmt): Initialize
13238         CALL_EXPR_MUST_TAIL_CALL from gimple_call_must_tail_p.
13239         * gimple-pretty-print.c (dump_gimple_call): Dump
13240         gimple_call_must_tail_p.
13241         * gimple.c (gimple_build_call_from_tree): Call
13242         gimple_call_set_must_tail with the value of
13243         CALL_EXPR_MUST_TAIL_CALL.
13244         * gimple.h (enum gf_mask): Add GF_CALL_MUST_TAIL_CALL.
13245         (gimple_call_set_must_tail): New function.
13246         (gimple_call_must_tail_p): New function.
13247         * print-tree.c (print_node): Update printing of TREE_STATIC
13248         to reflect its use for CALL_EXPR_MUST_TAIL_CALL.
13249         * tree-core.h (struct tree_base): Add MUST_TAIL_CALL to the
13250         trailing comment listing applicable flags.
13251         * tree.h (CALL_EXPR_MUST_TAIL_CALL): New macro.
13253 2016-05-20  David Malcolm  <dmalcolm@redhat.com>
13255         * calls.c (expand_call): Move "Rest of purposes for tail call
13256         optimizations to fail" to...
13257         (can_implement_as_sibling_call_p): ...this new function, and
13258         split into multiple "if" statements.
13260 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13262         * cfgloop.h (expected_loop_iterations_unbounded,
13263         expected_loop_iterations): Unconstify.
13264         * cfgloopanal.c (expected_loop_iterations_unbounded): Sanity check the
13265         profile with known upper bound; return 3 when profile is absent.
13266         (expected_loop_iterations): Update.
13268 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13270         * loop-doloop.c (doloop_optimize): Use get_estimated_loop_iterations_int
13271         and get_max_loop_iterations_int.
13273 2016-05-20  Jan Hubicka  <hubicka@ucw.cz>
13275         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can not produce
13276         realistic upper bounds here.
13278 2016-05-20  Jakub Jelinek  <jakub@redhat.com>
13280         PR c++/71210
13281         * gimple-fold.c (gimple_fold_call): Do not remove lhs of noreturn
13282         calls if the LHS is variable length or has addressable type.
13283         If targets[0]->decl is a noreturn call with void return type and
13284         zero arguments, adjust fntype and remove lhs in that case.
13286 2016-05-20  Marc Glisse  <marc.glisse@inria.fr>
13288         PR tree-optimization/71079
13289         PR tree-optimization/71206
13290         * match.pd ((X ^ Y) ^ (X ^ Z)): Convert the arguments.
13292 2016-05-20  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13294         * tree-vectorizer.c (get_vec_alignment_for_decl): New static function.
13295         (get_vec_alignment_for_array_decl): Likewise.
13296         (get_vec_alignment_for_record_decl): Likewise.
13297         (increase_alignment::execute): Move code to find alignment to
13298         get_vec_alignment_for_array_decl and call get_vec_alignment_for_decl.
13299         (type_align_map): New hash_map.
13301 2016-05-20  Richard Guenther  <rguenther@suse.de>
13303         PR tree-optimization/29756
13304         * tree.def (BIT_INSERT_EXPR): New tcc_expression tree code.
13305         * expr.c (expand_expr_real_2): Handle BIT_INSERT_EXPR.
13306         * fold-const.c (operand_equal_p): Likewise.
13307         (fold_ternary_loc): Add constant folding of BIT_INSERT_EXPR.
13308         * gimplify.c (gimplify_expr): Handle BIT_INSERT_EXPR.
13309         * tree-inline.c (estimate_operator_cost): Likewise.
13310         * tree-pretty-print.c (dump_generic_node): Likewise.
13311         * tree-ssa-operands.c (get_expr_operands): Likewise.
13312         * cfgexpand.c (expand_debug_expr): Likewise.
13313         * gimple-pretty-print.c (dump_ternary_rhs): Likewise.
13314         * gimple.c (get_gimple_rhs_num_ops): Handle BIT_INSERT_EXPR.
13315         * tree-cfg.c (verify_gimple_assign_ternary): Verify BIT_INSERT_EXPR.
13316         * tree-ssa.c (non_rewritable_lvalue_p): We can rewrite
13317         vector inserts using BIT_FIELD_REF or MEM_REF on the lhs.
13318         (execute_update_addresses_taken): Do it.
13320 2016-05-20  Richard Biener  <rguenther@suse.de>
13322         PR tree-optimization/71185
13323         * tree-ssa-loop-prefetch.c (gather_memory_references): Drop
13324         register operations.
13326 2016-05-20  Richard Biener  <rguenther@suse.de>
13328         * tree-if-conv.c (add_bb_predicate_gimplified_stmts): Use
13329         gimple_seq_add_seq_without_update.
13330         (release_bb_predicate): Assert we have no operands to free.
13331         (if_convertible_loop_p_1): Calculate post dominators later.
13332         Do not free BB predicates here.
13333         (combine_blocks): Do not recompute BB predicates.
13334         (version_loop_for_if_conversion): Save BB predicates around
13335         loop versioning.
13337 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
13339         * function.c (make_epilogue_seq): Remove epilogue_end parameter.
13340         (thread_prologue_and_epilogue_insns): Remove bb_flags.  Restructure
13341         code.  Ignore sibcalls on EDGE_IGNORE edges.
13342         * shrink-wrap.c (handle_simple_exit): New function.  Set EDGE_IGNORE
13343         on edges for sibcalls that run without prologue.  The rest of the
13344         function is combined from...
13345         (fix_fake_fallthrough_edge): ... this, and ...
13346         (try_shrink_wrapping): ... a part of this.  Remove the bb_with
13347         function argument, make it a local variable.
13349 2016-05-19  Sandra Loosemore  <sandra@codesourcery.com>
13351         * config/i386/cygming.h (DWARF2_UNWIND_INFO): Allow
13352         --disable-sjlj-exceptions for TARGET_BI_ARCH to select DWARF-2 EH
13353         for 32-bit mode and SEH for 64-bit.
13354         * config/i386/mingw32.h (SHARED_LIBGCC_UNDEFS_SPEC): Handle
13355         TARGET_64BIT_DEFAULT.
13357 2016-05-19  Ryan Burn  <contact@rnburn.com>
13359         * Makefile.in (GTFILES): Add cilk.h and cilk-common.c.
13360         * gengtype.c (open_base_files): Add cilk.h to ifiles.
13362 2016-05-19  Uros Bizjak  <ubizjak@gmail.com>
13364         * sched-deps.c (sched_analyze_2) <case TRAP_IF>: Also
13365         force pending loads from memory.
13367 2016-05-19  Kelvin Nilsen  <kelvin@gcc.gnu.org>
13369         * config/rs6000/altivec.md (UNSPEC_DARN): New unspec constant.
13370         (UNSPEC_DARN_32): New unspec constant.
13371         (UNSPEC_DARN_RAW): New unspec constant.
13372         (darn_32): New instruction.
13373         (darn_raw): New instruction.
13374         (darn): New instruction.
13375         * config/rs6000/rs6000-builtin.def (RS6000_BUILTIN_0): Add
13376         support and documentation for this macro.
13377         (BU_P9_MISC_1): New macro definition.
13378         (BU_P9_64BIT_MISC_0): New macro definition.
13379         (BU_P9_MISC_0): New macro definition.
13380         (darn_32): New builtin definition.
13381         (darn_raw): New builtin definition.
13382         (darn): New builtin definition.
13383         * config/rs6000/rs6000.c: Add #define RS6000_BUILTIN_0 and #undef
13384         RS6000_BUILTIN_0 directives to surround each occurrence of
13385         #include "rs6000-builtin.def".
13386         (rs6000_builtin_mask_calculate): Add in the RS6000_BTM_MODULO and
13387         RS6000_BTM_64BIT flags to the returned mask, depending on
13388         configuration.
13389         (def_builtin): Correct an error in the assignments made to the
13390         debugging variable attr_string.
13391         (rs6000_expand_builtin): Add support for no-operand built-in
13392         functions.
13393         (builtin_function_type): Remove fatal_error assertion that is no
13394         longer valid.
13395         (rs6000_common_init_builtins): Add support for no-operand built-in
13396         functions.
13397         * config/rs6000/rs6000.h (RS6000_BTM_MODULO): New macro
13398         definition.
13399         (RS6000_BTM_PURE): Enhance comment to clarify intent of this flag
13400         definition.
13401         (RS6000_BTM_64BIT): New macro definition.
13402         * doc/extend.texi: Document __builtin_darn (void),
13403         __builtin_darn_raw (void), and __builtin_darn_32 (void) built-in
13404         functions.
13406 2016-05-19  Jan Hubicka  <hubicka@ucw.cz>
13408         * tree-vect-loop.c (vect_analyze_loop_2): Use also
13409         max_loop_iterations_int.
13411 2016-05-19  Marek Polacek  <polacek@redhat.com>
13413         PR tree-optimization/71031
13414         * tree-vrp.c (extract_range_from_binary_expr_1): Turn assert into a
13415         condition and adjust the code a bit.
13417 2016-05-19  Martin Liska  <mliska@suse.cz>
13419         * tree-vect-stmts.c (vectorizable_simd_clone_call): Utilize
13420         auto_vec instead of vec.
13422 2016-05-19  Martin Liska  <mliska@suse.cz>
13424         * tree-parloops.c (oacc_entry_exit_ok): Release a vector.
13426 2016-05-19  Martin Liska  <mliska@suse.cz>
13428         * tree-if-conv.c (ifcvt_repair_bool_pattern): Utilize auto_vecs.
13430 2016-05-19  Martin Liska  <mliska@suse.cz>
13432         * ipa-pure-const.c (set_function_state): Remove an existing
13433         funct_state.
13434         (remove_node_data): Do not free it as it's released
13435         in set_function_state.
13437 2016-05-19  Martin Liska  <mliska@suse.cz>
13439         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Release
13440         bitmap.
13442 2016-05-19  Martin Liska  <mliska@suse.cz>
13444         * omp-simd-clone.c (simd_clone_adjust): Release vector.
13446 2016-05-19  Martin Liska  <mliska@suse.cz>
13448         * tree-ssa-reassoc.c (eliminate_duplicate_pair): Truncate
13449         an auto_vec instead of re-creating it.
13451 2016-05-19  Martin Liska  <mliska@suse.cz>
13453         * tree-ssa-loop-prefetch.c (determine_loop_nest_reuse): Use
13454         auto_vec instead of vec.
13456 2016-05-19  Martin Liska  <mliska@suse.cz>
13458         * lto-section-in.c (lto_get_section_data): Call
13459         lto_check_version with additional argument.
13460         * lto-streamer.c (lto_check_version): Add new argument.
13461         * lto-streamer.h (lto_check_version): Likewise.
13463 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13465         * config/arm/arm.c (arm_new_rtx_costs, SIGN_EXTEND case):
13466         Don't add cost of inner memory when handling sign-extended loads.
13468 2016-05-19  Ilya Enkovich  <ilya.enkovich@intel.com>
13470         PR rtl-optimization/71148
13471         * cse.c (cse_main): Free dominance info.
13472         (rest_of_handle_cse): Don't free dominance info.
13473         (rest_of_handle_cse2): Likewise.
13474         (rest_of_handle_cse_after_global_opts): Likewise.
13476 2016-05-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13478         PR target/71056
13479         * config/arm/arm-builtins.c (arm_builtin_vectorized_function): Return
13480         NULL_TREE early if NEON is not available.  Remove now redundant check
13481         in ARM_CHECK_BUILTIN_MODE.
13483 2016-05-19  Maxim Ostapenko  <m.ostapenko@samsung.com>
13485         PR sanitizer/64354
13486         * cppbuiltin.c (define_builtin_macros_for_compilation_flags): Add new
13487         builtin __SANITIZE_THREAD__ macros for fsanitize=thread switch.
13488         * doc/cpp.texi: Document new macros.
13490 2016-05-19  Bin Cheng  <bin.cheng@arm.com>
13492         PR tree-optimization/69848
13493         * tree-vect-loop.c (vectorizable_reduction): Don't factor
13494         comparison expr out of VEC_COND_EXPR for COND_REDUCTION.
13496 2016-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
13498         * function.c (thread_prologue_and_epilogue_insn): Move the
13499         "goto epilogue_done" one block later.
13501 2016-05-19  Richard Biener  <rguenther@suse.de>
13503         PR tree-optimization/70729
13504         * passes.def: Move LIM pass before PRE.  Remove no longer
13505         required copyprop and move first DCE out of the loop pipeline.
13507 2016-05-18  David Malcolm  <dmalcolm@redhat.com>
13509         PR driver/69265
13510         * Makefile.in (GCC_OBJS): Move spellcheck.o to...
13511         (OBJS-libcommon-target): ...here.
13512         * opts-common.c: Include spellcheck.h.
13513         (cmdline_handle_error): Build a vec of valid options and use it
13514         to suggest provide hints for misspelled arguments.
13516 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
13518         PR c++/71100
13519         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Don't drop
13520         lhs if it has TREE_ADDRESSABLE type.
13522 2016-05-18  Uros Bizjak  <ubizjak@gmail.com>
13524         PR target/71145
13525         * config/alpha/alpha.md (trap): Add (use (reg:DI 29)).
13526         (*exception_receiver_1): Return "#" for TARGET_EXPLICIT_RELOCS.
13528 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13530         PR ipa/69708
13531         * ipa-cp.c (ipa_get_jf_pass_through_result): Allow non-ip constant
13532         input for NOP_EXPR pass-through functions.
13533         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Allow
13534         aggregate global constant VAR_DECLs in constant jump functions.
13536 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13538         PR ipa/69708
13539         * ipa-prop.c (parm_preserved_before_stmt_p): Return true for loads
13540         from TREE_READONLY parameters.
13542 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13544         PR ipa/69708
13545         * cgraph.h (cgraph_indirect_call_info): New field
13546         guaranteed_unmodified.
13547         * ipa-cp.c (ipa_get_indirect_edge_target_1): Also pass parameter value
13548         to ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13549         appropriate.
13550         * ipa-inline-analysis.c (evaluate_conditions_for_known_args): Also
13551         pass the parameter value to ipa_find_agg_cst_for_param.
13552         * ipa-prop.c (ipa_load_from_parm_agg): New parameter
13553         guaranteed_unmodified, store AA results there instead of bailing out
13554         if present.
13555         (ipa_note_param_call): Also initialize guaranteed_unmodified flag.
13556         (ipa_analyze_indirect_call_uses): Also set guaranteed_unmodified flag.
13557         (find_constructor_constant_at_offset): New function.
13558         (ipa_find_agg_cst_from_init): Likewise.
13559         (ipa_find_agg_cst_for_param): Also seearch for aggregate values in
13560         static initializers of contants, report back through a new paameter
13561         from_global_constant if that was the case.
13562         (try_make_edge_direct_simple_call): Also pass parameter value to
13563         ipa_find_agg_cst_for_param, check guaranteed_unmodified when
13564         appropriate.
13565         (ipa_write_indirect_edge_info): Stream new flag guaranteed_unmodified.
13566         (ipa_read_indirect_edge_info): Likewise.
13567         * ipa-prop.h (ipa_find_agg_cst_for_param): Update declaration.
13568         (ipa_load_from_parm_agg): Likewise.
13570 2016-05-18  Jiong Wang  <jiong.wang@arm.com>
13572         PR rtl-optimization/71150
13573         * lra-constraint (process_addr_reg): Guard "in_class_p" with REG_P
13574         check.
13576 2016-05-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
13578         PR target/70915
13579         * config/rs6000/constraints.md (wE constraint): New constraint
13580         for a vector constant that can be loaded with XXSPLTIB.
13581         (wM constraint): New constraint for a vector constant of a 1's.
13582         (wS constraint): New constraint for a vector constant that can be
13583         loaded with XXSPLTIB and a vector sign extend instruction.
13584         * config/rs6000/predicates.md (xxspltib_constant_split): New
13585         predicates for wE/wS constraints.
13586         (xxspltib_constant_nosplit): Likewise.
13587         (easy_vector_constant): Add support for constants that can be
13588         loaded via XXSPLTIB.
13589         (all_ones_constant): New predicate for vector constant with all
13590         1's set.
13591         (splat_input_operand): Add support for ISA 3.0 word splat operations.
13592         * config/rs6000/rs6000.c (xxspltib_constant_p): New function to
13593         return if a constant can be loaded with the ISA 3.0 XXSPLTIB
13594         instruction and possibly with a sign extension.
13595         (output_vec_const_move): Add support for XXSPLTIB. If we are
13596         loading up 0/-1 into Altivec registers, prefer using VSPLTISW
13597         instead of XXLXOR/XXLORC.
13598         (rs6000_expand_vector_init): Add support for ISA 3.0 word splat
13599         operations.
13600         (rs6000_legitimize_reload_address): Likewise.
13601         (rs6000_output_move_128bit): Use output_vec_const_move to emit
13602         constants.
13603         * config/rs6000/vsx.md (VSX_M): Add TImode (if -mvsx-timode) and
13604         combine VSX_M and VSX_M2 into one iterator.
13605         (VSX_M2): Likewise.
13606         (VSINT_84): New iterators for loading constants with XXSPLTIB.
13607         (VSINT_842): Likewise.
13608         (UNSPEC_VSX_SIGN_EXTEND): New UNSPEC.
13609         (xxspltib_v16qi): New insns to load up constants with the ISA 3.0
13610         XXSPLTIB instruction.
13611         (xxspltib_<mode>_nosplit): Likewise.
13612         (xxspltib_<mode>_split): New insn to load up constants with
13613         XXSPLTIB and a sign extend instruction.
13614         (vsx_mov<mode>): Replace single move that handled all vector types
13615         with separate 32-bit and 64-bit moves.  Combine the movti_<bit>
13616         moves (when -mvsx-timode is in effect) into the main vector
13617         moves.  Eliminate separate moves for <VSr> <VSa>, where the
13618         preferred register class (<VSr>) is listed first, and the
13619         secondary register class (<VSa>) is listed second with a '?' to
13620         discourage use.  Prefer loading 0/-1 in any VSX register for ISA
13621         3.0, and Altivec registers for ISA 2.06/2.07 (PR target/70915) so
13622         that if the register was involved in a slow operation, the
13623         clear/set operation does not wait for the slow operation to
13624         finish.  Adjust the length attributes for 32-bit mode.  Use
13625         rs6000_output_move_128bit and drop the use of the string
13626         instructions for 32-bit movti when -mvsx-timode is in effect.  Use
13627         spacing so that the alternatives and attributes don't generate
13628         long lines, and put things in columns, so that it is easier to
13629         match up the operands and attributes with the insn alternatives.
13630         (vsx_mov<mode>_64bit): Likewise.
13631         (vsx_mov<mode>_32bit): Likewise.
13632         (vsx_movti_64bit): Fold movti into normal vector moves.
13633         (vsx_movti_32bit): Likewise.
13634         (vsx_splat_<mode>, V4SI/V4SF modes): Add support for ISA 3.0 word
13635         splat instructions.
13636         (vsx_splat_v4si_internal): Likewise.
13637         (vsx_splat_v4sf_internal): Likewise.
13638         (vector fusion peepholes): Use VSX_M instead of VSX_M2.
13639         (vsx_sign_extend_qi_<mode>): New ISA 3.0 instructions to sign
13640         extend vector elements.
13641         (vsx_sign_extend_hi_<mode>): Likewise.
13642         (vsx_sign_extend_si_v2di): Likewise.
13643         * config/rs6000/rs6000-protos.h (xxspltib_constant_p): Add
13644         declaration.
13645         * doc/md.texi (PowerPC constraints): Document the wE, wM, and wS
13646         constraints.  Add trailing period to wL documentation.
13648 2016-05-18  Richard Sandiford  <richard.sandiford@arm.com>
13650         PR middle-end/71020
13651         * tree-dfa.h (replace_abnormal_ssa_names): Declare.
13652         * tree-dfa.c (replace_abnormal_ssa_names): New function.
13653         * tree-call-cdce.c: Include tree-dfa.h.
13654         (can_guard_call_p): New function, extracted from...
13655         (can_use_internal_fn): ...here.
13656         (shrink_wrap_one_built_in_call_with_conds): Remove failure path
13657         and return void.
13658         (shrink_wrap_one_built_in_call): Likewise.
13659         (use_internal_fn): Likewise.
13660         (shrink_wrap_conditional_dead_built_in_calls): Update accordingly
13661         and return void.  Call replace_abnormal_ssa_names.
13662         (pass_call_cdce::execute): Check can_guard_call_p during the
13663         initial walk.  Assume shrink_wrap_conditional_dead_built_in_calls
13664         will always change something.
13666 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13668         PR ipa/70646
13669         * ipa-prop.c (determine_locally_known_aggregate_parts): Bail out early
13670         if parameter PARAM_IPA_MAX_AGG_ITEMS is zero.
13672 2016-05-18  Martin Jambor  <mjambor@suse.cz>
13674         PR ipa/70646
13675         * ipa-inline.h (condition): New field size.
13676         * ipa-inline-analysis.c (add_condition): New parameter SIZE, use it
13677         for comaprison and store it into the new condition.
13678         (evaluate_conditions_for_known_args): Use condition size to check
13679         access sizes for all but CHANGED conditions.
13680         (unmodified_parm_1): New parameter size_p, store access size into it.
13681         (unmodified_parm): Likewise.
13682         (unmodified_parm_or_parm_agg_item): Likewise.
13683         (eliminated_by_inlining_prob): Pass NULL to unmodified_parm as size_p.
13684         (set_cond_stmt_execution_predicate): Extract access sizes and store
13685         them to conditions.
13686         (set_switch_stmt_execution_predicate): Likewise.
13687         (will_be_nonconstant_expr_predicate): Likewise.
13688         (will_be_nonconstant_predicate): Likewise.
13689         (inline_read_section): Stream condition size.
13690         (inline_write_summary): Likewise.
13692 2016-05-18  Richard Biener  <rguenther@suse.de>
13694         * tree-ssa-loop-im.c (determine_max_movement): Properly add
13695         condition cost to PHI cost instead of total_cost.
13697 2016-05-18  Martin Liska  <mliska@suse.cz>
13699         PR fortran/70856
13700         * ipa-icf.c (sem_variable::merge): Set DECL_PT_UID for
13701         merged variables.
13703 2016-05-18  Richard Biener  <rguenther@suse.de>
13705         * lto-streamer.h (LTO_major_version): Bump to 6.
13707 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
13709         * function.c (make_split_prologue_seq, make_prologue_seq,
13710         make_epilogue_seq): New functions, factored out from...
13711         (thread_prologue_and_epilogue_insns): Here.
13713 2016-05-18  Segher Boessenkool  <segher@kernel.crashing.org>
13715         * function.c (rest_of_handle_thread_prologue_and_epilogue): Call
13716         cleanup_cfg with CLEANUP_EXPENSIVE after shrink-wrapping instead
13717         of before.  Add a comment.
13719 2016-05-18  Bin Cheng  <bin.cheng@arm.com>
13721         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check invariant
13722         expression pointer, not pointer to the pointer.
13724 2016-05-18  Jakub Jelinek  <jakub@redhat.com>
13726         * config/i386/sse.md (pbroadcast_evex_isa): New mode attr.
13727         (avx2_pbroadcast<mode>): Add another alternative with v instead
13728         of x constraints in it, using <pbroadcast_evex_isa> isa.
13729         (avx2_pbroadcast<mode>_1): Similarly, add two such alternatives.
13731         * config/i386/sse.md (<ssse3_avx2>_palignr<mode>): Use
13732         constraint x instead of v in second alternative, add avx512bw
13733         alternative.
13735         * config/i386/sse.md (<ssse3_avx2>_pshufb<mode>3<mask_name>): Use
13736         constraint x instead of v in second alternative, add avx512bw
13737         alternative.
13739         * config/i386/sse.md (*<ssse3_avx2>_pmulhrsw<mode>3<mask_name>): Use
13740         constraint x instead of v in second alternative, add avx512bw
13741         alternative.
13743         * config/i386/sse.md (avx2_pmaddubsw256, ssse3_pmaddubsw128): Add
13744         avx512bw alternative.
13746 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13748         * config/i386/sse.md (define_insn "*andnot<mode>3"): Extend static
13749         array to 128 chars.
13750         (define_insn "*andnottf3"): Ditto.
13751         (define_insn "*<code><mode>3"/any_logic): Ditto.
13752         (define_insn "*<code>tf3"/any_logic): Ditto.
13753         (define_insn "sse2_storehpd"): Use Yv constraint for scalar
13754         operand to block AVX-512VL insn variant emit when it is not enabled.
13756 2016-05-18  Kirill Yukhin  <kirill.yukhin@intel.com>
13758         * config/i386/sse.md (define_insn "*vec_concatv2sf_sse4_1"): Use 'Yv'
13759         constraint fot SF mode.
13761 2016-05-18  Petr Murzin  <petr.murzin@intel.com>
13762             Kirill Yukhin  <kirill.yukhin@intel.com>
13764         * config/i386/sse.md (define_insn "srcp14<mode>"): Use proper operand
13765         modifiers.
13766         (define_insn "rsqrt14<mode>"): Ditto.
13767         (define_insn "<mask_codefor>avx512dq_cvtps2qqv2di<mask_name>"): Ditto.
13768         (define_insn "<fixsuffix>fix_truncv2sfv2di2<mask_name>"): Ditto.
13769         (define_insn "avx512f_<code>v8div16qi2_mask_store"): Ditto.
13770         (define_insn "vec_set_hi_<mode><mask_name>"): Ditto.
13771         (define_insn "<mask_codefor>avx512dq_broadcast<mode><mask_name>"):
13772         Ditto.
13773         (define_insn "*avx512f_gatherdi<mode>"): Ditto.
13774         (define_insn "*avx512f_scatterdi<mode>"): Ditto.
13775         * config/i386/i386.c (ix86_print_operand): Expand check for size
13776         override codes for Intel syntax.
13778 2016-05-18  Richard Biener  <rguenther@suse.de>
13780         PR tree-optimization/71168
13781         * tree-loop-distribution.c (distribute_loop): Move *destroy_p
13782         initialization earlier.
13784 2016-05-18  James Greenhalgh  <james.greenhalgh@arm.com>
13786         * config/aarch64/aarch64-simd.md
13787         (aarch64_reduc_plus_internal<mode>): Rename to...
13788         (reduc_plus_scal): ...This, and remove previous implementation.
13790 2016-05-18  Richard Biener  <rguenther@suse.de>
13792         * passes.def: Put late dse and cd_dce in canonical order.
13794 2016-05-17  Jan Hubicka  <hubicka@ucw.cz>
13796         * ipa-inline-transform.c (preserve_function_body_p): Look for
13797         first non-thunk clone.
13798         (save_function_body): Save into first non-thunk.
13799         * lto-cgraph.c (lto_output_edge): When streaming thunk do not look
13800         up call stmt id.
13801         (lto_output_node): Inline thunks don't need body in every
13802         partition.
13803         * lto-streamer-in.c: Do not fixup thunk clones.
13804         * cgraphclones.c (cgraph_node::create_edge_including_clone): Skip
13805         thunks.
13806         * tree-inline.c (copy_bb): Be prepared for target node to be new after
13807         folding suceeds.
13809 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13811         PR middle-end/63586
13812         * tree-ssa-reassoc.c (transform_add_to_multiply): New.
13813         (reassociate_bb): Call transform_add_to_multiply.
13815 2016-05-17  Kugan Vivekanandarajah  <kuganv@linaro.org>
13817         * config/aarch64/aarch64.c (all_extensions): Removed unused
13818         static variable.
13820 2016-05-17  Nathan Sidwell  <nathan@acm.org>
13822         * config/nvptx/nvptx.c (nvptx_function_arg_boundary): New.
13823         (TARGET_FUNCTION_ARG_BOUNDARY): Override.
13825 2016-05-17  Mikhail Maltsev  <maltsevm@gmail.com>
13827         PR tree-optimization/54579
13828         PR middle-end/55299
13829         * match.pd (~(~X >> Y), ~(~X >>r Y), ~(~X <<r Y)): New patterns.
13831 2016-05-17  Marek Polacek  <polacek@redhat.com>
13833         PR ipa/71146
13834         * tree-inline.c (expand_call_inline): Call
13835         maybe_remove_unused_call_args.
13837 2016-05-17  Jim Wilson  <jim.wilson@linaro.org>
13839         * doc/cpp.texi (__GNUC__): Major version changes are no longer rare.
13840         * doc/invoke.texi (-mnan=2008): Change signalling to signaling.
13841         * doc/md.texi (fmin@var{m}3): Likewise.
13843 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13845         * match.pd (X & C): New transformation.
13847 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13849         * match.pd (~X & Y): New transformation.
13851 2016-05-17  Marc Glisse  <marc.glisse@inria.fr>
13853         * tree-vrp.c (simplify_truth_ops_using_ranges): Set range
13854         information for new SSA_NAME.
13855         (simplify_conversion_using_ranges): Get range through get_range_info
13856         instead of get_value_range.
13858 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13860         * config/aarch64/arm_neon.h (vmvn_s8): Reimplement using C operator.
13861         Remove inline assembly.
13862         (vmvn_s16): Likewise.
13863         (vmvn_s32): Likewise.
13864         (vmvn_u8): Likewise.
13865         (vmvn_u16): Likewise.
13866         (vmvn_u32): Likewise.
13867         (vmvnq_s8): Likewise.
13868         (vmvnq_s16): Likewise.
13869         (vmvnq_s32): Likewise.
13870         (vmvnq_u8): Likewise.
13871         (vmvnq_u16): Likewise.
13872         (vmvnq_u32): Likewise.
13873         (vmvn_p8): Likewise.
13874         (vmvnq_p16): Likewise.
13876 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13878         * config/aarch64/aarch64-simd.md (vmul_n_f32): Remove inline assembly.
13879         Use builtin.
13880         (vmul_n_s16): Likewise.
13881         (vmul_n_s32): Likewise.
13882         (vmul_n_u16): Likewise.
13883         (vmul_n_u32): Likewise.
13884         (vmulq_n_f32): Likewise.
13885         (vmulq_n_f64): Likewise.
13886         (vmulq_n_s16): Likewise.
13887         (vmulq_n_s32): Likewise.
13888         (vmulq_n_u16): Likewise.
13889         (vmulq_n_u32): Likewise.
13891 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13893         * config/aarch64/aarch64-simd.md (*aarch64_mul3_elt_to_128df): Extend
13894         to all supported modes.  Rename to "*aarch64_mul3_elt_from_dup".
13896 2016-05-17  Jiong Wang  <jiong.wang@arm.com>
13898         * config/aarch64/aarch64-simd.md (*aarch64_fma4_elt_to_128df): Rename
13899         to *aarch64_fma4_elt_from_dup<mode>.
13900         (*aarch64_fnma4_elt_to_128df): Rename to
13901         *aarch64_fnma4_elt_from_dup<mode>.
13902         * config/aarch64/arm_neon.h (vfma_n_f64): New.
13903         (vfms_n_f32): Likewise.
13904         (vfms_n_f64): Likewise.
13905         (vfmsq_n_f32): Likewise.
13906         (vfmsq_n_f64): Likewise.
13908 2016-05-17  Gerald Pfeifer  <gerald@pfeifer.com>
13910         * wide-int.h: Change fixed_wide_int_storage from class to struct.
13912 2016-05-17  Richard Biener  <rguenther@suse.de>
13914         PR tree-optimization/71132
13915         * tree-loop-distribution.c (create_rdg_cd_edges): Pass in loop.
13916         Only add control dependences for blocks in the loop.
13917         (build_rdg): Adjust.
13918         (generate_code_for_partition): Return whether loop should
13919         be destroyed and delay that.
13920         (distribute_loop): Likewise.
13921         (pass_loop_distribution::execute): Record loops to be destroyed
13922         and perform delayed destroying of loops.
13924 2016-05-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13926         PR target/70809
13927         * config/aarch64/aarch64-simd.md (aarch64_vmls<mode>): Delete.
13929 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13931         * config/aarch64/aarch64-elf.h (ASM_OUTPUT_DEF): Delete.
13933 2016-05-17  Ilya Enkovich  <ilya.enkovich@intel.com>
13935         PR target/71114
13936         * config/i386/i386.c (dimode_scalar_chain::convert_op): Fix
13937         insertion point for instructions generated by validize_mem.
13939 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13941         * config/aarch64/aarch64.c (SHIFT_COUNT_TRUNCATED): Wrap definition
13942         in brackets.
13944 2016-05-17  James Greenhalgh  <james.greenhalgh@arm.com>
13946         * config/aarch64/aarch64.c
13947         (aarch64_output_simd_mov_immediate): Make "buf_size" a variable
13948         rather than a macro.
13950 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13952         * doc/invoke.texi (AArch64 Options): Various updates.
13954 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
13956         * ipa-inline-analysis.c (compute_inline_parameters): Disable inlinig
13957         into instrumentation thunks.
13958         * cif-code.def (CIF_CHKP): New.
13960 2016-05-16  Uros Bizjak  <ubizjak@gmail.com>
13962         * config/i386/xopintrin.h: Correct "unsinged" typo in the comments.
13964 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13966         * hsa-gen.c (fillup_for_decl): Increase alignment to natural one.
13967         (get_symbol_for_decl): Sorry if a global symbol in under-aligned.
13969 2016-05-16  Marek Polacek  <polacek@redhat.com>
13971         * gimple.c (maybe_remove_unused_call_args): Fix typos in the
13972         commentary.
13974 2016-05-16  Martin Jambor  <mjambor@suse.cz>
13976         PR hsa/70857
13977         * omp-low.c (grid_expand_target_grid_body): Copy RESULT_DECL of
13978         the outlined kernel function.
13980 2016-05-16  Robert Suchanek  <robert.suchanek@imgtec.com>
13982         * config/mips/mips.h (ISA_HAS_LSA): Enable for -mmsa.
13983         (ISA_HAS_DLSA): Ditto.
13985 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
13987         * config/mips/m5100.md (m51_int_load): Update the latency to 2.
13989 2016-05-16  Nathan Sidwell  <nathan@acm.org>
13991         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): Revert.
13992         (nvptx_name_replacement): Restore.  Add comment.
13993         (write_fn_proto, write_fn_proto_from_insn,
13994         nvptx_output_call_insn): Restore
13995         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Delete.
13997 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
13999         * config/aarch64/aarch64.md
14000         (add<mode>3_compareC_cconly_imm): Remove use of %w.
14001         (add<mode>3_compareC_imm): Likewise.
14002         (<optab>si3_uxtw): Split into register and immediate variants.
14003         (andsi3_compare0_uxtw): Likewise.
14004         (and<mode>3_compare0): Likewise.
14005         (and<mode>3nr_compare0): Likewise.
14006         (stack_protect_test_<mode>): Don't use %x for memory operands.
14008 2016-05-16  Matthew Fortune  <matthew.fortune@imgtec.com>
14010         * config/mips/mips-cpus.def (p5600): Add multi-line brackets.
14012 2016-05-16  Wilco Dijkstra  <wdijkstr@arm.com>
14014         * config/aarch64/aarch64.md (aarch64_ashl_sisd_or_int_<mode>3):
14015         Split integer shifts into shift_reg and bfm.
14016         (aarch64_lshr_sisd_or_int_<mode>3): Likewise.
14017         (aarch64_ashr_sisd_or_int_<mode>3): Likewise.
14018         (ror<mode>3_insn): Likewise.
14019         (<optab>si3_insn_uxtw): Likewise.
14020         (<optab><mode>3_insn): Change to rotate_imm.
14021         (extr<mode>5_insn_alt): Likewise.
14022         (extrsi5_insn_uxtw): Likewise.
14023         (extrsi5_insn_uxtw_alt): Likewise.
14025 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14027         * doc/tm.texi: Regenerate.
14028         * doc/tm.texi.in (TARGET_INVALID_PARAMETER_TYPE): Remove.
14029         (TARGET_INVALID_RETURN_TYPE): Remove.
14030         * system.h: Poison TARGET_INVALID_PARAMETER_TYPE and
14031         TARGET_INVALID_RETURN_TYPE.
14032         * target.def (invalid_parameter_type): Remove.
14033         (invalid_return_type): Remove.
14035 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14037         * ipa-inline-analysis.c (compute_inline_parameters): Be more reailistic
14038         on estimating thunk bodies; do not set inline_failed to CIF_THUNK for
14039         calls from thunk.
14040         * ipa-inline-transform.c (inline_call): When inlining into thunk produce
14041         gimple body.
14042         (preserve_function_body_p): No need to preserve function body
14043         * cif-codes.def (CIF_THUNK): Remove.
14044         * cgraphclones.c (duplicate_thunk_for_node): Thunks calls are inlinable.
14046 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14048         * tree-inline.c (expand_call_inline): recurse after inlining thunk.
14050 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14052         * tree.c (free_lang_data_in_decl): Also set target/optimization flags
14053         for thunks.
14055 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14057         * ipa-inline.c (report_inline_failed_reason): Look into thunks, too
14058         (inline_small_functions): Do not look for function symbol when
14059         resetting caches.
14061 2016-05-16  Jan Hubicka  <hubicka@ucw.cz>
14063         * lto-cgraph.c (compute_ltrans_boundary, output_symtab): Fix handling
14064         of inline thunks
14066 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14067             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14068             Jiong Wang  <jiong.wang@arm.com>
14070         * config/arm/arm-c.c (arm_cpu_builtins): Use def_or_undef_macro
14071         for __ARM_FP16_FORMAT_IEEE and __ARM_FP16_FORMAT_ALTERNATIVE.
14072         Define __ARM_FP16_ARGS when appropriate.
14073         * config/arm/arm.c (arm_invalid_parameter_type): Remove
14074         declaration.
14075         (arm_invalid_return_type): Likewise.
14076         (TARGET_INVALID_PARAMETER_TYPE): Remove.
14077         (TARGET_INVALID_RETURN_TYPE): Remove.
14078         (aapcs_vfp_sub_candidate): Allow HFmode.
14079         (aapcs_vfp_allocate): Add comment.  Support HFmode.
14080         (aapcs_vfp_allocate_return_reg): Likewise.
14081         (struct aapcs_cp_arg_layout): Slightly reword comments for
14082         is_return_candidate and allocate_return_reg.
14083         (output_mov_vfp): Update assert.
14084         (arm_hard_regno_mode_ok): Remove comment, update HF-mode
14085         condition.
14086         (arm_invalid_parameter_type): Remove.
14087         (amr_invalid_return_type): Remove.
14088         * config/arm/arm.h (TARGET_NEON_FP16): Fix definition.
14089         * config/arm/arm.md (*arm32_movhf): Disable for TARGET_VFP.
14090         * config/arm/vfp.md (*movhf_vfp): Enable for TARGET_VFP.
14092 2016-05-16  Matthew Wahab  <matthew.wahab@arm.com>
14094         * config/aarch64/aarch64.h (LEGITIMIZE_RELOAD_ADDRESS): Remove.
14095         * config/aarch64/arch64-protos.h
14096         (aarch64_legitimize_reload_address): Remove.
14097         * config/aarch64/aarch64.c (aarch64_legitimize_reload_address):
14098         Remove.
14100 2016-05-16  Eric Botcazou  <ebotcazou@adacore.com>
14102         * configure.ac: Add ACX_NONCANONICAL_HOST.
14103         * configure: Regenerate.
14104         * Makefile.in: Set host_noncanonical.
14106 2016-05-14  Uros Bizjak  <ubizjak@gmail.com>
14108         PR target/71097
14109         * config/i386/i386.md (*movtf_internal): Before register allocation,
14110         do not allow FP constants for CM_MEDIUM memory model, allow only
14111         standard FP constants for CM_LARGE and CM_LARGE_PIC models.
14112         (*movxf_internal): Ditto.
14113         (*movdf_internal): Ditto.
14114         (*movsf_internal): Ditto.
14116 2016-05-13  Segher Boessenkool  <segher@kernel.crashing.org>
14118         PR rtl-optimization/67483
14119         * combine.c (make_compound_operation): Don't call extract_left_shift
14120         with negative shift amounts.
14122 2016-05-13  Jakub Jelinek  <jakub@redhat.com>
14124         PR bootstrap/71071
14125         * fold-const.c (fold_checksum_tree): Allow modification
14126         of TYPE_ALIAS_SET during folding.
14128         * config/i386/i386.c (ix86_compute_frame_layout, ix86_expand_prologue,
14129         ix86_expand_split_stack_prologue): Use HOST_WIDE_INT_C macro.
14130         (ix86_split_to_parts): Likewise.  Fix up formatting.
14132 2016-05-13  H.J. Lu  <hongjiu.lu@intel.com>
14134         * tree-ssa-loop-ivopts.c (create_new_ivs): Cast to
14135         unsigned HOST_WIDE_INT with HOST_WIDE_INT_PRINT_UNSIGNED in
14136         printf format.
14138 2016-05-13  Nathan Sidwell  <nathan@acm.org>
14140         * config/nvptx/nvptx.c (nvptx_mangle_decl_assembler_name): New.
14141         (nvptx_name_replacement): Delete.
14142         (write_fn_proto, write_fn_proto_from_insn,
14143         nvptx_output_call_insn): Remove nvptx_name_replacement call.
14144         (TARGET_MANGLE_DECL_ASSEMBLER_NAME): Override.
14145         * langhooks.c (add_builtin_funcction_common): Call
14146         targetm.mangle_decl_assembler_name.
14148         * config/nvptx/nvptx.c (write_fn_proto): Handle
14149         BUILT_IN_ATOMIC_COMPARE_EXCHANGE_n oddity.
14151 2016-05-13  Martin Liska  <mliska@suse.cz>
14153         * tree-ssa-loop-ivopts.c (create_new_ivs): Use HOST_WIDE_INT_PRINT_DEC
14154         and PRIu64 in printf format.
14156 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14158         * tree-ssa-loop-ivanon.c (try_unroll_loop_completely): Typo fix in
14159         comment.
14161 2016-05-13  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14163         * tree-ssa-loop-ivcanon.c (try_unroll_loop_completely):
14164         Change --param max-completely-peeled-times to
14165         --param max-completely-peel-times in dump file printing.
14167 2016-05-13  Richard Biener  <rguenther@suse.de>
14169         PR tree-optimization/42587
14170         * tree-ssa-math-opts.c (perform_symbolic_merge): Handle BIT_FIELD_REF.
14171         (find_bswap_or_nop_1): Likewise.
14172         (bswap_replace): Likewise.
14174 2016-05-13  Martin Liska  <mliska@suse.cz>
14176         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern):
14177         Initialize a variable with default value.
14179 2016-05-13  Martin Liska  <mliska@suse.cz>
14181         * doc/invoke.texi: Enhance explanation of error recovery
14182         of sanitizers.
14184 2016-05-13  Martin Liska  <mliska@suse.cz>
14186         * tree-ssa-loop-ivopts.c (avg_loop_niter): Fix coding style.
14187         (struct cost_pair): Change inv_expr_id (int) to inv_expr
14188         (iv_inv_expr_ent *).
14189         (struct iv_inv_expr_ent): Comment struct fields.
14190         (sort_iv_inv_expr_ent): New function.
14191         (struct ivopts_data): Rename inv_expr_id to max_inv_expr_id.
14192         (struct iv_ca): Replace used_inv_expr and num_used_inv_expr with
14193         a hash_map between iv_inv_expr_ent and number of usages.
14194         (niter_for_exit): Fix coding style.
14195         (tree_ssa_iv_optimize_init): Use renamed variable.
14196         (determine_base_object): Fix coding style.
14197         (alloc_iv): Likewise.
14198         (find_interesting_uses_outside): Likewise.
14199         (add_candidate_1): Likewise.
14200         (add_standard_iv_candidates): Likewise.
14201         (set_group_iv_cost): Replace inv_expr_id with inv_expr.
14202         (prepare_decl_rtl): Fix coding style.
14203         (get_address_cost): Likewise.
14204         (get_shiftadd_cost): Likewise.
14205         (force_expr_to_var_cost): Likewise.
14206         (compare_aff_trees): Likewise.
14207         (get_expr_id): Restructure the function.
14208         (get_loop_invariant_expr_id): Renamed to
14209         get_loop_invariant_expr.
14210         (get_computation_cost_at): Replace usage of inv_expr_id with
14211         inv_expr.
14212         (get_computation_cost): Likewise.
14213         (determine_group_iv_cost_generic): Likewise.
14214         (determine_group_iv_cost_address): Likewise.
14215         (iv_period): Fix coding style.
14216         (iv_elimination_compare_lt): Likewise.
14217         (may_eliminate_iv): Likewise.
14218         (determine_group_iv_cost_cond):  Replace usage of inv_expr_id with
14219         inv_expr.
14220         (determine_group_iv_costs): Dump invariant expressions.
14221         (iv_ca_recount_cost): Use the newly added hash_map.
14222         (iv_ca_set_remove_invariants): Fix coding style.
14223         (iv_ca_set_add_invariants): Fix coding style.
14224         (iv_ca_set_no_cp): Utilize the newly added hash_map for used
14225         invariants.
14226         (iv_ca_set_cp): Likewise.
14227         (iv_ca_new): Initialize the newly added hash_map and remove
14228         initialization of fields.
14229         (iv_ca_free): Delete the hash_map.
14230         (iv_ca_dump): Dump invariant expressions.
14231         (iv_ca_extend): Fix coding style.
14232         (try_add_cand_for): Likewise.
14233         (create_new_ivs): Dump information about # of avg iterations and
14234         # of used invariant expressions.
14235         (rewrite_use_compare): Fix coding style.
14236         (free_loop_data): Set default value for max_inv_expr_id.
14238 2016-05-13  Ilya Enkovich  <ilya.enkovich@intel.com>
14240         * cse.c (rest_of_handle_cse): Use cleanup_cfg
14241         returned value cse_cfg_altered computation.
14242         (rest_of_handle_cse2): Likewise.
14243         (rest_of_handle_cse_after_global_opts): Likewise.
14245 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14247         PR target/53440
14248         * config/arm/arm.c (arm32_output_mi_thunk): New.
14249         (arm_output_mi_thunk): Rename to arm_thumb1_mi_thunk. Rework
14250         to split Thumb1 vs TARGET_32BIT functionality.
14251         (arm_thumb1_mi_thunk): New.
14253 2016-05-13  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
14255         * config/aarch64/aarch64.c (TARGET_OMIT_STRUCT_RETURN_REG): Set
14256         to true.
14258 2016-05-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14260         PR target/71080
14261         * config/i386/i386.c (ix86_in_large_data_p): Guard against NULL exp.
14263 2016-05-13  Eric Botcazou  <ebotcazou@adacore.com>
14265         * builtins.c (expand_builtin_memcmp): Do not emit the call here.
14266         (expand_builtin_trap): Emit a regular call.
14267         (set_builtin_user_assembler_name): Remove obsolete cases.
14268         * dse.c (scan_insn): Adjust.
14269         * except.c: Include calls.h.
14270         (sjlj_emit_function_enter): If DONT_USE_BUILTIN_SETJMP is defined,
14271         emit a regular call to setjmp.
14272         * expr.c (emit_block_move_hints): Call emit_block_copy_via_libcall.
14273         (block_move_libcall_safe_for_call_parm): Use memcpy builtin.
14274         (emit_block_move_via_libcall): Delete.
14275         (block_move_fn): Delete.
14276         (init_block_move_fn): Likewise.
14277         (emit_block_move_libcall_fn): Likewise.
14278         (emit_block_op_via_libcall): New function.
14279         (set_storage_via_libcall): Tidy up and use memset builtin.
14280         (block_clear_fn): Delete.
14281         (init_block_clear_fn): Likewise.
14282         (clear_storage_libcall_fn): Likewise.
14283         (expand_assignment): Call emit_block_move_via_libcall.
14284         Do not include gt-expr.h.
14285         * expr.h (emit_block_op_via_libcall): Declare.
14286         (emit_block_copy_via_libcall): New inline function.
14287         (emit_block_move_via_libcall): Likewise.
14288         (emit_block_comp_via_libcall): Likewise.
14289         (block_clear_fn): Delete.
14290         (init_block_move_fn): Likewise.
14291         (init_block_clear_fn): Likewise.
14292         (emit_block_move_via_libcall): Likewise.
14293         (set_storage_via_libcall): Add default parameter value.
14294         * libfuncs.h (enum libfunc_index): Remove obsolete values.
14295         (abort_libfunc): Delete.
14296         (memcpy_libfunc): Likewise.
14297         (memmove_libfunc): Likewise.
14298         (memcmp_libfunc): Likewise.
14299         (memset_libfunc): Likewise.
14300         (setbits_libfunc): Likewise.
14301         (setjmp_libfunc): Likewise.
14302         (longjmp_libfunc): Likewise.
14303         (profile_function_entry_libfunc): Likewise.
14304         (profile_function_exit_libfunc): Likewise.
14305         (gcov_flush_libfunc): Likewise.
14306         * optabs-libfuncs.c (build_libfunc_function): Set DECL_ARTIFICIAL
14307         and DECL_VISIBILITY on the declaration.
14308         (init_optabs): Do not initialize obsolete libfuncs.
14309         * optabs.c (prepare_cmp_insn): Call emit_block_comp_via_libcall.
14310         * tree-core.h (ECF_RET1): Define.
14311         (ECF_TM_PURE): Adjust.
14312         (ECF_TM_BUILTIN): Likewise.
14313         * tree.c (set_call_expr_flags): Deal with ECF_RET1.
14314         (build_common_builtin_nodes): Initialize abort builtin.
14315         Add ECF_RET1 on memcpy, memmove and memset builtins.
14316         Pass final flags for alloca and alloca_with_align builtins.
14317         * config/alpha/alpha.c (alpha_init_libfuncs): Do not initialize
14318         obsolete builtins.
14319         * config/ia64/ia64.c (ia64_vms_init_libfuncs): Likewise.
14320         * config/i386/i386.c (ix86_expand_set_or_movmem): Adjust call to
14321         set_storage_via_libcall and call emit_block_copy_via_libcall.
14323 2016-05-12  Uros Bizjak  <ubizjak@gmail.com>
14325         * config/i386/i386.md (*call_got_x32): Change operand 0 to
14326         DImode before it is passed to ix86_output_call_operand.
14327         (*call_value_got_x32): Ditto for operand 1.
14329 2016-05-12  Jiong Wang  <jiong.wang@arm.com>
14331         PR rtl-optimization/70904
14332         * lra-constraint.c (process_addr_reg): Relax the restriction on subreg
14333         reload for wide mode.
14335 2016-05-12  Marek Polacek  <polacek@redhat.com>
14337         PR c/70756
14338         * langhooks-def.h (lhd_incomplete_type_error): Adjust declaration.
14339         * langhooks.c (lhd_incomplete_type_error): Add location parameter.
14340         * langhooks.h (incomplete_type_error): Likewise.
14341         * tree.c (size_in_bytes_loc): Renamed from size_in_bytes.  Add location
14342         parameter, pass it down to incomplete_type_error.
14343         * tree.h (size_in_bytes): New inline overload.
14344         (size_in_bytes_loc): Renamed from size_in_bytes.
14346 2016-05-12  Richard Biener  <rguenther@suse.de>
14348         PR tree-optimization/71059
14349         * tree-ssa-pre.c (phi_translate_1): Fully fold translated
14350         nary before looking up or entering the expression into the VN
14351         hashes.
14352         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): Fix comment typo.
14353         Make sure to re-use NARYs without result as inserted by
14354         phi-translation.
14356 2016-05-12  Richard Biener  <rguenther@suse.de>
14358         PR tree-optimization/71062
14359         * tree-ssa-alias.h (struct pt_solution): Add vars_contains_restrict
14360         field.
14361         * tree-ssa-structalias.c (set_uids_in_ptset): Set
14362         vars_contains_restrict if the var is a restrict tag.
14363         * tree-ssa-alias.c (ptrs_compare_unequal): If vars_contains_restrict
14364         do not disambiguate pointers against it.
14365         (dump_points_to_solution): Re-structure and adjust for new
14366         vars_contains_restrict flag.
14367         * gimple-pretty-print.c (pp_points_to_solution): Likewise.
14369 2016-05-12  Martin Liska  <mliska@suse.cz>
14371         * doc/invoke.texi: Explain connection between
14372         -fsanitize-recover=address and ASAN_OPTIONS="halt_on_error=1".
14374 2016-05-12  Ilya Enkovich  <ilya.enkovich@intel.com>
14376         PR tree-optimization/71006
14377         * tree-vect-loop.c (vect_determine_vectorization_factor): Don't
14378         consider COND_EXPR as a mask producer.
14380 2016-05-12  Marek Polacek  <polacek@redhat.com>
14382         PR driver/71063
14383         * opts.c (common_handle_option): Detect missing argument for --help^.
14385 2016-05-12  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14387         PR target/70830
14388         * config/arm/arm.c (arm_output_multireg_pop): Avoid POP instruction
14389         when popping the PC and within an interrupt handler routine.
14390         Add missing tab to output of "ldmfd".
14391         (output_return_instruction): Output LDMFD with SP update rather
14392         than POP when returning from interrupt handler.
14394 2016-05-12  Jakub Jelinek  <jakub@redhat.com>
14396         * config/i386/i386.md (isa): Add x64_avx512dq, enable if
14397         TARGET_64BIT && TARGET_AVX512DQ.
14398         * config/i386/sse.md (*vec_extract<mode>): Add avx512bw alternatives.
14399         (*vec_extract<PEXTR_MODE12:mode>_zext): Add avx512bw alternative.
14400         (*vec_extract<ssevecmodelower>_0, *vec_extractv4si_0_zext,
14401         *vec_extractv2di_0_sse): Use v constraint instead of x constraint.
14402         (*vec_extractv4si): Add avx512dq and avx512bw alternatives.
14403         (*vec_extractv4si_zext): Add avx512dq alternative.
14404         (*vec_extractv2di_1): Add x64_avx512dq and avx512bw alternatives,
14405         use v instead of x constraint in other alternatives where possible.
14407         * config/i386/sse.md (sse2_loadld): Use v instead of x
14408         constraint in alternatives 0,1,4.
14410         * config/i386/sse.md (pinsr_evex_isa): New mode attr.
14411         (<sse2p4_1>_pinsr<ssemodesuffix>): Add 2 alternatives with
14412         v constraints instead of x and <pinsr_evex_isa> isa attribute.
14414         PR target/71019
14415         * config/i386/sse.md (<sse2_avx2>_packssdw<mask_name>,
14416         <sse4_1_avx2>_packusdw<mask_name>): Make sure EVEX encoded insn
14417         is not emitted unless TARGET_AVX512BW.
14418         (<sse2_avx2>_packuswb<mask_name>, <sse2_avx2>_packsswb<mask_name>):
14419         Likewise.  For TARGET_AVX512BW, use "=v" constraint instead of "=x"
14420         for the result operand.
14422         * config/i386/sse.md (*vec_setv4sf_sse4_1, sse4_1_insertps): Use v
14423         constraint instead of x in avx alternatives.  Use maybe_evex instead
14424         of vex prefix.
14426         * config/i386/constraints.md (Yv): New constraint.
14427         * config/i386/i386.h (VALID_AVX512VL_128_REG_MODE): Allow
14428         TFmode and V1TImode in xmm16+ registers for TARGET_AVX512VL.
14429         * config/i386/i386.md (avx512fvecmode): New mode attr.
14430         (*pushtf): Use v constraint instead of x.
14431         (*movtf_internal): Likewise.  For TARGET_AVX512VL and
14432         xmm16+ registers, use vmovdqu64 or vmovdqa64 instructions.
14433         (*absneg<mode>2): Use Yv constraint instead of x constraint.
14434         (*absnegtf2_sse): Likewise.
14435         (copysign<mode>3_const, copysign<mode>3_var): Likewise.
14436         * config/i386/sse.md (*andnot<mode>3): Add avx512vl and
14437         avx512f alternatives.
14438         (*andnottf3, *<code><mode>3, *<code>tf3): Likewise.
14440 2016-05-12  Richard Biener  <rguenther@suse.de>
14442         PR tree-optimization/71060
14443         * tree-data-ref.c (initialize_data_dependence_relation): Do not
14444         require exact match of DR_BASE_OBJECT but only matching address and
14445         type.
14447 2016-05-12  Richard Biener  <rguenther@suse.de>
14449         PR tree-optimization/70986
14450         * cfganal.c: Include cfgloop.h.
14451         (dfs_find_deadend): Prefer to take edges exiting loops.
14453 2016-05-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14455         * gcc.target/powerpc/pr70963.c: Require at least power8 at both
14456         compile and run time.
14458 2016-05-11  Mikhail Maltsev  <maltsevm@gmail.com>
14460         PR c/43651
14461         * doc/invoke.texi (Wduplicate-decl-specifier): Document new option.
14463 2016-05-11  Uros Bizjak  <ubizjak@gmail.com>
14465         * config/i386/i386.c (legitimize_pic_address): Use
14466         copy_to_suggested_reg instead of gen_movsi.
14468 2016-05-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
14470         * config/rs6000/predicates.md (quad_memory_operand): Move most of
14471         the code into quad_address_p and call it to share code with
14472         vsx_quad_dform_memory_operand.
14473         (vsx_quad_dform_memory_operand): New predicate for ISA 3.0 vector
14474         d-form support.
14475         * config/rs6000/rs6000.opt (-mlra): Switch to being an option mask
14476         bit instead of being a separate word.  Split -mpower9-dform into
14477         two switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14478         * config/rs6000/rs6000.c (RELOAD_REG_QUAD_OFFSET): New addr_mask
14479         for the register class supporting 128-bit quad word memory offsets.
14480         (mode_supports_vsx_dform_quad): Helper function to return if the
14481         register class uses quad word memory offsets.
14482         (rs6000_debug_addr_mask): Add support for quad word memory offsets.
14483         (rs6000_debug_reg_global): Always print if we are using LRA or not.
14484         (rs6000_setup_reg_addr_masks): If ISA 3.0 vector d-form
14485         instructions are enabled, set up the appropriate addr_masks for
14486         128-bit types.
14487         (rs6000_init_hard_regno_mode_ok): wb constraint is now based on
14488         -mpower9-dform-scalar, instead of -mpower9-dform.
14489         (rs6000_option_override_internal): Split -mpower9-dform into two
14490         switches, -mpower9-dform-scalar and -mpower9-dform-vector.  The
14491         -mpower9-dform switch sets or clears both.  If we are not using
14492         the LRA register allocator, do not enable -mpower9-dform-vector by
14493         default.  If we are using LRA, enable -mpower9-dform-vector and
14494         -mvsx-timode if it is appropriate.  Issue a warning if either
14495         -mpower9-dform-vector or -mvsx-timode are explicitly used without
14496         enabling LRA.
14497         (quad_address_offset_p): New helper function to return if the
14498         offset is legal for quad word memory instructions.
14499         (quad_address_p): New function to determin if GPR or vector
14500         register quad word memory addresses are legal.
14501         (mem_operand_gpr): Validate quad word address offsets.
14502         (reg_offset_addressing_ok_p): Add support for ISA 3.0 vector
14503         d-form (register + offset) instructions.
14504         (offsettable_ok_by_alignment): Likewise.
14505         (rs6000_legitimate_offset_address_p): Likewise.
14506         (legitimate_lo_sum_address_p): Likewise.
14507         (rs6000_legitimize_address): Likewise.
14508         (rs6000_legitimize_reload_address): Add more debug statements for
14509         -mdebug=addr.
14510         (rs6000_legitimate_address_p): Add support for ISA 3.0 vector
14511         d-form instructions.
14512         (rs6000_secondary_reload_memory): Add support for ISA 3.0 vector
14513         d-form instructions.  Distinguish different cases in debug
14514         output. (rs6000_secondary_reload_inner): Add support for ISA 3.0 vector
14515         d-form instructions.
14516         (rs6000_preferred_reload_class): Likewise.
14517         (rs6000_output_move_128bit): Add support for ISA 3.0 d-form
14518         instructions.  If ISA 3.0 is available, generate lxvx/stxvx instead
14519         of the ISA 2.06 indexed memory instructions.
14520         (rs6000_emit_prologue): If we have ISA 3.0 d-form instructions,
14521         use them to save/restore the saved vector registers instead of
14522         using Altivec instructions.
14523         (rs6000_emit_epilogue): Likewise.
14524         (rs6000_lra_p): Use TARGET_LRA instead of the old option word.
14525         (rs6000_opt_masks): Split -mpower9-dform into
14526         -mpower9-dform-scalar and -mpower9-dform-vector.
14527         (rs6000_print_options_internal): Print -mno-<switch> if <switch>
14528         was not selected.
14529         * config/rs6000/vsx.md (p9_vecload_<mode>): Delete hack to emit
14530         ISA 3.0 vector indexed memory instructions, and fold the code into
14531         the normal mov<mode> patterns.
14532         (p9_vecstore_<mode>): Likewise.
14533         (vsx_mov<mode>): Add support for ISA 3.0 vector d-form
14534         instructions.
14535         (vsx_movti_64bit): Likewise.
14536         (vsx_movti_32bit): Likewise.
14537         * config/rs6000/constraints.md (wO constraint): New constraint for
14538         ISA 3.0 vector d-form support.
14539         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Use
14540         -mpower9-dform-scalar instead of -mpower9-dform.  Add note not to
14541         include -mpower9-dform-vector until we switch over to LRA.
14542         (POWERPC_MASKS): Add -mlra. Split -mpower9-dform into two.
14543         switches, -mpower9-dform-scalar and -mpower9-dform-vector.
14544         * config/rs6000/rs6000-protos.h (quad_address_p): Add declaration.
14545         * doc/invoke.texi (RS/6000 and PowerPC Options): Add documentation
14546         for -mpower9-dform and -mlra.
14547         * doc/md.texi (wO constraint): Document wO constraint.
14549 2016-05-11  Alexander Monakov  <amonakov@ispras.ru>
14551         * genattr.c (main): Change 'rtx' to 'rtx_insn *' in prototypes of
14552         'insn_latency', 'maximal_insn_latency', 'min_insn_conflict_delay'.
14553         * genautomata.c (output_internal_insn_code_evaluation): Simplify.
14554         Move handling of non-insn arguments inline into the sole user:
14555         (output_trans_func): ...here.
14556         (output_min_insn_conflict_delay_func): Change 'rtx' to 'rtx_insn *'
14557         in emitted function prototype.
14558         (output_internal_insn_latency_func): Ditto.  Simplify.
14559         (output_internal_maximal_insn_latency_func): Ditto.  Delete
14560         always-unused argument.
14561         (output_insn_latency_func): Ditto.
14562         (output_maximal_insn_latency_func): Ditto.
14564 2016-05-11  Richard Biener  <rguenther@suse.de>
14566         PR tree-optimization/71055
14567         * tree-ssa-sccvn.c (vn_reference_lookup_3): When native-interpreting
14568         sth with precision not equal to access size verify we don't chop
14569         off bits.
14571 2016-05-11  Richard Biener  <rguenther@suse.de>
14573         PR debug/71057
14574         * dwarf2out.c (retry_incomplete_types): Set early_dwarf.
14575         (dwarf2out_finish): Move retry_incomplete_types call ...
14576         (dwarf2out_early_finish): ... here.
14578 2016-05-11  Richard Biener  <rguenther@suse.de>
14580         PR middle-end/71002
14581         * alias.c (reference_alias_ptr_type): Preserve alias-set zero
14582         if the langhook insists on it.
14583         * fold-const.c (make_bit_field_ref): Add arg for the original
14584         reference and preserve its alias-set.
14585         (decode_field_reference): Take exp by reference and adjust it
14586         to the original memory reference.
14587         (optimize_bit_field_compare): Adjust callers.
14588         (fold_truth_andor_1): Likewise.
14589         * gimplify.c (gimplify_expr): Adjust in-SSA form test.
14591 2016-05-11  Ilya Enkovich  <ilya.enkovich@intel.com>
14593         PR middle-end/70807
14594         * cfgrtl.h (delete_insn_and_edges): Now return bool.
14595         * cfgrtl.c (delete_insn_and_edges): Likewise.
14596         * config/i386/i386.c (convert_scalars_to_vector): Remove
14597         redundant code.
14598         * cse.c (cse_insn): Compute cse_cfg_altered.
14599         (delete_trivially_dead_insns): Likewise.
14600         (cse_cc_succs): Likewise.
14601         (rest_of_handle_cse): Free dominance info if required.
14602         (rest_of_handle_cse2): Likewise.
14603         (rest_of_handle_cse_after_global_opts): Likewise.
14605 2016-05-11  Alan Modra  <amodra@gmail.com>
14607         * config/rs6000/rs6000.c (is_complex_IBM_long_double,
14608         abi_v4_pass_in_fpr): New functions.
14609         (rs6000_function_arg_boundary): Exclude complex IBM long double
14610         from 64-bit alignment when ABI_V4.
14611         (rs6000_function_arg, rs6000_function_arg_advance_1,
14612         rs6000_gimplify_va_arg): Use abi_v4_pass_in_fpr.
14614 2016-05-10  Segher Boessenkool  <segher@kernel.crashing.org>
14616         PR rtl-optimization/71028
14617         * cfgcleanup.c (try_optimize_cfg): Do not flip a conditional
14618         jump with just a return in the fallthrough block if the branch
14619         block contains just a return as well.
14621 2016-05-10  Marc Glisse  <marc.glisse@inria.fr>
14623         * fold-const.c (fold_binary_loc) [(X ^ Y) & Y]: Remove and merge with...
14624         * match.pd ((X & Y) ^ Y): ... this.
14625         ((X & Y) & Y, (X | Y) | Y, (X ^ Y) ^ Y, (X & Y) & (X & Z), (X | Y)
14626         | (X | Z), (X ^ Y) ^ (X ^ Z)): New transformations.
14628 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
14630         * read-md.c (require_char_ws): New function.
14631         (read_string): Simplify using require_char_ws.
14632         (handle_constants): Likewise.
14633         (handle_enum): Likewise.
14634         (handle_file): Likewise.
14635         * read-md.h (require_char_ws): New declaration.
14636         * read-rtl.c (read_conditions): Simplify using require_char_ws.
14637         (read_mapping): Likewise.
14638         (read_rtx_code): Likewise.
14639         (read_nested_rtx): Likewise.
14641 2016-05-10  James Norris  <jnorris@codesourcery.com>
14643         * config/rs6000/sysv4.h (CRTOFFLOADBEGIN): Define. Add crtoffloadbegin.o
14644         if offloading is enabled and -fopenacc or -fopenmp is specified.
14645         (CRTOFFLOADEND): Likewise.
14646         (STARTFILE_LINUX_SPEC): Add CRTOFFLOADBEGIN.
14647         (ENDFILE_LINUX_SPEC): Add CRTOFFLOADEND.
14649 2016-05-10  Uros Bizjak  <ubizjak@gmail.com>
14651         * config/i386/i386.c (legitimize_pic_address): Merge 64-bit and 32-bit
14652         gotoff_operand code paths.  Use copy_to_suggested_regs and
14653         expand_simple_binop where appropriate.  Cleanup.
14655 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14657         PR target/70799
14658         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p): Allow
14659         integer constants.
14660         (dimode_scalar_chain::vector_const_cost): New.
14661         (dimode_scalar_chain::compute_convert_gain): Handle constants.
14662         (dimode_scalar_chain::convert_op): Likewise.
14663         (dimode_scalar_chain::convert_insn): Likewise.
14665 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
14667         * dwarf2out.c (resolve_args_picking_1): Consider DW_OP_neg as an
14668         unary operation, not a binary one.
14670 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14672         PR middle-end/70877
14673         * tree-chkp.c (chkp_add_bounds_to_call_stmt): Handle
14674         calls with type casted fndecl.
14676 2016-05-10  Ilya Enkovich  <ilya.enkovich@intel.com>
14678         PR tree-optimization/70786
14679         * tree-chkp.c (chkp_find_bounds_1): Support WITH_SIZE_EXPR.
14680         * calls.c (initialize_argument_information): Bind bounds
14681         with corresponding args passed by reference.
14683 2016-05-10  Jakub Jelinek  <jakub@redhat.com>
14685         PR target/70927
14686         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>),
14687         *<code><mode>3<mask_name>): For !TARGET_AVX512DQ and EVEX encoding,
14688         use vp*[dq] instead of v*p[sd] instructions and adjust mode attribute
14689         accordingly.
14691 2016-05-10  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
14693         PR target/70963
14694         * config/rs6000/vsx.md (vsx_xvcvdpsxds_scale): Generate correct
14695         code for a zero scale factor.
14696         (vsx_xvcvdpuxds_scale): Likewise.
14698 2016-05-10  David Malcolm  <dmalcolm@redhat.com>
14700         * diagnostic-show-locus.c (layout::layout): Call show_ruler
14701         if show_ruler_p was set on the context.
14702         (layout::show_ruler): New method.
14703         * diagnostic.h (struct diagnostic_context): Add field
14704         "show_ruler_p".
14706 2016-05-10  Richard Biener  <rguenther@suse.de>
14708         PR tree-optimization/71039
14709         * tree-ssa-phiprop.c: Include tree-ssa-loop.h.
14710         (chk_uses): New function.
14711         (propagate_with_phi): Verify we can safely replicate the lhs of an
14712         aggregate assignment on all incoming edges.
14714 2016-05-10  Oleg Endo  <olegendo@gcc.gnu.org>
14716         * config/rx/rx-protos.h (is_interrupt_func, is_fast_interrupt_func):
14717         Forward declare.
14718         (rx_atomic_sequence): New class.
14719         * config/rx/rx.c (rx_print_operand): Use symbolic names for PSW bits.
14720         (is_interrupt_func, is_fast_interrupt_func): Make non-static and
14721         non-inline.
14722         (rx_atomic_sequence::rx_atomic_sequence,
14723         rx_atomic_sequence::~rx_atomic_sequence): New functions.
14724         * config/rx/rx.md (CTRLREG_PSW, CTRLREG_USP, CTRLREG_FPSW, CTRLREG_CPEN,
14725         CTRLREG_BPSW, CTRLREG_BPC, CTRLREG_ISP, CTRLREG_FINTV,
14726         CTRLREG_INTB): New constants.
14727         (FETCHOP): New code iterator.
14728         (fethcop_name, fetchop_name2): New iterator code attributes.
14729         (QIHI): New mode iterator.
14730         (atomic_exchange<mode>, atomic_exchangesi, xchg_mem<mode>,
14731         atomic_fetch_<fetchop_name>si, atomic_fetch_nandsi,
14732         atomic_<fetchop_name>_fetchsi, atomic_nand_fetchsi): New patterns.
14734 2016-05-10  Martin Liska  <mliska@suse.cz>
14736         * tree-inline.c (remap_dependence_clique): Do not remap
14737         debugging statements.
14739 2016-05-10  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
14741         * config/s390/s390.md ("*vec_cmp<insn_cmp>df_cconly")
14742         ("*fixuns_truncdfdi2_z13")
14743         ("*fixuns_trunc<FP:mode><GPR:mode>2_z196")
14744         ("*fix_truncdfdi2_bfp_z13", "*floatunsdidf2_z13")
14745         ("*extendsfdf2_z13"): Replace TARGET_Z13 with TARGET_VX.
14747 2016-05-10  Richard Biener  <rguenther@suse.de>
14749         PR tree-optimization/70497
14750         PR tree-optimization/28367
14751         * tree-ssa-sccvn.c (vn_nary_build_or_lookup): New function
14752         split out from ...
14753         (visit_reference_op_load): ... here.
14754         (vn_reference_lookup_3): Use it to handle subreg-like accesses
14755         with simplified BIT_FIELD_REFs.
14756         * tree-ssa-pre.c (eliminate_insert): Handle inserting BIT_FIELD_REFs.
14757         * tree-complex.c (extract_component): Handle BIT_FIELD_REFs
14758         correctly.
14760 2016-05-10  Pierre-Marie de Rodat  <derodat@adacore.com>
14762         * dwarf2out.c (add_abstract_origin_attribute): Adjust
14763         documentation comment.  For BLOCK nodes, add a
14764         DW_AT_abstract_origin attribute that points to the DIE generated
14765         for the origin BLOCK.
14766         (gen_lexical_block_die): Call add_abstract_origin_attribute for
14767         blocks from inlined functions.
14769 2016-05-10  Alan Modra  <amodra@gmail.com>
14771         PR target/70947
14772         * config/rs6000/rs6000.c (rs6000_expand_split_stack_prologue): Stop
14773         regrename modifying insns saving lr before __morestack call.
14774         * config/rs6000/rs6000.md (split_stack_return): Similarly for
14775         insns restoring lr after __morestack call.
14777 2016-05-09  Jakub Jelinek  <jakub@redhat.com>
14779         * config/i386/i386.md (set_got, set_got_labelled, lwp_llwpcb,
14780         lwp_lwpval<mode>3, lwp_lwpins<mode>3): Remove constraints from
14781         expanders.
14782         * config/i386/sse.md (vec_interleave_high<mode>,
14783         vec_interleave_low<mode>, <avx512>_vpermi2var<mode>3_maskz,
14784         <avx512>_vpermt2var<mode>3_maskz): Likewise.
14786 2016-05-04  Aaron Sawdey  <acsawdey@linux.vnet.ibm.com>
14788         * config/rs6000/rs6000.c (rs6000_reassociation_width): Add
14789         function for TARGET_SCHED_REASSOCIATION_WIDTH to enable
14790         parallel reassociation for power8 and forward.
14792 2016-05-09  Uros Bizjak  <ubizjak@gmail.com>
14794         * config/i386/i386.md (absneg splitters with general regs): Use
14795         general_reg_operand predicate.
14796         (btsq peephole2): Use x86_64_immediate_operand to check if new
14797         value is suitable for immediate operand.  Generate emitted insn
14798         using RTL expressions.
14799         (btcq peephole2): Ditto.
14800         (btrq peephole2): Ditto.  Generate correct immediate operand
14801         for AND masking.
14803 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14805         * cfgexpand.c (expand_debug_expr): Fix address offset for negative
14806         bitpos.
14808 2016-05-09  Richard Sandiford  <richard.sandiford@arm.com>
14810         * tree-affine.c (wide_int_constant_multiple_p): Add missing
14811         pointer dereference.
14813 2016-05-09  Richard Biener  <rguenther@suse.de>
14815         PR tree-optimization/70985
14816         * match.pd (BIT_FIELD_REF -> (type)): Disable on GIMPLE when
14817         op0 isn't a gimple register.
14819 2016-05-09  Prachi Godbole  <prachi.godbole@imgtec.com>
14821         * config/mips/i6400.md (i6400_fpu_intadd, i6400_fpu_logic)
14822         (i6400_fpu_div, i6400_fpu_cmp, i6400_fpu_float, i6400_fpu_store)
14823         (i6400_fpu_long_pipe, i6400_fpu_logic_l, i6400_fpu_float_l)
14824         (i6400_fpu_mult): New cpu units.
14825         (i6400_msa_add_d, i6400_msa_int_add, i6400_msa_short_logic3)
14826         (i6400_msa_short_logic2, i6400_msa_short_logic, i6400_msa_move)
14827         (i6400_msa_cmp, i6400_msa_short_float2, i6400_msa_div_d)
14828         (i6400_msa_div_w, i6400_msa_div_h, i6400_msa_div_b)
14829         (i6400_msa_copy, i6400_msa_branch, i6400_fpu_msa_store)
14830         (i6400_fpu_msa_load, i6400_fpu_msa_move, i6400_msa_long_logic1)
14831         (i6400_msa_long_logic2, i6400_msa_mult, i6400_msa_long_float2)
14832         (i6400_msa_long_float4, i6400_msa_long_float5)
14833         (i6400_msa_long_float8, i6400_msa_fdiv_df)
14834         (i6400_msa_fdiv_sf): New reservations.
14835         * config/mips/p5600.md (p5600_fpu_intadd, p5600_fpu_cmp)
14836         (p5600_fpu_float, p5600_fpu_logic_a, p5600_fpu_logic_b)
14837         (p5600_fpu_div, p5600_fpu_logic, p5600_fpu_float_a)
14838         (p5600_fpu_float_b, p5600_fpu_float_c, p5600_fpu_float_d)
14839         (p5600_fpu_mult, p5600_fpu_fdiv, p5600_fpu_load): New cpu units.
14840         (msa_short_int_add, msa_short_logic, msa_short_logic_move_v)
14841         (msa_short_cmp, msa_short_float2, msa_short_logic3)
14842         (msa_short_store4, msa_long_load, msa_short_store)
14843         (msa_long_logic, msa_long_float2, msa_long_float4)
14844         (msa_long_float5, msa_long_float8, msa_long_mult)
14845         (msa_long_fdiv, msa_long_div): New reservations.
14847 2016-05-09  Robert Suchanek  <robert.suchanek@imgtec.com>
14848             Sameera Deshpande  <sameera.deshpande@imgtec.com>
14849             Matthew Fortune  <matthew.fortune@imgtec.com>
14850             Graham Stott  <graham.stott@imgtec.com>
14851             Chao-ying Fu  <chao-ying.fu@imgtec.com>
14853         * config.gcc: Add MSA header file for mips*-*-* target.
14854         * config/mips/constraints.md (YI, YC, YZ, Unv5, Uuv5, Usv5, Uuv6)
14855         (Ubv8i, Urv8):  New constraints.
14856         * config/mips/mips-ftypes.def: Add function types for MSA
14857         builtins.
14858         * config/mips/mips-modes.def (V16QI, V8HI, V4SI, V2DI, V4SF)
14859         (V2DF, V32QI, V16HI, V8SI, V4DI, V8SF, V4DF): New modes.
14860         * config/mips/mips-msa.md: New file.
14861         * config/mips/mips-protos.h
14862         (mips_split_128bit_const_insns): New prototype.
14863         (mips_msa_idiv_insns): Likewise.
14864         (mips_split_128bit_move): Likewise.
14865         (mips_split_128bit_move_p): Likewise.
14866         (mips_split_msa_copy_d): Likewise.
14867         (mips_split_msa_insert_d): Likewise.
14868         (mips_split_msa_fill_d): Likewise.
14869         (mips_expand_msa_branch): Likewise.
14870         (mips_const_vector_same_val_p): Likewise.
14871         (mips_const_vector_same_bytes_p): Likewise.
14872         (mips_const_vector_same_int_p): Likewise.
14873         (mips_const_vector_shuffle_set_p): Likewise.
14874         (mips_const_vector_bitimm_set_p): Likewise.
14875         (mips_const_vector_bitimm_clr_p): Likewise.
14876         (mips_msa_vec_parallel_const_half): Likewise.
14877         (mips_msa_output_division): Likewise.
14878         (mips_ldst_scaled_shift): Likewise.
14879         (mips_expand_vec_cond_expr): Likewise.
14880         * config/mips/mips.c (enum mips_builtin_type): Add
14881         MIPS_BUILTIN_MSA_TEST_BRANCH.
14882         (mips_gen_const_int_vector_shuffle): New prototype.
14883         (mips_const_vector_bitimm_set_p): New function.
14884         (mips_const_vector_bitimm_clr_p): Likewise.
14885         (mips_const_vector_same_val_p): Likewise.
14886         (mips_const_vector_same_bytes_p): Likewise.
14887         (mips_const_vector_same_int_p): Likewise.
14888         (mips_const_vector_shuffle_set_p): Likewise.
14889         (mips_symbol_insns): Forbid loading symbols via immediate for
14890         MSA.
14891         (mips_valid_offset_p): Limit offset to 10-bit for MSA loads and
14892         stores.
14893         (mips_valid_lo_sum_p): Forbid loadings symbols via %lo(base) for
14894         MSA.
14895         (mips_lx_address_p): Add support load indexed address for MSA.
14896         (mips_address_insns): Add calculation of instructions needed for
14897         stores and loads for MSA.
14898         (mips_const_insns): Move CONST_DOUBLE below CONST_VECTOR.  Handle
14899         CONST_VECTOR for MSA and let it fall through.
14900         (mips_ldst_scaled_shift): New function.
14901         (mips_subword_at_byte): Likewise.
14902         (mips_msa_idiv_insns): Likewise.
14903         (mips_legitimize_move): Validate MSA moves.
14904         (mips_rtx_costs): Add UNGE, UNGT, UNLE, UNLT cases.  Add
14905         calculation of costs for MSA division.
14906         (mips_split_move_p): Check if MSA moves need splitting.
14907         (mips_split_move): Split MSA moves if necessary.
14908         (mips_split_128bit_move_p): New function.
14909         (mips_split_128bit_move): Likewise.
14910         (mips_split_msa_copy_d): Likewise.
14911         (mips_split_msa_insert_d): Likewise.
14912         (mips_split_msa_fill_d): Likewise.
14913         (mips_output_move): Handle MSA moves.
14914         (mips_expand_msa_branch): New function.
14915         (mips_print_operand): Add 'E', 'B', 'w', 'v' and 'V' modifiers.
14916         Reinstate 'y' modifier.
14917         (mips_file_start): Add MSA .gnu_attribute.
14918         (mips_hard_regno_mode_ok_p): Allow TImode and 128-bit vectors in
14919         FPRs.
14920         (mips_hard_regno_nregs): Always return 1 for MSA supported mode.
14921         (mips_class_max_nregs): Add register size for MSA supported mode.
14922         (mips_cannot_change_mode_class): Allow conversion between MSA
14923         vector modes and TImode.
14924         (mips_mode_ok_for_mov_fmt_p): Allow MSA to use move.v
14925         instruction.
14926         (mips_secondary_reload_class): Force MSA loads/stores via memory.
14927         (mips_preferred_simd_mode): Add preffered modes for MSA.
14928         (mips_vector_mode_supported_p): Add MSA supported modes.
14929         (mips_autovectorize_vector_sizes): New function.
14930         (mips_msa_output_division): Likewise.
14931         (MSA_BUILTIN, MIPS_BUILTIN_DIRECT_NO_TARGET)
14932         (MSA_NO_TARGET_BUILTIN, MSA_BUILTIN_TEST_BRANCH): New macros.
14933         (CODE_FOR_msa_adds_s_b, CODE_FOR_msa_adds_s_h)
14934         (CODE_FOR_msa_adds_s_w, CODE_FOR_msa_adds_s_d)
14935         (CODE_FOR_msa_adds_u_b, CODE_FOR_msa_adds_u_h)
14936         (CODE_FOR_msa_adds_u_w, CODE_FOR_msa_adds_u_du
14937         (CODE_FOR_msa_addv_b, CODE_FOR_msa_addv_h, CODE_FOR_msa_addv_w)
14938         (CODE_FOR_msa_addv_d, CODE_FOR_msa_and_v, CODE_FOR_msa_bmnz_v)
14939         (CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bmz_v, CODE_FOR_msa_bmzi_b)
14940         (CODE_FOR_msa_bnz_v, CODE_FOR_msa_bz_v, CODE_FOR_msa_bsel_v)
14941         (CODE_FOR_msa_bseli_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w)
14942         (CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b)
14943         (CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w)
14944         (CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clti_u_b)
14945         (CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w)
14946         (CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_s_b)
14947         (CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w)
14948         (CODE_FOR_msa_clei_s_d, CODE_FOR_msa_clei_u_b)
14949         (CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w)
14950         (CODE_FOR_msa_clei_u_d, CODE_FOR_msa_div_s_b)
14951         (CODE_FOR_msa_div_s_h, CODE_FOR_msa_div_s_w)
14952         (CODE_FOR_msa_div_s_d, CODE_FOR_msa_div_u_b)
14953         (CODE_FOR_msa_div_u_h, CODE_FOR_msa_div_u_w)
14954         (CODE_FOR_msa_div_u_d, CODE_FOR_msa_fadd_w, CODE_FOR_msa_fadd_d)
14955         (CODE_FOR_msa_fexdo_w, CODE_FOR_msa_ftrunc_s_w)
14956         (CODE_FOR_msa_ftrunc_s_d, CODE_FOR_msa_ftrunc_u_w)
14957         (CODE_FOR_msa_ftrunc_u_d, CODE_FOR_msa_ffint_s_w)
14958         (CODE_FOR_msa_ffint_s_d, CODE_FOR_msa_ffint_u_w)
14959         (CODE_FOR_msa_ffint_u_d, CODE_FOR_msa_fsub_w)
14960         (CODE_FOR_msa_fsub_d, CODE_FOR_msa_fmsub_d, CODE_FOR_msa_fmadd_w)
14961         (CODE_FOR_msa_fmadd_d, CODE_FOR_msa_fmsub_w, CODE_FOR_msa_fmul_w)
14962         (CODE_FOR_msa_fmul_d, CODE_FOR_msa_fdiv_w, CODE_FOR_msa_fdiv_d)
14963         (CODE_FOR_msa_fmax_w, CODE_FOR_msa_fmax_d, CODE_FOR_msa_fmax_a_w)
14964         (CODE_FOR_msa_fmax_a_d, CODE_FOR_msa_fmin_w, CODE_FOR_msa_fmin_d)
14965         (CODE_FOR_msa_fmin_a_w, CODE_FOR_msa_fmin_a_d)
14966         (CODE_FOR_msa_fsqrt_w, CODE_FOR_msa_fsqrt_d)
14967         (CODE_FOR_msa_max_s_b, CODE_FOR_msa_max_s_h)
14968         (CODE_FOR_msa_max_s_w, CODE_FOR_msa_max_s_d)
14969         (CODE_FOR_msa_max_u_b, CODE_FOR_msa_max_u_h)
14970         (CODE_FOR_msa_max_u_w, CODE_FOR_msa_max_u_d)
14971         (CODE_FOR_msa_min_s_b, CODE_FOR_msa_min_s_h)
14972         (CODE_FOR_msa_min_s_w, CODE_FOR_msa_min_s_d)
14973         (CODE_FOR_msa_min_u_b, CODE_FOR_msa_min_u_h)
14974         (CODE_FOR_msa_min_u_w, CODE_FOR_msa_min_u_d)
14975         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14976         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14977         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14978         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14979         (CODE_FOR_msa_mod_s_b, CODE_FOR_msa_mod_s_h)
14980         (CODE_FOR_msa_mod_s_w, CODE_FOR_msa_mod_s_d)
14981         (CODE_FOR_msa_mod_u_b, CODE_FOR_msa_mod_u_h)
14982         (CODE_FOR_msa_mod_u_w, CODE_FOR_msa_mod_u_d)
14983         (CODE_FOR_msa_mulv_b, CODE_FOR_msa_mulv_h, CODE_FOR_msa_mulv_w)
14984         (CODE_FOR_msa_mulv_d, CODE_FOR_msa_nlzc_b, CODE_FOR_msa_nlzc_h)
14985         (CODE_FOR_msa_nlzc_w, CODE_FOR_msa_nlzc_d, CODE_FOR_msa_nor_v)
14986         (CODE_FOR_msa_or_v, CODE_FOR_msa_ori_b, CODE_FOR_msa_nori_b)
14987         (CODE_FOR_msa_pcnt_b, CODE_FOR_msa_pcnt_h, CODE_FOR_msa_pcnt_w)
14988         (CODE_FOR_msa_pcnt_d, CODE_FOR_msa_xor_v, CODE_FOR_msa_xori_b)
14989         (CODE_FOR_msa_sll_b, CODE_FOR_msa_sll_h, CODE_FOR_msa_sll_w)
14990         (CODE_FOR_msa_sll_d, CODE_FOR_msa_slli_b, CODE_FOR_msa_slli_h)
14991         (CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d, CODE_FOR_msa_sra_b)
14992         (CODE_FOR_msa_sra_h, CODE_FOR_msa_sra_w, CODE_FOR_msa_sra_d)
14993         (CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w)
14994         (CODE_FOR_msa_srai_d, CODE_FOR_msa_srl_b, CODE_FOR_msa_srl_h)
14995         (CODE_FOR_msa_srl_w, CODE_FOR_msa_srl_d, CODE_FOR_msa_srli_b)
14996         (CODE_FOR_msa_srli_h, CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d)
14997         (CODE_FOR_msa_subv_b, CODE_FOR_msa_subv_h, CODE_FOR_msa_subv_w)
14998         (CODE_FOR_msa_subv_d, CODE_FOR_msa_subvi_b, CODE_FOR_msa_subvi_h)
14999         (CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d, CODE_FOR_msa_move_v)
15000         (CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h, CODE_FOR_msa_vshf_w)
15001         (CODE_FOR_msa_vshf_d, CODE_FOR_msa_ilvod_d, CODE_FOR_msa_ilvev_d)
15002         (CODE_FOR_msa_pckod_d, CODE_FOR_msa_pckdev_d, CODE_FOR_msa_ldi_b)
15003         (CODE_FOR_msa_ldi_hi, CODE_FOR_msa_ldi_w)
15004         (CODE_FOR_msa_ldi_d): New code_aliasing macros.
15005         (mips_builtins): Add MSA sll_b, sll_h, sll_w, sll_d, slli_b,
15006         slli_h, slli_w, slli_d, sra_b, sra_h, sra_w, sra_d, srai_b,
15007         srai_h, srai_w, srai_d, srar_b, srar_h, srar_w, srar_d, srari_b,
15008         srari_h, srari_w, srari_d, srl_b, srl_h, srl_w, srl_d, srli_b,
15009         srli_h, srli_w, srli_d, srlr_b, srlr_h, srlr_w, srlr_d, srlri_b,
15010         srlri_h, srlri_w, srlri_d, bclr_b, bclr_h, bclr_w, bclr_d,
15011         bclri_b, bclri_h, bclri_w, bclri_d, bset_b, bset_h, bset_w,
15012         bset_d, bseti_b, bseti_h, bseti_w, bseti_d, bneg_b, bneg_h,
15013         bneg_w, bneg_d, bnegi_b, bnegi_h, bnegi_w, bnegi_d, binsl_b,
15014         binsl_h, binsl_w, binsl_d, binsli_b, binsli_h, binsli_w,
15015         binsli_d, binsr_b, binsr_h, binsr_w, binsr_d, binsri_b, binsri_h,
15016         binsri_w, binsri_d, addv_b, addv_h, addv_w, addv_d, addvi_b,
15017         addvi_h, addvi_w, addvi_d, subv_b, subv_h, subv_w, subv_d,
15018         subvi_b, subvi_h, subvi_w, subvi_d, max_s_b, max_s_h, max_s_w,
15019         max_s_d, maxi_s_b, maxi_s_h, maxi_s_w, maxi_s_d, max_u_b,
15020         max_u_h, max_u_w, max_u_d, maxi_u_b, maxi_u_h, maxi_u_w,
15021         maxi_u_d, min_s_b, min_s_h, min_s_w, min_s_d, mini_s_b, mini_s_h,
15022         mini_s_w, mini_s_d, min_u_b, min_u_h, min_u_w, min_u_d, mini_u_b,
15023         mini_u_h, mini_u_w, mini_u_d, max_a_b, max_a_h, max_a_w, max_a_d,
15024         min_a_b, min_a_h, min_a_w, min_a_d, ceq_b, ceq_h, ceq_w, ceq_d,
15025         ceqi_b, ceqi_h, ceqi_w, ceqi_d, clt_s_b, clt_s_h, clt_s_w,
15026         clt_s_d, clti_s_b, clti_s_h, clti_s_w, clti_s_d, clt_u_b,
15027         clt_u_h, clt_u_w, clt_u_d, clti_u_b, clti_u_h, clti_u_w,
15028         clti_u_d, cle_s_b, cle_s_h, cle_s_w, cle_s_d, clei_s_b, clei_s_h,
15029         clei_s_w, clei_s_d, cle_u_b, cle_u_h, cle_u_w, cle_u_d, clei_u_b,
15030         clei_u_h, clei_u_w, clei_u_d, ld_b, ld_h, ld_w, ld_d, st_b, st_h,
15031         st_w, st_d, sat_s_b, sat_s_h, sat_s_w, sat_s_d, sat_u_b, sat_u_h,
15032         sat_u_w, sat_u_d, add_a_b, add_a_h, add_a_w, add_a_d, adds_a_b,
15033         adds_a_h, adds_a_w, adds_a_d, adds_s_b, adds_s_h, adds_s_w,
15034         adds_s_d, adds_u_b, adds_u_h, adds_u_w, adds_u_d, ave_s_b,
15035         ave_s_h, ave_s_w, ave_s_d, ave_u_b, ave_u_h, ave_u_w, ave_u_d,
15036         aver_s_b, aver_s_h, aver_s_w, aver_s_d, aver_u_b, aver_u_h,
15037         aver_u_w, aver_u_d, subs_s_b, subs_s_h, subs_s_w, subs_s_d,
15038         subs_u_b, subs_u_h, subs_u_w, subs_u_d, subsuu_s_b, subsuu_s_h,
15039         subsuu_s_w, subsuu_s_d, subsus_u_b, subsus_u_h, subsus_u_w,
15040         subsus_u_d, asub_s_b, asub_s_h, asub_s_w, asub_s_d, asub_u_b,
15041         asub_u_h, asub_u_w, asub_u_d, mulv_b, mulv_h, mulv_w, mulv_d,
15042         maddv_b, maddv_h, maddv_w, maddv_d, msubv_b, msubv_h, msubv_w,
15043         msubv_d, div_s_b, div_s_h, div_s_w, div_s_d, div_u_b, div_u_h,
15044         div_u_w, div_u_d, hadd_s_h, hadd_s_w, hadd_s_d, hadd_u_h,
15045         hadd_u_w, hadd_u_d, hsub_s_h, hsub_s_w, hsub_s_d, hsub_u_h,
15046         hsub_u_w, hsub_u_d, mod_s_b, mod_s_h, mod_s_w, mod_s_d, mod_u_b,
15047         mod_u_h, mod_u_w, mod_u_d, dotp_s_h, dotp_s_w, dotp_s_d,
15048         dotp_u_h, dotp_u_w, dotp_u_d, dpadd_s_h, dpadd_s_w, dpadd_s_d,
15049         dpadd_u_h, dpadd_u_w, dpadd_u_d, dpsub_s_h, dpsub_s_w, dpsub_s_d,
15050         dpsub_u_h, dpsub_u_w, dpsub_u_d, sld_b, sld_h, sld_w, sld_d,
15051         sldi_b, sldi_h, sldi_w, sldi_d, splat_b, splat_h, splat_w,
15052         splat_d, splati_b, splati_h, splati_w, splati_d, pckev_b,
15053         pckev_h, pckev_w, pckev_d, pckod_b, pckod_h, pckod_w, pckod_d,
15054         ilvl_b, ilvl_h, ilvl_w, ilvl_d, ilvr_b, ilvr_h, ilvr_w, ilvr_d,
15055         ilvev_b, ilvev_h, ilvev_w, ilvev_d, ilvod_b, ilvod_h, ilvod_w,
15056         ilvod_d, vshf_b, vshf_h, vshf_w, vshf_d, and_v, andi_b, or_v,
15057         ori_b, nor_v, nori_b, xor_v, xori_b, bmnz_v, bmnzi_b, bmz_v,
15058         bmzi_b, bsel_v, bseli_b, shf_b, shf_h, shf_w, bnz_v, bz_v,
15059         fill_b, fill_h, fill_w, fill_d, pcnt_b, pcnt_h, pcnt_w,
15060         pcnt_d, nloc_b, nloc_h, nloc_w, nloc_d, nlzc_b, nlzc_h, nlzc_w,
15061         nlzc_d, copy_s_b, copy_s_h, copy_s_w, copy_s_d, copy_u_b,
15062         copy_u_h, copy_u_w, copy_u_d, insert_b, insert_h, insert_w,
15063         insert_d, insve_b, insve_h, insve_w, insve_d, bnz_b, bnz_h,
15064         bnz_w, bnz_d, bz_b, bz_h, bz_w, bz_d, ldi_b, ldi_h, ldi_w, ldi_d,
15065         fcaf_w, fcaf_d, fcor_w, fcor_d, fcun_w, fcun_d, fcune_w, fcune_d,
15066         fcueq_w, fcueq_d, fceq_w, fceq_d, fcne_w, fcne_d, fclt_w, fclt_d,
15067         fcult_w, fcult_d, fcle_w, fcle_d, fcule_w, fcule_d, fsaf_w,
15068         fsaf_d, fsor_w, fsor_d, fsun_w, fsun_d, fsune_w, fsune_d,
15069         fsueq_w, fsueq_d, fseq_w, fseq_d, fsne_w, fsne_d, fslt_w,
15070         fslt_d, fsult_w, fsult_d, fsle_w, fsle_d, fsule_w, fsule_d,
15071         fadd_w, fadd_d, fsub_w, fsub_d, fmul_w, fmul_d, fdiv_w, fdiv_d,
15072         fmadd_w, fmadd_d, fmsub_w, fmsub_d, fexp2_w, fexp2_d, fexdo_h,
15073         fexdo_w, ftq_h, ftq_w, fmin_w, fmin_d, fmin_a_w, fmin_a_d,
15074         fmax_w, fmax_d, fmax_a_w, fmax_a_d, mul_q_h, mul_q_w, mulr_q_h,
15075         mulr_q_w, madd_q_h, madd_q_w, maddr_q_h, maddr_q_w, msub_q_h,
15076         msub_q_w, msubr_q_h, msubr_q_w, fclass_w, fclass_d, fsqrt_w,
15077         fsqrt_d, frcp_w, frcp_d, frint_w, frint_d, frsqrt_w, frsqrt_d,
15078         flog2_w, flog2_d, fexupl_w, fexupl_d, fexupr_w, fexupr_d, ffql_w,
15079         ffql_d, ffqr_w, ffqr_d, ftint_s_w, ftint_s_d, ftint_u_w,
15080         ftint_u_d, ftrunc_s_w, ftrunc_s_d, ftrunc_u_w, ftrunc_u_d,
15081         ffint_s_w, ffint_s_d, ffint_u_w, ffint_u_d, ctcmsa, cfcmsa,
15082         move_v builtins.
15083         (mips_get_builtin_decl_index): New array.
15084         (MIPS_ATYPE_QI, MIPS_ATYPE_HI, MIPS_ATYPE_V2DI, MIPS_ATYPE_V4SI)
15085         (MIPS_ATYPE_V8HI, MIPS_ATYPE_V16QI, MIPS_ATYPE_V2DF)
15086         (MIPS_ATYPE_V4SF, MIPS_ATYPE_UV2DI, MIPS_ATYPE_UV4SI)
15087         (MIPS_ATYPE_UV8HI, MIPS_ATYPE_UV16QI): New.
15088         (mips_init_builtins): Initialize mips_get_builtin_decl_index
15089         array.
15090         (TARGET_VECTORIZE_BUILTIN_VECTORIZED_FUNCTION): Define target
15091         hook.
15092         (mips_expand_builtin_insn): Prepare operands for
15093         CODE_FOR_msa_addvi_b, CODE_FOR_msa_addvi_h, CODE_FOR_msa_addvi_w,
15094         CODE_FOR_msa_addvi_d, CODE_FOR_msa_clti_u_b,
15095         CODE_FOR_msa_clti_u_h, CODE_FOR_msa_clti_u_w,
15096         CODE_FOR_msa_clti_u_d, CODE_FOR_msa_clei_u_b,
15097         CODE_FOR_msa_clei_u_h, CODE_FOR_msa_clei_u_w,
15098         CODE_FOR_msa_clei_u_d, CODE_FOR_msa_maxi_u_b,
15099         CODE_FOR_msa_maxi_u_h, CODE_FOR_msa_maxi_u_w,
15100         CODE_FOR_msa_maxi_u_d, CODE_FOR_msa_mini_u_b,
15101         CODE_FOR_msa_mini_u_h, CODE_FOR_msa_mini_u_w,
15102         CODE_FOR_msa_mini_u_d, CODE_FOR_msa_subvi_b,
15103         CODE_FOR_msa_subvi_h, CODE_FOR_msa_subvi_w, CODE_FOR_msa_subvi_d,
15104         CODE_FOR_msa_ceqi_b, CODE_FOR_msa_ceqi_h, CODE_FOR_msa_ceqi_w,
15105         CODE_FOR_msa_ceqi_d, CODE_FOR_msa_clti_s_b,
15106         CODE_FOR_msa_clti_s_h, CODE_FOR_msa_clti_s_w,
15107         CODE_FOR_msa_clti_s_d, CODE_FOR_msa_clei_s_b,
15108         CODE_FOR_msa_clei_s_h, CODE_FOR_msa_clei_s_w,
15109         CODE_FOR_msa_clei_s_d, CODE_FOR_msa_maxi_s_b,
15110         CODE_FOR_msa_maxi_s_h, CODE_FOR_msa_maxi_s_w,
15111         CODE_FOR_msa_maxi_s_d, CODE_FOR_msa_mini_s_b,
15112         CODE_FOR_msa_mini_s_h, CODE_FOR_msa_mini_s_w,
15113         CODE_FOR_msa_mini_s_d, CODE_FOR_msa_andi_b, CODE_FOR_msa_ori_b,
15114         CODE_FOR_msa_nori_b, CODE_FOR_msa_xori_b, CODE_FOR_msa_bmzi_b,
15115         CODE_FOR_msa_bmnzi_b, CODE_FOR_msa_bseli_b, CODE_FOR_msa_fill_b,
15116         CODE_FOR_msa_fill_h, CODE_FOR_msa_fill_w, CODE_FOR_msa_fill_d,
15117         CODE_FOR_msa_ilvl_b, CODE_FOR_msa_ilvl_h, CODE_FOR_msa_ilvl_w,
15118         CODE_FOR_msa_ilvl_d, CODE_FOR_msa_ilvr_b, CODE_FOR_msa_ilvr_h,
15119         CODE_FOR_msa_ilvr_w, CODE_FOR_msa_ilvr_d, CODE_FOR_msa_ilvev_b,
15120         CODE_FOR_msa_ilvev_h, CODE_FOR_msa_ilvev_w, CODE_FOR_msa_ilvod_b,
15121         CODE_FOR_msa_ilvod_h, CODE_FOR_msa_ilvod_w, CODE_FOR_msa_pckev_b,
15122         CODE_FOR_msa_pckev_h, CODE_FOR_msa_pckev_w, CODE_FOR_msa_pckod_b,
15123         CODE_FOR_msa_pckod_h, CODE_FOR_msa_pckod_w, CODE_FOR_msa_slli_b,
15124         CODE_FOR_msa_slli_h, CODE_FOR_msa_slli_w, CODE_FOR_msa_slli_d,
15125         CODE_FOR_msa_srai_b, CODE_FOR_msa_srai_h, CODE_FOR_msa_srai_w,
15126         CODE_FOR_msa_srai_d, CODE_FOR_msa_srli_b, CODE_FOR_msa_srli_h,
15127         CODE_FOR_msa_srli_w, CODE_FOR_msa_srli_d, CODE_FOR_msa_insert_b,
15128         CODE_FOR_msa_insert_h, CODE_FOR_msa_insert_w,
15129         CODE_FOR_msa_insert_d, CODE_FOR_msa_insve_b,
15130         CODE_FOR_msa_insve_h, CODE_FOR_msa_insve_w, CODE_FOR_msa_insve_d,
15131         CODE_FOR_msa_shf_b, CODE_FOR_msa_shf_h, CODE_FOR_msa_shf_w,
15132         CODE_FOR_msa_shf_w_f, CODE_FOR_msa_vshf_b, CODE_FOR_msa_vshf_h,
15133         CODE_FOR_msa_vshf_w, CODE_FOR_msa_vshf_d.
15134         (mips_expand_builtin): Add case for MIPS_BULTIN_MSA_TEST_BRANCH.
15135         (mips_set_compression_mode): Disallow MSA with MIPS16 code.
15136         (mips_option_override): -mmsa requires -mfp64 and -mhard-float.
15137         These are set implicitly and an error is reported if overridden.
15138         (mips_expand_builtin_msa_test_branch): New function.
15139         (mips_expand_msa_shuffle): Likewise.
15140         (MAX_VECT_LEN): Increase maximum length of a vector to 16 bytes.
15141         (TARGET_SCHED_REASSOCIATION_WIDTH): Define target hook.
15142         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Likewise.
15143         (mips_expand_vec_unpack): Add support for MSA.
15144         (mips_expand_vector_init): Likewise.
15145         (mips_expand_vi_constant): Use CONST0_RTX (element_mode)
15146         instead of const0_rtx.
15147         (mips_msa_vec_parallel_const_half): New function.
15148         (mips_gen_const_int_vector): Likewise.
15149         (mips_gen_const_int_vector_shuffle): Likewise.
15150         (mips_expand_msa_cmp): Likewise.
15151         (mips_expand_vec_cond_expr): Likewise.
15152         * config/mips/mips.h
15153         (TARGET_CPU_CPP_BUILTINS): Add __mips_msa and __mips_msa_width.
15154         (OPTION_DEFAULT_SPECS): Ignore --with-fp-32 if -mmsa is
15155         specified.
15156         (ASM_SPEC): Pass mmsa and mno-msa to the assembler.
15157         (ISA_HAS_MSA): New macro.
15158         (UNITS_PER_MSA_REG): Likewise.
15159         (BITS_PER_MSA_REG): Likewise.
15160         (BIGGEST_ALIGNMENT): Redefine using ISA_HAS_MSA.
15161         (MSA_REG_FIRST): New macro.
15162         (MSA_REG_LAST): Likewise.
15163         (MSA_REG_NUM): Likewise.
15164         (MSA_REG_P): Likewise.
15165         (MSA_REG_RTX_P): Likewise.
15166         (MSA_SUPPORTED_MODE_P): Likewise.
15167         (HARD_REGNO_CALL_PART_CLOBBERED): Redefine using TARGET_MSA.
15168         (ADDITIONAL_REGISTER_NAMES): Add named registers $w0-$w31.
15169         * config/mips/mips.md: Include mips-msa.md.
15170         (alu_type): Add simd_add.
15171         (mode): Add V2DI, V4SI, V8HI, V16QI, V2DF, V4SF.
15172         (type): Add simd_div, simd_fclass, simd_flog2, simd_fadd,
15173         simd_fcvt, simd_fmul, simd_fmadd, simd_fdiv, simd_bitins,
15174         simd_bitmov, simd_insert, simd_sld, simd_mul, simd_fcmp,
15175         simd_fexp2, simd_int_arith, simd_bit, simd_shift, simd_splat,
15176         simd_fill, simd_permute, simd_shf, simd_sat, simd_pcnt,
15177         simd_copy, simd_branch, simd_cmsa, simd_fminmax, simd_logic,
15178         simd_move, simd_load, simd_store.  Choose "multi" for moves
15179         for "qword_mode".
15180         (qword_mode): New attribute.
15181         (insn_count): Add instruction count for quad moves.
15182         Increase the count for MIPS SIMD division.
15183         (UNITMODE): Add UNITMODEs for vector types.
15184         (addsub): New code iterator.
15185         * config/mips/mips.opt (mmsa): New option.
15186         * config/mips/msa.h: New file.
15187         * config/mips/mti-elf.h: Don't infer -mfpxx if -mmsa is
15188         specified.
15189         * config/mips/mti-linux.h: Likewise.
15190         * config/mips/predicates.md
15191         (const_msa_branch_operand): New constraint.
15192         (const_uimm3_operand): Likewise.
15193         (const_uimm4_operand): Likewise.
15194         (const_uimm5_operand): Likewise.
15195         (const_uimm8_operand): Likewise.
15196         (const_imm5_operand): Likewise.
15197         (aq10b_operand): Likewise.
15198         (aq10h_operand): Likewise.
15199         (aq10w_operand): Likewise.
15200         (aq10d_operand): Likewise.
15201         (const_m1_operand): Likewise.
15202         (reg_or_m1_operand): Likewise.
15203         (const_exp_2_operand): Likewise.
15204         (const_exp_4_operand): Likewise.
15205         (const_exp_8_operand): Likewise.
15206         (const_exp_16_operand): Likewise.
15207         (const_vector_same_val_operand): Likewise.
15208         (const_vector_same_simm5_operand): Likewise.
15209         (const_vector_same_uimm5_operand): Likewise.
15210         (const_vector_same_uimm6_operand): Likewise.
15211         (const_vector_same_uimm8_operand): Likewise.
15212         (par_const_vector_shf_set_operand): Likewise.
15213         (reg_or_vector_same_val_operand): Likewise.
15214         (reg_or_vector_same_simm5_operand): Likewise.
15215         (reg_or_vector_same_uimm6_operand): Likewise.
15216         * doc/extend.texi (MIPS SIMD Architecture Functions): New
15217         section.
15218         * doc/invoke.texi (-mmsa): Document new option.
15220 2016-05-09  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15222         * configure.ac (enable_vtable_verify): Handle --enable-vtable-verify.
15223         * configure: Regenerate.
15224         * config.in: Regenerate.
15225         * gcc.c (VTABLE_VERIFICATION_SPEC) [!ENABLE_VTABLE_VERIFY]: Error
15226         on -fvtable-verify.
15227         * config/sol2.h [!ENABLE_VTABLE_VERIFY] (STARTFILE_VTV_SPEC): Define.
15228         (ENDFILE_VTV_SPEC): Define.
15230 2016-05-09  Kaushik Phatak  <kaushik.phatak@kpit.com>
15232         * config/rl78/rl78.c (rl78_expand_prologue): Save the MDUC related
15233         registers in all interrupt handlers if necessary.
15234         (rl78_option_override): Add warning.
15235         (MUST_SAVE_MDUC_REGISTERS): New macro.
15236         (rl78_expand_epilogue): Restore the MDUC registers if necessary.
15237         * config/rl78/rl78.c (check_mduc_usage): New function.
15238         (mduc_regs): New structure to hold MDUC register data.
15239         * config/rl78/rl78.md (is_g13_muldiv_insn): New attribute.
15240         (mulsi3_g13): Add is_g13_muldiv_insn attribute.
15241         (udivmodsi4_g13): Add is_g13_muldiv_insn attribute.
15242         (mulhi3_g13): Add is_g13_muldiv_insn attribute.
15243         * config/rl78/rl78.opt (msave-mduc-in-interrupts): New option.
15244         * doc/invoke.texi (RL78 Options): Add -msave-mduc-in-interrupts.
15246 2016-05-09  Bin Cheng  <bin.cheng@arm.com>
15248         * tree-if-conv.c (tree-ssa-loop.h): Include header file.
15249         (tree-ssa-loop-niter.h): Ditto.
15250         (idx_within_array_bound, ref_within_array_bound): New functions.
15251         (ifcvt_memrefs_wont_trap): Check if array ref is within bound.
15252         Factor out check on writable base object to ...
15253         (base_object_writable): ... here.
15255 2016-05-09  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15257         * config/arm/arm.md (probe_stack): Add modes to set source
15258         and destination.
15260 2016-05-09  Bernd Schmidt  <bschmidt@redhat.com>
15262         * regrename.c (base_reg_class_for_rename): New static function.
15263         (scan_rtx_address, scan_rtx): Use it instead of base_reg_class.
15265 2016-05-08  Jan Hubicka  <hubicka@ucw.cz>
15267         * cgraph.c (thunk_adjust): Export.
15268         * cgraphclones.c (cgraph_node::create_clone): Clone thunk info.
15269         * cgraphunit.c (thunk_adjust): Export.
15270         (cgraph_node::assemble_thunks_and_aliases): Do not assemble inlined
15271         thunks.
15272         * ipa-inline-analyssi.c (compute_inline_parameters): Thunks are
15273         inlinable.
15274         * tree-inline.c (expand_call_inline): Expand thunks inline.
15276 2016-05-08  Uros Bizjak  <ubizjak@gmail.com>
15278         PR target/70998
15279         * config/i386/sse.md (*sse2_vd_cvtsd2ss): New insn pattern.
15280         (*sse2_vd_cvtss2sd): Ditto.
15281         * config/i386/i386.md
15282         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf splitter):
15283         Generate *sse2_vd_cvtsd2ss pattern.
15284         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df splitter):
15285         Generate *sse2_vd_cvtss2sd pattern.
15287 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
15289         * config/sh/sh.h (GET_SH_ARG_CLASS): Convert macro into ...
15290         * config/sh/sh.c (get_sh_arg_class): ... this new function.  Update its
15291         users.
15293 2016-05-08  Oleg Endo  <olegendo@gcc.gnu.org>
15295         * config/sh/sh-protos.h (sh_media_register_for_return): Remove.
15296         * config/sh/sh.c: Define and declare variables on first use throughout
15297         the file.
15298         (current_function_interrupt): Change to bool type.
15299         (frame_insn): Rename to emit_frame_insn and update users.
15300         (push_regs): Use bool for 'interrupt_handler' argument.
15301         (save_schedule_s): Remove.
15302         (TARGET_ASM_UNALIGNED_DI_OP, TARGET_ASM_ALIGNED_DI_OP): Remove.
15303         (sh_option_override): Don't nullify targetm.asm_out.aligned_op.di and
15304         targetm.asm_out.unaligned_op.di.
15305         (gen_far_branch): Remove redundant forward declaration.
15306         (sh_media_register_for_return, MAX_SAVED_REGS, save_entry_s, save_entry,
15307         MAX_TEMPS, save_schedule_ssave_schedule): Remove.
15308         (sh_set_return_address, sh_function_ok_for_sibcall,
15309         scavenge_reg): Update comments.
15310         (sh_builtin_saveregs): Use TRAGET_FPU_ANY condition.
15311         (sh2a_get_function_vector_number, sh2a_function_vector_p): Use for loop.
15312         (sh_attr_renesas_p): Remove unnecessary parentheses.
15313         (branch_dest): Simplify.
15314         * config/sh/sh.h (sh_args): Remove byref, byref_regs, stack_regs fields.
15315         Change force_mem, prototype_p, outgoing, renesas_abi fields to bool.
15316         (CUMULATIVE_ARGS): Change macro to typedef.
15317         (current_function_interrupt): Change to bool type.
15318         (sh_arg_class, sh_args, CUMULATIVE_ARGS, current_function_interrupt):
15319         Surround with __cplusplus ifdef.
15320         (sh_compare_op0, sh_compare_op1): Remove.
15321         (EPILOGUE_USES): Use TARGET_FPU_ANY condition.
15323 2016-05-07  Jim Wilson  <jim.wilson@linaro.org>
15325         * config/arm/arm.md: (arch): Add neon.
15326         (arch_enabled): Return yes for arch neon when TARGET_NEON.
15327         * config/arm/vfp.md (movdf_vfp): Add w/G as alternative 3.  Add
15328         neon_move as type for alt 3.  Add arch attr enabling alt 3 for neon.
15329         Emit vmov.i64 for alt 3.  Renumber alternatives 3 to 8.  Adjust
15330         attributes for alt renumbering.  Mark alt 3 as non-predicable.
15331         (thumb2_movdf_vfp): Likewise.
15333 2016-05-07  Uros Bizjak  <ubizjak@gmail.com>
15335         * config/i386/i386.md (*addqi_1): Add preferred_for_speed attribute
15336         to disparage alternatives 3 and 4 for TARGET_PARTIAL_REG_STALL targets.
15337         (*andqi_1): Add preferred_for_speed attribute to disparage
15338         alternative 2 for TARGET_PARTIAL_REG_STALL targets.
15339         (*<code>qi_1): Ditto.
15340         (*one_cmplqi2_1): Add preferred_for_speed attribute to disparage
15341         alternative 1 for TARGET_PARTIAL_REG_STALL targets.
15342         (*ashlqi3_1): Ditto.
15343         (*swap<mode>): Merge from *swap<mode>_1 and *swap<mode>_2 patterns.
15344         Add preferred_for_size attribute to disparage alternative 0 and
15345         preferred_for_speed attribute to disparage alternative 1 for
15346         TARGET_PARTIAL_REG_STALL targets.
15348 2016-05-07  Tom de Vries  <tom@codesourcery.com>
15350         PR tree-optimization/70956
15351         * graphite-scop-detection.c (build_cross_bb_scalars_def): Handle NULL
15352         def.
15354 2016-05-07  Oleg Endo  <olegendo@gcc.gnu.org>
15356         * config/sh/sh-protos.h (sh_cbranch_distance): Declare new function.
15357         * config/sh/sh.c (sh_cbranch_distance): Implement it.
15358         * config/sh/sh.md (branch_zero): Remove define_attr.
15359         (define_delay): Disable delay slot if branch distance is one insn.
15361 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15363         * config/i386/i386.md (LEAMODE): New mode attribute.
15364         (plus to LEA splitter): Rewrite splitter using LEAMODE mode attribute.
15365         (ashift to LEA splitter): Rewrte splitter using SWI mode iterator
15366         and LEAMODE mode attribute.  Use VOIDmode const_0_to_3_operand as
15367         operand 2 predicate.
15368         (*lea<mode>_general_2): Use VOIDmode for const248_operand.
15369         (*lea<mode>_general_3): Ditto.
15370         (*lea<mode>_general_4): Use VOIDmode for const_0_to_3_operand.
15372 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
15374         * genmddump.c (main): Convert argv from char ** to const char **.
15376 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15378         * coretypes.h (OVERRIDE): New macro.
15379         (FINAL): New macro.
15381 2016-05-06  Eric Botcazou  <ebotcazou@adacore.com>
15383         * tree-ssa-coalesce.c (gimple_can_coalesce_p): In the optimized case,
15384         allow coalescing if the types are compatible.
15386 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15388         * pass_manager.h (pass_manager::register_pass_name): New method.
15389         (pass_manager::get_pass_by_name): New method.
15390         (pass_manager::create_pass_tab): New method.
15391         (pass_manager::m_name_to_pass_map): New field.
15392         * passes.c (name_to_pass_map): Delete global in favor of field
15393         "m_name_to_pass_map" of pass_manager.
15394         (register_pass_name): Rename from a function to...
15395         (pass_manager::register_pass_name): ...this method, updating
15396         for renaming of global "name_to_pass_map" to field
15397         "m_name_to_pass_map".
15398         (create_pass_tab): Rename from a function to...
15399         (pass_manager::create_pass_tab): ...this method, updating
15400         for renaming of global "name_to_pass_map" to field.
15401         (get_pass_by_name): Rename from a function to...
15402         (pass_manager::get_pass_by_name): ...this method.
15403         (enable_disable_pass): Convert use of get_pass_by_name to
15404         a method call, locating the pass_manager singleton.
15406 2016-05-06  David Malcolm  <dmalcolm@redhat.com>
15408         * genattr-common.c (main): Convert argv from char ** to const char **.
15409         * genattr.c (main): Likewise.
15410         * genattrtab.c (main): Likewise.
15411         * genautomata.c (initiate_automaton_gen): Likewise.
15412         (main): Likewise.
15413         * gencodes.c (main): Likewise.
15414         * genconditions.c (main): Likewise.
15415         * genconfig.c (main): Likewise.
15416         * genconstants.c (main): Likewise.
15417         * genemit.c (main): Likewise.
15418         * genenums.c (main): Likewise.
15419         * genextract.c (main): Likewise.
15420         * genflags.c (main): Likewise.
15421         * genmddeps.c (main): Likewise.
15422         * genopinit.c (main): Likewise.
15423         * genoutput.c (main): Likewise.
15424         * genpeep.c (main): Likewise.
15425         * genpreds.c (main): Likewise.
15426         * genrecog.c (main): Likewise.
15427         * gensupport.c (init_rtx_reader_args_cb): Likewise.
15428         (init_rtx_reader_args): Likewise.
15429         * gensupport.h (init_rtx_reader_args_cb): Likewise.
15430         (init_rtx_reader_args): Likewise.
15431         * gentarget-def.c (main): Likewise.
15432         * read-md.c (read_md_files): Likewise.
15433         * read-md.h (read_md_files): Likewise.
15435 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15437         * config/i386/i386.md (int cmove peephole2s): Use general_reg_operand
15438         instead of register_and_not_any_fp_reg_operand as operand 0 predicate.
15439         * config/i386/predicates.md (register_and_not_any_fp_reg_operand):
15440         Remove unused predicate.
15441         (register_and_not_fp_reg_operand): Ditto.
15443 2016-05-06  Martin Liska  <mliska@suse.cz>
15445         * tree-if-conv.c (ifcvt_split_critical_edges): Use auto_vec
15446         instead of vec as the vector is local to the function.
15448 2016-05-06  Jakub Jelinek  <jakub@redhat.com>
15450         * config/i386/sse.md (*<code>v8hi3, *<code>v16qi3): Add
15451         avx512bw alternative.
15453         * config/i386/sse.md (<mask_codefor>ashr<mode>3<mask_name>): Move
15454         before the ashr<mode>3 pattern.
15456         * config/i386/sse.md (*avx2_pmaddwd, *sse2_pmaddwd): Use
15457         v instead of x in vex or maybe_vex alternatives, use
15458         maybe_evex instead of vex in prefix.
15460         * config/i386/sse.md (*vec_extractv4sf_0, *sse4_1_extractps,
15461         *vec_extractv4sf_mem, vec_extract_lo_v16hi, vec_extract_hi_v16hi,
15462         vec_extract_lo_v32qi, vec_extract_hi_v32qi): Use v instead of x
15463         in vex or maybe_vex alternatives, use maybe_evex instead of vex
15464         in prefix.
15466         * config/i386/sse.md (*vec_concatv2sf_sse4_1, *vec_concatv4sf): Use
15467         v instead of x in vex or maybe_vex alternatives, use
15468         maybe_evex instead of vex in prefix.
15470         * config/i386/sse.md (sse_shufps_<mode>, sse_storehps, sse_loadhps,
15471         sse_storelps, sse_movss, avx2_vec_dup<mode>, avx2_vec_dupv8sf_1,
15472         sse2_shufpd_<mode>, sse2_storehpd, sse2_storelpd, sse2_loadhpd,
15473         sse2_loadlpd, sse2_movsd): Use v instead of x in vex or maybe_vex
15474         alternatives, use maybe_evex instead of vex in prefix.
15476         * config/i386/sse.md (vec_interleave_lowv4sf,
15477         *vec_interleave_highv2df, *vec_interleave_lowv2df): Use
15478         v instead of x in vex or maybe_vex alternatives, use
15479         maybe_evex instead of vex in prefix.
15481         * config/i386/sse.md (sse_movhlps, sse_movlhps): Use
15482         v instead of x in vex or maybe_vex alternatives, use
15483         maybe_evex instead of vex in prefix.
15485         * config/i386/sse.md (*avx_cvtpd2dq256_2, *avx_cvtps2pd256_2): Use
15486         v constraint instead of x.
15488 2016-05-06  Nathan Sidwell  <nathan@codesourcery.com>
15490         * gimple.c (gimple_call_same_target_p): Unique functions are eq.
15491         * tree-ssa-tail-merge.c (same_succ::equal): Check pointer eq
15492         equality first.
15494 2016-05-06  Richard Biener  <rguenther@suse.de>
15496         PR tree-optimization/70948
15497         * tree-ssa-structalias.c (find_func_aliases_for_builtin_call):
15498         Properly clobber all fields of va_list for __builtin_va_start.
15500 2016-05-06  Yuri Rumyantsev  <ysrumyan@gmail.com>
15502         PR debug/70935
15503         * tree-ssa-loop-unswitch.c (find_loop_guard): Reject guard edge with
15504         loop latch destination.
15506 2016-05-06  Martin Liska  <mliska@suse.cz>
15508         * tree-ssa-uninit.c: Apply manual changes
15509         to the GNU coding style.
15510         (prune_uninit_phi_opnds): Rename from
15511         prune_uninit_phi_opnds_in_unrealizable_paths.
15513 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15515         * config/sh/sh.opt (madjust-unroll, minvalid-symbols, msoft-atomic,
15516         mspace): Remove deprecated options.
15517         * doc/invoke.texi (SH options): Remove -mspace.
15519 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15521         * config/sh/sh.md (ic_invalidate_line_sh4a): Fix insn length.
15523 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15525         * config/sh/sh.md (*cmpeqsi_t): Remove combine insn pattern and similar
15526         corresponding combine split pattern.
15528 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15530         PR target/58219
15531         * config/sh/predicates.md (long_displacement_mem_operand): New.
15532         * config/sh/sh.md (movsi_i): Allow for SH2A, disallow for any FPU.
15533         Add movi20, movi20s alternatives.  Adjust length attribute for
15534         alternatives.
15535         (movsi_ie): Allow for any FPU.  Adjust length attribute for
15536         alternatives.
15537         (movsi_i_lowpart): Add movi20, movi20s alternatives.  Adjust length
15538         attribute for alternatives.
15539         (*mov<mode>): Use long_displacement_mem_operand for length attribute.
15540         (*movdi_i, movdf_k, movdf_i4, movsf_i, movsf_ie, movsf_ie_ra): Adjust
15541         length attribute for alternatives.
15543 2016-05-06  Richard Biener  <rguenther@suse.de>
15545         PR tree-optimization/70960
15546         * tree-if-conv.c (ifcvt_walk_pattern_tree): Handle non-SSA ops.
15548 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15550         PR target/52933
15551         * config/sh/sh.md (*cmp_div0s_7, *cmp_div0s_8): Add div0s variants.
15552         * config/sh/sh.c (sh_rtx_costs): Add another div0s case.
15554 2016-05-06  Marek Polacek  <polacek@redhat.com>
15556         PR sanitizer/70875
15557         * ubsan.c (get_ubsan_type_info_for_type): Remove assert.
15559 2016-05-06  Oleg Endo  <olegendo@gcc.gnu.org>
15561         PR target/54089
15562         * config/sh/sh.md (*rotcr): Add another variant.
15564 2016-05-06  Richard Biener  <rguenther@suse.de>
15566         PR middle-end/70931
15567         * dwarf2out.c (native_encode_initializer): Skip zero-sized fields.
15569 2016-05-06  Richard Biener  <rguenther@suse.de>
15571         PR middle-end/70941
15572         * fold-const.c (split_tree): Always convert to the original type
15573         before negating.
15575 2016-05-06  Richard Biener  <rguenther@suse.de>
15577         * fwprop.c (fwprop): Remove duplicate cleanup_cfg call.
15578         (fwprop_addr): Likewise.
15580 2016-05-06  Uros Bizjak  <ubizjak@gmail.com>
15582         PR target/70873
15583         * config/i386/i386-protos.h (ix86_standard_x87sse_constant_load_p):
15584         New prototype.
15585         * config/i386/i386.c (ix86_standard_x87sse_constant_load_p): New.
15586         * config/i386/i386.md (push mem splitter): Use find_constant_src in
15587         the splitter condition.
15588         (FP load splitter): Use ix86_standard_x87sse_constant_load_p in
15589         the splitter condition.
15590         (FP float_extend load splitter): Ditto.
15592 2016-05-05  Uros Bizjak  <ubizjak@gmail.com>
15594         * config/i386/i386.md (peehole2 patterns): Change true_regnum
15595         to REGNO in all peephole2 patterns.
15596         (post-reload splitters): Change true_regnum to REGNO in
15597         post-reload splitters.
15598         (zero_extend splitters): Use general_reg_operand and
15599         nonimmediate_gr_operand predicates.
15601 2016-05-05  Jakub Jelinek  <jakub@redhat.com>
15603         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>): Use
15604         v constraint instead of x.
15606 2016-05-05  Alan Modra  <amodra@gmail.com>
15608         PR target/68662
15609         * config/rs6000/sysv4.h (SUBTARGET_OVERRIDE_OPTIONS): Don't
15610         set OPTION_MASK_RELOCATABLE when flag_pic == 2.  Set
15611         TARGET_NO_FP_IN_TOC for -mrelocatable.
15612         (MINIMAL_TOC_SECTION_ASM_OP): Remove redundant
15613         TARGET_RELOCATABLE test.
15614         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15615         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15616         * config/rs6000/linux64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15617         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15618         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15619         * config/rs6000/freebsd64.h (MINIMAL_TOC_SECTION_ASM_OP): Likewise.
15620         (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
15621         (ASM_PREFERRED_EH_DATA_FORMAT): Likewise.
15622         * config/rs6000/predicates.md (easy_fp_constant): Likewise.
15623         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15624         Likewise.
15625         (rs6000_assemble_integer): Update TARGET_RELOCATABLE test.
15626         (rs6000_stack_info): Likewise.
15627         (rs6000_elf_asm_out_constructor): Likewise.
15628         (rs6000_elf_asm_out_destructor): Likewise.
15629         (rs6000_elf_declare_function_name): Likewise.
15630         * config/rs6000/rs6000.md (load_toc_aix_di): Likewise.
15631         * config/rs6000/rs6000.h (MASK_RELOCATABLE, MASK_MINIMAL_TOC):
15632         Don't define.
15634 2016-05-05  Alan Modra  <amodra@gmail.com>
15636         * config/rs6000/rs6000.c (rs6000_frame_related): Rewrite.
15638 2016-05-05  Alan Modra  <amodra@gmail.com>
15640         * config/rs6000/rs6000.c (rs6000_savres_strategy): Don't use
15641         out-of-line gpr restore for one or two regs if that would add
15642         a save of lr.
15644 2016-05-04  Uros Bizjak  <ubizjak@gmail.com>
15646         PR target/70873
15647         * config/i386/i386.md
15648         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_extend sf->df peephole2):
15649         Change to post-epilogue_completed late splitter.  Use sse_reg_operand
15650         as operand 0 predicate.
15651         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float_truncate df->sf peephole2):
15652         Ditto.
15653         (TARGET_SSE_PARTIAL_REG_DEPENDENCY float {si,di}->{sf,df} peephole2):
15654         Ditto.  Emit the pattern using RTX.
15656         (TARGET_USE_VECTOR_FP_CONVERTS float_extend sf->df splitter):
15657         Use sse_reg_opreand as operand 0 predicate.  Do not use true_regnum in
15658         the post-reload splitter.  Use lowpart_subreg instead of gen_rtx_REG.
15659         (TARGET_USE_VECTOR_FP_CONVERTS float_truncate df->sf splitter):
15660         Ditto.
15661         (TARGET_USE_VECTOR_CONVERTS float si->{sf,df} splitter): Use
15662         sse_reg_operand as operand 0 predicate.
15664         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_extend sf->df peephole2):
15665         Use sse_reg_opreand as operand 0 predicate.  Use lowpart_subreg
15666         instead of gen_rtx_REG.
15667         (TARGET_SPLIT_MEM_OPND_FOR_FP_CONVERTS float_truncate sf->df peephole2):
15668         Ditto.
15670 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15672         * function.c (emit_use_return_register_into_block): Delete.
15673         (gen_return_pattern): Delete.
15674         (emit_return_into_block): Delete.
15675         (active_insn_between): Delete.
15676         (convert_jumps_to_returns): Delete.
15677         (emit_return_for_exit): Delete.
15678         (thread_prologue_and_epilogue_insns): Delete all code dealing with
15679         simple_return for shrink-wrapped blocks.
15680         * shrink-wrap.c (try_shrink_wrapping): Insert simple_return at the
15681         end of blocks that need one.
15682         (get_unconverted_simple_return): Delete.
15683         (convert_to_simple_return): Delete.
15684         * shrink-wrap.c (get_unconverted_simple_return): Delete declaration.
15685         (convert_to_simple_return): Ditto.
15687 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15689         * cfgcleanup.c (bb_is_just_return): New function.
15690         (try_optimize_cfg): Simplify jumps to return, branches to return,
15691         and branches around return.
15693 2016-05-04  Segher Boessenkool  <segher@kernel.crashing.org>
15695         * cfgcleanup.c (try_simplify_condjump): Don't try to simplify a
15696         branch to a return.
15698 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
15700         PR c++/70906
15701         PR c++/70933
15702         * tree-core.h (enum operand_equal_flag): Add OEP_HASH_CHECK.
15703         * tree.c (inchash::add_expr): If !IS_EXPR_CODE_CLASS (tclass),
15704         assert flags & OEP_HASH_CHECK, instead of asserting it
15705         never happens.  Handle TARGET_EXPR.
15706         * fold-const.c (operand_equal_p): For hash verification,
15707         or in OEP_HASH_CHECK into flags.
15709 2016-05-04  Eric Botcazou  <ebotcazou@adacore.com>
15711         * tree-ssa-coalesce.c (gimple_can_coalesce_p): Fix reference in head
15712         comment.
15713         (compute_samebase_partition_bases): Fix typo.
15715 2016-05-04  Jakub Jelinek  <jakub@redhat.com>
15717         * config/i386/sse.md (vec_interleave_highv8sf,
15718         vec_interleave_lowv8sf, vec_interleave_highv4df,
15719         vec_interleave_lowv4df): Remove constraints from expanders.
15721         * config/i386/sse.md (sse2_movq128): Use v constraint instead of x.
15723 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
15725         * tree-inline.c (expand_call_inline): Fix path dealing with
15726         making lhs of call statement undefined.
15728 2016-05-04  Jan Hubicka  <hubicka@ucw.cz>
15730         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases):
15731         Check availability on NODE, too.
15732         * cgraph.h (symtab_node::call_for_symbol_and_aliases): Likewise.
15733         (cgraph_node::call_for_symbol_and_aliases): Likewise.
15734         (varpool_node::call_for_symbol_and_aliase): Likewise.
15735         * ipa-pure-const.c (add_new_function): Analyze all bodies.
15736         (propagate_pure_const): Propagate across interposable functions, too.
15737         (skip_function_for_local_pure_const): Do not skip interposable bodies
15738         with aliases.
15739         (pass_local_pure_const::execute): Update.
15741 2016-05-04  Marek Polacek  <polacek@redhat.com>
15743         * doc/invoke.texi: Document -Wdangling-else.
15745 2016-05-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
15747         * config.gcc: Error out when conflicting multilib is detected.  Do not
15748         loop over multilibs since no combination is legal.
15750 2016-05-04  Alan Modra  <amodra@gmail.com>
15752         * config/rs6000/rs6000.h (PIC_OFFSET_TABLE_REGNUM): Correct.
15753         * config/rs6000/sysv4.h (TARGET_TOC): Simplify.
15754         * config/rs6000/rs6000.c (rs6000_elf_output_toc_section_asm_op):
15755         Align .toc.
15757 2016-05-04  Matthew Fortune  <matthew.fortune@imgtec.com>
15759         * config/mips/mips-cpus.def (p5600): Avoid IMADD by default.
15760         Clean up p5600 comments.
15762 2016-05-04  Richard Biener  <rguenther@suse.de>
15764         * match.pd: Add BIT_FIELD_REF canonicalizations and vector
15765         constructor simplifications.
15766         * fold-const.c (fold_ternary_loc): Remove duplicate functionality here.
15768 2016-05-04  Oleg Endo  <olegendo@gcc.gnu.org>
15770         * config/sh/predicates (post_inc_mem, pre_dec_mem): New predicates.
15771         * config/sh/sh-protos.h (sh_find_set_of_reg): Return null result if
15772         result.set_rtx is null instead of aborting.
15773         * config/sh/sh.h (USE_LOAD_POST_INCREMENT, USE_STORE_PRE_DECREMENT):
15774         Always enable.
15775         (USE_LOAD_PRE_DECREMENT, USE_STORE_POST_INCREMENT): Enable for SH2A.
15776         * config/sh/sh.md (*extend<mode>si2_predec, *mov<mode>_load_predec,
15777         *mov<mode>_store_postinc): New patterns.
15779 2016-05-04  Marc Glisse  <marc.glisse@inria.fr>
15781         * match.pd ((A | B) & (A | C)): Generalize to BIT_XOR_EXPR.  Mark
15782         as commutative.  Check both conversions are NOP.
15783         ((A & B) OP (C & B)): Remove.
15785 2016-05-04  Alan Modra  <amodra@gmail.com>
15787         * combine.c (simplify_set): Correct WORD_REGISTER_OPERATIONS test.
15789 2016-05-04  Alan Modra  <amodra@gmail.com>
15791         PR target/70866
15792         * config/rs6000/rs6000.c (rs6000_stack_info): Don't set cr_save_p
15793         when cr2,3,4 are all fixed regs.
15795 2016-05-04  Bernd Schmidt  <bschmidt@redhat.com>
15797         PR rtl-optimization/57193
15798         * opts.c (default_options_table): Revert OPT_frename_registers change.
15799         * doc/invoke.texi (-frename-registers, -O2): Likewise.
15801 2016-05-03  Martin Sebor  <msebor@redhat.com>
15803         PR c++/66561
15804         * builtins.c (fold_builtin_FILE): New function.
15805         (fold_builtin_FUNCTION, fold_builtin_LINE): New functions.
15806         (fold_builtin_0): Call them.
15807         * gimplify.c (gimplify_call_expr): Remove the handling of
15808         BUILT_IN_FILE, BUILT_IN_FUNCTION, and BUILT_IN_LINE.
15810         PR c++/66561
15811         * doc/extend.texi (Other Builtins): Update __builtin_FILE,
15812         __builtin_FUNCTION, and __builtin_LINE to reflect they yield
15813         constants.
15815         PR c++/66639
15816         * doc/extend.texi (Function Names as Strings): Update __func__,
15817         __FUNCTION__, __PRETTY_FUNCTION__ to reflect they evaluate to
15818         constants.
15820 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15821             Richard Biener  <rguenther@suse.de>
15823         PR tree-optimization/70916
15824         * tree-if-conv.c: Include cfganal.h.
15825         (pass_if_conversion::execute): Call connect_infinite_loops_to_exit
15826         and remove_fake_exit_edges around the optimization pass.
15828 2016-05-03  Jan Hubicka  <hubicka@ucw.cz>
15830         * cgraph.c (symbol_table::create_edge): Set inline_failed.
15831         (cgraph_edge::make_direct): Likewise.
15832         (cgraph_edge::dump_edge_flags): Dump call_stmt_cannot_inline_p.
15833         * cgraphclones.c (duplicate_thunk_for_node): Set inline_failed.
15834         * cif-code.def (CIF_LTO_MISMATCHED_DECLARATIONS): New code
15835         (CIF_THUNK): New code.
15836         * ipa-inline-analysis.c (initialize_inline_failed): Preserve
15837         CIF_FINAL_ERROR codes; do not deal with call_stmt_cannot_inline_p.
15838         (compute_inline_parameters): Set inline_failed for thunks.
15839         (inline_analyze_function): Cleanup.
15840         * ipa-inline.c (can_inline_edge_p): Do not deal with
15841         call_stmt_cannot_inline_p.
15842         (can_early_inline_edge_p): Likewise.
15843         (early_inliner): Initialize inline_failed.
15844         * lto-cgraph.c (lto_output_edge): Sanity check inline_failed.
15846 2016-05-03  Uros Bizjak  <ubizjak@gmail.com>
15848         * config/i386/predicates.md (x87nonimm_ssenomem_operand): Rename
15849         from nonimm_ssenomem_operand.
15850         (nonimm_ssenomem_operand): New predicate.
15851         * config/i386/i386.md (extendsfdf2): Use nonimm_ssenomem_operand
15852         as operand 0 predicate.
15853         (*extendsfdf2): Merge from *extendsfdf2_mixed and *extendsfdf2_i387.
15854         Disable unsupported alternatives using "enabled" attribute.
15855         Use register_ssemem_operand as operand 0 predicate.
15856         (*fop_<mode>_1): Use x87nonimm_ssenomem_operand as operand 1 predicate.
15858 2016-05-03  Marek Polacek  <polacek@redhat.com>
15860         PR c/70859
15861         * input.c (expansion_point_location): New function.
15862         * input.h (expansion_point_location): Declare.
15864 2016-05-03  Pierre-Marie de Rodat  <derodat@adacore.com>
15866         * dwarf2out.c (resolve_args_picking_1): Replace the frame_offset
15867         occurence with frame_offset_ ones.
15869 2016-05-03  Alan Modra  <amodra@gmail.com>
15871         PR rtl-optimization/70890
15872         * ira.c (combine_and_move_insns): When moving def_insn, remove
15873         equivs on use_insn.
15875 2016-05-03  Dominik Vogt  <vogt@linux.vnet.ibm.com>
15877         * config/s390/s390.md ("*r<noxa>sbg_<mode>_sll")
15878         ("*r<noxa>sbg_<mode>_srl"): New define_insns.
15879         ("*r<noxa>sbg_<mode>_srl_bitmask"): Rename by adding "_bitmask".
15880         ("*r<noxa>sbg_<mode>_sll_bitmask"): Likewise.
15882 2016-05-03  Alan Modra  <amodra@gmail.com>
15884         * config/rs6000/rs6000.c (rs6000_savres_strategy): Correct condition
15885         for SAVE_MULTIPLE/STORE_MULTIPLE.
15887 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15889         * config/i386/i386.md (*truncdfsf_mixed, *truncdfsf_i387,
15890         *truncxfsf2_mixed, *truncxfdf2_mixed): Use v constraint instead of x.
15892 2016-05-03  Richard Biener  <rguenther@suse.de>
15894         * gimplify.h (get_initialized_tmp_var): Add allow_ssa parameter
15895         default true.
15896         (gimplify_arg): Likewise.
15897         * gimplify.c (gimplify_expr): Add overload with allow_ssa parameter,
15898         re-writing the result to a decl if required.
15899         (internal_get_tmp_var): Add allow_ssa parameter
15900         and override into_ssa with it.
15901         (get_formal_tmp_var): Adjust.
15902         (get_initialized_tmp_var): Add allow_ssa parameter.
15903         (gimplify_arg): Add allow_ssa parameter and avoid generating
15904         SSA names for the result false.
15905         (gimplify_call_expr): If the call may return twice do not
15906         gimplify parameters into SSA.
15907         (prepare_gimple_addressable): Do not allow an SSA name as temporary.
15908         (gimplify_modify_expr): Adjust assert.  For noreturn calls
15909         with a SSA name LHS adjust its def.
15910         (gimplify_save_expr): Do not allow an SSA name as save-expr result.
15911         (gimplify_one_sizepos): Do not allow an SSA name as a sizepos.
15912         (gimplify_body): Init GIMPLE SSA data structures and gimplify into-SSA.
15913         (gimplify_scan_omp_clauses): Make sure OMP_CLAUSE_SIZE is not
15914         an SSA name.  Likewise for OMP_CLAUSE_REDUCTION operands.
15915         (gimplify_omp_for): Likewise for OMP_CLAUSE_DECL.  Likewise
15916         for OMP_FOR_COND,  OMP_FOR_INCR and OMP_CLAUSE_LINEAR_STEP.
15917         (optimize_target_teams): Do not allow SSA names for clause operands.
15918         (gimplify_expr): Likewise for where we mark the result addressable.
15919         * passes.def (pass_init_datastructures): Remove.
15920         * tree-into-ssa.c (mark_def_sites): Ignore existing SSA names.
15921         (rewrite_stmt): Likewise.
15922         * tree-inline.c (initialize_cfun): Properly transfer SSA state.
15923         (replace_locals_op): Replace SSA names.
15924         (copy_gimple_seq_and_replace_locals): Init src_cfun.
15925         * gimple-low.c (lower_builtin_setjmp): Deal with SSA.
15926         * cgraph.c (release_function_body): Free CFG annotations only
15927         when we have a CFG.  Simplify.
15928         * gimple-fold.c (gimplify_and_update_call_from_tree): Use
15929         force_gimple_operand instead of get_initialized_tmp_var.
15930         * tree-pass.h (make_pass_init_datastructures): Remove.
15931         * tree-ssa.c (execute_init_datastructures): Remove.
15932         (pass_data_init_datastructures): Likewise.
15933         (class pass_init_datastructures): Likewise.
15934         (make_pass_init_datastructures): Likewise.
15935         * omp-low.c (create_omp_child_function): Init SSA data structures.
15936         (grid_expand_target_grid_body): Likewise.
15937         * tree-cfg.c (move_block_to_fn): Double-check the DEF is an SSA
15938         name before adding it to names_to_release.
15939         (remove_bb): Always release SSA defs.
15940         * tree-ssa-ccp.c (get_default_value): Check SSA_NAME_VAR
15941         before dereferencing it.
15942         * cgraphunit.c (init_lowered_empty_function): Always
15943         int SSA data structures.
15944         * tree-ssanames.c (release_defs): Remove assert that we are in
15945         SSA form.
15946         * trans-mem.c (diagnose_tm_1): Handle SSA name function.
15948 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15949             Uros Bizjak  <ubizjak@gmail.com>
15951         PR rtl-optimization/70467
15952         * config/i386/predicates.md (x86_64_hilo_int_operand,
15953         x86_64_hilo_general_operand): New predicates.
15954         * config/i386/constraints.md (Wd): New constraint.
15955         * config/i386/i386.md (mode attr di): Use Wd instead of e.
15956         (general_hilo_operand): New mode attr.
15957         (add<mode>3, sub<mode>3): Use <general_hilo_operand>
15958         instead of <general_operand>.
15959         (*add<dwi>3_doubleword, *sub<dwi>3_doubleword): Use
15960         x86_64_hilo_general_operand instead of <general_operand>.
15962 2016-05-03  Jakub Jelinek  <jakub@redhat.com>
15964         PR tree-optimization/70916
15965         * tree-if-conv.c (constant_or_ssa_name): Removed.
15966         (fold_build_cond_expr): Use is_gimple_val instead of
15967         constant_or_ssa_name.
15969         PR tree-optimization/70916
15970         * tree-vect-patterns.c (vect_recog_mask_conversion_pattern): Give up
15971         if COND_EXPR rhs1 is neither SSA_NAME nor COMPARISON_CLASS_P.
15973         PR target/49244
15974         * tree-ssa-ccp.c: Include stor-layout.h and optabs-query.h.
15975         (optimize_atomic_bit_test_and): New function.
15976         (pass_fold_builtins::execute): Use it.
15977         * optabs.def (atomic_bit_test_and_set_optab,
15978         atomic_bit_test_and_complement_optab,
15979         atomic_bit_test_and_reset_optab): New optabs.
15980         * internal-fn.def (ATOMIC_BIT_TEST_AND_SET,
15981         ATOMIC_BIT_TEST_AND_COMPLEMENT, ATOMIC_BIT_TEST_AND_RESET): New ifns.
15982         * builtins.h (expand_ifn_atomic_bit_test_and): New prototype.
15983         * builtins.c (expand_ifn_atomic_bit_test_and): New function.
15984         * internal-fn.c (expand_ATOMIC_BIT_TEST_AND_SET,
15985         expand_ATOMIC_BIT_TEST_AND_COMPLEMENT,
15986         expand_ATOMIC_BIT_TEST_AND_RESET): New functions.
15987         * doc/md.texi (atomic_bit_test_and_set@var{mode},
15988         atomic_bit_test_and_complement@var{mode},
15989         atomic_bit_test_and_reset@var{mode}): Document.
15990         * config/i386/sync.md (atomic_bit_test_and_set<mode>,
15991         atomic_bit_test_and_complement<mode>,
15992         atomic_bit_test_and_reset<mode>): New expanders.
15993         (atomic_bit_test_and_set<mode>_1,
15994         atomic_bit_test_and_complement<mode>_1,
15995         atomic_bit_test_and_reset<mode>_1): New insns.
15997 2016-05-03  Richard Sandiford  <richard.sandiford@arm.com>
15999         PR rtl-optimization/70687
16000         * combine.c (change_zero_ext): Check for scalar modes.  Use wide_int
16001         instead of unsigned HOST_WIDE_INT.
16003 2016-05-03  Bernd Schmidt  <bschmidt@redhat.com>
16005         PR rtl-optimization/44281
16006         * hard-reg-set.h (struct target_hard_regs): New field
16007         x_fixed_nonglobal_reg_set.
16008         (fixed_nonglobal_reg_set): New macro.
16009         * reginfo.c (init_reg_sets_1): Initialize it.
16010         * ira.c (setup_alloc_regs): Use fixed_nonglobal_reg_set instead
16011         of fixed_reg_set.
16012         * df-scan.c (df_insn_refs_collect): Asms may reference global regs.
16014 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16016         PR tree-optimization/56541
16017         * doc/invoke.texi (@item max-tree-if-conversion-phi-args): New item.
16018         * params.def (PARAM_MAX_TREE_IF_CONVERSION_PHI_ARGS): new param.
16019         * tree-if-conv.c (MAX_PHI_ARG_NUM): new macro.
16020         (any_complicated_phi): new static variable.
16021         (aggressive_if_conv): delete.
16022         (if_convertible_phi_p): support phis with more than two arguments.
16023         (if_convertible_bb_p): remvoe check on aggressive_if_conv and
16024         critical pred edges.
16025         (ifcvt_split_critical_edges): support phis with more than two
16026         arguments by checking new parameter.  only split critical edges
16027         if needed.
16028         (tree_if_conversion): handle simd pragma marked loop using new
16029         local variable aggressive_if_conv.  check any_complicated_phi.
16031 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16033         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Check depends_on
16034         before using it.
16036 2016-05-03  Bin Cheng  <bin.cheng@arm.com>
16038         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Don't clobber
16039         cbase.
16041 2016-05-03  Oleg Endo  <olegendo@gcc.gnu.org>
16043         * config/sh/sh.md (udivsi3, divsi3, mulsi3): Simplify.
16044         (mulhisi3, umulhisi3, (smulsi3_highpart, umulsi3_highpart): Convert to
16045         define_insn_and_split.
16046         (mulsi3_i): New define_insn_and_split.
16047         (mulsi3_call): Convert to define_insn.
16048         (mulsidi3, mulsidi3_compact, umulsidi3, umulsidi3_compact):
16049         Remove constraints.
16051 2016-05-02  Michael Meissner  <meissner@linux.vnet.ibm.com>
16053         * machmode.h (mode_complex): Add support to give the complex mode
16054         for a given mode.
16055         (GET_MODE_COMPLEX_MODE): Likewise.
16056         * stor-layout.c (layout_type): For COMPLEX_TYPE, use the mode
16057         stored by build_complex_type and gfc_build_complex_type instead of
16058         trying to figure out the appropriate mode based on the size. Raise
16059         an assertion error, if the type was not set.
16060         * genmodes.c (struct mode_data): Add field for the complex type of
16061         the given type.
16062         (blank_mode): Likewise.
16063         (make_complex_modes): Remember the complex mode created in the
16064         base type.
16065         (emit_mode_complex): Write out the mode_complex array to map a
16066         type mode to the complex version.
16067         (emit_insn_modes_c): Likewise.
16068         * tree.c (build_complex_type): Set the complex type to use before
16069         calling layout_type.
16070         * config/rs6000/rs6000.c (rs6000_hard_regno_nregs_internal): Add
16071         support for __float128 complex datatypes.
16072         (rs6000_hard_regno_mode_ok): Likewise.
16073         (rs6000_setup_reg_addr_masks): Likewise.
16074         (rs6000_complex_function_value): Likewise.
16075         * config/rs6000/rs6000.h (FLOAT128_IEEE_P): Likewise.
16076         __float128 and __ibm128 complex.
16077         (FLOAT128_IBM_P): Likewise.
16078         (ALTIVEC_ARG_MAX_RETURN): Likewise.
16079         * doc/extend.texi (Additional Floating Types): Document that
16080         -mfloat128 must be used to enable __float128.  Document complex
16081         __float128 and __ibm128 support.
16083 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16085         PR target/49244
16086         * gimple.c (gimple_builtin_call_types_compatible_p): Allow
16087         char/short arguments promoted to int because of promote_prototypes.
16089 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16091         * config/i386/predicates.md (register_ssemem_operand): New predicate.
16092         * config/i386/i386.md (*cmpi<FPCMP:unord><MODEF:mode>): Merge from
16093         *cmpi<FPCMP:unord><MODEF:mode>_mixed and
16094         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.  Disable unsupported
16095         alternatives using "enabled" attribute.  Use register_ssemem_operand
16096         as operand 1 predicate.
16097         (*cmpi<unord>xf_i387): Split XFmode pattern from
16098         *cmpi<FPCMP:unord><X87MODEF:mode>_i387.
16099         (*absneg<mode>2): Merge from *absneg<mode>2_mixed and
16100         *absneg<mode>2_i387.  Disable unsupported alternatives using
16101         "enabled" attribute.
16102         (*absnegxf2_i387): Split XFmode pattern from *absneg<mode>2_i387.
16104 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16106         * omp-low.c (lower_oacc_head_tail): Assert there is at least one
16107         marker.
16108         (oacc_loop_process): Check mask for loop termination.
16110 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16112         * cif-code.def (CIF_THUNK): Add.
16113         * ipa-inline-analsysis.c (evaluate_conditions_for_known_args): Revert
16114         accidental change.
16116 2016-05-02  Jan Hubicka  <hubicka@ucw.cz>
16118         * ipa-inline-analysis.c (reset_inline_summary): Clear fp_expressions
16119         (dump_inline_summary): Dump it.
16120         (fp_expression_p): New predicate.
16121         (estimate_function_body_sizes): Use it.
16122         (inline_merge_summary): Merge fp_expressions.
16123         (inline_read_section): Read fp_expressions.
16124         (inline_write_summary): Write fp_expressions.
16125         * ipa-inline.c (can_inline_edge_p): Permit inlining across fp math
16126         codegen boundary if either caller or callee is !fp_expressions.
16127         * ipa-inline.h (inline_summary): Add fp_expressions.
16128         * ipa-inline-transform.c (inline_call): When inlining !fp_expressions
16129         to fp_expressions be sure the fp generation flags are updated.
16131 2016-05-02  Jakub Jelinek  <jakub@redhat.com>
16133         PR rtl-optimization/70467
16134         * cse.c (cse_insn): Handle no-op MEM moves after folding.
16136         PR rtl-optimization/70467
16137         * ipa-pure-const.c (check_call): Handle internal calls even in
16138         ipa mode like in local mode.
16140 2016-05-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
16142         * doc/install.texi: Document supported in-tree gmp/mpfr/mpc versions.
16144 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16146         * match.pd (X u< X, X u> X): New transformations.
16148 2016-05-02  Marc Glisse  <marc.glisse@inria.fr>
16150         * flag-types.h (enum warn_strict_overflow_code): Move ...
16151         * coretypes.h: ... here.
16152         * fold-const.h (fold_overflow_warning): Declare.
16153         * fold-const.c (fold_overflow_warning): Make non-static.
16154         (fold_comparison): Move the transformation of X +- C1 CMP C2
16155         into X CMP C2 -+ C1 ...
16156         * match.pd: ... here.
16157         * gimple-fold.c (fold_stmt_1): Protect with
16158         fold_defer_overflow_warnings.
16160 2016-05-02  Nathan Sidwell  <nathan@codesourcery.com>
16162         * omp-low.c (struct oacc_loop): Add 'inner' field.
16163         (new_oacc_loop_raw): Initialize it to zero.
16164         (oacc_loop_fixed_partitions): Initialize it.
16165         (oacc_loop_auto_partitions): Partition outermost loop to outermost
16166         available partitioning.
16168 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16170         * config/arc/arc.md (mulsidi3): Change operand 0 predicate to
16171         register_operand.
16172         (umulsidi3): Likewise.
16173         (indirect_jump): Fix jump instruction assembly patterns.
16175 2016-05-02  Thomas Schwinge  <thomas@codesourcery.com>
16177         PR target/70860
16178         * config/nvptx/nvptx.c (nvptx_libcall_value): Handle NULL cfun.
16179         (nvptx_function_value): Assert non-NULL cfun.
16181 2016-05-02  Eric Botcazou  <ebotcazou@adacore.com>
16183         PR rtl-optimization/70886
16184         * sched-deps.c (estimate_dep_weak): Canonicalize cselib values.
16186         * cselib.h (rtx_equal_for_cselib_1): Declare.
16187         (rtx_equal_for_cselib_p: New inline function.
16188         * cselib.c (rtx_equal_for_cselib_p): Delete.
16189         (rtx_equal_for_cselib_1): Make public.
16191 2016-05-02  Uros Bizjak  <ubizjak@gmail.com>
16193         * config/i386/predicates.md (nonimm_ssenomem_operand): New predicate.
16194         (register_mixssei387nonimm_operand): Remove predicate.
16195         * config/i386/i386.md (*fop_<mode>_comm): Merge from
16196         *fop_<mode>_comm_mixed and *fop_<mode>_comm_i387.  Disable unsupported
16197         alternatives using "enabled" attribute.  Also check X87_ENABLE_ARITH
16198         for TARGET_MIX_SSE_I387 alternatives.
16199         (*fop_<mode>_1): Merge from *fop_<mode>_1_mixed and *fop_<mode>_1_i387.
16200         Disable unsupported alternatives using "enabled" attribute.  Use
16201         nonimm_ssenomem_operand as operand 1 predicate.  Also check
16202         X87_ENABLE_ARITH for TARGET_MIX_SSE_I387 alternatives.
16204 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16206         * tree.c (cst_and_fits_in_hwi): Simplify.
16208 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16210         * tree.h (wi::to_wide): New function.
16211         * expr.c (expand_expr_real_1): Use wi::to_wide.
16212         * fold-const.c (int_const_binop_1): Likewise.
16213         (extract_muldiv_1): Likewise.
16215 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16217         * wide-int.h: Update offset_int and widest_int documentation.
16218         (WI_SIGNED_SHIFT_RESULT): New macro.
16219         (wi::binary_shift): Define signed_shift_result_type for
16220         shifts on offset_int- and widest_int-like types.
16221         (generic_wide_int): Support <<= and >>= if << and >> are supported.
16222         * tree.h (int_bit_position): Use shift operators instead of wi::
16223          shifts.
16224         * alias.c (adjust_offset_for_component_ref): Likewise.
16225         * expr.c (get_inner_reference): Likewise.
16226         * fold-const.c (fold_comparison): Likewise.
16227         * gimple-fold.c (fold_nonarray_ctor_reference): Likewise.
16228         * gimple-ssa-strength-reduction.c (restructure_reference): Likewise.
16229         * tree-dfa.c (get_ref_base_and_extent): Likewise.
16230         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Likewise.
16231         (stmt_kills_ref_p): Likewise.
16232         * tree-ssa-ccp.c (bit_value_binop_1): Likewise.
16233         * tree-ssa-math-opts.c (find_bswap_or_nop_load): Likewise.
16234         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Likewise.
16235         (ao_ref_init_from_vn_reference): Likewise.
16237 2016-05-02  Richard Sandiford  <richard.sandiford@arm.com>
16239         * wide-int.h: Update offset_int and widest_int documentation.
16240         (WI_SIGNED_BINARY_PREDICATE_RESULT): New macro.
16241         (wi::binary_traits): Allow ordered comparisons between offset_int and
16242         offset_int, between widest_int and widest_int, and between either
16243         of these types and basic C types.
16244         (operator <, <=, >, >=): Define for the same combinations.
16245         * tree.h (tree_int_cst_lt): Use comparison operators instead
16246         of wi:: comparisons.
16247         (tree_int_cst_le): Likewise.
16248         * gimple-fold.c (fold_array_ctor_reference): Likewise.
16249         (fold_nonarray_ctor_reference): Likewise.
16250         * gimple-ssa-strength-reduction.c (record_increment): Likewise.
16251         * tree-affine.c (aff_comb_cannot_overlap_p): Likewise.
16252         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Likewise.
16253         * tree-sra.c (completely_scalarize): Likewise.
16254         * tree-ssa-alias.c (stmt_kills_ref_p): Likewise.
16255         * tree-ssa-reassoc.c (extract_bit_test_mask): Likewise.
16256         * tree-vrp.c (extract_range_from_binary_expr_1): Likewise.
16257         (check_for_binary_op_overflow): Likewise.
16258         (search_for_addr_array): Likewise.
16259         * ubsan.c (ubsan_expand_objsize_ifn): Likewise.
16261 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16263         * config/arc/arc.c (arc_preferred_simd_mode): Remove enum keyword.
16264         (arc_save_restore): Likewise.
16265         (arc_dwarf_register_span): Likewise.
16266         (arc_output_pic_addr_const): Initialize suffix variable.
16268 2016-05-02  Martin Liska  <mliska@suse.cz>
16270         * symbol-summary.h (function_summary::function_summary):
16271         Remove checking assert for all cgraph nodes.
16272         (function_summary::get): Check summary_uid.
16273         (symtab_insertion): Check summary_uid.
16275 2016-05-02  Claudiu Zissulescu  <claziss@synopsys.com>
16277         * config/arc/arc-protos.h (compact_memory_operand_p): Declare.
16278         * config/arc/arc.c (arc_output_commutative_cond_exec): Consider
16279         bmaskn instruction.
16280         (arc_dwarf_register_span): Remove enum keyword.
16281         (compact_memory_operand_p): New function.
16282         * config/arc/arc.h (reg_class): Add code density register classes.
16283         (REG_CLASS_NAMES): Likewise.
16284         (REG_CLASS_CONTENTS): Likewise.
16285         * config/arc/arc.md (*movqi_insn): Add code density instructions.
16286         (*movhi_insn, *movsi_insn, *movsf_insn): Likewise.
16287         (*extendhisi2_i, andsi3_i, cmpsi_cc_insn_mixed): Likewise.
16288         (*cmpsi_cc_c_insn, *movsi_ne): Likewise.
16289         * config/arc/constraints.md (C2p, Uts, Cm1, Cm3, Ucd): New
16290         constraints.
16291         (h, Rcd, Rsd, Rzd): New register constraints.
16292         (T): Use compact_memory_operand_p function.
16293         * config/arc/predicates.md (compact_load_memory_operand): Remove.
16295 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
16297         * config/sh/sh.md (*negnegt, *movtt): Remove.
16299 2016-05-02  Marek Polacek  <polacek@redhat.com>
16300             Tom de Vries  <tom@codesourcery.com>
16302         PR tree-optimization/70700
16303         * tree-ssa-structalias.c (dump_pred_graph): Fix getting varinfo for ids
16304         bigger than FIRST_REF_NODE.
16306 2016-05-02  Oleg Endo  <olegendo@gcc.gnu.org>
16308         PR target/52898
16309         * config/sh/sh.c (sh_option_override): Remove TARGET_CBRANCHDI4,
16310         TARGET_CMPEQDI_T.
16311         (prepare_cbranch_operands): Don't use scratch register.  Assume that
16312         function is used when pseudos can be created.
16313         (expand_cbranchdi4): Likewise.  Remove unused TARGET_CMPEQDI_T paths.
16314         * config/sh/sh.md (cbranchsi4): Allow only when pseudos can be created.
16315         (cbranchdi4, cbranchdi4_i): Simplify to single cbranchdi4
16316         define_expand.  Allow it only when pseudos can be created.
16317         * config/sh/sh.opt (mcbranchdi, mcmpeqdi): Delete.
16319 2016-05-01  Uros Bizjak  <ubizjak@gmail.com>
16321         * config/i386/constraints.md (BC): Only allow -1 operands.
16322         * config/i386/sse.md (mov<mode>_internal): Add (v,C) alternative.
16323         Add "enabled" attribute.  Update XI mode attribute calculation.
16324         * config/i386/i386.md (*movxi_internal_avx512f): Add (v,C) alternative.
16325         (*movoi_internal_avx): Update XI mode attribute calculation.
16326         (*movti_internal): Ditto.
16328 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16330         * config/sh/sh.md (push, pop, ic_invalidate_line, cstoresi4, cstoredi4,
16331         cstoresf4, cstoredf4, fix_truncsfsi2): Remove constraints.
16333 2016-05-01  Eric Botcazou  <ebotcazou@adacore.com>
16335         * config/rs6000/rs6000.c (altivec_expand_lv_builtin): Do not use switch
16336         statement on instruction code.  Remove trailing spaces.
16337         (altivec_expand_stv_builtin): Likewise.
16339 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16341         * config/sh/sh.h (TARGET_SH4): Remove and use default implementation.
16342         (TARGET_FPU_DOUBLE): Simplify.
16343         (BASE_ARG_REG, DOUBLE_TYPE_SIZE, OPTIMIZE_MODE_SWITCHING): Replace
16344         'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions with 'TARGET_FPU_DOUBLE'.
16345         * config/sh/sh.c: Replace 'TARGET_SH4 || TARGET_SH2A_DOUBLE' conditions
16346         with 'TARGET_FPU_DOUBLE'.
16347         * config/sh/sh.md: Likewise.
16349 2016-05-01  Yoshinori Sato  <ysato@users.sourceforge.jp>
16351         * config/sh/linux.h (SH_DIV_STRATEGY_DEFAULT,
16352         SH_DIV_STR_FOR_SIZE): Remove.
16353         * config/sh/netbsd-elf.h (SH_DIV_STRATEGY_DEFAULT,
16354         SH_DIV_STR_FOR_SIZE): Remove.
16356 2016-05-01  Oleg Endo  <olegendo@gcc.gnu.org>
16358         * config/sh/predicates.md (any_register_operand, zero_extend_operand,
16359         logical_reg_operand): Delete.
16360         (arith_operand, arith_reg_dest, arith_or_int_operand, cmpsi_operand,
16361         arith_reg_or_0_operand, arith_reg_or_0_or_1_operand, logical_operand,
16362         logical_and_operand, movsrc_no_disp_mem_operand): Rewrite using
16363         match_operand and match_test.
16364         (sh_const_vec, sh_1el_vec): Remove redundant checks.  Declare local
16365         variables on their first use.  Return bool values.
16366         * config/sh/sh.h (LOAD_EXTEND_OP): Update comment.
16367         * config/sh/sh.md (andsi3, iorsi3): Use arith_reg_dest for result and
16368         arith_reg_operand for input operand.  Remove empty constraints.
16369         (xorsi3): Delete.
16370         (*xorsi3_compact): Rename to xorsi3.
16371         (zero_extend<mode>si2): Use arith_reg_operand for input operand.
16372         (*zero_extend<mode>si2_disp_mem): Update comment.
16373         (mov_nop): Delete.
16375 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
16377         * config/sh/t-sh: Remove SH5 support.
16378         * config.gcc: Likewise.
16379         * configure: Likewise.
16381 2016-04-30  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16383         * config/darwin.h (LINK_COMMAND_SPEC_A): Handle -fcilkplus.
16385 2016-04-30  Oleg Endo  <olegendo@gcc.gnu.org>
16387         * config/sh/sh.c (register_sh_passes, sh_option_override,
16388         sh_print_operand, prepare_move_operands,
16389         sh_can_follow_jump): Remove TARGET_SH1 checks.
16390         * config/sh/sh.h (TARGET_VARARGS_PRETEND_ARGS, VALID_REGISTER_P,
16391         PROMOTE_MODE): Likewise.
16392         * config/sh/sh.md (adddi3, addsi3, subdi3, subsi3, andsi3,
16393         movdi): Likewise.
16395 2016-04-30  Alan Modra  <amodra@gmail.com>
16397         * config/rs6000/rs6000.c (rs6000_savres_strategy): Force inline
16398         restoring when fixed_reg_p, but allow out-of-line or stmw save.
16399         Check for user regs later to avoid unnecessary looping over regs.
16400         Merge user reg check with non-saved reg check.  Don't force
16401         inline VR restore when static chain used.
16402         (rs6000_frame_related): Omit eh_frame info for user regs when
16403         saving.
16404         (fixed_regs_p): Delete.
16406 2016-04-30  Alan Modra  <amodra@gmail.com>
16408         * config/rs6000/rs6000.c (SAVRES_MULTIPLE): Replace with..
16409         (SAVE_STRATEGY, REST_STRATEGY): ..this.  Renumber and sort enum.
16410         Update all uses.
16412 2016-04-30  Alan Modra  <amodra@gmail.com>
16414         PR target/69645
16415         * config/rs6000/rs6000.c (fixed_reg_p): New function.
16416         (fixed_regs_p): Rename from global_regs_p.  Call fixed_reg_p.
16417         Update all uses.
16419 2016-04-30  Alan Modra  <amodra@gmail.com>
16421         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
16422         Remove redundant PIC_OFFSET_TABLE_REGNUM test.  Replace with
16423         flag_pic test for Darwin.
16425 2016-04-30  Alan Modra  <amodra@gmail.com>
16427         * regs.h (struct reg_info_t): Delete freq_calls_crossed and
16428         throw_calls_crossed.
16429         (REG_FREQ_CALLS_CROSSED): Delete.
16430         (REG_N_THROWING_CALLS_CROSSED): Delete.
16431         * regstat.c (regstat_bb_compute_ri): Don't calculate
16432         REG_FREQ_CALLS_CROSSED and REG_N_THROWING_CALLS_CROSSED.
16433         (dump_reg_info): Don't print call cross frequency.
16434         * ira.c (combine_and_move_insns): Don't set REG_FREQ_CALLS_CROSSED
16435         and REG_N_THROWING_CALLS_CROSSED.
16437 2016-04-30  Alan Modra  <amodra@gmail.com>
16439         * regs.h (struct reg_info_t): Delete live_length.
16440         (REG_LIVE_LENGTH): Delete macro.
16441         * regstat.c (regstat_bb_compute_ri): Delete artificial_uses,
16442         local_live, local_processed and local_live_last_luid params.
16443         Replace bb_index param with bb.  Don't set REG_LIVE_LENGTH.
16444         Formatting fixes.
16445         (regstat_compute_ri): Adjust for above.  Don't set
16446         REG_LIVE_LENGTH.
16447         (dump_reg_info): Don't print live length.
16448         * ira.c (update_equiv_regs): Replace test of REG_LIVE_LENGTH
16449         with test of setjmp_crosses.  Don't set REG_LIVE_LENGTH.
16450         Localize loop_depth var.
16452 2016-04-30  Alan Modra  <amodra@gmail.com>
16454         * ira.c (enum valid_equiv): New.
16455         (validate_equiv_mem): Return enum.
16456         (update_equiv_mem): Create replacement in more cases.
16457         (add_store_equivs): Update validate_equiv_mem call.
16459 2016-04-30  Alan Modra  <amodra@gmail.com>
16461         * ira.c (combine_and_move_insns): Rather than scanning insns,
16462         use DF infrastucture to find use and def insns.
16464 2016-04-30  Alan Modra  <amodra@gmail.com>
16466         ira.c (combine_and_move_insns): Move invariant conditions..
16467         (ira.c): ..to here.  Call combine_and_move_insns before
16468         add_store_equivs.  Call grow_reg_equivs later.  Allocate
16469         req_equiv later using max_reg_num() rather than global max_regno.
16470         (contains_replace_regs): Delete.
16471         (add_store_equivs): Remove contains_replace_regs test.
16473 2016-04-30  Alan Modra  <amodra@gmail.com>
16475         * ira.c (struct equiv_mem_data): New.
16476         (equiv_mem, equiv_mem_modified): Delete static vars.
16477         (validate_equiv_mem_from_store): Use "data" param to communicate..
16478         (validate_equiv_mem): ..from here.
16480 2016-04-30  Alan Modra  <amodra@gmail.com>
16482         * ira.c (add_store_equivs, combine_and_move_insns): New functions,
16483         split out from..
16484         (update_reg_equivs): ..here.  Move allocation and freeing of
16485         reg_equiv, and calls to grow_reg_equivs, init_alias_analysis,
16486         end_alias_analysis to..
16487         (ira): ..here.
16489 2016-04-30  Alan Modra  <amodra@gmail.com>
16491         * ira.c (pdx_subregs): Delete.
16492         (struct equivalence): Add pdx_subregs field.
16493         (set_paradoxical_subreg): Remove pdx_subregs param.  Update
16494         pdx_subregs access.
16495         (update_equiv_regs): Don't create or free pdx_subregs.  Update
16496         pdx_subregs access.
16498 2016-04-29  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
16500         * config/rs6000/altivec.h: Change definitions of vec_xl and
16501         vec_xst.
16502         * config/rs6000/rs6000-builtin.def (LD_ELEMREV_V2DF): New.
16503         (LD_ELEMREV_V2DI): New.
16504         (LD_ELEMREV_V4SF): New.
16505         (LD_ELEMREV_V4SI): New.
16506         (LD_ELEMREV_V8HI): New.
16507         (LD_ELEMREV_V16QI): New.
16508         (ST_ELEMREV_V2DF): New.
16509         (ST_ELEMREV_V2DI): New.
16510         (ST_ELEMREV_V4SF): New.
16511         (ST_ELEMREV_V4SI): New.
16512         (ST_ELEMREV_V8HI): New.
16513         (ST_ELEMREV_V16QI): New.
16514         (XL): New.
16515         (XST): New.
16516         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add
16517         descriptions for VSX_BUILTIN_VEC_XL and VSX_BUILTIN_VEC_XST.
16518         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Map from
16519         TARGET_P9_VECTOR to RS6000_BTM_P9_VECTOR.
16520         (altivec_expand_builtin): Add handling for
16521         VSX_BUILTIN_ST_ELEMREV_<MODE> and VSX_BUILTIN_LD_ELEMREV_<MODE>.
16522         (rs6000_invalid_builtin): Add error-checking for
16523         RS6000_BTM_P9_VECTOR.
16524         (altivec_init_builtins): Define builtins used to implement vec_xl
16525         and vec_xst.
16526         (rs6000_builtin_mask_names): Define power9-vector.
16527         * config/rs6000/rs6000.h (MASK_P9_VECTOR): Define.
16528         (RS6000_BTM_P9_VECTOR): Define.
16529         (RS6000_BTM_COMMON): Include RS6000_BTM_P9_VECTOR.
16530         * config/rs6000/vsx.md (vsx_ld_elemrev_v2di): New define_insn.
16531         (vsx_ld_elemrev_v2df): Likewise.
16532         (vsx_ld_elemrev_v4sf): Likewise.
16533         (vsx_ld_elemrev_v4si): Likewise.
16534         (vsx_ld_elemrev_v8hi): Likewise.
16535         (vsx_ld_elemrev_v16qi): Likewise.
16536         (vsx_st_elemrev_v2df): Likewise.
16537         (vsx_st_elemrev_v2di): Likewise.
16538         (vsx_st_elemrev_v4sf): Likewise.
16539         (vsx_st_elemrev_v4si): Likewise.
16540         (vsx_st_elemrev_v8hi): Likewise.
16541         (vsx_st_elemrev_v16qi): Likewise.
16542         * doc/extend.texi: Add prototypes for vec_xl and vec_xst.  Correct
16543         grammar.
16545 2016-04-29  Patrick Palka  <ppalka@gcc.gnu.org>
16547         * tree-ssa-threadedge.c (simplify_control_stmt_condition): Split
16548         out into ...
16549         (simplify_control_stmt_condition_1): ... here.  Recurse into
16550         BIT_AND_EXPRs and BIT_IOR_EXPRs.
16552 2016-04-29  David Edelsohn  <dje.gcc@gmail.com>
16554         PR target/69810
16555         * config/rs6000/rs6000.md (EXTQI): Don't allow extension to HImode.
16556         (zero_extendqi<mode>2_dot): Revert earlier conversion from
16557         define_insn_and_split to define_insn.
16558         (zero_extendqi<mode>2_dot2): Same.
16559         (extendqi<mode>2_dot): Same.
16560         (extendqi<mode>2_dot2): Same.
16562 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16564         * config/i386/i386.md (unspec): Add UNSPEC_PROBE_STACK.
16565         (probe_stack): New expander.
16566         (probe_stack_<mode>): New insn pattern.
16568 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16570         * config/i386/i386.md
16571         (operations with memory inputs setting flags peephole2):
16572         Remove uneeded REG_P checks.  Cleanup pattern generation.
16574 2016-04-29  Ilya Enkovich  <ilya.enkovich@intel.com>
16576         * tree-vect-loop.c (vect_transform_loop): Fix
16577         nb_iterations_upper_bound computation for vectorized loop.
16579 2016-04-29  Marek Polacek  <polacek@redhat.com>
16580             Jakub Jelinek  <jakub@redhat.com>
16582         PR sanitizer/70342
16583         * fold-const.c (tree_single_nonzero_warnv_p): For TARGET_EXPR, use
16584         TARGET_EXPR_SLOT as a base.
16586 2016-04-29  Andrew Burgess  <andrew.burgess@embecosm.com>
16588         * config/arc/arc.md (*loadqi_update): Replace use of 'rI' constraint
16589         with 'rCm2' constraints to limit possible immediate size.
16590         (*load_zeroextendqisi_update): Likewise.
16591         (*load_signextendqisi_update): Likewise.
16592         (*loadhi_update): Likewise.
16593         (*load_zeroextendhisi_update): Likewise.
16594         (*load_signextendhisi_update): Likewise.
16595         (*loadsi_update): Likewise.
16596         (*loadsf_update): Likewise.
16598 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16600         * config/i386/predicates.md (constm1_operand): Fix comparison.
16602 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
16604         * testsuite/gcc.target/arc/ieee_eq.c: New test.
16606 2016-04-29  Oleg Endo  <olegendo@gcc.gnu.org>
16608         * common/config/sh/sh-common.c (sh_option_optimization_table): Remove
16609         remaining SH5 related settings.
16610         * config/sh/sh-protos.h (shmedia_cleanup_truncate,
16611         shmedia_prepare_call_address): Delete.
16612         * config/sh/sh.c (sh_print_operand, output_stack_adjust,
16613         DWARF_CIE_DATA_ALIGNMENT, LOCAL_ALIGNMENT): Update comments.
16614         * config/sh/sh.h (SUBTARGET_ASM_RELAX_SPEC,
16615         UNSUPPORTED_SH2A): Remove m5 checks.
16616         (sh_divide_strategy_e): Remove SH5 division strategies.
16617         (TARGET_PTRMEMFUNC_VBIT_LOCATION): Remove and use default.
16618         * config/sh/sh.md (divsf3): Reinstate define_expand pattern.
16620 2016-04-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
16622         * config/s390/s390.c (s390_rtx_costs): Update documentation.
16624 2016-04-29  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
16626         * config/s390/2964.md ("z13_unit_fxu", "z13_0"): Remove lder.
16627         * config/s390/s390.md ("movsi_larl", "*movsi_esa", "mov<mode>"):
16628         Change lder to ldr.
16629         * config/s390/vector.md ("mov<mode>"): Likewise.
16631 2016-04-29  Ulrich Weigand  <uweigand@de.ibm.com>
16633         * config/s390/constraints.md ("U", "W"): Invoke
16634         s390_mem_constraint with "ZR" and "ZT".
16635         * config/s390/s390.c (s390_check_qrst_address): Reject invalid
16636         addresses when using LRA.  Accept also short displacements for S
16637         and T constraints.  Do not check for long displacement target for
16638         S and T constraints.
16639         (s390_mem_constraint): Remove handling of U and W constraints.
16640         * config/s390/s390.md (various patterns): Remove the short
16641         displacement constraints (Q and R) if a long displacement
16642         constraint is present.  Add longdisp as required CPU capability.
16643         * config/s390/vector.md: Likewise.
16644         * config/s390/vx-builtins.md: Likewise.
16646 2016-04-29  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
16648         PR target/60040
16649         * reload1.c (reload): Call finish_spills before
16650         restarting reload loop. Skip select_reload_regs
16651         if update_eliminables_and_spill returns true.
16653 2016-04-29  Claudiu Zissulescu  <claziss@synopsys.com>
16655         * config/arc/arc.h (UNSIGNED_INT12, UNSIGNED_INT16): Define.
16656         * config/arc/arc.md (umulhisi3): Use arc_short_operand predicate.
16657         (umulhisi3_imm): Update predicates and constraint letters.
16658         (umulhisi3_reg): Declare instruction as commutative.
16659         * config/arc/constraints.md (J12, J16): New constraints.
16660         * config/arc/predicates.md (short_unsigned_const_operand): New
16661         predicate.
16662         (arc_short_operand): Likewise.
16663         * testsuite/gcc.target/arc/umulsihi3_z.c: New file.
16665 2016-04-29  Richard Biener  <rguenther@suse.de>
16667         PR tree-optimization/13962
16668         PR tree-optimization/65686
16669         * tree-ssa-alias.h (ptrs_compare_unequal): Declare.
16670         * tree-ssa-alias.c (ptrs_compare_unequal): New function
16671         using PTA to compare pointers.
16672         * match.pd: Add pattern for pointer equality compare simplification
16673         using ptrs_compare_unequal.
16675 2016-04-29  Richard Biener  <rguenther@suse.de>
16677         * stor-layout.c (layout_type): Do not build a pointer-to-element
16678         type for arrays.
16680 2016-04-29  Uros Bizjak  <ubizjak@gmail.com>
16682         * config/i386/i386.md (Load+RegOp to Mov+MemOp peephole2):
16683         Use SWI mode iterator.  Use general_reg_operand predicate.
16684         (Load+RegOp to Mov+MemOp peephole2 with vector regs): Split
16685         peephole to MMX and SSE part.  Use mmx_reg_operand and sse_reg_operand
16686         predicates.
16688 2016-04-29  Jakub Jelinek  <jakub@redhat.com>
16690         PR middle-end/70843
16691         * fold-const.c (operand_equal_p): Don't verify hash value equality
16692         if arg0 == arg1.
16693         * tree.c (inchash::add_expr): Handle STATEMENT_LIST.  Ignore BLOCK
16694         and OMP_CLAUSE.
16696 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16698         PR target/70858
16699         * config/i386/i386.c (bdesc_special_args): Add | OPTION_MASK_ISA_64BIT
16700         to __builtin_ia32_lwpval64 and __builtin_ia32_lwpins64.
16701         (bdesc_args): Add | OPTION_MASK_ISA_64BIT to __builtin_ia32_bextr_u64,
16702         __builtin_ia32_bextri_u64, __builtin_ia32_bzhi_di,
16703         __builtin_ia32_pdep_di and __builtin_ia32_pext_di.
16705 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16707         * config/rs6000/rs6000.c (compute_save_world_info): Rename info_ptr
16708         to info.  Don't initialize separate fields to 0.  Clean up
16709         formatting a bit.
16711 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16713         * config/i386/i386.md (peephole2s for operations with memory inputs):
16714         Use SWI mode iterator.
16715         (peephole2s for operations with memory outputs): Ditto.
16716         Do not check for stack checking probe.
16718         (probe_stack): Remove expander.
16720 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16721             Andrew Burgess  <andrew.burgess@embecosm.com>
16723         * config/arc/arc.c (arc_print_operand): Print integer 'H' / 'L'
16724         operands as 32-bits.
16726 2016-04-28  Jason Merrill  <jason@redhat.com>
16728         * gdbinit.in: Skip line-map.h.
16730 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16731             Andrew Burgess  <andrew.burgess@embecosm.com>
16733         * config/arc/arc.c (arc_conditional_register_usage): Take
16734         TARGET_RRQ_CLASS into account.
16735         (arc_print_operand): Support printing 'p' and 's' operands.
16736         * config/arc/arc.h (TARGET_NPS_BITOPS_DEFAULT): Provide default
16737         as 0.
16738         (TARGET_RRQ_CLASS): Define.
16739         (IS_POWEROF2_OR_0_P): Define.
16740         * config/arc/arc.md (*movsi_insn): Add w/Clo, w/Chi, and w/Cbi
16741         alternatives.
16742         (*tst_movb): New define_insn.
16743         (*tst): Avoid recognition if it could prevent '*tst_movb'
16744         combination; replace c/CnL with c/Chs alternative.
16745         (*tst_bitfield_tst): New define_insn.
16746         (*tst_bitfield_asr): New define_insn.
16747         (*tst_bitfield): New define_insn.
16748         (andsi3_i): Add Rrq variant.
16749         (extzv): New define_expand.
16750         (insv): New define_expand.
16751         (*insv_i): New define_insn.
16752         (*movb): New define_insn.
16753         (*movb_signed): New define_insn.
16754         (*movb_high): New define_insn.
16755         (*movb_high_signed): New define_insn.
16756         (*movb_high_signed + 1): New define_split pattern.
16757         (*mrgb): New define_insn.
16758         (*mrgb + 1): New define_peephole2 pattern.
16759         (*mrgb + 2): New define_peephole2 pattern.
16760         * config/arc/arc.opt (mbitops): New option for nps400, uses
16761         TARGET_NPS_BITOPS_DEFAULT.
16762         * config/arc/constraints.md (q): Make register class conditional.
16763         (Rrq): New register constraint.
16764         (Chs): New constraint.
16765         (Clo): New constraint.
16766         (Chi): New constraint.
16767         (Cbf): New constraint.
16768         (Cbn): New constraint.
16769         (C18): New constraint.
16770         (Cbi): New constraint.
16772 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16774         * cfganal.c (bitmap_intersection_of_succs): Delete assert checking
16775         dst->popcount.
16776         (bitmap_intersection_of_preds): Ditto.
16777         (bitmap_union_of_succs): Ditto.
16778         (bitmap_union_of_preds): Ditto.
16779         * sbitmap.c (do_popcount): Delete.
16780         (BITMAP_DEBUGGING): Delete.
16781         (sbitmap_verify_popcount): Delete.
16782         (sbitmap_alloc): Don't initialize the popcount field.
16783         (sbitmap_alloc_with_popcount): Delete.
16784         (sbitmap_resize): Don't resize the popcount array.
16785         (sbitmap_vector_alloc): Don't initialize the popcount field.
16786         (bitmap_copy): Don't copy the popcount array.
16787         (bitmap_clear): Don't clear the popcount array.
16788         (bitmap_clear): Delete the popcount array handling.
16789         (bitmap_ior_and_compl): Delete the popcount assert.
16790         (bitmap_not): Ditto.
16791         (bitmap_and_compl): Ditto.
16792         (bitmap_and): Delete the popcount array handling.
16793         (bitmap_xor): Ditto.
16794         (bitmap_ior): Ditto.
16795         (bitmap_or_and): Delete the popcount assert.
16796         (bitmap_and_or): Ditto.
16797         (popcount_table): Delete.
16798         (sbitmap_elt_popcount): Delete.
16799         * sbitmap.h (simple_bitmap_def): Delete the popcount field.
16800         (bitmap_set_bit): Delete the popcount assert.
16801         (bitmap_clear_bit): Ditto.
16802         (sbitmap_free): Don't free the popcount array.
16803         (sbitmap_alloc_with_popcount): Delete declaration.
16804         (sbitmap_popcount): Ditto.
16806 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16807             Andrew Burgess  <andrew.burgess@embecosm.com>
16809         * config/arc/arc.h (SYMBOL_FLAG_CMEM): Define.
16810         (TARGET_NPS_CMEM_DEFAULT): Provide default definition.
16811         * config/arc/arc.c (arc_address_cost): Return 0 for cmem_address.
16812         (arc_encode_section_info): Set SYMBOL_FLAG_CMEM where indicated.
16813         * config/arc/arc.opt (mcmem): New option.
16814         * config/arc/arc.md (*extendqihi2_i): Add r/Uex alternative,
16815         supply length for r/m alternative.
16816         (*extendqisi2_ac): Likewise.
16817         (*extendhisi2_i): Add r/Uex alternative, supply length for r/m and
16818         r/Uex alternative.
16819         (movqi_insn): Add r/Ucm and Ucm/?Rac alternatives.
16820         (movhi_insn): Likewise.
16821         (movsi_insn): Add r/Ucm,Ucm/w alternatives.
16822         (*zero_extendqihi2_i): Add r/Ucm alternative.
16823         (*zero_extendqisi2_ac): Likewise.
16824         (*zero_extendhisi2_i): Likewise.
16825         * config/arc/constraints.md (Uex): New memory constraint.
16826         (Ucm): New define_constraint.
16827         * config/arc/predicates.md (long_immediate_loadstore_operand):
16828         Return 0 for MEM with cmem_address address.
16829         (cmem_address_0): New predicates.
16830         (cmem_address_1): Likewise.
16831         (cmem_address_2): Likewise.
16832         (cmem_address): Likewise.
16834 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16836         * config/rs6000/rs6000.c (machine_function): Rename
16837         insn_chain_scanned_p to spe_insn_chain_scanned_p.
16838         (rs6000_stack_info): Adjust.
16840 2016-04-28  Joern Rennecke  <joern.rennecke@embecosm.com>
16841             Andrew Burgess  <andrew.burgess@embecosm.com>
16843         * config/arc/constraints.md (Usd): Convert to define_constraint.
16844         (Us<): Likewise.
16845         (Us>): Likewise.
16847 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16849         PR target/70821
16850         * config/i386/sync.md (define_peephole2 *atomic_fetch_add_cmp<mode>):
16851         Add new peephole2 where the first insn is *mov<mode>_or instead of
16852         *mov<mode>_internal.
16854 2016-04-28  Segher Boesssenkool  <segher@kernel.crashing.org>
16856         * tracer.c (bb_seen): Make static.
16858 2016-04-28  Andrew Burgess  <andrew.burgess@embecosm.com>
16860         * common/config/arc/arc-common.c (arc_handle_option): Add NPS400
16861         support, setup defaults.
16862         * config/arc/arc-opts.h (enum processor_type): Add NPS400.
16863         * config/arc/arc.c (arc_init): Add NPS400 support.
16864         * config/arc/arc.h (CPP_SPEC): Add NPS400 defines.
16865         (TARGET_ARC700): NPS400 is also an ARC700.
16866         * config/arc/arc.opt: Add NPS400 options to -mcpu=.
16868 2016-04-28  Segher Boessenkool  <segher@kernel.crashing.org>
16870         PR target/70668
16871         * config/nds32/nds32.md (casesi): Don't access the operands array
16872         out of bounds.
16874 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16876         * config/i386/i386.md (zeroing peephole2): Use general_reg_operand.
16877         (or $-1,reg peephole2): Ditto.
16878         (strict_low_part zeroing peephole2): Use SWI12 mode iterator.
16880 2016-04-28  Markus Trippelsdorf  <markus@trippelsdorf.de>
16882         * doc/extend.texi (Common Function Attributes) [optimize]:
16883         Discourage use of the optimize attribute.
16885 2016-04-28  Bill Seurer  <seurer@linux.vnet.ibm.com>
16887         * config/rs6000/rs6000-builtin.def (vec_adde): Change vec_adde to a
16888         special case builtin.
16889         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Remove
16890         ALTIVEC_BUILTIN_VEC_ADDE.
16891         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Add
16892         support for ALTIVEC_BUILTIN_VEC_ADDE.
16893         * config/rs6000/rs6000.c (altivec_init_builtins): Add definition
16894         for __builtin_vec_adde.
16896 2016-04-28  Jakub Jelinek  <jakub@redhat.com>
16898         * config/i386/i386.md (sse4_1_round<mode>2): Add avx512f alternative.
16899         * config/i386/sse.md (sse4_1_round<ssescalarmodesuffix>): Likewise.
16901 2016-04-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16903         PR testsuite/70595
16904         * doc/sourcebuild.texi (Effective-Target Keywords, Other
16905         attributes): Document cilkplus_runtime.
16907 2016-04-28  Martin Jambor  <mjambor@suse.cz>
16909         * tree-cfg.c (verify_expr): Verify that local declarations belong to
16910         this function.  Call verify_expr on MEM_REFs and bases of other
16911         handled_components.
16913 2016-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16915         * internal-fn.c (expand_arith_overflow): Convert preprocessor check
16916         for WORD_REGISTER_OPERATIONS to runtime check.
16918 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16920         * config/arc/arc.h (ASM_SPEC): Pass mfpuda to assembler.
16922 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16924         * config/arc/arc.c (arc_process_double_reg_moves): Fix for
16925         big-endian compilation.
16926         * config/arc/arc.md (addf3): Likewise.
16927         (subdf3): Likewise.
16928         (muldf3): Likewise.
16930 2016-04-28  Richard Biener  <rguenther@suse.de>
16932         PR tree-optimization/70840
16933         * match.pd: powi(-x, y) and powi(|x|,y) -> powi(x,y) if y is even;
16934         Fix pow(copysign(x, y), z) -> pow(x, z) and add powi variant;
16935         Mark x * pow(x,c) -> pow(x,c+1) commutative.
16936         Add powi(x,y) * powi(z,y) -> powi(x*z,y).
16938 2015-04-28  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16940         * config/aarch64/aarch64.h (WORD_REGISTER_OPERATIONS): Define to 0
16941         and explain why in a comment.
16943 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16945         * config/arc/arc.md (cpu_facility): Add fpx variant.
16946         (subdf3): Prohibit use reverse sub when assist operations option
16947         is enabled.
16948         * config/arc/fpx.md (subdf3_insn, *dsubh_peep2_insn): Allow drsub
16949         instructions only when FPX is enabled.
16950         * testsuite/gcc.target/arc/trsub.c: New test.
16952 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
16954         * config/i386/i386.md (*fop_<mode>_1_mixed): Do not check for
16955         mult_operator when calculating "type" attribute.
16956         (*fop_<mode>_1_i387): Ditto.
16957         (*fop_xf_1_i387): Ditto.
16958         (x87 stack loads peephole2): Add "reg = op (mem, reg)" peephole2.
16959         Use std::swap to swap operands.  Use RTL expressions to generate
16960         converted pattern.
16962 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
16963             Joern Rennecke  <joern.rennecke@embecosm.com>
16965         * config/arc/arc-protos.h (arc_legitimize_pic_address): Remove
16966         declaration.
16967         (emit_pic_move): Remove.
16968         (arc_eh_uses, insn_is_tls_gd_dispatch): Declare.
16969         * config/arc/arc.c (emit_pic_move): Removed.
16970         (TARGET_HAVE_TLS): Define.
16971         (arc_conditional_register_usage): Test for arc_tp_regno.
16972         (arc_print_operand, arc_print_operand_address): Handle TLS
16973         unspecs.
16974         (arc_needs_pcl_p): New function.
16975         (arc_legitimate_pc_offset_p): Use arc_needs_pcl_p.
16976         (arc_legitimate_pic_addr_p): Handle TLS unspecs.
16977         (arc_raw_symbolic_reference_mentioned_p): Likewise.
16978         (arc_get_tp, arc_emit_call_tls_get_addr): New function.
16979         (arc_legitimize_tls_address): Likewise.
16980         (DTPOFF_ZERO_SYM): Define.
16981         (arc_legitimize_pic_address): Make it static, handle TLS cases.
16982         (arc_output_pic_addr_const): Print TLS unspecs.
16983         (prepare_pic_move): New function, replaces emit_pic_move.
16984         (arc_legitimate_constant_p): Handle TLS unspecs.
16985         (arc_legitimate_address_p): Likewise.
16986         (arc_rewrite_small_data_p): Use assert for TLS constants.
16987         (prepare_move_operands): Use prepare_pic_move.
16988         (arc_legitimize_address): Legitimize tls addresses.
16989         (arc_epilogue_uses): Check for arc_tp_regno.
16990         (arc_eh_uses, insn_is_tls_gd_dispatch): New function.
16991         * config/arc/arc.h [DEFAULT_LIBC != LIBC_UCLIBC] (EXTRA_SPECS):
16992         Define.
16993         [DEFAULT_LIBC != LIBC_UCLIBC] (ARC_TLS_EXTRA_START_SPEC):
16994         Likewise.
16995         [DEFAULT_LIBC != LIBC_UCLIBC] (STARTFILE_SPEC): Add
16996         %(arc_tls_extra_start_spec).
16997         (TARGET_CPU_CPP_BUILTINS): Define __ARC_TLS_REGNO__.
16998         (REGNO_OK_FOR_BASE_P): Check for arc_tp_regno.
16999         (EH_USES): Define.
17000         (INSN_REFERENCES_ARE_DELAYED): Use insn_is_tls_gd_dispatch.
17001         * config/arc/arc.md (UNSPEC_TLS_GD, UNSPEC_TLS_LD, UNSPEC_TLS_IE)
17002         (UNSPEC_TLS_OFF): Add.
17003         (R10_REG): Define.
17004         (tls_load_tp_soft, tls_gd_load, tls_gd_get_addr, tls_gd_dispatch)
17005         (get_thread_pointersi): New patterns.
17006         * config/arc/arc.opt (mtp-regno): New option.
17007         * config/arc/predicates.md (move_src_operand): Handle TLS symbols.
17008         (move_dest_operand): Likewise.
17009         * configure: Regenerate.
17010         * configure.ac: Add arc*-*-* case to test for tls.
17011         * doc/invoke.texi (ARC options): Document mtp-regno.
17013 2016-04-28  Claudiu Zissulescu  <claziss@synopsys.com>
17015         * config/arc/arc.c (arc_vector_mode_supported_p): Add support for
17016         the new ARC HS SIMD instructions.
17017         (arc_preferred_simd_mode): New function.
17018         (arc_autovectorize_vector_sizes): Likewise.
17019         (TARGET_VECTORIZE_PREFERRED_SIMD_MODE)
17020         (TARGET_VECTORIZE_AUTOVECTORIZE_VECTOR_SIZES): Define.
17021         (arc_init_reg_tables): Accept new ARC HS SIMD modes.
17022         (arc_init_builtins): Add new SIMD builtin types.
17023         (arc_split_move): Handle 64 bit vector moves.
17024         * config/arc/arc.h (TARGET_PLUS_DMPY, TARGET_PLUS_MACD)
17025         (TARGET_PLUS_QMACW): Define.
17026         * config/arc/builtins.def (QMACH, QMACHU, QMPYH, QMPYHU, DMACH)
17027         (DMACHU, DMPYH, DMPYHU, DMACWH, DMACWHU, VMAC2H, VMAC2HU, VMPY2H)
17028         (VMPY2HU, VADDSUB2H, VSUBADD2H, VADDSUB, VSUBADD, VADDSUB4H)
17029         (VSUBADD4H): New builtins.
17030         * config/arc/simdext.md: Add new ARC HS SIMD instructions.
17031         * testsuite/gcc.target/arc/builtin_simdarc.c: New file.
17033 2016-04-28  Eduard Sanou  <dhole@openmailbox.org>
17034             Matthias Klose  <doko@debian.org>
17036         * doc/cppenv.texi: Document SOURCE_DATE_EPOCH environment variable.
17038 2016-04-28  Richard Biener  <rguenther@suse.de>
17040         PR middle-end/70777
17041         * fold-const.c (fold_binary_loc): Remove x*x to pow(x,2.0)
17042         canonicalization.
17044 2016-04-28  Oleg Endo  <olegendo@gcc.gnu.org>
17046         * common/config/sh/sh-common.c: Remove SH5 support.
17047         * config/sh/constraints.md: Likewise.
17048         * config/sh/config/sh/elf.h: Likewise.
17049         * config/sh/linux.h: Likewise.
17050         * config/sh/netbsd-elf.h: Likewise.
17051         * config/sh/predicates.md: Likewise.
17052         * config/sh/sh-c.c: Likewise.
17053         * config/sh/sh-protos.h: Likewise.
17054         * config/sh/sh.c: Likewise.
17055         * config/sh/sh.h: Likewise.
17056         * config/sh/sh.md: Likewise.
17057         * config/sh/sh.opt: Likewise.
17058         * config/sh/sync.md: Likewise.
17059         * config/sh/sh64.h: Delete.
17060         * config/sh/shmedia.h: Likewise.
17061         * config/sh/shmedia.md: Likewise.
17062         * config/sh/sshmedia.h: Likewise.
17063         * config/sh/t-netbsd-sh5-64: Likewise.
17064         * config/sh/t-sh64: Likewise.
17065         * config/sh/ushmedia.h: Likewise.
17067 2016-04-28  Uros Bizjak  <ubizjak@gmail.com>
17069         * config/i386/i386.md (sign_extend to memory peephole2s): Use
17070         general_reg_operand instead of register_operand predicate.
17072 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17074         * params.def (MIN_PARTITION_SIZE): Set default value to 10000.
17076 2016-04-27  Marc Glisse  <marc.glisse@inria.fr>
17078         * match.pd (A - B > A, A + B < A): New transformations.
17080 2016-04-27  Patrick Palka  <ppalka@gcc.gnu.org>
17082         * genattrtab.c (write_test_expr): New parameter EMIT_PARENS
17083         which defaults to true.  Emit an outer pair of parentheses only if
17084         EMIT_PARENS.  When continuing a chain of && or || (or & or |),
17085         don't emit parentheses for the right-hand operand.
17087 2016-04-27  Jeff Law  <law@redhat.com>
17089         * tree-ssa-dom.c (record_temporary_equivalences): Fix typo in comment.
17091 2016-04-27  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17093         * config/rs6000/altivec.md (altivec_lvx_<mode>): Remove.
17094         (altivec_lvx_<mode>_internal): Document.
17095         (altivec_lvx_<mode>_2op): New define_insn.
17096         (altivec_lvx_<mode>_1op): Likewise.
17097         (altivec_lvx_<mode>_2op_si): Likewise.
17098         (altivec_lvx_<mode>_1op_si): Likewise.
17099         (altivec_stvx_<mode>): Remove.
17100         (altivec_stvx_<mode>_internal): Document.
17101         (altivec_stvx_<mode>_2op): New define_insn.
17102         (altivec_stvx_<mode>_1op): Likewise.
17103         (altivec_stvx_<mode>_2op_si): Likewise.
17104         (altivec_stvx_<mode>_1op_si): Likewise.
17105         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17106         Expand vec_ld and vec_st during parsing.
17107         * config/rs6000/rs6000.c (altivec_expand_lvx_be): Commentary
17108         changes.
17109         (altivec_expand_stvx_be): Likewise.
17110         (altivec_expand_lv_builtin): Expand lvx built-ins to expose the
17111         address-masking behavior in RTL.
17112         (altivec_expand_stv_builtin): Expand stvx built-ins to expose the
17113         address-masking behavior in RTL.
17114         (altivec_expand_builtin): Change builtin code arguments for calls
17115         to altivec_expand_stv_builtin and altivec_expand_lv_builtin.
17116         (insn_is_swappable_p): Avoid incorrect swap optimization in the
17117         presence of lvx/stvx patterns.
17118         (alignment_with_canonical_addr): New function.
17119         (alignment_mask): Likewise.
17120         (find_alignment_op): Likewise.
17121         (recombine_lvx_pattern): Likewise.
17122         (recombine_stvx_pattern): Likewise.
17123         (recombine_lvx_stvx_patterns): Likewise.
17124         (rs6000_analyze_swaps): Perform a pre-pass to recognize lvx and
17125         stvx patterns from expand.
17126         * config/rs6000/vector.md (vector_altivec_load_<mode>): Use new
17127         expansions.
17128         (vector_altivec_store_<mode>): Likewise.
17130 2016-04-26  Evandro Menezes  <e.menezes@samsung.com>
17132         * config/aarch64/aarch64.md
17133         (*movhf_aarch64): Add "movi %0, #0" to zero up register and
17134         remove the "fp" attributes.
17135         (*movsf_aarch64): Add "movi %0, #0" to zero up register and
17136         add the "simd" attributes.
17137         (*movdf_aarch64): Likewise.
17138         (*movtf_aarch64): Remove the "fp" attributes.
17139         * testsuite/gcc.target/aarch64/fmovf-zero-reg.c: Update accordingly.
17140         * testsuite/gcc.target/aarch64/fmovd-zero-reg.c: Likewise.
17142 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17144         * emit-rtl.c (maybe_set_first_label_num): Strengthen param from
17145         rtx to rtx_code_label *.
17146         * rtl.h (maybe_set_first_label_num): Likewise.
17148 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17150         * df-core.c (df_add_problem): Make the problem param be const.
17151         (df_remove_problem): Make local "problem" be const.
17152         * df-problems.c (problem_RD): Make const.
17153         (problem_LR): Likewise.
17154         (problem_LIVE): Likewise.
17155         (problem_MIR): Likewise.
17156         (problem_CHAIN): Likewise.
17157         (problem_WORD_LR): Likewise.
17158         (problem_NOTE): Likewise.
17159         (problem_MD): Likewise.
17160         * df-scan.c (problem_SCAN): Likewise.
17161         * df.h (struct df_problem): Make field "dependent_problem" be
17162         const.
17163         (struct dataflow): Likewise for field "problem".
17164         (df_add_problem): Make param const.
17166 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17168         * config/i386/i386.c (ix86_spill_class): Enable for TARGET_SSE2 when
17169         inter-unit moves to/from vector registers are enabled.  Do not disable
17170         for TARGET_MMX.
17172 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17174         * df.h (DF_SCAN, DF_LR, DF_LIVE, DF_RD, DF_CHAIN, DF_WORD_LR,
17175         DF_NOTE, DF_MD, DF_MIR, DF_LAST_PROBLEM_PLUS1): Convert from
17176         #define to...
17177         (enum df_problem_id): ...this new enum.
17178         (struct df_problem): Convert field "id" from "int" to
17179         enum df_problem_id.
17181 2016-04-27  David Malcolm  <dmalcolm@redhat.com>
17183         * rtl.def: Update comment for "things in the instruction chain" to
17184         reflect the removal of the leading "i" field for INSN_UID in
17185         r210360.  Fix bogus apostrophe.
17187 2016-04-27  Uros Bizjak  <ubizjak@gmail.com>
17189         * config/i386/i386.md
17190         (lea arith with mem operand + setcc peephole2): Set operator mode.
17192 2016-04-27  H.J. Lu  <hongjiu.lu@intel.com>
17194         PR target/70155
17195         * config/i386/i386.c (scalar_to_vector_candidate_p): Renamed to ...
17196         (dimode_scalar_to_vector_candidate_p): This.
17197         (timode_scalar_to_vector_candidate_p): New function.
17198         (scalar_to_vector_candidate_p): Likewise.
17199         (timode_check_non_convertible_regs): Likewise.
17200         (timode_remove_non_convertible_regs): Likewise.
17201         (remove_non_convertible_regs): Likewise.
17202         (remove_non_convertible_regs): Renamed to ...
17203         (dimode_remove_non_convertible_regs): This.
17204         (scalar_chain::~scalar_chain): Make it virtual.
17205         (scalar_chain::compute_convert_gain): Make it pure virtual.
17206         (scalar_chain::mark_dual_mode_def): Likewise.
17207         (scalar_chain::convert_insn): Likewise.
17208         (scalar_chain::convert_registers): Likewise.
17209         (scalar_chain::add_to_queue): Make it protected.
17210         (scalar_chain::emit_conversion_insns): Likewise.
17211         (scalar_chain::replace_with_subreg): Likewise.
17212         (scalar_chain::replace_with_subreg_in_insn): Likewise.
17213         (scalar_chain::convert_op): Likewise.
17214         (scalar_chain::convert_reg): Likewise.
17215         (scalar_chain::make_vector_copies): Likewise.
17216         (scalar_chain::convert_registers): New pure virtual function.
17217         (class dimode_scalar_chain): New class.
17218         (class timode_scalar_chain): Likewise.
17219         (scalar_chain::mark_dual_mode_def): Renamed to ...
17220         (dimode_scalar_chain::mark_dual_mode_def): This.
17221         (timode_scalar_chain::mark_dual_mode_def): New function.
17222         (timode_scalar_chain::convert_insn): Likewise.
17223         (dimode_scalar_chain::convert_registers): Likewise.
17224         (scalar_chain::compute_convert_gain): Renamed to ...
17225         (dimode_scalar_chain::compute_convert_gain): This.
17226         (scalar_chain::replace_with_subreg): Renamed to ...
17227         (dimode_scalar_chain::replace_with_subreg): This.
17228         (scalar_chain::replace_with_subreg_in_insn): Renamed to ...
17229         (dimode_scalar_chain::replace_with_subreg_in_insn): This.
17230         (scalar_chain::make_vector_copies): Renamed to ...
17231         (dimode_scalar_chain::make_vector_copies): This.
17232         (scalar_chain::convert_reg): Renamed to ...
17233         (dimode_scalar_chain::convert_reg ): This.
17234         (scalar_chain::convert_op): Renamed to ...
17235         (dimode_scalar_chain::convert_op): This.
17236         (scalar_chain::convert_insn): Renamed to ...
17237         (dimode_scalar_chain::convert_insn): This.
17238         (scalar_chain::convert): Call convert_registers.
17239         (convert_scalars_to_vector): Change to scalar_chain pointer to
17240         use timode_scalar_chain in 64-bit mode and dimode_scalar_chain
17241         in 32-bit mode.  Delete scalar_chain pointer.  Call
17242         free_dominance_info in 64-bit mode.
17243         (pass_stv::gate): Remove TARGET_64BIT check.
17244         (ix86_option_override): Put the 64-bit STV pass before the CSE
17245         pass.
17247 2016-04-27  Pierre-Marie de Rodat  <derodat@adacore.com>
17249         * dwarf2out.h (struct dw_loc_descr_node): Remove the
17250         dw_loc_frame_offset field.
17251         * dwarf2out.c (new_loc_descr): Likewise.
17252         (resolve_args_picking_1): Turn the VISITED hash set into a
17253         FRAME_OFFSET hash map. Use it to associate a frame offset to
17254         visited nodes. Remove uses of the CHECKING_P macro.
17255         (resolve_args_picking): Update call to resolve_args_picking_1.
17257 2016-04-27  Martin Liska  <mliska@suse.cz>
17259         * tree-ssa-loop-ivopts.c (iv_ca_dump): Fix level of indentation.
17260         (free_loop_data): Release vuses of groups.
17262 2016-04-27  Bin Cheng  <bin.cheng@arm.com>
17264         * tree-ssa-loop-ivopts.c (struct iv): Use pointer to struct iv_use
17265         instead of redundant use_id and boolean have_use_for.
17266         (struct iv_use): Change sub_id into group_id.  Remove field next.
17267         Move fields: related_cands, n_map_members, cost_map and selected
17268         to ...
17269         (struct iv_group): ... here.  New structure.
17270         (struct iv_common_cand): Use structure declaration directly.
17271         (struct ivopts_data, iv_ca, iv_ca_delta): Rename fields.
17272         (MAX_CONSIDERED_USES): Rename macro to ...
17273         (MAX_CONSIDERED_GROUPS): ... here.
17274         (n_iv_uses, iv_use, n_iv_cands, iv_cand): Delete.
17275         (dump_iv, dump_use, dump_cand): Refactor format of dump information.
17276         (dump_uses): Rename to ...
17277         (dump_groups): ... here.  Update all uses.
17278         (tree_ssa_iv_optimize_init, alloc_iv): Update all uses.
17279         (find_induction_variables): Refactor format of dump information.
17280         (record_sub_use): Delete.
17281         (record_use): Update all uses.
17282         (record_group): New function.
17283         (record_group_use, find_interesting_uses_op): Call above functions.
17284         Update all uses.
17285         (find_interesting_uses_cond): Ditto.
17286         (group_compare_offset): New function.
17287         (split_all_small_groups): Rename to ...
17288         (split_small_address_groups_p): ... here.  Update all uses.
17289         (split_address_groups):  Update all uses.
17290         (find_interesting_uses): Refactor format of dump information.
17291         (add_candidate_1): Update all uses.  Remove redundant check on iv,
17292         base and step.
17293         (add_candidate, record_common_cand): Remove redundant assert.
17294         (add_iv_candidate_for_biv): Update use.
17295         (add_iv_candidate_derived_from_uses): Update all uses.
17296         (add_iv_candidate_for_groups, record_important_candidates): Ditto.
17297         (alloc_use_cost_map): Ditto.
17298         (set_use_iv_cost, get_use_iv_cost): Rename to ...
17299         (set_group_iv_cost, get_group_iv_cost): ... here.  Update all uses.
17300         (determine_use_iv_cost_generic): Ditto.
17301         (determine_group_iv_cost_generic): Ditto.
17302         (determine_use_iv_cost_address): Ditto.
17303         (determine_group_iv_cost_address): Ditto.
17304         (determine_use_iv_cost_condition): Ditto.
17305         (determine_group_iv_cost_cond): Ditto.
17306         (determine_use_iv_cost): Ditto.
17307         (determine_group_iv_cost): Ditto.
17308         (set_autoinc_for_original_candidates): Update all uses.
17309         (find_iv_candidates): Update all uses.  Refactor dump information.
17310         (determine_use_iv_costs): Ditto.
17311         (determine_iv_costs): Ditto.
17312         (iv_ca_cand_for_use): Rename to ...
17313         (iv_ca_cand_for_group): ... here.  Update all uses.
17314         (iv_ca_add_use, iv_ca_add_group): Ditto.
17315         (iv_ca_set_cp, iv_ca_cost, iv_ca_delta_add): Update all uses.
17316         (iv_ca_delta_join, iv_ca_delta_reverse, iv_ca_delta_free): Ditto.
17317         (iv_ca_new, iv_ca_dump, iv_ca_extend, iv_ca_narrow): Ditto.
17318         (iv_ca_prune, cheaper_cost_with_cand, iv_ca_replace): Ditto.
17319         (try_add_cand_for, try_improve_iv_set, find_optimal_iv_set): Ditto.
17320         (create_new_iv, adjust_iv_update_pos): Ditto.
17321         (rewrite_use_address): Delete.
17322         (rewrite_use_address_1): Rename to ...
17323         (rewrite_use_address): ... here.
17324         (rewrite_use_compare): Update all uses.
17325         (rewrite_use): Delete.
17326         (rewrite_uses): Rename to ...
17327         (rewrite_groups): ... here.  Update all uses.
17328         (remove_unused_ivs, free_loop_data): Update all uses.
17329         (tree_ssa_iv_optimize_finalize, tree_ssa_iv_optimize_loop): Ditto.
17331 2016-04-27  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17333         * rtlanal.c (nonzero_bits1): Convert preprocessor check
17334         for WORD_REGISTER_OPERATIONS to runtime check.
17336 2016-04-27  Richard Biener  <rguenther@suse.de>
17338         PR ipa/70760
17339         * tree-ssa-structalias.c (find_func_aliases_for_call): Use
17340         aggregate_value_p to determine if a function result is
17341         returned by reference.
17342         (ipa_pta_execute): Functions having their address taken are
17343         not automatically nonlocal.
17345 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
17347         PR sanitizer/70683
17348         * tree-core.h (enum operand_equal_flag): Add OEP_NO_HASH_CHECK.
17349         * fold-const.c (operand_equal_p): If flag_checking and
17350         OEP_NO_HASH_CHECK is not set in flag, recurse with OEP_NO_HASH_CHECK
17351         and if it returns non-zero, assert iterative_hash_expr on both
17352         args is the same.
17354 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
17356         * doc/invoke.texi (-frename-registers): Also enabled at -Os.
17358 2016-04-27  Nick Clifton  <nickc@redhat.com>
17360         PR middle-end/49889
17361         * varasm.c (merge_weak): Generate an error if an attempt is made
17362         to convert a non-weak static function into a weak, public function.
17364 2016-04-27  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17366         * params.def (MAX_PARTITION_SIZE): New param.
17367         * doc/invoke.texi: Document lto-max-partition.
17369 2016-04-27  Richard Biener  <rguenther@suse.de>
17371         PR ipa/70785
17372         * tree-ssa-structalias.c (refered_from_nonlocal_fn): New
17373         function cummulating used_from_other_partition, externally_visible
17374         and force_output from aliases.
17375         (refered_from_nonlocal_var): Likewise.
17376         (ipa_pta_execute): Use call_for_symbol_and_aliases to cummulate
17377         node flags properly.
17379 2016-04-27  Bernd Schmidt  <bschmidt@redhat.com>
17381         * doc/invoke.texi (Warning Options): Add -Wmemset-elt-size.
17382         (-Wmemset-elt-size): New item.
17384 2016-04-27  Eric Botcazou  <ebotcazou@adacore.com>
17386         PR ada/70759
17387         * stor-layout.h (internal_reference_types): Delete.
17388         * stor-layout.c (reference_types_internal): Likewise.
17389         (internal_reference_types): Likewise.
17390         (layout_type) <REFERENCE_TYPE>: Adjust.
17392 2016-04-27  Jakub Jelinek  <jakub@redhat.com>
17394         PR sanitizer/70683
17395         * tree.h (inchash::add_expr): Add FLAGS argument.
17396         * tree.c (inchash::add_expr): Likewise.  If not OEP_ADDRESS_OF,
17397         use STRIP_NOPS first.  For INTEGER_CST assert not OEP_ADDRESS_OF.
17398         For REAL_CST and !HONOR_SIGNED_ZEROS (t) hash +/- 0 the same.
17399         Formatting fix.  Adjust recursive calls.  For tcc_comparison,
17400         if swap_tree_comparison (code) is smaller than code, hash that
17401         and arguments in the other order.  Hash CONVERT_EXPR the same
17402         as NOP_EXPR.  For OEP_ADDRESS_OF hash MEM_REF with 0 offset
17403         of ADDR_EXPR of decl as the decl itself.  Add or remove
17404         OEP_ADDRESS_OF from recursive flags as needed.  For
17405         FMA_EXPR, WIDEN_MULT_{PLUS,MINUS}_EXPR hash the first two
17406         operands commutatively and only the third one normally.
17407         For internal CALL_EXPR hash in CALL_EXPR_IFN.
17409 2016-04-27  Sebastian Huber  <sebastian.huber@embedded-brains.de>
17411         * config/rtems.h (LIB_SPEC): Add -latomic.
17413 2016-04-27  Joel Sherrill  <joel@rtems.org>
17415         * config/microblaze/rtems.h: Redefine LINK_SPEC to avoid
17416         xilink.ld and flags not relevant to RTEMS.
17418 2016-04-26  Zhouyi Zhou  <yizhouzhou@ict.ac.cn>
17420         * toplev.c (backend_init_target): Avoid calling init_reload when using
17421         LRA.
17423 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
17425         * reorg.c (try_merge_delay_insns): Declare i and j inside the
17426         for loops rather than one for the whole function.
17428 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
17430         * match.pd (X + CST CMP X): New transformation.
17432 2016-04-26  Marc Glisse  <marc.glisse@inria.fr>
17434         * genmatch.c (write_predicate): Add ATTRIBUTE_UNUSED.
17435         * fold-const.c (fold_binary_loc): Remove 2 transformations
17436         superseded by match.pd.
17437         * match.pd (x+x -> x*2): Generalize to integers.
17439 2016-04-26  Bernd Schmidt  <bschmidt@redhat.com>
17441         * config/i386/i386.md (operation on memory peephole): Duplicate an
17442         existing peephole and adapt it to match lea rather than an operation
17443         that clobbers CC.
17445         PR rtl-optimization/57193
17446         * opts.c (default_options_table): Add OPT_frename_registers at -O2
17447         and above.
17448         * doc/invoke.texi (-frename-registers, -O2): Update documentation.
17450 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
17452         * tree-if-conv.c (any_pred_load_store): New static variable.
17453         (if_convertible_gimple_assign_stmt_p): Remove parameter.  Use
17454         any_pred_load_store instead of and_mask_load_store.
17455         (if_convertible_stmt_p, if_convertible_loop_p_1): Ditto.
17456         (if_convertible_loop_p, insert_gimplified_predicates): Ditto.
17457         (combine_blocks, tree_if_conversion): Ditto.
17459 2016-04-26  Bin Cheng  <bin.cheng@arm.com>
17461         PR tree-optimization/70771
17462         PR tree-optimization/70775
17463         * tree-if-conv.c (if_convertible_phi_p): Remove check on special
17464         virtual PHI nodes.  Delete parameter.
17465         (if_convertible_loop_p_1): Delete argument to above function.
17466         (predicate_all_scalar_phis): Delete code handling single-argument
17467         PHIs.
17468         (tree_if_conversion): Mark and update virtual SSA.
17470 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17472         PR target/61821
17473         * config/i386/i386.c (LARGECOMM_SECTION_ASM_OP): Define default.
17474         (x86_elf_aligned_common): Rename to ...
17475         (x86_elf_aligned_decl_common): ... this.
17476         Add decl arg.  Switch to .lbss for largecomm object.  Use
17477         LARGECOMM_SECTION_ASM_OP.
17478         * config/i386/i386-protos.h (x86_elf_aligned_common): Reflect
17479         renaming.
17480         * config/i386/x86-64.h (ASM_OUTPUT_ALIGNED_COMMON): Rename to ...
17481         (ASM_OUTPUT_ALIGNED_DECL_COMMON): ... this.
17482         Pass new decl arg.
17483         * config/i386/sol2.h (ASM_OUTPUT_ALIGNED_COMMON): Likewise.
17484         [!USE_GAS] (LARGECOMM_SECTION_ASM_OP): Define.
17486 2016-04-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17488         PR target/59407
17489         * config/i386/i386.c (SECTION_LARGE): Define.
17490         (x86_64_elf_select_section): Set it for large data/bss sections.
17491         Only clear SECTION_WRITE for .lrodata.
17492         (x86_64_elf_section_type_flags): Set SECTION_LARGE for large
17493         data/bss sections.
17494         * config/i386/sol2.h (MACH_DEP_SECTION_ASM_FLAG): Define.
17495         * varasm.c (default_elf_asm_named_section): Grow flagchars.
17496         [MACH_DEP_SECTION_ASM_FLAG] Emit MACH_DEP_SECTION_ASM_FLAG for
17497         SECTION_MACH_DEP.
17498         * doc/tm.texi.in (Sections, MACH_DEP_SECTION_ASM_FLAG): Describe.
17499         * doc/tm.texi: Regenerate.
17501 2016-04-26  Jakub Jelinek  <jakub@redhat.com>
17503         PR bootstrap/70704
17504         * configure.ac (--enable-checking): Document extra flag, for
17505         non-release builds default to --enable-checking=yes,extra.
17506         If misc checking and extra checking, define CHECKING_P to 2 instead
17507         of 1.
17508         * common.opt (fchecking=): Add.
17509         * doc/invoke.texi (-fchecking=): Document.
17510         * doc/install.texi: Document --enable-checking changes.
17511         * configure: Regenerated.
17512         * config.in: Regenerated.
17514 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17516         * config/i386/i386.md (*movxi_internal_avx512f): Use insn type
17517         attribute instead of which_alternative.
17518         * config/i386/sse.md (*mov<mode>_internal): Ditto.
17519         Use EXT_REX_SSE_REG_P where appropriate.
17521 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17523         * config/i386/predicates.md (const0_operand): Do not match
17524         const_wide_int code.
17525         (const1_operand): Ditto.
17527 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17529         * config/i386/i386.md (*movoi_internal_avx): Set mode attribute to XI
17530         for SSE constm1 operands and TARGET_AVX512VL.
17531         (*movti_internal): Ditto.
17532         (*mov<mode>_or): Use constm1_operand predicate.
17533         * config/i386/sse.md (*mov<mode>_internal): Set mode attribute to XI
17534         for SSE vector_all_ones operands and TARGET_AVX512VL.
17535         * config/i386/predicates.md (constm1_operand): New predicate.
17536         * config/i386/i386.c (standard_sse_constant_opcode): Simplify
17537         emission of constant -1 load.
17539 2016-04-25  Jason Merrill  <jason@redhat.com>
17541         * gdbinit.in: Skip is-a.h.
17543         * attribs.c (register_scoped_attributes): Fix logic.
17544         * attribs.h: Declare register_scoped_attributes.
17546 2016-04-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
17548         * config/rs6000/rs6000-builtin.def: Correct pasto error for
17549         stxvd2x and stxvw4x built-in functions.
17551 2016-04-25  DJ Delorie  <dj@redhat.com>
17553         * config/msp430/msp430.md (ashlhi3): Optimize one bit shifts.
17554         (ashrhi3): Likewise.
17555         (lshrhi3): Likewise.
17557 2016-04-25  Richard Biener  <rguenther@suse.de>
17559         PR tree-optimization/70780
17560         * tree-ssa-pre.c (compute_antic_aux): Also return true if the block
17561         wasn't visited yet.
17562         (compute_antic): Mark blocks with abnormal preds as visited as
17563         they have a final empty antic-in solution already.
17565 2016-04-25  Michael Collison  <michael.collison@linaro.org>
17567         * ChangeLog(2016-04-25): Fix ChangeLog formatting.
17569 2016-04-25  Michael Collison  <michael.collison@linaro.org>
17571         * config/arm/neon.md (widen_<us>sum<mode>): New patterns where
17572         mode is VQI to improve mixed mode vectorization.
17573         * config/arm/neon.md (vec_sel_widen_ssum_lo<VQI:mode><VW:mode>3): New
17574         define_insn to match low half of signed vaddw.
17575         * config/arm/neon.md (vec_sel_widen_ssum_hi<VQI:mode><VW:mode>3): New
17576         define_insn to match high half of signed vaddw.
17577         * config/arm/neon.md (vec_sel_widen_usum_lo<VQI:mode><VW:mode>3): New
17578         define_insn to match low half of unsigned vaddw.
17579         * config/arm/neon.md (vec_sel_widen_usum_hi<VQI:mode><VW:mode>3): New
17580         define_insn to match high half of unsigned vaddw.
17581         * config/arm/arm.c (arm_simd_vect_par_cnst_half): New function.
17582         (arm_simd_check_vect_par_cnst_half_p): Likewise.
17583         * config/arm/arm-protos.h (arm_simd_vect_par_cnst_half): Prototype
17584         for new function.
17585         (arm_simd_check_vect_par_cnst_half_p): Likewise.
17586         * config/arm/predicates.md (vect_par_constant_high): Support
17587         big endian and simplify by calling
17588         arm_simd_check_vect_par_cnst_half
17589         (vect_par_constant_low): Likewise.
17591 2016-04-25  Uros Bizjak  <ubizjak@gmail.com>
17593         * config/i386/i386.md (*lea<mode>_general_4): Use const_0_to_3_operand
17594         predicate for operand 2.
17596 2016-04-24  Uros Bizjak  <ubizjak@gmail.com>
17597             H.J. Lu  <hongjiu.lu@intel.com>
17599         * config/i386/i386-protos.h (standard_sse_constant_p): Add
17600         machine_mode argument.
17601         * config/i386/i386.c (standard_sse_constant_p): Return 2 for
17602         constm1_rtx operands.  For VOIDmode constants, get mode from
17603         pred_mode.  Check mode size if the mode is supported by ABI.
17604         (standard_sse_constant_opcode): Do not use standard_constant_p.
17605         Strictly check ABI support for all-ones operands.
17606         (ix86_legitimate_constant_p): Handle TImode, OImode and XImode
17607         immediates. Update calls to standard_sse_constant_p.
17608         (ix86_expand_vector_move): Update calls to standard_sse_constant_p.
17609         (ix86_rtx_costs): Ditto.
17610         * config/i386/i386.md (*movxi_internal_avx512f): Use
17611         nonimmediate_or_sse_const_operand instead of vector_move_operand.
17612         Use (v,BC) alternative instead of (v,C). Use register_operand
17613         checks instead of MEM_P.
17614         (*movoi_internal_avx): Use nonimmediate_or_sse_const_operand instead
17615         of vector_move_operand.  Add (v,BC) alternative and corresponding avx2
17616         isa attribute.  Use register_operand checks instead of MEM_P.
17617         (*movti_internal): Use nonimmediate_or_sse_const_operand for
17618         TARGET_SSE.  Improve TARGET_SSE insn constraint.  Add (v,BC)
17619         alternative and corresponding sse2 isa attribute.
17620         (*movtf_internal, *movdf_internal, *movsf_interal): Update calls
17621         to standard_sse_constant_p.
17622         (FP constant splitters): Ditto.
17623         * config/i386/constraints.md (BC): Do not use standard_sse_constant_p.
17624         (C): Ditto.
17625         * config/i386/predicates.md (constm1_operand): Remove.
17626         (nonimmediate_or_sse_const_operand): Rewrite using RTX.
17627         * config/i386/sse.md (*<avx512>_cvtmask2<ssemodesuffix><mode>): Use
17628         vector_all_ones_operand instead of constm1_operand.
17630 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17632         * print-rtl.c (print_rtx_insn_vec): New function.
17633         * print-rtl.h: New prototype.
17634         * store-motion.c (struct st_expr): Make avail_stores a vector.
17635         (st_expr_entry): Adjust.
17636         (free_st_expr_entry): Likewise.
17637         (print_store_motion_mems): Likewise.
17638         (find_moveable_store): Likewise.
17639         (compute_store_table): Likewise.
17640         (delete_store): Likewise.
17641         (build_store_vectors): Likewise.
17643 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17645         * reorg.c (try_merge_delay_insns): Make merged_insns a vector.
17647 2016-04-24  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
17649         * vec.h (vec_safe_contains): New function.
17650         (vec::contains): Likewise.
17651         (vec::begin): Likewise.
17652         (vec::end): Likewise.
17654 2016-04-23  Jakub Jelinek  <jakub@redhat.com>
17656         PR sanitizer/70712
17657         * cfgexpand.c (expand_stack_vars): Fix typo.
17659 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17661         * system.h (list, map, set, vector): Include conditionally.
17662         * auto-profile.c (INCLUDE_MAP, INCLUDE_SET): Define.
17663         * graphite-isl-ast-to-gimple.c (INCLUDE_MAP): Define.
17664         * ipa-icf.c (INCLUDE_LIST): Define.
17665         * config/aarch64/cortex-a57-fma-steering.c (INCLUDE_LIST): Define.
17666         * config/sh/sh.c (INCLUDE_VECTOR): Define.
17667         * config/sh/sh_treg_combine.cc (INCLUDE_ALGORITHM): Define.
17668         (INCLUDE_LIST, INCLUDE_VECTOR): Define.
17669         * cp/logic.cc (INCLUDE_LIST): Define.
17670         * fortran/trans-common.c (INCLUDE_MAP): Define.
17672 2016-04-22  Szabolcs Nagy  <szabolcs.nagy@arm.com>
17674         * auto-profile.c: Remove <string.h> include.
17675         * ipa-icf-gimple.c: Remove <list> include.
17676         * diagnostic.c: Remove <new> include.
17677         * genmatch.c: Likewise.
17678         * pretty-print.c: Likewise.
17679         * toplev.c: Likewise
17680         * c/c-objc-common.c: Likewise.
17681         * cp/error.c: Likewise.
17682         * fortran/error.c: Likewise.
17684 2016-04-22  Richard Biener  <rguenther@suse.de>
17686         * lto-streamer-in.c (input_ssa_names): Do not allocate
17687         GIMPLE_NOP for all SSA names.
17688         * lto-streamer-out.c (output_ssa_names): Do not output
17689         SSA names that should have been released.
17691 2016-04-22  Richard Biener  <rguenther@suse.de>
17693         PR tree-optimization/70740
17694         * tree-ssa-phiprop.c (propagate_with_phi): Handle inserted
17695         VDEF.
17697 2016-04-21  H.J. Lu  <hongjiu.lu@intel.com>
17699         PR target/70750
17700         * config/i386/predicates.md (call_insn_operand): Replace
17701         sibcall_memory_operand with memory_operand.
17703 2016-04-21  Patrick Palka  <ppalka@gcc.gnu.org>
17705         * tree-vrp.c (register_edge_assert_for_2): Remove redundant
17706         has_single_use() tests.
17707         (register_edge_assert_for_1): Likewise.
17708         (find_assert_locations_1): Check the liveness bitmap instead of
17709         checking has_single_use().
17711 2016-04-21  Kirill Yukhin  <kirill.yukhin@intel.com>
17713         PR target/70728
17714         * config/i386/sse.md (define_insn "<shift_insn><mode>3<mask_name>"):
17715         Extract AVX-512BW constraint from AVX.
17717 2016-04-21  Richard Biener  <rguenther@suse.de>
17719         PR tree-optimization/70725
17720         * tree-if-conv.c (if_convertible_phi_p): Adjust guard
17721         for phi_convertible_by_degenerating_args.
17722         (predicate_all_scalar_phis): Handle single-argument PHIs.
17724 2016-04-21  Richard Biener  <rguenther@suse.de>
17726         PR middle-end/70747
17727         * fold-const.c (fold_comparison): Return properly typed
17728         constant boolean.
17730 2016-04-21  Bin Cheng  <bin.cheng@arm.com>
17732         PR tree-optimization/70715
17733         * tree-ssa-loop-niter.c (loop_exits_before_overflow): Check equality
17734         after expanding BASE using expand_simple_operations.
17736 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
17738         * match.pd (min(-x, -y), max(-x, -y), min(~x, ~y), max(~x, ~y)):
17739         New transformations.
17741 2016-04-21  Marc Glisse  <marc.glisse@inria.fr>
17743         * match.pd (min(int_max, x), max(int_min, x)): New transformations.
17745 2016-04-20  Jan Hubicka  <jh@suse.cz>
17747         * ipa-inline.c (can_inline_edge_p): Pass caller info to
17748         ultiimate_alias_target.
17749         (update_callee_keys): Likewise.
17750         (lookup_recursive_calls): Likewise.
17751         (speculation_useful_p): Likewise.
17753 2016-04-20  Jan Hubicka  <jh@suse.cz>
17755         PR ipa/70018
17756         * cgraph.c (cgraph_set_nothrow_flag_1): Rename to ...
17757         (set_nothrow_flag_1): ... this; handle interposition correctly;
17758         recurse on aliases and thunks.
17759         (cgraph_node::set_nothrow_flag): New.
17760         * ipa-pure-const.c (ignore_edge_for_nothrow): Ignore calls to
17761         functions compiled with non-call exceptions that binds to current
17762         def.
17763         (propagate_nothrow): Be safe WRT interposition.
17764         * cgraph.h (set_nothrow_flag): Update prototype.
17766 2016-04-18  Jan Hubicka  <jh@suse.cz>
17768         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
17769         max_loop_iterations_int.
17770         (tree_unswitch_outer_loop): Likewise.
17772 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17774         PR tree-optimization/69489
17775         * tree-if-conv.c (phi_convertible_by_degenerating_args): New.
17776         (if_convertible_phi_p): Call phi_convertible_by_degenerating_args.
17777         Revise dump message.
17778         (if_convertible_bb_p): Remove check on edge count of basic block's
17779         predecessors.
17781 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17783         PR tree-optimization/56625
17784         PR tree-optimization/69489
17785         * tree-data-ref.h (DR_INNERMOST): New macro.
17786         * tree-if-conv.c (innermost_loop_behavior_hash): New class for
17787         hashing struct innermost_loop_behavior.
17788         (ref_DR_map): Remove.
17789         (innermost_DR_map): New map.
17790         (baseref_DR_map): Revise comment.
17791         (hash_memrefs_baserefs_and_store_DRs_read_written_info): Store DR
17792         to innermost_DR_map accroding to its innermost loop behavior.
17793         (ifcvt_memrefs_wont_trap): Get DR from innermost_DR_map according
17794         to its innermost loop behavior.
17795         (if_convertible_loop_p_1): Remove intialization for ref_DR_map.
17796         Add initialization for innermost_DR_map.  Record memory reference
17797         in DR_BASE_ADDRESS if the reference is compound one or it doesn't
17798         have innermost loop behavior.
17799         (if_convertible_loop_p): Remove release for ref_DR_map.  Release
17800         innermost_DR_map.
17802 2016-04-20  Uros Bizjak  <ubizjak@gmail.com>
17804         * config/i386/i386.md (*lea<mode>_general_1): Rename from
17805         *lea_general_1.  Use explicit SWI12 mode interator.
17806         (*lea<mode>_general_2): Rename from *lea_general_2.
17807         Use explicit SWI12 mode interator.
17808         (*lea<mode>_general_3): Rename from *lea_general_3.
17809         Use explicit SWI12 mode interator.
17810         (*lea<SWI12:mode>_general_4): Split from *lea_general_4.
17811         Use explicit SWI12 mode interator.
17812         (*lea<SWI48:mode>_general_4): Split from *lea_general_4.
17813         Use explicit SWI48 mode interator.
17815 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17817         * config/i386/i386.c (ix86_avx256_split_vector_move_misalign):
17818         Short-cut unaligned load and store cases.  Handle all integer
17819         vector modes.
17820         (ix86_expand_vector_move_misalign): Short-cut unaligned load
17821         and store cases.  Call ix86_avx256_split_vector_move_misalign
17822         directly without checking mode class.
17824 2016-04-20  Andrew Pinski  <apinski@cavium.com>
17825             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
17827         PR target/64971
17828         * config/aarch64/aarch64.md (sibcall): Force call
17829         address to be DImode for ILP32.
17830         (sibcall_value): Likewise.
17832 2016-04-20  H.J. Lu  <hongjiu.lu@intel.com>
17834         * doc/invoke.texi: Replace -skip-rax-setup with -mskip-rax-setup.
17836 2016-04-20  Richard Biener  <rguenther@suse.de>
17838         * gimple-match.h (maybe_build_generic_op): Adjust prototype.
17839         * gimple-match-head.c (maybe_build_generic_op): Pass all ops
17840         by reference, clear op1 and op2 when GENERICizing BIT_FIELD_REF.
17841         (maybe_push_res_to_seq): Adjust.
17842         * gimple-fold.c (maybe_build_generic_op): Likewise.
17844 2016-04-20  Marek Polacek  <polacek@redhat.com>
17846         * tree-if-conv.c (is_false_predicate): For NULL_TREE return false
17847         rather than true.
17849 2016-04-20  Ilya Enkovich  <ilya.enkovich@intel.com>
17851         * config/i386/sse.md (vec_unpacks_lo_hi): Always
17852         use kmovw to support AVX512F target.
17854 2016-04-20  Bin Cheng  <bin.cheng@arm.com>
17856         * tree-scalar-evolution.c (interpret_rhs_expr): Handle BIT_AND_EXPR.
17858 2016-04-20  Marek Polacek  <polacek@redhat.com>
17860         PR tree-optimization/70725
17861         * tree-if-conv.c (is_false_predicate): New function.
17862         (predicate_mem_writes): Use it.
17864 2016-04-20  Richard Biener  <rguenther@suse.de>
17866         PR tree-optimization/70726
17867         * tree-vect-stmts.c (vectorizable_shift): Do not use scalar
17868         shift amounts from a pattern stmt operand.
17870 2016-04-20  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
17872         PR target/70674
17873         * config/s390/s390.c (s390_restore_gprs_from_fprs): Pick the new
17874         stack_restore_from_fpr pattern when restoring r15.
17875         (s390_optimize_prologue): Strip away the memory barrier in the
17876         parallel when trying to get rid of restore insns.
17877         * config/s390/s390.md ("stack_restore_from_fpr"): New insn
17878         definition for loading the stack pointer from an FPR.  Compared to
17879         the normal move insn this pattern includes a full memory barrier.
17881 2016-04-19  Jakub Jelinek  <jakub@redhat.com>
17883         PR middle-end/70680
17884         * gimplify.c (gimplify_omp_for): Call omp_notice_variable for
17885         implicitly linear or lastprivate iterator on the outer context.
17887 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
17889         * config/i386/i386.c (ix86_legitimate_combined_insn): Remove
17890         alignment check.
17891         * config/i386/i386.md (ssememalign): Removed.
17892         * config/i386/sse.md: Remove ssememalign attribute from patterns.
17894 2016-04-19  H.J. Lu  <hongjiu.lu@intel.com>
17896         PR target/69201
17897         * config/i386/avx512bwintrin.h (_mm512_mask_loadu_epi16): Pass
17898         const short * to __builtin_ia32_loaddquhi512_mask.
17899         (_mm512_maskz_loadu_epi16): Likewise.
17900         (_mm512_mask_storeu_epi16): Pass short * to
17901         __builtin_ia32_storedquhi512_mask.
17902         (_mm512_mask_loadu_epi8): Pass const char * to
17903         __builtin_ia32_loaddquqi512_mask.
17904         (_mm512_maskz_loadu_epi8): Likewise.
17905         (_mm512_mask_storeu_epi8): Pass char * to
17906         __builtin_ia32_storedquqi512_mask.
17907         * config/i386/avx512fintrin.h (_mm512_loadu_pd): Pass
17908         const double * to __builtin_ia32_loadupd512_mask.
17909         (_mm512_mask_loadu_pd): Likewise.
17910         (_mm512_maskz_loadu_pd): Likewise.
17911         (_mm512_storeu_pd): Pass double * to
17912         __builtin_ia32_storeupd512_mask.
17913         (_mm512_mask_storeu_pd): Likewise.
17914         (_mm512_loadu_ps): Pass const float * to
17915         __builtin_ia32_loadups512_mask.
17916         (_mm512_mask_loadu_ps): Likewise.
17917         (_mm512_maskz_loadu_ps): Likewise.
17918         (_mm512_storeu_ps): Pass float * to
17919         __builtin_ia32_storeups512_mask.
17920         (_mm512_mask_storeu_ps): Likewise.
17921         (_mm512_mask_loadu_epi64): Pass const long long * to
17922         __builtin_ia32_loaddqudi512_mask.
17923         (_mm512_maskz_loadu_epi64): Likewise.
17924         (_mm512_mask_storeu_epi64): Pass long long *
17925         to __builtin_ia32_storedqudi512_mask.
17926         (_mm512_loadu_si512): Pass const int * to
17927         __builtin_ia32_loaddqusi512_mask.
17928         (_mm512_mask_loadu_epi32): Likewise.
17929         (_mm512_maskz_loadu_epi32): Likewise.
17930         (_mm512_storeu_si512): Pass int * to
17931         __builtin_ia32_storedqusi512_mask.
17932         (_mm512_mask_storeu_epi32): Likewise.
17933         * config/i386/avx512vlbwintrin.h (_mm256_mask_storeu_epi8): Pass
17934         char * to __builtin_ia32_storedquqi256_mask.
17935         (_mm_mask_storeu_epi8): Likewise.
17936         (_mm256_mask_loadu_epi16): Pass const short * to
17937         __builtin_ia32_loaddquhi256_mask.
17938         (_mm256_maskz_loadu_epi16): Likewise.
17939         (_mm_mask_loadu_epi16): Pass const short * to
17940         __builtin_ia32_loaddquhi128_mask.
17941         (_mm_maskz_loadu_epi16): Likewise.
17942         (_mm256_mask_loadu_epi8): Pass const char * to
17943         __builtin_ia32_loaddquqi256_mask.
17944         (_mm256_maskz_loadu_epi8): Likewise.
17945         (_mm_mask_loadu_epi8): Pass const char * to
17946         __builtin_ia32_loaddquqi128_mask.
17947         (_mm_maskz_loadu_epi8): Likewise.
17948         (_mm256_mask_storeu_epi16): Pass short * to.
17949         __builtin_ia32_storedquhi256_mask.
17950         (_mm_mask_storeu_epi16): Pass short * to.
17951         __builtin_ia32_storedquhi128_mask.
17952         * config/i386/avx512vlintrin.h (_mm256_mask_loadu_pd): Pass
17953         const double * to __builtin_ia32_loadupd256_mask.
17954         (_mm256_maskz_loadu_pd): Likewise.
17955         (_mm_mask_loadu_pd): Pass onst double * to
17956         __builtin_ia32_loadupd128_mask.
17957         (_mm_maskz_loadu_pd): Likewise.
17958         (_mm256_mask_storeu_pd): Pass double * to
17959         __builtin_ia32_storeupd256_mask.
17960         (_mm_mask_storeu_pd): Pass double * to
17961         __builtin_ia32_storeupd128_mask.
17962         (_mm256_mask_loadu_ps): Pass const float * to
17963         __builtin_ia32_loadups256_mask.
17964         (_mm256_maskz_loadu_ps): Likewise.
17965         (_mm_mask_loadu_ps): Pass const float * to
17966         __builtin_ia32_loadups128_mask.
17967         (_mm_maskz_loadu_ps): Likewise.
17968         (_mm256_mask_storeu_ps): Pass float * to
17969         __builtin_ia32_storeups256_mask.
17970         (_mm_mask_storeu_ps): ass float * to
17971         __builtin_ia32_storeups128_mask.
17972         (_mm256_mask_loadu_epi64): Pass const long long * to
17973         __builtin_ia32_loaddqudi256_mask.
17974         (_mm256_maskz_loadu_epi64): Likewise.
17975         (_mm_mask_loadu_epi64): Pass const long long * to
17976         __builtin_ia32_loaddqudi128_mask.
17977         (_mm_maskz_loadu_epi64): Likewise.
17978         (_mm256_mask_storeu_epi64): Pass long long * to
17979         __builtin_ia32_storedqudi256_mask.
17980         (_mm_mask_storeu_epi64): Pass long long * to
17981         __builtin_ia32_storedqudi128_mask.
17982         (_mm256_mask_loadu_epi32): Pass const int * to
17983         __builtin_ia32_loaddqusi256_mask.
17984         (_mm256_maskz_loadu_epi32): Likewise.
17985         (_mm_mask_loadu_epi32): Pass const int * to
17986         __builtin_ia32_loaddqusi128_mask.
17987         (_mm_maskz_loadu_epi32): Likewise.
17988         (_mm256_mask_storeu_epi32): Pass int * to
17989         __builtin_ia32_storedqusi256_mask.
17990         (_mm_mask_storeu_epi32): Pass int * to
17991         __builtin_ia32_storedqusi128_mask.
17992         * config/i386/i386-builtin-types.def (PCSHORT): New.
17993         (PINT64): Likewise.
17994         (V64QI_FTYPE_PCCHAR_V64QI_UDI): Likewise.
17995         (V32HI_FTYPE_PCSHORT_V32HI_USI): Likewise.
17996         (V32QI_FTYPE_PCCHAR_V32QI_USI): Likewise.
17997         (V16SF_FTYPE_PCFLOAT_V16SF_UHI): Likewise.
17998         (V8DF_FTYPE_PCDOUBLE_V8DF_UQI): Likewise.
17999         (V16SI_FTYPE_PCINT_V16SI_UHI): Likewise.
18000         (V16HI_FTYPE_PCSHORT_V16HI_UHI): Likewise.
18001         (V16QI_FTYPE_PCCHAR_V16QI_UHI): Likewise.
18002         (V8SF_FTYPE_PCFLOAT_V8SF_UQI): Likewise.
18003         (V8DI_FTYPE_PCINT64_V8DI_UQI): Likewise.
18004         (V8SI_FTYPE_PCINT_V8SI_UQI): Likewise.
18005         (V8HI_FTYPE_PCSHORT_V8HI_UQI): Likewise.
18006         (V4DF_FTYPE_PCDOUBLE_V4DF_UQI): Likewise.
18007         (V4SF_FTYPE_PCFLOAT_V4SF_UQI): Likewise.
18008         (V4DI_FTYPE_PCINT64_V4DI_UQI): Likewise.
18009         (V4SI_FTYPE_PCINT_V4SI_UQI): Likewise.
18010         (V2DF_FTYPE_PCDOUBLE_V2DF_UQI): Likewise.
18011         (V2DI_FTYPE_PCINT64_V2DI_UQI): Likewise.
18012         (VOID_FTYPE_PDOUBLE_V8DF_UQI): Likewise.
18013         (VOID_FTYPE_PDOUBLE_V4DF_UQI): Likewise.
18014         (VOID_FTYPE_PDOUBLE_V2DF_UQI): Likewise.
18015         (VOID_FTYPE_PFLOAT_V16SF_UHI): Likewise.
18016         (VOID_FTYPE_PFLOAT_V8SF_UQI): Likewise.
18017         (VOID_FTYPE_PFLOAT_V4SF_UQI): Likewise.
18018         (VOID_FTYPE_PINT64_V8DI_UQI): Likewise.
18019         (VOID_FTYPE_PINT64_V4DI_UQI): Likewise.
18020         (VOID_FTYPE_PINT64_V2DI_UQI): Likewise.
18021         (VOID_FTYPE_PINT_V16SI_UHI): Likewise.
18022         (VOID_FTYPE_PINT_V8SI_UHI): Likewise.
18023         (VOID_FTYPE_PINT_V4SI_UHI): Likewise.
18024         (VOID_FTYPE_PSHORT_V32HI_USI): Likewise.
18025         (VOID_FTYPE_PSHORT_V16HI_UHI): Likewise.
18026         (VOID_FTYPE_PSHORT_V8HI_UQI): Likewise.
18027         (VOID_FTYPE_PCHAR_V64QI_UDI): Likewise.
18028         (VOID_FTYPE_PCHAR_V32QI_USI): Likewise.
18029         (VOID_FTYPE_PCHAR_V16QI_UHI): Likewise.
18030         (V64QI_FTYPE_PCV64QI_V64QI_UDI): Removed.
18031         (V32HI_FTYPE_PCV32HI_V32HI_USI): Likewise.
18032         (V32QI_FTYPE_PCV32QI_V32QI_USI): Likewise.
18033         (V16HI_FTYPE_PCV16HI_V16HI_UHI): Likewise.
18034         (V16QI_FTYPE_PCV16QI_V16QI_UHI): Likewise.
18035         (V8HI_FTYPE_PCV8HI_V8HI_UQI): Likewise.
18036         (VOID_FTYPE_PV32HI_V32HI_USI): Likewise.
18037         (VOID_FTYPE_PV16HI_V16HI_UHI): Likewise.
18038         (VOID_FTYPE_PV8HI_V8HI_UQI): Likewise.
18039         (VOID_FTYPE_PV64QI_V64QI_UDI): Likewise.
18040         (VOID_FTYPE_PV32QI_V32QI_USI): Likewise.
18041         (VOID_FTYPE_PV16QI_V16QI_UHI): Likewise.
18042         * config/i386/i386.c (ix86_emit_save_reg_using_mov): Don't
18043         use UNSPEC_STOREU.
18044         (ix86_emit_restore_sse_regs_using_mov): Don't use UNSPEC_LOADU.
18045         (ix86_avx256_split_vector_move_misalign): Don't use unaligned
18046         load nor store.
18047         (ix86_expand_vector_move_misalign): Likewise.
18048         (bdesc_special_args): Use CODE_FOR_movvNXY_internal and pointer
18049         to scalar function prototype for unaligned load/store builtins.
18050         (ix86_expand_special_args_builtin): Updated.
18051         * config/i386/sse.md (UNSPEC_LOADU): Removed.
18052         (UNSPEC_STOREU): Likewise.
18053         (VI_ULOADSTORE_BW_AVX512VL): Likewise.
18054         (VI_ULOADSTORE_F_AVX512VL): Likewise.
18055         (ssescalarsize): Handle V4TI, V2TI and V1TI.
18056         (<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18057         (*<sse>_loadu<ssemodesuffix><avxsizesuffix><mask_name>): Likewise.
18058         (<sse>_storeu<ssemodesuffix><avxsizesuffix>): Likewise.
18059         (<avx512>_storeu<ssemodesuffix><avxsizesuffix>_mask): Likewise.
18060         (<sse2_avx_avx512f>_loaddqu<mode><mask_name>): Likewise.
18061         (*<sse2_avx_avx512f>_loaddqu<mode><mask_name>"): Likewise.
18062         (sse2_avx_avx512f>_storedqu<mode>): Likewise.
18063         (<avx512>_storedqu<mode>_mask): Likewise.
18064         (*sse4_2_pcmpestr_unaligned): Likewise.
18065         (*sse4_2_pcmpistr_unaligned): Likewise.
18066         (*mov<mode>_internal): Renamed to ...
18067         (mov<mode>_internal): This.  Remove check of AVX and IAMCU on
18068         misaligned operand.  Replace vmovdqu64 with vmovdqu<ssescalarsize>.
18069         (movsd/movhpd to movupd peephole): Don't use UNSPEC_LOADU.
18070         (movlpd/movhpd to movupd peephole): Don't use UNSPEC_STOREU.
18072 2016-04-19  Richard Biener  <rguenther@suse.de>
18074         PR tree-optimization/70171
18075         * tree-ssa-phiprop.c: Include stor-layout.h.
18076         (phiprop_insert_phi): Handle the aggregate copy case.
18077         (propagate_with_phi): Likewise.
18079 2016-04-19  Uros Bizjak  <ubizjak@gmail.com>
18081         * config/i386/i386.c (ix86_decompose_address): Use lowpart_subreg
18082         instead of simplify_gen_subreg (... , 0).
18083         (ix86_delegitimize_address): Ditto.
18084         (ix86_split_divmod): Ditto.
18085         (ix86_split_copysign_const): Ditto.
18086         (ix86_split_copysign_var): Ditto.
18087         (ix86_expand_args_builtin): Ditto.
18088         (ix86_expand_round_builtin): Ditto.
18089         (ix86_expand_special_args_builtin): Ditto.
18090         * config/i386/i386.md (TARGET_USE_VECTOR_FP_CONVERTS splitters): Ditto.
18091         (TARGET_SSE_PARTIAL_REG_DEPENDENCY splitters and peephole2s): Ditto.
18092         (udivmodqi4): Ditto.
18093         (absneg splitters): Ditto.
18094         (*jcc_bt<mode>_1): Ditto.
18096 2016-04-19  Richard Biener  <rguenther@suse.de>
18098         PR tree-optimization/70724
18099         * tree-ssa-sccvn.c (scc_vn_restore_ssa_info): Split SSA info
18100         restoring out from ...
18101         (free_scc_vn): ... here.
18102         * tree-ssa-sccvn.h (scc_vn_restore_ssa_info): Declare.
18103         * tres-ssa-pre.c (pass_pre::execute): Restore SSA info before
18104         tail merging.
18105         (pass_fre::execute): Restore SSA info.
18107 2016-04-19  Richard Biener  <rguenther@suse.de>
18109         * gimple-walk.h (struct walk_stmt_info): Add stmt member.
18110         * gimple-walk.c (walk_gimple_op): Initialize it.
18111         (walk_gimple_asm): Set wi->is_lhs before each callback invocation.
18112         * tree-inline.c (remap_gimple_op_r): Set SSA_NAME_DEF_STMT when
18113         remapping SSA names of defs.
18114         (copy_bb): Remove walk over all SSA defs and SSA_NAME_DEF_STMT
18115         adjustment.
18117 2016-04-18  Vladimir Makarov  <vmakarov@redhat.com>
18119         PR middle-end/70689
18120         * lra-constraints.c (equiv_substition_p): New.
18121         (process_alt_operands): Use it.
18122         (swap_operands): Swap it.
18123         (curr_insn_transform): Update it.
18125 2016-04-18  Michael Matz  <matz@suse.de>
18127         * tree.h (TYPE_ALIGN, DECL_ALIGN): Return shifted amount.
18128         (SET_TYPE_ALIGN, SET_DECL_ALIGN): New.
18129         * tree-core.h (tree_type_common.align): Use bit-field.
18130         (tree_type_common.spare): New.
18131         (tree_decl_common.off_align): Make smaller.
18132         (tree_decl_common.align): Use bit-field.
18134         * expr.c (expand_expr_addr_expr_1): Use SET_TYPE_ALIGN.
18135         * omp-low.c (install_var_field): Use SET_DECL_ALIGN.
18136         (scan_sharing_clauses): Ditto.
18137         (finish_taskreg_scan): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18138         (omp_finish_file): Ditto.
18139         * stor-layout.c (do_type_align): Use SET_DECL_ALIGN.
18140         (layout_decl): Ditto.
18141         (relayout_decl): Ditto.
18142         (finalize_record_size): Use SET_TYPE_ALIGN.
18143         (finalize_type_size): Ditto.
18144         (finish_builtin_struct): Ditto.
18145         (layout_type): Ditto.
18146         (initialize_sizetypes): Ditto.
18147         * targhooks.c (std_gimplify_va_arg_expr): Use SET_TYPE_ALIGN.
18148         * tree-nested.c (insert_field_into_struct): Use SET_TYPE_ALIGN.
18149         (lookup_field_for_decl): Use SET_DECL_ALIGN.
18150         (get_chain_field): Ditto.
18151         (get_trampoline_type): Ditto.
18152         (get_nl_goto_field): Ditto.
18153         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18154         SET_DECL_ALIGN.
18155         (unpack_ts_type_common_value_fields): Use SET_TYPE_ALIGN.
18156         * gimple-expr.c (copy_var_decl): Use SET_DECL_ALIGN.
18157         * tree.c (make_node_stat): Use SET_DECL_ALIGN and SET_TYPE_ALIGN.
18158         (build_qualified_type): Use SET_TYPE_ALIGN.
18159         (build_aligned_type, build_range_type_1): Ditto.
18160         (build_atomic_base): Ditto.
18161         (build_common_tree_nodes): Ditto.
18162         * cfgexpand.c (align_local_variable): Use SET_DECL_ALIGN.
18163         (expand_one_stack_var_at): Ditto.
18164         * coverage.c (build_var): Use SET_DECL_ALIGN.
18165         * except.c (init_eh): Ditto.
18166         * function.c (assign_parm_setup_block): Ditto.
18167         * symtab.c (increase_alignment_1): Ditto.
18168         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Ditto.
18169         * tree-vect-stmts.c (ensure_base_align): Ditto.
18170         * varasm.c (align_variable): Ditto.
18171         (assemble_variable): Ditto.
18172         (build_constant_desc): Ditto.
18173         (output_constant_def_contents): Ditto.
18175         * config/arm/arm.c (arm_relayout_function): Use SET_DECL_ALIGN.
18176         * config/avr/avr.c (avr_adjust_type_node): Use SET_TYPE_ALIGN.
18177         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Ditto.
18178         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Ditto.
18179         * config/spu/spu.c (spu_build_builtin_va_list): Use SET_DECL_ALIGN.
18181 2016-04-18  H.J. Lu  <hongjiu.lu@intel.com>
18183         PR target/70708
18184         * config/i386/sse.md (sse2_loadlpd): Accept load from "xm" and
18185         replace %vmovsd with "%vmovq".
18186         (vec_concatv2df): Likewise.
18188 2016-04-18  Uros Bizjak  <ubizjak@gmail.com>
18190         * config/i386/mmx.md (*vec_extractv2sf_0): Use gen_lowpart.
18191         (*vec_extractv2si_0): Ditto.
18192         * config/i386/sse.md (*vec_extractv4sf_0): Ditto.
18193         (zero_extended_scalar_load_operand splitters): Ditto.
18194         (vec_extract splitters): Ditto.
18195         (*vec_extractv4si_0_zext): Ditto.
18196         (avx_<castmode><avxsizesuffix>_<castmode>): Use gen_lowpart
18197         and lowpart_subreg.
18198         (avx512f_<castmode><avxsizesuffix>_<castmode>): Ditto.
18199         (avx512f_<castmode><avxsizesuffix>_256<castmode>): Ditto.
18200         (*sse4_1_extractps): Use lowpart_subreg.
18201         * config/i386/i386.md (x87 floatsplitter): Use gen_lowpart.
18203 2016-04-18  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18205         * doc/install.texi (Specific, i?86-*-solaris2.10): Update gas and
18206         gld requirements.
18207         (Specific, *-*-solaris2*): Update Solaris 11 bundled gcc versions.
18208         Mention Solaris 11 packaging changes.
18209         Update gas and gld requirements.
18210         Remove reference to pre-Solaris 10 bug.
18211         (Specific, sparc-sun-solaris2*): Remove reference to pre-Solaris 10
18212         systems and bugs.
18213         (Specific, sparc64-*-solaris2*): Remove reference to bootstrap
18214         with cc.
18216 2016-04-17  Jan Hubicka  <jh@suse.cz>
18218         * tree-ssa-loop-ivopts.c (avg_loop_niter): Use also
18219         max_loop_iterations_int.
18221 2016-04-18  Richard Biener  <rguenther@suse.de>
18223         PR tree-optimization/43434
18224         * tree-ssa-structalias.c (struct vls_data): New.
18225         (visit_loadstore): Handle all pointer-based accesses.
18226         (compute_dependence_clique): Compute a bitmap of restrict tags
18227         assigned bases and pass it to visit_loadstore.
18229 2016-04-18  Matthew Wahab  <matthew.wahab@arm.com>
18231         PR target/70711
18232         * config/arm/bpabi.h (BE8_LINK_SPEC): Add entries for armv8+crc,
18233         armv8.1-a and armv8.1-a+crc.
18235 2016-04-18  Richard Biener  <rguenther@suse.de>
18237         PR tree-optimization/70701
18238         * tree-ssa-sccvn.c (vn_reference_lookup_3): Resolve fully constant
18239         references after translating through a memcpy.
18241 2016-04-18  Richard Biener  <rguenther@suse.de>
18243         * tree-ssa-pre.c (postorder, postorder_num): Make locals ...
18244         (compute_antic): ... here.  For partial antic use regular
18245         postorder and scrap iteration.
18246         (compute_partial_antic_aux): Remove unused return value.
18247         (init_pre): Do not allocate postorder.
18248         (fini_pre): Do not free postorder.
18250 2016-04-18  Richard Biener  <rguenther@suse.de>
18252         PR middle-end/37870
18253         * expmed.c (extract_bit_field_1): Remove broken case
18254         using a wider MODE_INT mode.
18256 2016-04-18  Segher Boessenkool  <segher@kernel.crashing.org>
18258         * has-brig.c (lendian16): Don't try to use __builtin_bswap16
18259         unless compiling with at least GCC-4.8.
18261 2016-04-17  Jan Hubicka  <jh@suse.cz>
18263         PR bootstrap/70706
18264         * graphite.c (graphite_finalize): Update call to
18265         tree_estimate_probability.
18266         * predict.h (tree_estimate_probability): Update prototype.
18268 2016-04-17  Jan Hubicka  <jh@suse.cz>
18270         * predict.c (combine_predictions_for_bb): Add dry_run parmaeter.
18271         (tree_estimate_probability): Likewise.
18272         (pass_profile::execute): Update.
18273         (report_predictor_hitrates): New function.
18274         * profile.c (compute_branch_probabilities): Use it.
18275         * predict.h (report_predictor_hitrates): Declare.
18277 2016-04-17  Jan Hubicka  <jh@suse.cz>
18279         PR ipa/70018
18280         * cgraph.h (cgraph_node::set_const_flag,
18281         cgraph_node::set_pure_flag): Update prototype to return bool;
18282         update comment.
18283         * cgraph.c (cgraph_node::call_for_symbol_thunks_and_aliases): Thunks
18284         of interposable symbol are interposable, too.
18285         (cgraph_set_const_flag_1): Rename to ...
18286         (set_const_flag_1): ... this one; change to self recursive function
18287         instead of call_for_symbol_thunks_and_aliases. Handle correctly
18288         clearnig the flag in all variants and also virtual thunks of const
18289         functions are pure; track if any change was done.
18290         (cgraph_node::set_const_flag): Update.
18291         (struct set_pure_flag_info): New struct.
18292         (cgraph_set_pure_flag_1): Rename to ...
18293         (set_pure_flag_1): ... this one; take set_pure_flag_info parameter
18294         rather than pointer encoded flags; track if any changes was done;
18295         handle correctly clearning flag and setting flag of aliases already
18296         declared const.
18297         (cgraph_node::set_pure_flag): Update.
18298         (cgraph_node::set_nothrow_flag): Handle correctly clearning the flag.
18300 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18302         PR other/70433
18303         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Escape
18304         backslash in label.
18306 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18308         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Classify chars
18309         '{}<> ' as escape-for-record.
18311 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18313         * pretty-print.c (pp_write_text_as_dot_label_to_stream): Simplify loop
18314         structure.
18316 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18318         PR other/70185
18319         * tree-pass.h (class opt_pass): Remove graph_dump_initialized member.
18320         * dumpfile.h (struct dump_file_info): Add graph_dump_initialized field.
18321         * dumpfile.c (dump_files): Initialize graph_dump_initialized field.
18322         * passes.c (finish_optimization_passes): Only call
18323         finish_graph_dump_file if dfi->graph_dump_initialized.
18324         (execute_function_dump, pass_init_dump_file): Use
18325         dfi->graph_dump_initialized instead of pass->graph_dump_initialized.
18327 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18329         PR tree-optimization/70256
18330         * tree-ssa-structalias.c (dump_varinfo, debug_varinfo, dump_varmap)
18331         (debug_varmap): New function.
18333 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18335         PR other/70183
18336         * passes.c (pass_manager::register_pass): Propagate pflags.
18338 2016-04-17  Tom de Vries  <tom@codesourcery.com>
18340         PR other/68875
18341         * pass_manager.h (TERMINATE_PASS_LIST): Add pass argument.
18342         * passes.c (pass_manager::pass_manager): Declare and init p_start in
18343         INSERT_PASSES_AFTER.  Add pass parameter to TERMINATE_PASS_LIST, and
18344         check if it's equal to p_start.
18345         * passes.def: Add arguments to TERMINATE_PASS_LISTs.
18347 2016-04-15  Jan Hubicka  <jh@suse.cz>
18349         PR ipa/70018
18350         * cgraph.c (cgraph_set_const_flag_1): Only set as pure if
18351         function does not bind to current def.
18352         * ipa-pure-const.c (worse_state): Add FROM and TO parameters;
18353         handle conservatively calls to functions that does not need to bind
18354         to current def.
18355         (check_call): Update call of worse_state.
18356         (ignore_edge_for_nothrow): Update.
18357         (ignore_edge_for_pure_const): Likewise.
18358         (propagate_pure_const): Update calls to worse_state.
18359         (skip_function_for_local_pure_const): Reformat comments.
18361 2016-04-15  Jan Hubicka  <jh@suse.cz>
18363         PR ipa/70018
18364         * cgraph.c (cgraph_node::get_availability): Add REF parameter.
18365         (cgraph_node::function_symbol): Likewise.
18366         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18367         * cgraph.h (symtab_node::get_availabbility): Add REF parameter.
18368         (symtab_node::ultimate_alias_target): Add REF parameter.
18369         (symtab_node::binds_to_current_def_p): Declare.
18370         (symtab_node;:ultimate_alias_target_1): Add REF parameter.
18371         (cgraph_node::function_symbol): Likewise.
18372         (cgraph_node::function_or_virtual_thunk_symbol): Likewise.
18373         (cgraph_node::get_availability): Likewise.
18374         (cgraph_edge::binds_to_current_def_p): New inline function.
18375         (varpool_node::get_availability): Add REF parameter.
18376         (varpool_node::ultimate_alias_target): Likewise.
18377         * symtab.c (symtab_node::ultimate_alias_target_1): Likewise.
18378         (symtab_node::binds_to_current_def_p): Likewise.
18379         * varpool.c (varpool_node::get_availability): Likewise.
18381 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
18383         PR target/70662
18384         * config/i386/sse.md(define_insn "<avx512>_vec_dup<mode><mask_name>"):
18385         Fix mode size check.
18387 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
18389         * BASE-VER: Set to 7.0.0.
18391 2016-04-15  Alexander Monakov  <amonakov@ispras.ru>
18393         * config/nvptx/nvptx.opt (moptimize): Add a period at end of help text.
18395 2016-04-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18397         * doc/invoke.texi (ARM Options): Add note on deprecation of pre-ARMv4T
18398         architecture revisions.
18400 2016-04-15  Bernd Schmidt  <bschmidt@redhat.com>
18402         * config/i386/i386-protos.h (ix86_using_red_zone): Declare.
18403         * config/i386/i386.c (ix86_using_red_zone): No longer static.
18404         * config/i386/i386.md (stack decrement to push peepholes): Guard
18405         with !x86_using_red_zone ().
18407 2016-04-15  Jakub Jelinek  <jakub@redhat.com>
18409         PR c++/70675
18410         * tree-pretty-print.c (do_niy): Add FLAGS argument, pass it down
18411         to dump_generic_node.
18412         (NIY): Pass also flags to do_niy.
18414 2016-04-15  Thomas Schwinge  <thomas@codesourcery.com>
18416         * omp-low.c (simd_clone_struct_alloc, simd_clone_struct_copy)
18417         (simd_clone_vector_of_formal_parm_types)
18418         (simd_clone_clauses_extract, simd_clone_compute_base_data_type)
18419         (simd_clone_mangle, simd_clone_create)
18420         (simd_clone_adjust_return_type, create_tmp_simd_array)
18421         (simd_clone_adjust_argument_types, simd_clone_init_simd_arrays)
18422         (struct modify_stmt_info, ipa_simd_modify_stmt_ops)
18423         (ipa_simd_modify_function_body, simd_clone_linear_addend)
18424         (simd_clone_adjust, expand_simd_clones, ipa_omp_simd_clone)
18425         (pass_data_omp_simd_clone, class pass_omp_simd_clone)
18426         (pass_omp_simd_clone::gate, make_pass_omp_simd_clone): Move into...
18427         * omp-simd-clone.c: ... this new file.
18428         (simd_clone_vector_of_formal_parm_types): Make it static.
18429         * Makefile.in (OBJS): Add omp-simd-clone.o.
18431 2016-04-15  Kirill Yukhin  <kirill.yukhin@intel.com>
18433         PR target/70662
18434         * config/i386/sse.md: Use proper memory operand modifiers.
18437 2016-04-15  Richard Biener  <rguenther@suse.de>
18438         Alan Modra  <amodra@gmail.com>
18440         PR tree-optimization/70130
18441         * tree-vect-data-refs.c (vect_supportable_dr_alignment): Detect
18442         when alignment stays not the same and no not use the realign
18443         scheme then.
18445 2016-04-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
18447         PR target/70669
18448         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Add
18449         direct move handlers for KFmode. Change TFmode handlers test from
18450         FLOAT128_IEEE_P to FLOAT128_VECTOR_P.
18452 2016-04-14  Jakub Jelinek  <jakub@redhat.com>
18454         PR c++/70594
18455         * ipa-utils.h (polymorphic_ctor_dtor_p): New prototype.
18456         * ipa-polymorphic-call.c (polymorphic_ctor_dtor_p): New function.
18457         (inlined_polymorphic_ctor_dtor_block_p): Use it.
18458         * tree-ssa-live.c (remove_unused_scope_block_p): When
18459         in_ctor_dtor_block, avoid discarding not just BLOCKs with
18460         BLOCK_ABSTRACT_ORIGIN being FUNCTION_DECL, but even when
18461         block_ultimate_origin is FUNCTION_DECL.
18462         (remove_unused_locals): If current_function_decl is
18463         polymorphic_ctor_dtor_p, pass initial true to
18464         remove_unused_scope_block_p' is_ctor_dtor_block.
18466 2016-04-14  Martin Sebor  <msebor@redhat.com>
18468         PR c++/69517
18469         PR c++/70019
18470         PR c++/70588
18471         * doc/extend.texi (Variable Length): Revert.
18473 2016-04-14  Marek Polacek  <polacek@redhat.com>
18474             Jan Hubicka  <hubicka@ucw.cz>
18476         PR c++/70029
18477         * tree.c (verify_type): Disable the canonical type of main variant
18478         check.
18480 2016-04-14  Jason Merrill  <jason@redhat.com>
18482         * cfgexpand.c, expr.c: Revert previous change.
18484 2016-04-14  Cesar Philippidis  <cesar@codesourcery.com>
18486         PR middle-end/70643
18487         * omp-low.c (lower_oacc_reductions): Check for TREE_CONSTANT
18488         when building a mem ref for the incoming reduction variable.
18490 2016-04-14  Richard Biener  <rguenther@suse.de>
18492         PR tree-optimization/70614
18493         * tree-scalar-evolution.c (analyze_evolution_in_loop): Terminate
18494         loop if the evolution dropped to chrec_dont_know.
18495         (interpret_condition_phi): Likewise.
18497 2016-04-14  Richard Biener  <rguenther@suse.de>
18499         PR tree-optimization/70623
18500         * tree-ssa-pre.c (changed_blocks): Make global ...
18501         (compute_antic): ... local here.  Move and fix worklist
18502         handling here.  Do not clear EDGE_DFS_BACK or call mark_dfs_back_edges.
18503         (compute_antic_aux): Add dumping for MAX assumed succs.  Remove
18504         worklist handling, dump when ANTIC_IN changed.
18505         (compute_partial_antic_aux): Remove worklist handling.
18506         (init_pre): Do not compute post dominators.  Add a comment about
18507         the CFG order chosen.
18508         (fini_pre): Do not free post dominators.
18510 2016-04-13  Martin Sebor  <msebor@redhat.com>
18512         PR c++/69517
18513         PR c++/70019
18514         PR c++/70588
18515         * doc/extend.texi (Variable Length): Document C++ specifics.
18517 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
18519         PR c++/70641
18520         * ipa-pure-const.c (pass_nothrow::execute): Call maybe_clean_eh_stmt
18521         on all recursive call stmts.  Return TODO_cleanup_cfg if any dead
18522         eh edges have been purged.
18524         PR c++/70594
18525         * tree-sra.c (create_access_replacement,
18526         get_replaced_param_substitute): Set DECL_NAMELESS on repl if it
18527         gets fancy name.
18528         * tree-pretty-print.c (dump_fancy_name): New function.
18529         (dump_decl_name, dump_generic_node): Use it.
18531 2016-04-13  Jason Merrill  <jason@redhat.com>
18533         * cfgexpand.c (pass_expand::execute): Handle attribute "abi warning".
18534         * expr.c (expand_expr_real_1): Likewise.
18536 2016-04-13  Ilya Enkovich  <ilya.enkovich@intel.com>
18538         * config/i386/i386.md (kunpckhi): Swap operands.
18539         (kunpcksi): Likewise.
18540         (kunpckdi): Likewise.
18541         * config/i386/sse.md (vec_pack_trunc_qi): Likewise.
18542         (vec_pack_trunc_<mode>): Likewise.
18544 2016-04-13  Jakub Jelinek  <jakub@redhat.com>
18546         PR debug/70628
18547         * explow.c (convert_memory_address_addr_space_1): Formatting fix.
18549         PR middle-end/70633
18550         * gimplify.c (gimplify_init_constructor): Clear TREE_STATIC if
18551         gimplification turns some element into non-constant.
18553         PR debug/70628
18554         * rtl.h (convert_memory_address_addr_space_1): New prototype.
18555         * explow.c (convert_memory_address_addr_space_1): No longer static,
18556         add NO_EMIT argument and don't call convert_modes if true, pass
18557         it down recursively, remove break after return.
18558         (convert_memory_address_addr_space): Adjust caller.
18559         * simplify-rtx.c (simplify_unary_operation_1): Call
18560         convert_memory_address_addr_space_1 instead of convert_memory_address,
18561         if it returns NULL, don't simplify.
18563 2016-04-12  Eric Botcazou  <ebotcazou@adacore.com>
18565         PR target/70630
18566         * config/sparc/sparc.c (sparc_compute_frame_size): Add parentheses.
18568 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
18570         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18571         Bump the upper SIMDLEN limits, so that if the return type or
18572         characteristic type if the return type is void can be passed in
18573         all available SSE2/AVX/AVX2/AVX512-F registers, the SIMDLEN is
18574         allowed.
18576 2016-04-12  Michael Meissner  <meissner@linux.vnet.ibm.com>
18578         PR target/70640
18579         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2_internal):
18580         Do not use "=" constraint on an input constraint.
18581         (ieee_128bit_vsx_abs<mode>2_internal): Likewise.
18582         (ieee_128bit_vsx_nabs<mode>2_internal): Likewise.
18583         (ieee_128bit_vsx_nabs<mode>2): Correct splitter so that it
18584         generates (neg (abs ...)) instead of (abs ...).
18586 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
18588         PR rtl-optimization/70596
18589         * lra-spills.c (spill_pseudos): Don't delete debug insns, instead
18590         just invalidate LRA data and reset them.  Adjust dump wording.
18592 2016-04-12  Martin Liska  <mliska@suse.cz>
18594         Revert
18595         2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18597         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
18598         estimates here.
18599         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
18600         max_loop_iterations_int.
18601         (tree_unswitch_outer_loop): Likewise.
18602         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
18603         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
18605 2016-04-12  Tom de Vries  <tom@codesourcery.com>
18607         PR tree-optimization/68756
18608         * graphite-isl-ast-to-gimple.c (copy_cond_phi_args): Use new_expr
18609         instead of new_name.
18611 2016-04-12  Jakub Jelinek  <jakub@redhat.com>
18613         PR tree-optimization/70602
18614         * tree-sra.c (generate_subtree_copies): Don't write anything into
18615         constant pool decls.
18617         * omp-low.c (lower_omp_target): Use GOMP_MAP_FIRSTPRIVATE_INT
18618         regardless whether there are depend clauses or not.
18620 2016-04-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
18622         PR target/70381
18623         * config/rs6000/rs6000.c (rs6000_opt_masks): Disable using the
18624         target attribute and pragma from changing the -mfloat128
18625         and -mfloat128-hardware options.
18627         * doc/extend.texi (Additional Floating Types): Document PowerPC
18628         __float128 restrictions.
18630 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18632         PR target/70133
18633         * config/aarch64/driver-aarch64.c
18634         (aarch64_get_extension_string_for_isa_flags): New.
18635         (arch_extension): Rename to...
18636         (aarch64_arch_extension): ...This.
18637         (ext_to_feat_string): Rename to...
18638         (aarch64_extensions): ...This.
18639         (aarch64_core_data): Keep track of architecture extension flags.
18640         (cpu_data): Rename to...
18641         (aarch64_cpu_data): ...This.
18642         (aarch64_arch_driver_info): Keep track of architecture extension
18643         flags.
18644         (get_arch_name_from_id): Rename to...
18645         (get_arch_from_id): ...This, change return type.
18646         (host_detect_local_cpu): Update and reformat for renames, handle
18647         extensions through common infrastructure.
18649 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18651         PR target/70133
18652         * config/aarch64/aarch64-common.c (aarch64_option_extension): Keep
18653         track of a canonical flag name.
18654         (all_extensions): Likewise.
18655         (arch_to_arch_name): Also track extension flags enabled by the arch.
18656         (all_architectures): Likewise.
18657         (aarch64_parse_extension): Move to here.
18658         (aarch64_get_extension_string_for_isa_flags): Take a new argument,
18659         rework.
18660         (aarch64_rewrite_selected_cpu): Update for above change.
18661         * config/aarch64/aarch64-option-extensions.def: Rework the way flags
18662         are handled, such that the single explicit value enabled by an
18663         extension is kept seperate from the implicit values it also enables.
18664         * config/aarch64/aarch64-protos.h (aarch64_parse_opt_result): Move
18665         to here.
18666         (aarch64_parse_extension): New.
18667         * config/aarch64/aarch64.c (aarch64_parse_opt_result): Move from
18668         here to config/aarch64/aarch64-protos.h.
18669         (aarch64_parse_extension): Move from here to
18670         common/config/aarch64/aarch64-common.c.
18671         (aarch64_option_print): Update.
18672         (aarch64_declare_function_name): Likewise.
18673         (aarch64_start_file): Likewise.
18674         * config/aarch64/driver-aarch64.c (arch_extension): Keep track of
18675         the canonical flag for extensions.
18676         * config.gcc (aarch64*-*-*): Extend regex for capturing extension
18677         flags.
18679 2016-04-11  James Greenhalgh  <james.greenhalgh@arm.com>
18681         * config/aarch64/aarch64.h (AARCH64_FL_FOR_ARCH8_1): Also add
18682         AARCH64_FL_CRC.
18684 2016-04-09  Tom de Vries  <tom@codesourcery.com>
18686         PR tree-optimization/68953
18687         * graphite-sese-to-poly.c (pdr_add_memory_accesses): Order accesses from
18688         first to last subscript.
18690 2016-04-09  Jakub Jelinek  <jakub@redhat.com>
18692         PR tree-optimization/70586
18693         * tree-ssa-ifcombine.c (bb_no_side_effects_p): Return false
18694         for any calls.
18696 2016-04-08  Cesar Philippidis  <cesar@codesourcery.com>
18698         PR lto/70289
18699         PR ipa/70348
18700         PR tree-optimization/70373
18701         PR middle-end/70533
18702         PR middle-end/70534
18703         PR middle-end/70535
18704         * gimplify.c (gimplify_adjust_omp_clauses): Add or adjust data
18705         clauses for acc parallel reductions as necessary.  Error on those
18706         that are private.
18707         * omp-low.c (scan_sharing_clauses): Don't install variables which
18708         are used in acc parallel reductions.
18709         (lower_rec_input_clauses): Remove dead code.
18710         (lower_oacc_reductions): Add support for reference reductions.
18711         (lower_reduction_clauses): Remove dead code.
18712         (lower_omp_target): Don't remap variables appearing in acc parallel
18713         reductions.
18714         * tree.h (OMP_CLAUSE_MAP_IN_REDUCTION): New macro.
18716 2016-04-08  Jakub Jelinek  <jakub@redhat.com>
18718         PR middle-end/70593
18719         * tree-ssa-coalesce.c (build_ssa_conflict_graph): For stmt
18720         with multiple SSA_NAME defs, force the outputs other than first
18721         to be live before calling live_track_process_def on each output.
18723         PR rtl-optimization/70574
18724         * fwprop.c (forward_propagate_and_simplify): Don't add
18725         REG_EQUAL note if DF_REF_REG (use) is a paradoxical subreg.
18726         (try_fwprop_subst): Don't add REG_EQUAL note if there are any
18727         paradoxical subregs within *loc.
18729 2016-04-08  Thomas Schwinge  <thomas@codesourcery.com>
18731         * config/arc/arc.h (LINK_COMMAND_SPEC): Use gt to ignore
18732         -ftree-parallelize-loops={0,1}.
18733         * config/darwin.h (LINK_COMMAND_SPEC_A): Likewise.
18734         * config/i386/mingw32.h (GOMP_SELF_SPECS): Likewise.
18735         * config/ia64/hpux.h (LIB_SPEC): Likewise.
18736         * config/pa/pa-hpux11.h (LIB_SPEC): Likewise.
18737         * config/pa/pa64-hpux.h (LIB_SPEC): Likewise.
18739 2016-04-08  Maxim Ostapenko  <m.ostapenko@samsung.com>
18741         PR sanitizer/70541
18742         * asan.c (instrument_derefs): If we get unknown location, extract it
18743         with EXPR_LOCATION.
18744         (maybe_instrument_call): Instrument gimple_call's arguments if needed.
18746 2016-04-08  Tom de Vries  <tom@codesourcery.com>
18748         * omp-low.c (lower_omp_target): Set TREE_NO_WARNING for oacc
18749         implicit firstprivate clause.
18751 2016-04-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
18753         PR target/70566
18754         * config/arm/thumb2.md (tst + branch-> lsls + branch
18755         peephole below *orsi_not_shiftsi_si): Require that condition
18756         register is dead after the peephole.
18757         (second peephole after the above): Likewise.
18759 2016-04-08  Alan Modra  <amodra@gmail.com>
18761         PR target/70117
18762         * builtins.c (fold_builtin_classify): For IBM extended precision,
18763         look at just the high-order double to test for NaN.
18764         (fold_builtin_interclass_mathfn): Similarly for Inf.  For isnormal
18765         test just the high double for Inf but both doubles for subnormal
18766         limit.
18768 2016-04-07  Jakub Jelinek  <jakub@redhat.com>
18770         * cgraph.h (struct cgraph_simd_clone): Add mask_mode field.
18771         * omp-low.c (simd_clone_init_simd_arrays, simd_clone_adjust): Handle
18772         node->simdclone->mask_mode != VOIDmode masks.
18773         (simd_clone_adjust_argument_types): Likewise.  Move sc var definition
18774         earlier, use it instead of node->simdclone.
18775         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18776         Set clonei->mask_mode.
18778 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18780         PR c/70436
18781         * parser.c (cp_parser_iteration_statement): New parameter IF_P.
18782         Pass it through to cp_parser_already_scoped_statement.
18783         (cp_parser_already_scoped_statement): New parameter IF_P.  Pass
18784         it through to cp_parser_statement.
18785         (cp_parser_statement): Pass IF_P through to
18786         cp_parser_iteration_statement.
18787         (cp_parser_pragma): Adjust call to
18788         cp_parser_iteration_statement.
18790 2016-04-06  Patrick Palka  <ppalka@gcc.gnu.org>
18792         PR c/70436
18793         * gimplify.c (gimplify_omp_ordered): Add explicit braces to
18794         resolve a future -Wparentheses warning.
18795         * omp-low.c (scan_sharing_clauses): Likewise.
18796         * tree-parloops.c (eliminate_local_variables): Likewise.
18798 2016-04-06  Vladimir Makarov  <vmakarov@redhat.com>
18800         PR rtl-optimization/70398
18801         * lra-constraints.c (process_address_1): Check zero scale and code
18802         for reloading with zero scale.
18804 2016-04-06  Uros Bizjak  <ubizjak@gmail.com>
18806         * config/i386/sse.md (shuffletype): Add V32HI and V4TI modes.
18807         (ssescalarsize): Add V8SF, V4SF, V4DF and V2DF modes.
18809 2016-04-06  Jakub Jelinek  <jakub@redhat.com>
18811         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
18812         Add support for AVX512F clones, include them by default for
18813         exported OpenMP declare simd functions.  For AVX2 allow simdlen 32
18814         and use it if charasteric type is 8-bit, for AVX512F allow simdlen
18815         up to 128.
18817         PR middle-end/70550
18818         * tree.h (OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT): Define.
18819         * gimplify.c (gimplify_adjust_omp_clauses_1): Set it for implicit
18820         firstprivate clauses.
18821         * omp-low.c (lower_send_clauses): Set TREE_NO_WARNING for
18822         OMP_CLAUSE_FIRSTPRIVATE_IMPLICIT !by_ref vars in task contexts.
18823         (lower_omp_target): Set TREE_NO_WARNING for
18824         non-addressable possibly uninitialized vars which are copied into
18825         addressable temporaries or copied for GOMP_MAP_FIRSTPRIVATE_INT.
18827 2016-04-05  John David Anglin  <danglin@gcc.gnu.org>
18829         * config/pa/predicates.md (integer_store_memory_operand): Accept
18830         REG+D operands with a large offset when reload_in_progress is true.
18831         (floating_point_store_memory_operand): Likewise.
18833 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18835         PR c++/70336
18836         * match.pd (nested int casts): Limit to GIMPLE.
18838 2016-04-05  Jan Hubicka  <hubicka@ucw.cz>
18840         PR ipa/66223
18841         * ipa-devirt.c (maybe_record_node): Fix comment; use
18842         SANITIZE_UNREACHABLE instead of SANITIZE_UNDEFINED.
18844 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18846         PR rtl-optimization/70542
18847         * ree.c (add_removable_extension): For VECTOR_MODE_P punt
18848         if there are any uses other than insn or debug insns.
18850 2016-04-05  Marc Glisse  <marc.glisse@inria.fr>
18851             Jakub Jelinek  <jakub@redhat.com>
18853         PR tree-optimization/70509
18854         * simplify-rtx.c (simplify_binary_operation_1) <case VEC_SELECT>:
18855         Shift HOST_WIDE_INT_1U instead of 1.
18857 2016-04-05  Zdenek Sojka  <zsojka@seznam.cz>
18859         PR tree-optimization/70509
18860         * tree-ssa-forwprop.c (simplify_bitfield_ref): Use bitsize_int instead
18861         of the vector base type for index.
18863 2016-04-05  Uros Bizjak  <ubizjak@gmail.com>
18865         PR target/70510
18866         * config/i386/sse.md (iptr): Add V64QI, V32HI, V16SI and V8DI modes.
18868 2016-04-05  Richard Biener  <rguenther@suse.de>
18870         PR tree-optimization/70526
18871         * tree-sra.c (build_ref_for_offset): Use prev_base to
18872         extract the alias pointer type.
18874 2016-04-05  Richard Biener  <rguenther@suse.de>
18876         * dse.c (struct store_info): Remove alias_set member.
18877         (struct read_info_type): Likewise.
18878         (clear_alias_group, clear_alias_mode_table, clear_alias_mode_holder,
18879         spill_deleted, clear_alias_set_lookup): Remove.
18880         (get_group_info): Remove dead base == NULL_RTX case.
18881         (dse_step0): Remove initialization of removed variables.
18882         (delete_dead_store_insn): Reomve alias set dumping.
18883         (free_read_records): Remove alias_set handling.
18884         (canon_address): Remove alias_set_out parameter.
18885         (record_store): Remove spill_alias_set, it's always zero.
18886         (check_mem_read_rtx): Likewise.
18887         (dse_step2): Rename from ...
18888         (dse_step2_nospill): ... this.  Adjust.
18889         (scan_stores): Rename from ...
18890         (scan_stores_nospill): ... this.
18891         (scan_reads): Rename from ...
18892         (scan_reads_nospill): ... this.
18893         (scan_stores_spill, scan_reads_spill): Remove.
18894         (dse_step3_scan): Remove for_spills argument which is always false.
18895         (dse_step3): Likewise.
18896         (dse_step5): Rename from ...
18897         (dse_step5_nospill): ... this.  Remove alias_set handling.
18898         (rest_of_handle_dse): Adjust.
18900 2016-04-05  Jakub Jelinek  <jakub@redhat.com>
18902         PR target/70525
18903         * config/i386/sse.md (*andnot<mode>3): Simplify assertions.
18904         Use vpandn<ssemodesuffix> for V16SI/V8DImode, vpandnq for
18905         V32HI/V64QImode, don't use <mask_operand3_1>, fix up formatting.
18906         (*andnot<mode>3_mask): Remove insn with VI12_AVX512VL iterator.
18908 2016-04-05  Richard Biener  <rguenther@suse.de>
18910         PR middle-end/70499
18911         * gimplify-me.c (gimple_regimplify_operands): Do not rewrite
18912         non-register type temporaries into SSA.
18914 2016-04-04  Jan Hubicka  <hubicka@ucw.cz>
18916         PR ipa/66223
18917         * ipa-devirt.c (maybe_record_node): Do not optimize cxa_pure_virtual
18918         calls when sanitizing.
18919         (possible_polymorphic_call_target_p): Fix formatting.
18921 2016-04-04  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
18922             Jakub Jelinek  <jakub@redhat.com>
18924         PR middle-end/70457
18925         * tree-inline.c (estimate_num_insn): Use gimple_call_builtin_p
18926         to ensure a call statement is compatible with a built-in's
18927         prototype.
18928         * tree-ssa-math-opts.c (pass_optimize_windening_mul::execute):
18929         Likewise.
18931 2016-04-04  Richard Biener  <rguenther@suse.de>
18933         PR rtl-optimization/70484
18934         * rtl.h (canon_output_dependence): Declare.
18935         * alias.c (canon_output_dependence): New function.
18936         * dse.c (record_store): Use canon_output_dependence rather
18937         than canon_true_dependence.
18939 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
18941         PR ipa/68881
18942         * cgraph.h (symtab_node::copy_visibility_from): New function.
18943         * symtab.c (symtab_node::copy_visibility_from): New function.
18944         * ipa-visibility.c (optimize_weakref): New function.
18945         (function_and_variable_visibility): Use it.
18947 2016-04-04  Martin Liska  <mliska@suse.cz>
18949         PR hsa/70402
18950         * hsa-gen.c (gen_hsa_insns_for_switch_stmt): Guard index
18951         value that is really in range handled by SBR instruction.
18952         * hsa-brig.c (emit_switch_insn): Do not emit unconditional jump.
18953         * hsa-dump.c (dump_hsa_insn_1): Do not dump default BB.
18954         * hsa.h (hsa_insn_sbr::m_default_bb): Remove field.
18956 2016-04-03  Oleg Endo  <olegendo@gcc.gnu.org>
18958         PR target/70416
18959         PR target/67391
18960         * config/sh/sh.md (*addsi3): Allow pattern when reload_in_progress is
18961         set, but not for SP_REG operands.
18963 2016-04-02  Martin Sebor  <msebor@redhat.com>
18965         PR c++/67376
18966         * fold-const.c (maybe_nonzero_address): New function.
18967         (fold_comparison): Call it.  Fold equality and relational
18968         expressions involving null pointers.
18969         (tree_single_nonzero_warnv_p): Call maybe_nonzero_address.
18971 2016-03-31  Evandro Menezes  <e.menezes@samsung.com>
18973         Fix the predicate "aarch64_simd_reg_or_zero" to correctly validate
18974         the "Y" constraint (scalar FP 0.0 immediate).
18976         * config/aarch64/predicates.md (aarch64_simd_reg_or_zero):
18977         Add the "const_double" to the list of operand constraints.
18979 2016-04-01  Jakub Jelinek  <jakub@redhat.com>
18981         PR rtl-optimization/70467
18982         * config/i386/i386.md (*add<dwi>3_doubleword, *sub<dwi>3_doubleword):
18983         If low word of the last operand is 0, just emit addition/subtraction
18984         for the high word.
18986 2016-04-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
18988         PR target/70404
18989         * config/s390/s390.c (s390_expand_insv): Check for everything
18990         constant instead of just VOIDmode stuff.
18992 2016-04-01  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18994         PR target/70496
18995         * config/arm/arm.h (ASM_APP_OFF): Handle TARGET_ARM and TARGET_THUMB.
18997 2016-04-01  Nathan Sidwell  <nathan@acm.org>
18999         * tree.def (TRY_CATCH_EXPR): Correct documentation.
19001 2016-03-31  Vladimir Makarov  <vmakarov@redhat.com>
19003         PR rtl-optimization/70461
19004         * ira-color.c (allocno_copy_cost_saving): Use allocno class if it
19005         is necessary.
19007 2016-03-31  Martin Liska  <mliska@suse.cz>
19009         PR hsa/70399
19010         * hsa-brig.c (hsa_op_immed::emit_to_buffer): Emit either
19011         a tree value or an immediate integer value to a buffer
19012         that is eventually copied to a BRIG section.
19013         (emit_immediate_operand): Call the function here.
19014         * hsa-dump.c (dump_hsa_immed): Remove checking assert.
19015         * hsa-gen.c (hsa_op_immed::hsa_op_immed): Remove initialization
19016         of class' fields that are removed.
19017         (hsa_op_immed::~hsa_op_immed): Remove deinitialization.
19018         * hsa.h (class hsa_op_immed): Remove m_brig_repr and
19019         m_brig_repr_size fields.
19021 2016-03-31  Martin Liska  <mliska@suse.cz>
19023         PR hsa/70391
19024         * hsa-gen.c (hsa_function_representation::update_dominance): New
19025         function.
19026         (convert_addr_to_flat_segment): Likewise.
19027         (gen_hsa_memory_set): New alignment argument.
19028         (gen_hsa_ctor_assignment): Likewise.
19029         (gen_hsa_insns_for_single_assignment): Provide alignment
19030         to gen_hsa_ctor_assignment.
19031         (gen_hsa_insns_for_direct_call): Add new argument.
19032         (expand_lhs_of_string_op): New function.
19033         (expand_string_operation_builtin): Likewise.
19034         (expand_memory_copy): New function.
19035         (expand_memory_set): New function.
19036         (gen_hsa_insns_for_call): Use HOST_WIDE_INT.
19037         (convert_switch_statements): Change signature.
19038         (generate_hsa): Use a return value of the function.
19039         (pass_gen_hsail::execute): Do not call
19040         convert_switch_statements here.
19041         * hsa-regalloc.c (hsa_regalloc): Call update_dominance.
19042         * hsa.h (hsa_function_representation::m_modified_cfg): New flag.
19043         (hsa_function_representation::update_dominance): New function.
19045 2016-03-31  Martin Liska  <mliska@suse.cz>
19047         PR hsa/70391
19048         * hsa-brig.c (emit_directive_variable): Emit alignment
19049         according to hsa_symbol::m_align.
19050         * hsa-dump.c (hsa_byte_alignment): Move the function to another file.
19051         (dump_hsa_symbol): Dump alignment of HSA symbols.
19052         * hsa-gen.c (get_symbol_for_decl): Set-up alignment of a symbol.
19053         (gen_hsa_addr_with_align): New function.
19054         (hsa_bitmemref_alignment): Use newly added function.
19055         (gen_hsa_insns_for_load): Likewise.
19056         (gen_hsa_insns_for_store): Likewise.
19057         (gen_hsa_memory_copy): New argument added.
19058         (gen_hsa_insns_for_single_assignment): Respect
19059         alignment for assignments processed via gen_hsa_memory_copy.
19060         (gen_hsa_insns_for_direct_call): Likewise.
19061         (gen_hsa_insns_for_return): Likewise.
19062         (gen_function_def_parameters): Set default alignment.
19063         * hsa.c (hsa_object_alignment): New function.
19064         (hsa_byte_alignment): Pasted function.
19065         * hsa.h (hsa_symbol::m_align): New field.
19067 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19069         * tree-ssa-loop-ivopts.c (get_computation_cost_at): Initialize
19070         scratch field for goto case.
19072 2016-03-31  James Greenhalgh  <james.greenhalgh@arm.com>
19074         * config/arm/linux-elf.h (ASM_OUTPUT_DEF): Delete.
19076 2016-03-31  Ilya Enkovich  <enkovich.gnu@gmail.com>
19078         PR target/70442
19079         * config/i386/i386.c (scalar_chain::convert_op): Fix description.
19080         (scalar_chain::convert_insn): Call convert_op for reg
19081         moves to handle undefined registers.
19083 2016-03-31  Nathan Sidwell  <nathan@acm.org>
19085         PR c++/70393
19086         * varasm.c (output_constructor_regular_field): Flush bitfield earlier.
19087         Assert we don't want to move backwards.
19089 2016-03-31  Kirill Yukhin  <kirill.yukhin@intel.com>
19091         PR target/70453
19092         * config/i386/sse.md (define_mode_attr shuffletype): Fix typo.
19094 2016-03-31  Jakub Jelinek  <jakub@redhat.com>
19096         PR rtl-optimization/70460
19097         * ira.c (indirect_jump_optimize): Don't substitute LABEL_REF
19098         with operand from REG_LABEL_OPERAND, instead substitute
19099         SET_SRC or REG_EQUAL note content if it is a LABEL_REF.
19100         Don't do anything for REG_NON_LOCAL_GOTO jumps.
19102 2016-03-31  Martin Liska  <mliska@suse.cz>
19104         * passes.c (execute_one_pass): Do not call
19105         todo_after for a discarded function.
19107 2016-03-31  Bin Cheng  <bin.cheng@arm.com>
19109         * tree-ssa-loop-ivopts.c (struct comp_cost): New scrach field.
19110         (no_cost, infinite_cost): Initialize the new field.
19111         (get_computation_cost_at): Record setup cost.
19112         (determine_use_iv_cost_address): Skip cost computation for sub
19113         uses if we can estimate it without losing accuracy.
19115 2016-03-30  Jan Hubicka  <hubicka@ucw.cz>
19117         * tree-ssa-loop-niter.c (idx_infer_loop_bounds): We can't get realistic
19118         estimates here.
19119         * tree-ssa-loop-unswitch.c (tree_unswitch_single_loop): Use also
19120         max_loop_iterations_int.
19121         (tree_unswitch_outer_loop): Likewise.
19122         * tree-ssa-loop-ivopts.c (avg_loop_niter): Likewise.
19123         * tree-vect-loop.c (vect_analyze_loop_2): Likewise.
19125 2016-03-30  Richard Biener  <rguenther@suse.de>
19127         PR middle-end/70450
19128         * fold-const.c (extract_muldiv_1): Fix thinko in wide_int::from usage.
19130 2016-03-30  Jakub Jelinek  <jakub@redhat.com>
19132         PR target/70421
19133         * config/i386/i386.c (ix86_expand_vector_set): Fix up argument order
19134         in gen_blendm expander.
19136 2016-03-30  Nick Clifton  <nickc@redhat.com>
19138         PR target/62254
19139         * config/arm/arm.c (arm_reload_out_hi): Add code to handle the
19140         case where we are already provided with an SImode SUBREG.
19142 2016-03-30  H.J. Lu  <hongjiu.lu@intel.com>
19144         PR target/70439
19145         * config/i386/i386.c (ix86_expand_epilogue): Properly check
19146         conflict between DRAP register and __builtin_eh_return.
19148 2016-03-30  Michael Matz  <matz@suse.de>
19149             Richard Biener  <rguenther@suse.de>
19151         PR ipa/12392
19152         * ipa-polymorphic-call.c (struct type_change_info): Change
19153         speculative to an unsigned allowing to limit the work we do.
19154         (csftc_abort_walking_p): New inline function..
19155         (check_stmt_for_type_change): Limit the number of may-defs
19156         skipped for speculative devirtualization to
19157         max-speculative-devirt-maydefs.
19158         * params.def (max-speculative-devirt-maydefs): New param.
19159         * doc/invoke.texi (--param max-speculative-devirt-maydefs): Document.
19161 2016-03-30  Mike Stump  <mrs@gcc.gnu.org>
19163         PR target/63890
19164         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Use when profiling
19165         and TARGET_MACHO.
19167 2016-03-30  Patrick Palka  <ppalka@gcc.gnu.org>
19169         PR tree-optimization/59124
19170         * tree-vrp.c (register_edge_assert_for_2): For NAME != CST1
19171         where NAME = A +- CST2 add the assertion A != (CST1 -+ CST2).
19173 2016-03-29  Jeff Law  <law@redhat.com>
19175         * tree-ssa-coalesce.c (struct ssa_conflicts): Fix typo in comment.
19177 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19179         * tree-ssa-loop-ivcanon.c (try_peel_loop): Change type of peel
19180         to HOST_WIDE_INT.
19182 2016-03-29  Thomas Schwinge  <thomas@codesourcery.com>
19184         * config/gnu.h (CPP_SPEC, LIB_SPEC): Don't override.
19185         * config/i386/gnu.h (STARTFILE_SPEC): Use gcrt1.o instead of
19186         gcrt0.o if linking dynamically.
19188 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
19190         PR ipa/70283
19191         * ipa-devirt.c (methods_equal_p): New function.
19192         (compare_virtual_tables): Use it.
19193         * cgraph.h (symbol_table::symbol_suffix_separator): Declare.
19194         * cgraphclones.c (clone_function_name_1): Use
19195         symbol_table::symbol_suffix_separator.
19196         * coverage.c (build_var): Likewise.
19197         * symtab.c (symbol_table::symbol_suffix_separator): New.
19199 2016-03-29  Jakub Jelinek  <jakub@redhat.com>
19201         PR rtl-optimization/70429
19202         * combine.c (simplify_shift_const_1): For ASHIFTRT don't optimize
19203         (cst1 >> count) >> cst2 into (cst1 >> cst2) >> count if
19204         mode != result_mode.
19206         PR c++/70353
19207         * tree-inline.c (remap_decls): Don't add_local_decl if cfun is null.
19209         PR tree-optimization/70405
19210         * ssa-iterators.h (num_imm_uses): Add missing braces.
19212 2016-03-29  Vladimir Makarov  <vmakarov@redhat.com>
19214         PR rtl-optimization/68695
19215         * ira-color.c (allocno_copy_cost_saving): New.
19216         (improve_allocation): Use it.
19218 2016-03-29  Richard Henderson  <rth@redhat.com>
19220         PR middle-end/70355
19221         * lower-subreg.c (simplify_subreg_concatn): Reject paradoxical subregs.
19223 2016-03-29  Richard Biener  <rguenther@suse.de>
19225         PR middle-end/70424
19226         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Always
19227         use alignment returned by get_pointer_alignment_1 if it is
19228         bigger than BITS_PER_UNIT.
19229         * builtins.c (get_pointer_alignment_1): Do not return true
19230         for alignment extracted from SSA info.
19232 2016-03-28  James Bowman  <james.bowman@ftdichip.com>
19234         * config/ft32/ft32.opt (mnodiv): New.
19235         * config/ft32/ft32.md (*divsi3, *modsi3): Qualify with TARGET_NODIV.
19236         * doc/invoke.texi (FT32 Options -mnodiv): New.
19238 2016-03-28  Kirill Yukhin  <kirill.yukhin@intel.com>
19240         PR target/70406
19241         * config/i386/i386.md (define_split, andn): Fix modes.
19243 2016-03-26  Richard Biener  <rguenther@suse.de>
19244             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
19246         PR ipa/70366
19247         * ipa-inline-transform.c (inline_call): Pass opts_for_fn (to->decl)
19248         instead of
19249         TREE_OPTIMIZATION (DECL_FUNCTION_SPECIFIC_OPTIMIZATION (to->decl))
19250         as 2nd argument to cl_optimization_restore().
19252 2016-03-25  Richard Henderson  <rth@redhat.com>
19254         PR target/70120
19255         * config/aarch64/aarch64.c (aarch64_asm_output_pool_epilogue): New.
19256         * config/aarch64/aarch64-protos.h: Declare it.
19257         * config/aarch64/aarch64.h (ASM_OUTPUT_POOL_EPILOGUE): New.
19259 2016-03-25  Alan Modra  <amodra@gmail.com>
19261         PR target/70052
19262         * config/rs6000/constraints.md (j): Simplify.
19263         * config/rs6000/predicates.md (easy_fp_constant): Exclude
19264         decimal float 0.D.
19265         * config/rs6000/rs6000.md (zero_fp): New mode_attr.
19266         (mov<mode>_hardfloat, mov<mode>_hardfloat32, mov<mode>_hardfloat64,
19267          mov<mode>_64bit_dm, mov<mode>_32bit): Use zero_fp in place of j
19268         in all constraint alternatives.
19269         (movtd_64bit_nodm): Delete "j" constraint alternative.
19271 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
19273         * tree-ssa-propagate.c: Enhance docs for
19274         SSA_PROP_NOT_INTERESTING.
19276 2016-03-24  Aldy Hernandez  <aldyh@redhat.com>
19278         * doc/extend.texi: Fix typo in documentation to pure attribute.
19280 2016-03-24  John David Anglin  <danglin@gcc.gnu.org>
19282         PR target/70319
19283         * config/pa/pa.md (bswapdi2): Use a scratch register.
19285 2016-03-24  Richard Henderson  <rth@redhat.com>
19287         PR middle-end/69845
19288         * fold-const.c (extract_muldiv_1): Correct test for multiplication
19289         overflow.
19291 2016-03-24  Uros Bizjak  <ubizjak@gmail.com>
19293         * config/i386/i386.md (*anddi3_doubleword): Generate AND insn
19294         using ix86_expand_binary_operator instead of gen_andsi3.
19296 2016-03-24  Richard Biener  <rguenther@suse.de>
19298         PR tree-optimization/70396
19299         * tree-vect-stmts.c (vectorizable_comparison): Use
19300         get_vectype_for_scalar_type.
19302 2016-03-24  Richard Biener  <rguenther@suse.de>
19304         PR middle-end/70370
19305         * gimplify.c (gimplify_asm_expr): Handle !allows_mem outputs
19306         with register bases.
19308 2016-03-24  Richard Biener  <rguenther@suse.de>
19310         PR tree-optimization/70372
19311         * tree-ssa-reassoc.c (eliminate_plus_minus_pair): Use
19312         build_all_ones_cst to also handle vector types correctly.
19314 2016-03-23  Michael Meissner  <meissner@linux.vnet.ibm.com>
19316         PR target/70381
19317         * config/rs6000/rs6000-cpus.def (ISA_2_6_MASKS_SERVER): Do not set
19318         -mfloat128 here.
19320 2016-03-23  Marek Polacek  <polacek@redhat.com>
19322         PR c++/69884
19323         * doc/invoke.texi: Document -Wignored-attributes.
19325 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
19327         PR tree-optimization/69042
19328         * params.def (PARAM_IV_CONSIDER_ALL_CANDIDATES_BOUND): Increase the
19329         parameter from 30 to 40.
19331 2016-03-23  Bin Cheng  <bin.cheng@arm.com>
19333         PR tree-optimization/69042
19334         * tree-ssa-loop-ivopts.c (add_iv_candidate_for_use): Add IV cand
19335         for use with constant offset stripped in base.
19337 2016-03-23  Richard Biener  <rguenther@suse.de>
19339         PR middle-end/70251
19340         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Adjust
19341         mode compatibility check.
19342         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19344 2016-03-23  Jeff Law  <law@redhat.com>
19346         PR tree-optimization/64058
19347         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field
19348         CONFLICT_COUNT.
19349         (struct ssa_conflicts): Move up earlier in the file.
19350         (conflicts_, var_map_): New static variables.
19351         (initialize_conflict_count): New function to initialize the
19352         CONFLICT_COUNT field for each conflict pair.
19353         (compare_pairs): Lazily initialize the conflict count and use it
19354         as the first tie-breaker.
19355         (sort_coalesce_list): Add new arguments conflicts, map.  Initialize
19356         and wipe conflicts_ and map_ around the call to qsort.  Remove
19357         special case for 2 coalesce pairs.
19358         * bitmap.c (bitmap_count_unique_bits): New function.
19359         (bitmap_count_bits_in_word): New function, extracted from
19360         bitmap_count_bits.
19361         (bitmap_count_bits): Use bitmap_count_bits_in_word.
19362         * bitmap.h (bitmap_count_unique_bits): Declare it.
19364 2016-03-23  Ilya Enkovich  <enkovich.gnu@gmail.com>
19366         PR target/69917
19367         * config/i386/sol2.h (ASM_OUTPUT_DEF_FROM_DECLS): Follow
19368         transparent alias chain for decl assembler name.
19369         * config/sol2.c (solaris_assemble_visibility): Likewise.
19371 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19373         * config/arm/arm1020e.md (1020call_op): Reduce reservation
19374         duration.
19375         (v10_fdivs): Likewise.
19376         (v10_fdivd): Likewise.
19378 2016-03-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19380         PR driver/70132
19381         * config/arm/driver-arm.c (host_detect_local_cpu): Reorder exit logic
19382         to not call fclose twice on file.
19384 2016-03-23  Jakub Jelinek  <jakub@redhat.com>
19386         PR tree-optimization/70354
19387         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
19388         oprnd0 is wider than oprnd1 and there is a cast from the wider
19389         type to oprnd1, mask it with the mask of the narrower type.
19391         PR target/70321
19392         * config/i386/i386.md (*anddi3_doubleword, *<code>di3_doubleword):
19393         Optimize TARGET_STV splitters, if high or low word of last argument
19394         is 0 or -1.
19396 2016-03-22  Jeff Law  <law@redhat.com>
19398         PR target/70232
19399         tree-ssa-threadbackward.c
19400         (fsm_find_control_statement_thread_paths): Correctly distinguish
19401         between old style jump threads vs FSM jump threads.
19403 2016-03-22  Ilya Enkovich  <enkovich.gnu@gmail.com>
19405         PR target/70302
19406         * config/i386/i386.c (scalar_chain::convert_op): Support
19407         uninitialized register usage case.
19409 2016-03-22  Richard Biener  <rguenther@suse.de>
19411         PR middle-end/70251
19412         * genmatch.c (gen_transform): Adjust last parameter to a three-state
19413         int...
19414         (capture::gen_transform): ... to change behavior when substituting
19415         a condition into cond or not-cond expr context.
19416         (dt_simplify::gen_1): Adjust.
19417         * gimple-match-head.c: Include gimplify.h for unshare_expr.
19418         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Revert
19419         last change and instead change to
19420         A + (B vcmp C ? 1 : 0) -> A - (B vcmp C ? -1 : 0).
19421         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19423 2016-03-22  Anthony Green  <green@moxielogic.com>
19425         * config/moxie/moxiebox.h (CC1_SPEC): Define.  Fix endianness
19426         issue for moxiebox targets.
19427         (CC1PLUS_SPEC): Ditto.
19429 2016-03-22  Richard Biener  <rguenther@suse.de>
19431         PR middle-end/70333
19432         * fold-const.c (extract_muldiv_1): Properly perform multiplication
19433         in the wide type.
19435 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
19437         * config/i386/i386.c (def_builtin): Remove duplicated functionality.
19439 2016-03-22  Kirill Yukhin  <kirill.yukhin@intel.com>
19441         PR target/70325
19442         * config/i386/i386.c (def_builtin): Handle
19443         OPTION_MASK_ISA_AVX512VL to be and-ed with other
19444         bits.
19445         (const struct builtin_description bdesc_special_args[]):
19446         Remove duplicate ISA bits.
19448 2016-03-22  Jakub Jelinek  <jakub@redhat.com>
19450         PR target/70329
19451         * config/i386/i386.c (ix86_expand_vecop_qihi): Don't bother computing
19452         d.perm[i] for i >= d.nelt.  If not full_interleave, compute d.perm[i]
19453         in a way that works also for AVX512BW.
19455         PR target/70300
19456         * config/i386/i386.md (cvtsd2ss splitter): Unpack in destination
19457         instead of source if operands[1] is xmm16 and above and
19458         !TARGET_AVX512VL.  Use avx512f_vec_dupv16sf_1 instead of
19459         vec_interleave_lowv4sf if we need to unpack xmm16 and above.
19461         PR c++/70295
19462         * gimplify.c (gimplify_modify_expr): Call gimple_set_no_warning
19463         on assign if (*from_p) is a comparison, set it to
19464         TREE_NO_WARNING (*from_p).
19466 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
19468         PR middle-end/70326
19469         * lra.c (restore_scratches): Ignore deleted insns.
19471 2016-03-21  Marc Glisse  <marc.glisse@inria.fr>
19472             Jakub Jelinek  <jakub@redhat.com>
19474         PR tree-optimization/70317
19475         * match.pd (cmp @0 @0): Pass @0 instead of TYPE_MODE (TREE_TYPE (@0))
19476         to HONOR_NANS.
19478 2016-03-21  Uros Bizjak  <ubizjak@gmail.com>
19480         PR target/70327
19481         * config/i386/i386.md (movxi): Use ix86_expand_vector_move instead
19482         of ix86_expand_move.
19483         (movoi): Ditto.
19484         (movti): Use general_operand for operand 1 predicate.
19486 2016-03-21  Martin Liska  <mliska@suse.cz>
19488         * hsa-dump.c (dump_hsa_insn_1): dump default branch of SBR
19489         insns.
19490         (dump_hsa_symbol): Dump BRIG offset of hsa_symbols.
19492 2016-03-21  Martin Liska  <mliska@suse.cz>
19494         PR ipa/70306
19495         * ipa-icf.c (sem_function::parse): Skip static
19496         constructors and destructors.
19498 2016-03-21  Jakub Jelinek  <jakub@redhat.com>
19500         PR target/70296
19501         * config/rs6000/rs6000-c.c (rs6000_macro_to_expand): If IDENT is
19502         function-like macro, peek following token(s) if it is followed
19503         by CPP_OPEN_PAREN token with optional padding in between, and
19504         if not, don't treat it like a macro.
19506 2016-03-21  Thomas Schwinge  <thomas@codesourcery.com>
19507             Alexander Monakov  <amonakov@ispras.ru>
19509         * config/nvptx/nvptx.c (nvptx_option_override): Don't emit sorry
19510         for the stabs debug format.
19512 2016-03-21  Richard Biener  <rguenther@suse.de>
19514         PR tree-optimization/70310
19515         * tree-vect-generic.c (expand_vector_condition): Fold the built
19516         condition.
19518 2016-03-21  Kirill Yukhin  <kirill.yukhin@intel.com>
19520         PR target/70293
19521         * config/i386/sse.md: (define_insn "*vec_dup<mode>"/AVX2):
19522         Block third alternative for AVX-512VL target,
19524 2016-03-21  Martin Liska  <mliska@suse.cz>
19526         PR hsa/70234
19527         * hsa-brig.c (emit_function_directives): Mark unemitted
19528         global variables for emission.
19529         * hsa-gen.c (hsa_symbol::hsa_symbol): Initialize a new flag.
19530         (get_symbol_for_decl): Likewise.
19531         * hsa.h (struct hsa_symbol): New flag.
19533 2016-03-21  Richard Biener  <rguenther@suse.de>
19535         PR tree-optimization/70288
19536         * tree-ssa-loop-ivcanon.c (tree_estimate_loop_size): Make sure
19537         we do not estimate unsimplified all-constant conditionals or
19538         switches as optimized away.
19540 2016-03-21  Andrey Belevantsev  <abel@ispras.ru>
19542         PR rtl-optimization/69102
19543         * sched-deps.c (sched_analyze_insn): Do not set last_args_size field
19544         when we have a readonly dependency context.
19546 2016-03-18  Jeff Law  <law@redhat.com>
19548         PR rtl-optimization/70263
19549         * ira.c (memref_used_between_p): Assert we found END in the insn chain.
19550         (update_equiv_regs): When trying to move a store to after the insn
19551         that sets the source of the store, make sure the store occurs after
19552         the insn that sets the source of the store.  When successful note
19553         the REG_EQUIV note created in the dump file.
19555 2016-03-16  David Wohlferd  <dw@LimeGreenSocks.com>
19556             Bernd Schmidt  <bschmidt@redhat.com>
19558         * doc/extend.texi: Document more potential problems with basic asms.
19560 2016-03-18  Bernd Schmidt  <bschmidt@redhat.com>
19562         PR rtl-optimization/70278
19563         * lra-constraints.c (split_reg): Handle the case where biggest_mode is
19564         VOIDmode.
19566 2016-03-18  Jason Merrill  <jason@redhat.com>
19568         * calls.c (load_register_parameters): Fix zero size sibcall logic.
19570 2016-03-18  Kirill Yukhin  <kirill.yukhin@intel.com>
19572         * config/i386/sse.md: Use vpbroadcastq for broadcasting DF
19573         values to 128b regs.
19575 2016-03-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
19577         PR tree-optimization/70252
19578         * tree-vect-stmts.c (supportable_widening_operation): Check resulting
19579         boolean vector has a proper number of elements.
19580         (supportable_narrowing_operation): Likewise.
19582 2016-03-18  Tom de Vries  <tom@codesourcery.com>
19584         PR ipa/70269
19585         * cgraph.c (cgraph_node::get_body): Set dump_file to NULL after save.
19587 2016-03-18  Jakub Jelinek  <jakub@redhat.com>
19589         * reload1.c (emit_input_reload_insns): Use simplify_replace_rtx
19590         instead of replace_rtx for DEBUG_INSNs.
19592 2016-03-18  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
19594         * config/i386/znver1.md : Fix latencies of FP/SSE/AVX
19595         load type reservations.
19597 2016-03-17  John David Anglin  <danglin@gcc.gnu.org>
19599         PR target/70188
19600         * config/pa/constraints.md: Revert 2015-02-13 change.  Use
19601         define_constraint for "Q" and "T" constraints.
19603 2016-03-17  Evandro Menezes  <e.menezes@samsung.com>
19605         Tweak the pipeline model for Exynos M1
19607         * config/aarch64/aarch64.c (exynosm1_tunings):  Enable weak prefetching
19608         model.
19610 2016-03-17  David Malcolm  <dmalcolm@redhat.com>
19612         PR c/70264
19613         * diagnostic-show-locus.c (compatible_locations_p): Handle the case
19614         where one or both locations aren't within a line_map.
19616 2016-03-17  H.J. Lu  <hongjiu.lu@intel.com>
19618         PR driver/70192
19619         * opts.c (finish_options): Don't set flag_pie to the default if
19620         -fpic, -fPIC, -fno-pic or -fno-PIC is used.  Set flag_pic to 0
19621         if it is -1.
19623 2016-03-17  Joern Rennecke  <joern.rennecke@embecosm.com>
19625         * config/i386/i386.md (*movv4qicc_insn+1..36): Pass
19626         true as ALL_REGS argument to replace_rtx.
19628 2016-03-17  Richard Biener  <rguenther@suse.de>
19630         PR debug/70271
19631         * dwarf2out.c (dwarf2out_early_finish): Process deferred_asm_name
19632         last.
19634 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
19636         PR target/70245
19637         * rtl.h (replace_rtx): Add ALL_REGS argument.
19638         * rtlanal.c (replace_rtx): Likewise.  If true, use REGNO
19639         equality and assert mode is the same, instead of just rtx pointer
19640         equality.
19641         * config/i386/i386.md (mov + arithmetics with load peephole): Pass
19642         true as ALL_REGS argument to replace_rtx.
19644 2016-03-17  Ilya Enkovich  <enkovich.gnu@gmail.com>
19646         * match.pd (A + (B vcmp C ? 1 : 0) -> A - (B vcmp C)): Apply
19647         for boolean vector with vector mode only.
19648         (A - (B vcmp C ? 1 : 0) -> A + (B vcmp C)): Likewise.
19650 2016-03-17  Nick Clifton  <nickc@redhat.com>
19652         PR target/70162
19653         * config/rx/rx.c (rx_print_integer): Print negative constants in
19654         decimal.
19656 2016-03-17  Jakub Jelinek  <jakub@redhat.com>
19658         PR target/70261
19659         * rtlanal.c (replace_rtx): Revert 2016-03-16 change.
19661 2016-03-16  Richard Henderson  <rth@redhat.com>
19662             Richard Biener  <rguenth@suse.de>
19664         PR middle-end/70240
19665         PR middle-end/68215
19666         PR tree-opt/68714
19667         * gimplify.c (gimplify_expr) [VEC_COND_EXPR]: Gimplify the
19668         first operand as is_gimple_condexpr.
19670         PR middle-end/70240
19671         PR middle-end/68215
19672         Revert r231575
19673         2015-12-11  Eric Botcazou  <ebotcazou@adacore.com>
19674         * tree-vect-generic.c (tree_vec_extract): Remove GSI parameter.
19675         Do not gimplify the result.
19676         (do_unop): Adjust call to tree_vec_extract.
19677         (do_binop): Likewise.
19678         (do_compare): Likewise.
19679         (do_plus_minus): Likewise.
19680         (do_negate): Likewise.
19681         (expand_vector_condition): Likewise.
19682         (do_cond): Likewise.
19684 2016-03-16  Richard Henderson  <rth@redhat.com>
19686         PR target/70048
19687         * config/aarch64/aarch64.c (virt_or_elim_regno_p): New.
19688         (aarch64_classify_address): Use it.
19689         (aarch64_legitimize_address): Force all subexpressions of PLUS
19690         into registers.  Simplify as (sfp+const)+reg or (reg+reg)+const.
19692 2016-03-16  Jakub Jelinek  <jakub@redhat.com>
19693             Richard Biener  <rguenth@suse.de>
19695         PR target/70245
19696         * rtlanal.c (replace_rtx): For REG, if from is a REG,
19697         return to even if only REGNO is equal, and assert
19698         mode is the same.
19700 2016-03-11  Jeff Law  <law@redhat.com>
19702         PR rtl-optimization/70224
19703         * reorg.c (relax_delay_slots): Pass right argument to CROSSING_JUMP_P.
19705 2016-03-16  Richard Henderson  <rth@redhat.com>
19707         PR middle-end/70199
19708         * function.h (struct function): Add has_forced_label_in_static.
19709         * gimplify.c (force_labels_r): Set it.
19710         * lto-streamer-in.c (input_struct_function_base): Read it.
19711         * lto-streamer-out.c (output_struct_function_base): Write it.
19712         * tree-inline.c (has_label_address_in_static_1): Remove.
19713         (copy_forbidden): Remove fndecl parameter; test
19714         has_forced_label_in_static.
19715         (inline_forbidden_p): Update call to copy_forbidden.
19716         (tree_versionable_function_p): Likewise.
19717         * ipa-chkp.c (chkp_instrumentable_p): Likewise.
19718         (chkp_versioning): Likewise.
19719         * tree-inline.h (copy_forbidden): Update decl.
19721 2016-03-16  Marek Polacek  <polacek@redhat.com>
19723         PR c/70093
19724         * cgraphunit.c (cgraph_node::expand_thunk): Also build call to the
19725         function being thunked if the result type doesn't have fixed size.
19726         * gimplify.c (gimplify_modify_expr): Also set LHS if the result type
19727         doesn't have fixed size.
19729 2016-03-16  Bin Cheng  <bin.cheng@arm.com>
19731         * tree-vect-loop.c (vect_analyze_loop_2): Fix wrong dump info by
19732         reporting malformed loop nest.
19734 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19736         PR lto/70187
19737         * ipa-devirt.c (possible_polymorphic_call_targets): Move
19738         nodes.length () == 1 test to before first nodes[0] access.
19740 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19742         PR tree-optimization/68715
19743         * graphite-scop-detection.c (scop_detection::merge_sese): Add missing
19744         single_pred_p test.
19746 2016-03-16  Tom de Vries  <tom@codesourcery.com>
19748         PR tree-optimization/68809
19749         * graphite-scop-detection.c (same_close_phi_node): Test if result types
19750         are the same.
19752 2016-03-16  Carlos O'Donell  <carlos@redhat.com>
19753             Sandra Loosemore  <sandra@codesourcery.com>
19755         * doc/extend.texi (Common Function Attributes): Describe ifunc impact
19756         on leaf attribute. Mention ELF interposition problems.
19758 2016-03-16  Alan Modra  <amodra@gmail.com>
19760         PR rtl-optimization/69195
19761         PR rtl-optimization/47992
19762         * ira.c (indirect_jump_optimize): Ignore artificial defs.
19763         Add comments.
19765 2016-03-15  Eric Botcazou  <ebotcazou@adacore.com>
19767         PR bootstrap/69513
19768         * dwarf2out.c (flush_limbo_die_list): Really flush the limbo list.
19770 2016-03-15  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
19772         * config/avr/avr.md (rotl<mode>3): Set mode for operand 2.
19774 2016-03-15  Jakub Jelinek  <jakub@redhat.com>
19776         PR rtl-optimization/70222
19777         * combine.c (simplify_shift_const_1): For A >> B >> C LSHIFTRT
19778         optimization if mode is different from result_mode, queue up masking
19779         of the result in outer_op.  Formatting fix.
19781         PR middle-end/70239
19782         * tree-ssa-sccvn.c (VN_INFO_GET): Use safe_grow_cleared instead
19783         of safe_grow.
19785 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19787         PR rtl-optimization/69032
19788         * sel-sched-ir.c (get_seqno_by_preds): Include both insn and head when
19789         looping backwards over basic block insns.
19791 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19793         PR target/66660
19794         * sel-sched-ir.c (merge_expr): Avoid changing the speculative pattern
19795         to non-speculative when propagating trap bits.
19797 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19799         PR rtl-optimization/63384
19800         * sel-sched.c (invoke_aftermath_hooks): Do not decrease issue_more on
19801         DEBUG_INSN_P insns.
19803 2016-03-15  Andrey Belevantsev  <abel@ispras.ru>
19805         PR target/64411
19806         * sched-deps.c (get_implicit_reg_pending_clobbers): New function,
19807         factored out from ...
19808         (sched_analyze_insn): ... here.
19809         * sched-int.h (get_implicit_reg_pending_clobbers): Declare it.
19810         * sel-sched-ir.c (setup_id_implicit_regs): New function, use
19811         get_implicit_reg_pending_clobbers in it.
19812         (setup_id_reg_sets): Use setup_id_implicit_regs.
19813         (deps_init_id): Ditto.
19815 2016-03-15  Tom de Vries  <tom@codesourcery.com>
19817         PR ipa/70161
19818         * cgraph.c (cgraph_node::get_body): Save, reset and restore
19819         dump_file_name.
19820         * passes.c (execute_one_ipa_transform_pass): Add missing argument to
19821         execute_function_dump.
19822         (execute_one_pass): Don't dump function if it will be dumped after ipa
19823         transform.
19825 2016-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
19827         * genrecog.c (match_pattern_2): If pred is NULL don't call
19828         safe_predicate_mode on it.
19830 2016-03-14  Jakub Jelinek  <jakub@redhat.com>
19832         PR middle-end/70219
19833         * lra-constraints.c (delete_move_and_clobber): Change assertion
19834         to also allow dregno == 0.
19836 2016-03-14  Richard Henderson  <rth@redhat.com>
19838         PR tree-opt/68714
19839         * tree-ssa-reassoc.c (ovce_extract_ops, optimize_vec_cond_expr): New.
19840         (can_reassociate_p): Allow ANY_INTEGRAL_TYPE_P.
19841         (reassociate_bb): Use optimize_vec_cond_expr; avoid
19842         optimize_range_tests, attempt_builtin_copysign and attempt_builtin_powi
19843         on vectors.
19845 2016-03-14  Bernd Schmidt  <bschmidt@redhat.com>
19847         PR target/70083
19848         * lra-lives.c (process_bb_lives): Also update biggest mode for hard
19849         regs.
19850         (lra_create_live_ranges_1): initialize hard register biggest_mode to
19851         VOIDmode.
19852         * lra-constraints.c (split_reg): For hard regs, try to find the
19853         biggest single-register mode used in the function.
19855 2016-03-14  Richard Biener  <rguenther@suse.de>
19857         PR tree-optimization/56365
19858         * tree-ssa-phiopt.c (minmax_replacement): Handle alternate
19859         constants to compare against.
19861 2016-03-14  Segher Boessenkool  <segher@kernel.crashing.org>
19863         PR target/70098
19864         * config/rs6000/rs6000.md (*ctr<mode>_internal1, *ctr<mode>_internal2,
19865         *ctr<mode>_internal5, *ctr<mode>_internal6): Also allow "d" as output.
19866         (define_split for the GPR case): Use int_reg_operand instead of
19867         gpc_reg_operand for the output.
19869 2016-03-14  Tom de Vries  <tom@codesourcery.com>
19871         PR tree-optimization/70045
19872         * graphite-isl-ast-to-gimple.c (graphite_create_new_loop_guard): Unshare
19873         create_empty_if_region_on_edge argument.
19875 2016-03-13  Eric Botcazou  <ebotcazou@adacore.com>
19877         * config/arm/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Define.
19878         (STACK_CHECK_PROTECT): Likewise.
19879         * config/i386/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19880         (STACK_CHECK_PROTECT): Likewise.
19881         * config/rs6000/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise
19882         (STACK_CHECK_PROTECT): Likewise.
19883         * config/rs6000/vxworksae.h (STACK_CHECK_PROTECT): Likewise.
19884         * config/sparc/vxworks.h (STACK_CHECK_STATIC_BUILTIN): Likewise.
19885         (STACK_CHECK_PROTECT): Likewise.
19887 2016-03-12  Andrey Belevantsev  <abel@ispras.ru>
19889         PR rtl-optimization/69307
19890         * sel-sched.c (choose_best_pseudo_reg): Properly check for hard
19891         registers in modes that span more than one register.
19893 2016-03-12  Vladimir Makarov  <vmakarov@redhat.com>
19895         PR target/69614
19896         * lra-constraints.c (delete_move_and_clobber): New.
19897         (remove_inheritance_pseudos): Use it.
19899 2016-03-12  Eric Botcazou  <ebotcazou@adacore.com>
19901         PR ada/70017
19902         * calls.c (emit_library_call_value_1): Clear the ECF_NOTHROW flag if
19903         the libcall is LCT_THROW.
19904         * explow.c (probe_stack_range): Pass LCT_THROW to emit_library_call
19905         for the checking routine.
19907 2016-03-11  Michael Meissner  <meissner@linux.vnet.ibm.com>
19909         PR target/70131
19910         * config/rs6000/rs6000.md (round32<mode>2_fprs): Do not do the
19911         optimization if we have direct move.
19912         (roundu32<mode>2_fprs): Likewise.
19914 2016-03-11  Bernd Schmidt  <bschmidt@redhat.com>
19916         PR target/70123
19917         * lra-remat.c (operand_to_remat): Disallow hard regs in the value t
19918         be rematerialized.
19919         (reg_overlap_for_remat_p): Renamed from input_regno_present_p.
19920         Arguments swapped.  All callers changed.  Take reg_renumber into
19921         account, and Calculate and compare register ranges for hard regs.
19923 2016-03-11  Jeff Law  <law@redhat.com>
19925         PR tree-optimization/70190
19926         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
19927         Handle cases where we can not extract the taken edge, even though we
19928         found a constant value.
19930         PR tree-optimization/64058
19931         * tree-ssa-coalesce.c (struct coalesce_pair): Add new field INDEX.
19932         (num_coalesce_pairs): Move up earlier in file.
19933         (find_coalesce_pair): Initialize the INDEX field for each pair
19934         discovered.
19935         (compare_pairs): No longer sort on the elements in each pair.
19936         Instead break ties with the index of the coalesce pair.
19938 2016-03-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
19940         PR target/70002
19941         * config/aarch64/aarch64-protos.h
19942         (aarch64_save_restore_target_globals): New prototype.
19943         * config/aarch64/aarch64-c.c (aarch64_pragma_target_parse):
19944         Call the above when popping pragma.
19945         * config/aarch64/aarch64.c (aarch64_save_restore_target_globals):
19946         New function.
19947         (aarch64_set_current_function): Rewrite using the above.
19949 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19951         PR tree-optimization/70177
19952         * gimple-expr.h (extract_ops_from_tree_1): Renamed to ...
19953         (extract_ops_from_tree): ... this.  In the 2 argument
19954         overload remove _1 suffix.
19955         * gimple-expr.c (extract_ops_from_tree_1): Renamed to ...
19956         (extract_ops_from_tree): ... this.
19957         * gimple.c (gimple_build_assign, gimple_assign_set_rhs_from_tree):
19958         Adjust callers.
19959         * tree-ssa-loop-niter.c (derive_constant_upper_bound): Likewise.
19960         * tree-ssa-forwprop.c (defcodefor_name): Call 3 operand
19961         extract_ops_from_tree instead of 2 operand one.
19963 2016-03-11  Alan Lawrence  <alan.lawrence@arm.com>
19965         PR tree-optimization/70013
19966         * tree-sra.c (analyze_access_subtree): Also set grp_unscalarized_data
19967         for constant-pool entries.
19969 2016-03-11  Jakub Jelinek  <jakub@redhat.com>
19971         PR rtl-optimization/70174
19972         * expmed.c (store_bit_field_using_insv): Use gen_lowpart_if_possible
19973         followed by gen_lowpart on force_reg instead of just gen_lowpart.
19975         PR tree-optimization/70169
19976         * tree-ssa-loop.c (gen_lsm_tmp_name): Handle FUNCTION_DECL and
19977         LABEL_DECL like VAR_DECL.  Emit nothing instead of gcc_unreachable
19978         for unknown codes.
19980 2016-03-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
19981             Jakub Jelinek  <jakub@redhat.com>
19983         PR target/70160
19984         * config/i386/i386.c (scalar_chain::convert_reg): Skip uses
19985         of uninitialized values.
19987 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19989         * config/s390/s390.md ("trunctddd2"): Turn former define_insn into
19990         define_expand.
19991         ("*trunctddd2"): New pattern definition.
19992         ("trunctdsd2"): Set prep_for_short_prec rounding mode for the
19993         TD->DD truncation.
19995 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
19997         * config/s390/s390.md (BFP_RND_*, DFP_RND_*): Add new constant
19998         definitions for BFP and DFP rounding modes.
19999         ("fixuns_truncdddi2", "fixuns_trunctddi2")
20000         ("fixuns_trunc<BFP:mode><GPR:mode>2", "fixuns_trunc<mode>si2")
20001         ("fix_trunc<DSF:mode><GPR:mode>2", "fix_trunc<mode>di2")
20002         ("fix_trunctf<mode>2"): Use the new constants instead of magic
20003         numbers.
20005 2016-03-11  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20007         * config/s390/constraints.md: Adjust comment.
20008         ("Y"): Adjust comment.  Rename s390_decompose_shift_count to
20009         s390_decompose_addrstyle_without_index.
20010         * config/s390/predicates.md (shift_count_or_setmem_operand):
20011         Rename to setmem_operand.
20012         * config/s390/s390-protos.h
20013         (s390_decompose_shift_count): Rename to
20014         s390_decompose_addrstyle_without_index.
20015         * config/s390/s390.c (s390_decompose_shift_count)
20016         (s390_mem_constraint, print_shift_count_operand)
20017         (print_operand_address, print_operand): Rename
20018         s390_decompose_shift_count to
20019         s390_decompose_addrstyle_without_index and rename
20020         print_shift_count_operand to print_addrstyle_operand troughout the
20021         file.
20022         * config/s390/s390.md ("setmem_long_<P:mode>", "*setmem_long")
20023         ("*setmem_long_and", "*setmem_long_31z", "*setmem_long_and_31z"):
20024         Rename shift_count_or_setmem_operand to setmem_operand.
20025         * config/s390/vx-builtins.md ("vec_insert<mode>")
20026         ("vec_promote<mode>"): Replace shift_count_or_setmem_operand with
20027         nonmemory_operand.
20029 2016-03-10  Ulrich Weigand  <Ulrich.Weigand@de.ibm.com>
20031         PR target/70168
20032         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
20033         Handle overlapping retval and newval.
20035 2016-03-10  Nick Clifton  <nickc@redhat.com>
20037         PR target/7044
20038         * config/aarch64/aarch64.c
20039         (aarch64_override_options_after_change_1): When forcing
20040         flag_omit_frame_pointer to be true, use a special value that can
20041         be detected if this function is called again, thus preventing
20042         flag_omit_leaf_frame_pointer from being forced to be false.
20044 2016-03-10  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20046         * common/config/aarch64/aarch64-common.c (aarch64_handle_option):
20047         Set x_flag_omit_leaf_frame_pointer when handling
20048         -momit-leaf-frame-pointer.
20050 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20052         PR lto/69589
20053         * cgraph.c (cgraph_node::dump): Dump split_part and
20054         indirect_call_target.
20055         * cgraph.h (cgraph_node): Add indirect_call_target flag.
20056         * ipa.c (has_addr_references_p): Cleanup.
20057         (is_indirect_call_target_p): New.
20058         (walk_polymorphic_call_targets): Do not mark virtuals that may be
20059         called indirectly as local.
20060         (symbol_table::remove_unreachable_nodes): Compute indirect_call_target.
20062 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20064         PR ipa/69630
20065         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
20066         on cxa_pure_virtual.
20068 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20070         PR lto/69589
20071         * tree.c (free_lang_data_in_decl): Clear visibility of TYPE_DECL.
20073 2016-03-10  Jan Hubicka  <hubicka@ucw.cz>
20075         PR lto/69589
20076         * tree.c (need_assembler_name_p): Only record main variant type names.
20078 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20080         PR target/70113.
20081         * config/aarch64/aarch64.h (TARGET_FIX_ERR_A53_843419_DEFAULT):
20082         Always define to 0 or 1.
20083         (TARGET_FIX_ERR_A53_843419): New macro.
20084         * config/aarch64/aarch64-elf-raw.h
20085         (TARGET_FIX_ERR_A53_843419_DEFAULT): Update for above changes.
20086         * config/aarch64/aarch64-linux.h: Likewise.
20087         * config/aarch64/aarch64.c
20088         (aarch64_override_options_after_change_1): Do not default
20089         aarch64_nopcrelative_literal_loads to true if Cortex-A53 erratum
20090         843419 is on.
20091         (aarch64_attributes): Handle fix-cortex-a53-843419.
20092         (aarch64_can_inline_p): Likewise.
20093         * config/aarch64/aarch64.opt (aarch64_fix_a53_err843419): Save.
20095 2016-03-10  Alan Lawrence  <alan.lawrence@arm.com>
20096             Jakub Jelinek  <jakub@redhat.com>
20098         * common.opt (funconstrained-commons, flag_unconstrained_commons): New.
20099         * tree.c (array_at_struct_end_p): Do not limit to size of decl for
20100         DECL_COMMONS if flag_unconstrained_commons is set.
20101         * tree-dfa.c (get_ref_base_and_extent): Likewise.
20102         * doc/invoke.texi (Optimize Options): Add -funconstrained-commons.
20103         (funconstrained-commons): Document.
20105 2016-03-10  Christophe Lyon  <christophe.lyon@linaro.org>
20107         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add
20108         aarch64-fusion-pairs.def and aarch64-tuning-flags.def
20110 2016-03-10  Ilya Enkovich  <enkovich.gnu@gmail.com>
20112         * tree-vect-stmts.c (vectorizable_mask_load_store): Check mask
20113         has a proper number of elements.
20115 2016-03-10  Alan Modra  <amodra@gmail.com>
20117         PR rtl-optimization/69195
20118         PR rtl-optimization/47992
20119         * ira.c (recorded_label_ref): Delete.
20120         (update_equiv_regs): Return void.
20121         (indirect_jump_optimize): New function.
20122         (ira): Call indirect_jump_optimize and delete_trivially_dead_insns
20123         before regstat_compute_ri.  Don't rebuild_jump_labels here.
20124         Delete update_regstat.
20126 2016-03-10  Richard Biener  <rguenther@suse.de>
20128         PR tree-optimization/70128
20129         * tree-ssa-structalias.c (set_uids_in_ptset): Set
20130         vars_contains_nonlocal for any FUNCTION_DECL or LABEL_DECL.
20132 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20134         PR tree-optimization/70152
20135         * tree-sra.c (replace_removed_params_ssa_names): Copy over
20136         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from old_name to new_name.
20138         PR target/70086
20139         * config/i386/i386.md (truncdfsf2 splitter): Use gen_vec_concatv2df
20140         instead of gen_sse2_loadlpd.
20141         * config/i386/sse.md (*vec_concatv2df): Rename to...
20142         (vec_concatv2df): ... this.
20144         PR tree-optimization/70127
20145         * fold-const.c (operand_equal_p): Revert the 2015-10-28 change.
20147 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20149         PR c/68473
20150         PR c++/70105
20151         * diagnostic-show-locus.c (compatible_locations_p): New function.
20152         (layout::layout): Sanitize ranges using compatible_locations_p.
20154 2016-03-09  David Malcolm  <dmalcolm@redhat.com>
20156         PR c/68473
20157         PR c++/70105
20158         * diagnostic-show-locus.c (layout_range::layout_range): Replace
20159         location_range param with three const expanded_locations * and a
20160         bool.
20161         (layout::layout): Replace call to
20162         rich_location::lazily_expand_location with get_expanded_location.
20163         Extract the range and perform location expansion here, passing
20164         the results to the layout_range ctor.
20165         * diagnostic.c (source_range::debug): Delete.
20166         * diagnostic.h (diagnostic_expand_location): Reimplement in terms
20167         of rich_location::get_expanded_location.
20168         * gcc-rich-location.c (get_range_for_expr): Delete.
20169         (gcc_rich_location::add_expr): Reimplement to avoid the
20170         rich_location::add_range overload that took a location_range,
20171         passing a location_t instead.
20173 2016-03-09  Richard Biener  <rguenther@suse.de>
20174         Jakub Jelinek  <jakub@redhat.com>
20176         PR tree-optimization/70138
20177         * tree-vect-loop-manip.c (vect_update_ivs_after_vectorizer):
20178         Also skip vect_double_reduction_def.
20180 2016-03-09  Jakub Jelinek  <jakub@redhat.com>
20182         PR target/70049
20183         * config/i386/sse.md (*vec_extract<mode>): Use %0 instead of %k0
20184         if the operand is "m".
20186 2016-03-09  Nathan Sidwell  <nathan@acm.org>
20188         * config/nvptx/nvptx.c (nvptx_option_override): Don't kill debug level.
20190 2016-03-09  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
20192         * config/i386/i386.c (processor_target_table): Fix cost table
20193         intialization order for znver1.
20195 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20197         * ipa-polymorphic-call.c (walk_ssa_copies): Fix spelling
20198         - becuase -> because.
20199         * ipa-reference.c (ignore_module_statics): Likewise.
20200         * cgraph.c (cgraph_node::get_body): Likewise.
20201         * ipa-inline.c (early_inliner): Likewise.
20202         * ipa-devirt.c (types_same_for_odr): Likewise.
20203         * tree-streamer-out.c (pack_ts_type_common_value_fields): Likewise.
20204         * config/i386/i386.h (ACCUMULATE_OUTGOING_ARGS): Likewise.
20206 2016-03-08  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20208         * tree-ssa-math-opts.c: Fix typo in comment.
20210 2016-03-08  Jakub Jelinek  <jakub@redhat.com>
20212         PR target/70110
20213         * config/i386/i386.c (scalar_chain::make_vector_copies,
20214         scalar_chain::convert_reg): Call end_sequence in between
20215         get_insns and emit_conversion_insns rather than after both
20216         calls.
20218 2016-03-07  Uros Bizjak  <ubizjak@gmail.com>
20220         PR target/70064
20221         * config/i386/i386.h (machine_function): Add
20222         pc_thunk_call_expanded flag.
20223         (ix86_pc_thunk_call_expanded): New define.
20224         * config/i386/i386.md (set_got, set_got_labelled): New expanders.
20225         (*set_got): Rename insn pattern from set_got.
20226         (*set_got_labelled): Rename inst pattern from set_got_labelled.
20227         * config/i386/i386.c (ix86_compute_frame_layout): Use
20228         ix86_pc_thunk_call_expanded to prevent red-zone.
20230 2016-03-07  Martin Jambor  <mjambor@suse.cz>
20232         * hsa.h (hsa_get_ctor_statements): Declare.
20233         (hsa_get_dtor_statements): Likewise.
20234         (hsa_get_kernel_dispatch_type): Likewise.
20235         * hsa.c (hsa_get_ctor_statements): New function.
20236         (hsa_get_dtor_statements): Likewise.
20237         (hsa_get_kernel_dispatch_type): Likewise.
20238         * hsa-brig.c (hsa_cdtor_statements): Removed.
20239         (hsa_output_libgomp_mapping): Use hsa_get_ctor_statements and
20240         hsa_get_dtor_statements.
20241         * hsa-gen.c (hsa_kernel_dispatch_type): Removed.
20242         (get_hsa_kernel_dispatch_offset): Use hsa_get_kernel_dispatch_type.
20244 2016-03-07  Andre Vieira  <andre.simoesdiasvieira@arm.com>
20246         * config/arm/arm-cores.def (cortex-r8): New.
20247         * config/arm/arm-tables.opt (cortex-r8): Regenerate.
20248         * config/arm/arm-tune.md: Likewise.
20249         * doc/invoke.texi: Add cortex-r8 to list of cpu values.
20251 2016-03-07  Martin Sebor  <msebor@redhat.com>
20253         PR rtl-optimization/19705
20254         * doc/invoke.texi (Options That Control Optimization): Clarify
20255         -fno-branch-count-reg.
20257 2016-02-26  Richard Biener  <rguenther@suse.de>
20258             Jeff Law  <law@redhat.com>
20260         PR tree-optimization/69740
20261         * cfghooks.c (remove_edge): Request loop fixups if we delete
20262         an edge that might turn an irreducible loop into a natural
20263         loop.
20264         * cfgloop.h (check_verify_loop_structure): Clear LOOPS_NEED_FIXUP.
20265         Move after definition of loops_state_clear.
20267 2016-03-07  Bin Cheng  <bin.cheng@arm.com>
20269         PR rtl-optimization/69052
20270         * rtlanal.c (commutative_operand_precedence): Set higher precedence
20271         to CONST_WIDE_INT.
20273 2016-03-07  Tom de Vries  <tom@codesourcery.com>
20275         PR tree-optimization/70116
20276         * tree-ssa-tail-merge.c (merge_stmts_p): New function, handling
20277         is_tm_ending stmts and ubsan/asan internal functions.
20278         (find_duplicate): Use it.  Don't test is_tm_ending here.
20280 2016-03-07  Richard Biener  <rguenther@suse.de>
20282         PR tree-optimization/70115
20283         * tree-ssa-loop-ivcanon.c (propagate_into_all_uses): Remove.
20284         (propagate_constants_for_unrolling): Use replace_uses_by.
20286 2016-03-07  Nathan Sidwell  <nathan@codesourcery.com>
20288         PR middle-end/69916
20289         * omp-low.c (struct oacc_loop): Add ifns.
20290         (new_oacc_loop_raw): Initialize it.
20291         (finish_oacc_loop): Clear mask & flags if no ifns.
20292         (oacc_loop_discover_walk): Count IFN_GOACC_LOOP calls.
20293         (oacc_loop_xform_loop): Add ifns arg & adjust.
20294         (oacc_loop_process): Adjust oacc_loop_xform_loop call.
20296 2016-03-07  Richard Henderson  <rth@redhat.com>
20298         PR rtl-opt/70061
20299         * tree-outofssa.c (emit_partition_copy): Flush pending stack adjust.
20300         (insert_value_copy_on_edge): Likewise.
20302 2016-03-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20304         * config/arm/arm_neon.h: Show error if using with soft-float ABI.
20306 2016-03-07  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
20308         PR target/62281
20309         * config/i386/sol2.h (STACK_REALIGN_DEFAULT): Define.
20311 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
20313         * config/i386/i386.c (znver1_cost): Fix Multiply cost.
20315 2016-03-05  Venkataramanan Kumar  <Venkataramanan.kumar@amd.com>
20317         Fix sseimul type attribute.
20318         * config/i386/znver1.md
20319         (znver1_sseimul, znver1_sseimul_avx256, znver1_sseimul_load,
20320         znver1_sseimul_avx256_load) : Fix the type attribute.
20321         (znver1_sseimul_di, znver1_sseimul_load_di): Fix type attribute,
20322         pipe usage and latency.
20324 2016-03-05  Jakub Jelinek  <jakub@redhat.com>
20326         PR c++/70084
20327         * tree-inline.c (copy_tree_body_r): When cancelling ADDR_EXPR
20328         of INDIRECT_REF and ADDR_EXPR changed type, fold_convert it
20329         to the right type.
20331 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
20333         PR c/69973
20334         * targhooks.c (default_vector_alignment): Limit to MAX_OFILE_ALIGNMENT.
20336         PR rtl-optimization/69941
20337         * postreload.c (reload_combine_recognize_pattern): Ensure all uses of
20338         the reg share its mode.
20340 2016-03-04  Jeff Law  <law@redhat.com>
20342         PR tree-optimization/69196
20343         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20344         If the both SSA_NAMEs are anonymous, then consider them unassociated
20345         and include the PHI in the statement count.
20347 2016-03-05  Tom de Vries  <tom@codesourcery.com>
20349         * omp-low.c (check_omp_nesting_restrictions): Check for non-oacc
20350         construct in oacc routine.  Check for oacc region in oacc routine.
20352 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
20354         PR target/70062
20355         * config/i386/i386.c (decide_alg): Add RECUR argument.  Revert
20356         2016-02-22 changes, instead don't recurse if RECUR is already true.
20357         Don't change *dynamic_check if RECUR.  Adjust recursive caller
20358         to pass true to the new argument.
20359         (ix86_expand_set_or_movmem): Adjust decide_alg caller.
20361         PR target/70059
20362         * config/i386/sse.md (vec_set_lo_<mode><mask_name>,
20363         <extract_type_2>_vinsert<shuffletype><extract_suf_2>_mask): Formatting
20364         fixes.
20365         (vec_set_hi_<mode><mask_name>): Likewise.  Swap VEC_CONCAT operands.
20367 2016-03-04  Bernd Schmidt  <bschmidt@redhat.com>
20369         PR rtl-optimization/57676
20370         * lra-assigns.c (lra_assign): Guard test for maximum iterations
20371         with flag_checking.
20373 2016-03-04  Ilya Enkovich  <enkovich.gnu@gmail.com>
20375         * tree-vect-patterns.c (search_type_for_mask): Handle
20376         comparison of booleans.
20378 2016-03-04  Jakub Jelinek  <jakub@redhat.com>
20380         * doc/extend.texi (__builtin_alloca, __builtin_alloca_with_align):
20381         Fix @xref usage.
20383         PR debug/69947
20384         * dwarf2out.c (prune_unused_types_walk_loc_descr): Handle
20385         all other ops that have dw_val_class_die_ref operands,
20386         and DW_OP_GNU_entry_value.
20388 2016-03-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20390         PR rtl-optimization/69904
20391         * config/arm/arm.c (arm_cannot_copy_insn_p):
20392         Return true for load-exclusive instructions.
20394 2016-03-03  Jakub Jelinek  <jakub@redhat.com>
20396         PR target/70021
20397         * tree-vect-stmts.c (vect_mark_relevant): Remove USED_IN_PATTERN
20398         argument, if STMT_VINFO_IN_PATTERN_P (stmt_info), always mark
20399         the pattern no matter if it is used just by non-pattern, pattern
20400         or mix thereof.
20401         (process_use, vect_mark_stmts_to_be_vectorized): Adjust callers.
20402         * tree-vect-patterns.c (vect_recog_vector_vector_shift_pattern): If
20403         oprnd1 def_stmt is in pattern, don't look through it.
20405 2016-03-03  Marek Polacek  <polacek@redhat.com>
20407         PR middle-end/70050
20408         * match.pd (X % -Y): Add INTEGRAL_TYPE_P check.
20410 2016-03-03  Martin Liska  <mliska@suse.cz>
20412         PR tree-optimization/70043
20413         * tree-vect-loop.c (optimize_mask_stores): Move iterator to
20414         previous statement if we see a debug statement.
20416 2016-03-03  Richard Biener  <rguenther@suse.de>
20418         PR tree-optimization/55936
20419         * tree-vrp.c (compare_name_with_value): Add use_equiv_p
20420         parameter and guard unsafe equivalence use.
20421         (vrp_evaluate_conditional_warnv_with_ops): Always use
20422         safe equivalences but not via the quadratic compare_names
20423         helper.
20425 2016-03-03  Michael Collison  <michael.collison@linaro.org>
20427         PR target/70014
20428         * config/arm/arm.md (*subsi3_carryin_const): Change predicate
20429         for operand 1 to s_register_operand. Change predicate for operand
20430         2 to arm_not_immediate_operand.
20432 2016-03-02  H.J. Lu  <hongjiu.lu@intel.com>
20434         * doc/tm.texi: Regenerated.
20436 2016-03-02  Richard Henderson  <rth@redhat.com>
20438         PR rtl-opt/67145
20439         * simplify-rtx.c (simplify_plus_minus): Allow reassoc without
20440         simplification when all args are positive non-fixed registers.
20442 2016-03-02  Manuel Lopez-Ibanez  <manu@gcc.gnu.org>
20444         * target.def (lra_p): Specify that new ports should use LRA.
20446 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
20448         PR libgomp/69555
20449         * gimplify.c (gimplify_decl_expr): For decls with REFERENCE_TYPE, also
20450         gimplify_type_sizes the type they refer to.
20451         (omp_notice_variable): Handle reference vars to VLAs.
20452         * omp-low.c (lower_omp_target): Emit setup of OMP_CLAUSE_PRIVATE
20453         reference to VLA decls in the second pass instead of first pass.
20455 2016-03-02  Tom de Vries  <tom@codesourcery.com>
20457         PR tree-optimization/68659
20458         * graphite-isl-ast-to-gimple.c (collect_all_ssa_names): Handle
20459         new_expr == NULL_TREE.
20460         (get_new_name): Handle ADDR_EXPR.
20462 2016-03-02  Bin Cheng  <bin.cheng@arm.com>
20464         PR rtl-optimization/69052
20465         * loop-invariant.c (canonicalize_address): New function.
20466         (inv_can_prop_to_addr_use): Check validity of address expression
20467         which is canonicalized by above function.
20469 2016-03-02  Alan Modra  <amodra@gmail.com>
20471         PR ipa/69990
20472         * ipa-icf.c (sem_variable::merge): Do not merge an alias with
20473         larger alignment.
20475 2016-03-02  Jakub Jelinek  <jakub@redhat.com>
20477         PR target/70028
20478         * config/i386/i386.md (kmovw): Move m constraint to 2nd alternative.
20479         (*movhi_internal): Put mask moves from and to memory separately
20480         from moves from/to GPRs.
20482 2016-03-02  Richard Biener  <rguenther@suse.de>
20484         * genmatch.c (dt_node::gen_kids): Fix match code-gen for embedded
20485         GENERIC expressions in GIMPLE.
20487 2016-03-02  Richard Biener  <rguenther@suse.de>
20489         * config/i386/i386.c (type_natural_mode): Fix typo.
20491 2016-03-02  Nick Clifton  <nickc@redhat.com>
20493         * config.gcc (mep-*-elf): Add newlib-stdint.h to tm_file.
20495 2016-03-02  Richard Biener  <rguenther@suse.de>
20496             Uros Bizjak  <ubizjak@gmail.com>
20498         PR target/67278
20499         * config/i386/i386.c (type_natural_mode): Handle XFmode vectors.
20501 2016-03-02  Richard Biener  <rguenther@suse.de>
20503         PR middle-end/67278
20504         * tree-cfg.c (verify_expr): Adjust BIT_FIELD_REF case.
20506 2016-03-02  Marek Polacek  <polacek@redhat.com>
20508         PR c/67854
20509         * gimplify.c (gimplify_va_arg_expr): Use expanded location for the
20510         "is promoted to" warning.
20512 2016-03-01  DJ Delorie  <dj@redhat.com>
20514         * config.gcc: Deprecate mep-*.
20516 2016-03-01  Vladimir Makarov  <vmakarov@redhat.com>
20518         PR middle-end/70025
20519         * lra-constraints.c (regno_val_use_in): New.
20520         (match_reload): Use it instead of regno_use_in.
20522 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
20524         PR rtl-optimization/70007
20525         * gcse.c (compute_ld_motion_mems): Tidy up and also invalidate memory
20526         references present in REG_EQUAL notes attached to non-SET patterns.
20528 2016-03-01  Jeff Law  <law@redhat.com>
20530         PR tree-optimization/69196
20531         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20532         Appropriately clamp the number of statements to copy when the
20533         thread path does not traverse a loop backedge.
20535         PR tree-optimization/69196
20536         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
20537         Do count some PHIs in the thread path against the insn count.  Decrease
20538         final statement count by one as the control statement in the last
20539         block will get removed.  Remove special cased code for handling PHIs
20540         in the last block.
20542 2016-03-01  Uros Bizjak  <ubizjak@gmail.com>
20544         PR target/70027
20545         * config/i386/i386.c (ix86_output_call_insn): Add -masm=intel
20546         asm dialect alternatives to explicit GOTPCREL calls.
20548 2016-03-01  Eric Botcazou  <ebotcazou@adacore.com>
20550         PR ada/70017
20551         * ira.c (do_reload): Issue warning for generic stack checking here...
20552         * reload1.c (reload): ...instead of here and streamline it.
20554 2016-03-01  Nick Clifton  <nickc@redhat.com>
20556         * config.gcc (cr16-*-elf): Add newlib-stdint.h to tm_file.
20558 2016-03-01  Richard Biener  <rguenther@suse.de>
20560         PR tree-optimization/69983
20561         * tree-chrec.c (eq_evolutions_p): Handle conversions, compare
20562         types and fall back to operand_equal_p.
20564 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20566         Revert
20567         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20569         * config/s390/constraints.md ("jm8"): New constraint.
20570         * config/s390/predicates.md ("const_int_8bitset_operand"): New
20571         predicate.
20572         * config/s390/s390.md ("*setmem_long", "*setmem_long_and"): Merge
20573         into ...
20574         ("*setmem_long<setmem_and>"): New pattern.
20575         ("*setmem_long_31z", "*setmem_long_and_31z"): Merge
20576         into ...
20577         ("*setmem_long_31z<setmem_and>"): New pattern.
20578         * config/s390/subst.md ("setmem_31z_subst", "setmem_and_subst"):
20579         New substitution rules with the required attributes.
20582 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20584         Revert
20585         2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20587         * gensupport.c (process_substs_on_one_elem): Split loop to
20588         complete mark_operands_used_in_match_dup on all expressions in the
20589         vector first.
20590         (adjust_operands_numbers): Inline into process_substs_on_one_elem
20591         and remove function.
20593 2016-03-01  Richard Biener  <rguenther@suse.de>
20595         PR middle-end/70022
20596         * fold-const.c (fold_indirect_ref_1): Fix range checking for
20597         vector BIT_FIELD_REF extract.
20599 2016-03-01  Richard Biener  <rguenther@suse.de>
20601         PR tree-optimization/69994
20602         * tree-ssa-reassoc.c (ops_equal_values_p): Handle missing case.
20604 2016-03-01  Ilya Enkovich  <enkovich.gnu@gmail.com>
20606         PR tree-optimization/69956
20607         * tree-vect-stmts.c (supportable_widening_operation): Support
20608         multi-step conversion of boolean vectors.
20609         (supportable_narrowing_operation): Likewise.
20611 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20613         * config/s390/s390.c (s390_decompose_address): Don't accept SImode
20614         anymore.
20616 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20618         * config/s390/subst.md (DSI_VI): New mode iterator.
20619         ("addr_style_op_subst"): Use DSI_VI instead of DSI.
20620         * config/s390/vector.md ("vec_set<mode>"): Move expander before
20621         the insn definition.
20622         ("*vec_set<mode>"): Change predicate and add alternative to
20623         support only either register or const_int operands as element
20624         selector.
20625         ("*vec_set<mode>_plus"): New pattern to support reg + const_int
20626         operands.
20627         ("vec_extract<mode>"): New expander.
20628         ("*vec_extract<mode>"): New insn definition supporting reg and
20629         const_int element selectors.
20630         ("*vec_extract<mode>_plus"): New insn definition supporting
20631         reg+const_int element selectors.
20632         ("rotl<mode>3", "ashl<mode>3", "ashr<mode>3"): Merge into the
20633         following expander+insn definition.
20634         ("<vec_shifts_name><mode>3"): New expander.
20635         ("*<vec_shifts_name><mode>3<addr_style_op>"): New insn definition.
20637 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20639         * config/s390/s390.md ("*tabort_1"): Change predicate to
20640         nonmemory_operand.  Add a second alternative to cover
20641         register as well as const int operands.
20642         ("*tabort_1_plus"): New pattern definition.
20644 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20646         * config/s390/s390.md ("*ashrdi3_cc_31")
20647         ("*ashrdi3_cconly_31""*ashrdi3_cc_31_and")
20648         ("*ashrdi3_cconly_31_and", "*ashrdi3_31_and", "*ashrdi3_31"):
20649         Merge insn definitions into ...
20650         ("*ashrdi3_31<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20651         New pattern definition.
20652         ("*ashr<mode>3_cc", "*ashr<mode>3_cconly", "ashr<mode>3", )
20653         ("*ashr<mode>3_cc_and", "*ashr<mode>3_cconly_and")
20654         ("*ashr<mode>3_and"): Merge insn definitions into ...
20655         ("*ashr<mode>3<addr_style_op_cc><masked_op_cc><setcc><cconly>"):
20656         New pattern definition.
20657         * config/s390/subst.md ("addr_style_op_cc_subst")
20658         ("masked_op_cc_subst", "setcc_subst", "cconly_subst"): New
20659         substitutions patterns plus attributes.
20660         Add ashiftrt to SUBST iterator.
20662 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20664         * config/s390/s390.md ("<shift><mode>3"): Change predicate of
20665         op2 to nonmemory_operand.
20666         ("*<shift>di3_31", "*<shift>di3_31_and"):
20667         Merge into single pattern definition ...
20668         ("*<shift>di3_31<addr_style_op><masked_op>"): New pattern.
20669         ("*<shift><mode>3", "*<shift><mode>3_and"): Merge into single
20670         pattern definition ...
20671         ("*<shift><mode>3<addr_style_op><masked_op>"): New pattern.
20672         * config/s390/subst.md: Add ashift and lshiftrt to SUBST
20673         iterator.
20675 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20677         * config/s390/predicates.md (const_int_6bitset_operand): New
20678         predicate.
20679         * config/s390/s390.md: Include subst.md.
20680         ("rotl<mode>3"): New expander.
20681         ("rotl<mode>3", "*rotl<mode>3_and"): Merge insn definitions into
20682         ...
20683         ("*rotl<mode>3<addr_style_op><masked_op>"): New insn definition.
20684         * config/s390/subst.md: New file.
20686 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20688         * config/s390/s390.md ("op_type", "atype", "length" attributes):
20689         Remove RRR type.  It doesn't really exist.
20690         ("RRer", "f0", "v0", "vf", "vd", "op1", "Rf"): Remove mode
20691         attributes.
20692         ("BFP", "DFP", "nDSF", "nDFDI"): Add mode attributes.
20693         ("*cmp<mode>_ccs", "floatdi<mode>2", "add<mode>3")
20694         ("*add<mode>3_cc", "*add<mode>3_cconly", "sub<mode>3")
20695         ("*sub<mode>3_cc", "*sub<mode>3_cconly", "mul<mode>3")
20696         ("fma<mode>4", "fms<mode>4", "div<mode>3", "*neg<mode>2")
20697         ("*abs<mode>2", "*negabs<mode>2", "sqrt<mode>2"): Override
20698         `enabled' attribute.
20700 2016-03-01  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
20702         * gensupport.c (process_substs_on_one_elem): Split loop to
20703         complete mark_operands_used_in_match_dup on all expressions in the
20704         vector first.
20705         (adjust_operands_numbers): Inline into process_substs_on_one_elem
20706         and remove function.
20708 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
20710         PR target/69706
20711         * config/sparc/sparc.c (NWORDS_UP): Rename to...
20712         (CEIL_NWORDS): ...this.  Use CEIL macro.
20713         (compute_fp_layout): Adjust to above renaming.
20714         (function_arg_union_value): Likewise.
20715         (sparc_arg_partial_bytes): Likewise.
20716         (sparc_function_arg_advance): Likewise.
20718 2016-02-29  Jeff Law  <law@redhat.com>
20720         PR tree-optimization/70005
20721         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Handle case
20722         where an object with a boolean range is compared against a value
20723         outside [0..1].
20725         PR tree-optimization/69999
20726         * gimple-ssa-split-paths.c (split_paths): When duplicating a block
20727         with an outgoing edge marked with EDGE_IRREDUCIBLE_LOOP, schedule
20728         loop cleanups.
20730 2016-02-29  Richard Biener  <rguenther@suse.de>
20732         PR tree-optimization/69994
20733         * tree-ssa-reassoc.c (gimple_nop_conversion_p): New function.
20734         (get_unary_op): Look through nop conversions.
20735         (ops_equal_values_p): New function, look for equality diregarding
20736         nop conversions.
20737         (eliminate_plus_minus_pair): Use ops_equal_values_p
20738         (repropagate_negates): Do not use get_unary_op here.
20740 2016-02-29  Martin Liska  <mliska@suse.cz>
20742         * system.h: Poison ENABLE_CHECKING macro.
20744 2016-02-29  Martin Liska  <mliska@suse.cz>
20746         * hsa-gen.c (gen_body_from_gimple): Dump only if TDF_DETAILS
20747         is presented in dump flags.
20748         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20749         (hsa_regalloc): Likewise.
20751 2016-02-19  Richard Biener  <rguenther@suse.de>
20753         PR tree-optimization/69980
20754         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Update
20755         permutation of those we need to keep.
20757 2016-02-29  Eric Botcazou  <ebotcazou@adacore.com>
20759         PR target/69706
20760         * config/sparc/sparc.c (ROUND_ADVANCE): Rename to...
20761         (NWORDS_UP): ...this
20762         (init_cumulative_args): Minor tweaks.
20763         (sparc_promote_function_mode): Likewise.
20764         (scan_record_type): Delete.
20765         (traverse_record_type): New function template.
20766         (classify_data_t): New structure type.
20767         (classify_registers): New inline function.
20768         (function_arg_slotno): In 64-bit mode, bail out early if FP slots are
20769         exhausted.  Instantiate traverse_record_type on classify_registers and
20770         deal with the case of a structure passed in slot #15 with no FP field
20771         in the first word.
20772         (assign_data_t): New structure type.
20773         (compute_int_layout): New static function.
20774         (compute_fp_layout): Likewise.
20775         (count_registers): New inline function.
20776         (assign_int_registers): New static function.
20777         (assign_fp_registers): Likewise.
20778         (assign_registers): New inline function.
20779         (function_arg_record_value_1): Delete.
20780         (function_arg_record_value_2): Likewise.
20781         (function_arg_record_value_3): Likewise.
20782         (function_arg_record_value): Adjust to above changes.  Instantiate
20783         traverse_record_type on count_registers to first count the number of
20784         registers to be used and then on assign_registers to assign them.
20785         (function_arg_union_value): Adjust to above renaming.
20786         (sparc_function_arg_1); Minor tweaks.  Remove commented out code.
20787         (sparc_arg_partial_bytes): Adjust to above renaming.  Deal with the
20788         case of a structure passed in slot #15
20789         (sparc_function_arg_advance): Likewise.
20790         (function_arg_padding): Minor tweak.
20792 2016-02-29  Richard Biener  <rguenther@suse.de>
20794         PR tree-optimization/69720
20795         * tree-vect-loop.c (get_initial_def_for_reduction): Avoid
20796         the adjustment_def path for possibly vectorized defs.
20797         (vect_create_epilog_for_reduction): Handle vectorized initial
20798         defs properly.
20800 2016-02-28  Eric Botcazou  <ebotcazou@adacore.com>
20802         * config/i386/cygming.h (STACK_REALIGN_DEFAULT): Define.
20804 2016-02-27  Jeff Law  <law@redhat.com>
20806         Revert
20807         2016-02-26  Richard Biener  <rguenther@suse.de>
20808                     Jeff Law  <law@redhat.com>
20810         PR tree-optimization/69740
20811         * cfghooks.c (remove_edge): Request loop fixups if we delete
20812         an edge that might turn an irreducible loop into a natural
20813         loop.
20815 2016-02-27  Jakub Jelinek  <jakub@redhat.com>
20817         PR rtl-optimization/69896
20818         * tree-vect-generic.c (get_compute_type): Avoid single element
20819         vector types.
20821 2016-02-26  Evandro Menezes  <e.menezes@samsung.com>
20823         Rename the AArch64 tuning option and related functions to enable the
20824         Newton series for the reciprocal square root to reflect its
20825         approximative characteristic.
20827         * config/aarch64/aarch64-protos.h (aarch64_emit_swrsqrt): Rename
20828         function to "aarch64_emit_approx_rsqrt".
20829         * config/aarch64/aarch64-tuning-flags.def: Rename tuning flag to
20830         AARCH64_EXTRA_TUNE_APPROX_RSQRT.
20831         * config/aarch64/aarch64.c (exynosm1_tunigs): Use new flag name.
20832         (xgene1_tunings): Likewise.
20833         (use_rsqrt_p): Likewise.
20834         (aarch64_emit_swrsqrt): Use new function name.
20835         * config/aarch64/aarch64-simd.md (aarch64_rsqrts_*): Likewise.
20836         * config/aarch64/aarch64.opt (mlow-precision-recip-sqrt): Reword the
20837         text explaining this option.
20838         * doc/invoke.texi (-mlow-precision-recip-sqrt): Likewise.
20840 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20842         PR target/69969
20843         * config/rs6000/rs6000.c (rs6000_option_override_internal): Don't
20844         complain about -mallow-movmisalign without -mvsx if
20845         TARGET_ALLOW_MOVMISALIGN was not set explicitly.
20847 2016-02-26  Joel Sherrill  <joel@rtems.org>
20849         * config.gcc: Add x86_64-*-rtems*.
20850         * config/i386/rtems-64.h: New file.
20852 2016-02-26  Joel Sherrill  <joel@rtems.org>
20854         * config.gcc: Add aarch64-*-rtems*.
20855         * config/aarch64/rtems.h: New file.
20857 2016-02-26  Segher Boessenkool  <segher@kernel.crashing.org>
20859         PR target/69946
20860         * config/rs6000/rs6000.c (rs6000_insn_for_shift_mask): Print rlwinm
20861         shift amount using %h.  Add comment.
20863 2016-02-26  Richard Biener  <rguenther@suse.de>
20864             Jeff Law  <law@redhat.com>
20866         PR tree-optimization/69740
20867         * cfghooks.c (remove_edge): Request loop fixups if we delete
20868         an edge that might turn an irreducible loop into a natural
20869         loop.
20871 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20873         PR middle-end/69920
20874         * tree-sra.c (sra_modify_assign): Do not remove loads of
20875         uninitialized aggregates to SSA_NAMEs.
20877 2016-02-26  Richard Henderson  <rth@redhat.com>
20879         PR target/69709
20880         * config/s390/s390.md (risbg and risbgn splitters): Allocate new
20881         pseudo in case the target rtx matches the source of the left
20882         shift.
20884 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20886         PR hsa/69568
20887         * hsa.h (hsa_type_packed_p): Declare.
20888         * hsa.c (hsa_type_packed_p): New function.
20889         * hsa-gen.c (mem_type_for_type): Use unsigned type for packed
20890         loads.
20891         (gen_hsa_insns_for_store): Use hsa_type_packed_p.
20892         * hsa-brig.c (emit_basic_insn): Likewise.
20894 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20896         pr hsa/69674
20897         * hsa-gen.c (gen_hsa_phi_from_gimple_phi): Use proper hsa type for
20898         pointers.
20899         (gen_hsa_addr): Allow integer constants in TMR_INDEX2.
20901 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20903         * hsa.h (is_a_helper): New overload for hsa_op_immed for
20904         hsa_op_with_type operands.
20905         (hsa_unsigned_type_for_type): Declare.
20906         * hsa.c (hsa_unsigned_type_for_type): New function.
20907         * hsa-gen.c (gen_hsa_binary_operation): Use hsa_unsigned_type_for_type.
20908         (gen_hsa_insns_for_operation_assignment): Satisfy constrains of
20909         the finalizer.  Do not emit extra move.
20911 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20913         * hsa-gen.c (gen_hsa_ternary_atomic_for_builtin): Fail in presence of
20914         atomic operations in private segment.
20916 2016-02-26  Martin Jambor  <mjambor@suse.cz>
20918         * omp-low.c (grid_find_ungridifiable_statement): Store problematic
20919         statements to wi->info.  Also disallow omp simd constructs.
20920         (grid_target_follows_gridifiable_pattern): Use wi.info to dump reason
20921         for not gridifying.  Dump special string for omp_for.
20923 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20925         PR target/69245
20926         * config/aarch64/aarch64.c (aarch64_set_current_function):
20927         Save/restore target globals when switching to
20928         target_option_default_node.
20930 2016-02-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
20932         PR target/69613
20933         * config/aarch64/aarch64.c (aarch64_shift_truncation_mask):
20934         Return 0 if !SHIFT_COUNT_TRUNCATED.
20936 2016-02-26  Jakub Jelinek  <jakub@redhat.com>
20937             Eric Botcazou  <ebotcazou@adacore.com>
20939         PR rtl-optimization/69891
20940         * dse.c (scan_insn): If we can't figure out memset arguments
20941         or they are non-constant, call clear_rhs_from_active_local_stores.
20943 2016-02-26  Martin Liska  <mliska@suse.cz>
20945         * doc/extend.texi: Mention clog10, clog10f an clog10l
20946         in Builtins section.
20948 2016-02-26  Martin Liska  <mliska@suse.cz>
20950         * dwarf2out.c (new_loc_descr): Replace ENABLE_CHECKING with
20951         CHECKING_P.
20952         (resolve_args_picking_1): Likewise.
20953         * dwarf2out.h (struct GTY): Likewise.
20955 2016-02-26  Martin Liska  <mliska@suse.cz>
20957         * hsa-gen.c (generate_hsa): Replace ENABLE_CHECKING macro
20958         with flag_checking.
20959         * hsa-regalloc.c (linear_scan_regalloc): Likewise.
20961 2016-02-26  Markus Trippelsdorf  <markus@trippelsdorf.de>
20962             Martin Liska  <mliska@suse.cz>
20964         * doc/install.texi: Mention --enable-valgrind-annotations.
20966 2016-02-26  Richard Biener  <rguenther@suse.de>
20968         PR tree-optimization/69551
20969         * tree-ssa-structalias.c (get_constraint_for_ssa_var): When
20970         looking through aliases adjust DECL_PT_UID to refer to the
20971         ultimate alias target.
20973 2016-02-25  Martin Liska  <mliska@suse.cz>
20975         PR middle-end/69919
20976         * alloc-pool.c (after_memory_report): New variable.
20977         * alloc-pool.h (base_pool_allocator ::release): Do not use
20978         the infrastructure if after_memory_report.
20979         * toplev.c (toplev::main): Mark after memory report.
20981 2016-02-25  Richard Biener  <rguenther@suse.de>
20983         PR tree-optimization/48795
20984         * tree-vrp.c (check_array_ref): Use array_at_struct_end_p.
20986 2016-02-25  Ilya Verbin  <ilya.verbin@intel.com>
20988         PR driver/68463
20989         * config/gnu-user.h (CRTOFFLOADBEGIN): Define.  Add crtoffloadbegin.o if
20990         offloading is enabled and -fopenacc or -fopenmp is specified.
20991         (CRTOFFLOADEND): Likewise.
20992         (GNU_USER_TARGET_STARTFILE_SPEC): Add CRTOFFLOADBEGIN.
20993         (GNU_USER_TARGET_ENDFILE_SPEC): Add CRTOFFLOADEND.
20994         * lto-wrapper.c (offloadbegin, offloadend): Remove static vars.
20995         (offload_objects_file_name): New static var.
20996         (tool_cleanup): Remove offload_objects_file_name file.
20997         (find_offloadbeginend): Replace with ...
20998         (find_crtoffloadtable): ... this.
20999         (run_gcc): Remove offload_argc and offload_argv.
21000         Get offload_objects_file_name from -foffload-objects=... option.
21001         Read names of object files with offload from this file, pass them to
21002         compile_images_for_offload_targets.  Don't call find_offloadbeginend and
21003         don't pass offloadbegin and offloadend to the linker.  Don't pass
21004         offload non-LTO files to the linker, because now they're not claimed.
21006 2016-02-25  Jan Hubicka  <hubicka@ucw.cz>
21008         PR ipa/69630
21009         * ipa-devirt.c (possible_polymorphic_call_targets): Do not ICE
21010         on builtin_unreachable.
21012 2016-02-25  Jakub Jelinek  <jakub@redhat.com>
21014         PR rtl-optimization/69896
21015         * regcprop.c: Include cfgrtl.h.
21016         (copyprop_hardreg_forward_1): If noop_p insn uses narrower
21017         than remembered mode, either delete it (if noop_move_p), or
21018         treat like copy_p but not noop_p instruction.
21020 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21022         PR debug/69705
21023         * dwarf2out.c (gen_variable_die): Work around buggy LTO
21024         - allow NULL decl for Fortran DW_TAG_common_block variables.
21026 2016-02-24  Jason Merrill  <jason@redhat.com>
21028         * common.opt (flifetime-dse): Add -flifetime-dse=1.
21030 2016-02-24  Richard Biener  <rguenther@suse.de>
21031             Jakub Jelinek  <jakub@redhat.com>
21033         PR middle-end/69760
21034         * tree-scalar-evolution.c (interpret_rhs_expr): Re-write
21035         conditionally executed ops to well-defined overflow behavior.
21037 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21039         PR middle-end/69915
21040         * tree.c (build_vector_from_ctor): Fix handling of VECTOR_CST
21041         elements.
21043 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21045         PR rtl-optimization/69886
21046         * gcse.c (can_assign_to_reg_without_clobbers_p): Accept mode
21047         argument.  Use it when checking validity of set instructions.
21048         (want_to_gcse_p): Pass mode to can_assign_to_reg_without_clobbers_p.
21049         (compute_ld_motion_mems): Update can_assign_to_reg_without_clobbers_p
21050         callsite.
21051         * rtl.h (can_assign_to_reg_without_clobbers_p): Update prototype.
21052         * store-motion.c (find_moveable_store): Update
21053         can_assign_to_reg_without_clobbers_p callsite.
21055 2016-02-24  Richard Biener  <rguenther@suse.de>
21057         PR middle-end/68963
21058         * tree-ssa-loop-niter.c (derive_constant_upper_bound_ops): Fix
21059         bogus check.
21060         (record_nonwrapping_iv): Do not fall back to the low/high bound
21061         for non-constant IV bases if the stmt is not always executed.
21063 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21065         * config/arm/arm-cores.def (cortex-a32): New entry.
21066         * config/arm/arm-tables.opt: Regenerate.
21067         * config/arm/arm-tune.md: Regenerate.
21068         * config/arm/bpabi.h (BE8_LINK_SPEC): Add mcpu=cortex-a32.
21069         * config/arm/t-aprofile: Handle mcpu=cortex-a32.
21070         * doc/invoke.texi (ARM Options): Document cortex-a32 as value
21071         for -mcpu and -mtune.
21073 2016-02-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21075         PR target/69875
21076         * config/arm/arm.h (TARGET_HAVE_LPAE): Define.
21077         * config/arm/unspecs.md (VUNSPEC_LDRD_ATOMIC): New value.
21078         * config/arm/sync.md (arm_atomic_loaddi2_ldrd): New pattern.
21079         (atomic_loaddi_1): Delete.
21080         (atomic_loaddi): Rewrite expander using the above changes.
21082 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21084         PR c/69918
21085         * params.def (PARAM_MAX_SSA_NAME_QUERY_DEPTH): Bump default from
21086         2 to 3.
21088 2016-02-24  Jakub Jelinek  <jakub@redhat.com>
21089             Richard Biener  <rguenth@suse.de>
21091         PR middle-end/69909
21092         * expr.c (expand_expr_real_1) <normal_inner_ref>: Avoid
21093         set_mem_attributes if tem is SSA_NAME which got expanded
21094         as a MEM.
21096 2016-02-24  Richard Biener  <rguenther@suse.de>
21098         PR tree-optimization/69907
21099         * tree-vect-stmts.c (vectorizable_load): Check for gaps at the
21100         end of permutations for BB vectorization.
21102 2016-02-24  Christian Bruel  <christian.bruel@st.com>
21104         * config/arm/arm-c.c (arm_option_override): Initialize
21105         target_option_current_node.
21106         * config/arm/arm.c (arm_pragma_target_parse): Replace
21107         build_target_option_node call by target_option_current_node.
21108         Set target_option_current_node.
21109         Fix comments.
21111 2016-02-23  David Edelsohn  <dje.gcc@gmail.com>
21113         PR target/69810
21114         * config/rs6000/rs6000.md (zero_extendqi<mode>2_dot): Convert from
21115         define_insn_and_split to define_insn.
21116         (zero_extendqi<mode>2_dot2): Same.
21117         (extendqi<mode>2_dot): Same.
21118         (extendqi<mode>2_dot2): Same.
21120 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21122         * config/arm/exynos-m1.md: Change cost of STP, fix bypass for stores
21123         and add bypass for AES{D,E} and AESMC pairs.
21124         * config/aarch64/aarch64.c (exynosm1_tunings): Enable fusion of AES{D,E}
21125         and AESMC pairs.
21127 2016-02-23  Evandro Menezes  <e.menezes@samsung.com>
21129         * config/aarch64/aarch64.c (exynosm1_tunings): Enable the Newton
21130         series for reciprocal square root in Exynos M1.
21132 2016-02-23  Martin Sebor  <msebor@redhat.com>
21134         PR c/69759
21135         * doc/extend.texi (Other Builtins): Document __builtin_alloca and
21136         __builtin_alloca_with_align.
21138 2016-02-23  Richard Henderson  <rth@redhat.com>
21140         * config/i386/i386-c.c (ix86_target_macros): Remove __SEG_TLS.
21141         (ix86_register_pragmas): Remove __seg_tls.
21142         * config/i386/i386-protos.h (ADDR_SPACE_SEG_TLS): Remove.
21143         * config/i386/i386.c (ix86_print_operand_address_as): Don't handle it.
21144         (ix86_addr_space_subset_p, TARGET_ADDR_SPACE_SUBSET_P): Remove.
21145         (ix86_addr_space_convert, TARGET_ADDR_SPACE_CONVERT): Remove.
21146         (ix86_addr_space_debug, TARGET_ADDR_SPACE_DEBUG): Remove.
21147         * doc/extend.texi (__seg_tls): Remove item.
21149 2016-02-23  Richard Biener  <rguenther@suse.de>
21151         * alloc-pool.h (struct allocation_object): Make id member
21152         conditional on CHECKING_P again.
21153         (get_instance): Adjust.
21154         (base_pool_allocator): Likewise.
21156 2016-02-23  Thomas Schwinge  <thomas@codesourcery.com>
21158         * tree-parloops.c (create_parallel_loop, gen_parallel_loop)
21159         (parallelize_loops): In OpenACC kernels mode, set n_threads to
21160         zero.
21161         (pass_parallelize_loops::gate): In OpenACC kernels mode, gate on
21162         flag_openacc.
21163         * tree-ssa-loop.c (gate_oacc_kernels): Likewise.
21165 2016-02-23  Richard Biener  <rguenther@suse.de>
21167         * mem-stats.h (struct mem_usage): Use PRIu64 for printing size_t.
21168         * bitmap.h (struct bitmap_usage): Likewise.
21169         (bitmap_move): Declare.
21170         * bitmap.c (register_overhead): Take size_t argument.
21171         (bitmap_move): New function.
21172         * df-problems.c (df_rd_transfer_function): Use bitmap_move
21173         to properly account overhead.
21174         * tree.c (free_node): Use tree_size.
21176 2016-02-23  Jakub Jelinek  <jakub@redhat.com>
21178         PR c++/69902
21179         * fold-const.c (fold_truth_not_expr): Propagate TREE_NO_WARNING
21180         when inverting comparison.
21182         PR c/69900
21183         * common.opt (Wunreachable-code): Add Warning flag.
21185 2016-02-23  Mark Wielaard  <mjw@redhat.com>
21186             Jakub Jelinek  <jakub@redhat.com>
21188         PR c/69911
21189         * cgraphunit.c (check_global_declaration): Check main_input_filename
21190         and DECL_SOURCE_FILE are not NULL.
21192 2016-02-23  Martin Jambor  <mjambor@suse.cz>
21194         PR tree-optimization/69666
21195         * tree-sra.c (sra_modify_assign): Do not attempt to create
21196         default_def replacements for unscalarizable regions.
21198 2016-02-20  Mark Wielaard  <mjw@redhat.com>
21200         PR c/28901
21201         * cgraphunit.c (check_global_declaration): Check level of
21202         warn_unused_const_variable and main_input_filename.
21203         * doc/invoke.texi (Warning Options): Add -Wunused-const-variable=.
21204         (-Wunused-variable): For C implies -Wunused-const-variable=1.
21205         (-Wunused-const-variable): Explain levels 1 and 2.
21207 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21209         PR target/69888
21210         * config/i386/i386.c (decide_alg): Ensure we don't recurse with
21211         identical arguments.  Formatting and spelling fixes.
21213         PR target/69885
21214         * doc/md.texi (ashl@var{m}3): Document that mode of operand 2 must
21215         be specified.
21217         PR target/69894
21218         PR target/69895
21219         * config/m68k/t-opts (OPTIONS_H_EXTRA): Add m68k-microarchs.def
21220         and m68k-devices.def.
21221         * config/c6x/t-c6x (OPTIONS_H_EXTRA): Add c6x-isas.def.
21222         * config/aarch64/t-aarch64 (OPTIONS_H_EXTRA): Add aarch64-arches.def.
21224 2016-02-22  Cesar Philippidis  <cesar@codesourcery.com>
21226         * config/nvptx/nvptx.c (nvptx_gen_shuffle): Add support for QImode
21227         and HImode registers.
21229 2016-02-22  Richard Biener  <rguenther@suse.de>
21231         PR tree-optimization/69882
21232         * tree-vect-slp.c (vect_attempt_slp_rearrange_stmts): Properly
21233         preserve permutations present because of gaps.
21234         (vect_supported_load_permutation_p): Always continue checking
21235         permutations after vect_attempt_slp_rearrange_stmts.
21237 2016-02-22  Bin Cheng  <bin.cheng@arm.com>
21239         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Dump
21240         min_profitable_estimate, rather than min_profitable_iters.
21242 2016-02-22  Jakub Jelinek  <jakub@redhat.com>
21244         PR target/69885
21245         * config/m68k/m68k.md (ashldi3, ashrdi3, lshrdi3): Use
21246         SImode for last match_operand.
21248 2016-02-22  Martin Liska  <mliska@suse.cz>
21250         * hsa-gen.c (gen_hsa_clrsb): In case of zero value,
21251         return bitsize - 1 as the return value.
21253 2016-02-22  Oleg Endo  <olegendo@gcc.gnu.org>
21255         PR target/69806
21256         PR target/54089
21257         * config/sh/sh.c (sh_lshrsi_clobbers_t_reg_p, sh_dynamicalize_shift_p):
21258         Handle negative shift counts.
21259         * config/sh/sh.md (ashlsi3, lshrsi3_n, lshrsi3_n_clobbers_t): Don't use
21260         force_reg on the shift constant.
21261         (lshrsi3): Likewise.  Expand into lshrsi3_n* instead of lshrsi3_d.
21262         (lshrsi3_d): Handle negative shift counts.
21264 2016-02-22  Richard Biener  <rguenther@suse.de>
21265             Tom de Vries  <tom@codesourcery.com>
21267         * graph.c: Include dumpfile.h.
21268         (print_graph_cfg): Split into three overloads.
21269         * gdbhooks.py (class DotFn): Add and instantiate, adding command dot-fn.
21271 2016-02-22  Tom de Vries  <tom@codesourcery.com>
21273         * gdbhooks.py (class DumpFn): Add and instantiate, adding command
21274         dump-fn.
21276 2016-02-22  Richard Biener  <rguenther@suse.de>
21278         PR ipa/37448
21279         * ipa-inline-transform.c (inline_call): When not updating
21280         overall summaries adjust self size by the growth estimate.
21281         * ipa-inline.c (inline_to_all_callers_1): Add to the callers
21282         hash-set, do not update overall summaries here.  Renamed from ...
21283         (inline_to_all_callers): ... this which is now wrapping the
21284         above and performing delayed overall summary update.
21285         (early_inline_small_functions): Delay updating of the overall
21286         summary.
21288 2016-02-21  Markus Trippelsdorf  <markus@trippelsdorf.de>
21290         * tree-chkp.c (chkp_mark_invalid_bounds_walker): Initialize
21291         variable.
21293 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
21295         PR driver/69805
21296         * gcc.c (LINK_COMMAND_SPEC, GOMP_SELF_SPECS): Use
21297         :%* in %:gt() argument.
21298         (greater_than_spec_func): Adjust for expecting only numbers,
21299         if there are more than two numbers, compare the last two.
21301 2016-02-19  Jonathan Wakely  <jwakely@redhat.com>
21303         * doc/invoke.texi (C++ Dialect Options): Clarify interaction of
21304         -Wnarrowing with -std.
21306 2016-02-19  Jakub Jelinek  <jakub@redhat.com>
21308         PR c++/69851
21309         * expr.c (store_field): Don't use bit-field path if exp is
21310         COMPONENT_REF with TREE_ADDRESSABLE type, where TYPE_SIZE is
21311         different from bitsize, but DECL_SIZE of FIELD_DECL is bitsize
21312         and the assignment can be performed by bitwise copy.  Formatting
21313         fix.
21315         PR middle-end/69838
21316         * lra.c (lra_process_new_insns): If non-call exceptions are enabled,
21317         call copy_reg_eh_region_note_forward on before and/or after sequences
21318         and remove note from insn if it no longer can throw.
21320         PR target/69820
21321         * config/i386/sse.md (VI_512): Only include V64QImode and V32HImode
21322         if TARGET_AVX512BW.
21324 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21326         * config/s390/vector.md: Add missing commutative operand markers
21327         to the patterns which qualify for one.
21328         * config/s390/vx-builtins.md: Likewise.
21330 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21332         * config/s390/vector.md (VI, VI_QHS): Add single element vector
21333         types to mode iterators.
21334         (vec_double): ... and mode attribute.
21335         * config/s390/vx-builtins.md (non_vec_int): Likewise.
21337 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21339         * config/s390/vector.md ("<ti*>add<mode>3", "<ti*>sub<mode>3"):
21340         Change the predicate of op2 from nonimmediate to general and let
21341         reload fix it if necessary.
21343 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21345         * config/s390/vecintrin.h (vec_sub_u128): Define missing macro.
21347 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21349         * config/s390/s390.c (s390_expand_vcond): Use the compare operand
21350         mode.
21352 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21354         * config/s390/s390-protos.h: Add s390_expand_vec_movstr prototype.
21355         * config/s390/s390.c (s390_expand_vec_movstr): New function.
21356         * config/s390/s390.md ("movstr<P:mode>"): Call
21357         s390_expand_vec_movstr.
21359 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21361         * config/s390/s390.md: Add missing output modifier for operand 1
21362         to print it as address properly.
21364 2016-02-19  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
21366         * config/s390/2827.md: Rename ooo_* insn attributes to zEC12_*.
21367         * config/s390/2964.md: New file.
21368         * config/s390/s390.c (s390_get_sched_attrmask): Use the right set
21369         of insn grouping attributes depending on the CPU level.
21370         (s390_get_unit_mask): New function.
21371         (s390_sched_score): Remove the OOO from the scheduling macros.
21372         Add loop to calculate a score for the instruction mix.
21373         (s390_sched_reorder): Likewise plus improve debug output.
21374         (s390_sched_variable_issue): Rename macros as above.  Calculate
21375         the unit distances after actually scheduling an insn.  Improve
21376         debug output.
21377         (s390_sched_init): Clear last_scheduled_unit_distance array.
21378         * config/s390/s390.md: Include 2964.md.
21380 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
21382         PR target/69671
21383         * config/i386/sse.md (*<floatsuffix>floatv2div2sf2_mask_1,
21384         *avx512vl_<code>v2div2qi2_mask_1, *avx512vl_<code><mode>v4qi2_mask_1,
21385         *avx512vl_<code><mode>v8qi2_mask_1, *avx512vl_<code><mode>v4hi2_mask_1,
21386         *avx512vl_<code>v2div2hi2_mask_1, *avx512vl_<code>v2div2si2_mask_1,
21387         *avx512f_<code>v8div16qi2_mask_1): New insns.
21389 2016-02-18  Michael Meissner  <meissner@linux.vnet.ibm.com>
21391         PR target/68404
21392         * config/rs6000/predicates.md (fusion_gpr_addis): Revert
21393         2016-02-09 change.
21395         * config/rs6000/rs6000.md (fusion_gpr_load_<mode>): Remove
21396         earlyclobber from target.  Use wF constraint for fused memory
21397         address.
21398         (fusion_gpr_<P:mode>_<GPR_FUSION:mode>_load): Likewise.
21400 2016-02-18  Jakub Jelinek  <jakub@redhat.com>
21401             Martin Liska  <mliska@suse.cz>
21403         PR sanitizer/69863
21404         * cfgexpand.c (asan_sanitize_stack_p): New function.
21405         (partition_stack_vars): Use the function.
21406         (expand_stack_vars): Likewise.
21407         (defer_stack_allocation): Likewise.
21408         (expand_used_vars): Likewise.
21410 2016-02-18  Richard Biener  <rguenther@suse.de>
21412         PR middle-end/69553
21413         * fold-const.c (operand_equal_p): Properly compare offsets for
21414         IMAGPART_EXPR and ARRAY_REF.
21416 2016-02-18  Nick Clifton  <nickc@redhat.com>
21418         PR target/62254
21419         PR target/69610
21420         * config/arm/arm.c (arm_option_override_internal): Disable
21421         interworking if the target does not support thumb instructions.
21422         (arm_reload_in_hi): Handle the case where a register to register
21423         move needs reloading because there is no simple pattern to handle
21424         it.
21425         (arm_reload_out_hi): Likewise.
21427 2016-02-18  Richard Biener  <rguenther@suse.de>
21429         PR middle-end/69854
21430         * match.pd: Don't use fold_binary or fold_unary for folding
21431         constants.
21433 2016-02-17  Jakub Jelinek  <jakub@redhat.com>
21435         PR c++/69850
21436         * gimplify.c (gimplify_cond_expr): Call gimple_set_no_warning
21437         on the cond_stmt from TREE_NO_WARNING on COND_EXPR_COND.
21438         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Don't
21439         warn on gimple_no_warning_p statements.
21441 2016-02-17  Jonathan Wakely  <jwakely@redhat.com>
21443         * doc/extend.texi (C++ Attributes): Correct description of
21444         warn_unused type attribute.
21446 2016-02-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
21448         * config/rs6000/altivec.md (*altivec_lvxl_<mode>_internal): Output
21449         correct instruction.
21451 2016-02-17  Richard Biener  <rguenther@suse.de>
21453         PR rtl-optimization/69609
21454         * bb-reorder.c (struct bbro_basic_block_data): Add priority member.
21455         (find_traces_1_round): When ending a trace update cached priority
21456         of successors.
21457         (bb_to_key): Use cached priority when available.
21458         (copy_bb): Initialize cached priority.
21459         (reorder_basic_blocks_software_trace_cache): Likewise.
21461 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21463         PR target/69161
21464         * config/aarch64/predicates.md (aarch64_comparison_operator_mode):
21465         New predicate.
21466         (aarch64_comparison_operator): Break overly long line into two.
21467         (aarch64_comparison_operation): Likewise.
21468         * config/aarch64/aarch64.md (cstorecc4): Use
21469         aarch64_comparison_operator_mode instead of
21470         aarch64_comparison_operator.
21471         (cstore<mode>4): Likewise.
21472         (aarch64_cstore<mode>): Likewise.
21473         (*cstoresi_insn_uxtw): Likewise.
21474         (cstore<mode>_neg): Likewise.
21475         (*cstoresi_neg_uxtw): Likewise.
21477 2016-02-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21479         PR target/69161
21480         * config/arm/predicates.md (arm_comparison_operator_mode):
21481         New predicate.
21482         * config/arm/arm.md (*mov_scc): Use arm_comparison_operator_mode
21483         instead of arm_comparison_operator.
21484         (*mov_negscc): Likewise.
21485         (*mov_notscc): Likewise.
21486         * config/arm/thumb2.md (*thumb2_mov_scc): Likewise.
21487         (*thumb2_mov_negscc): Likewise.
21488         (*thumb2_mov_negscc_strict_it): Likewise.
21489         (*thumb2_mov_notscc): Likewise.
21490         (*thumb2_mov_notscc_strict_it): Likewise.
21492 2016-02-17  Wilco Dijkstra  <wdijkstr@arm.com>
21494         * config/aarch64/aarch64.c (aarch64_internal_mov_immediate):
21495         Add missing return.
21497 2016-02-17  Eric Botcazou  <ebotcazou@adacore.com>
21499         * config/visium/visium.c (machine_libfunc_index): New enum.
21500         (machine_libfuncs): New structure.
21501         (visium_libfuncs): New static variable.
21502         (TARGET_INIT_LIBFUNCS): Define to...
21503         (visium_init_libfuncs): ...this.  New function.
21504         (expand_block_move_4): Use the appropriate libfunc.
21505         (expand_block_move_2): Likewise.
21506         (expand_block_move_1): Likewise.
21507         (expand_block_set_4): Likewise.
21508         (expand_block_set_2): Likewise.
21509         (expand_block_set_1): Likewise.
21510         (visium_trampoline_init): Likewise.
21512 2016-02-17  Nick Clifton  <nickc@redhat.com>
21514         * config/msp430/msp430.c (msp430_mcu_data): Sync with data from
21515         TI's devices.csv file as of March 2016.
21517 2016-02-16  Kelvin Nilsen  <kelvin@gcc.gnu.org>
21519         PR Target/48344
21520         * opts-global.c (handle_common_deferred_options): Introduce and
21521         initialize two global variables to remember command-line options
21522         specifying a stack-limiting register.
21523         * opts.h: Add extern declarations of the two new global variables.
21524         * emit-rtl.c (init_emit_once): Initialize the stack_limit_rtx
21525         variable based on the values of the two new global variables.
21527 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21529         PR c/69835
21530         * common.opt (Wnonnull-compare): New warning.
21531         * doc/invoke.texi (-Wnonnull): Remove text about comparison
21532         of arguments against NULL.
21533         (-Wnonnull-compare): Document.
21534         * Makefile.in (OBJS): Add gimple-ssa-nonnull-compare.o.
21535         * tree-pass.h (make_pass_warn_nonnull_compare): Declare.
21536         * passes.def (pass_warn_nonnull_compare): Add.
21537         * gimple-ssa-nonnull-compare.c: New file.
21539 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21541         * config/aarch64/aarch64.c (cortexa57_tunings): Remove
21542         AARCH64_EXTRA_TUNE_RECIP_SQRT.
21544 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21546         * config/aarch64/aarch64.c (use_rsqrt_p): Always use software
21547         reciprocal sqrt for -mlow-precision-recip-sqrt.
21549 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21550             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
21552         * config/aarch64/aarch64.c (aarch64_expand_vector_init): Refactor,
21553         always use lane loads to construct non-constant vectors.
21555 2016-02-16  James Greenhalgh  <james.greenhalgh@arm.com>
21557         * config/aarch64/aarch64.md
21558         (arch64_sqrdml<SQRDMLH_AS:rdma_as>h_lane<mode>): Fix register
21559         constraints for operand 3.
21560         (aarch64_sqrdml<SQRDMLH_AS:rdma_as>h_laneq<mode>): Likewise.
21562 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21563             Richard Biener  <rguenther@suse.de>
21565         PR tree-optimization/69820
21566         * tree-vect-patterns.c (type_conversion_p): Return false if
21567         *orig_type is unsigned single precision or boolean.
21568         (vect_recog_dot_prod_pattern, vect_recog_widen_mult_pattern):
21569         Formatting fix.
21571 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21573         PR rtl-optimization/69764
21574         PR rtl-optimization/69771
21575         * optabs.c (expand_binop): Ensure for shift optabs invalid CONST_INT
21576         op1 is valid for GET_MODE_INNER (mode) and force it into a reg.
21578 2016-02-16  Richard Biener  <rguenther@suse.de>
21580         PR tree-optimization/69776
21581         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Get alias
21582         sets from caller.
21583         (indirect_refs_may_alias_p): Likewise.
21584         (refs_may_alias_p_1): Pass alias sets as from ao_ref.
21585         * tree-ssa-sccvn.c (vn_reference_lookup): Also adjust vr alias-set
21586         according to tbaa_p.
21587         * tree-ssa-dom.c (lookup_avail_expr): Add tbaa_p flag.
21588         (optimize_stmt): For redundant store discovery do not allow tbaa.
21590 2016-02-16  Bernd Schmidt  <bschmidt@redhat.com>
21592         PR tree-optimization/69714
21593         * tree-ssa-math-opts.c (find_bswap_or_nop): Revert previous change.
21594         Return NULL if we have irrelevant high bytes on BIG_ENDIAN.
21596 2016-02-16  Claudiu Zissulescu  <claziss@synopsys.com>
21598         * config/arc/arc-modes.def (CC_FPU, CC_FPU_UNEQ): New modes.
21599         * config/arc/arc-opts.h (FPU_SP, FPU_SF, FPU_SC, FPU_SD, FPU_DP)
21600         (FPU_DF, FPU_DC, FPU_DD, FXP_DP): Define.
21601         * config/arc/arc.c (arc_init): Check FPU options.
21602         (get_arc_condition_code): Handle new CC_FPU* modes.
21603         (arc_select_cc_mode): Likewise.
21604         (arc_conditional_register_usage): Allow 64 bit datum into even-odd
21605         register pair only. Allow access for ARCv2 accumulator.
21606         (gen_compare_reg): Whenever we have FPU support use FPU compare
21607         instructions.
21608         (arc_reorg): Don't generate brcc insns when FPU compare
21609         instructions are involved.
21610         * config/arc/arc.h (TARGET_DPFP): Add TARGET_FP_DPAX condition.
21611         (TARGET_OPTFPE): Add condition when ARC EM can use optimized
21612         floating point emulation.
21613         (ACC_REG_FIRST, ACC_REG_LAST, ACCL_REGNO, ACCH_REGNO): Define.
21614         (REVERSE_CONDITION): Add new CC_FPU* modes.
21615         (TARGET_FP_SP_BASE): Define.
21616         (TARGET_FP_DP_BASE): Likewise.
21617         (TARGET_FP_SP_FUSED): Likewise.
21618         (TARGET_FP_DP_FUSED): Likewise.
21619         (TARGET_FP_SP_CONV): Likewise.
21620         (TARGET_FP_DP_CONV): Likewise.
21621         (TARGET_FP_SP_SQRT): Likewise.
21622         (TARGET_FP_DP_SQRT): Likewise.
21623         (TARGET_FP_DP_AX): Likewise.
21624         * config/arc/arc.md (ARCV2_ACC): New constant.
21625         (type): New fpu type attribute.
21626         (SDF): Conditional iterator.
21627         (cstore<mode>, cbranch<mode>): Change expand condition.
21628         (addsf3, subsf3, mulsf3, adddf3, subdf3, muldf3): New expands,
21629         handles FPU/FPX cases as well.
21630         * config/arc/arc.opt (mfpu): New option.
21631         * config/arc/fpx.md (addsf3_fpx, subsf3_fpx, mulsf3_fpx):
21632         Renamed.
21633         (adddf3, muldf3, subdf3): Removed.
21634         * config/arc/predicates.md (proper_comparison_operator): Recognize
21635         CC_FPU* modes.
21636         * config/arc/fpu.md: New file.
21637         * doc/invoke.texi (ARC Options): Document mfpu option.
21639 2016-02-16  Richard Biener  <rguenther@suse.de>
21641         PR rtl-optimization/69291
21642         * ifcvt.c (noce_try_store_flag_constants): Re-instantiate
21643         noce_operand_ok check.
21645 2016-02-16  Tom de Vries  <tom@codesourcery.com>
21647         PR lto/67709
21648         * omp-low.c (simd_clone_create): Remove call to
21649         symtab->call_cgraph_insertion_hooks.
21651 2016-02-16  Jakub Jelinek  <jakub@redhat.com>
21653         PR tree-optimization/69802
21654         * tree-ssa-reassoc.c (update_range_test): If op is
21655         SSA_NAME_IS_DEFAULT_DEF, give up unless tem is a positive
21656         op == 1 test of precision 1 integral op, otherwise handle
21657         that case as op itself.  Fix up formatting.
21658         (optimize_range_tests_to_bit_test, optimize_range_tests): Fix
21659         up formatting.
21661 2016-02-16  Richard Biener  <rguenther@suse.de>
21663         PR tree-optimization/69586
21664         * tree-vrp.c (register_edge_assert_for_2): Handle all integral
21665         types for conversion sources.
21667 2016-02-16  Richard Biener  <rguenther@suse.de>
21669         PR middle-end/69801
21670         * fold-const.c (operand_equal_p): For COND_EXPR zero operand
21671         mask OEP_ADDRESS_OF.
21673 2016-02-16  Alan Modra  <amodra@gmail.com>
21675         PR target/68973
21676         * config/rs6000/rs6000.md (reload_vsx_from_gprsf): Rewrite splitter.
21677         (p8_mtvsrd_df, p8_mtvsrd_sf): New.
21678         (p8_mtvsrd_1, p8_mtvsrd_2): Delete.
21679         (p8_mtvsrwz): New.
21680         (p8_mtvsrwz_1, p8_mtvsrwz_2): Delete.
21681         (p8_xxpermdi_<mode>): Take two DF inputs rather than one TF.
21682         (p8_fmrgow_<mode>): Likewise.
21683         (reload_vsx_from_gpr<mode>): Make clobber IF.  Adjust for above
21684         changes.
21685         (reload_fpr_from_gpr<mode>): Similarly. Use "d" for op0 constraint.
21686         (reload_vsx_from_gprsf): Use p8_mtvsrd_sf rather than attempting
21687         to use movdi_internal64.  Remove op0_di.
21688         * config/rs6000/vsx.md (vsx_xscvspdpn_directmove): Make op1 SFmode.
21690 2016-02-15  Evandro Menezes  <e.menezes@samsung.com>
21692         Add support for the FCCMP insn types
21694         * config/aarch64/aarch64.md (fccmp): Change insn type.
21695         (fccmpe): Likewise.
21696         * config/aarch64/thunderx.md (thunderx_fcmp): Add "fccmp{s,d}" types.
21697         * config/arm/cortex-a53.md (cortex_a53_fpalu): Likewise.
21698         * config/arm/cortex-a57.md (cortex_a57_fp_cmp): Likewise.
21699         * config/arm/xgene1.md (xgene1_fcmp): Likewise.
21700         * config/arm/exynos-m1.md (exynos_m1_fp_ccmp): New insn reservation.
21701         * config/arm/types.md (fccmps): Add new insn type.
21702         (fccmpd): Likewise.
21704 2016-02-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21706         * alias.c (get_alias_set): Fix a typo in comment.
21708 2016-02-15  Richard Biener  <rguenther@suse.de>
21710         PR tree-optimization/69595
21711         * match.pd: Complete range test simplification to true.
21713 2016-02-15  Bernd Schmidt  <bschmidt@redhat.com>
21715         PR rtl-optimization/69648
21716         * lra-constraints.c (update_ebb_live_info): Don't remove sets of
21717         pic_offset_table_rtx.
21719         PR rtl-optimization/69752
21720         * ira.c (update_equiv_regs): When looking for more than a single SET,
21721         also take other side effects into account.
21723 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
21725         * config/s390/s390.c (s390_function_profiler): Add a new sequence
21726         for z900+ CPUs in 31-bit mode.
21728 2016-02-15  Marcin Kościelnicki  <koriakin@0x04.net>
21730         * common/config/s390/s390-common.c (s390_supports_split_stack):
21731         New function.
21732         (TARGET_SUPPORTS_SPLIT_STACK): New macro.
21733         * config/s390/s390-protos.h: Add s390_expand_split_stack_prologue.
21734         * config/s390/s390.c (struct machine_function): New field
21735         split_stack_varargs_pointer.
21736         (s390_register_info): Mark r12 as clobbered if it'll be used as temp
21737         in s390_emit_prologue.
21738         (s390_emit_prologue): Use r12 as temp if r1 is taken by split-stack
21739         vararg pointer.
21740         (morestack_ref): New global.
21741         (SPLIT_STACK_AVAILABLE): New macro.
21742         (s390_expand_split_stack_prologue): New function.
21743         (s390_live_on_entry): New function.
21744         (s390_va_start): Use split-stack vararg pointer if appropriate.
21745         (s390_asm_file_end): Emit the split-stack note sections.
21746         (TARGET_EXTRA_LIVE_ON_ENTRY): New macro.
21747         * config/s390/s390.md (UNSPEC_STACK_CHECK): New unspec.
21748         (UNSPECV_SPLIT_STACK_CALL): New unspec.
21749         (UNSPECV_SPLIT_STACK_DATA): New unspec.
21750         (split_stack_prologue): New expand.
21751         (split_stack_space_check): New expand.
21752         (split_stack_data): New insn.
21753         (split_stack_call): New expand.
21754         (split_stack_call_*): New insn.
21755         (split_stack_cond_call): New expand.
21756         (split_stack_cond_call_*): New insn.
21758 2016-02-15  Richard Biener  <rguenther@suse.de>
21760         PR tree-optimization/69783
21761         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
21762         Add trivially correct cases.
21764 2016-02-15  Tom de Vries  <tom@codesourcery.com>
21766         PR lto/69655
21767         * lto-cgraph.c (input_offload_tables): Add and handle bool parameter
21768         do_force_output.
21769         * lto-streamer.h (input_offload_tables): Add and handle bool parameter.
21771 2016-02-15  Richard Biener  <rguenther@suse.de>
21773         PR tree-optimization/69776
21774         * tree-ssa-sccvn.h (vn_reference_lookup): Adjust prototype.
21775         * tree-ssa-sccvn.c (vn_reference_lookup): Add parameter to
21776         indicate whether we can use TBAA to disambiguate against stores.
21777         Use alias-set zero if not.
21778         (visit_reference_op_store): Do not use TBAA when looking up
21779         redundant stores.
21780         * tree-ssa-pre.c (compute_avail): Use TBAA here.
21781         (eliminate_dom_walker::before_dom_children): But not when looking
21782         up redundant stores.
21784 2016-02-14  John David Anglin  <danglin@gcc.gnu.org>
21786         * config/pa/pa.md (absqi2, absghi2, bswaphi2, bswapsi2, bswapdi2): New.
21788 2016-02-14  Venkataramanan Kumar  <venkataramanan.kumar@amd.com>
21790         *  config/i386/znver1.md
21791         (znver1_pop, znver1_pop_mem,
21792         znver1_load_imov_double_store,
21793         znver1_load_imov_direct_store,
21794         znver1_load_imov_direct_load,
21795         znver1_load_imov_double_load): Add new.
21796         (znver1_insn, znver1_insn_load): Add icmov type.
21797         (znver1_sseavx_fma,
21798         znver1_sseavx_fma_load,
21799         znver1_avx256_fma,
21800         znver1_avx256_fma_load): Fix pipe usage.
21802 2016-02-14  Alan Modra  <amodra@gmail.com>
21804         PR target/68973
21805         * reload.c (find_reloads_address_1): For pre/post-inc/dec
21806         with an invalid hard reg, reload just the reg not the entire
21807         pre/post-inc/dec address expression.
21809 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21811         PR target/67260
21812         * config/sh/sh.md (sibcall_value_pcrel): Replace =&k scratch reg with
21813         fixed R1_REG scratch reg.
21814         (sibcall_value_pcrel_fdpic): Likewise.
21816 2016-02-13  Oleg Endo  <olegendo@gcc.gnu.org>
21818         PR target/67636
21819         PR target/64345
21820         * config/sh/sh.md (*zero_extract_3): New insn_and_split pattern.
21822 2016-02-12  Walter Lee  <walt@tilera.com>
21824         * config/tilepro/t-tilepro: Replace CC_FOR_BUILD with CXX_FOR_BUILD.
21825         * config/tilegx/t-tilegx: Likewise.
21827 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21829         PR other/69554
21830         * diagnostic-show-locus.c (struct line_span): New struct.
21831         (layout::get_first_line): Delete.
21832         (layout::get_last_line): Delete.
21833         (layout::get_num_line_spans): New member function.
21834         (layout::get_line_span): Likewise.
21835         (layout::print_heading_for_line_span_index_p): Likewise.
21836         (layout::get_expanded_location): Likewise.
21837         (layout::calculate_line_spans): Likewise.
21838         (layout::m_first_line): Delete.
21839         (layout::m_last_line): Delete.
21840         (layout::m_line_spans): New field.
21841         (layout::layout): Update comment.  Replace m_first_line and
21842         m_last_line with m_line_spans, replacing their initialization
21843         with a call to calculate_line_spans.
21844         (diagnostic_show_locus): When printing source lines and
21845         annotations, rather than looping over a single span
21846         of lines, instead loop over each line_span within
21847         the layout, with an inner loop over the lines within them.
21848         Call the context's start_span callback when changing line spans.
21849         * diagnostic.c (diagnostic_initialize): Initialize start_span.
21850         (diagnostic_build_prefix): Break out the building of the location
21851         part of the string into...
21852         (diagnostic_get_location_text): ...this new function, rewriting
21853         it from nested ternary expressions to a sequence of "if"
21854         statements.
21855         (default_diagnostic_start_span_fn): New function.
21856         * diagnostic.h (diagnostic_start_span_fn): New typedef.
21857         (diagnostic_context::start_span): New field.
21858         (default_diagnostic_start_span_fn): New prototype.
21860 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21862         PR driver/69779
21863         * gcc.c (driver::finalize): Fix cleanup of "specs".
21865 2016-02-12  David Malcolm  <dmalcolm@redhat.com>
21867         PR driver/69265
21868         PR driver/69453
21869         * gcc.c (driver::driver): Initialize m_option_suggestions.
21870         (driver::~driver): Clean up m_option_suggestions.
21871         (suggest_option): Convert to...
21872         (driver::suggest_option): ...this, and split out into
21873         driver::build_option_suggestions and find_closest_string.
21874         (driver::build_option_suggestions): New function, from
21875         first half of suggest_option.  Special-case
21876         OPT_fsanitize_ and OPT_fsanitize_recover_, making use of
21877         the sanitizer_opts array.  For options of enum types, add the
21878         various enum values to the candidate strings.
21879         (driver::handle_unrecognized_options): Remove "const".
21880         * gcc.h (driver::handle_unrecognized_options): Likewise.
21881         (driver::build_option_suggestions): New decl.
21882         (driver::suggest_option): New decl.
21883         (driver::m_option_suggestions): New field.
21884         * opts-common.c (add_misspelling_candidates): New function.
21885         * opts.c (sanitizer_opts): Remove decl of struct sanitizer_opts_s
21886         and make non-static.
21887         * opts.h (sanitizer_opts): New array decl.
21888         (add_misspelling_candidates): New function decl.
21889         * spellcheck.c (find_closest_string): New function.
21890         * spellcheck.h (find_closest_string): New function decl.
21892 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21894         PR rtl-optimization/69764
21895         PR rtl-optimization/69771
21896         * optabs.c (expand_binop_directly): For shift_optab_p, force
21897         convert_modes with VOIDmode if xop1 has VOIDmode.
21899 2016-02-12  Ilya Enkovich  <enkovich.gnu@gmail.com>
21901         PR target/69729
21902         * lto-streamer-out.c (lto_output): Use thunk.add_pointer_bounds_args
21903         to correctly determine instrumentation thunks.
21905 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21907         PR ipa/69241
21908         * ipa-split.c (split_function): If split part returns TREE_ADDRESSABLE
21909         type by reference, force lhs on the call.
21911         PR ipa/68672
21912         * ipa-split.c (split_function): Don't compute/use main_part_return_p.
21913         Compute retval and retbnd early in all cases if split_part_return_p
21914         and return_bb is not EXIT.  Remove all clobber stmts and reset
21915         all debug stmts that refer to SSA_NAMEs defined in split part,
21916         except if it is retval, in that case replace the old retval with the
21917         lhs of the call to the split part.
21919 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21921         revert:
21922         2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21924         PR middle-end/66726
21925         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21926         whose result is used in PHI.
21927         (maybe_optimize_range_tests): Likewise.
21928         (final_range_test_p): Likweise.
21930 2016-02-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
21932         PR middle-end/66726
21933         * tree-ssa-reassoc.c (optimize_range_tests): Handle tcc_compare stmt
21934         whose result is used in PHI.
21935         (maybe_optimize_range_tests): Likewise.
21936         (final_range_test_p): Likweise.
21938 2016-02-12  Jakub Jelinek  <jakub@redhat.com>
21940         * cgraph.c: Spelling fixes - behaviour -> behavior and
21941         neighbour -> neighbor.
21942         * target.def: Likewise.
21943         * sel-sched.c: Likewise.
21944         * config/mips/mips.c: Likewise.
21945         * config/arc/arc.md: Likewise.
21946         * config/arm/cortex-a57.md: Likewise.
21947         * config/arm/arm.c: Likewise.
21948         * config/arm/neon.md: Likewise.
21949         * config/arm/arm-c.c: Likewise.
21950         * config/vms/vms-c.c: Likewise.
21951         * config/s390/s390.c: Likewise.
21952         * config/i386/znver1.md: Likewise.
21953         * config/i386/i386.c: Likewise.
21954         * config/ia64/hpux-unix2003.h: Likewise.
21955         * config/msp430/msp430.md: Likewise.
21956         * config/rx/rx.c: Likewise.
21957         * config/rx/rx.md: Likewise.
21958         * config/aarch64/aarch64-simd.md: Likewise.
21959         * config/aarch64/aarch64.c: Likewise.
21960         * config/nvptx/nvptx.c: Likewise.
21961         * config/bfin/bfin.c: Likewise.
21962         * config/cris/cris.opt: Likewise.
21963         * config/rs6000/rs6000.c: Likewise.
21964         * target.h: Likewise.
21965         * spellcheck.c: Likewise.
21966         * ira-build.c: Likewise.
21967         * tree-inline.c: Likewise.
21968         * builtins.c: Likewise.
21969         * lra-constraints.c: Likewise.
21970         * explow.c: Likewise.
21971         * hwint.h: Likewise.
21972         * targhooks.c: Likewise.
21973         * tree-vect-data-refs.c: Likewise.
21974         * expr.c: Likewise.
21975         * doc/tm.texi: Likewise.
21976         * doc/extend.texi: Likewise.
21977         * doc/install.texi: Likewise.
21978         * doc/md.texi: Likewise.
21979         * tree-ssa-tail-merge.c: Likewise.
21980         * sched-int.h: Likewise.
21981         * match.pd: Likewise.
21982         * sched-ebb.c: Likewise.
21983         * target.def (omit_struct_return_reg): Likewise.
21984         * gimple-ssa-isolate-paths.c: Likewise.
21985         (find_implicit_erroneous_behaviour): Renamed to...
21986         (find_implicit_erroneous_behavior): ... this.
21987         (find_explicit_erroneous_behaviour): Renamed to...
21988         (find_explicit_erroneous_behavior): ... this.
21989         (gimple_ssa_isolate_erroneous_paths): Adjust caller.
21991 2016-02-11  Segher Boessenkool  <segher@kernel.crashing.org>
21993         PR rtl-optimization/64682
21994         PR rtl-optimization/69567
21995         PR rtl-optimization/69737
21996         * combine.c (distribute_notes) <REG_DEAD>: If the register is set
21997         in I2 as well, just lose it.
21999 2016-02-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22001         * config/aarch64/aarch64.c (aarch64_last_printed_arch_string):
22002         New variable.
22003         (aarch64_last_printed_tune_string): Likewise.
22004         (aarch64_declare_function_name): Only output .arch assembler
22005         directive if it will be different from the previously output
22006         directive.  Same for .tune comment but only if -dA is set.
22007         (aarch64_start_file): New function.
22008         (TARGET_ASM_FILE_START): Define.
22010 2016-02-11  David Malcolm  <dmalcolm@redhat.com>
22012         PR plugins/69758
22013         * Makefile.in (PLUGIN_HEADERS): Add params.list.
22015 2016-02-11  Jakub Jelinek  <jakub@redhat.com>
22017         PR target/65313
22018         * tree-vect-slp.c (vect_schedule_slp_instance): Avoid
22019         -Wmaybe-uninitialized warning.
22021 2016-02-11  Oleg Endo  <olegendo@gcc.gnu.org>
22023         PR target/69713
22024         * config/sh/sh.md (casesi_worker_0): Add T_REG use.
22026 2016-02-11  Richard Biener  <rguenther@suse.de>
22028         PR rtl-optimization/69291
22029         * ifcvt.c (noce_try_store_flag_constants): Do not allow
22030         subexpressions affected by changing the result.
22032 2016-02-10  Vladimir Makarov  <vmakarov@redhat.com>
22034         PR target/69148
22035         * lra-constraints.c (curr_insn_transform): Find in/out operands
22036         for secondary memory moves.  Update dups.
22038 2016-02-10  Yuri Rumyantsev  <ysrumyan@gmail.com>
22040         PR tree-optimization/69652
22041         * tree-vect-loop.c (optimize_mask_stores): Move declaration of STMT1
22042         to nested loop, did source re-formatting, skip debug statements,
22043         add check on statement with volatile operand, remove dead scalar
22044         statements.
22046 2016-02-10  Jakub Jelinek  <jakub@redhat.com>
22047             Patrick Palka  <ppalka@gcc.gnu.org>
22049         PR ipa/69241
22050         PR c++/69649
22051         * gimplify.c (gimplify_modify_expr): Set lhs even for noreturn
22052         calls if the return type is TREE_ADDRESSABLE.
22053         * cgraphunit.c (cgraph_node::expand_thunk): Likewise.
22054         * ipa-split.c (split_function): Fix doubled "we" in comment.
22055         Use void return type for the split part even if
22056         !split_point->split_part_set_retval.
22058 2016-02-10  Bin Cheng  <bin.cheng@arm.com>
22060         PR tree-optimization/68021
22061         * tree-ssa-loop-ivopts.c (get_computation_aff): Set ratio to 1 if
22062         when computing the value of biv cand by itself.
22064 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22066         * config/aarch64/aarch64.c (cortexa53_tunings): Enable AES fusion.
22067         (cortexa57_tunings): Likewise.
22068         (cortexa72_tunings): Likewise.
22069         (arch_macro_fusion_pair_p): Add support for AES fusion.
22070         * config/aarch64/aarch64-fusion-pairs.def: Add AES_AESMC entry.
22071         * config/arm/aarch-common.c (aarch_crypto_can_dual_issue):
22072         Allow virtual registers before reload so early scheduling works.
22073         * config/arm/cortex-a57.md (cortex_a57_crypto_simple): Use
22074         correct latency and pipeline.
22075         (cortex_a57_crypto_complex): Likewise.
22076         (cortex_a57_crypto_xor): Likewise.
22077         (define_bypass): Add AES bypass.
22079 2016-02-10  Richard Biener  <rguenther@suse.de>
22081         PR tree-optimization/69726
22082         * passes.def: Add DCE pass before late uninit.
22083         * match.pd: Add A ? B : (!A ? C : X) -> A ? B : C patterns to
22084         really fixup if-conversions job.
22086 2016-02-10  Wilco Dijkstra  <wdijkstr@arm.com>
22088         * config/arm/arm.c (arm_cortex_a53_tune): Enable AES fusion.
22089         (arm_cortex_a57_tune): Likewise.
22090         (aarch_macro_fusion_pair_p): Add support for AES fusion.
22091         * config/arm/arm-protos.h (fuse_ops): Add FUSE_AES_AESMC.
22093 2016-02-10  Eric Botcazou  <ebotcazou@adacore.com>
22095         * timevar.def (TV_PHASE_DBGINFO): Delete.
22096         (TV_PHASE_CHECK_DBGINFO): Likewise.
22097         * varpool.c (varpool_node::assemble_decl): Do not change timevar.
22099 2016-02-10  Richard Biener  <rguenther@suse.de>
22101         PR tree-optimization/69719
22102         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22103         Adjust previous fix by ensuring that dr_a1 is left of dr_a2.
22105 2016-02-09  Andrew Pinski  <apinski@cavium.com>
22107         PR tree-opt/69282
22108         * optabs-tree.c (expand_vec_cond_expr_p): Don't early return if
22109         get_vcond_mask_icode returns false.
22111 2016-02-09  Michael Meissner  <meissner@linux.vnet.ibm.com>
22113         PR target/68404
22114         * config/rs6000/predicates.md (fusion_gpr_addis): Prevent fusing
22115         an ADDIS that adds a pointer to a large constant that sets the
22116         upper16 bits with a load operation.
22118 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22120         PR target/68532
22121         * config/arm/arm.c (arm_evpc_neon_vzip): Allow for big endian lane
22122         order.
22123         * config/arm/arm_neon.h (vzipq_s8): Adjust shuffle patterns for big
22124         endian.
22125         (vzipq_s16): Likewise.
22126         (vzipq_s32): Likewise.
22127         (vzipq_f32): Likewise.
22128         (vzipq_u8): Likewise.
22129         (vzipq_u16): Likewise.
22130         (vzipq_u32): Likewise.
22131         (vzipq_p8): Likewise.
22132         (vzipq_p16): Likewise.
22134 2016-02-09  Charles Baylis  <charles.baylis@linaro.org>
22136         PR target/68532
22137         * config/arm/arm.c (neon_endian_lane_map): New function.
22138         (neon_vector_pair_endian_lane_map): New function.
22139         (arm_evpc_neon_vuzp): Allow for big endian lane order.
22140         * config/arm/arm_neon.h (vuzpq_s8): Adjust shuffle patterns for big
22141         endian.
22142         (vuzpq_s16): Likewise.
22143         (vuzpq_s32): Likewise.
22144         (vuzpq_f32): Likewise.
22145         (vuzpq_u8): Likewise.
22146         (vuzpq_u16): Likewise.
22147         (vuzpq_u32): Likewise.
22148         (vuzpq_p8): Likewise.
22149         (vuzpq_p16): Likewise.
22151 2016-02-11  Alexandre Oliva  <aoliva@redhat.com>
22153         PR target/69634
22154         * regstat.c (regstat_bb_compute_calls_crossed): Disregard
22155         debug insns.
22157 2016-02-09  Uros Bizjak  <ubizjak@gmail.com>
22159         * config/i386/i386.md (insv<mode>_1): Use gen_int_mode to
22160         truncate const_int operand 1 to QImode.
22162 2016-02-09  Eric Botcazou  <ebotcazou@adacore.com>
22164         * gimple-ssa-backprop.c (optimize_phi): Do not replace an argument
22165         corresponding to an abnormal edge.
22167 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22169         PR tree-optimization/69599
22170         * tree-ssa-structalias.c (fndecl_maybe_in_other_partition): New
22171         function.
22172         (find_func_aliases_for_builtin_call, find_func_clobbers)
22173         (ipa_pta_execute):  Handle case that foo and foo._0 are not in same lto
22174         partition.
22176 2016-02-09  Richard Biener  <rguenther@suse.de>
22178         PR tree-optimization/69715
22179         * tree-ssa.c (execute_update_addresses_taken): Mark non-decl
22180         LHS on calls as non-rewritable.
22182 2016-02-09  Tom de Vries  <tom@codesourcery.com>
22184         PR lto/69707
22185         * lto-wrapper.c (append_diag_options): New function.
22186         (compile_offload_image): Call append_diag_options.
22188 2016-02-08  Sandra Loosemore  <sandra@codesourcery.com>
22190         PR other/69722
22191         * doc/extend.texi (Flag Output Operands): Correct sectioning.
22192         Minor copy-edit to fix verb tenses.
22194 2016-02-08  Jakub Jelinek  <jakub@redhat.com>
22196         PR tree-optimization/69209
22197         * ipa-split.c (split_function): If split part is not
22198         returning retval, retval has gimple type but is not
22199         gimple value, force it into a SSA_NAME first.
22201 2016-02-08  Nicklas Bo Jensen  <nbjensen@gmail.com>
22203         * doc/tree-ssa.texi (Preserving the virtual SSA form): Remove
22204         outdated section.
22206 2016-02-08  Jason Merrill  <jason@redhat.com>
22208         PR c++/69631
22209         * convert.c (convert_to_integer_1): Check dofold on truncation
22210         distribution.
22211         (convert_to_pointer_maybe_fold, convert_to_real_maybe_fold)
22212         (convert_to_integer_maybe_fold, convert_to_complex_maybe_fold):
22213         Rename from *_nofold.
22214         * convert.h (convert_to_pointer_nofold, convert_to_integer_nofold)
22215         (convert_to_real_nofold, convert_to_complex_nofold): New inlines.
22217 2016-02-08  Bernd Schmidt  <bschmidt@redhat.com>
22219         PR target/60410
22220         * tree.c (build_common_tree_nodes): Remove short_double argument.
22221         All callers changed.
22222         * tree.h (build_common_tree_nodes): Adjust declaration.
22223         * doc/invoke.texi (-fshort-double): Remove documentation.
22224         * config/mips/t-img-elf (MULTILIB_OPTIONS, MULTILIB_DIRNAMES,
22225         MULTILIB_EXCEPTIONS): Remove -fshort-double variant.
22226         * lto-wrapper.c (merge_and_complain, append_compiler_options)
22227         (append_linker_options): Don't handle OPT_fshort_double.
22229         PR rtl-optimization/68730
22230         * lra-remat.c (insn_to_cand_activation): New static variable.
22231         (lra_remat): Allocate and free it.
22232         (create_cand): New arg activation. Initialize a field in
22233         insn_to_cand_activation if it is nonnull.
22234         (create_cands): Pass the activation insn to create_cand when making
22235         a candidate involving an output reload.  Reorganize code a little.
22236         (do_remat): Keep track of active status of candidates in a separate
22237         bitmap.
22239 2016-02-08  Richard Biener  <rguenther@suse.de>
22241         PR tree-optimization/69719
22242         * tree-vect-data-refs.c (vect_prune_runtime_alias_test_list):
22243         Properly use absolute of the difference of the two offsets to
22244         compare or adjust the segment length.
22246 2016-02-08  Richard Biener  <rguenther@suse.de>
22247             Jeff Law  <law@redhat.com>
22249         PR target/68273
22250         * tree-ssanames.c (make_ssa_name_fn): Always use unqualified
22251         types for anonymous SSA names.
22253 2016-02-08   Richard Biener  <rguenther@suse.de>
22255         PR rtl-optimization/69274
22256         * ira.c (ira_setup_alts): Do not change recog_data.operand order.
22258 2016-02-08  Jeff Law  <law@redhat.com>
22260         PR tree-optimization/65917
22261         * tree-ssa-dom.c (record_temporary_equivalences): Record both
22262         equivalences from if (x == y) style conditionals.
22263         (loop_depth_of_name): Remove.
22264         (record_equality): Remove loop depth check.
22265         * tree-ssa-scopedtables.h (const_and_copies): Refine comments.
22266         (const_and_copies::record_const_or_copy_raw): New member function.
22267         * tree-ssa-scopedtables.c
22268         (const_and_copies::record_const_or_copy_raw): New, factored out of
22269         (const_and_copies::record_const_or_copy): Call new member function.
22271 2016-02-05  Jeff Law  <law@redhat.com>
22273         PR tree-optimization/68541
22274         * gimple-ssa-split-paths.c: Include tree-cfg.h and params.h.
22275         (count_stmts_in_block): New function.
22276         (poor_ifcvt_candidate_code): Likewise.
22277         (is_feasible_trace): Add some heuristics to determine when path
22278         splitting is profitable.
22279         (find_block_to_duplicate_for_splitting_paths): Make sure the graph
22280         is a diamond with a single exit.
22282 2016-02-05  Martin Sebor  <msebor@redhat.com>
22284         PR c++/69662
22285         * doc/invoke.texi: Update -Wplacement-new to take an optional
22286         argument.
22288 2016-02-06  Richard Henderson  <rth@redhat.com>
22290         PR c/69643
22291         * tree.c (tree_nop_conversion_p): Do not strip casts into or
22292         out of non-standard address spaces.
22294 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
22296         PR rtl-optimization/69691
22297         * lra-eliminations.c (move_plus_up): Don't add the addend twice.
22299 2016-02-05  Pat Haugen  <pthaugen@us.ibm.com>
22301         * config/rs6000/crypto.md (crypto_vpermxor_<mode>): Correct insn type.
22302         * config/rs6000/rs6000.md (mov<mode>_hardfloat): Likewise.
22303         (*ieee128_mfvsrd_64bit): Likewise.
22304         (*ieee128_mfvsrd_32bit): Likewise.
22306 2016-02-05  Ilya Enkovich  <enkovich.gnu@gmail.com>
22308         PR target/69369
22309         Revert r232560:
22310         2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
22312         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
22313         instrumented_version.
22315 2016-01-05  Jeremy Bennett  <jeremy.bennett@embecosm.com>
22317         * doc/invoke.texi (Optimize Options): In table of --param options
22318         rename second occurrence of tracer-min-branch-ratio to
22319         tracer-min-branch-probability, rename
22320         tracer-min-branch-ratio-feedback to
22321         tracer-min-branch-probability-feedback and clarify description,
22322         rename sched-spec-state-edge-prob-cutoff to
22323         sched-state-edge-prob-cutoff, rename selsched-max-insns-to-rename
22324         to selsched-insns-to-rename, rename lto-minpartition to
22325         lto-min-partition, delete reorder-blocks-duplicate and
22326         reorder-blocks-duplicate-feedback.
22328 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22330         * config/s390/s390.c (s390_register_info_set_ranges): Remove
22331         superfluous loops.
22333 2016-02-05  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22335         * doc/extend.texi: S/390: Correct some typos.
22337 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22339         * config/s390/s390.c (s390_emit_call): Add missing 64 bit check.
22341 2016-02-05  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
22343         PR target/69625
22344         * config/s390/s390.c (SAVE_SLOT_NONE, SAVE_SLOT_STACK): New defines.
22345         (s390_register_info_gprtofpr): Use new macros above.
22346         (s390_register_info_stdarg_fpr): Adjust max_fpr to better match
22347         its name.
22348         (s390_register_info_stdarg_gpr): Adjust max_gpr to better match
22349         its name.  Adjust restore and save gpr ranges.
22350         (s390_register_info_set_ranges): New function.
22351         (s390_register_info): Use new macros above.  Call
22352         s390_register_info_set_ranges.
22353         (s390_optimize_register_info): Likewise.
22354         (s390_hard_regno_rename_ok): Use new macros.
22355         (s390_hard_regno_scratch_ok): Likewise.
22356         (s390_emit_epilogue): Likewise.
22357         (s390_can_use_return_insn): Likewise.
22358         (s390_optimize_prologue): Likewise.
22359         * config/s390/s390.md (GPR2_REGNUM, GPR6_REGNUM): New constants.
22361 2016-02-05  Jakub Jelinek  <jakub@redhat.com>
22363         PR bootstrap/69677
22364         * config/i386/i386.c (convert_scalars_to_vector): Readd stack
22365         alignment fixes.
22366         (ix86_option_override_internal): Disable TARGET_STV even for
22367         -m{incoming,preferred}-stack-boundary=3.
22369 2016-02-03  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
22371         * config.gcc: Mark deprecated rtems targets as obsolete.
22373 2016-02-04  Segher Boessenkool  <segher@kernel.crashing.org>
22375         PR rtl-optimization/64682
22376         PR rtl-optimization/69567
22377         * combine.c (distribute_notes) <REG_DEAD>: Place the death note
22378         before I2 only if the register is both used and set in I2.
22380 2016-02-04  DJ Delorie  <dj@redhat.com>
22382         * config/msp430/msp430.c (msp430_start_function): Add function type.
22384 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
22386         PR fortran/69368
22387         * tree-dfa.c (get_ref_base_and_extent): Remove unreachable code.
22389 2016-02-04  Uros Bizjak  <ubizjak@gmail.com>
22391         PR rtl-optimization/69577
22392         Revert:
22393         2015-10-29  Richard Henderson  <rth@redhat.com>
22395         PR target/68124
22396         PR rtl-opt/67609
22397         * config/i386/i386.c (ix86_cannot_change_mode_class): Tighten
22398         sse check to the exact conditions of PR 67609.
22400 2016-02-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
22402         PR target/69667
22403         * config/rs6000/rs6000.md (mov<mode>_64bit_dm): Use 'd' constraint
22404         instead of 'ws', and 'wh' instead of 'wm' since TFmode/IFmode are
22405         not allowed into the traditional Altivec registers.
22406         (movtd_64bit_nodm): Likewise.
22407         (mov<mode>_32bit, FMOVE128_FPR iterator): Likewise.
22409 2016-02-04  David Malcolm  <dmalcolm@redhat.com>
22411         * config/aarch64/cortex-a57-fma-steering.c
22412         (aarch64_register_fma_steering): Remove "static" from arguments
22413         to register_pass.
22415 2016-02-04  Wilco Dijkstra  <wdijkstr@arm.com>
22417         PR target/69619
22418         * ccmp.c (expand_ccmp_expr_1): Avoid evaluating gs0/gs1
22419         twice when complex.
22421 2016-02-04  Mike Frysinger  <vapier@gentoo.org>
22423         * doc/invoke.texi: Delete -mno-fma4.
22425 2016-02-04  Richard Sandiford  <richard.sandiford@arm.com>
22427         PR rtl-optimization/69577
22428         * reginfo.c (record_subregs_of_mode): Add a partial_def parameter.
22429         (find_subregs_of_mode): Update accordingly.  Iterate over partial
22430         definitions.
22432 2016-02-04  Alan Lawrence  <alan.lawrence@arm.com>
22434         * config/arm/arm-protos.h (neon_reinterpret): Remove.
22435         * config/arm/arm.c (neon_reinterpret): Remove.
22436         * config/arm/arm_neon_builtins.def (vreinterpretv8qi, vreinterpretv4hi,
22437         vreinterpretv2si, vreinterpretv2sf, vreinterpretdi, vreinterpretv16qi,
22438         vreinterpretv8hi, vreinterpretv4si, vreinterpretv4sf, vreinterpretv2di,
22439         vreinterpretti): Remove.
22440         * config/arm/neon.md (neon_vreinterpretv8qi<mode>,
22441         neon_vreinterpretv4hi<mode>, neon_vreinterpretv2si<mode>,
22442         neon_vreinterpretv2sf<mode>, neon_vreinterpretdi<mode>,
22443         neon_vreinterpretti<mode>, neon_vreinterpretv16qi<mode>,
22444         neon_vreinterpretv8hi<mode>, neon_vreinterpretv4si<mode>,
22445         neon_vreinterpretv4sf<mode>, neon_vreinterpretv2di<mode>): Remove.
22446         * config/arm/arm_neon.h (vreinterpret_p8_p16, vreinterpret_p8_f32,
22447         vreinterpret_p8_p64, vreinterpret_p8_s64, vreinterpret_p8_u64,
22448         vreinterpret_p8_s8, vreinterpret_p8_s16, vreinterpret_p8_s32,
22449         vreinterpret_p8_u8, vreinterpret_p8_u16, vreinterpret_p8_u32,
22450         vreinterpret_p16_p8, vreinterpret_p16_f32, vreinterpret_p16_p64,
22451         vreinterpret_p16_s64, vreinterpret_p16_u64, vreinterpret_p16_s8,
22452         vreinterpret_p16_s16, vreinterpret_p16_s32, vreinterpret_p16_u8,
22453         vreinterpret_p16_u16, vreinterpret_p16_u32, vreinterpret_f32_p8,
22454         vreinterpret_f32_p16, vreinterpret_f32_p64, vreinterpret_f32_s64,
22455         vreinterpret_f32_u64, vreinterpret_f32_s8, vreinterpret_f32_s16,
22456         vreinterpret_f32_s32, vreinterpret_f32_u8, vreinterpret_f32_u16,
22457         vreinterpret_f32_u32, vreinterpret_p64_p8, vreinterpret_p64_p16,
22458         vreinterpret_p64_f32, vreinterpret_p64_s64, vreinterpret_p64_u64,
22459         vreinterpret_p64_s8, vreinterpret_p64_s16, vreinterpret_p64_s32,
22460         vreinterpret_p64_u8, vreinterpret_p64_u16, vreinterpret_p64_u32,
22461         vreinterpret_s64_p8, vreinterpret_s64_p16, vreinterpret_s64_f32,
22462         vreinterpret_s64_p64, vreinterpret_s64_u64, vreinterpret_s64_s8,
22463         vreinterpret_s64_s16, vreinterpret_s64_s32, vreinterpret_s64_u8,
22464         vreinterpret_s64_u16, vreinterpret_s64_u32, vreinterpret_u64_p8,
22465         vreinterpret_u64_p16, vreinterpret_u64_f32, vreinterpret_u64_p64,
22466         vreinterpret_u64_s64, vreinterpret_u64_s8, vreinterpret_u64_s16,
22467         vreinterpret_u64_s32, vreinterpret_u64_u8, vreinterpret_u64_u16,
22468         vreinterpret_u64_u32, vreinterpret_s8_p8, vreinterpret_s8_p16,
22469         vreinterpret_s8_f32, vreinterpret_s8_p64, vreinterpret_s8_s64,
22470         vreinterpret_s8_u64, vreinterpret_s8_s16, vreinterpret_s8_s32,
22471         vreinterpret_s8_u8, vreinterpret_s8_u16, vreinterpret_s8_u32,
22472         vreinterpret_s16_p8, vreinterpret_s16_p16, vreinterpret_s16_f32,
22473         vreinterpret_s16_p64, vreinterpret_s16_s64, vreinterpret_s16_u64,
22474         vreinterpret_s16_s8, vreinterpret_s16_s32, vreinterpret_s16_u8,
22475         vreinterpret_s16_u16, vreinterpret_s16_u32, vreinterpret_s32_p8,
22476         vreinterpret_s32_p16, vreinterpret_s32_f32, vreinterpret_s32_p64,
22477         vreinterpret_s32_s64, vreinterpret_s32_u64, vreinterpret_s32_s8,
22478         vreinterpret_s32_s16, vreinterpret_s32_u8, vreinterpret_s32_u16,
22479         vreinterpret_s32_u32, vreinterpret_u8_p8, vreinterpret_u8_p16,
22480         vreinterpret_u8_f32, vreinterpret_u8_p64, vreinterpret_u8_s64,
22481         vreinterpret_u8_u64, vreinterpret_u8_s8, vreinterpret_u8_s16,
22482         vreinterpret_u8_s32, vreinterpret_u8_u16, vreinterpret_u8_u32,
22483         vreinterpret_u16_p8, vreinterpret_u16_p16, vreinterpret_u16_f32,
22484         vreinterpret_u16_p64, vreinterpret_u16_s64, vreinterpret_u16_u64,
22485         vreinterpret_u16_s8, vreinterpret_u16_s16, vreinterpret_u16_s32,
22486         vreinterpret_u16_u8, vreinterpret_u16_u32, vreinterpret_u32_p8,
22487         vreinterpret_u32_p16, vreinterpret_u32_f32, vreinterpret_u32_p64,
22488         vreinterpret_u32_s64, vreinterpret_u32_u64, vreinterpret_u32_s8,
22489         vreinterpret_u32_s16, vreinterpret_u32_s32, vreinterpret_u32_u8,
22490         vreinterpret_u32_u16, vreinterpretq_p8_p16, vreinterpretq_p8_f32,
22491         vreinterpretq_p8_p64, vreinterpretq_p8_p128, vreinterpretq_p8_s64,
22492         vreinterpretq_p8_u64, vreinterpretq_p8_s8, vreinterpretq_p8_s16,
22493         vreinterpretq_p8_s32, vreinterpretq_p8_u8, vreinterpretq_p8_u16,
22494         vreinterpretq_p8_u32, vreinterpretq_p16_p8, vreinterpretq_p16_f32,
22495         vreinterpretq_p16_p64, vreinterpretq_p16_p128, vreinterpretq_p16_s64,
22496         vreinterpretq_p16_u64, vreinterpretq_p16_s8, vreinterpretq_p16_s16,
22497         vreinterpretq_p16_s32, vreinterpretq_p16_u8, vreinterpretq_p16_u16,
22498         vreinterpretq_p16_u32, vreinterpretq_f32_p8, vreinterpretq_f32_p16,
22499         vreinterpretq_f32_p64, vreinterpretq_f32_p128, vreinterpretq_f32_s64,
22500         vreinterpretq_f32_u64, vreinterpretq_f32_s8, vreinterpretq_f32_s16,
22501         vreinterpretq_f32_s32, vreinterpretq_f32_u8, vreinterpretq_f32_u16,
22502         vreinterpretq_f32_u32, vreinterpretq_p64_p8, vreinterpretq_p64_p16,
22503         vreinterpretq_p64_f32, vreinterpretq_p64_p128, vreinterpretq_p64_s64,
22504         vreinterpretq_p64_u64, vreinterpretq_p64_s8, vreinterpretq_p64_s16,
22505         vreinterpretq_p64_s32, vreinterpretq_p64_u8, vreinterpretq_p64_u16,
22506         vreinterpretq_p64_u32, vreinterpretq_p128_p8, vreinterpretq_p128_p16,
22507         vreinterpretq_p128_f32, vreinterpretq_p128_p64, vreinterpretq_p128_s64,
22508         vreinterpretq_p128_u64, vreinterpretq_p128_s8, vreinterpretq_p128_s16,
22509         vreinterpretq_p128_s32, vreinterpretq_p128_u8, vreinterpretq_p128_u16,
22510         vreinterpretq_p128_u32, vreinterpretq_s64_p8, vreinterpretq_s64_p16,
22511         vreinterpretq_s64_f32, vreinterpretq_s64_p64, vreinterpretq_s64_p128,
22512         vreinterpretq_s64_u64, vreinterpretq_s64_s8, vreinterpretq_s64_s16,
22513         vreinterpretq_s64_s32, vreinterpretq_s64_u8, vreinterpretq_s64_u16,
22514         vreinterpretq_s64_u32, vreinterpretq_u64_p8, vreinterpretq_u64_p16,
22515         vreinterpretq_u64_f32, vreinterpretq_u64_p64, vreinterpretq_u64_p128,
22516         vreinterpretq_u64_s64, vreinterpretq_u64_s8, vreinterpretq_u64_s16,
22517         vreinterpretq_u64_s32, vreinterpretq_u64_u8, vreinterpretq_u64_u16,
22518         vreinterpretq_u64_u32, vreinterpretq_s8_p8, vreinterpretq_s8_p16,
22519         vreinterpretq_s8_f32, vreinterpretq_s8_p64, vreinterpretq_s8_p128,
22520         vreinterpretq_s8_s64, vreinterpretq_s8_u64, vreinterpretq_s8_s16,
22521         vreinterpretq_s8_s32, vreinterpretq_s8_u8, vreinterpretq_s8_u16,
22522         vreinterpretq_s8_u32, vreinterpretq_s16_p8, vreinterpretq_s16_p16,
22523         vreinterpretq_s16_f32, vreinterpretq_s16_p64, vreinterpretq_s16_p128,
22524         vreinterpretq_s16_s64, vreinterpretq_s16_u64, vreinterpretq_s16_s8,
22525         vreinterpretq_s16_s32, vreinterpretq_s16_u8, vreinterpretq_s16_u16,
22526         vreinterpretq_s16_u32, vreinterpretq_s32_p8, vreinterpretq_s32_p16,
22527         vreinterpretq_s32_f16, vreinterpretq_s32_f32, vreinterpretq_s32_p64,
22528         vreinterpretq_s32_p128, vreinterpretq_s32_s64, vreinterpretq_s32_u64,
22529         vreinterpretq_s32_s8, vreinterpretq_s32_s16, vreinterpretq_s32_u8,
22530         vreinterpretq_s32_u16, vreinterpretq_s32_u32, vreinterpretq_u8_p8,
22531         vreinterpretq_u8_p16, vreinterpretq_u8_f32, vreinterpretq_u8_p64,
22532         vreinterpretq_u8_p128, vreinterpretq_u8_s64, vreinterpretq_u8_u64,
22533         vreinterpretq_u8_s8, vreinterpretq_u8_s16, vreinterpretq_u8_s32,
22534         vreinterpretq_u8_u16, vreinterpretq_u8_u32, vreinterpretq_u16_p8,
22535         vreinterpretq_u16_p16, vreinterpretq_u16_f32, vreinterpretq_u16_p64,
22536         vreinterpretq_u16_p128, vreinterpretq_u16_s64, vreinterpretq_u16_u64,
22537         vreinterpretq_u16_s8, vreinterpretq_u16_s16, vreinterpretq_u16_s32,
22538         vreinterpretq_u16_u8, vreinterpretq_u16_u32, vreinterpretq_u32_p8,
22539         vreinterpretq_u32_p16, vreinterpretq_u32_f32, vreinterpretq_u32_p64,
22540         vreinterpretq_u32_p128, vreinterpretq_u32_s64, vreinterpretq_u32_u64,
22541         vreinterpretq_u32_s8, vreinterpretq_u32_s16, vreinterpretq_u32_s32,
22542         vreinterpretq_u32_u8, vreinterpretq_u32_u16): Rewrite using casts.
22544 2016-02-04  Martin Liska  <mliska@suse.cz>
22546         PR sanitizer/69276
22547         * asan.c (has_stmt_been_instrumented_p): Instrument gimple calls
22548         that are gimple_store_p.
22549         (maybe_instrument_call): Likewise.
22551 2016-02-04  Bin Cheng  <bin.cheng@arm.com>
22553         * config/aarch64/aarch64.c (aarch64_legitimize_address): Force
22554         register scaling out of memory reference and comment why.
22556 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22558         PR target/65932
22559         PR target/67714
22560         * cse.c (cse_insn): Pass NULL to fold_rtx when initially
22561         folding the source of a SET.
22563 2016-02-04  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22565         PR target/65932
22566         PR target/67714
22567         * config/arm/arm.c (arm_new_rtx_costs, MULT case): Properly extract
22568         the operands of the SIGN_EXTENDs from a SMUL[TB][TB] rtx.
22570 2016-02-04  Jim Wilson  <jim.wilson@linaro.org>
22572         PR target/65932
22573         PR target/67714
22574         * config/arm/arm.h (PROMOTE_MODE): Don't set UNSIGNEDP for QImode and
22575         HImode.
22577 2016-02-04  Christian Bruel  <christian.bruel@st.com>
22579         * config/arm/arm-c.c (arm_reset_previous_fndecl): Style fix and typo.
22580         * config/arm/arm.c (arm_set_current_function): Likewise.
22582 2016-02-04  Jakub Jelinek  <jakub@redhat.com>
22583             Ilya Enkovich  <enkovich.gnu@gmail.com>
22584             H.J. Lu  <hongjiu.lu@intel.com>
22586         PR target/69454
22587         * config/i386/i386.c (convert_scalars_to_vector): Remove
22588         stack alignment fixes.
22589         (ix86_option_override_internal): Disable TARGET_STV if stack
22590         might not be aligned enough.
22591         (ix86_minimum_alignment): Assert that TARGET_STV is false.
22593 2016-02-04  Victoria Stepanyan  <victoria.stepanyan@amd.com>
22595         * config/i386/x86-tune.def: Disable default prefetching
22596         for -march=znver1.
22598 2016-02-03  Michael Meissner  <meissner@linux.vnet.ibm.com>
22599             Vladimir Makarov  <vmakarov@redhat.com>
22601         PR target/69461
22602         * config/rs6000/rs6000.c (rs6000_legitimate_address_p): Fix thinko
22603         in validating fused toc addresses.
22605 2016-02-03  Jakub Jelinek  <jakub@redhat.com>
22607         PR c/69627
22608         * diagnostic-show-locus.c (layout::get_state_at_point): Don't read
22609         range->m_caret fields if range->m_show_caret_p is false.
22611         PR target/69644
22612         * config/rs6000/rs6000.c (rs6000_expand_atomic_compare_and_swap):
22613         Force oldval into register if it does not satisfy reg_or_short_operand
22614         predicate.  Fix up formatting.
22616 2016-02-03  Vladimir Makarov  <vmakarov@redhat.com>
22617             Alexandre Oliva  <aoliva@redhat.com>
22619         PR target/69461
22620         * lra-constraints.c (simplify_operand_subreg): Check additionally
22621         address validity after potential reloading.
22622         (process_address_1): Check insns validity.  In case of failure do
22623         nothing.
22625 2016-02-03  Kirill Yukhin  <kirill.yukhin@intel.com>
22627         PR target/69118
22628         * config/i386/sse.md (define_insn "avx512f_maskcmp<mode>3"):
22629         Fix target.
22631 2016-02-02  Jakub Jelinek  <jakub@redhat.com>
22633         * wide-int.cc (canonize_uhwi): New function.
22634         (wi::divmod_internal): Use it.
22636 2016-02-02  James Norris  <jnorris@codesourcery.com>
22638         * gimplify.c (omp_notice_variable): Add usage check.
22640 2016-02-02  Alexander Monakov  <amonakov@ispras.ru>
22642         * config/nvptx/nvptx.c (nvptx_print_operand): Treat LEU, GEU, LTU, GTU
22643         like LE, GE, LT, GT when emitting relational operator.
22645 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
22647         * ira-costs.c (find_costs_and_classes): Add extra argument.
22648         * target.def (ira_change_pseudo_allocno_class): Add parameter.
22649         * targhooks.h (ira_change_pseudo_allocno_class): Likewise.
22650         * targhooks.c (ira_change_pseudo_allocno_class): Likewise.
22651         * config/aarch64/aarch64.c (aarch64_ira_change_pseudo_allocno_class)
22652         Add best_class parameter, and return it if not ALL_REGS.
22653         * config/mips/mips.c (mips_ira_change_pseudo_allocno_class):
22654         Add parameter.
22655         * doc/tm.texi (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS):
22656         Update target hook.
22658 2016-02-02  Wilco Dijkstra  <wdijkstr@arm.com>
22660         * config/aarch64/aarch64.c
22661         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): New define.
22662         (aarch64_ira_change_pseudo_allocno_class): New function.
22664 2016-02-02  Uros Bizjak  <ubizjak@gmail.com>
22666         PR target/67032
22667         * config/i386/i386.c (geode_cost): Increase cost of MMX and SSE moves.
22669 2016-02-02  Senthil Kumar Selvaraj  <senthil_kumar.selvaraj@atmel.com>
22671         * config/avr/avr.c (avr_option_override): Set
22672         PARAM_ALLOW_STORE_DATA_RACES to 1.
22674 2016-02-02  Richard Biener  <rguenther@suse.de>
22676         PR tree-optimization/69595
22677         * match.pd: Add range test simplifications to true/false.
22679 2016-02-02  Thomas Schwinge  <thomas@codesourcery.com>
22681         * omp-builtins.def (BUILT_IN_GOACC_HOST_DATA): Remove.
22682         * omp-low.c (expand_omp_target): Use BUILT_IN_GOACC_DATA_START
22683         instead.
22685 2016-02-02  Richard Biener  <rguenther@suse.de>
22687         PR tree-optimization/69606
22688         * tree-ssa-math-opts.c (bswap_replace): Clear flow sensitive
22689         info on the result before moving a stmt.
22691 2016-02-02  Yuri Rumyantsev  <ysrumyan@gmail.com>
22693         PR middle-end/68542
22694         * config/i386/i386.c (ix86_expand_branch): Add support for conditional
22695         branch with vector comparison.
22696         * config/i386/sse.md (VI48_AVX): New mode iterator.
22697         (define_expand "cbranch<mode>4): Add support for conditional branch
22698         with vector comparison.
22699         * tree-vect-loop.c (optimize_mask_stores): New function.
22700         * tree-vect-stmts.c (vectorizable_mask_load_store): Initialize
22701         has_mask_store field of vect_info.
22702         * tree-vectorizer.c (vectorize_loops): Invoke optimaze_mask_stores for
22703         vectorized loops having masked stores after vec_info destroy.
22704         * tree-vectorizer.h (loop_vec_info): Add new has_mask_store field and
22705         correspondent macros.
22706         (optimize_mask_stores): Add prototype.
22708 2016-02-02  Alan Modra  <amodra@gmail.com>
22710         PR target/69548
22711         * config/rs6000/predicates.md (quad_int_reg_operand): Don't
22712         allow subregs.
22714 2016-02-02  Alan Modra  <amodra@gmail.com>
22716         PR target/68662
22717         * config/rs6000/rs6000.c (need_toc_init): New var, set it
22718         whenever toc_label_name used.
22719         (rs6000_file_start): Don't set up toc section here,
22720         (rs6000_output_function_epilogue): do so here instead,
22721         (rs6000_xcoff_file_start): and here.
22722         * config/rs6000/rs6000.md (load_toc_aix_si): Set need_toc_init.
22723         (load_toc_aix_di): Likewise.
22725 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22727         PR rtl-optimization/69592
22728         * rtlanal.c (nonzero_bits_binary_arith_p): New inline function.
22729         (cached_nonzero_bits): Use it instead of ARITHMETIC_P.
22730         (num_sign_bit_copies_binary_arith_p): New inline function.
22731         (cached_num_sign_bit_copies): Use it instead of ARITHMETIC_P.
22733 2016-02-01  Jeff Law  <law@redhat.com>
22735         PR tree-optimization/69580
22736         * params.def (FSM_MAXIMUM_PHI_ARGUMENTS): New param.
22737         * tree-ssa-threadbackward.c
22738         (fsm_find_control_statement_thread_paths): Do not try to walk
22739         through large PHI nodes.
22741 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22743         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return false
22744         when count is incremented above limit, don't analyze further
22745         insns afterwards.
22747         * omp-low.c (oacc_parse_default_dims): Avoid
22748         -Wsign-compare warning, make sure value fits into int
22749         rather than just unsigned int.
22751 2016-02-01  Bin Cheng  <bin.cheng@arm.com>
22753         PR tree-optimization/67921
22754         * fold-const.c (split_tree): New parameters.  Convert pointer
22755         type variable part to proper type before negating.
22756         (fold_binary_loc): Pass new arguments to split_tree.
22758 2016-02-01  Nathan Sidwell  <nathan@codesourcery.com>
22760         * config/nvptx/nvptx.c (PTX_GANG_DEFAULT): New.
22761         (nvptx_goacc_validate_dims): Extend to handle global defaults.
22762         * target.def (OACC_VALIDATE_DIMS): Extend documentation.
22763         * doc/tm.texti: Rebuilt.
22764         * doc/invoke.texi (fopenacc-dim): Document.
22765         * lto-wrapper.c (merge_and_complain): Add OPT_fopenacc_dim_ case.
22766         (append_compiler_options): Likewise.
22767         * omp-low.c (oacc_default_dims, oacc_min_dims): New.
22768         (oacc_parse_default_dims): New.
22769         (oacc_validate_dims): Add USED arg.  Select non-unity default when
22770         possible.
22771         (oacc_loop_fixed_partitions): Return mask of used partitions.
22772         (oacc_loop_auto_partitions): Emit dump info.
22773         (oacc_loop_partition): Return mask of used partitions.
22774         (execute_oacc_device_lower): Parse default dimension arg.  Adjust
22775         loop partitioning and validation calls.
22777 2016-02-01  Richard Biener  <rguenther@suse.de>
22779         PR middle-end/69556
22780         * match.pd: Guard (C1/X)*C2 -> (C1*C2)/X with single_use.
22782 2016-02-01  Richard Biener  <rguenther@suse.de>
22784         PR tree-optimization/69574
22785         * tree-chrec.c (hide_evolution_in_other_loops_than_loop): Instead
22786         of asserting return chrec_dont_know.
22788 2016-02-01  Martin Liska  <mliska@suse.cz>
22790         * mem-stats-traits.h: Add copyright header.
22791         * mem-stats.h: Likewise.
22793 2016-02-01  Richard Biener  <rguenther@suse.de>
22795         PR tree-optimization/69579
22796         * tree-ssa-loop-ivcanon.c (propagate_constants_for_unrolling):
22797         Do not propagate through abnormal PHI results.
22799 2016-02-01  Eric Botcazou  <ebotcazou@adacore.com>
22801         * postreload.c (reload_cse_simplify): Remove dead code.
22803 2016-02-01  Jakub Jelinek  <jakub@redhat.com>
22805         PR rtl-optimization/69570
22806         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Return true only
22807         if there is more than one set, not if there is a single set.
22809 2016-02-01  Richard Henderson  <rth@redhat.com>
22811         PR rtl-opt/69535
22812         * combine.c (make_compound_operation): When looking through a
22813         subreg, make sure to re-extend to the width of the outer mode.
22815 2016-01-30  Jakub Jelinek  <jakub@redhat.com>
22817         PR tree-optimization/69546
22818         * wide-int.cc (wi::divmod_internal): For unsigned division
22819         where both operands fit into uhwi, if o1 is 1 and o0 has
22820         msb set, if divident_prec is larger than bits per hwi,
22821         clear another quotient word and return 2 instead of 1.
22822         Similarly for remainder with msb in HWI set, if dividend_prec
22823         is larger than bits per hwi.
22825 2016-01-29  Martin Jambor  <mjambor@suse.cz>
22827         * hsa-gen.c (get_memory_order_name): Mask with MEMMODEL_BASE_MASK.
22828         Use short lowercase names.
22829         (get_memory_order): Mask with MEMMODEL_BASE_MASK.  Support
22830         MEMMODEL_CONSUME with acquire semantics and MEMMODEL_SEQ_CST with
22831         acq_rel one.  Protect warning agains segfaults if
22832         get_memory_order_name returns NULL.
22833         (gen_hsa_ternary_atomic_for_builtin): Support with MEMMODEL_SEQ_CST
22834         with release semantics.  Do not warn if get_memory_order already did.
22835         (gen_hsa_insns_for_call): Support with MEMMODEL_SEQ_CST with acquire
22836         semantics.  Fix check for relaxed or acquire semantics.  Do not warn
22837         if get_memory_order already did.
22839 2016-01-29  Sebastian Pop  <s.pop@samsung.com>
22841         * doc/install.texi: Document that isl-0.16 is supported.
22843 2016-01-29  Vladimir Makarov  <vmakarov@redhat.com>
22845         PR target/69299
22846         * config/i386/constraints.md (Bm): Describe as special memory
22847         constraint.
22848         * doc/md.texi (DEFINE_SPECIAL_MEMORY_CONSTRAINT): Describe it.
22849         * genoutput.c (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22850         * genpreds.c (struct constraint_data): Add is_special_memory.
22851         (have_special_memory_constraints, special_memory_start): New
22852         static vars.
22853         (special_memory_end): Ditto.
22854         (add_constraint): Add new arg is_special_memory.  Add code to
22855         process its true value.  Update have_special_memory_constraints.
22856         (process_define_constraint): Pass the new arg.
22857         (process_define_register_constraint): Ditto.
22858         (choose_enum_order): Process special memory.
22859         (write_tm_preds_h): Generate enum const CT_SPECIAL_MEMORY and
22860         function insn_extra_special_memory_constraint.
22861         (main): Process DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22862         * gensupport.c (process_rtx): Process
22863         DEFINE_SPECIAL_MEMORY_CONSTRAINT.
22864         * ira-costs.c (record_reg_classes): Process CT_SPECIAL_MEMORY.
22865         * ira-lives.c (single_reg_class): Use
22866         insn_extra_special_memory_constraint.
22867         * ira.c (ira_setup_alts): Process CT_SPECIAL_MEMORY.
22868         * lra-constraints.c (process_alt_operands): Ditto.
22869         (curr_insn_transform): Use insn_extra_special_memory_constraint.
22870         * recog.c (asm_operand_ok, preprocess_constraints): Process
22871         CT_SPECIAL_MEMORY.
22872         * reload.c (find_reloads): Ditto.
22873         * rtl.def (DEFINE_SPECIFAL_MEMORY_CONSTRAINT): New.
22874         * stmt.c (parse_input_constraint): Use
22875         insn_extra_special_memory_constraint.
22877 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22879         PR target/69530
22880         * lra-splill.c (lra_final_code_change): Revert r229087 by
22881         removing all sub-registers.
22883 2016-01-29  Steve Ellcey  <sellcey@imgtec.com>
22885         PR target/65604
22886         * config/mips/mips.c (mips_output_division): Check flag_delayed_branch.
22888 2016-01-29  Jakub Jelinek  <jakub@redhat.com>
22890         PR target/69551
22891         * config/i386/i386.c (ix86_expand_vector_set) <case V4SImode>: For
22892         SSE1, copy target into the temporary reg first before recursing
22893         on it.
22895 2016-01-29  H.J. Lu  <hongjiu.lu@intel.com>
22897         * config/i386/sse.md (sse2_cvtps2pd<mask_name>): Replace vBm
22898         with vm.
22900 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22902         * ginclude/stdarg.h: Test __cplusplus instead of
22903         __GXX_EXPERIMENTAL_CXX0X__.
22905 2016-01-29  Richard Biener  <rguenther@suse.de>
22907         PR tree-optimization/69547
22908         * tree-ssa-dce.c (mark_aliased_reaching_defs_necessary_1):
22909         Do not mark clobbers necessary.
22910         (mark_all_reaching_defs_necessary_1): Likewise.
22912 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22914         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Format
22915         declaration name with %qs and print it in both error messages.
22916         Also fix indentation.
22918 2016-01-29  Dominik Vogt  <vogt@linux.vnet.ibm.com>
22920         PR other/69006
22921         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Remove
22922         trailing blank line from error message.
22924 2016-01-29  Jonathan Wakely  <jwakely@redhat.com>
22926         PR c++/69462
22927         * ginclude/float.h: Also provide FLT_EVAL_METHOD and DECIMAL_DIG
22928         for C++-11.
22930 2016-01-29  Richard Biener  <rguenther@suse.de>
22932         PR middle-end/69537
22933         * match.pd: Allow all integral types when simplifying a
22934         widening or sign-changing conversion.
22936 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
22938         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Revert assert
22939         back to setting codegen_error to fail codegen.
22941 2016-01-28  Uros Bizjak  <ubizjak@gmail.com>
22943         PR target/69459
22944         * config/i386/constraints.md (C): Only accept constant zero operand.
22945         (BC): New constraint.
22946         * config/i386/sse.md (*mov<mode>_internal): Use BC constraint
22947         instead of C constraint.
22948         * doc/md.texi (Machine Constraints): Update description
22949         of C constraint.
22951 2016-01-28  Steve Ellcey  <sellcey@imgtec.com>
22953         PR target/68400
22954         * config/mips/mips.c (and_operands_ok): Add MIPS16 check.
22956 2016-01-28  Jakub Jelinek  <jakub@redhat.com>
22958         PR middle-end/69542
22959         * lra-remat.c (calculate_local_reg_remat_bb_data): Only consider
22960         non-debug insns.
22962 2016-01-28  Pat Haugen  <pthaugen@us.ibm.com>
22964         * config/rs6000/rs6000.c (output_cbranch): Don't statically predict
22965         branches if using guessed profile.
22967 2016-01-28  H.J. Lu  <hongjiu.lu@intel.com>
22969         * graphite-optimize-isl.c (optimize_isl): Fix dump.
22971 2016-01-28  Richard Henderson  <rth@redhat.com>
22973         PR target/69305
22974         * config/aarch64/aarch64-modes.def (CC_Cmode): New
22975         * config/aarch64/aarch64-protos.h: Update.
22976         * config/aarch64/aarch64.c (aarch64_zero_extend_const_eq): New.
22977         (aarch64_select_cc_mode): Add check for use of CC_Cmode.
22978         (aarch64_get_condition_code_1): Handle CC_Cmode.
22979         * config/aarch64/aarch64.md (addti3): Use adddi3_compareC.
22980         (*add<mode>3_compareC_cconly_imm): New.
22981         (*add<mode>3_compareC_cconly): New.
22982         (*add<mode>3_compareC_imm): New.
22983         (add<mode>3_compareC): New.
22984         (add<mode>3_carryin, *addsi3_carryin_uxtw): Sort compare operand
22985         to be first.  Use aarch64_carry_operation.
22986         (*add<mode>3_carryin_alt1, *addsi3_carryin_alt1_uxtw): Remove.
22987         (*add<mode>3_carryin_alt2, *addsi3_carryin_alt2_uxtw): Remove.
22988         (*add<mode>3_carryin_alt3, *addsi3_carryin_alt3_uxtw): Remove.
22989         (subti3): Use subdi3_compare1.
22990         (*sub<mode>3_compare0): Rename from sub<mode>3_compare0.
22991         (sub<mode>3_compare1): New.
22992         (*sub<mode>3_carryin0, *subsi3_carryin_uxtw): New.
22993         (*sub<mode>3_carryin): Use aarch64_borrow_operation.
22994         (*subsi3_carryin_uxtw): Likewise.
22995         (*ngc<mode>, *ngcsi_uxtw): Likewise.
22996         (*sub<mode>3_carryin_alt, *subsi3_carryin_alt_uxtw): New.
22997         * config/aarch64/iterators.md (DWI): New.
22998         * config/aarch64/predicates.md (aarch64_carry_operation): New.
22999         (aarch64_borrow_operation): New.
23001 2016-01-28  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23003         * graphite-optimize-isl.c (optimize_isl): Print a different debug
23004         message when isl does not return a valid schedule.
23006 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23008         * graphite-isl-ast-to-gimple.c (class translate_isl_ast_to_gimple):
23009         Remove comments from class declarations: they are already in the code
23010         close by the defs.
23012 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23014         * graphite-isl-ast-to-gimple.c (binary_op_to_tree): Call
23015         codegen_error_p.
23016         (ternary_op_to_tree): Same.
23017         (unary_op_to_tree): Same.
23018         (nary_op_to_tree): Same.
23019         (gcc_expression_from_isl_expr_op): Same.
23020         (gcc_expression_from_isl_expression): Same.
23021         (graphite_create_new_loop): Same.
23022         (graphite_create_new_loop_guard): Same.
23023         (build_iv_mapping): Same.
23024         (graphite_create_new_guard): Same.
23025         (translate_isl_ast_to_gimple::copy_loop_phi_nodes): Same.
23026         (translate_isl_ast_to_gimple::translate_pending_phi_nodes): Same.
23028 2016-01-28  Sebastian Pop  <s.pop@samsung.com>
23030         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Assert
23031         instead of setting codegen_error to fail codegen.
23033 2016-01-28  Jason Merrill  <jason@redhat.com>
23035         * tree.h (BINFO_FLAG_0): Rename from BINFO_MARKED.
23037 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23039         * config/aarch64/aarch64.c (aarch64_if_then_else_costs):
23040         Remove CONST_INT_P check in CCMP cost calculation.
23042 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23044         * config/aarch64/aarch64.c (generic_vector_cost):
23045         Set vec_permute_cost.
23046         (cortexa57_vector_cost): Likewise.
23047         (exynosm1_vector_cost): Likewise.
23048         (xgene1_vector_cost): Likewise.
23049         (aarch64_builtin_vectorization_cost): Use vec_permute_cost.
23050         * config/aarch64/aarch64-protos.h (cpu_vector_cost):
23051         Add vec_permute_cost entry.
23053 2016-01-28  Wilco Dijkstra  <wdijkstr@arm.com>
23055         * config/aarch64/aarch64.md (ccmp<mode>): Disassemble
23056         immediate as %1.
23057         (add<mode>3_compare0): Likewise.
23058         (addsi3_compare0_uxtw): Likewise.
23059         (add<mode>3nr_compare0): Likewise.
23060         (compare_neg<mode>): Likewise.
23061         (<optab><mode>3): Likewise.
23063 2016-01-28  Ilya Enkovich  <enkovich.gnu@gmail.com>
23065         * tree-vect-stmts.c (vectorizable_comparison): Add
23066         NULL check for vectype.
23068 2016-01-28  Richard Biener  <rguenther@suse.de>
23070         PR tree-optimization/69466
23071         * tree-vect-loop-manip.c (slpeel_duplicate_current_defs_from_edges):
23072         Account for PHIs we couldn't duplicate.
23074 2016-01-28  Martin Liska  <mliska@suse.cz>
23076         PR pch/68758
23077         * ggc-common.c (gt_pch_save): Use ENABLE_VALGRIND_ANNOTATIONS macro
23078         instead of ENABLE_VALGRIND_CHECKING.
23080 2016-01-27  Richard Henderson  <rth@redhat.com>
23082         PR rtl-opt/69447
23083         * lra-remat.c (subreg_regs): New.
23084         (dump_candidates_and_remat_bb_data): Dump it.
23085         (operand_to_remat): Reject if operand in subreg_regs.
23086         (set_bb_regs): Collect subreg_regs.
23087         (lra_remat): Init and free subreg_regs.  Compute
23088         calculate_local_reg_remat_bb_data before create_cands.
23090 2016-01-27  H.J. Lu  <hongjiu.lu@intel.com>
23092         PR target/68986
23093         * config/i386/i386.c (ix86_update_stack_boundary): Don't
23094         change stack_alignment_needed for __tls_get_addr call.
23096 2016-01-27  Segher Boessenkool  <segher@kernel.crashing.org>
23098         * config/rs6000/rs6000.c (print_operand): Rollback 's' removal.
23100 2016-01-27  Jeff Law  <law@redhat.com>
23102         PR tree-optimization/68398
23103         PR tree-optimization/69196
23104         * params.def (PARAM_FSM_SCALE_PATH_STMTS): New parameter.
23105         (PARAM_FSM_SCALE_PATH_BLOCKS): Likewise.
23106         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23107         Only count PHIs in the last block in the path.  The others will
23108         const/copy propagate away.  Add heuristic to allow more irreducible
23109         subloops to be created when it is likely profitable to do so.
23111         * tree-ssa-threadbackward.c (fsm_find_control_statement_thread_paths):
23112         Fix typo in comment.  Use gsi_after_labels and remove the GIMPLE_LABEL
23113         check from within the loop.  Use gsi_next_nondebug rather than gsi_next.
23115 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23117         PR lto/69254
23118         * sanitizer.def: Add BEGIN_SANITIZER_BUILTINS and
23119         END_SANITIZER_BUILTINS markers using DEF_BUILTIN_STUB.
23120         * asan.c (DEF_BUILTIN_STUB): Temporarily define.
23121         * tree-streamer-in.c: Include asan.h.
23122         (streamer_get_builtin_tree): For builtins in sanitizer
23123         range call initialize_sanitizer_builtins and retry.
23125 2016-01-27  Ian Lance Taylor  <iant@google.com>
23127         * common.opt (fkeep-gc-roots-live): New undocumented option.
23128         * tree-ssa-loop-ivopts.c (add_candidate_1): If
23129         -fkeep-gc-roots-live, skip pointers.
23130         (add_iv_candidate_for_biv): Handle add_candidate_1 returning
23131         NULL.
23133 2016-01-27  Uros Bizjak  <ubizjak@gmail.com>
23135         PR target/69512
23136         * config/i386/i386.md (*zext<mode>_doubleword_and): New pattern.
23137         (*zext<mode>_doubleword): Disable for TARGET_ZERO_EXTEND_WITH_AND.
23139 2016-01-27  Thomas Klausner  <wiz@NetBSD.org>
23141         PR target/68380
23142         * configure.ac: NetBSD provides SSP in its C library.
23143         * configure: Updated.
23145 2016-01-27  Richard Biener  <rguenther@suse.de>
23147         PR tree-optimization/69166
23148         * tree-vect-loop.c (vect_is_simple_reduction): Always check
23149         reduction code for commutativity / associativity.
23151 2016-01-27  Martin Jambor  <mjambor@suse.cz>
23153         PR tree-optimization/69355
23154         * tree-sra.c (analyze_access_subtree): Correct hole detection when
23155         total_scalarization fails.
23157 2016-01-27  David Edelsohn  <dje.gcc@gmail.com>
23159         * config/rs6000/driver-rs6000.c (detect_processor_aix): Add
23160         power9.
23162 2016-01-27  Christian Bruel  <christian.bruel@st.com>
23164         PR target/69245
23165         * config/arm/arm-c.c (arm_pragma_target_parse): Add comments.
23166         Move arm_reset_previous_fndecl and set_target_option_current_node in
23167         the conditional part.  Call save_restore_target_globals.
23168         * config/arm/arm.c (arm_set_current_function):
23169         Refactor to better support #pragma target and attribute mix.
23170         Call save_restore_target_globals.
23171         * config/arm/arm-protos.h (save_restore_target_globals): New function.
23173 2016-01-27  Martin Liska  <mliska@suse.cz>
23175         * hsa.c (hsa_summary_t::link_functions): Create IPA_REF_ADDR
23176         reference for an HSA kernel and its host function.
23178 2016-01-27  Jakub Jelinek  <jakub@redhat.com>
23180         PR tree-optimization/69399
23181         * wide-int.h (wi::lrshift): For larger precisions, only
23182         use fast path if shift is known to be < HOST_BITS_PER_WIDE_INT.
23184 2016-01-27  Claudiu Zissulescu  <claziss@synopsys.com>
23186         * config/arc/predicates.md (proper_comparison_operator): Reject
23187         constant-constant comparison.
23189 2016-01-26  Tom de Vries  <tom@codesourcery.com>
23191         PR tree-optimization/69110
23192         * tree-data-ref.c (initialize_data_dependence_relation): Handle
23193         DR_NUM_DIMENSIONS == 0.
23195 2016-01-26  Abderrazek Zaafrani  <a.zaafrani@samsung.com>
23196             Sebastian Pop  <s.pop@samsung.com>
23198         * graphite-isl-ast-to-gimple.c (ternary_op_to_tree): Handle
23199         isl_ast_op_cond and isl_ast_op_select.
23200         (gcc_expression_from_isl_expr_op): Same.
23202 2016-01-26  Jason Merrill  <jason@redhat.com>
23204         PR c++/68782
23205         * tree.c (recompute_constructor_flags): Split out from
23206         build_constructor.
23207         (verify_constructor_flags): New.
23208         * tree.h: Declare them.
23210 2016-01-26  Iain Buclaw  <ibuclaw@gdcproject.org>
23212         PR rtl-optimization/69217
23213         * var-tracking.c (tracked_record_parameter_p): Don't segfault if there
23214         are no TYPE_FIELDS set for the record type.
23216 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23218         PR target/68662
23219         * config/rs6000/rs6000.c (rs6000_option_override_internal): Initialize
23220         toc_label_name unconditionally.
23221         (rs6000_emit_load_toc_table): Call ggc_strdup on toc_label_name for
23222         SYMBOL_REF string.  Use toc_label_name instead of constructing
23223         LCTOC1.
23224         (rs6000_elf_declare_function_name): Use toc_label_name instead of
23225         constructing LCTOC1.
23227 2016-01-26  Martin Sebor  <msebor@redhat.com>
23229         PR other/69477
23230         * doc/extend.texi (Common Type Attributes): Move text that talks about
23231         attribute packed from attribute aligned to the section discussing
23232         the former attribute for clarity.
23234 2016-01-26  Richard Henderson  <rth@redhat.com>
23236         PR middle-end/60908
23237         * trans-mem.c (tm_region_init): Mark entry block as visited.
23239 2016-01-26  David Malcolm  <dmalcolm@redhat.com>
23241         PR other/69006
23242         * diagnostic-show-locus.c (layout::print_source_line): Replace
23243         call to pp_newline with call to layout::print_newline.
23244         (layout::print_annotation_line): Likewise.
23245         (layout::move_to_column): Likewise.
23246         (layout::print_any_fixits): After printing any fixits, print a
23247         trailing newline, if necessary.
23248         (layout::print_newline): New method, resetting any colorization
23249         before a newline.
23250         (diagnostic_show_locus): Move the pp_newline to before the
23251         early bailout.  Remove dummy block enclosing the layout instance.
23252         * diagnostic.c (default_diagnostic_finalizer): Replace invocation
23253         of pp_newline_and_flush with pp_flush.
23254         (diagnostic_append_note): Delete use of pp_newline.
23255         (diagnostic_append_note_at_rich_loc): Delete.
23256         * diagnostic.h (diagnostic_append_note_at_rich_loc): Delete.
23257         * pretty-print.h (output_buffer_append_r): Reset buff->line_length
23258         when newline characters are added to the buffer.
23260 2016-01-26  Michael Matz  <matz@suse.de>
23262         * configure.ac (ac_cv_std_swap_in_utility): New test.
23263         * system.h (<algorithm>): Check HAVE_SWAP_IN_UTILITY as well.
23264         * configure: Regenerate.
23265         * config.in: Regenerate.
23267 2016-01-26  Claudiu Zissulescu  <claziss@synopsys.com>
23269         * config/arc/arc.md (cstoresi4): Force operand into register.
23270         (arcset<code>): Fix predicate.
23271         (arcsetltu): Likewise.
23272         (arcsetgeu): Likewise.
23273         (arcsethi): Likewise.
23274         (arcsetls): Likewise.
23276 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23278         PR tree-optimization/69483
23279         * gimple-fold.c (canonicalize_constructor_val): Return NULL
23280         if base has error_mark_node type.
23282 2016-01-26  Christophe Lyon  <christophe.lyon@linaro.org>
23284         PR target/68620
23285         * config/arm/arm.c (neon_valid_immediate): Handle FP16 vectors.
23286         * config/arm/arm_neon.h (__ARM_NUM_LANES, __arm_lane, arm_lanq):
23287         New helper macros.
23288         (vget_lane_f16): Handle big-endian.
23289         (vgetq_lane_f16): Likewise.
23290         (vset_lane_f16): Likewise.
23291         (vsetq_lane_f16): Likewise.
23292         * config/arm/iterators.md (VQXMOV): Add V8HF.
23293         (VDQ): Add V4HF and V8HF.
23294         (V_reg): Handle V4HF and V8HF.
23295         (Is_float_mode): Likewise.
23296         * config/arm/neon.md (movv4hf, movv8hf, neon_vdup_nv4hf,
23297         neon_vdup_nv8hf): New patterns.
23298         (vec_set<mode>_internal, vec_extract<mode>, neon_vld1_dup<mode>):
23299         Use VD_LANE iterator.
23300         (neon_vld1_dup<mode>): Use VQ2 iterator.
23302 2016-01-26  Nathan Sidwell  <nathan@acm.org>
23304         * omp-low.h (oacc_fn_attrib_kernels_p): Declare.
23305         (set_oacc_fn_attrib): Add IS_KERNEL arg.
23306         * omp-low.c (set_oacc_fn_attrib): Add IS_KERNEL arg.
23307         (oacc_fn_attrib_kernels_p, oacc_fn_attrib_level): New.
23308         (expand_omp_target): Pass is_kernel to set_oacc_fn_attrib.
23309         (oacc_validate_dims): Add LEVEL arg, don't return level.
23310         (new_oacc_loop_routine): Use oacc_fn_attrib_level, not
23311         oacc_validate_dims.
23312         (execute_oacc_device_lower): Adjust, add more dump output.
23313         * tree-ssa-loop.c (gate_oacc_kernels): Use
23314         oacc_fn_attrib_kernels_p.
23315         * tree-parloops.c (create_parallel_loop): Adjust
23316         set_oacc_fn_attrib call.
23318 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23320         PR lto/69254
23321         * lto-wrapper.c (merge_and_complain): Handle -fcilkplus.
23322         (append_compiler_options): Handle -fcilkplus.
23323         (append_linker_options): Ignore -fno-{openmp,openacc,cilkplus}.
23325 2016-01-26  Nick Clifton  <nickc@redhat.com>
23327         PR target/66655
23328         * config/i386/winnt.c (i386_pe_binds_local_p): If a function has
23329         been marked as DECL_ONE_ONLY but we do not the means to make it
23330         so, then do not allow it to bind locally.
23332 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23334         PR lto/69254
23335         * opts.h (parse_sanitizer_options): New prototype.
23336         * opts.c (sanitizer_opts): New array.
23337         (parse_sanitizer_options): New function.
23338         (common_handle_option): Use parse_sanitizer_options.
23340 2016-01-26  H.J. Lu  <hongjiu.lu@intel.com>
23342         PR target/68986
23343         * config/i386/i386.c (ix86_compute_frame_layout): Move stack
23344         alignment adjustment to ...
23345         (ix86_update_stack_boundary): Here.  Don't over-align stack for
23346         __tls_get_addr.
23347         (ix86_finalize_stack_realign_flags): Use stack_alignment_needed
23348         if __tls_get_addr is called.
23350 2016-01-26  Christian Bruel  <christian.bruel@st.com>
23352         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Remove.
23354 2016-01-26  Eric Botcazou  <ebotcazou@adacore.com>
23356         * config/ia64/ia64.c (ia64_expand_vecint_compare): Use gen_int_mode.
23358 2016-01-26  Richard Biener  <rguenther@suse.de>
23360         PR middle-end/69467
23361         * match.pd: Guard X * CST CMP 0 pattern with single_use.
23363 2016-01-26  Richard Biener  <rguenther@suse.de>
23365         PR tree-optimization/69452
23366         * tree-ssa-loop-im.c (move_computations_dom_walker): Remove.
23367         (move_computations_dom_walker::before_dom_children): Rename
23368         to ...
23369         (move_computations_worker): This.
23370         (move_computations): Perform an RPO rather than a DOM walk.
23372 2016-01-26  Jakub Jelinek  <jakub@redhat.com>
23374         PR target/69442
23375         * combine.c (combine_instructions): For REG_EQUAL note with
23376         SET_DEST being ZERO_EXTRACT, also temporarily set SET_DEST
23377         to the underlying register.
23378         * doc/rtl.texi (REG_EQUAL): Document the behavior of
23379         REG_EQUAL/REG_EQUIV notes if SET_DEST is ZERO_EXTRACT.
23381 2016-01-26  Roger Ferrer Ibáñez  <rofirrim@gmail.com>
23383         PR target/67896
23384         * config/aarch64/aarch64-builtins.c
23385         (aarch64_init_simd_builtin_types): Do not set structural
23386         equality to __Poly{8,16,64,128}_t types.
23388 2016-01-26  Richard Sandiford  <richard.sandiford@arm.com>
23390         PR tree-optimization/69400
23391         * wide-int.cc (wi_pack): Take the precision as argument and
23392         perform canonicalization here rather than in the callers.
23393         Use the main loop to handle all full-width HWIs.  Add a
23394         zero HWI if in_len isn't a full result.
23395         (wi::divmod_internal): Update accordingly.
23396         (wi::mul_internal): Likewise.  Simplify.
23398 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
23399             Sebastian Pop  <s.pop@samsung.com>
23401         * graphite-poly.c (apply_poly_transforms): Simplify.
23402         (print_isl_set): Use more readable format: ISL_YAML_STYLE_BLOCK.
23403         (print_isl_map): Same.
23404         (print_isl_union_map): Same.
23405         (print_isl_schedule): New.
23406         (debug_isl_schedule): New.
23407         * graphite-dependences.c (scop_get_reads): Do not call
23408         isl_union_map_add_map that is undocumented isl functionality.
23409         (scop_get_must_writes): Same.
23410         (scop_get_may_writes): Same.
23411         (scop_get_original_schedule): Remove.
23412         (scop_get_dependences): Do not call isl_union_map_compute_flow that
23413         is deprecated in isl 0.15.  Instead, use isl_union_access_* interface.
23414         (compute_deps): Remove.
23415         * graphite-isl-ast-to-gimple.c (print_schedule_ast): New.
23416         (debug_schedule_ast): New.
23417         (translate_isl_ast_to_gimple::scop_to_isl_ast): Call
23418         set_separate_option.
23419         (graphite_regenerate_ast_isl): Add dump.
23420         (translate_isl_ast_to_gimple::scop_to_isl_ast): Generate code
23421         from scop->transformed_schedule.
23422         (graphite_regenerate_ast_isl): Add more dump.
23423         * graphite-optimize-isl.c (optimize_isl): Set
23424         scop->transformed_schedule.  Check whether schedules are equal.
23425         (apply_poly_transforms): Move here.
23426         * graphite-poly.c (apply_poly_transforms): ... from here.
23427         (free_poly_bb): Static.
23428         (free_scop): Static.
23429         (pbb_number_of_iterations_at_time): Remove.
23430         (print_isl_ast): New.
23431         (debug_isl_ast): New.
23432         (debug_scop_pbb): New.
23433         * graphite-scop-detection.c (print_edge): Move.
23434         (print_sese): Move.
23435         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Remove.
23436         (build_scop_scattering): Remove.
23437         (create_pw_aff_from_tree): Assert instead of bailing out.
23438         (add_condition_to_pbb): Remove unused code, do not fail.
23439         (add_conditions_to_domain): Same.
23440         (add_conditions_to_constraints): Remove.
23441         (build_scop_context): New.
23442         (add_iter_domain_dimension): New.
23443         (build_iteration_domains): Initialize pbb->iterators.
23444         Call add_conditions_to_domain.
23445         (nested_in): New.
23446         (loop_at): New.
23447         (index_outermost_in_loop): New.
23448         (index_pbb_in_loop): New.
23449         (outermost_pbb_in): New.
23450         (add_in_sequence): New.
23451         (add_outer_projection): New.
23452         (outer_projection_mupa): New.
23453         (add_loop_schedule): New.
23454         (build_schedule_pbb): New.
23455         (build_schedule_loop): New.
23456         (embed_in_surrounding_loops): New.
23457         (build_schedule_loop_nest): New.
23458         (build_original_schedule): New.
23459         (build_poly_scop): Call build_original_schedule.
23460         * graphite.h: Declare print_isl_schedule and debug_isl_schedule.
23461         (free_poly_dr): Remove.
23462         (struct poly_bb): Add iterators.  Remove schedule, transformed, saved.
23463         (free_poly_bb): Remove.
23464         (debug_loop_vec): Remove.
23465         (print_isl_ast): Declare.
23466         (debug_isl_ast): Declare.
23467         (scop_do_interchange): Remove.
23468         (scop_do_strip_mine): Remove.
23469         (scop_do_block): Remove.
23470         (flatten_all_loops): Remove.
23471         (optimize_isl): Remove.
23472         (pbb_number_of_iterations_at_time): Remove.
23473         (debug_scop_pbb): Declare.
23474         (print_schedule_ast): Declare.
23475         (debug_schedule_ast): Declare.
23476         (struct scop): Remove schedule.  Add original_schedule,
23477         transformed_schedule.
23478         (free_gimple_poly_bb): Remove.
23479         (print_generated_program): Remove.
23480         (debug_generated_program): Remove.
23481         (unify_scattering_dimensions): Remove.
23482         * sese.c (print_edge): ... here.
23483         (print_sese): ... here.
23484         (debug_edge): ... here.
23485         (debug_sese): ... here.
23486         * sese.h (print_edge): Declare.
23487         (print_sese): Declare.
23488         (dump_edge): Declare.
23489         (dump_sese): Declare.
23491 2016-01-25  Aditya Kumar  <aditya.k7@samsung.com>
23492             Sebastian Pop  <s.pop@samsung.com>
23494         * Makefile.in: Set ISLVER in site.exp.
23496 2016-01-25  Jakub Jelinek  <jakub@redhat.com>
23498         * omp-low.c (lower_omp_target) <case USE_DEVICE_PTR>: Set
23499         DECL_VALUE_EXPR of new_var even for the non-array case.  Look
23500         through DECL_VALUE_EXPR for expansion.
23502 2016-01-25  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23504         * config/mips/mips.c (mips_compute_frame_info): Skip re-computing
23505         the frame info after reload completed.
23507 2016-01-25  Jeff Law  <law@redhat.com>
23509         PR tree-optimization/69196
23510         PR tree-optimization/68398
23511         * tree-ssa-threadupdate.h (enum bb_dom_status): Moved here from
23512         tree-ssa-threadupdate.c.
23513         (determine_bb_domination_status): Prototype
23514         * tree-ssa-threadupdate.c (enum bb_dom_status): Remove
23515         (determine_bb_domination_status): No longer static.
23516         (valid_jump_thread_path): Remove code to detect characteristics
23517         of the jump thread path not associated with correctness.
23518         * tree-ssa-threadbackward.c (fsm_find_control_statment_thread_paths):
23519         Correct test for thread path length.  Count PHIs for real operands as
23520         statements that need to be copied.  Do not count ASSERT_EXPRs.
23521         Look at all the blocks in the thread path.  Compute and selectively
23522         filter thread paths based on threading through the latch, threading
23523         a multiway branch or crossing a multiway branch.
23525 2016-01-25  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23527         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled):  Add
23528         decl with __attribute__ ((unused)) annotation.
23530 2016-01-25  Ilya Enkovich  <enkovich.gnu@gmail.com>
23532         PR target/69421
23533         * tree-vect-stmts.c (vectorizable_condition): Check vectype
23534         of operands is compatible with a statement vectype.
23536 2016-01-25  Eric Botcazou  <ebotcazou@adacore.com>
23538         * doc/extend.texi (scalar_storage_order type attribute): Fix typo and
23539         improve wording for mixed storage order support.
23541 2016-01-25  Bilyan Borisov  <bilyan.borisov@arm.com>
23543         * config/aarch64/arm_neon.h (vcvt_s64_f64): New intrinsic.
23544         (vcvt_u64_f64): Likewise.
23545         (vcvta_s64_f64): Likewise.
23546         (vcvta_u64_f64): Likewise.
23547         (vcvtm_s64_f64): Likewise.
23548         (vcvtm_u64_f64): Likewise.
23549         (vcvtn_s64_f64): Likewise.
23550         (vcvtn_u64_f64): Likewise.
23551         (vcvtp_s64_f64): Likewise.
23552         (vcvtp_u64_f64): Likewise.
23554 2016-01-25  Claudiu Zissulescu  <claziss@synopsys.com>
23556         * config/arc/arc.c (TARGET_DWARF_REGISTER_SPAN): Define.
23557         (arc_init): Check validity mll64 option.
23558         (arc_save_restore): Use double load/store instruction.
23559         (arc_expand_movmem): Likewise.
23560         (arc_split_move): Don't split if we have double load/store
23561         instructions. Returns a boolean.
23562         (arc_process_double_reg_moves): Change function to return boolean
23563         instead of a sequence of instructions.
23564         (arc_dwarf_register_span): New function.
23565         * config/arc/arc-protos.h (arc_split_move): Change prototype.
23566         * config/arc/arc.h (TARGET_CPU_CPP_BUILTINS): Define __ARC_LL64__.
23567         * config/arc/arc.md (*movdi_insn): Emit ldd/std instructions.
23568         (*movdf_insn): Likewise.
23569         * config/arc/arc.opt (mll64): New option.
23570         * config/arc/predicates.md (even_register_operand): New predicate.
23571         * doc/invoke.texi (ARC Options): Add mll64 documentation.
23573 2016-01-25  Richard Biener  <rguenther@suse.de>
23575         PR lto/69393
23576         * dwarf2out.c (is_naming_typedef_decl): Not when DECL_NAMELESS.
23577         * tree-streamer-out.c (pack_ts_base_value_fields): Stream
23578         DECL_NAMELESS.
23579         * tree-streamer-in.c (unpack_ts_base_value_fields): Likewise.
23581 2016-01-25  Richard Biener  <rguenther@suse.de>
23583         PR tree-optimization/69376
23584         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add range_info_anti_range_p
23585         flag.
23586         (VN_INFO_ANTI_RANGE_P): New inline.
23587         (VN_INFO_RANGE_TYPE): Likewise.
23588         * tree-ssa-sccvn.c (set_ssa_val_to): Also record and copy
23589         SSA_NAME_ANTI_RANGE_P.
23590         (free_scc_vn): Restore SSA_NAME_ANTI_RANGE_P.
23591         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
23592         Properly query VN_INFO_RANGE_TYPE.
23594 2016-01-25  Nick Clifton  <nickc@redhat.com>
23596         PR target/66655
23597         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Remove definition.
23599 2016-01-23  Tom de Vries  <tom@codesourcery.com>
23601         PR tree-optimization/69426
23602         * tree-parloops.c (eliminate_local_variables_stmt): Handle vdef of
23603         removed clobber.
23605 2016-01-23  Jakub Jelinek  <jakub@redhat.com>
23607         * tree-ssanames.c (release_free_names_and_compact_live_names): Replace
23608         "the the" with "the" in the comments.
23609         * ipa-devirt.c (build_type_inheritance_graph,
23610         update_type_inheritance_graph): Likewise.
23611         * tree.c (build_function_type_list_1): Likewise.
23612         * cfgloopmanip.c (scale_loop_profile): Likewise.
23613         * tree-ssa-loop-ivopts.c (get_shiftadd_cost): Likewise.
23614         * gimple-ssa-split-paths.c
23615         (find_block_to_duplicate_for_splitting_paths): Likewise.
23616         * tree-sra.c (init_subtree_with_zero, clobber_subtree): Likewise.
23617         * expr.c (convert_move): Likewise.
23618         * var-tracking.c (vt_stack_adjustments): Likewise.
23619         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment): Likewise.
23620         * tree-vrp.c (test_for_singularity): Likewise.
23622         * tree-vect-stmts.c (vectorizable_condition): Build a VEC_COND_EXPR
23623         directly instead of building a temporary tree.
23625         PR bootstrap/69434
23626         * genrecog.c: Define INCLUDE_ALGORITHM before including system.h,
23627         remove <algorithm> include.
23629 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
23631         PR target/69432
23632         * config/i386/i386.c: Include dojump.h.
23633         (expand_small_movmem_or_setmem,
23634         expand_set_or_movmem_prologue_epilogue_by_misaligned_moves): Spelling
23635         fixes.
23636         (ix86_expand_set_or_movmem): Call do_pending_stack_adjust () early
23637         if dynamic_check != -1.
23639 2016-01-21  Jeff Law  <law@redhat.com>
23641         PR middle-end/69347
23642         * tree-ssa-dom.c (back_propagate_equivalences): Factored out of
23643         record_temporary_equivalences.  Rewritten to avoid unnecessary calls
23644         into dominated_by_p.
23645         (cprop_into_successor_phis): Avoid unnecessary tests.
23647 2016-01-22  Richard Henderson  <rth@redhat.com>
23649         PR target/69416
23650         * config/aarch64/aarch64.md (UNSPEC_NZCV): New.
23651         (ccmp<mode>, fccmp<mode>, fccmpe<mode>): Use it.
23653 2016-01-22  Michael Matz  <matz@suse.de>
23655         * system.h (string, algorithm): Include only conditionally.
23656         (new): Include always under C++.
23657         * bb-reorder.c (toplevel): Define INCLUDE_ALGORITHM.
23658         * final.c (toplevel): Ditto.
23659         * ipa-chkp.c (toplevel): Define INCLUDE_STRING.
23660         * genconditions.c (write_header): Make gencondmd.c define
23661         INCLUDE_STRING.
23662         * mem-stats.h (mem_usage::print_dash_line): Don't use std::string.
23664         * config/aarch64/aarch64.c (toplevel): Define INCLUDE_STRING.
23665         * common/config/aarch64/aarch64-common.c (toplevel): Ditto.
23667 2016-01-22  Christian Bruel  <christian.bruel@st.com>
23669         PR target/68674
23670         * expr.c (expand_expr_real_1): Reset DECL_MODE if VECTOR_TYPE_P changed.
23672 2016-01-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23674         PR target/69403
23675         * config/arm/thumb2.md (*thumb2_ior_scc_strict_it): Convert to
23676         define_insn_and_split.  Ensure operands[1] and operands[0] do not
23677         get assigned the same register.
23679 2016-01-22  Kugan Vivekanandarajah  <kuganv@linaro.org>
23681         * ipa-prop.c (ipa_set_jf_constant): Remove redundant unshare_expr.
23683 2016-01-22  Christian Bruel  <christian.bruel@st.com>
23685         * config/arm/arm-c.c (arm_pragma_target_parse):
23686         Remove warn_builtin_macro_redefined overwrite.
23688 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23690         * ipa-inline.c (can_inline_edge_p): Back out overzealous check on
23691         flag_non_call_exceptions compatibility.
23693 2016-01-22  Jakub Jelinek  <jakub@redhat.com>
23695         PR debug/66668
23696         * dwarf2out.c (add_child_die_after): New function.
23697         (dwarf_qual_info_t): New type.
23698         (dwarf_qual_info): New variable.
23699         (qualified_die_p): New function.
23700         (modified_type_die): For -fdebug-types-section, ensure
23701         canonical order of qualifiers.  Put qualified DIEs adjacent
23702         to the corresponding non-qualified type DIE and search there
23703         for existing qualified DIEs.
23705 2016-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23707         * doc/extend.texi (scalar_storage_order type attribute): Document
23708         restriction on type punning and aliasing, and remove future tense.
23710 2016-01-21  Roman Zhuykov  <zhroma@ispras.ru>
23712         PR target/69252
23713         * modulo-sched.c (optimize_sc): Allow branch-scheduling to add a new
23714         first stage.
23716 2016-01-21  Jeff Law  <law@redhat.com>
23718         PR middle-end/69347
23719         * tree-ssa-dom.c (dom_opt_dom_walker::thread_across_edge): Avoid
23720         useless call to record_temporary_equivalences.
23721         * tree-ssa-threadbackward.c (find_jump_threads_backwards): Just
23722         allocate 10 slots in the bb_path vector and let it grow as needed.
23723         (fsm_find_control_statement_thread_paths): Similarly for the next_path
23724         vector.
23726 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23728         * configure.ac (gcc_cv_as_powerpc_mfcrf, gcc_cv_as_machine_directive):
23729         Detangle.
23730         * configure: Regenerate.
23732 2016-01-21  Pat Haugen  <pthaugen@us.ibm.com>
23734         * config/rs6000/aix71.h (ASM_CPU_SPEC): Add entry for Power9.
23735         * config/rs6000/driver-rs6000.c (struct asm_names): Likewise.
23737 2016-01-21  Bernd Schmidt  <bschmidt@redhat.com>
23739         PR middle-end/66178
23740         * expr.c (expand_expr_real_2) [PLUS_EXPR, MINUS_EXPR]: Don't
23741         drop EXPAND_INITIALIZER.
23742         * rtl.h (contains_symbolic_reference_p): Declare.
23743         * rtlanal.c (contains_symbolic_reference_p): New function.
23744         * simplify-rtx.c (simplify_binary_operation_1): Don't turn
23745         a subtraction into a NOT if symbolic constants are involved.
23747 2016-01-21  Anton Blanchard  <anton@samba.org>
23748             Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
23750         PR target/63354
23751         * config/rs6000/linux64.h (TARGET_KEEP_LEAF_WHEN_PROFILED): New
23752         #define.
23753         * config/rs6000/rs6000.c (rs6000_keep_leaf_when_profiled): New
23754         function.
23756 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
23758         * config/microblaze/microblaze.c
23759         (get_branch_target): New.
23760         (insert_wic_for_ilb_runout): New.
23761         (insert_wic): New.
23762         (microblaze_machine_dependent_reorg): New.
23763         (TARGET_MACHINE_DEPENDENT_REORG): Define macro.
23764         * config/microblaze/microblaze.md
23765         (UNSPEC_IPREFETCH): Define.
23766         (iprefetch): New pattern
23767         * config/microblaze/microblaze.opt
23768         (mxl-prefetch): New flag.
23770 2016-01-21  Ajit Agarwal  <ajitkum@xilinx.com>
23772         * config/microblaze/microblaze.h
23773         (FIXED_REGISTERS): Update in macro.
23774         (CALL_USED_REGISTERS): Update in macro.
23776 2016-01-21  Yuri Rumyantsev  <ysrumyan@gmail.com>
23778         PR rtl-optimization/68920
23779         * ifcvt.c (cond_move_process_if_block): Limit number of conditional
23780         moves.
23782 2016-01-21  Vladimir Makarov  <vmakarov@redhat.com>
23784         PR rtl-optimization/68990
23785         * lra-coalesce.c (lra_coalesce): Invalidate value for the result
23786         pseudo instead of inheritance ones.
23788 2016-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23789             Nick Clifton  <nickc@redhat.com>
23791         PR target/69129
23792         PR target/69012
23793         * config/mips/mips.c (mips_compute_frame_info): Initialise
23794         args_size and hard_frame_pointer_offset fields of the frame
23795         structure before calling mips_global_pointer.
23797 2016-01-21  David Edelsohn  <dje.gcc@gmail.com>
23799         * configure.ac (gcc_cv_as_dwloc): Test support for debug frame section
23800         label reference.
23801         * configure: Regenerate.
23803 2016-01-21  Richard Biener  <rguenther@suse.de>
23805         * graphite-optimize-isl.c (get_schedule_map): Fix typo.
23807 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23809         * config/s390/s390.c (s390_asm_declare_function_size): Add code
23810         to actually emit the .size directive.
23812 2016-01-21   Stefan Sørensen  <stefan.sorensen@spectralink.com>
23813              Jakub Jelinek  <jakub@redhat.com>
23815         PR target/69187
23816         PR target/65624
23817         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Increase
23818         args array size by one to avoid buffer overflow.
23820 2016-01-21  Marcin Kościelnicki  <koriakin@0x04.net>
23822         * config/s390/s390.md (pool_section_start): Use switch_to_section
23823         to select proper read-only data section instead of hardcoding
23824         .rodata.
23825         (pool_section_end): Use switch_to_section to match the above.
23827 2016-01-21  Richard Biener  <rguenther@suse.de>
23829         PR tree-optimization/69378
23830         * tree-ssa-sccvn.c (dominated_by_p_w_unex): New function.
23831         (set_ssa_val_to): Use it for dominance checks taking into
23832         account not executable edges.
23834 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23836         PR c++/69355
23837         * tree-dfa.c (get_ref_base_and_extent): Use GET_MODE_BITSIZE (mode)
23838         for bitsize instead of GET_MODE_PRECISION (mode).
23840 2016-01-20  Martin Sebor  <msebor@redhat.com>
23842         PR c/52291
23843         * extend.texi (__sync Builtins): Clarify the semantics of
23844         __sync_fetch_and_OP built-ins on pointers.
23845         (__atomic Builtins): Same.
23847 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23848             Sebastian Pop  <s.pop@samsung.com>
23850         * graphite-isl-ast-to-gimple.c (enum phi_node_kind): New.
23851         (class translate_isl_ast_to_gimple): Use phi_node_kind instead of bool.
23852         (is_valid_rename): Same.
23853         (translate_isl_ast_to_gimple::get_rename): Same.
23854         (translate_isl_ast_to_gimple::rename_all_uses): Same.
23855         (translate_isl_ast_to_gimple::rename_uses): Same.
23856         (get_new_name): Check for close_phi nodes.
23857         (copy_loop_phi_args): Use phi_node_kind.
23858         (translate_isl_ast_to_gimple::copy_loop_close_phi_args): Same.
23859         (translate_isl_ast_to_gimple::copy_cond_phi_args): Same.
23861 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23862             Sebastian Pop  <s.pop@samsung.com>
23864         Revert commit r229783.
23865         * graphite-isl-ast-to-gimple.c (gcc_expression_from_isl_ast_expr_id):
23866         Remove use of parameter_rename_map.
23867         (copy_def): Remove.
23868         (copy_internal_parameters): Remove.
23869         (graphite_regenerate_ast_isl): Remove call to copy_internal_parameters.
23870         * sese.c (new_sese_info): Do not initialize parameter_rename_map.
23871         (free_sese_info): Do not free parameter_rename_map.
23872         (set_rename): Do not use parameter_rename_map.
23873         (rename_uses): Update call to set_rename.
23874         (graphite_copy_stmts_from_block): Do not use parameter_rename_map.
23875         * sese.h (parameter_rename_map_t): Remove.
23876         (struct sese_info_t): Remove field parameter_rename_map.
23878 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23879             Sebastian Pop  <s.pop@samsung.com>
23881         * graphite-isl-ast-to-gimple.c: Fix comment.
23882         * graphite-scop-detection.c (defined_in_loop_p): New.
23883         (canonicalize_loop_closed_ssa): Do not add close phi nodes for SSA
23884         names defined in loop.
23886 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23887             Sebastian Pop  <s.pop@samsung.com>
23889         * graphite-scop-detection.c (scop_detection::harmful_loop_in_region):
23890         Discard unstructured if-then-else regions.
23892 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23893             Sebastian Pop  <s.pop@samsung.com>
23895         * graphite-sese-to-poly.c (set_scop_parameter_dim): Remove.
23896         (cleanup_loop_iter_dom): Remove.
23897         (build_loop_iteration_domains): Remove.
23898         (build_scop_context): Remove.
23899         (build_scop_iteration_domain): Remove.
23900         (add_loop_constraints): New.
23901         (build_iteration_domains): New.
23902         (build_poly_scop): Call build_iteration_domains.
23904 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23905             Sebastian Pop  <s.pop@samsung.com>
23907         * graphite-scop-detection.c
23908         (scop_detection::harmful_loop_in_region): Free dom and loops.
23909         (scop_detection::loop_body_is_valid_scop): Free bbs.
23911 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23912             Sebastian Pop  <s.pop@samsung.com>
23914         * graphite-scop-detection.c (record_loop_in_sese): New.
23915         (gather_bbs::before_dom_children): Call record_loop_in_sese.
23916         (build_scops): Remove call to build_sese_loop_nests.
23917         * sese.c (sese_record_loop): Remove.
23918         (build_sese_loop_nests): Remove.
23919         (new_sese_info): Remove region->loops.
23920         (free_sese_info): Same.
23921         * sese.h (sese_contains_loop): Same.
23922         (build_sese_loop_nests): Remove.
23923         (sese_contains_loop): Remove.
23925 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23926             Sebastian Pop  <s.pop@samsung.com>
23928         * graphite-scop-detection.c (loop_is_valid_scop): Renamed
23929         loop_is_valid_in_scop.
23930         (scop_detection::harmful_stmt_in_region): Renamed
23931         harmful_loop_in_region.
23932         Call loop_is_valid_in_scop.
23934 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23935             Sebastian Pop  <s.pop@samsung.com>
23937         * graphite-isl-ast-to-gimple.c (translate_isl_ast): Also handle
23938         isl_ast_node_mark.
23940 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23941             Sebastian Pop  <s.pop@samsung.com>
23943         * graphite-poly.c (new_poly_bb): Remove use of PBB_IS_REDUCTION.
23944         * graphite.h (struct poly_bb): Remove field is_reduction.
23945         (PBB_IS_REDUCTION): Remove.
23947 2016-01-21  Aditya Kumar  <aditya.k7@samsung.com>
23948             Sebastian Pop  <s.pop@samsung.com>
23950         * graphite-dependences.c (constrain_domain): Add call to isl_*_coalesce.
23951         (add_pdr_constraints): Same.
23952         (scop_get_reads): Same.
23953         (scop_get_must_writes): Same.
23954         (scop_get_may_writes): Same.
23955         (scop_get_original_schedule): Same.
23956         (extend_schedule): Same.
23957         (apply_schedule_on_deps): Same.
23958         (carries_deps): Same.
23959         (compute_deps): Same.
23960         (scop_get_dependences): Same.
23961         * graphite-isl-ast-to-gimple.c
23962         (translate_isl_ast_to_gimple::generate_isl_schedule): Same.
23963         * graphite-optimize-isl.c (get_schedule_for_band): Same.
23964         (get_schedule_for_band_list): Same.
23965         (get_schedule_map): Same.
23966         (apply_schedule_map_to_scop): Same.
23967         * graphite-sese-to-poly.c (build_pbb_scattering_polyhedrons): Same.
23968         (build_loop_iteration_domains): Same.
23969         (add_condition_to_pbb): Same.
23970         (add_param_constraints): Same.
23971         (pdr_add_memory_accesses): Same.
23972         (pdr_add_data_dimensions): Same.
23974 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23976         * doc/invoke.texi (Instrumentation Options): Clarify -mmpx linking
23977         requirements.
23979 2016-01-20  Sandra Loosemore  <sandra@codesourcery.com>
23981         * common.opt (feliminate-dwarf2-dups): Replace references to
23982         "DWARF 2" with just "DWARF".
23983         * config/ia64/ia64.opt (mdwarf2-asm): Likewise.
23984         * doc/extend.texi: Likewise.
23985         * doc/cpp.texi: Likewise.
23986         * doc/invoke.texi: Likewise.
23987         (Option Summary): Add -gdwarf to list of Debugging Options.
23988         (Debugging Options): Document -gdwarf.
23989         * doc/contrib.texi: Spell "DWARF" like that.
23991 2016-01-21  Jakub Jelinek  <jakub@redhat.com>
23993         * omp-low.c (expand_omp_target): Avoid -Wmaybe-uninitialized
23994         warning.  Fix up formatting.
23996         PR middle-end/67653
23997         * gimplify.c (gimplify_asm_expr): Warn if it is too late to
23998         attempt to mark memory input operand addressable and
23999         call prepare_gimple_addressable in that case.  Don't adjust
24000         input_location for diagnostics, use error_at instead.
24002 2016-01-20  Peter Bergner  <bergner@vnet.ibm.com>
24004         * config/rs6000/ppc-auxv.h: New file.
24005         * config/rs6000/rs6000-builtin.def (cpu_init): Add new builtin.
24006         (cpu_is): Likewise.
24007         (cpu_supports): Likewise.
24008         * config/rs6000/rs6000.c: include "ppc-auxv.h".
24009         (cpu_is_info): New variable.
24010         (cpu_supports_info): Likewise.
24011         (tcb_verification_symbol): Likewise.
24012         (cpu_builtin_p): Likewise.
24013         (cpu_expand_builtin): New function.
24014         (rs6000_expand_ternop_builtin): Add support for CPU builtin functions.
24015         (rs6000_init_builtins): Likewise.
24016         (rs6000_elf_file_end): Emit HWCAP in TCB verification symbol.
24017         * config/rs6000/rs6000.h (TLS_REGNUM): New define.
24018         * configure.ac (gcc_cv_libc_provides_hwcap_in_tcb): New test.
24019         * configure: Regenerate.
24020         * config.in: Likewise.
24021         * doc/extend.texi (PowerPC Built-in Functions): Document
24022         __builtin_cpu_init, __builtin_cpu_is and __builtin_cpu_supports.
24024 2016-01-20  David Edelsohn  <dje.gcc@gmail.com>
24026         PR target/68609
24027         * config/rs6000/rs6000.c (rs6000_emit_swsqrt): Add vector sqrt
24028         domain check.
24029         * config/rs6000/vector.md (sqrt<mode>2): Call rs6000_emit_swsqrt
24030         for V4SFmode.
24032 2016-01-20  Richard Henderson  <rth@redhat.com>
24034         PR bootstrap/69343
24035         PR bootstrap/69339
24036         PR tree-opt/68964
24037         Revert:
24038         * tree.c (tm_define_builtin): New.
24039         (find_tm_vector_type): New.
24040         (build_tm_vector_builtins): New.
24041         (build_common_builtin_nodes): Call it.
24043 2016-01-20  Christophe Lyon  <christophe.lyon@linaro.org>
24045         * doc/sourcebuild.texi (arm_crypto_pragma_ok): Document new entry.
24046         (arm_fp_ok): Likewise.
24047         (arm_fp): Likewise.
24048         (arm_crypto): Likewise.
24050 2016-01-20  Ilya Enkovich  <enkovich.gnu@gmail.com>
24051             Richard Biener  <rguenther@suse.de>
24053         PR tree-optimization/69328
24054         * tree-vect-stmts.c (vect_is_simple_cond): Check compared
24055         vectors have same number of elements.
24056         (vectorizable_condition): Fix masked version recognition.
24058 2016-01-20  Richard Biener  <rguenther@suse.de>
24060         PR tree-optimization/69345
24061         * tree-ssa-sccvn.h (VN_INFO_RANGE_INFO): New inline function.
24062         (VN_INFO_PTR_INFO): Likewise.
24063         * tree-ssa-sccvn.c (set_ssa_val_to): Avoid clearing points-to
24064         info when it is equal between non-dominating SSA names.
24065         * tree-ssa-pre.c (eliminate_dom_walker::before_dom_children):
24066         Make sure to look at original SSA infos.
24068 2016-01-20  Jeff Law  <law@redhat.com>
24070         PR target/25114
24071         * config/m68k/predicates.md (pow2_m1_operand): New predicate
24072         extracted from ...
24073         (reg_or_pow2_m1_operand): Call pow2_m1_operand.
24074         (pc_or_label_operand): New predicate.
24075         * config/m68k/m68k.md: Add new peephole2 patterns for GTU/LEU
24076         tests for small integers that are 2^n - 1.
24078 2016-01-20  Jonathan Wakely  <jwakely@redhat.com>
24080         * doc/invoke.texi (Options Summary): Add '.' after @xref.
24082 2016-01-19  Jeff Law  <law@redhat.com>
24084         PR middle-end/69347
24085         * tree-ssa-threadbackwards.c
24086         (fsm_find_control_statement_thread_paths): Do not try to lookup
24087         FSM paths for SSA_NAMEs appearing in abnormal PHIs.
24089 2016-01-20  Kugan Vivekanandarajah  <kuganv@linaro.org>
24091         * doc/lto.texi: Remove text that says only Gold has linker plugin
24092         support.
24094 2016-01-19  Eric Botcazou  <ebotcazou@adacore.com>
24096         * dwarf2out.c (need_endianity_attribute_p): New inline predicate.
24097         (base_type_die): Add REVERSE parameter and attach DW_AT_endianity to
24098         the DIE accordingly.
24099         (modified_type_die): Add REVERSE parameter and pass it recursively,
24100         as well as to base_type_die.  Adjust presence check accordingly.
24101         (base_type_for_mode): Adjust call to modified_type_die.
24102         (add_type_attribute): Add REVERSE parameter and pass it to
24103         modified_type_die.
24104         (generic_parameter_die): Adjust call to add_type_attribute.
24105         (add_scalar_info): Likewise.
24106         (add_subscript_info): Likewise.
24107         (gen_array_type_die): Likewise.
24108         (gen_descr_array_type_die): Likewise.
24109         (gen_entry_point_die): Likewise.
24110         (gen_enumeration_type_die): Likewise.
24111         (gen_formal_parameter_die): Likewise.
24112         (gen_subprogram_die): Likewise.
24113         (gen_variable_die ): Likewise.
24114         (gen_const_die): Likewise.
24115         (gen_field_die): Likewise.
24116         (gen_pointer_type_die): Likewise.
24117         (gen_reference_type_die): Likewise.
24118         (gen_ptr_to_mbr_type_die): Likewise.
24119         (gen_inheritance_die): Likewise.
24120         (gen_subroutine_type_die): Likewise.
24121         (gen_typedef_die): Likewise.
24122         (force_type_die): Adjust call to modified_type_die.
24124 2016-01-19  Sandra Loosemore  <sandra@codesourcery.com>
24126         * doc/standards.texi: Copy-editing for grammar, markup, and sentence
24127         flow throughout the file.  Fix broken link to Objective-C 2.0
24128         documentation.
24129         * doc/invoke.texi: More copy-editing; fix numerous typos and spelling
24130         errors.
24132 2016-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24134         * ccmp.c (expand_ccmp_expr_1): Avoid spurious unused warnings.
24136 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24138         PR ipa/66223
24139         * ipa-devirt.c (is_cxa_pure_virtual_p): New function.
24140         (maybe_record_node): Record cxa_pure_virtual as the only possible
24141         target if there are not ohter candidates.
24142         (possible_polymorphic_call_target_p): Accept cxa_pure_virtual.
24144 2016-01-19  Richard Biener  <rguenther@suse.de>
24146         * hsa-gen.c (get_memory_order_name): Use MEMMODEL_ constants.
24147         (get_memory_order): Likewise.
24149 2016-01-19  Kirill Yukhin  <kirill.yukhin@intel.com>
24151         * tree-vect-stmts.c (vectorizable_store): Check
24152         rhs vectype.
24154 2016-01-19  David Malcolm  <dmalcolm@redhat.com>
24156         PR jit/68446
24157         * gcc.c (driver::decode_argv): Add call to
24158         init_opts_obstack before init_options_struct.
24159         * opts.c (init_opts_obstack): Remove idempotency.
24160         (init_options_struct): Replace call to init_opts_obstack
24161         with a gcc_assert to verify that it has already been called.
24162         * toplev.c (toplev::main): Add call to init_opts_obstack before
24163         calls to init_options_struct.
24164         (toplev::finalize): Move cleanup of opts_obstack next to
24165         cleanup of save_decoded_options, clearing the latter, and
24166         save_decoded_options_count.
24168 2016-01-19  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24170         PR target/69135
24171         * config/arm/vfp.md (l<vrint_pattern><su_optab><mode>si2): Set "conds"
24172         attribute to unconditional.  Remove %? from output template.
24174 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24175             Jiong Wang  <jiong.wang@arm.com>
24177         * ccmp.c (expand_ccmp_expr_1): Cost the instruction sequences
24178         generated from different expand order.
24180 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24182         * /config/aarch64/aarch64.c (aarch64_if_then_else_costs):
24183         Add support for CCMP costing.
24185 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24187         * ccmp.c (ccmp_candidate_p): Remove integer-only restriction.
24188         * config/aarch64/aarch64.md (fccmp<mode>): New pattern.
24189         (fccmpe<mode>): Likewise.
24190         (fcmp): Rename to fcmp and globalize pattern.
24191         (fcmpe): Likewise.
24192         * config/aarch64/aarch64.c (aarch64_gen_ccmp_first): Add FP support.
24193         (aarch64_gen_ccmp_next): Add FP support.
24195 2015-01-19  Wilco Dijkstra  <wdijkstr@arm.com>
24197         * target.def (gen_ccmp_first): Update documentation.
24198         (gen_ccmp_next): Likewise.
24199         * doc/tm.texi (gen_ccmp_first): Update documentation.
24200         (gen_ccmp_next): Likewise.
24201         * ccmp.c (expand_ccmp_expr): Extract cmp_code from return value of
24202         expand_ccmp_expr_1.  Improve comments.
24203         * config/aarch64/aarch64.md (ccmp_and): Use if_then_else for ccmp.
24204         (ccmp_ior<mode>): Remove pattern.
24205         (cmp<mode>): Remove expand.
24206         (cmp): Globalize pattern.
24207         (cstorecc4): Use cc_register.
24208         (mov<mode>cc): Remove ccmp_cc_register check.
24209         * config/aarch64/aarch64.c (aarch64_get_condition_code_1):
24210         Simplify after removal of CC_DNE/* modes.
24211         (aarch64_ccmp_mode_to_code): Remove.
24212         (aarch64_print_operand): Remove 'K' case.  Merge 'm' and 'M' cases.
24213         In 'k' case use integer as condition.
24214         (aarch64_nzcv_codes): Remove inverted cases.
24215         (aarch64_code_to_ccmode): Remove.
24216         (aarch64_gen_ccmp_first): Use cmp pattern directly.  Return the correct
24217         comparison with CC register to be used in folowing CCMP/branch/CSEL.
24218         (aarch64_gen_ccmp_next): Use previous comparison and mode in CCMP
24219         pattern.  Return the comparison with CC register.  Invert conditions
24220         when bitcode is OR.
24221         * config/aarch64/aarch64-modes.def: Remove CC_DNE/* modes.
24222         * config/aarch64/predicates.md (ccmp_cc_register): Remove.
24224 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24226         * cgraphunit.c (cgraph_node::reset): Clear thunk info and
24227         instrumented_version.
24229 2016-01-19  Richard Biener  <rguenther@suse.de>
24231         PR tree-optimization/69336
24232         * tree-ssa-scopedtables.c (avail_expr_hash): Handle all
24233         handled components with get_ref_base_and_extent.
24234         (equal_mem_array_ref_p): Adjust.
24236 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24238         PR debug/65779
24239         * shrink-wrap.c: Include valtrack.h.
24240         (move_insn_for_shrink_wrap): Add DEBUG argument.  If
24241         MAY_HAVE_DEBUG_INSNS, call dead_debug_add on DEBUG_INSNs
24242         in between insn and where it will be moved to.  Call
24243         dead_debug_insert_temp.
24244         (prepare_shrink_wrap): Adjust caller.  Call dead_debug_local_init
24245         first and dead_debug_local_finish at the end.
24246         For uses and defs bitmap, handle all regs in between REGNO and
24247         END_REGNO, not just the first one.
24249 2016-01-19  Richard Biener  <rguenther@suse.de>
24251         PR tree-optimization/69352
24252         * tree-ssa-scopedtables.c (avail_expr_hash): Check for size == -1.
24253         (equal_mem_array_ref_p): Constrain size and max size properly.
24254         Compare the reverse flag.
24256 2016-01-19  Bernd Schmidt  <bschmidt@redhat.com>
24258         * ira.c (ira): Update regstat data if we deleted insns.
24260 2016-01-19  Jakub Jelinek  <jakub@redhat.com>
24262         PR rtl-optimization/68955
24263         PR rtl-optimization/64557
24264         * dse.c (record_store, check_mem_read_rtx): Don't call get_addr
24265         here.  Fix up formatting.
24266         * alias.c (get_addr): Handle VALUE +/- CONST_SCALAR_INT_P.
24268 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24270         PR lto/69133
24271         * cgraphunit.c (cgraph_node::expand_thunk): When forcing gimple
24272         assume that the node has body.
24273         * cgraph.c (cgraph_node::get_untransformed_body): Use gimple_body_p
24274         check.
24276 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24278         * lto-streamer-out.c (lto_output): Do not stream instrumentation
24279         thunks.
24281 2016-01-19  Jan Hubicka  <hubicka@ucw.cz>
24283         * symtab.c (symtab_node::asm_name): Do not call printable name directly.
24284         (symtab_node::name): Report name as unnamed if DECL_NAME is not set.
24286 2016-01-19  Martin Jambor  <mjambor@suse.cz>
24287             Martin Liska  <mliska@suse.cz>
24288             Michael Matz  <matz@suse.de>
24290         * Makefile.in (OBJS): Add new source files.
24291         (GTFILES): Add hsa.c.
24292         * common.opt (disable_hsa): New variable.
24293         (-Whsa): New warning.
24294         * config.in (ENABLE_HSA): New.
24295         * configure.ac: Treat hsa differently from other accelerators.
24296         (OFFLOAD_TARGETS): Define ENABLE_OFFLOADING according to
24297         $enable_offloading.
24298         (ENABLE_HSA): Define ENABLE_HSA according to $enable_hsa.
24299         * doc/install.texi (Configuration): Document --with-hsa-runtime,
24300         --with-hsa-runtime-include, --with-hsa-runtime-lib and
24301         --with-hsa-kmt-lib.
24302         * doc/invoke.texi (-Whsa): Document.
24303         (hsa-gen-debug-stores): Likewise.
24304         * lto-wrapper.c (compile_images_for_offload_targets): Do not attempt
24305         to invoke offload compiler for hsa acclerator.
24306         * opts.c (common_handle_option): Determine whether HSA offloading
24307         should be performed.
24308         * params.def (PARAM_HSA_GEN_DEBUG_STORES): New parameter.
24309         * builtin-types.def (BT_FN_VOID_UINT_PTR_INT_PTR): New.
24310         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_INT_INT): Removed.
24311         (BT_FN_VOID_INT_OMPFN_SIZE_PTR_PTR_PTR_UINT_PTR_PTR): New.
24312         * gimple-low.c (lower_stmt): Also handle GIMPLE_OMP_GRID_BODY.
24313         * gimple-pretty-print.c (dump_gimple_omp_for): Also handle
24314         GF_OMP_FOR_KIND_GRID_LOOP.
24315         (dump_gimple_omp_block): Also handle GIMPLE_OMP_GRID_BODY.
24316         (pp_gimple_stmt_1): Likewise.
24317         * gimple-walk.c (walk_gimple_stmt): Likewise.
24318         * gimple.c (gimple_build_omp_grid_body): New function.
24319         (gimple_copy): Also handle GIMPLE_OMP_GRID_BODY.
24320         * gimple.def (GIMPLE_OMP_GRID_BODY): New.
24321         * gimple.h (enum gf_mask): Added GF_OMP_PARALLEL_GRID_PHONY,
24322         GF_OMP_FOR_KIND_GRID_LOOP, GF_OMP_FOR_GRID_PHONY and
24323         GF_OMP_TEAMS_GRID_PHONY.
24324         (gimple_statement_omp_single_layout): Updated comments.
24325         (gimple_build_omp_grid_body): New function.
24326         (gimple_has_substatements): Also handle GIMPLE_OMP_GRID_BODY.
24327         (gimple_omp_for_grid_phony): New function.
24328         (gimple_omp_for_set_grid_phony): Likewise.
24329         (gimple_omp_parallel_grid_phony): Likewise.
24330         (gimple_omp_parallel_set_grid_phony): Likewise.
24331         (gimple_omp_teams_grid_phony): Likewise.
24332         (gimple_omp_teams_set_grid_phony): Likewise.
24333         (gimple_return_set_retbnd): Also handle GIMPLE_OMP_GRID_BODY.
24334         * omp-builtins.def (BUILT_IN_GOMP_OFFLOAD_REGISTER): New.
24335         (BUILT_IN_GOMP_OFFLOAD_UNREGISTER): Likewise.
24336         (BUILT_IN_GOMP_TARGET): Updated type.
24337         * omp-low.c: Include symbol-summary.h, hsa.h and params.h.
24338         (adjust_for_condition): New function.
24339         (get_omp_for_step_from_incr): Likewise.
24340         (extract_omp_for_data): Moved parts to adjust_for_condition and
24341         get_omp_for_step_from_incr.
24342         (build_outer_var_ref): Handle GIMPLE_OMP_GRID_BODY.
24343         (fixup_child_record_type): Bail out if receiver_decl is NULL.
24344         (scan_sharing_clauses): Handle OMP_CLAUSE__GRIDDIM_.
24345         (scan_omp_parallel): Do not create child functions for phony
24346         constructs.
24347         (check_omp_nesting_restrictions): Handle GIMPLE_OMP_GRID_BODY.
24348         (scan_omp_1_op): Checking assert we are not remapping to
24349         ERROR_MARK.  Also also handle GIMPLE_OMP_GRID_BODY.
24350         (parallel_needs_hsa_kernel_p): New function.
24351         (expand_parallel_call): Register apprpriate parallel child
24352         functions as HSA kernels.
24353         (grid_launch_attributes_trees): New type.
24354         (grid_attr_trees): New variable.
24355         (grid_create_kernel_launch_attr_types): New function.
24356         (grid_insert_store_range_dim): Likewise.
24357         (grid_get_kernel_launch_attributes): Likewise.
24358         (get_target_argument_identifier_1): Likewise.
24359         (get_target_argument_identifier): Likewise.
24360         (get_target_argument_value): Likewise.
24361         (push_target_argument_according_to_value): Likewise.
24362         (get_target_arguments): Likewise.
24363         (expand_omp_target): Call get_target_arguments instead of looking
24364         up for teams and thread limit.
24365         (grid_expand_omp_for_loop): New function.
24366         (grid_arg_decl_map): New type.
24367         (grid_remap_kernel_arg_accesses): New function.
24368         (grid_expand_target_kernel_body): New function.
24369         (expand_omp): Call it.
24370         (lower_omp_for): Do not emit phony constructs.
24371         (lower_omp_taskreg): Do not emit phony constructs but create for them
24372         a temporary variable receiver_decl.
24373         (lower_omp_taskreg): Do not emit phony constructs.
24374         (lower_omp_teams): Likewise.
24375         (lower_omp_grid_body): New function.
24376         (lower_omp_1): Call it.
24377         (grid_reg_assignment_to_local_var_p): New function.
24378         (grid_seq_only_contains_local_assignments): Likewise.
24379         (grid_find_single_omp_among_assignments_1): Likewise.
24380         (grid_find_single_omp_among_assignments): Likewise.
24381         (grid_find_ungridifiable_statement): Likewise.
24382         (grid_target_follows_gridifiable_pattern): Likewise.
24383         (grid_remap_prebody_decls): Likewise.
24384         (grid_copy_leading_local_assignments): Likewise.
24385         (grid_process_kernel_body_copy): Likewise.
24386         (grid_attempt_target_gridification): Likewise.
24387         (grid_gridify_all_targets_stmt): Likewise.
24388         (grid_gridify_all_targets): Likewise.
24389         (execute_lower_omp): Call grid_gridify_all_targets.
24390         (make_gimple_omp_edges): Handle GIMPLE_OMP_GRID_BODY.
24391         * tree-core.h (omp_clause_code): Added OMP_CLAUSE__GRIDDIM_.
24392         (tree_omp_clause): Added union field dimension.
24393         * tree-pretty-print.c (dump_omp_clause): Handle OMP_CLAUSE__GRIDDIM_.
24394         * tree.c (omp_clause_num_ops): Added number of arguments of
24395         OMP_CLAUSE__GRIDDIM_.
24396         (omp_clause_code_name): Added name of OMP_CLAUSE__GRIDDIM_.
24397         (walk_tree_1): Handle OMP_CLAUSE__GRIDDIM_.
24398         * tree.h (OMP_CLAUSE_GRIDDIM_DIMENSION): New.
24399         (OMP_CLAUSE_SET_GRIDDIM_DIMENSION): Likewise.
24400         (OMP_CLAUSE_GRIDDIM_SIZE): Likewise.
24401         (OMP_CLAUSE_GRIDDIM_GROUP): Likewise.
24402         * passes.def: Schedule pass_ipa_hsa and pass_gen_hsail.
24403         * tree-pass.h (make_pass_gen_hsail): Declare.
24404         (make_pass_ipa_hsa): Likewise.
24405         * ipa-hsa.c: New file.
24406         * lto-section-in.c (lto_section_name): Add hsa section name.
24407         * lto-streamer.h (lto_section_type): Add hsa section.
24408         * timevar.def (TV_IPA_HSA): New.
24409         * hsa-brig-format.h: New file.
24410         * hsa-brig.c: New file.
24411         * hsa-dump.c: Likewise.
24412         * hsa-gen.c: Likewise.
24413         * hsa.c: Likewise.
24414         * hsa.h: Likewise.
24415         * toplev.c (compile_file): Call hsa_output_brig.
24416         * hsa-regalloc.c: New file.
24418 2016-01-18  Jeff Law  <law@redhat.com>
24420         PR tree-optimization/69320
24421         * tree-ssa-dom.c (record_edge_info): For comparisons against a boolean
24422         ranged object, do nothing if the RHS constant is not [0..1].
24423         (optimize_stmt): Comparing a boolean ranged object against a
24424         constant outside [0..1] results in a compile-time constant.
24426         * tree-ssanames.c (ssa_name_has_boolean_range): Remove unnecessary
24427         test.
24429 2016-01-18  Sandra Loosemore  <sandra@codesourcery.com>
24431         * doc/invoke.texi (Invoking GCC): Add new section to menu.
24432         (Option Summary): Update to reflect new section and moved options.
24433         (C++ Dialect Options): Move -fstats to new section.
24434         (Debugging Options): Move all dump, statistics, and other GCC
24435         developer options to new section.  Rewrite section introduction
24436         and re-order remaining options to put the more basic ones first.
24437         (Optimization Options): Move -fira-verbose and -flto-report* to
24438         new section.
24439         (Developer Options): New section incorporating moved options.
24440         * doc/cppopts.texi (-dM): Update cross-reference.
24442 2016-01-18  Richard Henderson  <rth@redhat.com>
24444         PR target/69176
24445         * config/aarch64/aarch64.md (add<GPI>3): Move long immediate
24446         operands to pseudo only if CSE is expected.  Split long immediate
24447         operands only after reload, and for the stack pointer.
24448         (*add<GPI>3_pluslong): Remove.
24449         (*addsi3_aarch64, *adddi3_aarch64): Merge into...
24450         (*add<GPI>3_aarch64): ... here.  Add r/rk/Upl alternative.
24451         (*addsi3_aarch64_uxtw): Add r/rk/Upl alternative.
24452         (*add<GPI>3 peepholes): New.
24453         (*add<GPI>3 splitters): New.
24454         * config/aarch64/constraints.md (Upl): New.
24455         * config/aarch64/predicates.md (aarch64_pluslong_strict_immedate): New.
24457 2016-01-18  Richard Biener  <rguenther@suse.de>
24459         PR tree-optimization/69297
24460         * tree-vect-slp.c (vect_bb_slp_scalar_cost): Count each scalar
24461         stmt at most once.
24462         (vect_bb_vectorization_profitable_p): Clear visited flag again.
24464 2016-01-18  Yuri Rumyantsev  <ysrumyan@gmail.com>
24466         PR middle-end/68542
24467         * fold-const.c (fold_binary_op_with_conditional_arg): Bail out for case
24468         of mixind vector and scalar types.
24469         (fold_relational_const): Add handling of vector
24470         comparison with boolean result.
24471         * tree-cfg.c (verify_gimple_comparison): Add argument CODE, allow
24472         comparison of vector operands with boolean result for EQ/NE only.
24473         (verify_gimple_assign_binary): Adjust call for verify_gimple_comparison.
24474         (verify_gimple_cond): Likewise.
24475         * tree-vrp.c (extract_code_and_val_from_cond_with_ops): Modify check on
24476         valid type of VAL.
24478 2016-01-18  Joseph Myers  <joseph@codesourcery.com>
24480         * config/mips/mips.h (ISA_HAS_PAIRED_SINGLE): Require
24481         !TARGET_OCTEON.
24483 2016-01-18  Richard Biener  <rguenther@suse.de>
24485         PR middle-end/69308
24486         * gimple.c (gimple_could_trap_p_1): Handle GIMPLE_COND.
24488 2016-01-18  Tom de Vries  <tom@codesourcery.com>
24490         * passes.def: Add pass_parallelize_loops to pass_oacc_kernels.
24492 2016-01-18  Tom de Vries  <tom@codesourcery.com>
24494         * omp-low.c (set_oacc_fn_attrib): Make extern.
24495         * omp-low.h (set_oacc_fn_attrib): Declare.
24496         * tree-parloops.c (struct reduction_info): Add reduc_addr field.
24497         (create_call_for_reduction_1): Handle case that reduc_addr is non-NULL.
24498         (create_parallel_loop, gen_parallel_loop, try_create_reduction_list):
24499         Add and handle function parameter oacc_kernels_p.
24500         (find_reduc_addr, get_omp_data_i_param): New function.
24501         (ref_conflicts_with_region, oacc_entry_exit_ok_1)
24502         (oacc_entry_exit_single_gang, oacc_entry_exit_ok): New function.
24503         (parallelize_loops): Add and handle function parameter oacc_kernels_p.
24504         Calculate dominance info.  Skip loops that are not in a kernels region
24505         in oacc_kernels_p mode.  Skip inner loops of parallelized loops.
24506         (pass_parallelize_loops::execute): Call parallelize_loops with
24507         oacc_kernels_p argument.
24508         (pass_parallelize_loops::clone, pass_parallelize_loops::set_pass_param):
24509         New member function.
24510         (pass_parallelize_loops::bool oacc_kernels_p): New member var.
24511         * passes.def: Add argument to pass_parallelize_loops instantation.
24513 2016-01-18  Tom de Vries  <tom@codesourcery.com>
24515         * tree-parloops.c (pass_parallelize_loops::execute): Allow
24516         pass_parallelize_loops to be run outside the loop pipeline.
24518 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
24520         * tree-scalar-evolution.c (follow_copies_to_constant): New.
24521         (analyze_initial_condition, analyze_scalar_evolution_1): Call previous.
24523 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
24525         PR target/63679
24526         * tree-ssa-scopedtables.c (avail_expr_hash): Hash MEM_REF and ARRAY_REF
24527         using get_ref_base_and_extent.
24528         (equal_mem_array_ref_p): New.
24529         (hashable_expr_equal_p): Add call to previous.
24531 2016-01-18  Alan Lawrence  <alan.lawrence@arm.com>
24533         PR target/63679
24534         * tree-sra.c (disqualified_constants, constant_decl_p): New.
24535         (sra_initialize): Allocate disqualified_constants.
24536         (sra_deinitialize): Free disqualified_constants.
24537         (disqualify_candidate): Update disqualified_constants when appropriate.
24538         (create_access): Scan for constant-pool entries as we go along.
24539         (scalarizable_type_p): Add check against type_contains_placeholder_p.
24540         (maybe_add_sra_candidate): Allow constant-pool entries.
24541         (load_assign_lhs_subreplacements): Bind debug for constant pool vars.
24542         (initialize_constant_pool_replacements): New.
24543         (sra_modify_assign): Avoid mangling assignments created by previous,
24544         and don't generate writes into constant pool.
24545         (sra_modify_function_body): Call initialize_constant_pool_replacements.
24547 2016-01-18  Ilya Enkovich  <enkovich.gnu@gmail.com>
24549         * config/i386/i386.c (scalar_to_vector_candidate_p): Support
24550         andnot instruction.
24551         (scalar_chain::convert_op): Likewise.
24552         * config/i386/i386.md (*andndi3_doubleword): New.
24554 2016-01-18  Richard Biener  <rguenther@suse.de>
24556         PR tree-optimization/69170
24557         * tree-vect-slp.c (vect_build_slp_tree): Verify we are not
24558         building a vector from scalar results of a pattern stmt.
24560 2016-01-18  Jakub Jelinek  <jakub@redhat.com>
24562         * haifa-sched.c (autopref_multipass_init): Work around
24563         -Wmaybe-uninitialized warning.
24565 2016-01-18  Thomas Preud'homme  <thomas.preudhomme@arm.com>
24567         * config/arm/arm.c (thumb1_reorg): Check that the comparison is
24568         against the constant 0.
24570 2016-01-17  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
24572         PR tree-optimization/68799
24573         * gimple-ssa-strength-reduction.c (create_phi_basis): Directly
24574         look up phi candidates in the statement-candidate map.
24575         (phi_add_costs): Likewise.
24576         (record_phi_increments): Likewise.
24577         (phi_incr_cost): Likewise.
24578         (ncd_with_phi): Likewise.
24579         (all_phi_incrs_profitable): Likewise.
24581 2016-01-17  Jakub Jelinek  <jakub@redhat.com>
24583         * omp-low.c (mark_loops_in_oacc_kernels_region): Work around
24584         -Wmaybe-uninitialized warning.
24586 2016-01-16  Sandra Loosemore  <sandra@codesourcery.com>
24588         * doc/invoke.texi (Invoking GCC): Add new section to menu.
24589         (Option Summary): Update to reflect new section and moved options.
24590         (C++ Dialect Options): Move -fvtable-verify and related options.
24591         (Debugging Options): Move Sanitizer, Pointer Bounds Checker,
24592         and profiling-related options.
24593         (Optimization Options): Move profile generation options and
24594         -fstack-protector and related options.
24595         (Instrumentation Options): New section incorporating moved options.
24596         (Code Generation Options): Move -finstrument-functions and
24597         related options, -fstack-check, -fstack-limit*, and -fbounds-check.
24599 2016-01-16  Tom de Vries  <tom@codesourcery.com>
24601         * passes.def: Move pass_expand_omp_ssa out of pass_parallelize_loops.
24603 2016-01-16  Tom de Vries  <tom@codesourcery.com>
24605         * omp-low.c (expand_omp_atomic_fetch_op):  Release defs of update stmt.
24607 2016-01-16  Richard Sandiford  <richard.sandiford@arm.com>
24609         * hash-table.h (hash_table::empty): Turn into an inline wrapper
24610         that checks whether the table is already empty.  Rename the
24611         original implementation to...
24612         (hash_table::empty_slot): ...this new private function.
24614 2016-01-15  David Malcolm  <dmalcolm@redhat.com>
24616         PR diagnostic/68899
24617         * diagnostic-show-locus.c (layout::print_source_line): Move x
24618         offset of line until after call to
24619         get_line_width_without_trailing_whitespace.
24621 2016-01-15  Jeff Law  <law@redhat.com>
24623         PR tree-optimization/69270
24624         * tree-ssanames.c (ssa_name_has_boolean_range): Moved here from
24625         tree-ssa-dom.c.  Improve test for [0..1] ranve from VRP.
24626         * tree-ssa-dom.c (ssa_name_has_boolean_range): Remove.
24627         * tree-ssanames.h (ssa_name_has_boolean_range): Prototype.
24628         * tree-ssa-uncprop.c (associate_equivalences_with_edges): Use
24629         ssa_name_has_boolean_range and constant_boolean_node.
24631 2016-01-15  Vladimir Makarov  <vmakarov@redhat.com>
24633         PR rtl-optimization/69030
24634         * lra-spills.c (remove_pseudos): Check nrefs and make the function
24635         returning bool.
24636         (spill_pseudos): Delete debug insn for dead pseudo.
24637         (lra_spill): Initiate spill_hard_reg and slots memory separately.
24639 2016-01-15  Jiong Wang  <jiong.wang@arm.com>
24641         * config/aarch64/aarch64-builtins.c (aarch64_types_unopus_qualifiers):
24642         New.
24643         (TYPES_UNOPUS): Likewise.
24644         * config/aarch64/aarch64-simd-builtins.def (lbtruncuv2sf): Correct
24645         builtin type, from UNOP to UNOPUS.
24646         (lbtruncuv4sf): Likewise.
24647         (lbtruncuv2df): Likewise.
24648         (lrounduv2sf): Likewise.
24649         (lrounduv4sf): Likewise.
24650         (lrounduv2df): Likewise.
24651         (lroundusf): Likewise.
24652         (lroundusf): Likewise.
24653         (lceiluv2sf): Likewise.
24654         (lceiluv4sf): Likewise.
24655         (lceiluv2df): Likewise.
24656         (lceilusf): Likewise.
24657         (lceiludf): Likewise.
24658         (lflooruv2sf): Likewise.
24659         (lflooruv4sf): Likewise.
24660         (lflooruv2df): Likewise.
24661         (lfloorusf): Likewise.
24662         (lfloorudf): Likewise.
24663         (lfrintnuv2sf): Likewise.
24664         (lfrintnuv4sf): Likewise.
24665         (lfrintnuv2df): Likewise.
24666         (lfrintnusf): Likewise.
24667         (lfrintnudf): Likewise.
24668         * config/aarch64/arm_neon.h (vcvt_u32_f32): Remove unncessary type
24669         conversion.
24670         (vcvtq_u32_f32): Likewise.
24671         (vcvtq_u64_f64): Likewise.
24672         (vcvta_u32_f32): Likewise.
24673         (vcvtaq_u32_f32): Likewise.
24674         (vcvtaq_u64_f64): Likewise.
24675         (vcvtm_u32_f32): Likewise.
24676         (vcvtmq_u32_f32): Likewise.
24677         (vcvtmq_u64_f64): Likewise.
24678         (vcvtn_u32_f32): Likwise.
24679         (vcvtnq_u32_f32): Likewise.
24680         (vcvtnq_u64_f64): Likewise.
24681         (vcvtp_u32_f32): Likewise.
24682         (vcvtpq_u32_f32): Likewise.
24683         (vcvtpq_u64_f64): Likewise.
24684         (vcvtmd_u64_f64): Likewise.
24685         (vcvtms_u32_f32): Likewise.
24686         (vcvtad_u64_f64): Likewise.
24687         (vcvtas_u32_f32): Likewise.
24688         (vcvtnd_u64_f64): Likewise.
24689         (vcvtns_u32_f32): Likewise.
24690         (vcvtpd_u64_f64): Likewise.
24691         (vcvtps_u32_f32): Likewise.
24693 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24695         * config/aarch64/aarch64.c (aarch64_if_then_else_costs): Handle
24696         CSEL of zero_extended registers.
24698 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24700         * config/aarch64/aarch64.c (aarch64_rtx_costs, COMPARE case):
24701         Handle COMPARE of ZERO_EXTRACT against zero form of TST-immediate.
24703 2016-01-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24705         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Return
24706         false when argument string is not found in the attributes table
24707         at all.
24709 2016-01-15  David Edelsohn  <dje.gcc@gmail.com>
24711         PR target/68609
24712         * config/rs6000/rs6000.c (rs6000_emit_msub): Delete.
24713         (rs6000_emit_swsqrt): Convert to Goldschmidt's Algorithm
24714         * config/rs6000/rs6000.md (sqrt<mode>2): Limit swsqrt to high
24715         precision estimate.
24717 2016-01-15  Richard Biener  <rguenther@suse.de>
24719         PR tree-optimization/66856
24720         * tree-vect-loop.c (vect_transform_loop): Free SLP instances here.
24721         * tree-vect-slp.c (vect_free_slp_tree): Decrement stmt reference count.
24722         (vect_create_new_slp_node): Increment stmt reference count.
24723         (vect_get_and_check_slp_defs): Make sure stmts are nor already in
24724         an SLP tree before swapping operands.
24725         (vect_build_slp_tree): Likewise.
24726         (destroy_bb_vec_info): Free stmt info after SLP instances.
24727         * tree-vect-stmts.c (new_stmt_vec_info): Initialize reference count.
24728         * tree-vectorizer.h (struct _stmt_vec_info): Add num_slp_uses field.
24729         (STMT_VINFO_NUM_SLP_USES): New macro.
24731 2016-01-15  Richard Biener  <rguenther@suse.de>
24733         PR debug/69137
24734         * dwarf2out.c (add_linkage_name_raw): New function split out from ...
24735         (add_linkage_name): ... here.
24736         (gen_typedef_die): Use add_linkage_name_raw instead of
24737         add_linkage_attr to delay DECL_ASSEMBLER_NAME computation
24738         if necessary.
24740 2016-01-15  Cesar Philippidis  <cesar@codesourcery.com>
24742         * gimplify.c (oacc_default_clause): Decode reference and pointer
24743         types for both kernels and parallel regions.
24745 2016-01-15  Richard Sandiford  <richard.sandiford@arm.com>
24747         PR middle-end/69246
24748         * calls.c (emit_call_1): Force n_popped to zero for sibcalls.
24750 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24752         * config/i386/i386.c (scalar_chain::compute_convert_gain): Fix typo.
24753         (convert_scalars_to_vector): Likewise.
24755 2016-01-15  Jonathan Wakely  <jwakely@redhat.com>
24757         * doc/extend.texi (Type Traits): Fix grammar.
24759 2016-01-15  Martin Jambor  <mjambor@suse.cz>
24761         * tree-inline.c (remap_decl): Use existing dclarations if
24762         remapping a type and prevent_decl_creation_for_types.
24763         (replace_locals_stmt): Do an initial remapping of non-VLA typed
24764         decls first.  Do real remapping with
24765         prevent_decl_creation_for_types set.
24766         * tree-inline.h (copy_body_data): New field
24767         prevent_decl_creation_for_types, moved remap_var_for_cilk to avoid
24768         padding.
24770 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24772         * config/s390/s390.opt (mmvcle): More verbose help text.
24774 2016-01-15  Dominik Vogt  <vogt@linux.vnet.ibm.com>
24776         * config/s390/s390.opt: Add period to -mzvector option text.
24778 2016-01-15  Richard Biener  <rguenther@suse.de>
24780         PR tree-optimization/68961
24781         * tree-vect-slp.c (vect_analyze_slp_cost_1): Consider cost
24782         of invariants in stores again.
24784 2016-01-15  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24786         * config/arm/t-rtems: Add cortex-m7/fpv5-d16 multilib.
24788 2016-01-15  Ilya Enkovich  <enkovich.gnu@gmail.com>
24790         * config/i386/i386.c (ix86_expand_branch): Don't split
24791         DI mode xor instruction to SI mode.
24793 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24795         PR ipa/68148
24796         * ipa-icf.c (sem_function::merge): Virtual functions may become
24797         reachable even if they address is not taken and there are no
24798         idrect calls.
24800 2016-01-15  Jan Hubicka  <hubicka@ucw.cz>
24802         * lto-streamer-out.c (subtract_estimated_size): New function.
24803         (get_symbol_initial_value): Use it.
24805 2016-01-15  Christian Bruel  <christian.bruel@st.com>
24807         PR target/65837
24808         * config/arm/arm-builtins.c (ARM_BUILTIN_CRYPTO_BASE): New enum tag.
24809         (arm_init_neon_builtins_internal): Rename arm_init_neon_builtins,
24810         (arm_init_crypto_builtins_internal): Rename arm_init_crypto_builtins.
24811         use add_builtin_function_ext_scope instead of add_builtin_function.
24812         (neon_set_p, neon_crypto_set_p): Remove.
24813         (arm_init_builtins): Always call arm_init_neon_builtins and
24814         arm_init_crypto_builtins.
24815         (arm_expand_builtin): Check that builtins are allowed for the arch.
24816         * config/arm/arm-protos.h (arm_init_neon_builtins): Remove prototype.
24817         * config/arm/arm.c (arm_valid_target_attribute_tree): Remove
24818         arm_init_neon_builtins call.
24820 2016-01-15  Richard Biener  <rguenther@suse.de>
24822         PR tree-optimization/69117
24823         * tree-ssa-sccvn.h (struct vn_ssa_aux): Add info member.
24824         * tree-ssa-sccvn.c (set_ssa_val_to): Save and adjust SSA name info
24825         of the leader conservatively.
24826         (free_scc_vn): Restore original SSA name infos.
24828 2016-01-14  Jeff Law  <law@redhat.com>
24830         PR tree-optimization/69270
24831         * tree-ssa-dom.c (ssa_name_has_boolean_range): If the type has a
24832         single bit of precision, verify it's also unsigned.
24833         (record_edge_info): Use constant_boolean_node rather than fold_convert
24834         to convert boolean_true/boolean_false to the right type.
24836 2016-01-14  Richard Henderson  <rth@redhat.com>
24838         PR rtl-opt/69014
24839         * loop-doloop.c (record_reg_sets): New.
24840         (doloop_optimize): Reject the transform if the sequence
24841         clobbers registers live at the end of the loop block.
24842         (doloop_optimize_loops): Enable df_live if needed.
24844 2016-01-14  Michael Meissner  <meissner@linux.vnet.ibm.com>
24846         * config/rs6000/rs6000-builtin.def: Revert 2016-01-13 change.
24847         * config/rs6000/rs6000.c: Likewise.
24848         * config/rs6000/rs6000.h: Likewise.
24849         * config/rs6000/rs6000.md: Likewise.
24850         * doc/extend.texi: Likewsie.
24852 2016-01-14  Jeff Law  <law@redhat.com>
24854         * tree-ssa-dom.c (ssa_name_has_boolean_range): Fix comment
24855         typo.
24857 2016-01-14  Richard Henderson  <rth@redhat.com>
24859         PR c/69272
24860         PR tree-opt/68964
24861         * trans-mem.c (tm_log_emit_stmt): Fix unit size to bit size.
24862         * tree.c (build_tm_vector_builtins): Use builtin_decl_explicit_p
24863         instead of builtin_decl_declared_p to test for declaration.
24865 2016-01-14  Nicklas Bo Jensen  <nbjensen@gmail.com>
24867         * doc/loop.texi (Loop Analysis and Representation): Document
24868         loop_depth function.
24870 2016-01-14  Tom de Vries  <tom@codesourcery.com>
24872         PR tree-optimization/68773
24873         * omp-low.c (expand_omp_target): Don't set force_output.
24874         * varpool.c (varpool_node::get_create): Same.
24875         * lto-cgraph.c (input_offload_tables): Mark entries in offload_vars and
24876         offload_funcs with force_output.
24878 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24880         PR debug/69244
24881         * lra-eliminations.c (move_plus_up): Don't change anything if either
24882         the outer or inner subreg mode is not MODE_INT.
24883         * dwarf2out.c (mem_loc_descriptor): For SUBREG, if outer mode is
24884         integral <= DWARF2_ADDR_SIZE, convert to untyped afterwards.
24886 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24888         * doc/md.texi (reduc_smin_@var{m}, reduc_smax_@var{m},
24889         reduc_umin_@var{m}, reduc_umax_@var{m}, reduc_splus_@var{m},
24890         reduc_uplus_@var{m}): Remove.
24891         * expr.c (expand_expr_real_2): Remove expansion path for
24892         reduc_[us](min|max|plus) optabs.
24893         * optabs-tree.c (scalar_reduc_to_vector): Remove.
24894         * optabs-tree.h (scalar_reduc_to_vector): Remove.
24895         * optabs.def (reduc_smax_optab, reduc_smin_optab, reduc_splus_optab,
24896         reduc_umax_optab, reduc_umin_optab, reduc_uplus_optab): Remove.
24897         * tree-vect-loop.c (vectorizable_reduction): Remove test for
24898         reduc_[us](min|max|plus) optabs.
24900 2016-01-14  Alan Lawrence  <alan.lawrence@arm.com>
24902         * config/mips/mips-ps-3d.md (reduc_splus_v2sf): Remove.
24903         (reduc_plus_scal_v2sf): New.
24904         (reduc_smax_v2sf): Rename to...
24905         (reduc_smax_scal_v2sf): ...here, make result SFmode, add vec_extract.
24906         (reduc_smin_v2sf): Rename to...
24907         (reduc_smin_scal_v2sf): ...here, make result SFmode, add vec_extract.
24909 2016-01-14  Jan Hubicka  <hubicka@ucw.cz>
24911         * alias.c (compare_base_symbol_refs): New function.
24912         (rtx_equal_for_memref_p, base_alias_check, memrefs_conflict_p): Use
24913         it.
24915 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24917         PR middle-end/68146
24918         PR tree-optimization/69155
24919         * tree-complex.c: Include cfganal.h.
24920         (phis_to_revisit): New variable.
24921         (extract_component): Add phiarg_p argument.  Assert that returned
24922         SSA_NAME has non-NULL SSA_NAME_DEF_STMT unless phiarg_p is true.
24923         (update_phi_components): Partly rewrite to use loop over real/imag
24924         components instead of code duplication.  If extract_component returns
24925         SSA_NAME with NULL SSA_NAME_DEF_STMT, store SSA_NAME_VAR or
24926         create_tmp_reg into the PHI node instead, and mention the phi triplet
24927         in phis_to_revisit.
24928         (tree_lower_complex): Walk bbs in rpo order.  Adjust phis recorded
24929         in phis_to_revisit at the end.
24931 2016-01-14  Richard Biener  <rguenther@suse.de>
24933         PR tree-optimization/68060
24934         * tree-vect-loop.c (vect_is_simple_reduction): Check the
24935         outer loop reduction is only used in the inner loop before
24936         detecting a double reduction.
24938 2016-01-14  Jakub Jelinek  <jakub@redhat.com>
24940         PR target/68269
24941         * combine.c (expand_field_assignment): Punt if compute_mode is
24942         unsupported scalar mode.
24944 2016-01-14  Richard Biener  <rguenther@suse.de>
24946         PR tree-optimization/66856
24947         * tree-vect-slp.c (vect_build_slp_tree): Refactor to build
24948         SLP node only if it built successfully.
24949         (vect_analyze_slp_instance): Adjust.
24951 2016-01-14  Jeff Law  <law@redhat.com>
24953         PR tree-optimization/69270
24954         * tree-ssa-dom.c (ssa_name_has_boolean_range): New function.
24955         (record_edge_info): Use it.  Convert boolean_{true,false}_node
24956         to the type of op0.
24958 2016-01-13  Jan Hubicka  <hubicka@ucw.cz>
24960         PR ipa/66487
24961         * ipa-polymorphic-call.c (inlined_polymorphic_ctor_dtor_block_p):
24962         use block_ultimate_origin
24963         (noncall-stmt_may_be_vtbl_ptr_store): Likewise.
24965 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24967         * doc/invoke.texi (Submodel Options): Rename section to
24968         "Machine-Dependent Options" to better reflect its content.
24969         Rewrite introductory text to remove archaic CPU names.
24970         Update references.
24972 2016-01-13  Sandra Loosemore  <sandra@codesourcery.com>
24974         * doc/invoke.texi (Code Gen Options): Move section up in file,
24975         before target-specific options.  Update menu and option summary
24976         to reflect the new section ordering.
24978 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
24980         * doc/invoke.texi (C Dialect Options): Adjust -std default for C++.
24981         (C++ Dialect Options): Add cross-reference to -std option.
24982         * doc/standards.texi (C++ Language): Document C++14 support.
24984 2016-01-13  Michael Meissner  <meissner@linux.vnet.ibm.com>
24986         * config/rs6000/rs6000-builtin.def (BU_FLOAT128_2): Add support
24987         for pack/unpack functions for __ibm128.
24988         (PACK_IF): Likewise.
24989         (UNPACK_IF): Likewise.
24991         * config/rs6000/rs6000.c (rs6000_builtin_mask_calculate): Add
24992         support for __ibm128 pack/unpack functions.
24993         (rs6000_invalid_builtin): Likewise.
24994         (rs6000_init_builtins): Likewise.
24995         (rs6000_opt_masks): Likewise.
24997         * config/rs6000/rs6000.h (MASK_FLOAT128): Add short name.
24998         (RS6000_BTM_FLOAT128): Add support for __ibm128 pack/unpack
24999         functions
25000         (RS6000_BTM_COMMON): Likewise.
25002         * config/rs6000/rs6000.md (f128_vsx): New mode attribute.
25003         (unpack<mode>): Use FMOVE128_FPR iterator instead of FMOVE128, to
25004         disallow __builtin_{pack,unpack}_longdouble if long double is IEEE
25005         128-bit floating point.  Add support for the double values to be
25006         in Altivec registers for TF/IF packing and unpacking, but restrict
25007         TD packing sub-fields to be FPR registers.  Don't allow overlapped
25008         register support for packing.  Allow pack inputs to be memory
25009         locations.  Don't build generator functions for unpack<mode>_dm
25010         and unpack<mode>_nodm.
25011         (unpack<mode>_dm): Likewise.
25012         (unpack<mode>_nodm): Likewise.
25013         (pack<mode>): Likewise.
25015         * config/rs6000/rs6000-builtin.def (__builtin_pack_ibm128): Add
25016         built-in functions to pack/unpack explicit __ibm128 values.
25017         (__builtin_unpack_ibm128): Likewise.
25019         * doc/extend.texi (PowerPC Built-in Functions): Document
25020         __builtin_pack_ibm128 and __builtin_unpack_ibm128.
25022 2016-01-13  Bernd Schmidt  <bschmidt@redhat.com>
25024         PR c/66208
25025         * c-common.c (check_function_nonnull): Remove unnecessary declaration.
25026         Add new arg loc and pass it down as context.
25027         (check_nonnull_arg): Don't mark ctx arg as unused. Use it as a pointer
25028         to the location to use for the warning.
25029         (check_function_arguments): New arg loc.  All callers changed.  Pass
25030         it to check_function_nonnull.
25031         * c-common.h (check_function_arguments): Adjust declaration.
25033 2016-01-13  Jakub Jelinek  <jakub@redhat.com>
25035         PR tree-optimization/69156
25036         * gimple.c (validate_type): Removed.
25037         (gimple_builtin_call_types_compatible_p): Use
25038         useless_type_conversion_p instead of validate_type.
25039         * value-prof.c (gimple_stringop_fixed_value): Fold
25040         icall_size to correct type.
25042 2016-01-13  Jonathan Wakely  <jwakely@redhat.com>
25044         * doc/extend.texi (__atomic Builtins): Clarify compare_exchange
25045         effects.
25047 2016-01-13  Richard Henderson  <rth@redhat.com>
25049         PR tree-opt/68964
25050         * target.def (builtin_tm_load, builtin_tm_store): Remove.
25051         * config/i386/i386.c (ix86_builtin_tm_load): Remove.
25052         (ix86_builtin_tm_store): Remove.
25053         (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25054         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25055         * doc/tm.texi.in (TARGET_VECTORIZE_BUILTIN_TM_LOAD): Remove.
25056         (TARGET_VECTORIZE_BUILTIN_TM_STORE): Remove.
25057         * doc/tm.texi: Rebuild.
25059         * gtm-builtins.def (BUILT_IN_TM_MEMCPY_RNWT): New.
25060         (BUILT_IN_TM_MEMCPY_RTWN): New.
25061         * trans-mem.c (tm_log_emit_stmt): Rearrange code for better
25062         fallback from vector to integer helpers.
25063         (build_tm_load): Handle vector types directly, instead of
25064         via target hook.
25065         (build_tm_store): Likewise.
25066         (expand_assign_tm): Prepare for register types not handled by
25067         the above.  Copy them to memory and use memcpy.
25068         * tree.c (tm_define_builtin): New.
25069         (find_tm_vector_type): New.
25070         (build_tm_vector_builtins): New.
25071         (build_common_builtin_nodes): Call it.
25073 2016-01-13  Uros Bizjak  <ubizjak@gmail.com>
25075         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Return -1 for
25076         TARGET_SSE_MATH without TARGET_SSE2.  Rewrite.
25078 2016-01-13  Tom de Vries  <tom@codesourcery.com>
25080         PR tree-optimization/69169
25081         * tree-ssa-structalias.c (create_variable_info_for_1): Add and handle
25082         handled_struct_type param.
25083         (create_variable_info_for, intra_create_variable_infos): Call
25084         create_variable_info_for_1 with extra arg.
25086 2016-01-13  Yvan Roux  <yvan.roux@linaro.org>
25088         * config/arm/arm-arches.def: Remove spurious whitespace in "armv8.1-a"
25089         and "armv8.1-a+crc" entries.
25091 2016-01-13  Alexander Fomin  <alexander.fomin@intel.com>
25093         PR target/69228
25094         * config/i386/sse.md (define_expand "avx512pf_gatherpf<mode>sf"):
25095         Change first operand predicate from register_or_constm1_operand
25096         to register_operand.
25097         (define_expand "avx512pf_gatherpf<mode>df"): Likewise.
25098         (define_expand "avx512pf_scatterpf<mode>sf"): Likewise.
25099         (define_expand "avx512pf_scatterpf<mode>df"): Likewise.
25100         (define_insn "*avx512pf_gatherpf<mode>sf"): Remove.
25101         (define_insn "*avx512pf_gatherpf<mode>df"): Likewise.
25102         (define_insn "*avx512pf_scatterpf<mode>sf"): Likewise.
25103         (define_insn "*avx512pf_scatterpf<mode>df"): Likewise.
25104         * config/i386/i386.c (ix86_expand_builtin): Remove first operand
25105         comparison with constm1_rtx from vec_prefetch_gen part.
25107 2016-01-13  Richard Biener  <rguenther@suse.de>
25109         PR tree-optimization/69013
25110         * tree-ssa-uninit.c (prune_uninit_phi_opnds_in_unrealizable_paths):
25111         Exchange assert for a test.
25113 2016-01-13  Andreas Krebbel  <krebbel@linux.vnet.ibm.com>
25115         PR target/69247
25116         * config/s390/s390.md (bswaphi splitter): Use simplify_gen_subreg.
25118 2016-01-13  Richard Biener  <rguenther@suse.de>
25120         PR tree-optimization/69242
25121         * tree-ssa-sccvn.c (visit_reference_op_load): Replace bogus
25122         assert with a check.
25124 2016-01-13  Richard Biener  <rguenther@suse.de>
25126         PR tree-optimization/69186
25127         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
25128         Properly guard vect_update_misalignment_for_peel call.
25130 2016-01-12  Jeff Law  <law@redhat.com>
25132         PR tree-optimization/pr67755
25133         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add new field
25134         "need_profile_correction".
25135         (thread_block_1): Initialize new field to false by default.  If we
25136         have multiple thread paths through a common joiner to different
25137         final targets, then set new field to true.
25138         (compute_path_counts): Only do count adjustment when it's really
25139         needed.
25141 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25143         * doc/invoke.texi (Spec Files): Move section down in file, past
25144         all command-line option descriptions.
25146 2016-01-12  Trevor Saunders  <tbsaunde+gcc@tbsaunde.org>
25148         PR middle-end/54809
25149         * doc/gty.texi: Remove documentation of mark_hook.
25150         * gengtype.c (struct write_types_data): Remove code to support
25151         mark_hook attribute.
25152         (walk_type): Likewise.
25153         (write_func_for_structure): Likewise.
25155 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25157         * doc/invoke.texi (Option Summary) Move -no-canonical-prefixes to
25158         Directory Options, and -specs= to Overall Options.
25159         (Overall Options): Adjust similarly.  Reorder to group related
25160         options together.  Make -specs= cross-reference the spec file details.
25161         (Directory Options): Adjust similarly.
25163 2016-01-12  Jeff Law  <law@redhat.com>
25165         * tree-ssa-threadupdate.c: Various whitespace and typo fixes.
25167 2016-01-12  Olivier Hainque  <hainque@adacore.com>
25169         * gcc.c (spec_undefvar_allowed): New global.
25170         (process_command): Set to true when running for --version or --help,
25171         alone or together.
25172         (getenv_spec_function): When the variable is not defined, use the
25173         variable name as the variable value if we're allowed not to issue
25174         a fatal error.
25176 2016-01-12  Bin Cheng  <bin.cheng@arm.com>
25178         PR tree-optimization/68911
25179         * tree-vrp.c (adjust_range_with_scev): Check overflow in range
25180         information computed for expression "init + nit * step".
25182 2016-01-12  Sandra Loosemore  <sandra@codesourcery.com>
25184         * doc/invoke.texi (Invoking GCC): Copy-edit.  Incorporate information
25185         about name of GCC executable.  Remove deleted node from menu.
25186         (Directory Options) <-B>: Remove cross-reference to deleted node.
25187         (Target Options): Delete section.
25189 2016-01-12  Christian Bruel  <christian.bruel@st.com>
25191         PR target/69180
25192         * config/arm/arm-c.c (arm_pragma_target_parse): Set NODE_CONDITIONAL
25193         for __ARM_NEON_FP, __ARM_FP, _ARM_FEATURE_LDREX.
25195 2016-01-12  Jakub Jelinek  <jakub@redhat.com>
25197         PR target/69198
25198         * config/i386/i386.c (ix86_expand_special_args_builtin): Ensure
25199         aligned_mem is properly set for AVX512-VL floating point masked
25200         stores.
25202         PR target/69175
25203         * ifcvt.c (cond_exec_process_if_block): When removing the last
25204         insn from then_bb, remove also any possible barriers that follow it.
25206 2016-01-12  H.J. Lu  <hongjiu.lu@intel.com>
25208         PR target/68456
25209         PR target/69226
25210         * config/i386/iamcu.h (SIZE_TYPE): New macro.
25211         (PTRDIFF_TYPE): Likewise.
25212         (WCHAR_TYPE): Likewise.
25213         (WCHAR_TYPE_SIZE): Likewise.
25214         (STDINT_LONG32): Likewise.
25216 2016-01-12  Richard Biener  <rguenther@suse.de>
25218         PR tree-optimization/69053
25219         * tree-vect-loop.c (get_initial_def_for_reduction): Properly
25220         convert initial value for cond reductions.
25222 2016-01-12  Richard Biener  <rguenther@suse.de>
25224         PR tree-optimization/69007
25225         * tree-vect-patterns.c (vect_vect_recog_func_ptrs): Move
25226         widen_sum after dot_prod and sad.
25228 2016-01-12  Richard Biener  <rguenther@suse.de>
25230         PR tree-optimization/69168
25231         * tree-vect-loop.c (vect_analyze_loop_2): Reset both main and
25232         pattern stmt SLP type.
25233         * tree-vect-slp.c (vect_detect_hybrid_slp_stmts): Patterns may
25234         end up unused so cope with that case.
25236 2016-01-12  Richard Biener  <rguenther@suse.de>
25238         PR tree-optimization/69157
25239         * tree-vect-stmts.c (vectorizable_mask_load_store): Check
25240         stmts def type only during analyze phase.
25241         (vectorizable_call): Likewise.
25242         (vectorizable_simd_clone_call): Likewise.
25243         (vectorizable_conversion): Likewise.
25244         (vectorizable_assignment): Likewise.
25245         (vectorizable_shift): Likewise.
25246         (vectorizable_operation): Likewise.
25247         (vectorizable_store): Likewise.
25248         (vectorizable_load): Likewise.
25250 2016-01-12  Richard Biener  <rguenther@suse.de>
25252         PR tree-optimization/69174
25253         * tree-vect-stmts.c (vect_mark_relevant): Remove excessive vertical
25254         space.
25255         (vectorizable_load): Properly compute the number of loads needed
25256         for permuted strided SLP loads and do not spuriously assign
25257         to SLP_TREE_VEC_STMTS.
25259 2016-01-12  Andris Pavenis  <andris.pavenis@iki.fi>
25261         * config/i386/djgpp.h (PREFERRED_DEBUGGING_TYPE): Define to DWARF2
25262         (TARGET_ASM_OUTPUT_IDENT): Define to default_asm_output_ident_directive
25263         (MD_EXEC_PREFIX): Remove.
25264         (MD_STARTFILE_PREFIX) Removee.
25265         (FILE_NAME_ABSOLUTE_P): Remove.
25266         (CPP_SPEC): Do not read macros from sys/version.h.
25267         (LINK_COMMAND_SPEC): Remove.
25268         (LOCAL_INCLUDE_DIR): Remove.
25269         (TARGET_ASM_NAMED_SECTION): Define to i386_djgpp_asm_named_section
25270         (TARGET_OS_CPP_BUILTINS): Add DJGPP (non ISO only), __DJGPP, __DJGPP__, unix.
25271         (POST_LINK_SPEC): Define to invoke stubify after linker
25272         (LIBSTDCXX): Remove define
25273         (DBX_REGISTER_NUMBER): Define to svr4_dbx_register_map.
25274         (DEFAULT_PCC_STRUCT_RETURN): Define to 1.
25275         (SUBTARGET_OVERRIDE_OPTIONS): Remove warning about -mbnu2210.
25276         (SUBTARGET_OVERRIDE_OPTIONS): Ignore -fPIC and generate message.
25277         (SUBTARGET_OVERRIDE_OPTIONS): Default to DWARF2 debugging info.
25278         (IX86_MAYBE_NO_LIBGCC_TFMODE): Remove.
25279         (i386_djgpp_asm_named_section): Add propotype of new procedure
25281         * config/i386/xm-djgpp.h (NATIVE_SYSTEM_HEADER_DIR): Define.
25282         (MD_EXEC_PREFIX): Define (moved from config/i386/djgpp.h).
25283         (STANDARD_STARTFILE_PREFIX_1): Define (moved from MD_STARTFILE_PREFIX
25284         in config/i386/djgpp.h).
25285         (STANDARD_STARTFILE_PREFIX_2): Define identical to
25286         STANDARD_STARTFILE_PREFIX_1.
25287         (LOCAL_INCLUDE_DIR): Define (moved from config/i386/djgpp.h).
25288         (GCC_DRIVER_HOST_INITIALIZATION): Fix reporting fatal
25289         installation errors.
25290         (MAX_OFILE_ALIGNMENT): Define to 128.
25291         (HAVE_FTW_H): Undefine as DJGPP do not have nftw, but have ftw.h.
25293         * config/i386/djgpp.c: New file. Add implementation of
25294         i386_djgpp_asm_named_section.
25296         * config/i386/djgpp.opt: Remove obsolete option -mbnu210.
25298         * config/i386/t-djgpp: New file. Add djgpp.o to EXTRA_OBJS.
25299         Add rule for building djgpp.o.
25301 2016-01-11  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25303         * config/rs6000/rs6000.c (v2df_reduction_p): New function.
25304         (rtx_is_swappable_p): Reductions are swappable.
25305         (insn_is_swappable_p): V2DF reductions are swappable.
25307 2016-01-11  John David Anglin  <danglin@gcc.gnu.org>
25309         * config/pa/pa.c (pa_emit_move_sequence): Handle floating point
25310         reloads for other unsupported memory operands.
25312 2016-01-12  Kugan Vivekanandarajah  <kuganv@linaro.org>
25313             Jim Wilson  <jim.wilson@linaro.org>
25315         PR target/69194
25316         * config/arm/arm-builtins.c (arm_expand_neon_args): Call
25317         copy_to_mode_reg instead of force_reg.
25319 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
25321         PR target/69225
25322         * config/i386/i386.h (TARGET_FLT_EVAL_METHOD): Set to 2 only if
25323         TARGET_80387 is true.
25325 2016-01-11  Jakub Jelinek  <jakub@redhat.com>
25327         PR target/69071
25328         * lra-eliminations.c (move_plus_up): Only move plus up
25329         if subreg of the constant can be simplified into constant
25330         and use the simplified subreg of the constant instead of
25331         the original constant.
25333         * fold-const.c (fold_convertible_p): Don't return true
25334         for conversion of VECTOR_TYPE to same sized integral type.
25335         (fold_convert_loc): Fix up formatting.  Fold conversion of
25336         VECTOR_TYPE to same sized integral type using VIEW_CONVERT_EXPR
25337         instead of NOP_EXPR.
25339         PR tree-optimization/69214
25340         * tree-vrp.c (simplify_cond_using_ranges): Don't propagate
25341         innerop into a comparison if SSA_NAME_OCCURS_IN_ABNORMAL_PHI.
25342         Formatting fix.
25344         PR tree-optimization/69207
25345         * tree-vect-slp.c (vect_get_constant_vectors): For
25346         VECTOR_BOOLEAN_TYPE_P, assert op has integral type instead of
25347         fold_convertible_p to vector_type's element type, and always
25348         use VCE for non-VECTOR_BOOLEAN_TYPE_P.
25350 2016-01-11  Richard Biener  <rguenther@suse.de>
25352         PR tree-optimization/69173
25353         * tree-vect-loop.c (vect_fixup_scalar_cycles_with_patterns): Only
25354         fixup the cycle if all stmts are in a pattern.
25356 2016-01-11  Uros Bizjak  <ubizjak@gmail.com>
25358         PR middle-end/68999
25359         * alias.c (base_alias_check): Move check for addresses with
25360         alignment ANDs before the call for compare_base_decls.
25361         (memrefs_conflict_p): Return -1 for different decls
25362         that went through alignment adjustments.
25364 2016-01-11  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25366         PR rtl-optimization/68796
25367         * config/aarch64/aarch64.md (*and<mode>_compare0): New pattern.
25368         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Handle HImode
25369         and QImode comparisons against zero with CC_NZmode.
25370         * config/aarch64/iterators.md (short_mask): New mode_attr.
25372 2016-01-11  H.J. Lu  <hongjiu.lu@intel.com>
25374         * config/i386/sse.md (<avx512>_load<mode>_mask): Remove snprintf.
25375         (<avx512>_store<mode>_mask): Likewise.
25377 2016-01-11  Bernd Schmidt  <bschmidt@redhat.com>
25378             Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25380         PR rtl-optimization/68841
25381         * ifcvt.c (struct noce_if_info): Add orig_x field.
25382         (bbs_ok_for_cmove_arith): Add to_rename parameter.
25383         Don't record conflicts on to_rename if it's present.
25384         Allow memory destinations in sets.
25385         (noce_try_cmove_arith): Call bbs_ok_for_cmove_arith even on simple
25386         blocks, passing orig_x to the checks.
25387         (noce_process_if_block): Set if_info->orig_x appropriately.
25389 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25391         PR tree-optimization/69069
25392         * tree-parloops.c (create_parallel_loop): Add missing phi args.
25394 2016-01-11  Yuri Rumyantsev  <ysrumyan@gmail.com>
25396         PR rtl-optimization/68920
25397         * config/i386/i386.c (ix86_option_override_internal): Restrict number
25398         of conditional moves for  RTL if-conversion to 1 for
25399         TARGET_ONE_IF_CONV_INSN.
25400         * config/i386/i386.h (TARGET_ONE_IF_CONV_INSN): New macros.
25401         * config/i386/x86-tune.def (X86_TUNE_ONE_IF_CONV_INSN): New macros.
25402         * params.def (PARAM_MAX_RTL_IF_CONVERSION_INSNS) : Introduce new
25403         parameter to restirct number of conditional moves for
25404         RTL if-conversion.
25405         * doc/invoke.texi (max-rtl-if-conversion-insns): Document it.
25406         * ifcvt.c (bb_ok_for_noce_convert_multiple_sets): Limit number of
25407         conditionl moves.
25409 2016-01-11  Alexandre Oliva  <aoliva@redhat.com>
25411         PR bootstrap/69123
25412         * var-tracking.c (drop_overlapping_mem_locs): Operate on all
25413         onepart vars.  Fix typo in comment.  Fix reversed condition in
25414         unshare test.
25415         (dataflow_set_remove_mem_locs): Operate on all onepart vars.
25417         PR bootstrap/69123
25418         * var-tracking.c (dump_onepart_variable_differences): New.
25419         (dataflow_set_different): If a detailed dump is requested,
25420         delay early returns and dump differences between onepart
25421         variables present before and after, and added variables.
25423 2016-01-11  Ilya Enkovich  <enkovich.gnu@gmail.com>
25425         PR target/69010
25426         * expr.c (expand_expr_real_1): For boolean vector constants
25427         with a scalar mode use const_scalar_mask_from_tree.
25428         (const_scalar_mask_from_tree): New.
25429         * optabs.c (expand_vec_cond_mask_expr): Use mask mode
25430         assigned to a mask type to handle constants.
25432 2016-01-11  Martin Jambor  <mjambor@suse.cz>
25434         PR ipa/69044
25435         * ipa-cp.c (estimate_local_effects): Do not clone for removal of
25436         useless parameters if we cannot change function signature.
25438 2016-01-11  Martin Jambor  <mjambor@suse.cz>
25440         PR ipa/66616
25441         * cgraphclones.c (duplicate_thunk_for_node): Copy can_change_signature
25442         flag.
25444 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25446         PR tree-optimization/69109
25447         * tree-parloops.c (try_transform_to_exit_first_loop_alt): Don't allow
25448         latch with phi.
25450 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25452         PR tree-optimization/69108
25453         * tree-parloops.c (gather_scalar_reductions): Handle case that outer phi
25454         res is not used in a phi.
25456 2016-01-11  Yury Gribov  <y.gribov@samsung.com>
25458         PR 67425
25459         * common.opt (frandom-seed): Fix parameter name.
25460         * doc/invoke.texi (frandom-seed): Ditto and describe parameter.
25462 2016-01-11  Tom de Vries  <tom@codesourcery.com>
25464         PR tree-optimization/69058
25465         * tree-parloops.c (pass_parallelize_loops::execute): Return 0 if libgomp
25466         not supported.
25468 2016-01-11  Andrew Burgess  <andrew.burgess@embecosm.com>
25470         * config/arc/arc.opt (mdiv-rem): Add period to the end.
25471         (mcode-density): Likewise.
25473 2016-01-10  Tom de Vries  <tom@codesourcery.com>
25475         PR tree-optimization/69062
25476         * tree-parloops.c (loop_has_phi_with_address_arg): New function.
25477         (parallelize_loops): Don't paralelize loop that has phi with address
25478         arg.
25480 2016-01-10  Tom de Vries  <tom@codesourcery.com>
25482         PR tree-optimization/69039
25483         * tree-parloops.c (try_create_reduction_list): Only allow single exit
25484         phi for reduction.
25486 2016-01-09  John David Anglin  <danglin@gcc.gnu.org>
25488         PR middle-end/68743
25489         * match.pd: Require target has function_c99_misc before doing
25490         truncl(extend(x)) and trunc(extend(x)) -> extend(truncf(x)), etc.
25492 2016-01-09  Gerald Pfeifer  <gerald@pfeifer.com>
25494         * configure.ac (isl_options_set_schedule_serialize_sccs): Also
25495         use GMPINC.
25496         * configure: Regenerate.
25498 2016-01-09  Jakub Jelinek  <jakub@redhat.com>
25500         PR middle-end/50865
25501         PR tree-optimization/69097
25502         * fold-const.h (expr_not_equal_to): New prototype.
25503         * fold-const.c: Include stringpool.h and tree-ssanames.h.
25504         (expr_not_equal_to): New function.
25505         * match.pd (X % -Y is the same as X % Y): Don't optimize
25506         unless X is known not to be equal to minimum or Y is known
25507         not to be equal to -1.
25508         * tree-vrp.c (simplify_div_or_mod_using_ranges): Add GSI argument.
25509         fold TRUNC_MOD_EXPR if the second argument is not a power of two.
25510         (simplify_stmt_using_ranges): Adjust caller.
25511         (vrp_finalize): Call set_value_range on SSA_NAMEs before calling
25512         substitute_and_fold.
25514 2016-01-09  Jan Hubicka  <hubicka@ucw.cz>
25516         * ipa-icf.c (sem_item_optimizer::merge_classes): Do not ICE on VAR_DECL
25517         w/o DECL_NAME.
25519 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
25521         PR tree-optimization/69167
25522         * gimple-fold.c (replace_stmt_with_simplification): Also punt if
25523         new SSA_NAME_OCCURS_IN_ABNORMAL_PHI SSA_NAMEs appear in operands of
25524         ops[0] comparison.
25525         * gimple-match-head.c (maybe_push_res_to_seq): Likewise.
25527 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
25528             Richard Biener  <rguenther@suse.de>
25530         PR tree-optimization/68707
25531         * tree-vect-slp.c (vect_analyze_slp_instance): Cancel permuted SLP
25532         instances that can be handled via vect_load_lanes.
25534 2016-01-08  Uros Bizjak  <ubizjak@gmail.com>
25536         * symtab.c (symtab_node::equal_address_to): Return -1 instead of 2
25537         if we can't determine address equivalence.
25538         * alias.c (compare_base_decl): Update for changed return value of
25539         symtab_node::equal_address_to.
25541 2016-01-08  Jason Merrill  <jason@redhat.com>
25543         PR c++/68983
25544         PR c++/67557
25545         * function.c (assign_temp): Guard against TREE_ADDRESSABLE types here.
25546         * expr.c (store_field): Not here.
25547         * tree-cfgcleanup.c (fixup_noreturn_call): Don't clear LHS of a
25548         call with TREE_ADDRESSABLE type.
25549         * tree-cfg.c (verify_gimple_call): Adjust.
25551 2016-01-08  Olivier Hainque  <hainque@adacore.com>
25553         * config/vxworks.h (VXWORKS_LIBGCC_SPEC): Don't link shared RTPs with
25554         libc_internal.
25556 2016-01-08  Alan Lawrence  <alan.lawrence@arm.com>
25558         * gcc.target/rs6000/paired.md (reduc_smax_v2sf): Rename to...
25559         (reduc_smax_scal_v2sf): ...here, make result SFmode, extract element.
25560         (reduc_smin_v2sf): Rename to...
25561         (reduc_smin_scal_v2sf): ...here, make result SFmode, extract element.
25562         (reduc_splus_v2sf): Rename to...
25563         (reduc_plus_scal_v2sf): ...here, make result SFmode, extract element.
25565 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
25567         PR tree-optimization/69162
25568         * gimplify.c (gimplify_va_arg_expr): Encode original type of
25569         valist argument in another argument.
25570         (gimplify_modify_expr): Adjust for the above change.  Cleanup.
25571         * tree-stdarg.c (expand_ifn_va_arg_1): Use new 3rd argument
25572         to determine the va_list type, build a MEM_REF instead of
25573         build_fold_indirect_ref.
25575         PR tree-optimization/69172
25576         * gimple-fold.c (gimple_fold_builtin_memory_chk): Pass type to
25577         gimple_build.
25579 2016-01-08  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25581         PR tree-optimization/67781
25582         * tree-ssa-math-opts.c (find_bswap_or_nop): Zero out bytes in cmpxchg
25583         and cmpnop in two steps: first the ones not accessed in original
25584         gimple expression in a endian independent way and then the ones not
25585         accessed in the final result in an endian-specific way.
25587 2016-01-08  Jakub Jelinek  <jakub@redhat.com>
25589         PR tree-optimization/69083
25590         * tree-vect-slp.c (vect_get_constant_vectors): For
25591         VECTOR_BOOLEAN_TYPE_P assert op is fold_convertible_p to vector_type's
25592         element type.  If op is fold_convertible_p to vector_type's element
25593         type, use NOP_EXPR instead of VCE.
25595 2016-01-08  Segher Boessenkool  <segher@kernel.crashing.org>
25597         PR rtl-optimization/67778
25598         PR rtl-optimization/68634
25599         PR rtl-optimization/68909
25600         * shrink-wrap.c (try_shrink_wrapping): Add comment.  Don't pop
25601         block from the stack until done with it.  Remove a superfluous
25602         bitmap set.  Remove a superfluous bitmap test.
25604 2016-01-07  Martin Sebor  <msebor@redhat.com>
25606         PR c/68966
25607         * doc/extend.texi (__atomic Builtins, __sync Builtins): Document
25608         constraint on the type of arguments.
25610 2016-01-07  Andreas Tobler  <andreast@gcc.gnu.org>
25612         * config/arm/freebsd.h: Rename SUBTARGET_OVERRIDE_OPTIONS to
25613         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS. Adjust to check
25614         unaligned_access on the gcc_options set.
25615         * config/arm/arm.c (arm_option_override_internal): Use
25616         SUBTARGET_OVERRIDE_INTERNAL_OPTIONS.
25618 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
25620         PR target/69140
25621         * config/i386/i386.c (ix86_frame_pointer_required): Enable
25622         frame pointer for TARGET_64BIT_MS_ABI when stack is misaligned.
25624 2016-01-07  Uros Bizjak  <ubizjak@gmail.com>
25626         Revert
25627         2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
25629         PR target/69140
25630         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25631         depending on frame_pointer_needed before remaining integer and SSE
25632         registers are saved.
25634 2016-01-07  Sandra Loosemore  <sandra@codesourcery.com>
25636         PR 1078
25637         * doc/extend.texi (Nvidia PDX Function Attributes): New section.
25639 2016-01-07  H.J. Lu  <hongjiu.lu@intel.com>
25641         PR target/69171
25642         * config/i386/sse.md (<sse>_sqrt<mode>2<mask_name><round_name>):
25643         Use the "xBm" constraint.
25644         (float<sseintvecmodelower><mode>2<mask_name><round_name):
25645         Likewise.
25646         (sse_cvtsi2ss<round_name>): Use round_nimm_scalar_predicate.
25647         (sse_cvtsi2ssq<round_name>): Likewise.
25648         (sse_cvtss2si<round_name>): Likewise.
25649         (sse_cvtss2siq<round_name>): Likewise.
25650         (sse2_cvtsi2sdq<round_name>): Likewise.
25651         (sse2_cvtsd2si<round_name>): Likewise.
25652         (sse2_cvtsd2siq<round_name>): Likewise.
25653         * config/i386/subst.md (round_nimm_scalar_predicate): New
25654         predicate.
25656 2015-12-15  Bernd Schmidt  <bschmidt@redhat.com>
25658         PR middle-end/67639
25659         * varasm.c (make_decl_rtl): Mark invalid register vars as
25660         DECL_EXTERNAL.
25662         PR rtl-optimization/66206
25663         * bt-load.c (find_btr_use): Change first arg to be a pointer to an rtx.
25664         All callers changed.
25666 2016-01-07  Jakub Jelinek  <jakub@redhat.com>
25668         PR tree-optimization/69141
25669         * tree-ssa-pre.c: Include langhooks.h.
25670         (eliminate_dom_walker::before_dom_children): Use
25671         lang_hooks.decl_printable_name instead of
25672         cgraph_node::get ()->name ().
25674         PR middle-end/68960
25675         * gimple-expr.c (copy_var_decl): If var has DECL_USER_ALIGN set, copy
25676         it and DECL_ALIGN too.
25678 2016-01-06  Robert Suchanek  <robert.suchanek@imgtec.com>
25680         * config/mips/mips-ftypes.def: Sort to lexicographical order.
25682 2016-01-06  Uros Bizjak  <ubizjak@gmail.com>
25684         PR target/69140
25685         * config/i386/i386.c (ix86_expand_prologue): Declare fs.sp_valid
25686         depending on frame_pointer_needed before remaining integer and SSE
25687         registers are saved.
25689 2015-01-06  Bill Schmidt  <wschmidt@linux.vnet.ibm.com>
25691         * config/rs6000/vsx.md (*p9_vecload_<mode>): Replace VSX_M
25692         mode iterator with VSX_M2.
25693         (*p9_vecstore_<mode>): Likewise.
25694         (*vsx_le_permute_<mode>): Restrict to !TARGET_P9_VECTOR.
25695         (*vsx_le_perm_load_<mode> for VSX_LE_128): Likewise.
25696         (*vsx_le_perm_store_<mode> for VSX_LE_128): Likewise.
25697         (define_split for VSX_LE128 stores): Likewise.
25698         (define_peephole2 for TImode LE swaps): Likewise.
25699         (define_split for VSX_LE128 post-reload stores): Likewise.
25701 2016-01-06  Marek Polacek  <polacek@redhat.com>
25703         PR sanitizer/69099
25704         * convert.c (convert_to_integer_1): Adjust call to
25705         ubsan_instrument_float_cast.  Use NULL_TREE instead of NULL.
25706         * ubsan.c (ubsan_instrument_float_cast): Drop the ARG parameter.  Use
25707         EXPR instead of ARG.
25708         * ubsan.h (ubsan_instrument_float_cast): Adjust declaration.
25710 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25712         PR 1078
25713         * doc/extend.texi (RL78 Variable Attributes): New section.
25715 2016-01-05  Marek Polacek  <polacek@redhat.com>
25717         PR c/69104
25718         * builtins.c (get_memmodel): Use expansion point location rather than
25719         the input location.  Call warning_at rather than warning.
25720         (expand_builtin_atomic_compare_exchange): Likewise.
25721         (expand_builtin_atomic_load): Likewise.
25722         (expand_builtin_atomic_store): Likewise.
25723         (expand_builtin_atomic_clear): Likewise.
25725 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25727         PR target/68991
25728         * config/i386/i386.c (ix86_expand_vector_logical_operator):
25729         Replace nonimmediate_operand with vector_operand.
25730         * config/i386/predicates.md (vector_operand): New predicate.
25731         (general_vector_operand): Replace nonimmediate_operand with
25732         vector_operand.
25733         * config/i386/sse.md: Replace nonimmediate_operand with
25734         vector_operand and m constraint with Bm constraint on SSE
25735         patterns with 16-byte memory operand.
25736         * config/i386/subst.md (round_nimm_predicate): Replace
25737         nonimmediate_operand with vector_operand.
25738         (round_saeonly_nimm_predicate): Likewise.
25739         (round_saeonly_nimm_scalar_predicate): New.
25741 2016-01-05  H.J. Lu  <hongjiu.lu@intel.com>
25743         PR target/68991
25744         * config/i386/constraints.md (Bm): New constraint.
25745         * config/i386/predicates.md (vector_memory_operand): New
25746         predicate.
25747         * config/i386/sse.md: Replace xm with xBm in plusminus and
25748         any_logic patterns.
25750 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25752         PR 1078
25753         * doc/extend.texi (V850 Function Attributes): New section.
25754         (V850 Variable Attributes): New section.
25756 2016-01-05  Sandra Loosemore  <sandra@codesourcery.com>
25758         PR 1078
25759         * doc/extend.texi (MicroBlaze Function Attributes): Document
25760         interrupt_handler and fast_interrupt attributes.
25762 2016-01-05  Sergei Trofimovich  <siarheit@google.com>
25764         PR other/60465
25765         * config/ia64/ia64.c (ia64_expand_load_address): Use gprel64
25766         for local symbolic operands.
25767         * config/ia64/predicates.md (local_symbolic_operand64): New
25768         predicate.
25770 2016-01-05  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
25772         PR rtl-optimization/68651
25773         * combine.c (combine_simplify_rtx): Canonicalize x + x into
25774         x << 1.
25776 2016-01-05  Nathan Sidwell  <nathan@acm.org>
25778         * alias.c (compare_base_decls): Use symtab_node::get.
25780 2016-01-05  Nick Clifton  <nickc@redhat.com>
25782         PR target/68770
25783         * ira-costs.c (copy_cost): Initialise the t_icode field of the
25784         secondary_reload_info structure.
25786         PR target/66655
25787         * config/i386/cygming.h (MAKE_DECL_ONE_ONLY): Define to use weak
25788         decls if weak support is available.
25790 2016-01-04  Martin Sebor  <msebor@redhat.com>
25792         * doc/invoke.texi (Warning Options): Document -Winvalid-memory-model.
25794 2016-01-04  Michael Meissner  <meissner@linux.vnet.ibm.com>
25796         * config/rs6000/rs6000-cpus.def (ISA_3_0_MASKS_SERVER): Add
25797         OPTION_MASK_P9_DFORM.
25799         * config/rs6000/constraints.md (wo constraint): New constraint for
25800         ISA 3.0 (power9).
25802         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Add support
25803         for wo constraint.
25804         (rs6000_init_hard_regno_mode_ok): Likewise.
25806         * config/rs6000/rs6000.h (r6000_reg_class_enum): Add support for
25807         wo constraint.
25809         * config/rs6000/altivec.md (altivec_vperm_<mode>): Clean up vperm
25810         expanders not to have constraints.  Add support for ISA 3.0 xxperm
25811         instruction.  Add support for fusing xxlor with xxperm.
25812         (altivec_vperm_<mode>_internal): Likewise.
25813         (altivec_vperm_v8hiv16qi): Likewise.
25814         (altivec_vperm_<mode>v16q): Likewise.
25815         (altivec_vperm_<mode>_uns): Likewise.
25816         (vperm_v8hiv4si): Likewise.
25817         (vperm_v16qiv8hi): Likewise.
25819         * doc/md.texi (RS/6000 constraints): Document wo constraint.
25821 2016-01-04  Jakub Jelinek  <jakub@redhat.com>
25823         Update copyright years.
25825         * gcc.c (process_command): Update copyright notice dates.
25826         * gcov-dump.c (print_version): Ditto.
25827         * gcov.c (print_version): Ditto.
25828         * gcov-tool.c (print_version): Ditto.
25829         * gengtype.c (create_file): Ditto.
25830         * doc/cpp.texi: Bump @copying's copyright year.
25831         * doc/cppinternals.texi: Ditto.
25832         * doc/gcc.texi: Ditto.
25833         * doc/gccint.texi: Ditto.
25834         * doc/gcov.texi: Ditto.
25835         * doc/install.texi: Ditto.
25836         * doc/invoke.texi: Ditto.
25838 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25840         * config/arm/arm.c (aapcs_vfp_allocate_return_reg): Treat all integer
25841         modes larger than TImode as TImode if NEON is not enabled.
25843 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25845         PR target/69100
25846         * config/sparc/sparc.h (FUNCTION_ARG_REGNO_P): Return true in 64-bit
25847         mode for %f0-%f31 only if TARGET_FPU.
25849 2016-01-04  Eric Botcazou  <ebotcazou@adacore.com>
25851         PR target/69072
25852         * config/sparc/sparc.c (scan_record_type): Take into account subfields
25853         to compute the PACKED_P predicate.
25854         (function_arg_record_value): Minor tweaks.
25856 2016-01-04  Thomas Preud'homme  <thomas.preudhomme@arm.com>
25858         * doc/install.texi (--with-multilib-list): Describe the meaning of the
25859         option for arm*-*-* targets.
25861 2016-01-03  Sandra Loosemore  <sandra@codesourcery.com>
25863         * doc/extend.texi (Common Function Attributes): Move docs for
25864         MSP430-specific attributes to....
25865         (MSP430 Function Attributes): ...here.  Delete the redundant
25866         entries and copy-edit the remaining text.
25867         (MSP430 Variable Attributes): Use uniform format for index
25868         entries and add a cross-reference to the corresponding function
25869         attribute docs.
25871 2016-01-03  Vladimír Čunát  <vcunat@gmail.com>
25873         * doc/invoke.texi (RS/6000 and PowerPC Options): Fix
25874         -finite-math typo.
25875         (x86 Options): Likewise.
25877 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
25879         PR 1078
25881         * extend.texi (Common Function Attributes) <no_stack_limit>: New.
25882         * invoke.texi (Code Gen Options) <-fno-stack-limit>: Add pointer
25883         to corresponding attribute.
25885 2016-01-01  Sandra Loosemore  <sandra@codesourcery.com>
25887         * doc/extend.texi (Common Function Attributes) <noplt>: Move
25888         to correct alphabetization of table.  Copy-edit and correct
25889         markup.
25890         <stack_protect>: Likewise.
25891         <target_clones>: Likewise.
25892         <simd>: Likewise.
25893         * doc/invoke.texi (Optimize Options) <-fstack-protector-explicit>:
25894         Correct punctuation.
25895         (Code Gen Options) <-fno-plt>: Copy-edit.
25897 2016-01-01  Bernd Edlinger  <bernd.edlinger@hotmail.de>
25899         PR target/68917
25900         * config/tilegx/tilegx.md (clzsi2): Don't create DI subregs of
25901         SI values.  Explicitly convert SI to DI and vice-versa.
25903 2016-01-01  Jakub Jelinek  <jakub@redhat.com>
25905         PR tree-optimization/69070
25906         * tree-ssa-math-opts.c (gimple_expand_builtin_pow): Only test
25907         REAL_VALUE_ISSIGNALING_NAN on arg0 if arg0 is a REAL_CST.
25909         PR sanitizer/69055
25910         * ubsan.c (ubsan_instrument_float_cast): Call
25911         initialize_sanitizer_builtins.
25913         PR target/69015
25914         * ifcvt.c (find_cond_trap): Give up if returnjump_p (jump).
25916 Copyright (C) 2016 Free Software Foundation, Inc.
25918 Copying and distribution of this file, with or without modification,
25919 are permitted in any medium without royalty provided the copyright
25920 notice and this notice are preserved.