Use the SIGNED_16BIT_OFFSET_EXTRA_P macro for 16-bit signed tests.
[official-gcc.git] / gcc / ChangeLog
blob2d6bdba71134678de9750fe8b3fda589db418de8
1 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
3         * config/rs6000/rs6000.c (mem_operand_gpr): Use
4         SIGNED_16BIT_OFFSET_EXTRA_P macro.
5         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
6         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
7         macro.
9 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
11         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
12         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
13         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
14         * glimits.h: Likewise.
16 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
18         PR rtl-optimization/91976
19         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
20         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
21         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
23 2019-10-02  Martin Sebor  <msebor@redhat.com>
25         PR tree-optimization/80936
26         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
28 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
30         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
31         instead of reg_class_contents[ALL_REGS].
33 2019-09-30  Jason Merrill  <jason@redhat.com>
35         Add some hash_map_safe_* functions like vec_safe_*.
36         * hash-map.h (default_hash_map_size): New variable.
37         (create_ggc): Use it as default argument.
38         (hash_map_maybe_create, hash_map_safe_get)
39         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
41 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
43         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
44         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
45         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
46         (can_inline_edge_by_limits_p): Use it.
47         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
48         (want_inline_small_function_p): Use O2 bounds.
49         (edge_badness): LIkewise.
50         * opts.c (default_options): Add OPT_finline_functions.
51         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
52         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
53         New parameters.
54         * doc/invoke.texi (-finline-functions): Update documentation.
55         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
56         inline-min-speedup-O2): Document.
57         (early-inlining-insns-O2): Simplify docs.
59 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
61         PR rtl-optimization/87047
62         * ifcvt.c (average_cost): New static function.  Use it...
63         (noce_process_if_block): ... here.
65 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
67         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
68         * config/rs6000/rs6000-string.c (expand_block_move): Add
69         might_overlap parm.
70         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
71         (cpymemsi): Add might_overlap parm to expand_block_move() call.
73 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
75         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
76         (expand_builtin_memcpy): Use might_overlap parm.
77         (expand_builtin_mempcpy_args): Use might_overlap parm.
78         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
79         (expand_builtin_memory_copy_args): Add might_overlap parm.
80         * expr.c (emit_block_move_via_cpymem): Rename to
81         emit_block_move_via_pattern, add might_overlap parm, use cpymem
82         or movmem optab as appropriate.
83         (emit_block_move_hints): Add might_overlap parm, do the right
84         thing for might_overlap==true.
85         * expr.h (emit_block_move_hints): Update prototype.
87 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
89         * tree-eh.h (unsplit_eh_edges): Declare.
90         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
91         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
92         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
93         (struct store_immediate_info): Add lp_nr field.
94         (store_immediate_info::store_immediate_info): Add NR2 parameter and
95         initialize lp_nr with it.
96         (struct merged_store_group): Add lp_nr and only_constants fields.
97         (merged_store_group::merged_store_group): Initialize them.
98         (merged_store_group::can_be_merged_into): Deal with them.
99         (pass_store_merging): Rename terminate_and_release_chain into
100         terminate_and_process_chain.
101         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
102         renaming and remove useless assertions.
103         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
104         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
105         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
106         instead of always recomputing it and compare lp_nr.
107         (imm_store_chain_info::output_merged_store): If the group is in an
108         active EH region, register new stores if they can throw.  Moreover,
109         if the insertion has created new basic blocks, adjust the PHI nodes
110         of the post landing pad.
111         (imm_store_chain_info::output_merged_stores): If the original stores
112         are in an active EH region, deregister them.
113         (lhs_valid_for_store_merging_p): Prettify.
114         (adjust_bit_pos): New function extracted from...
115         (mem_valid_for_store_merging): ...here.  Use it for the base address
116         and also for the offset if it is the addition of a constant.
117         (lp_nr_for_store): New function.
118         (pass_store_merging::process_store): Change return type to bool.
119         Call lp_nr_for_store to initialize the store info.  Propagate the
120         return status of various called functions to the return value.
121         (store_valid_for_store_merging_p): New predicate.
122         (enum basic_block_status): New enumeration.
123         (get_status_for_store_merging): New function.
124         (pass_store_merging::execute): If the function can throw and catch
125         non-call exceptions, unsplit the EH edges on entry and clean up the
126         CFG on exit if something changed.  Call get_status_for_store_merging
127         for every basic block and keep the chains open across basic blocks
128         when possible.  Terminate and process open chains at the end, if any.
130 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
132         * reginfo.c (globalize_reg): Fix shadowed variable in
133         function_abis walk.
135 2019-10-02  Martin Jambor  <mjambor@suse.cz>
137         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
138         do not compute some stuff when set.
139         (cgraph_node::create_edge): Likewise.
140         (cgraph_node::create_indirect_edge): Renamed last parameter to
141         coning_p and flipped its meaning, don't even calculate
142         inline_failed when set.
143         * cgraph.h (cgraph_node::create_edge): Add new parameter.
144         (symbol_table::::create_edge): Likewise.
145         (cgraph_node::create_indirect_edge): Rename last parameter, flip
146         the default value.
147         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
148         call graph edge creating functions.
150 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
152         PR c++/91222
153         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
154         namespace types.
156 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
158         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
160 2019-10-02  Richard Biener  <rguenther@suse.de>
162         * tree-vectorizer.h (vect_transform_reduction): Declare.
163         * tree-vect-stmts.c (vect_transform_stmt): Use it.
164         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
165         stmt transform to ...
166         (vect_transform_reduction): ... this.
168 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
170         * omp-low.c (lower_omp_target): Dereference optional argument
171         to work with the right pointer.
173 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
175         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
176         false.
177         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
178         * langhooks.h (omp_is_optional_argument): New hook.
179         * omp-general.c (omp_is_optional_argument): New.
180         * omp-general.h (omp_is_optional_argument): New declaration.
181         * omp-low.c (lower_omp_target): Create temporary for received value
182         and take the address for new_var if the original variable was a
183         DECL_BY_REFERENCE.  Use size of referenced object when a
184         pass-by-reference optional argument used as argument to firstprivate.
186 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
188         PR tree-optimization/91940
189         * tree-vect-patterns.c: Include tree-vector-builder.h and
190         vec-perm-indices.h.
191         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
192         unpromoting the argument back to uint16_t, or by converting into a
193         rotate, or into shifts plus ior.
195 2019-10-02  Richard Biener  <rguenther@suse.de>
197         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
198         New.
199         (vect_transform_cycle_phi): Declare.
200         * tree-vect-stmts.c (vect_transform_stmt): Call
201         vect_transform_cycle_phi.
202         * tree-vect-loop.c (vectorizable_reduction): Split out
203         PHI transformation stage to ...
204         (vect_transform_cycle_phi): ... here.
206 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
208         PR middle-end/91957
209         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
210         eliminable registers.
211         (make_hard_regno_live): Likewise, and don't make them live.
213 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
215         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
216         Call pp_emit_prefix.
217         (layout::print_source_line): Likewise.
218         (layout::start_annotation_line): Likewise.
219         (diagnostic_show_locus): Remove call to temporarily clear the
220         prefix.
221         (selftest::test_one_liner_fixit_remove): Add test coverage for the
222         interaction of pp_set_prefix with rulers and fix-it hints.
223         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
224         prefix when calling diagnostic_show_locus, rather than destroying
225         it afterwards.
226         (print_parseable_fixits): Temporarily clear prefix.
227         * pretty-print.c (pp_format): Save and restore line_length, rather
228         than assuming it is zero.
229         (pp_output_formatted_text): Remove assertion that line_length is
230         zero.
232 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
234         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
235         Rename to ...
236         (nonoverlapping_refs_since_match_p): ... this; handle also
237         ARRAY_REFs.
238         (alias_stats): Update stats.
239         (dump_alias_stats): Likewise.
240         (cheap_array_ref_low_bound): New function.
241         (aliasing_matching_component_refs_p): Add partial_overlap
242         argument;
243         pass it to nonoverlapping_refs_since_match_p.
244         (aliasing_component_refs_walk): Update call of
245         aliasing_matching_component_refs_p
246         (nonoverlapping_array_refs_p): New function.
247         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
248         indirect_refs_may_alias_p): Update calls of
249         nonoverlapping_refs_since_match_p.
251 2019-10-01  Maya Rashish  <coypu@sdf.org>
253         PR target/85401
254         * ira-color.c (allocno_copy_cost_saving): Call
255         ira_init_register_move_cost_if_necessary.
257 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
259         * Makefile.in (gnat_install_lib): New variable.
260         * configure.ac: Substitute it.
261         * configure: Regenerate.
263 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
265         PR lto/91222
266         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
267         is matched with non-C++ type
269 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
271         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
272         after local CSE.
274 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
276         * doc/invoke.texi (early-inlining-insns-O2): Document.
277         (early-inlining-insns): Update.
278         * params.def (early-inlining-insns-O2): New bound.
279         (early-inlining-insns): Update docs.
280         * ipa-inline.c (want_early_inline_function_p): Use new bound.
282 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
284         PR target/88562
285         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
286         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
287         a memory access insn.
289 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
291         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
292         vpmsumd.
294 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
296         PR target/77918
297         * config/s390/s390.c (s390_expand_vec_compare): Use
298         gen_vec_cmpordered and gen_vec_cmpunordered.
299         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
300         vec_unordered): Delete.
301         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
302         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
303         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
304         (vec_cmp<code>): Generic dispatcher.
306 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
308         PR target/77918
309         * config/s390/vector.md (V_HW): Add V1TI in order to make
310         vcond$a$b generate vcondv1tiv1tf.
312 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
314         PR rtl-optimization/91948
315         * ira-build.c (ira_create_allocno): Initialize
316         ALLOCNO_CROSSED_CALLS_ABIS.
317         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
318         than regno to ira_need_caller_save_p.
320 2019-10-01  Alexandre Oliva <oliva@adacore.com>
322         * config/i386/i386-options.c
323         (ix86_recompute_optlev_based_flags): New, moved out of...
324         (ix86_option_override_internal): ... this.  Call it.
325         (ix86_override_options_after_change): Call it here too.
327         PR debug/91507
328         * dwarf2out.c (override_type_for_decl_p): New.
329         (gen_variable_die): Use it.
331 2019-10-01  Richard Biener  <rguenther@suse.de>
333         * tree-vect-loop.c (vectorizable_reduction): Move variables
334         to where they are used.
336 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
338         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
339         (build_def_use): Use PC instead of CC0 in a comment.
341 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
343         * rtl.def (CLOBBER_HIGH): Delete.
344         * doc/rtl.texi (clobber_high): Remove documentation.
345         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
346         (reg_is_clobbered_by_clobber_high): Delete.
347         (gen_hard_reg_clobber_high): Likewise.
348         * alias.c (record_set): Remove CLOBBER_HIGH handling.
349         * cfgexpand.c (expand_gimple_stmt): Likewise.
350         * combine-stack-adj.c (single_set_for_csa): Likewise.
351         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
352         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
353         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
354         * cse.c (invalidate_reg): Remove clobber_high parameter.
355         (invalidate): Update call accordingly.
356         (canonicalize_insn): Remove CLOBBER_HIGH handling.
357         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
358         (count_reg_usage, insn_live_p): Likewise.
359         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
360         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
361         (cselib_invalidate_rtx_note_stores): Update call accordingly.
362         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
363         (cselib_invalidate_regno, cselib_process_insn): Likewise.
364         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
365         (mark_nonreg_stores_2): Likewise.
366         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
367         (df_get_call_refs): Likewise.
368         * dwarf2out.c (mem_loc_descriptor): Likewise.
369         * emit-rtl.c (verify_rtx_sharing): Likewise.
370         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
371         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
372         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
373         * genemit.c (gen_exp, gen_insn): Likewise.
374         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
375         * haifa-sched.c (haifa_classify_rtx): Likewise.
376         * ira-build.c (create_insn_allocnos): Likewise.
377         * ira-costs.c (scan_one_insn): Likewise.
378         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
379         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
380         * jump.c (mark_jump_label_1): Likewise.
381         * lra-int.h (lra_insn_reg::clobber_high): Delete.
382         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
383         handling.
384         (mark_not_eliminable): Likewise.
385         * lra-lives.c (process_bb_lives): Likewise.
386         * lra.c (new_insn_reg): Remove clobber_high parameter.
387         (collect_non_operand_hard_regs): Likewise.  Update call to new
388         insn_reg.  Remove CLOBBER_HIGH handling.
389         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
390         to collect_non_operand_hard_regs.
391         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
392         Update call to new_insn_reg.
393         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
394         * postreload.c (reload_cse_simplify, reload_combine_note_use)
395         (move2add_note_store): Likewise.
396         * print-rtl.c (print_pattern): Likewise.
397         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
398         (if_test_bypass_p): Likewise.
399         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
400         * reginfo.c (reg_scan_mark_refs): Likewise.
401         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
402         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
403         (forget_old_reloads_1): Likewise.
404         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
405         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
406         (dbr_schedule): Likewise.
407         * resource.c (update_live_status, mark_referenced_resources)
408         (mark_set_resources): Likewise.
409         * rtl.c (copy_rtx): Likewise.
410         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
411         (note_pattern_stores): Likewise.
412         (reg_is_clobbered_by_clobber_high): Delete.
413         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
414         CLOBBER_HIGH handling.
416 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
418         PR target/91452
419         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
420         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
421         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
422         Handle ARM_PCS_TLSDESC.
423         (aarch64_tlsdesc_abi_id): New function.
424         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
425         rtx instead of a list of clobbers and clobber_highs.
426         (tlsdesc_small_<mode>): Update accordingly.
428 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
430         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
431         extra callee_abi argument.
432         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
433         Insert a CALLEE_ABI unspec into the call pattern as the second
434         element in the PARALLEL.
435         (aarch64_simd_call_p): Delete.
436         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
437         the new CALLEE_ABI element of the PARALLEL.
438         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
439         from the function type, if given.
440         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
441         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
442         when passed the function_arg_info end marker.
443         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
444         final argument of gen_sibcall.
445         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
446         (call): Make operand 2 a const_int_operand and pass it to expand_call.
447         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
448         pattern.
449         (call_value): Likewise operand 3.
450         (sibcall): Likewise operand 2.  Place the unspec before rather than
451         after the return.
452         (sibcall_value): Likewise operand 3.
453         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
454         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
455         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
456         constraint strings.
457         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
459 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
461         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
462         choose_hard_reg_mode.
463         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
465 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
467         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
468         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
469         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
471 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
473         * diagnostic-show-locus.c (line_label::line_label): Initialize
474         m_has_vbar.
475         (line_label::comparator): Reverse the sort order by m_state_idx,
476         so that when the list is walked backwards the labels appear in
477         order of insertion into the rich_location.
478         (line_label::m_has_vbar): New field.
479         (layout::print_any_labels): When dealing with multiple labels at
480         the same line and column, only print vertical bars for the one
481         with the highest label_line.
482         (selftest::test_one_liner_labels): Update test for multiple labels
483         to expect the labels to be in the order of insertion into the
484         rich_location.  Add a test for many such labels, where the column
485         numbers are out-of-order relative to the insertion order.
487 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
489         * config/i386/i386.h (ix86_frame::expensive_p): New field.
490         (ix86_frame::expensive_count): Likewise.
491         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
492         of use_fast_prologue_epilogue robust against incidental changes
493         in function size.
495 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
497         PR target/77918
498         * config/s390/vector.md (vec_unordered<mode>): Call
499         gen_vec_ordered<mode>.
501 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
503         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
504         New pattern for ASRD.
505         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
506         * internal-fn.def (IFN_DIV_POW2): New internal function.
507         * optabs.def (sdiv_pow2_optab): New optab.
508         * tree-vect-patterns.c (vect_recog_divmod_pattern):
509         Modify pattern to support new operation.
510         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
511         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
512         Document new target selector.
514 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
516         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
517         to test whether we're compiling a vector PCS function and to test
518         whether the function needs to save a particular register.
519         Remove the vector PCS handling of df_set_regs_ever_live.
520         (aarch64_components_for_bb): Use crtl->abi to test whether
521         the function needs to save a particular register.
522         (aarch64_process_components): Use crtl->abi to test whether
523         we're compiling a vector PCS function.
524         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
525         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
527 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
529         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
530         Delete.
531         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
532         whether the block calls a function that clobbers more registers
533         than the current function is allowed to.
534         (aarch64_use_simple_return_insn_p): Delete.
535         * config/aarch64/aarch64.md (simple_return): Remove condition.
537 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
539         * function-abi.h (function_abi_aggregator): New class.
540         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
541         function.
542         * ira.c (update_equiv_regs_prescan): New function.  Call
543         set_paradoxical_subreg here rather than...
544         (update_equiv_regs): ...here.
545         (ira): Call update_equiv_regs_prescan.
547 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
549         * hard-reg-set.h (regs_invalidated_by_call): Only define if
550         IN_TARGET_CODE.
551         (call_used_or_fixed_regs): Likewise.
552         (call_used_or_fixed_reg_p): Likewise.
553         * reginfo.c (regs_invalidated_by_call): New macro.
555 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
557         * shrink-wrap.c: Include function-abi.h.
558         (requires_stack_frame_p): Use crtl->abi to test whether the
559         current function can use a register without saving it first.
561 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
563         * sel-sched-ir.h (_def::crosses_call): Replace with...
564         (_def::crossed_call_abis): ..this new field.
565         (def_list_add): Take a mask of ABIs instead of a crosses_call
566         boolean.
567         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
568         of _def accordingly.
569         * sel-sched.c: Include function-abi.h.
570         (hard_regs_data::regs_for_call_clobbered): Delete.
571         (reg_rename::crosses_call): Replace with...
572         (reg_rename::crossed_call_abis): ...this new field.
573         (fur_static_params::crosses_call): Replace with...
574         (fur_static_params::crossed_call_abis): ...this new field.
575         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
576         (init_hard_regs_data): Use crtl->abi to test which registers the
577         current function would need to save before it uses them.
578         (mark_unavailable_hard_regs): Update handling of call-clobbered
579         registers, using call_clobbers_in_region to find out which registers
580         might be call-clobbered (but without taking -fipa-ra into account
581         for now).  Remove separate handling of partially call-clobbered
582         registers.
583         (verify_target_availability): Use crossed_call_abis instead of
584         crosses_call.
585         (get_spec_check_type_for_insn, find_used_regs): Likewise.
586         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
588 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
590         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
591         function to test whether a register is fully or partly clobbered.
593 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
595         * rtlanal.c: Include function-abi.h.
596         (reg_set_p): Use insn_callee_abi to get the ABI of the called
597         function and clobbers_reg_p to test whether the register
598         is call-clobbered.
599         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
600         to get the ABI of the called function and full_reg_clobbers to
601         get the set of fully call-clobbered registers.  Warn about the
602         pitfalls of using this mode.
604 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
606         * reload.c: Include function-abi.h.
607         (find_equiv_reg): Use clobbers_reg_p to test whether either
608         of the equivalent registers is clobbered by a call.
609         * reload1.c: Include function-abi.h.
610         (reg_reloaded_call_part_clobbered): Delete.
611         (reload): Use crtl->abi to test which registers would need
612         saving in the prologue before use.
613         (find_reg): Likewise.
614         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
615         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
616         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
618 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
620         * regrename.h (du_head::call_clobber_mask): New field.
621         (du_head::need_caller_save_reg): Replace with...
622         (du_head::call_abis): ...this new field.
623         * regrename.c: Include function-abi.h.
624         (call_clobbered_in_chain_p): New function.
625         (check_new_reg_p): Use crtl->abi when deciding whether a register
626         is free for use after RA.  Use call_clobbered_in_chain_p to test
627         whether a candidate register would be clobbered by a call.
628         (find_rename_reg): Don't add call-clobber conflicts here.
629         (rename_chains): Check call_abis instead of need_caller_save_reg.
630         (merge_chains): Update for changes to du_head.
631         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
632         target.  Record the ABI identifier in call_abis and the set of
633         fully or partially clobbered registers in call_clobber_mask.
634         Add fully-clobbered registers to hard_conflicts here rather
635         than in find_rename_reg.
636         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
637         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
638         * config/aarch64/falkor-tag-collision-avoidance.c: Include
639         function-abi.h.
640         * config/c6x/c6x.c: Likewise.
642 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
644         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
645         mode of the register when deciding whether it is no longer
646         available after a call.
648 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
650         * recog.c: Include function-abi.h.
651         (peep2_find_free_register): Use crtl->abi when deciding whether
652         a register is free for use after RA.
654 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
656         * postreload-gcse.c: Include regs.h and function-abi.h.
657         (record_opr_changes): Use insn_callee_abi to get the ABI of the
658         call insn target.  Conservatively assume that partially-clobbered
659         registers are altered.
661 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
663         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
664         when deciding whether a register is free for use after RA.
665         (reload_combine): Remove unnecessary use of fixed_reg_set.
666         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
667         call insn target.  Use reg_mode when testing whether a register
668         is no longer available.
670 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
672         * target.def (return_call_with_max_clobbers): Delete.
673         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
674         * doc/tm.texi: Regenerate.
675         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
676         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
677         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
678         (lra_reg::call_insn): Delete.
679         * lra.c: Include function-abi.h.
680         (initialize_lra_reg_info_element): Don't initialize the fields above.
681         (lra): Use crtl->abi to test whether the current function needs to
682         save a register in the prologue.  Remove special pre-inheritance
683         lra_create_live_ranges pass for flag_ipa_ra.
684         * lra-assigns.c: Include function-abi.h
685         (find_hard_regno_for_1): Use crtl->abi to test whether the current
686         function needs to save a register in the prologue.
687         (lra_assign): Assert that registers aren't allocated to a
688         conflicting register, rather than checking only for overlaps
689         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
690         and for registers that are not live across a call.
691         * lra-constraints.c (last_call_for_abi): New variable.
692         (full_and_partial_call_clobbers): Likewise.
693         (setup_next_usage_insn): Remove the register from
694         full_and_partial_call_clobbers.
695         (need_for_call_save_p): Use call_clobbered_in_region_p to test
696         whether the register needs a caller save.
697         (need_for_split_p): Use full_and_partial_reg_clobbers instead
698         of call_used_or_fixed_regs.
699         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
700         full_and_partial_call_clobbers.
701         * lra-lives.c (check_pseudos_live_through_calls): Replace
702         last_call_used_reg_set and call_insn arguments with an abi argument.
703         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
704         as the set of conflicting registers.
705         (calls_have_same_clobbers_p): Delete.
706         (process_bb_lives): Track the ABI of the last call instead of an
707         insn/HARD_REG_SET pair.  Update calls to
708         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
709         the set of registers that could be clobbered by an EH edge.
710         Include partially-clobbered as well as fully-clobbered registers.
711         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
712         * lra-remat.c: Include function-abi.h.
713         (call_used_regs_arr_len, call_used_regs_arr): Delete.
714         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
715         registers and bitmap_view to combine them into dead_regs.
716         (call_used_input_regno_present_p): Take a function_abi argument
717         and use it to test whether a register is call-clobbered.
718         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
719         call insn target.  Update tje call to call_used_input_regno_present_p.
720         (do_remat): Likewise.
721         (lra_remat): Remove the initialization of call_used_regs_arr_len
722         and call_used_regs_arr.
724 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
726         * loop-iv.c: Include regs.h and function-abi.h.
727         (simplify_using_initial_values): Use insn_callee_abi to get the
728         ABI of the call insn target.  Conservatively assume that
729         partially-clobbered registers are altered.
731 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
733         * function-abi.h (call_clobbers_in_region): Declare.
734         (call_clobbered_in_region_p): New function.
735         * function-abi.cc (call_clobbers_in_region): Likewise.
736         * ira-int.h: Include function-abi.h.
737         (ira_allocno::crossed_calls_abis): New field.
738         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
739         (ira_need_caller_save_regs): New function.
740         (ira_need_caller_save_p): Likewise.
741         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
742         of call_used_or_fixed_regs.
743         (do_reload): Use crtl->abi to test whether the current function
744         needs to save a register in the prologue.  Count registers that
745         need to be saved rather than registers that don't.
746         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
747         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
748         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
749         (propagate_some_info_from_allocno): Likewise.
750         (copy_info_to_removed_store_destinations): Likewise.
751         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
752         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
753         (ira_build): Use ira_need_caller_save_regs instead of
754         call_used_or_fixed_regs.
755         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
756         whether the current function would need to save a register
757         before using it.
758         (calculate_spill_cost): Likewise.
759         (allocno_reload_assign): Use ira_need_caller_save_regs and
760         ira_need_caller_save_p instead of call_used_or_fixed_regs.
761         * ira-conflicts.c (ira_build_conflicts): Use
762         ira_need_caller_save_regs rather than call_used_or_fixed_regs
763         as the set of call-clobbered registers.  Remove the
764         call_used_or_fixed_regs mask from the calculation of
765         temp_hard_reg_set and mask its use instead.  Remove special
766         handling of partially-clobbered registers.
767         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
768         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
769         calculate the set of conflicting registers for calls that
770         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
771         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
772         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
773         Use eh_edge_abi to calculate the set of registers that could
774         be clobbered by an EH edge.  Include partially-clobbered as
775         well as fully-clobbered registers.
777 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
779         * haifa-sched.c: Include function-abi.h.
780         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
781         the function would need to save a register before using it.
783 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
785         * gcse.c: Include function-abi.h.
786         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
787         the call insn target.  Invalidate partially call-clobbered
788         registers as well as fully call-clobbered ones.
790 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
792         * function.c (aggregate_value_p): Work out which ABI the
793         function is using before testing which registers are at least
794         partly preserved by a call.
796 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
798         * early-remat.c: Include regs.h and function-abi.h.
799         (early_remat::maybe_add_candidate): Don't check for call-clobbered
800         registers here.
801         (early_remat::restrict_remat_for_unavail_regs): New function.
802         (early_remat::restrict_remat_for_call): Likewise.
803         (early_remat::process_block): Before calling emit_remat_insns
804         for a previous call in the block, invalidate any candidates
805         that would clobber call-preserved registers.
806         (early_remat::emit_remat_insns_for_block): Likewise for the
807         final call in a block.  Do the same thing for live-in registers
808         when calling emit_remat_insns at the head of a block.
810 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
812         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
813         whether the current function needs to save at least part of a
814         register before using it.
815         (df_get_exit_block_use_set): Likewise for epilogue restores.
817 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
819         * df-problems.c: Include regs.h and function-abi.h.
820         (df_rd_problem_data): Rename sparse_invalidated_by_call to
821         sparse_invalidated_by_eh and dense_invalidated_by_call to
822         dense_invalidated_by_eh.
823         (df_print_bb_index): Update accordingly.
824         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
825         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
826         that are clobbered by an EH edge.  Clobber partially-clobbered
827         registers as well as fully-clobbered ones.
828         (df_md_confluence_n): Likewise.
829         (df_rd_local_compute): Likewise.  Update for changes to
830         df_rd_problem_data.
831         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
832         of registers that are clobbered by an EH edge.  Includde partially-
833         clobbered registers as well as fully-clobbered ones.
835 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
837         * cselib.c (cselib_process_insn): If we know what mode a
838         register was set in, check whether it is clobbered in that
839         mode by a call.  Only fall back to reg_raw_mode if that fails.
841 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
843         * cse.c: Include regs.h and function-abi.h.
844         (invalidate_for_call): Take the call insn as an argument.
845         Use insn_callee_abi to get the ABI of the call and invalidate
846         partially clobbered registers as well as fully clobbered ones.
847         (cse_insn): Update call accordingly.
849 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
851         * combine.c: Include function-abi.h.
852         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
853         of the target of call insns.  Invalidate partially-clobbered
854         registers as well as fully-clobbered ones.
856 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
858         * cfgloopanal.c: Include regs.h and function-abi.h.
859         (init_set_costs): Use default_function_abi to test whether
860         a general register is call-clobbered.
862 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
864         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
865         instead of the call-clobbered sets.
867 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
869         * caller-save.c (setup_save_areas): Remove redundant |s of
870         fixed_reg_set.
871         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
872         than call_used_or_fixed_regs to decide whether a REG_RETURNED
873         value is useful.
875 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
877         * rtl.h (predefined_function_abi): Declare.
878         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
879         instead of a boolean call_save flag.
880         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
881         accordingly.
882         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
883         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
884         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
885         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
886         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
887         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
888         * reginfo.c (init_reg_modes_target): Likewise.
889         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
890         instead of a boolean call_save flag.
891         * targhooks.c: Include function-abi.h.
892         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
893         using eh_edge_abi to choose the mode.
895 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
897         * target.def (hard_regno_call_part_clobbered): Take an ABI
898         identifier instead of an rtx_insn.
899         * doc/tm.texi: Regenerate.
900         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
901         (hook_bool_uint_uint_mode_false): New function.
902         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
903         (hook_bool_uint_uint_mode_false): New function.
904         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
905         Take an ABI identifier instead of an rtx_insn.
906         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
907         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
908         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
909         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
910         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
911         Likewise.
912         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
913         * cselib.c: Include function-abi.h.
914         (cselib_process_insn): Update call to
915         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
916         to get the appropriate ABI identifier.
917         * function-abi.cc (predefined_function_abi::initialize): Update call
918         to targetm.hard_regno_call_part_clobbered.
919         * ira-conflicts.c (ira_build_conflicts): Likewise.
920         * ira-costs.c (ira_tune_allocno_costs): Likewise.
921         * lra-constraints.c: Include function-abi.h.
922         (need_for_call_save_p): Update call to
923         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
924         to get the appropriate ABI identifier.
925         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
926         * regcprop.c (copyprop_hardreg_forward_1): Update call
927         to targetm.hard_regno_call_part_clobbered.
928         * reginfo.c (choose_hard_reg_mode): Likewise.
929         * regrename.c (check_new_reg_p): Likewise.
930         * reload.c (find_equiv_reg): Likewise.
931         * reload1.c (emit_reload_insns): Likewise.
932         * sched-deps.c: Include function-abi.h.
933         (deps_analyze_insn): Update call to
934         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
935         to get the appropriate ABI identifier.
936         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
937         call to targetm.hard_regno_call_part_clobbered.
938         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
940 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
942         * config/i386/i386.c: Include function-abi.h.
943         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
944         if they preserve some 256-bit or 512-bit SSE registers.
946 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
948         * target.def (insn_callee_abi): New hook.
949         (remove_extra_call_preserved_regs): Delete.
950         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
951         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
952         * doc/tm.texi: Regenerate.
953         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
954         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
955         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
956         insn argument.
957         (aarch64_remove_extra_call_preserved_regs): Delete.
958         (aarch64_insn_callee_abi): New function.
959         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
960         (TARGET_INSN_CALLEE_ABI): New macro.
961         * rtl.h (get_call_fndecl): Declare.
962         (cgraph_rtl_info): Fix formatting.  Tweak comment for
963         function_used_regs.  Remove function_used_regs_valid.
964         * rtlanal.c (get_call_fndecl): Moved from final.c
965         * function-abi.h (insn_callee_abi): Declare.
966         (target_function_abi_info): Mention insn_callee_abi.
967         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
968         way to get_call_reg_set_usage did.
969         (insn_callee_abi): New function.
970         * regs.h (get_call_reg_set_usage): Delete.
971         * final.c: Include function-abi.h.
972         (collect_fn_hard_reg_usage): Add fixed and stack registers to
973         function_used_regs before the main loop rather than afterwards.
974         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
975         if function_used_regs ends up not being useful.
976         (get_call_fndecl): Move to rtlanal.c
977         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
978         * caller-save.c: Include function-abi.h.
979         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
980         instead of get_call_reg_set_usage.
981         * cfgcleanup.c: Include function-abi.h.
982         (old_insns_match_p): Use insn_callee_abi instead of
983         get_call_reg_set_usage.
984         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
985         a tree.
986         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
987         function_used_regs.
988         * df-scan.c: Include function-abi.h.
989         (df_get_call_refs): Use insn_callee_abi instead of
990         get_call_reg_set_usage.
991         * ira-lives.c: Include function-abi.h.
992         (process_bb_node_lives): Use insn_callee_abi instead of
993         get_call_reg_set_usage.
994         * lra-lives.c: Include function-abi.h.
995         (process_bb_lives): Use insn_callee_abi instead of
996         get_call_reg_set_usage.
997         * postreload.c: Include function-abi.h.
998         (reload_combine): Use insn_callee_abi instead of
999         get_call_reg_set_usage.
1000         * regcprop.c: Include function-abi.h.
1001         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
1002         get_call_reg_set_usage.
1003         * resource.c: Include function-abi.h.
1004         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
1005         instead of get_call_reg_set_usage.
1006         * var-tracking.c: Include function-abi.h.
1007         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
1008         get_call_reg_set_usage.
1010 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1012         * target.def (fntype_abi): New target hook.
1013         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
1014         * doc/tm.texi: Regenerate.
1015         * target.h (predefined_function_abi): Declare.
1016         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
1017         if defined.
1018         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
1019         * config/aarch64/aarch64.c: Include function-abi.h.
1020         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
1021         (TARGET_FNTYPE_ABI): Define.
1023 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1025         * Makefile.in (OBJS): Add function-abi.o.
1026         (GTFILES): Add function-abi.h.
1027         * function-abi.cc: New file.
1028         * function-abi.h: Likewise.
1029         * emit-rtl.h (rtl_data::abi): New field.
1030         * function.c: Include function-abi.h.
1031         (prepare_function_start): Initialize crtl->abi.
1032         * read-rtl-function.c: Include regs.h and function-abi.h.
1033         (read_rtl_function_body): Initialize crtl->abi.
1034         (read_rtl_function_body_from_file_range): Likewise.
1035         * reginfo.c: Include function-abi.h.
1036         (init_reg_sets_1): Initialize default_function_abi.
1037         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
1038         when making a register global.
1039         * target-globals.h (this_target_function_abi_info): Declare.
1040         (target_globals::function_abi_info): New field.
1041         (restore_target_globals): Copy it.
1042         * target-globals.c: Include function-abi.h.
1043         (default_target_globals): Initialize the function_abi_info field.
1044         (target_globals): Allocate it.
1045         (save_target_globals): Free it.
1047 2019-09-30  Nick Clifton  <nickc@redhat.com>
1049         PR target/85978
1050         * config/frv/frv.c (frv_register_move_cost): Add break statements
1051         to avoid falling through to the wrong cases.  Tidy code.
1053 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1055         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1056         For multi-registers modes, test how big each register part is.
1058 2019-09-30  Nick Clifton  <nickc@redhat.com>
1060         PR target/59205
1061         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
1062         (TARGET_ASM_SELECT_SECTION): Remove definition.
1063         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
1065 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
1067         * emit-rtl.c (init_raw_REG): New function.
1068         (gen_raw_REG): Use init_raw_REG.
1069         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
1070         macros.
1071         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
1072         * rtl.h (rtx_init): New function.
1073         (rtx_alloca): New function.
1074         (init_raw_REG): New function.
1075         (alloca_raw_REG): New macro.
1077 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
1079         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
1080         (pcrel_local_address): Replace pcrel_address predicate, use the
1081         new function address_to_insn_form.
1082         (pcrel_external_address): Replace with new implementation using
1083         address_to_insn_form..
1084         (prefixed_mem_operand): Delete predicate which is now unused.
1085         (pcrel_external_mem_operand): Delete predicate which is now
1086         unused.
1087         * config/rs6000/rs6000-protos.h (enum insn_form): New
1088         enumeration.
1089         (enum non_prefixed_form): New enumeration.
1090         (address_to_insn_form): New declaration.
1091         (prefixed_load_p): New declaration.
1092         (prefixed_store_p): New declaration.
1093         (prefixed_paddi_p): New declaration.
1094         (rs6000_asm_output_opcode): New declaration.
1095         (rs6000_final_prescan_insn): Move declaration and update calling
1096         signature.
1097         (address_is_prefixed): New helper inline function.
1098         * config/rs6000/rs6000.c(print_operand_address): Check for either
1099         PC-relative local symbols or PC-relative external symbols.
1100         (rs6000_emit_move): Support loading PC-relative addresses.
1101         (mode_supports_prefixed_address_p): Delete, no longer used.
1102         (rs6000_prefixed_address_mode_p): Delete, no longer used.
1103         (address_to_insn_form): New function to decode an address format.
1104         (reg_to_non_prefixed): New function to identify what the
1105         non-prefixed memory instruction format is for a register.
1106         (prefixed_load_p): New function to identify prefixed loads.
1107         (prefixed_store_p): New function to identify prefixed stores.
1108         (prefixed_paddi_p): New function to identify prefixed load
1109         immediates.
1110         (next_insn_prefixed_p): New static state variable.
1111         (rs6000_final_prescan_insn): New function to determine if an insn
1112         uses a prefixed instruction.
1113         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
1114         prefixed instruction.
1115         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
1116         (ASM_OUTPUT_OPCODE): New target hook.
1117         * config/rs6000/rs6000.md (prefixed): New insn attribute for
1118         prefixed instructions.
1119         (prefixed_length): New insn attribute for the size of prefixed
1120         instructions.
1121         (non_prefixed_length): New insn attribute for the size of
1122         non-prefixed instructions.
1123         (pcrel_local_addr): New insn to load up a local PC-relative
1124         address.
1125         (pcrel_extern_addr): New insn to load up an external PC-relative
1126         address.
1127         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
1128         GPR and loading a 128-bit floating point type to a GPR.
1130 2019-09-30  Richard Biener  <rguenther@suse.de>
1132         * gimple.c (gimple_get_lhs): For PHIs return the result.
1133         * tree-vectorizer.h (vectorizable_live_operation): Also get the
1134         SLP instance as argument.
1135         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
1136         double-reduction PHIs with vectorizable_lc_phi.
1137         (vect_analyze_loop_operations): Adjust.
1138         (vect_create_epilog_for_reduction): Remove all code not dealing
1139         with reduction LC PHI or epilogue generation.
1140         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
1141         for live stmts of reductions.
1142         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
1143         do not handle defs that are not vect_internal_def.
1144         (can_vectorize_live_stmts): Adjust.
1145         (vect_analyze_stmt): When the vectorized stmt defined a value
1146         used on backedges adjust the backedge uses of vectorized PHIs.
1148 2019-09-30  Martin Jambor  <mjambor@suse.cz>
1150         PR ipa/91853
1151         * tree-inline.c (force_value_to_type): New function.
1152         (setup_one_parameter): Use force_value_to_type to convert type.
1153         * tree-inline.c (force_value_to_type): Declare.
1154         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
1155         with register type mismatches.
1157 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
1159         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
1160         32-bit PowerPC.
1161         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
1162         * config/rs6000/t-freebsd64: Make use of the above define and build
1163         the 32-bit libraries with secure-plt.
1165 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
1167         PR target/91931
1168         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
1169         gen_int_mode instead of GEN_INT.
1171 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
1173         * config/darwin.c (gen_macho_low): Amend to include the mode
1174         argument.
1175         (machopic_indirect_data_reference): Amend gen_macho_low call
1176         to include mode argument
1177         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
1178         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
1179         the macho_high expander and two define_insn entries.
1181 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
1183         PR bootstrap/90543
1184         * optc-save-gen.awk: Fix up printing string option differences.
1186 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
1188         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
1189         vec_perm cost to 1 for non-Power7 VSX architectures.
1191 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
1193         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
1194         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
1195         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
1197 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
1199         * config/darwin.c (gen_macho_high): Amend to include the mode
1200         argument.
1201         (machopic_indirect_data_reference): Amend gen_macho_high call
1202         to include mode argument.
1203         (machopic_legitimize_pic_address): Likewise.
1204         * config/rs6000/rs6000.c (rs6000_legitimize_address):
1205         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
1206         the macho_high expander and two define_insn entries.
1208 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
1210         PR target/86805
1211         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
1213 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
1215         PR target/80672
1216         * config/sh/sh.c (parse_validate_atomic_model_option): Use
1217         std::string::compare instead of std::string::find.
1219 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
1221         * configure: Regenerate.
1223 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
1225         PR middle-end/91920
1226         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
1227         variables as shared.
1229 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
1231         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
1232         replaces the expander and two define_insn entries.
1233         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
1234         call.
1235         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
1237 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
1239         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
1240         (fibonacci_heap::nodes): Likewise.
1241         (fibonacci_heap::min_key): Likewise.
1242         (fibonacci_heap::min): Likewise.
1244 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
1246         * cgraph.c (cgraph_node::get_fun): Make const.
1247         * cgraph.h (cgraph_node::get_fun): Likewise.
1249 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
1251         PR target/91919
1252         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
1253         of SImode MULT.
1255 2019-09-27  Richard Biener  <rguenther@suse.de>
1257         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
1258         (STMT_VINFO_REDUC_FN): Likewise.
1259         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
1260         STMT_VINFO_REDUC_FN.
1261         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
1262         for condition reductions.
1263         (vect_create_epilog_for_reduction): Compute all required state
1264         from the stmt to be vectorized.
1265         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
1266         invocation and remove then dead code.  For single def-use chains
1267         record only a single vector stmt.
1269 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
1271         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
1272         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
1273         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
1274         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
1275         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
1276         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
1277         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
1278         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
1279         (aarch64_general_builtin_rsqrt): Declare.
1280         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
1281         New function.
1282         (aarch64_mangle_builtin_type): Rename to...
1283         (aarch64_general_mangle_builtin_type): ...this.
1284         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
1285         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
1286         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
1287         aarch64_general_add_builtin instead of add_builtin_function.
1288         (aarch64_init_builtins): Rename to...
1289         (aarch64_general_init_builtins): ...this.  Use
1290         aarch64_general_add_builtin instead of add_builtin_function.
1291         (aarch64_builtin_decl): Rename to...
1292         (aarch64_general_builtin_decl): ...this and remove the unused
1293         arguments.
1294         (aarch64_expand_builtin): Rename to...
1295         (aarch64_general_expand_builtin): ...this and remove the unused
1296         arguments.
1297         (aarch64_builtin_rsqrt): Rename to...
1298         (aarch64_general_builtin_rsqrt): ...this.
1299         (aarch64_fold_builtin): Rename to...
1300         (aarch64_general_fold_builtin): ...this.  Take the function subcode
1301         and return type as arguments.  Remove the "ignored" argument.
1302         (aarch64_gimple_fold_builtin): Rename to...
1303         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
1304         subcode and gcall as arguments, and return the new function call.
1305         * config/aarch64/aarch64.c (aarch64_init_builtins)
1306         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
1307         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
1308         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
1309         instead of aarch64_builtin_rsqrt.
1310         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
1311         instead of aarch64_mangle_builtin_type.
1313 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
1315         * target.def (check_builtin_call): New target hook.
1316         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
1317         * doc/tm.texi: Regenerate.
1319 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
1321         PR tree-optimization/91909
1322         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
1323         reduc_index parameter.  When handling COND_REDUCTION, make sure
1324         that the reduction phi operand is in the correct arm of the
1325         VEC_COND_EXPR.
1326         (vectorizable_reduction): Pass reduc_index to the above.
1328 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
1330         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
1331         New combine pattern.
1333 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
1335         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
1336         loop instruction into new basic block before the loop when basic
1337         block that precedes the loop is empty.
1339 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
1341         * function.c (gimplify_parameters): Use build_clobber function.
1342         * tree-ssa.c (execute_update_addresses_taken): Likewise.
1343         * tree-inline.c (expand_call_inline): Likewise.
1344         * tree-sra.c (clobber_subtree): Likewise.
1345         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
1346         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
1347         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
1348         lower_omp_target): Likewise.
1349         * omp-expand.c (expand_omp_for_generic): Likewise.
1350         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
1352 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
1354         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
1355         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
1356         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
1357         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
1358         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
1359         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
1360         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
1361         LD_ELEMREV_V16QI): Use the PURE attribute.
1363 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
1365         * config/rs6000/darwin.md: Replace the expanders for
1366         load_macho_picbase and reload_macho_picbase with use of '@'
1367         and <mode> in their respective define_insns.
1368         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
1369         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
1370         Pmode to gen_load_macho_picbase.
1371         * config/rs6000/rs6000.md: Likewise.
1373 2019-09-25  Richard Biener  <rguenther@suse.de>
1375         PR tree-optimization/91896
1376         * tree-vect-loop.c (vectorizable_reduction): The single
1377         def-use cycle optimization cannot apply when there's more
1378         than one pattern stmt involved.
1380 2019-09-26  Richard Biener  <rguenther@suse.de>
1382         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
1383         loop-closed PHIs that are vect_internal_def.
1384         (vect_create_epilog_for_reduction): Exit early for nested cycles.
1385         Simplify.
1386         (vectorizable_lc_phi): New.
1387         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
1388         (vect_transform_stmt): Likewise.
1389         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
1390         (vectorizable_lc_phi): Declare.
1392 2019-09-26  Richard Biener  <rguenther@suse.de>
1394         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
1395         vectorizable_reduction for vect_double_reduction_def.
1396         (vect_transform_loop): Likewise.
1397         (vect_create_epilog_for_reduction): Move double-reduction
1398         PHI creation and preheader argument setting of PHIs ...
1399         (vectorizable_reduction): ... here.  Also process
1400         vect_double_reduction_def PHIs, creating the vectorized
1401         PHI nodes, remembering the scalar adjustment computed for
1402         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
1403         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
1404         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
1405         Initialize STMT_VINFO_REDUC_CODE.
1406         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
1407         (_stmt_vec_info::reduc_code): Likewise.
1408         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
1409         (STMT_VINFO_REDUC_CODE): Likewise.
1411 2019-09-26  Matt Turner  <mattst88@gmail.com>
1413         PR driver/69471
1414         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
1415         (mtune=): Add Negative(mtune=).
1416         (mcpu=): Add Negative(mcpu=).
1417         * config/arm/arm.opt: Likewise.
1419 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1421         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
1422         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
1423         Define.
1424         * config/arm/arm_acle.h: Define builtins for the above.
1425         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
1426         (simd32_op): Handle the above.
1427         * config/arm/unspecs.md: Define unspecs for the above.
1429 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1431         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
1432         (arm_<sup>xtb16): Likewise.
1433         (arm_usada8): Likewise.
1434         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
1435         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
1436         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
1437         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
1438         __sxtb16, __uxtab16, __uxtb16): Define.
1439         * config/arm/arm_acle_builtins.def: Define builtins for the above.
1440         * config/arm/unspecs.md: Define unspecs for the above.
1441         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
1442         (USXTB16): Likewise.
1443         (simd32_op): New int_attribute.
1444         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
1445         * doc/sourcebuild.exp (arm_simd32_ok): Document.
1447 2019-09-26  Martin Jambor  <mjambor@suse.cz>
1449         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
1450         internal_error.
1452 2019-09-26  Martin Jambor  <mjambor@suse.cz>
1454         * ipa-sra.c (process_scan_results): Fix continue condition.
1456 2019-09-26  Martin Liska  <mliska@suse.cz>
1458         PR tree-optimization/91885
1459         * tree-vectorizer.c (try_vectorize_loop_1): Add
1460         TODO_update_ssa_only_virtuals similarly to what slp pass does.
1462 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
1464         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
1465         aarch64_plus_immediate rather than aarch64_uimm12_shift
1466         to test for valid PLUS immediates.
1468 2019-09-25  Martin Jambor  <mjambor@suse.cz>
1470         * tree-sra.c (no_accesses_p): Remove.
1471         (no_accesses_representant): Likewise.
1473 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
1475         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
1476         consistenly.
1477         (vaba_s16): Likewise.
1478         (vaba_s32): Likewise.
1479         (vaba_u8): Likewise.
1480         (vaba_u16): Likewise.
1481         (vaba_u32): Likewise.
1482         (vabal_high_s8): Likewise.
1483         (vabal_high_s16): Likewise.
1484         (vabal_high_s32): Likewise.
1485         (vabal_high_u8): Likewise.
1486         (vabal_high_u16): Likewise.
1487         (vabal_high_u32): Likewise.
1488         (vabal_s8): Likewise.
1489         (vabal_s16): Likewise.
1490         (vabal_s32): Likewise.
1491         (vabal_u8): Likewise.
1492         (vabal_u16): Likewise.
1493         (vabal_u32): Likewise.
1494         (vabaq_s8): Likewise.
1495         (vabaq_s16): Likewise.
1496         (vabaq_s32): Likewise.
1497         (vabaq_u8): Likewise.
1498         (vabaq_u16): Likewise.
1499         (vabaq_u32): Likewise.
1500         (vabd_s8): Likewise.
1501         (vabd_s16): Likewise.
1502         (vabd_s32): Likewise.
1503         (vabd_u8): Likewise.
1504         (vabd_u16): Likewise.
1505         (vabd_u32): Likewise.
1506         (vabdl_high_s8): Likewise.
1507         (vabdl_high_s16): Likewise.
1508         (vabdl_high_s32): Likewise.
1509         (vabdl_high_u8): Likewise.
1510         (vabdl_high_u16): Likewise.
1511         (vabdl_high_u32): Likewise.
1512         (vabdl_s8): Likewise.
1513         (vabdl_s16): Likewise.
1514         (vabdl_s32): Likewise.
1515         (vabdl_u8): Likewise.
1516         (vabdl_u16): Likewise.
1517         (vabdl_u32): Likewise.
1518         (vabdq_s8): Likewise.
1519         (vabdq_s16): Likewise.
1520         (vabdq_s32): Likewise.
1521         (vabdq_u8): Likewise.
1522         (vabdq_u16): Likewise.
1523         (vabdq_u32): Likewise.
1524         (vaddlv_s8): Likewise.
1525         (vaddlv_s16): Likewise.
1526         (vaddlv_u8): Likewise.
1527         (vaddlv_u16): Likewise.
1528         (vaddlvq_s8): Likewise.
1529         (vaddlvq_s16): Likewise.
1530         (vaddlvq_s32): Likewise.
1531         (vaddlvq_u8): Likewise.
1532         (vaddlvq_u16): Likewise.
1533         (vaddlvq_u32): Likewise.
1534         (vcvtx_f32_f64): Likewise.
1535         (vcvtx_high_f32_f64): Likewise.
1536         (vcvtxd_f32_f64): Likewise.
1537         (vmla_n_f32): Likewise.
1538         (vmla_n_s16): Likewise.
1539         (vmla_n_s32): Likewise.
1540         (vmla_n_u16): Likewise.
1541         (vmla_n_u32): Likewise.
1542         (vmla_s8): Likewise.
1543         (vmla_s16): Likewise.
1544         (vmla_s32): Likewise.
1545         (vmla_u8): Likewise.
1546         (vmla_u16): Likewise.
1547         (vmla_u32): Likewise.
1548         (vmlal_high_n_s16): Likewise.
1549         (vmlal_high_n_s32): Likewise.
1550         (vmlal_high_n_u16): Likewise.
1551         (vmlal_high_n_u32): Likewise.
1552         (vmlal_high_s8): Likewise.
1553         (vmlal_high_s16): Likewise.
1554         (vmlal_high_s32): Likewise.
1555         (vmlal_high_u8): Likewise.
1556         (vmlal_high_u16): Likewise.
1557         (vmlal_high_u32): Likewise.
1558         (vmlal_n_s16): Likewise.
1559         (vmlal_n_s32): Likewise.
1560         (vmlal_n_u16): Likewise.
1561         (vmlal_n_u32): Likewise.
1562         (vmlal_s8): Likewise.
1563         (vmlal_s16): Likewise.
1564         (vmlal_s32): Likewise.
1565         (vmlal_u8): Likewise.
1566         (vmlal_u16): Likewise.
1567         (vmlal_u32): Likewise.
1568         (vmlaq_n_f32): Likewise.
1569         (vmlaq_n_s16): Likewise.
1570         (vmlaq_n_s32): Likewise.
1571         (vmlaq_n_u16): Likewise.
1572         (vmlaq_n_u32): Likewise.
1573         (vmlaq_s8): Likewise.
1574         (vmlaq_s16): Likewise.
1575         (vmlaq_s32): Likewise.
1576         (vmlaq_u8): Likewise.
1577         (vmlaq_u16): Likewise.
1578         (vmlaq_u32): Likewise.
1579         (vmls_n_f32): Likewise.
1580         (vmls_n_s16): Likewise.
1581         (vmls_n_s32): Likewise.
1582         (vmls_n_u16): Likewise.
1583         (vmls_n_u32): Likewise.
1584         (vmls_s8): Likewise.
1585         (vmls_s16): Likewise.
1586         (vmls_s32): Likewise.
1587         (vmls_u8): Likewise.
1588         (vmls_u16): Likewise.
1589         (vmls_u32): Likewise.
1590         (vmlsl_high_n_s16): Likewise.
1591         (vmlsl_high_n_s32): Likewise.
1592         (vmlsl_high_n_u16): Likewise.
1593         (vmlsl_high_n_u32): Likewise.
1594         (vmlsl_high_s8): Likewise.
1595         (vmlsl_high_s16): Likewise.
1596         (vmlsl_high_s32): Likewise.
1597         (vmlsl_high_u8): Likewise.
1598         (vmlsl_high_u16): Likewise.
1599         (vmlsl_high_u32): Likewise.
1600         (vmlsl_n_s16): Likewise.
1601         (vmlsl_n_s32): Likewise.
1602         (vmlsl_n_u16): Likewise.
1603         (vmlsl_n_u32): Likewise.
1604         (vmlsl_s8): Likewise.
1605         (vmlsl_s16): Likewise.
1606         (vmlsl_s32): Likewise.
1607         (vmlsl_u8): Likewise.
1608         (vmlsl_u16): Likewise.
1609         (vmlsl_u32): Likewise.
1610         (vmlsq_n_f32): Likewise.
1611         (vmlsq_n_s16): Likewise.
1612         (vmlsq_n_s32): Likewise.
1613         (vmlsq_n_u16): Likewise.
1614         (vmlsq_n_u32): Likewise.
1615         (vmlsq_s8): Likewise.
1616         (vmlsq_s16): Likewise.
1617         (vmlsq_s32): Likewise.
1618         (vmlsq_u8): Likewise.
1619         (vmlsq_u16): Likewise.
1620         (vmlsq_u32): Likewise.
1621         (vmovl_high_s8): Likewise.
1622         (vmovl_high_s16): Likewise.
1623         (vmovl_high_s32): Likewise.
1624         (vmovl_high_u8): Likewise.
1625         (vmovl_high_u16): Likewise.
1626         (vmovl_high_u32): Likewise.
1627         (vmovl_s8): Likewise.
1628         (vmovl_s16): Likewise.
1629         (vmovl_s32): Likewise.
1630         (vmovl_u8): Likewise.
1631         (vmovl_u16): Likewise.
1632         (vmovl_u32): Likewise.
1633         (vmovn_high_s16): Likewise.
1634         (vmovn_high_s32): Likewise.
1635         (vmovn_high_s64): Likewise.
1636         (vmovn_high_u16): Likewise.
1637         (vmovn_high_u32): Likewise.
1638         (vmovn_high_u64): Likewise.
1639         (vmovn_s16): Likewise.
1640         (vmovn_s32): Likewise.
1641         (vmovn_s64): Likewise.
1642         (vmovn_u16): Likewise.
1643         (vmovn_u32): Likewise.
1644         (vmovn_u64): Likewise.
1645         (vmull_high_n_s16): Likewise.
1646         (vmull_high_n_s32): Likewise.
1647         (vmull_high_n_u16): Likewise.
1648         (vmull_high_n_u32): Likewise.
1649         (vmull_high_p8): Likewise.
1650         (vmull_high_s8): Likewise.
1651         (vmull_high_s16): Likewise.
1652         (vmull_high_s32): Likewise.
1653         (vmull_high_u8): Likewise.
1654         (vmull_high_u16): Likewise.
1655         (vmull_high_u32): Likewise.
1656         (vmull_n_s16): Likewise.
1657         (vmull_n_s32): Likewise.
1658         (vmull_n_u16): Likewise.
1659         (vmull_n_u32): Likewise.
1660         (vmull_p8): Likewise.
1661         (vmull_s8): Likewise.
1662         (vmull_s16): Likewise.
1663         (vmull_s32): Likewise.
1664         (vmull_u8): Likewise.
1665         (vmull_u16): Likewise.
1666         (vmull_u32): Likewise.
1667         (vpadal_s8): Likewise.
1668         (vpadal_s16): Likewise.
1669         (vpadal_s32): Likewise.
1670         (vpadal_u8): Likewise.
1671         (vpadal_u16): Likewise.
1672         (vpadal_u32): Likewise.
1673         (vpadalq_s8): Likewise.
1674         (vpadalq_s16): Likewise.
1675         (vpadalq_s32): Likewise.
1676         (vpadalq_u8): Likewise.
1677         (vpadalq_u16): Likewise.
1678         (vpadalq_u32): Likewise.
1679         (vpaddl_s8): Likewise.
1680         (vpaddl_s16): Likewise.
1681         (vpaddl_s32): Likewise.
1682         (vpaddl_u8): Likewise.
1683         (vpaddl_u16): Likewise.
1684         (vpaddl_u32): Likewise.
1685         (vpaddlq_s8): Likewise.
1686         (vpaddlq_s16): Likewise.
1687         (vpaddlq_s32): Likewise.
1688         (vpaddlq_u8): Likewise.
1689         (vpaddlq_u16): Likewise.
1690         (vpaddlq_u32): Likewise.
1691         (vpaddq_s8): Likewise.
1692         (vpaddq_s16): Likewise.
1693         (vpaddq_s32): Likewise.
1694         (vpaddq_s64): Likewise.
1695         (vpaddq_u8): Likewise.
1696         (vpaddq_u16): Likewise.
1697         (vpaddq_u32): Likewise.
1698         (vpaddq_u64): Likewise.
1699         (vqdmulh_n_s16): Likewise.
1700         (vqdmulh_n_s32): Likewise.
1701         (vqdmulhq_n_s16): Likewise.
1702         (vqdmulhq_n_s32): Likewise.
1703         (vqmovn_high_s16): Likewise.
1704         (vqmovn_high_s32): Likewise.
1705         (vqmovn_high_s64): Likewise.
1706         (vqmovn_high_u16): Likewise.
1707         (vqmovn_high_u32): Likewise.
1708         (vqmovn_high_u64): Likewise.
1709         (vqmovun_high_s16): Likewise.
1710         (vqmovun_high_s32): Likewise.
1711         (vqmovun_high_s64): Likewise.
1712         (vqrdmulh_n_s16): Likewise.
1713         (vqrdmulh_n_s32): Likewise.
1714         (vqrdmulhq_n_s16): Likewise.
1715         (vqrdmulhq_n_s32): Likewise.
1716         (vrsqrte_u32): Likewise.
1717         (vrsqrteq_u32): Likewise.
1718         (vtst_p8): Likewise.
1719         (vtst_p16): Likewise.
1720         (vtst_p64): Likewise.
1721         (vtstq_p8): Likewise.
1722         (vtstq_p16): Likewise.
1723         (vtstq_p64): Likewise.
1724         (vaddlv_s32): Likewise.
1725         (vaddlv_u32): Likewise.
1726         (vqtbl1_p8): Likewise.
1727         (vqtbl1_s8): Likewise.
1728         (vqtbl1_u8): Likewise.
1729         (vqtbl1q_p8): Likewise.
1730         (vqtbl1q_s8): Likewise.
1731         (vqtbl1q_u8): Likewise.
1732         (vqtbx1_s8): Likewise.
1733         (vqtbx1_u8): Likewise.
1734         (vqtbx1_p8): Likewise.
1735         (vqtbx1q_s8): Likewise.
1736         (vqtbx1q_u8): Likewise.
1737         (vqtbx1q_p8): Likewise.
1738         (vtbl1_s8): Likewise.
1739         (vtbl1_u8): Likewise.
1740         (vtbl1_p8): Likewise.
1741         (vtbl2_s8): Likewise.
1742         (vtbl2_u8): Likewise.
1743         (vtbl2_p8): Likewise.
1744         (vtbl3_s8): Likewise.
1745         (vtbl3_u8): Likewise.
1746         (vtbl3_p8): Likewise.
1747         (vtbl4_s8): Likewise.
1748         (vtbl4_u8): Likewise.
1749         (vtbl4_p8): Likewise.
1750         (vtbx2_s8): Likewise.
1751         (vtbx2_u8): Likewise.
1752         (vtbx2_p8): Likewise.
1753         (vld1_f32): Likewise.
1754         (vld1_f64): Likewise.
1755         (vld1_p8): Likewise.
1756         (vld1_p16): Likewise.
1757         (vld1_p64): Likewise.
1758         (vld1_s8): Likewise.
1759         (vld1_s16): Likewise.
1760         (vld1_s32): Likewise.
1761         (vld1_s64): Likewise.
1762         (vld1_u8): Likewise.
1763         (vld1_u16): Likewise.
1764         (vld1_u32): Likewise.
1765         (vld1_u64): Likewise.
1766         (vld1q_f32): Likewise.
1767         (vld1q_f64): Likewise.
1768         (vld1q_p8): Likewise.
1769         (vld1q_p16): Likewise.
1770         (vld1q_p64): Likewise.
1771         (vld1q_s8): Likewise.
1772         (vld1q_s16): Likewise.
1773         (vld1q_s32): Likewise.
1774         (vld1q_s64): Likewise.
1775         (vld1q_u8): Likewise.
1776         (vld1q_u16): Likewise.
1777         (vld1q_u32): Likewise.
1778         (vld1q_u64): Likewise.
1779         (vpmax_s8): Likewise.
1780         (vpmax_s16): Likewise.
1781         (vpmax_s32): Likewise.
1782         (vpmax_u8): Likewise.
1783         (vpmax_u16): Likewise.
1784         (vpmax_u32): Likewise.
1785         (vpmaxq_s8): Likewise.
1786         (vpmaxq_s16): Likewise.
1787         (vpmaxq_s32): Likewise.
1788         (vpmaxq_u8): Likewise.
1789         (vpmaxq_u16): Likewise.
1790         (vpmaxq_u32): Likewise.
1791         (vpmax_f32): Likewise.
1792         (vpmaxq_f32): Likewise.
1793         (vpmaxq_f64): Likewise.
1794         (vpmaxqd_f64): Likewise.
1795         (vpmaxs_f32): Likewise.
1796         (vpmaxnm_f32): Likewise.
1797         (vpmaxnmq_f32): Likewise.
1798         (vpmaxnmq_f64): Likewise.
1799         (vpmaxnmqd_f64): Likewise.
1800         (vpmaxnms_f32): Likewise.
1801         (vpmin_s8): Likewise.
1802         (vpmin_s16): Likewise.
1803         (vpmin_s32): Likewise.
1804         (vpmin_u8): Likewise.
1805         (vpmin_u16): Likewise.
1806         (vpmin_u32): Likewise.
1807         (vpminq_s8): Likewise.
1808         (vpminq_s16): Likewise.
1809         (vpminq_s32): Likewise.
1810         (vpminq_u8): Likewise.
1811         (vpminq_u16): Likewise.
1812         (vpminq_u32): Likewise.
1813         (vpmin_f32): Likewise.
1814         (vpminq_f32): Likewise.
1815         (vpminq_f64): Likewise.
1816         (vpminqd_f64): Likewise.
1817         (vpmins_f32): Likewise.
1818         (vpminnm_f32): Likewise.
1819         (vpminnmq_f32): Likewise.
1820         (vpminnmq_f64): Likewise.
1821         (vpminnmqd_f64): Likewise.
1822         (vpminnms_f32): Likewise.
1823         (vmla_f32): Likewise.
1824         (vmlaq_f32): Likewise.
1825         (vmlaq_f64): Likewise.
1826         (vmls_f32): Likewise.
1827         (vmlsq_f32): Likewise.
1828         (vmlsq_f64): Likewise.
1829         (vqtbl2_s8): Likewise.
1830         (vqtbl2_u8): Likewise.
1831         (vqtbl2_p8): Likewise.
1832         (vqtbl2q_s8): Likewise.
1833         (vqtbl2q_u8): Likewise.
1834         (vqtbl2q_p8): Likewise.
1835         (vqtbl3_s8): Likewise.
1836         (vqtbl3_u8): Likewise.
1837         (vqtbl3_p8): Likewise.
1838         (vqtbl3q_s8): Likewise.
1839         (vqtbl3q_u8): Likewise.
1840         (vqtbl3q_p8): Likewise.
1841         (vqtbl4_s8): Likewise.
1842         (vqtbl4_u8): Likewise.
1843         (vqtbl4_p8): Likewise.
1844         (vqtbl4q_s8): Likewise.
1845         (vqtbl4q_u8): Likewise.
1846         (vqtbl4q_p8): Likewise.
1847         (vqtbx2_s8): Likewise.
1848         (vqtbx2_u8): Likewise.
1849         (vqtbx2_p8): Likewise.
1850         (vqtbx2q_s8): Likewise.
1851         (vqtbx2q_u8): Likewise.
1852         (vqtbx2q_p8): Likewise.
1853         (vqtbx3_s8): Likewise.
1854         (vqtbx3_u8): Likewise.
1855         (vqtbx3_p8): Likewise.
1856         (vqtbx3q_s8): Likewise.
1857         (vqtbx3q_u8): Likewise.
1858         (vqtbx3q_p8): Likewise.
1859         (vqtbx4_s8): Likewise.
1860         (vqtbx4_u8): Likewise.
1861         (vqtbx4_p8): Likewise.
1862         (vqtbx4q_s8): Likewise.
1863         (vqtbx4q_u8): Likewise.
1864         (vqtbx4q_p8): Likewise.
1865         (vrev16_p8): Likewise.
1866         (vrev16_s8): Likewise.
1867         (vrev16_u8): Likewise.
1868         (vrev16q_p8): Likewise.
1869         (vrev16q_s8): Likewise.
1870         (vrev16q_u8): Likewise.
1871         (vrev32_p8): Likewise.
1872         (vrev32_p16): Likewise.
1873         (vrev32_s8): Likewise.
1874         (vrev32_s16): Likewise.
1875         (vrev32_u8): Likewise.
1876         (vrev32_u16): Likewise.
1877         (vrev32q_p8): Likewise.
1878         (vrev32q_p16): Likewise.
1879         (vrev32q_s8): Likewise.
1880         (vrev32q_s16): Likewise.
1881         (vrev32q_u8): Likewise.
1882         (vrev32q_u16): Likewise.
1883         (vrev64_f32): Likewise.
1884         (vrev64_p8): Likewise.
1885         (vrev64_p16): Likewise.
1886         (vrev64_s8): Likewise.
1887         (vrev64_s16): Likewise.
1888         (vrev64_s32): Likewise.
1889         (vrev64_u8): Likewise.
1890         (vrev64_u16): Likewise.
1891         (vrev64_u32): Likewise.
1892         (vrev64q_f32): Likewise.
1893         (vrev64q_p8): Likewise.
1894         (vrev64q_p16): Likewise.
1895         (vrev64q_s8): Likewise.
1896         (vrev64q_s16): Likewise.
1897         (vrev64q_s32): Likewise.
1898         (vrev64q_u8): Likewise.
1899         (vrev64q_u16): Likewise.
1900         (vrev64q_u32): Likewise.
1901         (vsha1cq_u32): Likewise.
1902         (vsha1mq_u32): Likewise.
1903         (vsha1pq_u32): Likewise.
1904         (vsha1h_u32): Likewise.
1905         (vsha1su0q_u32): Likewise.
1906         (vsha1su1q_u32): Likewise.
1907         (vsha256hq_u32): Likewise.
1908         (vsha256h2q_u32): Likewise.
1909         (vsha256su0q_u32): Likewise.
1910         (vsha256su1q_u32): Likewise.
1911         (vmull_p64): Likewise.
1912         (vmull_high_p64): Likewise.
1913         (vsqrt_f32): Likewise.
1914         (vsqrtq_f32): Likewise.
1915         (vsqrt_f64): Likewise.
1916         (vsqrtq_f64): Likewise.
1917         (vst1_f32): Likewise.
1918         (vst1_f64): Likewise.
1919         (vst1_p8): Likewise.
1920         (vst1_p16): Likewise.
1921         (vst1_p64): Likewise.
1922         (vst1_s8): Likewise.
1923         (vst1_s16): Likewise.
1924         (vst1_s32): Likewise.
1925         (vst1_s64): Likewise.
1926         (vst1_u8): Likewise.
1927         (vst1_u16): Likewise.
1928         (vst1_u32): Likewise.
1929         (vst1_u64): Likewise.
1930         (vst1q_f32): Likewise.
1931         (vst1q_f64): Likewise.
1932         (vst1q_p8): Likewise.
1933         (vst1q_p16): Likewise.
1934         (vst1q_p64): Likewise.
1935         (vst1q_s8): Likewise.
1936         (vst1q_s16): Likewise.
1937         (vst1q_s32): Likewise.
1938         (vst1q_s64): Likewise.
1939         (vst1q_u8): Likewise.
1940         (vst1q_u16): Likewise.
1941         (vst1q_u32): Likewise.
1942         (vst1q_u64): Likewise.
1943         (vst1_s64_x2): Likewise.
1944         (vst1_u64_x2): Likewise.
1945         (vst1_f64_x2): Likewise.
1946         (vst1_s8_x2): Likewise.
1947         (vst1_p8_x2): Likewise.
1948         (vst1_s16_x2): Likewise.
1949         (vst1_p16_x2): Likewise.
1950         (vst1_s32_x2): Likewise.
1951         (vst1_u8_x2): Likewise.
1952         (vst1_u16_x2): Likewise.
1953         (vst1_u32_x2): Likewise.
1954         (vst1_f16_x2): Likewise.
1955         (vst1_f32_x2): Likewise.
1956         (vst1_p64_x2): Likewise.
1957         (vst1q_s8_x2): Likewise.
1958         (vst1q_p8_x2): Likewise.
1959         (vst1q_s16_x2): Likewise.
1960         (vst1q_p16_x2): Likewise.
1961         (vst1q_s32_x2): Likewise.
1962         (vst1q_s64_x2): Likewise.
1963         (vst1q_u8_x2): Likewise.
1964         (vst1q_u16_x2): Likewise.
1965         (vst1q_u32_x2): Likewise.
1966         (vst1q_u64_x2): Likewise.
1967         (vst1q_f16_x2): Likewise.
1968         (vst1q_f32_x2): Likewise.
1969         (vst1q_f64_x2): Likewise.
1970         (vst1q_p64_x2): Likewise.
1971         (vst1_s64_x3): Likewise.
1972         (vst1_u64_x3): Likewise.
1973         (vst1_f64_x3): Likewise.
1974         (vst1_s8_x3): Likewise.
1975         (vst1_p8_x3): Likewise.
1976         (vst1_s16_x3): Likewise.
1977         (vst1_p16_x3): Likewise.
1978         (vst1_s32_x3): Likewise.
1979         (vst1_u8_x3): Likewise.
1980         (vst1_u16_x3): Likewise.
1981         (vst1_u32_x3): Likewise.
1982         (vst1_f16_x3): Likewise.
1983         (vst1_f32_x3): Likewise.
1984         (vst1_p64_x3): Likewise.
1985         (vst1q_s8_x3): Likewise.
1986         (vst1q_p8_x3): Likewise.
1987         (vst1q_s16_x3): Likewise.
1988         (vst1q_p16_x3): Likewise.
1989         (vst1q_s32_x3): Likewise.
1990         (vst1q_s64_x3): Likewise.
1991         (vst1q_u8_x3): Likewise.
1992         (vst1q_u16_x3): Likewise.
1993         (vst1q_u32_x3): Likewise.
1994         (vst1q_u64_x3): Likewise.
1995         (vst1q_f16_x3): Likewise.
1996         (vst1q_f32_x3): Likewise.
1997         (vst1q_f64_x3): Likewise.
1998         (vst1q_p64_x3): Likewise.
1999         (vst2_s64): Likewise.
2000         (vst2_u64): Likewise.
2001         (vst2_f64): Likewise.
2002         (vst2_s8): Likewise.
2003         (vst2_p8): Likewise.
2004         (vst2_s16): Likewise.
2005         (vst2_p16): Likewise.
2006         (vst2_s32): Likewise.
2007         (vst2_u8): Likewise.
2008         (vst2_u16): Likewise.
2009         (vst2_u32): Likewise.
2010         (vst2_f16): Likewise.
2011         (vst2_f32): Likewise.
2012         (vst2_p64): Likewise.
2013         (vst2q_s8): Likewise.
2014         (vst2q_p8): Likewise.
2015         (vst2q_s16): Likewise.
2016         (vst2q_p16): Likewise.
2017         (vst2q_s32): Likewise.
2018         (vst2q_s64): Likewise.
2019         (vst2q_u8): Likewise.
2020         (vst2q_u16): Likewise.
2021         (vst2q_u32): Likewise.
2022         (vst2q_u64): Likewise.
2023         (vst2q_f16): Likewise.
2024         (vst2q_f32): Likewise.
2025         (vst2q_f64): Likewise.
2026         (vst2q_p64): Likewise.
2027         (vst3_s64): Likewise.
2028         (vst3_u64): Likewise.
2029         (vst3_f64): Likewise.
2030         (vst3_s8): Likewise.
2031         (vst3_p8): Likewise.
2032         (vst3_s16): Likewise.
2033         (vst3_p16): Likewise.
2034         (vst3_s32): Likewise.
2035         (vst3_u8): Likewise.
2036         (vst3_u16): Likewise.
2037         (vst3_u32): Likewise.
2038         (vst3_f16): Likewise.
2039         (vst3_f32): Likewise.
2040         (vst3_p64): Likewise.
2041         (vst3q_s8): Likewise.
2042         (vst3q_p8): Likewise.
2043         (vst3q_s16): Likewise.
2044         (vst3q_p16): Likewise.
2045         (vst3q_s32): Likewise.
2046         (vst3q_s64): Likewise.
2047         (vst3q_u8): Likewise.
2048         (vst3q_u16): Likewise.
2049         (vst3q_u32): Likewise.
2050         (vst3q_u64): Likewise.
2051         (vst3q_f16): Likewise.
2052         (vst3q_f32): Likewise.
2053         (vst3q_f64): Likewise.
2054         (vst3q_p64): Likewise.
2055         (vst4_s64): Likewise.
2056         (vst4_u64): Likewise.
2057         (vst4_f64): Likewise.
2058         (vst4_s8): Likewise.
2059         (vst4_p8): Likewise.
2060         (vst4_s16): Likewise.
2061         (vst4_p16): Likewise.
2062         (vst4_s32): Likewise.
2063         (vst4_u8): Likewise.
2064         (vst4_u16): Likewise.
2065         (vst4_u32): Likewise.
2066         (vst4_f16): Likewise.
2067         (vst4_f32): Likewise.
2068         (vst4_p64): Likewise.
2069         (vst4q_s8): Likewise.
2070         (vst4q_p8): Likewise.
2071         (vst4q_s16): Likewise.
2072         (vst4q_p16): Likewise.
2073         (vst4q_s32): Likewise.
2074         (vst4q_s64): Likewise.
2075         (vst4q_u8): Likewise.
2076         (vst4q_u16): Likewise.
2077         (vst4q_u32): Likewise.
2078         (vst4q_u64): Likewise.
2079         (vst4q_f16): Likewise.
2080         (vst4q_f32): Likewise.
2081         (vst4q_f64): Likewise.
2082         (vst4q_p64): Likewise.
2083         (vtbx4_s8): Likewise.
2084         (vtbx4_u8): Likewise.
2085         (vtbx4_p8): Likewise.
2086         (vtrn_f32): Likewise.
2087         (vtrn_p8): Likewise.
2088         (vtrn_p16): Likewise.
2089         (vtrn_s8): Likewise.
2090         (vtrn_s16): Likewise.
2091         (vtrn_s32): Likewise.
2092         (vtrn_u8): Likewise.
2093         (vtrn_u16): Likewise.
2094         (vtrn_u32): Likewise.
2095         (vtrnq_f32): Likewise.
2096         (vtrnq_p8): Likewise.
2097         (vtrnq_p16): Likewise.
2098         (vtrnq_s8): Likewise.
2099         (vtrnq_s16): Likewise.
2100         (vtrnq_s32): Likewise.
2101         (vtrnq_u8): Likewise.
2102         (vtrnq_u16): Likewise.
2103         (vtrnq_u32): Likewise.
2104         (vrsqrte_f16): Likewise.
2105         (vrsqrteq_f16): Likewise.
2106         (vsqrt_f16): Likewise.
2107         (vsqrtq_f16): Likewise.
2108         (vabd_f16): Likewise.
2109         (vabdq_f16): Likewise.
2110         (vpadd_f16): Likewise.
2111         (vpaddq_f16): Likewise.
2112         (vpmax_f16): Likewise.
2113         (vpmaxq_f16): Likewise.
2114         (vpmaxnm_f16): Likewise.
2115         (vpmaxnmq_f16): Likewise.
2116         (vpmin_f16): Likewise.
2117         (vpminq_f16): Likewise.
2118         (vpminnm_f16): Likewise.
2119         (vpminnmq_f16): Likewise.
2120         (vrsqrts_f16): Likewise.
2121         (vrsqrtsq_f16): Likewise.
2123 2019-09-25  Richard Biener  <rguenther@suse.de>
2125         PR tree-optimization/91896
2126         * tree-vect-loop.c (vectorizable_reduction): The single
2127         def-use cycle optimization cannot apply when there's more
2128         than one pattern stmt involved.
2130 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
2132         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
2133         the 'P' mode iterator, replacing the (removed) SI and DI variants.
2134         (reload_macho_picbase_<mode>): Likewise.
2136 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
2138         * config/rs6000/rs6000.md: Move darwin.md include until
2139         after the definition of the mode iterators.
2141 2019-09-23  Martin Sebor  <msebor@redhat.com>
2143         PR tree-optimization/91570
2144         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
2145         non-constant minlen, maxlen and maxbound.
2147 2019-09-24  Richard Biener  <rguenther@suse.de>
2149         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
2150         Rename to...
2151         (_stmt_vec_info::cond_reduc_code): ... this.
2152         (_stmt_vec_info::induc_cond_initial_val): Add.
2153         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
2154         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
2155         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
2156         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
2157         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
2158         the reduction code.
2159         (vect_create_epilog_for_reduction): Drop special
2160         induction condition reduction params, pass in reduction code
2161         and simplify.
2162         (vectorizable_reduction): Perform condition reduction kind
2163         selection only at analysis time.  Adjust passing on state.
2165 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2167         * config/aarch64/aarch64.md (mov<mode>): Don't call
2168         aarch64_split_dimode_const_store on volatile MEM.
2170 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
2172         * config/aarch64/aarch64-option-extensions.def (fp16fml):
2173         Update hwcap string for fp16fml.
2175 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
2177         PR middle-end/91866
2178         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
2179         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
2181 2019-09-24  Martin Liska  <mliska@suse.cz>
2183         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
2184         instead of if-elseif-elseif-...
2185         * gimple-expr.c (extract_ops_from_tree): Likewise.
2186         * gimple.c (get_gimple_rhs_num_ops): Likewise.
2187         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
2189 2019-09-24  Martin Jambor  <mjambor@suse.cz>
2191         PR ipa/91831
2192         * ipa-param-manipulation.c (carry_over_param): Make a method of
2193         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
2194         in case of a context mismatch.
2195         (ipa_param_body_adjustments::common_initialization): Adjust call to
2196         carry_over_param.
2197         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
2198         private method carry_over_param.
2200 2019-09-24  Martin Jambor  <mjambor@suse.cz>
2202         PR ipa/91832
2203         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
2205 2019-09-24  Richard Biener  <rguenther@suse.de>
2207         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
2208         base.
2210 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2212         * config/arm/t-arm (arm-builtins.o): Add dependency on
2213         arm_acle_builtins.def.
2215 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
2217         PR target/91823
2218         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
2219         canonical CONST_INTs.  Use gen_rtvec.
2221 2019-09-23  Richard Biener  <rguenther@suse.de>
2223         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
2224         avoid adjusting by + 0 or * 1.
2225         (vect_create_epilog_for_reduction): Get reduction code only
2226         when necessary.  Deal with adjustment_def only when necessary.
2228 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
2230         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
2231         memmodel index.
2233 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
2235         PR ipa/91835
2236         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
2237         "ipa-sra".
2239 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
2241         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
2242         code.  Merge code blocks with common conditionals. Use declared
2243         macro instead of a magic number for PIC level.
2245 2019-09-21  Martin Sebor  <msebor@redhat.com>
2247         PR middle-end/91830
2248         * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
2249         Simplify computation of the offset of the referenced subobject.
2251 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
2253         * config/darwin.c (machopic_legitimize_pic_address): Check
2254         for lra not reload.
2256 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
2258         * ira-conflicts.c (can_use_same_reg_p): New function.
2259         (process_reg_shuffles): Take an insn parameter.  Ignore cases
2260         in which input operand op_num could seemingly never be allocated
2261         to the same register as the destination.
2262         (add_insn_allocno_copies): Update call to process_reg_shuffles.
2264 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
2266         * simplify-rtx.c (neg_const_int): Replace with...
2267         (neg_poly_int_rtx): ...this new function.
2268         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
2269         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
2270         (simplify_plus_minus): Likewise for constant terms here.
2272 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
2274         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
2275         HOST_WIDE_PRINT_UNSIGNED.
2277 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
2279         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
2280         character.
2282 2019-09-20  Maya Rashish  <coypu@sdf.org>
2284         PR target/86811
2285         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
2286         Define to speculation_safe_value_not_needed.
2288 2019-09-20  Richard Biener  <rguenther@suse.de>
2289         Uros Bizjak  <ubizjak@gmail.com>
2291         PR target/91814
2292         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
2293         previous change.
2294         (general_scalar_chain::convert_op): Force not suitable memory
2295         operands to a register.
2297 2019-09-20  Richard Biener  <rguenther@suse.de>
2299         PR tree-optimization/91821
2300         * tree-vect-loop.c (check_reduction_path): Check we can compute
2301         reduc_idx.
2302         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
2303         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
2304         operands in canonical order.
2305         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2306         STMT_VINFO_REDUC_IDX.
2307         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
2308         (STMT_VINFO_REDUC_IDX): Likewise.
2310 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
2312         PR target/91269
2313         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
2315 2019-09-20  Richard Biener  <rguenther@suse.de>
2317         PR tree-optimization/91822
2318         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
2319         parameter.
2320         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
2321         for reduc_index in nested cycles, adjust vectorizable_condition
2322         calls.
2323         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
2324         parameter.
2325         (vect_analyze_stmt): Adjust.
2326         (vect_transform_stmt): Likewise.
2328 2019-09-20  Richard Biener  <rguenther@suse.de>
2330         PR target/91767
2331         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
2332         Ensure there's a sequence point between allocating the new register
2333         and passing a reference to a reg via regno_reg_rtx.
2335 2019-09-20  Martin Jambor  <mjambor@suse.cz>
2337         * coretypes.h (cgraph_edge): Declare.
2338         * ipa-param-manipulation.c: Rewrite.
2339         * ipa-param-manipulation.h: Likewise.
2340         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
2341         (OBJS): Added ipa-sra.o.
2342         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
2343         and ref_p, added fields param_adjustments and performed_splits.
2344         (struct cgraph_clone_info): Remove ags_to_skip and
2345         combined_args_to_skip, new field param_adjustments.
2346         (cgraph_node::create_clone): Changed parameters to use
2347         ipa_param_adjustments.
2348         (cgraph_node::create_virtual_clone): Likewise.
2349         (cgraph_node::create_virtual_clone_with_body): Likewise.
2350         (tree_function_versioning): Likewise.
2351         (cgraph_build_function_type_skip_args): Removed.
2352         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
2353         using ipa_param_adjustments.
2354         (clone_of_p): Likewise.
2355         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
2356         (build_function_decl_skip_args): Likewise.
2357         (duplicate_thunk_for_node): Adjust parameters using
2358         ipa_param_body_adjustments, copy param_adjustments instead of
2359         args_to_skip.
2360         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
2361         (cgraph_node::create_virtual_clone): Likewise.
2362         (cgraph_node::create_version_clone_with_body): Likewise.
2363         (cgraph_materialize_clone): Likewise.
2364         (symbol_table::materialize_all_clones): Likewise.
2365         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
2366         ipa_replace_map check.
2367         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
2368         (initialize_node_lattices): Make aware that some parameters might have
2369         already been removed.
2370         (want_remove_some_param_p): New function.
2371         (create_specialized_node): Convert to using ipa_param_adjustments and
2372         deal with possibly pre-existing adjustments.
2373         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
2374         (output_node_opt_summary): Do not stream removed fields.  Stream
2375         parameter adjustments instead of argumetns to skip.
2376         (input_node_opt_summary): Likewise.
2377         (input_node_opt_summary): Likewise.
2378         * lto-section-in.c (lto_section_name): Added ipa-sra section.
2379         * lto-streamer.h (lto_section_type): Likewise.
2380         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
2381         param_body_adjs.
2382         (copy_decl_to_var): Declare.
2383         * tree-inline.c (update_clone_info): Do not remap old_tree.
2384         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
2385         statements, walk all extra generated statements and remap their
2386         operands.
2387         (redirect_all_calls): Add killed SSA names to a hash set.
2388         (remap_ssa_name): Do not remap killed SSA names.
2389         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
2390         half of functionality moved to ipa_param_body_adjustments.
2391         (copy_decl_to_var): Make exported.
2392         (copy_body): Destroy killed_new_ssa_names hash set.
2393         (expand_call_inline): Remap performed splits.
2394         (update_clone_info): Likewise.
2395         (tree_function_versioning): Simplify tree_map processing.  Updated to
2396         accept ipa_param_adjustments and use ipa_param_body_adjustments.
2397         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
2398         for the new interface.
2399         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
2400         (simd_clone_compute_base_data_type): Likewise.
2401         (simd_clone_init_simd_arrays): Adjust for the new interface.
2402         (simd_clone_adjust_argument_types): Likewise.
2403         (struct modify_stmt_info): Likewise.
2404         (ipa_simd_modify_stmt_ops): Likewise.
2405         (ipa_simd_modify_function_body): Likewise.
2406         (simd_clone_adjust): Likewise.
2407         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
2408         (type_internals_preclude_sra_p): Make public.
2409         * tree-sra.h: New file.
2410         * ipa-inline-transform.c (save_inline_function_body): Update to
2411         refelct new tree_function_versioning signature.
2412         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
2413         ipa_param_adjustments to get current parameter indices.
2414         (ipcp_modif_dom_walker::before_dom_children): Likewise.
2415         (ipcp_update_bits): Likewise.
2416         (ipcp_update_vr): Likewise.
2417         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
2418         * ipa-sra.c: New file.
2419         * multiple_target.c (create_target_clone): Update to reflet new type
2420         of create_version_clone_with_body.
2421         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
2422         tree_function_versioning.
2423         (modify_function): Update to reflect new type of
2424         tree_function_versioning.
2425         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
2426         * passes.def: Remove old IPA-SRA and add new one.
2427         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
2428         (make_pass_ipa_sra): Declare.
2429         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
2430         ipa_sra_retvalues.
2431         * doc/invoke.texi (ipa-sra-max-replacements): New.
2433 2019-09-19  Martin Sebor  <msebor@redhat.com>
2435         PR middle-end/91631
2436         * builtins.c (component_size): Correct trailing array computation,
2437         rename to component_ref_size and move...
2438         (compute_objsize): Adjust.
2439         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
2440         (builtin_access::strict): Do not consider memmove.
2441         (builtin_access::write_off): New function.
2442         (builtin_memref::builtin_memref): Initialize refsize.
2443         (builtin_memref::set_base_and_offset): Adjust refoff and compute
2444         refsize.
2445         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
2446         Handle refsize.
2447         (builtin_access::builtin_access): Initialize dstoff to destination
2448         refeence offset here instead of in maybe_diag_overlap.  Adjust
2449         referencess even to unrelated objects.  Adjust sizrange of bounded
2450         string functions to reflect bound.  For strcat, adjust destination
2451         sizrange by that of source.
2452         (builtin_access::strcat_overlap):  Adjust offsets and sizes
2453         to reflect the increase in destination sizrange above.
2454         (builtin_access::overlap): Do not set dstoff here but instead
2455         in builtin_access::builtin_access.
2456         (check_bounds_or_overlap): Use builtin_access::write_off.
2457         (maybe_diag_access_bounds): Add argument.  Add informational notes.
2458         (dump_builtin_memref, dump_builtin_access): New functions.
2459         * tree.c (component_ref_size): ...to here.
2460         * tree.h (component_ref_size): Declare.
2461         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
2462         nul in the size of the source string.
2464 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
2466         PR c/67224
2467         * doc/cpp.texi: Document support for extended characters in
2468         identifiers.
2469         * doc/cppopts.texi: Likewise.
2471 2019-09-19  Richard Biener  <rguenther@suse.de>
2473         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
2474         (check_reduction_path): New overload having the path as result.
2475         (vect_is_simple_reduction): From the detected reduction
2476         path build a SLP reduction chain if possible.
2478 2019-09-19  Richard Biener  <rguenther@suse.de>
2480         PR target/91814
2481         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
2482         Force operand to a register if it isn't nonimmediate_operand.
2484 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
2486         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
2487         * config/arm/iterators.md (optab): Add and, ior, xor entries.
2488         (logical_op): Remove code attribute.
2489         (logical_OP): Likewise.
2491 2019-09-19  Martin Liska  <mliska@suse.cz>
2493         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
2494         Use proper casting.
2496 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
2498         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
2499         registers with %R.
2501         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
2502         for NE comparison of TImode values.
2503         (aarch64_emit_load_exclusive): Add support for TImode.
2504         (aarch64_emit_store_exclusive): Likewise.
2505         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
2506         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
2507         Change iterator from ALLI to ALLI_TI.
2508         (@atomic_compare_and_swap<JUST_TI>): New.
2509         (@atomic_compare_and_swap<JUST_TI>_lse): New.
2510         (aarch64_load_exclusive_pair): New.
2511         (aarch64_store_exclusive_pair): New.
2512         * config/aarch64/iterators.md (JUST_TI): New.
2514         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
2515         strong_zero_p for aarch64_track_speculation; unify some code paths;
2516         use aarch64_gen_compare_reg instead of open-coding.
2518         * config/aarch64/aarch64.opt (-moutline-atomics): New.
2519         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
2520         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
2521         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
2522         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
2523         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
2524         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
2525         (atomic_<atomic_op><ALLI>): Likewise.
2526         (atomic_fetch_<atomic_op><ALLI>): Likewise.
2527         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
2528         * doc/invoke.texi: Document -moutline-atomics.
2530 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
2532         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
2533         trivial predicate for condition branch.
2534         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
2535         for switch case.
2536         (compute_bb_predicates): Update predicate based on post-dominating
2537         relationship.
2538         (analyze_function_body): Calculate post-dominating information.
2540 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
2542         * tree-vectorizer.h (vectorizable_condition): Take an int
2543         reduction index instead of a boolean flag.
2544         * tree-vect-stmts.c (vectorizable_condition): Likewise.
2545         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
2546         reductions if the reduction accumulator is the "then" rather
2547         than the "else" value.
2548         (vect_analyze_stmt): Update call accordingly.
2549         (vect_transform_stmt): Likewise.
2550         * tree-vect-loop.c (vectorizable_reduction): Likewise,
2551         asserting that the index is > 0.
2553 2019-09-19  Martin Liska  <mliska@suse.cz>
2555         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
2556         (sort_congruence_classes_by_decl_uid): Likewise.
2557         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
2558         easier sorting.
2559         (sem_item_optimizer::merge_classes): Likewise.
2561 2019-09-19  Richard Biener  <rguenther@suse.de>
2563         PR tree-optimization/91812
2564         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
2565         volatile loads.
2567 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
2569         * defaults.h (TARGET_UNIT): New macro.
2570         (target_unit): New type.
2571         * rtl.h (native_encode_rtx, native_decode_rtx)
2572         (native_decode_vector_rtx, subreg_size_lsb): Declare.
2573         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
2574         * rtlanal.c (subreg_lsb_1): Delete.
2575         (subreg_size_lsb): New function.
2576         * simplify-rtx.c: Include rtx-vector-builder.h
2577         (simplify_immed_subreg): Delete.
2578         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
2579         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
2580         functions.
2581         (simplify_subreg): Use them.
2582         (test_vector_subregs_modes, test_vector_subregs_repeating)
2583         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
2584         (test_vector_subregs): New functions.
2585         (test_vector_ops): Call test_vector_subregs for integer vector
2586         modes with at least 2 elements.
2588 2019-09-19  Richard Biener  <rguenther@suse.de>
2590         * tree-parloops.c (parloops_is_slp_reduction): Do not set
2591         LOOP_VINFO_OPERANDS_SWAPPED.
2592         (parloops_is_simple_reduction): Likewise.
2593         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
2594         initialize operands_swapped.
2595         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
2596         (vect_is_slp_reduction): Do not swap operands.
2597         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
2598         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
2600 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
2602         PR target/87007
2603         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
2604         Add avx_partial_xmm_update.
2606 2019-09-18  Jim Wilson  <jimw@sifive.com>
2608         PR target/91683
2609         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
2610         (riscv_move_integer): Likewise.
2611         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
2612         riscv_move_integer arg.
2613         (riscv_legitimize_move): Likewise.
2614         (riscv_force_temporary): New parameter in_splitter.  Don't call
2615         force_reg if true.
2616         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
2617         arg.
2618         (riscv_add_offset): Likewise.
2619         (riscv_split_symbol): New parameter in_splitter.  Pass to
2620         riscv_force_temporary.
2621         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
2622         arg.
2623         (riscv_move_integer): New parameter in_splitter.  New local
2624         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
2625         in_splitter TRUE.
2626         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
2627         riscv_split_symbol, and riscv_force_temporary args.
2628         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
2629         riscv_move_integer arg.
2630         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
2632 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2634         PR target/90878
2635         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
2636         hard register store cost to 6.
2638 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
2640         PR target/91446
2641         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
2642         pseudo register store cost from 3 to 6 to make it the same as
2643         QImode and HImode.
2645 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2647         PR target/91738
2648         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
2649         (one_cmpldi2): Likewise.
2650         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
2651         of the constant parts is simple.
2652         * config/arm/iterators.md (LOGICAL): Add new code iterator.
2653         (logical_op): Add new code attribute.
2654         (logical_OP): Likewise.
2655         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
2656         (arm_iordi_operand): Add predicate.
2657         (arm_xordi_operand): Add predicate.
2659 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2661         * config/arm/arm.md (maddsidi4): Remove expander.
2662         (mulsidi3adddi): Remove pattern.
2663         (mulsidi3adddi_v6): Likewise.
2664         (mulsidi3_nov6): Likewise.
2665         (mulsidi3_v6): Likewise.
2666         (umulsidi3): Remove expander.
2667         (umulsidi3_nov6): Remove pattern.
2668         (umulsidi3_v6): Likewise.
2669         (umulsidi3adddi): Likewise.
2670         (umulsidi3adddi_v6): Likewise.
2671         (<Us>mulsidi3): Add combined expander.
2672         (<Us>maddsidi4): Likewise.
2673         (<US>mull): Add combined umull and smull pattern.
2674         (<US>mlal): Likewise.
2675         * config/arm/iterators.md (Us): Add new iterator.
2677 2019-09-18  Richard Biener  <rguenther@suse.de>
2679         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
2680         swapping.
2681         (vectorize_fold_left_reduction): Remove assert.
2682         (vectorizable_reduction): Also expect COND_EXPR non-reduction
2683         operand in position 2.  Remove assert.
2685 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2687         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
2688         (smulsi3_highpart_nov6): Remove pattern.
2689         (smulsi3_highpart_v6): Likewise.
2690         (umulsi3_highpart): Likewise.
2691         (umulsi3_highpart_nov6): Likewise.
2692         (umulsi3_highpart_v6): Likewise.
2693         (<US>mull_high): Add new combined multiply pattern.
2695 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
2697         * config/arm/arm.md (arm_mulsi3): Remove pattern.
2698         (arm_mulsi3_v6): Likewise.
2699         (mulsi3addsi_v6): Likewise.
2700         (mulsi3subsi): Likewise.
2701         (mul): Add new multiply pattern.
2702         (mla): Likewise.
2703         (mls): Likewise.
2705 2019-09-18  Richard Biener  <rguenther@suse.de>
2707         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
2708         (parloops_valid_reduction_input_p): Copy from
2709         valid_reduction_input_p.
2710         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
2711         (parloops_needs_fold_left_reduction_p): Copy from
2712         needs_fold_left_reduction_p.
2713         (parloops_is_simple_reduction): Copy from
2714         vect_is_simple_reduction.
2715         (parloops_force_simple_reduction): Copy from
2716         vect_force_simple_reduction.
2717         (gather_scalar_reductions): Adjust.
2718         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
2719         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
2721 2019-09-18  Richard Biener  <rguenther@suse.de>
2723         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
2724         * tree-vect-loop.c (get_initial_def_for_reduction): Make
2725         static.
2726         (vect_create_epilog_for_reduction): Remove dead code.
2728 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2730         * varasm.c (assemble_real): Generate canonical const_ints.
2732 2019-09-18  Richard Biener  <rguenther@suse.de>
2734         PR lto/91763
2735         * lto-streamer-in.c (input_eh_regions): Move EH init to
2736         lto_materialize_function.
2737         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
2738         Likewise.
2740 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2742         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
2743         are INTEGER_CSTs.
2745 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2747         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
2748         of checking specifically for INTEGER_CST.
2750 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2752         * stor-layout.c (compute_record_mode): Operate on poly_uint64
2753         sizes instead of uhwi sizes.
2755 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
2757         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
2758         (add_const_value_attribute): Handle CONST_POLY_INT.
2760 2019-09-18  Martin Liska  <mliska@suse.cz>
2762         * dbgcnt.def (store_merging): New counter.
2763         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
2764         Use it in store merging.
2766 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2768         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
2769         function.
2770         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2771         * config/arm/arm.c (arm_sched_variable_issue): New function.
2772         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
2774 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2776         * config/arm/types.md (no_reservation): New reservation.
2777         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
2778         no_insn here.
2779         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
2780         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
2781         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
2782         * config/arm/arm1020e.md (1020alu_op): Likewise.
2783         * config/arm/arm1026ejs.md (alu_op): Likewise.
2784         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
2785         * config/arm/arm926ejs.md (9_alu_op): Likewise.
2786         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
2787         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
2788         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
2789         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
2790         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
2791         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
2792         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
2793         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
2794         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
2795         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
2796         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
2797         * config/arm/fa526.md (526_alu_op): Likewise.
2798         * config/arm/fa606te.md (606te_alu_op): Likewise.
2799         * config/arm/fa626te.md (626te_alu_op): Likewise.
2800         * config/arm/fa726te.md (726te_alu_op): Likewise.
2801         * config/arm/xgene1.md (xgene1_nop): Likewise.
2803 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2805         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
2806         "no_insn" to "branch".
2808 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
2810         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
2812 2019-09-17  Richard Biener  <rguenther@suse.de>
2814         PR debug/91772
2815         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
2816         was missing generate locations only once.
2818 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
2820         PR ipa/91089
2821         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
2822         option.
2823         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
2824         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
2825         for switch default case using range analysis information.
2827 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
2829         PR target/91749
2830         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
2831         mode attributed is supported by FDPIC.
2833 2019-09-17  Richard Biener  <rguenther@suse.de>
2835         PR tree-optimization/91790
2836         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
2837         use the correct DR for setting up realignment.
2839 2019-09-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2841         PR target/91719
2842         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
2843         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
2844         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
2845         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
2847 2019-09-16  Jason Merrill  <jason@redhat.com>
2849         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
2851 2019-09-16  Martin Liska  <mliska@suse.cz>
2853         * gimple-fold.c (or_comparisons_1): Remove rules moved
2854         to ...
2855         * match.pd: ... here.
2857 2019-09-16  Martin Liska  <mliska@suse.cz>
2859         * gimple-fold.c (or_comparisons_1): Remove rules
2860         moved to ...
2861         * match.pd: ... here.
2863 2019-09-16  Martin Liska  <mliska@suse.cz>
2865         * genmatch.c (dt_node::append_simplify): Do not print
2866         warning when we have duplicate patterns belonging
2867         to a same simplify rule.
2868         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
2869         (maybe_fold_comparisons_from_match_pd): Handle
2870         tcc_comparison as a results.
2871         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
2873 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
2874             Qi Feng  <ffengqi@linux.ibm.com>
2876         PR middle-end/88784
2877         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
2878         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
2879         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
2880         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
2881         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
2882         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
2883         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
2884         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
2885         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
2886         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
2887         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
2888         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
2890 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
2891             Martin Liska  <mliska@suse.cz>
2893         * gimple-fold.c (and_comparisons_1): Add type as first
2894         argument.
2895         (and_var_with_comparison): Likewise.
2896         (and_var_with_comparison_1): Likewise.
2897         (or_comparisons_1): Likewise.
2898         (or_var_with_comparison): Likewise.
2899         (or_var_with_comparison_1): Likewise.
2900         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
2901         (maybe_fold_or_comparisons): Likewise.
2902         (maybe_fold_comparisons_from_match_pd): New.
2903         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
2904         (maybe_fold_or_comparisons): Likewise.
2905         * gimple.c (gimple_size): Make it public and add num_ops argument.
2906         (gimple_init): New function.
2907         (gimple_alloc): Call gimple_init.
2908         * gimple.h (gimple_size): New.
2909         (gimple_init): Likewise.
2910         * tree-if-conv.c (fold_or_predicates): Pass type.
2911         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
2912         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
2913         (optimize_vec_cond_expr): Likewise.
2914         (ovce_extract_ops): Return type of conditional expression.
2915         * tree-ssanames.c (init_ssa_name_imm_use): New.
2916         (make_ssa_name_fn): Use init_ssa_name_imm_use.
2917         * tree-ssanames.h (init_ssa_name_imm_use): New.
2919 2019-09-16  Richard Biener  <rguenther@suse.de>
2921         PR tree-optimization/91756
2922         PR tree-optimization/87132
2923         * tree-ssa-alias.h (enum translate_flags): New.
2924         (get_continuation_for_phi): Use it instead of simple bool flag.
2925         (walk_non_aliased_vuses): Likewise.
2926         * tree-ssa-alias.c (maybe_skip_until): Adjust.
2927         (get_continuation_for_phi): When looking across backedges only
2928         disallow valueization.
2929         (walk_non_aliased_vuses): Adjust.
2930         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
2931         if requested.
2933 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
2935         PR middle-end/80791
2936         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
2937         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2938         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2939         * target.def (have_count_reg_decr_p): New hook.
2940         (doloop_cost_for_generic): Likewise.
2941         (doloop_cost_for_address): Likewise.
2942         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
2943         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
2944         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
2945         * doc/tm.texi: Regenerate.
2946         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
2947         addend.
2948         (record_group): Init doloop_p.
2949         (add_candidate_1): Add optional argument doloop, change the handlings
2950         accordingly.
2951         (add_candidate): Likewise.
2952         (generic_predict_doloop_p): Update attribute.
2953         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
2954         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
2955         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
2956         MIN_EXPR.
2957         (get_computation_cost): Update for doloop IV cand extra cost.
2958         (determine_group_iv_cost_cond): Update for doloop IV cand.
2959         (determine_iv_cost): Likewise.
2960         (ivopts_estimate_reg_pressure): Likewise.
2961         (may_eliminate_iv): Update handlings for doloop IV cand.
2962         (add_iv_candidate_for_doloop): New function.
2963         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
2964         (iv_ca_set_no_cp): Update for doloop IV cand.
2965         (iv_ca_set_cp): Likewise.
2966         (iv_ca_dump): Dump register cost.
2967         (find_doloop_use): New function.
2968         (analyze_and_mark_doloop_use): Likewise.
2969         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
2971 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
2973         PR middle-end/91708
2974         * cse.c (cse_insn): Do not replace anything with a
2975         MEM.
2977 2019-09-13  Ian Lance Taylor  <iant@golang.org>
2979         * doc/invoke.texi (Optimize Options): Fix typo.
2981 2019-09-12  UroÅ¡ Bizjak  <ubizjak@gmail.com>
2983         PR tree-optimization/89386
2984         * config/i386/sse.md (smulhrs<mode>3): New expander.
2985         (smulhrsv4hi3): Ditto.
2987 2019-09-12  Richard Biener  <rguenther@suse.de>
2989         PR tree-optimization/91750
2990         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
2991         in the type of the evolution.
2993 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
2995         PR tree-optimization/89386
2996         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
2997         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
2998         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
2999         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
3000         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
3001         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
3002         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
3003         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
3004         (su, r): Handle the unspecs above.
3005         (bt): New int attribute.
3006         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
3007         * internal-fn.c (first_commutative_argument): Commutativity info for
3008         above.
3009         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
3010         (umulhrs_optab): New optabs.
3011         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
3012         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
3013         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
3014         function.
3015         (vect_vect_recog_func_ptrs): Add it.
3017 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
3019         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
3020         code.
3022 2019-09-11  Nathan Sidwell  <nathan@acm.org>
3024         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
3025         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
3027 2019-09-11  Richard Biener  <rguenther@suse.de>
3029         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
3030         * lto-wrapper.c (merge_and_complain): Pick up -g.
3031         (append_compiler_options): Likewise.
3032         (run_gcc): Re-instantiate handling -g0 at link-time.
3033         * doc/invoke.texi (flto): Document debug info generation.
3035 2019-09-11  Richard Biener  <rguenther@suse.de>
3037         PR tree-optimization/90387
3038         * vr-values.c (vr_values::extract_range_basic): After inlining
3039         simplify non-constant __builtin_constant_p to false.
3041 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
3043         PR rtl-optimization/89795
3044         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
3045         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
3047 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
3049         PR tree-optimization/91723
3050         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
3051         instead of pointer equality when checking if argument vectypes are
3052         the same.
3054         PR middle-end/91725
3055         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
3056         of get_nonzero_bits, only call it for integral types.
3058 2019-09-11  Richard Biener  <rguenther@suse.de>
3060         Revert
3061         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
3063         * match.pd: Add flag_unsafe_math_optimizations check
3064         before deciding on the widest type in a binary math operation.
3066 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3068         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
3069         and CALL_REALLY_USED_REGISTERS must be defined, and that
3070         CALL_REALLY_USED_REGISTERS is preferred.
3071         * doc/tm.texi: Regenerate.
3072         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
3073         (call_really_used_regs): Likewise.
3074         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
3075         CALL_REALLY_USED_REGISTERS are defined.
3076         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
3077         initial value if defined.
3078         (initial_call_really_used_regs): Delete.
3079         (saved_call_really_used_regs): Likewise.
3080         (CALL_REALLY_USED_REGNO_P): Likewise.
3081         (init_reg_sets): Remove handling of call_really_used_regs.
3082         (save_register_info, restore_register_info, globalize_reg): Likewise.
3083         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
3084         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
3085         outside operand_reg_set.
3086         (fix_register): Don't change call_used_regs if
3087         CALL_REALLY_USED_REGISTERS is defined.
3088         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
3089         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
3090         instead of call_really_used_regs.
3091         (csky_conditional_register_usage): Remove the old handling of
3092         call_used_regs and change the handling of call_really_used_regs
3093         to use call_used_regs instead.
3094         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
3095         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
3096         making a register fixed.
3097         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
3098         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
3099         instead of call_really_used_regs.
3100         (m32r_conditional_register_usage): Don't set call_used_regs when
3101         making a register fixed.
3102         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
3103         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
3104         instead of call_really_used_regs.
3105         (mips_interrupt_extra_call_saved_reg_p): Likewise.
3106         (mips_cfun_call_saved_reg_p): Likewise.
3107         (mips_swap_registers): Remove the old handling of call_used_regs
3108         and change the handling of call_really_used_regs to use call_used_regs
3109         instead.
3110         (mips_conditional_register_usage): Likewise.
3111         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
3112         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
3113         instead of call_really_used_regs.
3114         (mn10300_get_live_callee_saved_regs): Likewise.
3115         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
3116         (mn10300_conditional_register_usage): Don't set call_used_regs when
3117         making a register fixed.
3118         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
3119         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
3120         Remove the old handling of call_used_regs and change the handling
3121         of call_really_used_regs to use call_used_regs instead.
3122         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
3123         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
3124         instead of call_really_used_regs.
3125         (s390_register_info_gprtofpr, s390_register_info): Likewise.
3126         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
3127         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
3128         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
3129         (s390_conditional_register_usage): Remove the old handling of
3130         call_used_regs and change the handling of call_really_used_regs
3131         to use call_used_regs instead.
3132         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
3133         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
3134         (sh_fix_range, reg_unused_after): Likewise.
3135         (sh_conditional_register_usage): Remove the old handling of
3136         call_used_regs and change the handling of call_really_used_regs
3137         to use call_used_regs instead.
3138         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
3139         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
3140         call_used_regs when making a register fixed.
3141         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
3142         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
3143         call_used_regs when making a register fixed.
3144         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
3145         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
3146         set call_used_regs when making a register fixed.
3147         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
3148         * config/visium/visium.c (visium_conditional_register_usage): Remove
3149         the old handling of call_used_regs and change the handling of
3150         call_really_used_regs to use call_used_regs instead.
3152 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3154         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
3155         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
3156         * reginfo.c (call_used_regs): New macro.
3158 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3160         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
3161         fixed_regs test.
3162         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
3163         (bpf_expand_epilogue): Likewise.
3164         * config/c6x/c6x.c (c6x_save_reg): Likewise.
3165         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
3166         (ft32_expand_epilogue): Likewise.
3167         * config/i386/i386.c (ix86_save_reg): Likewise.
3168         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
3169         (moxie_expand_epilogue): Likewise.
3170         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
3171         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
3172         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
3174 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3176         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
3177         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
3178         instead of testing call_used_regs directly.
3179         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
3180         (aarch64_components_for_bb): Likewise.
3181         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
3182         * config/arc/arc.c (arc_must_save_register): Likewise.
3183         (arc_epilogue_uses): Likewise.
3184         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
3185         (legitimize_pic_address, callee_saved_reg_p): Likewise.
3186         (arm_compute_save_reg0_reg12_mask): Likewise.
3187         (arm_compute_save_core_reg_mask): Likewise.
3188         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
3189         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
3190         (cmse_nonsecure_entry_clear_before_return): Likewise.
3191         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
3192         (arm_expand_epilogue): Likewise.
3193         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
3194         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
3195         (_reg_unused_after): Likewise.
3196         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
3197         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
3198         (add_to_reg, hwloop_optimize): Likewise.
3199         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
3200         (bpf_expand_epilogue): Likewise.
3201         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
3202         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
3203         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
3204         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
3205         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
3206         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
3207         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
3208         * config/frv/frv.c (frv_stack_info): Likewise.
3209         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
3210         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
3211         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
3212         (move_callee_saved_registers): Likewise.
3213         * config/h8300/h8300.c (byte_reg): Likewise.
3214         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
3215         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
3216         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
3217         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
3218         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
3219         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
3220         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
3221         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
3222         * config/m32c/m32c.c (need_to_save): Likewise.
3223         * config/m68k/m68k.c (m68k_save_reg): Likewise.
3224         * config/mcore/mcore.c (calc_live_regs): Likewise.
3225         * config/microblaze/microblaze.c (microblaze_must_save_register):
3226         Likewise.
3227         * config/mmix/mmix.c (mmix_local_regno): Likewise.
3228         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
3229         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
3230         (mmix_expand_epilogue): Likewise.
3231         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
3232         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
3233         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
3234         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
3235         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
3236         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
3237         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
3238         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
3239         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
3240         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
3241         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
3242         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
3243         * config/rl78/rl78.c (need_to_save): Likewise.
3244         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
3245         (rs6000_stack_info, generate_set_vrsave): Likewise.
3246         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
3247         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
3248         * config/rx/rx.c (rx_get_stack_layout): Likewise.
3249         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
3250         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
3251         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
3252         (save_local_or_in_reg_p): Likewise.
3253         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
3254         (xstormy16_epilogue_uses): Likewise.
3255         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
3256         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
3257         * config/v850/v850.c (compute_register_save_size): Likewise.
3258         * config/vax/vax.c (vax_expand_prologue): Likewise.
3259         * config/visium/visium.c (visium_save_reg_p): Likewise.
3260         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
3261         * cselib.c (cselib_process_insn): Likewise.
3262         * df-scan.c (df_get_entry_block_def_set): Likewise.
3263         * function.c (aggregate_value_p): Likewise.
3264         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
3265         * ira-lives.c (process_bb_node_lives): Likewise.
3266         * ira.c (do_reload): Likewise.
3267         * lra-lives.c (process_bb_lives): Likewise.
3268         * lra-remat.c (lra_remat): Likewise.
3269         * lra.c (lra): Likewise.
3270         * postreload.c (reload_combine_recognize_pattern): Likewise.
3271         (reload_cse_move2add): Likewise.
3272         * recog.c (peep2_find_free_register): Likewise.
3273         * regrename.c (check_new_reg_p): Likewise.
3274         * reload.c (find_equiv_reg): Likewise.
3275         * reload1.c (reload, find_reg): Likewise.
3276         * sel-sched.c (init_hard_regs_data): Likewise.
3278 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3280         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
3281         regs_invalidated_by_call & ~fixed_reg_set instead of
3282         call_used_or_fixed_regs & ~fixed_reg_set.
3283         * config/sh/sh.c (output_stack_adjust): Likewise.
3285 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3287         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
3288         (call_used_reg_set): Delete.
3289         (call_used_or_fixed_regs): New macro.
3290         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
3291         of call_used_reg_set.
3292         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
3293         instead of call_used_regs.
3294         (save_call_clobbered_regs): Likewise.
3295         * cfgcleanup.c (old_insns_match_p): Likewise.
3296         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
3297         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3298         Likewise.
3299         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3300         * config/sh/sh.c (output_stack_adjust): Likewise.
3301         * final.c (collect_fn_hard_reg_usage): Likewise.
3302         * ira-build.c (ira_build): Likewise.
3303         * ira-color.c (calculate_saved_nregs): Likewise.
3304         (allocno_reload_assign, calculate_spill_cost): Likewise.
3305         * ira-conflicts.c (ira_build_conflicts): Likewise.
3306         * ira-costs.c (ira_tune_allocno_costs): Likewise.
3307         * ira-lives.c (process_bb_node_lives): Likewise.
3308         * ira.c (setup_reg_renumber): Likewise.
3309         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
3310         * lra-constraints.c (need_for_call_save_p): Likewise.
3311         (need_for_split_p, inherit_in_ebb): Likewise.
3312         * lra-lives.c (process_bb_lives): Likewise.
3313         * lra-remat.c (call_used_input_regno_present_p): Likewise.
3314         * postreload.c (reload_combine): Likewise.
3315         * regrename.c (find_rename_reg): Likewise.
3316         * reload1.c (reload_as_needed): Likewise.
3317         * rtlanal.c (find_all_hard_reg_sets): Likewise.
3318         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3319         * shrink-wrap.c (requires_stack_frame_p): Likewise.
3321 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3323         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
3324         (no_caller_save_reg_set): Delete.
3325         * caller-save.c (init_caller_save): Don't initialize it.
3326         * ira-conflicts.c (ira_build_conflicts): Calculate
3327         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
3329 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3331         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
3332         (target_hard_regs::x_savable_regs): New field.
3333         (call_fixed_reg_set): Delete.
3334         (savable_regs): New macro,
3335         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
3336         (init_reg_sets_1): Likewise.  Initialize savable_regs.
3337         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
3338         for all registers.  Set savable_regs instead of call_fixed_reg_set.
3339         (setup_save_areas, save_call_clobbered_regs): Replace uses of
3340         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
3341         * config/sh/sh.c (output_stack_adjust): Likewise.
3343 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3345         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
3346         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
3347         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
3349 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
3351         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
3352         * rtlanal.c (get_call_rtx_from): Likewise.
3353         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
3354         than the pattern to get_call_rtx_from.
3355         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
3356         an rtx_insn * instead of an rtx.
3357         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
3359 2019-09-10  Martin Liska  <mliska@suse.cz>
3361         * common.opt: Use newly added WarnRemoved.
3362         * config/aarch64/aarch64.opt: Likewise.
3363         * config/arm/arm.opt: Likewise.
3364         * config/i386/i386.opt: Likewise.
3365         * config/ia64/ia64.opt: Likewise.
3366         * config/rs6000/rs6000.opt: Likewise.
3367         * doc/options.texi: Document WarnRemoved properly.
3368         * dwarf2out.c (gen_producer_string): Handle renamed
3369         OPT_SPECIAL_warn_removed.
3370         * lto-opts.c (lto_write_options): Likewise.
3371         * lto-wrapper.c (merge_and_complain): Likewise.
3372         * opts-common.c (decode_cmdline_option): Likewise.
3373         (prune_options): Likewise.
3374         (read_cmdline_option): Likewise.
3375         (control_warning_option): Likewise.
3376         * opts.c (print_filtered_help): Likewise.
3377         * optc-gen.awk: Parse for WarnRemoved and make usage
3378         of Deprecated an error.
3379         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
3381 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
3383         * doc/install.texi: Fix syntax for html generation.
3385 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
3387         PR middle-end/91680
3388         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
3389         the shift type to type.
3391 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3393         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
3394         FDPIC mode.
3395         (stack_protect_combined_test_insn): Likewise.
3397 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3398             Mickaël Guêné <mickael.guene@st.com>
3400         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
3401         * config/arm/arm.md (FDPIC_REGNUM): New constant.
3402         (load_tp_soft_fdpic): New pattern.
3403         (load_tp_soft): Disable in FDPIC mode.
3405 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3406             Mickaël Guêné <mickael.guene@st.com>
3408         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
3409         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
3410         (arm_call_tls_get_addr): Add FDPIC support.
3411         (legitimize_tls_address): Likewise.
3412         (arm_emit_tls_decoration): Likewise.
3414 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3415             Mickaël Guêné <mickael.guene@st.com>
3417         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
3418         support.
3419         (arm_trampoline_init): Likewise.
3420         (arm_trampoline_adjust_address): Likewise.
3421         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
3423 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3424             Mickaël Guêné <mickael.guene@st.com>
3426         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
3427         (legitimize_pic_address): Enforce binding rules on function
3428         pointers in FDPIC mode.
3429         (arm_assemble_integer): Likewise.
3431 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3432             Mickaël Guêné <mickael.guene@st.com>
3434         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
3435         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
3436         FDPIC.
3438 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3439             Mickaël Guêné <mickael.guene@st.com>
3441         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
3442         field.
3444 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3445             Mickaël Guêné <mickael.guene@st.com>
3447         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
3448         in FDPIC mode.
3449         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
3450         new function.
3451         * config/arm/arm.c (arm_option_override): Define pic register to
3452         FDPIC_REGNUM.
3453         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
3454         have no decl or go through PLT.
3455         (calculate_pic_address_constant): New function.
3456         (legitimize_pic_address): Call calculate_pic_address_constant.
3457         (arm_load_pic_register): Handle TARGET_FDPIC.
3458         (arm_is_segment_info_known): New function.
3459         (arm_pic_static_addr): Add support for FDPIC.
3460         (arm_load_function_descriptor): New function.
3461         (arm_emit_call_insn): Add support for FDPIC.
3462         (arm_assemble_integer): Add support for FDPIC.
3463         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
3464         Define. (FDPIC_REGNUM): New define.
3465         * config/arm/arm.md (call): Add support for FDPIC.
3466         (call_value): Likewise.
3467         (restore_pic_register_after_call): New pattern.
3468         (untyped_call): Disable if FDPIC.
3469         (untyped_return): Likewise.
3470         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
3472 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3473             Mickaël Guêné <mickael.guene@st.com>
3475         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
3476         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
3477         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
3478         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
3479         (CC1_SPEC): Use FDPIC_CC1_SPEC.
3480         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
3481         * config/arm/uclinuxfdpiceabi.h: New file.
3483 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3485         * config.gcc: Handle *-*-uclinuxfdpiceabi.
3487 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
3488             Mickaël Guêné  <mickael.guene@st.com>
3490         * config/arm/arm.opt: Add -mfdpic option.
3491         * doc/invoke.texi: Add documentation for -mfdpic.
3493 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3495         * expmed.c (extract_bit_field): Update function comment
3496         regarding alt_rtl.
3497         * expr.c (expand_expr_real): Update function comment
3498         regarding alt_rtl.
3499         (expand_misaligned_mem_ref): New helper function.
3500         (expand_expr_real_2): Use expand_misaligned_mem_ref.
3501         Remove duplicate assignment to "base" at case MEM_REF.
3502         Remove a shadowed variable "unsignedp" at case VCE. 
3504 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3506         * regset.h (regs_invalidated_by_call_regset): Delete.
3507         (fixed_reg_set_regset): Likewise.
3508         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
3509         (fixed_reg_set_regset, persistent_obstack): Likewise.
3510         (init_reg_sets_1, globalize_reg): Update accordingly.
3511         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
3512         instead of a bitmap.
3513         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
3514         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
3515         instead of regs_invalidated_by_call_regset.
3516         (df_lr_confluence_n, df_md_confluence_n): Likewise.
3517         * df-scan.c (df_scan_start_dump): Likewise.
3518         * dse.c (copy_fixed_regs): Likewise.
3519         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
3521 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3523         * array-traits.h: New file.
3524         * coretypes.h (array_traits, bitmap_view): New types.
3525         * bitmap.h: Include "array-traits.h"
3526         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3527         (base_bitmap_view, bitmap_view): New classes.
3528         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
3529         * hard-reg-set.h: Include array-traits.h.
3530         (array_traits<HARD_REG_SET>): New struct.
3531         * regset.h (IOR_REG_SET_HRS): New macro.
3532         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
3533         rather than iterating over each hard register.
3534         * sched-deps.c (sched_analyze_insn): Likewise.
3535         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
3537 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3539         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
3540         instead of a HARD_REG_SET *.
3541         * ira-build.c (ior_hard_reg_conflicts): Likewise.
3542         (ira_build): Update call accordingly.
3543         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
3545 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3547         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
3548         (HARD_REG_SET::operator!=): Likewise.
3549         (hard_reg_set_equal_p): Delete.
3550         * cfgcleanup.c (old_insns_match_p): Use == instead of
3551         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
3552         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
3553         (add_allocno_hard_regs_to_forest): Likewise.
3554         (setup_allocno_available_regs_num): Likewise.
3555         * ira.c (setup_pressure_classes): Likewise.
3556         (setup_allocno_and_important_classes): Likewise.
3557         (setup_reg_class_relations): Likewise.
3558         * lra-lives.c (process_bb_lives): Likewise.
3559         * reg-stack.c (change_stack, convert_regs_1): Likewise.
3561 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3563         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
3564         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
3565         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
3566         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
3567         Likewise.
3568         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
3569         * ira.c (setup_reg_renumber): Likewise.
3570         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3571         * regrename.c (regrename_find_superclass): Likewise.
3572         * reload1.c (find_reg): Likewise.
3574 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3576         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
3577         * caller-save.c (setup_save_areas): Use "&~" instead of
3578         AND_COMPL_HARD_REG_SET.
3579         (save_call_clobbered_regs): Likewise.
3580         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
3581         Likewise.
3582         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3583         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3584         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
3585         * config/mips/mips.c (mips_class_max_nregs): Likewise.
3586         (mips_conditional_register_usage): Likewise.
3587         * config/sh/sh.c (output_stack_adjust): Likewise.
3588         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
3589         (setup_profitable_hard_regs): Likewise.
3590         (get_conflict_and_start_profitable_regs): Likewise.
3591         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3592         (ira_build_conflicts): Likewise.
3593         * ira-costs.c (restrict_cost_classes): Likewise.
3594         (setup_regno_cost_classes_by_aclass): Likewise.
3595         * ira-lives.c (process_bb_node_lives): Likewise.
3596         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
3597         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
3598         (setup_allocno_and_important_classes, setup_class_translate_array)
3599         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
3600         Likewise.
3601         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3602         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3603         (process_alt_operands, inherit_in_ebb): Likewise.
3604         * lra-eliminations.c (update_reg_eliminate): Likewise.
3605         * lra-lives.c (process_bb_lives): Likewise.
3606         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
3607         * resource.c (find_dead_or_set_registers): Likewise.
3608         (mark_target_live_regs): Likewise.
3609         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
3610         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3611         (implicit_clobber_conflict_p): Likewise.
3612         * shrink-wrap.c (requires_stack_frame_p): Likewise.
3613         (try_shrink_wrapping): Likewise.
3615 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3617         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
3618         (HARD_REG_SET::operator|=): Likewise.
3619         (IOR_HARD_REG_SET): Delete.
3620         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
3621         IOR_HARD_REG_SET.
3622         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3623         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
3624         * final.c (collect_fn_hard_reg_usage): Likewise.
3625         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
3626         * ira-build.c (merge_hard_reg_conflicts): Likewise.
3627         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
3628         (propagate_some_info_from_allocno): Likewise.
3629         (copy_info_to_removed_store_destinations): Likewise.
3630         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
3631         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
3632         (fast_allocation): Likewise.
3633         * ira-conflicts.c (ira_build_conflicts): Likewise.
3634         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
3635         (process_bb_node_lives): Likewise.
3636         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
3637         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3638         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3639         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
3640         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
3641         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
3642         (process_bb_lives): Likewise.
3643         * lra-spills.c (assign_spill_hard_regs): Likewise.
3644         * postreload.c (reload_combine): Likewise.
3645         * reginfo.c (init_reg_sets_1): Likewise.
3646         * regrename.c (merge_overlapping_regs, find_rename_reg)
3647         (merge_chains): Likewise.
3648         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
3649         (find_reload_regs, finish_spills, choose_reload_regs_init)
3650         (emit_reload_insns): Likewise.
3651         * reorg.c (redundant_insn): Likewise.
3652         * resource.c (find_dead_or_set_registers, mark_set_resources)
3653         (mark_target_live_regs): Likewise.
3654         * rtlanal.c (find_all_hard_reg_sets): Likewise.
3655         * sched-deps.c (sched_analyze_insn): Likewise.
3656         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3657         (find_best_reg_for_expr): Likewise.
3658         * shrink-wrap.c (try_shrink_wrapping): Likewise.
3660 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3662         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
3663         (HARD_REG_SET::operator&): Likewise.
3664         (AND_HARD_REG_SET): Delete.
3665         * caller-save.c (setup_save_areas): Use "&" instead of
3666         AND_HARD_REG_SET.
3667         (save_call_clobbered_regs): Likewise.
3668         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3669         * config/m32c/m32c.c (reduce_class): Likewise.
3670         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3671         * final.c (get_call_reg_set_usage): Likewise.
3672         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
3673         (setup_left_conflict_sizes_p): Likewise.
3674         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3675         (ira_build_conflicts): Likewise.
3676         * ira-costs.c (restrict_cost_classes): Likewise.
3677         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
3678         (setup_reg_class_relations): Likewise.
3679         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
3680         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
3681         * resource.c (find_dead_or_set_registers): Likewise.
3682         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3684 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3686         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
3687         (COMPL_HARD_REG_SET): Delete.
3688         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
3689         of COMPL_HARD_REG_SET.
3690         (try_rename_operands): Likewise.
3691         * config/sh/sh.c (push_regs): Likewise.
3692         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3693         * lra-constraints.c (contains_reg_p): Likewise.
3694         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
3696 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3698         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
3699         * caller-save.c (save_call_clobbered_regs): Use assignment instead
3700         of COPY_HARD_REG_SET.
3701         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
3702         (epiphany_conditional_register_usage): Likewise.
3703         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
3704         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3705         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
3706         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
3707         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
3708         * config/mips/mips.c (mips_class_max_nregs): Likewise.
3709         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
3710         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
3711         * config/sh/sh.c (output_stack_adjust): Likewise.
3712         * final.c (collect_fn_hard_reg_usage): Likewise.
3713         (get_call_reg_set_usage): Likewise.
3714         * ira-build.c (ira_create_object, remove_low_level_allocnos)
3715         (ira_flattening): Likewise.
3716         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
3717         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
3718         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
3719         (ira_reassign_pseudos): Likewise.
3720         * ira-conflicts.c (print_allocno_conflicts): Likewise.
3721         (ira_build_conflicts): Likewise.
3722         * ira-costs.c (restrict_cost_classes): Likewise.
3723         (setup_regno_cost_classes_by_aclass): Likewise.
3724         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
3725         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
3726         (setup_stack_reg_pressure_class, setup_pressure_classes)
3727         (setup_allocno_and_important_classes, setup_class_translate_array)
3728         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
3729         (ira_setup_eliminable_regset): Likewise.
3730         * lra-assigns.c (find_hard_regno_for_1): Likewise.
3731         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
3732         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
3733         (process_alt_operands, inherit_in_ebb): Likewise.
3734         * lra-lives.c (process_bb_lives): Likewise.
3735         * lra-spills.c (assign_spill_hard_regs): Likewise.
3736         * lra.c (lra): Likewise.
3737         * mode-switching.c (new_seginfo): Likewise.
3738         * postreload.c (reload_combine): Likewise.
3739         * reg-stack.c (straighten_stack): Likewise.
3740         * reginfo.c (save_register_info, restore_register_info): Likewise.
3741         (init_reg_sets_1, record_subregs_of_mode): Likewise
3742         * regrename.c (create_new_chain, rename_chains): Likewise.
3743         * reload1.c (order_regs_for_reload, find_reg): Likewise.
3744         (find_reload_regs): Likewise.
3745         * resource.c (find_dead_or_set_registers): Likewise.
3746         (mark_target_live_regs): Likewise.
3747         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
3749 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3751         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
3752         (note_pattern_stores): Declare.
3753         (note_stores): Take an rtx_insn *.
3754         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
3755         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
3756         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
3757         (note_stores): Take an rtx_insn * as argument and process
3758         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
3759         (note_pattern_stores): ...this.
3760         (find_first_parameter_load): Pass the insn rather than
3761         its pattern to note_stores.
3762         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
3763         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
3764         (insert_one_insn): Likewise.
3765         * combine.c (combine_instructions): Likewise.
3766         (likely_spilled_retval_p): Likewise.
3767         (try_combine): Use note_pattern_stores instead of note_stores.
3768         (record_dead_and_set_regs): Pass the insn rather than its pattern
3769         to note_stores.
3770         (reg_dead_at_p): Likewise.
3771         * config/bfin/bfin.c (workaround_speculation): Likewise.
3772         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
3773         rather than an rtx.
3774         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
3775         instead of note_stores.
3776         (frv_optimize_membar_local): Pass the insn rather than its pattern
3777         to note_stores.
3778         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
3779         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
3780         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
3781         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
3782         (mips_reorg_process_insns): Likewise.
3783         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
3784         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
3785         rather than rtxes.
3786         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
3787         its pattern to note_stores.
3788         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
3789         of note_stores.
3790         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
3791         the insn to note_stores.
3792         (prescan_insns_for_dce): Update call accordingly.
3793         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
3794         to note_stores.
3795         * df-problems.c (can_move_insns_across): Likewise.
3796         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
3797         * function.c (assign_parm_setup_reg): Likewise.
3798         * gcse-common.c (record_last_mem_set_info_common): Likewise.
3799         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
3800         (single_set_gcse): Likewise.
3801         * ira.c (validate_equiv_mem): Likewise.
3802         (update_equiv_regs): Use note_pattern_stores rather than note_stores
3803         for no_equiv.
3804         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
3805         pattern to note_stores.
3806         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
3807         * loop-iv.c (simplify_using_initial_values): Likewise.
3808         * mode-switching.c (optimize_mode_switching): Likewise.
3809         * optabs.c (emit_libcall_block_1): Likewise.
3810         (expand_atomic_compare_and_swap): Likewise.
3811         * postreload-gcse.c (load_killed_in_block_p): Likewise.
3812         (record_opr_changes): Likewise.  Remove explicit handling of
3813         CALL_INSN_FUNCTION_USAGE.
3814         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
3815         * regcprop.c (kill_clobbered_values): Likewise.
3816         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
3817         to note_stores.
3818         * regrename.c (build_def_use): Likewise.
3819         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
3820         for mark_not_eliminable.
3821         (reload_as_needed): Pass the insn rather than its pattern
3822         to note_stores.
3823         (emit_output_reload_insns): Likewise.
3824         * resource.c (mark_target_live_regs): Likewise.
3825         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
3826         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
3827         instead of note_stores.
3828         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
3829         its pattern to note_stores.
3830         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
3831         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
3833 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3835         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
3836         than a #define.  Use a structure rather than an array as the
3837         fallback definition.  Remove special cases for low array sizes.
3838         (const_hard_reg_set): New typedef.
3839         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
3840         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
3841         (hard_reg_set_empty_p): Likewise.
3842         (SET_HARD_REG_BIT): Use a function rather than a macro to
3843         handle the case in which HARD_REG_SET is a structure.
3844         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
3845         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
3846         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
3847         (IOR_COMPL_HARD_REG_SET): Likewise.
3848         (hard_reg_set_iterator::pset): Constify the pointer target.
3849         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
3850         of a "const HARD_REG_SET".  Update the handling of non-integer
3851         HARD_REG_SETs.
3852         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
3853         * reload.h: Likewise.
3854         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
3855         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
3856         of a "const HARD_REG_SET".
3857         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
3858         (range_in_hard_reg_set_p): Likewise.
3859         * ira-costs.c (restrict_cost_classes): Likewise.
3860         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
3861         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
3862         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
3863         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
3864         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
3865         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
3866         take an unsigned int and open-code the HARD_REG_SET operations.
3868 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
3870         * Makefile.in (OBJS): Remove bt-load.o.
3871         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
3872         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3873         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
3874         document that the option no longer does anything.
3875         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
3876         * target.def (branch_target_register_class): Delete.
3877         (branch_target_register_callee_saved): Likewise.
3878         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
3879         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
3880         * doc/tm.texi: Regenerate.
3881         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
3882         (make_pass_branch_target_load_optimize2): Likewise.
3883         * passes.def (pass_branch_target_load_optimize1): Likewise.
3884         (pass_branch_target_load_optimize2): Likewise.
3885         * targhooks.h (default_branch_target_register_class): Likewise.
3886         * targhooks.c (default_branch_target_register_class): Likewise.
3887         * opt-suggestions.c (test_completion_valid_options): Remove
3888         -fbtr-bb-exclusive from the list of test options.
3889         * bt-load.c: Remove.
3891 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
3893         * match.pd: Add flag_unsafe_math_optimizations check
3894         before deciding on the widest type in a binary math operation.
3896 2019-09-09  Martin Liska  <mliska@suse.cz>
3898         * config/i386/i386.opt: Update comment of removed
3899         options that are preserved only for backward
3900         compatibility.
3902 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
3904         PR target/87853
3905         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
3906         instead of __v16qs.
3908         PR target/91704
3909         * config/i386/avxintrin.h (__v32qs): New typedef.
3910         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
3911         instead of __v32qi.
3913 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3915         * doc/invoke.texi (Option Summary): Cover eBPF.
3916         (eBPF Options): New section.
3917         * doc/extend.texi (BPF Built-in Functions): Likewise.
3918         (BPF Kernel Helpers): Likewise.
3920 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3922         * config.gcc: Support for bpf-*-* targets.
3923         * common/config/bpf/bpf-common.c: New file.
3924         * config/bpf/t-bpf: Likewise.
3925         * config/bpf/predicates.md: Likewise.
3926         * config/bpf/constraints.md: Likewise.
3927         * config/bpf/bpf.opt: Likewise.
3928         * config/bpf/bpf.md: Likewise.
3929         * config/bpf/bpf.h: Likewise.
3930         * config/bpf/bpf.c: Likewise.
3931         * config/bpf/bpf-protos.h: Likewise.
3932         * config/bpf/bpf-opts.h: Likewise.
3933         * config/bpf/bpf-helpers.h: Likewise.
3934         * config/bpf/bpf-helpers.def: Likewise.
3936 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3938         * doc/sourcebuild.texi (Effective-Target Keywords): Document
3939         indirect_calls.
3941 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
3943         * opt-functions.awk (integer_range_info): Make sure values are in
3944         numeric context before operating with them.
3946 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
3948         * genemit.c (gen_split): Print the filename and line number where the
3949         splitter (or peephole2) was defined, to the dump file.
3951 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
3953         PR tree-optimization/91665
3954         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
3955         incompatible with the type of PHI result.
3957 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
3959         PR target/91684
3960         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
3961         gen_unaligned_storedi for 4-byte aligned addresses.
3963 2019-09-06  Jim Wilson  <jimw@sifive.com>
3965         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
3966         change.
3968 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
3970         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
3972 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
3974         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
3975         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
3977 2019-09-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
3979         PR target/91654
3980         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
3981         cost of SSE->integer and integer->SSE moves from 2 to 6.
3982         (core_cost): Ditto.
3984 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
3986         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
3987         before testing TYPE_TRANSPARENT_AGGR.
3988         * calls.c (initialize_argument_information, load_register_parameters):
3989         Likewise.
3991 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
3993         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
3994         high regs.
3995         (cmp_ior): Likewise.
3997 2019-09-06  Martin Liska  <mliska@suse.cz>
3999         * doc/match-and-simplify.texi: Separate tuples with ;.
4001 2019-09-06  Martin Liska  <mliska@suse.cz>
4003         PR c++/91125
4004         * Makefile.in: Remove tlink.o.
4005         * collect2.c (do_link): New function isolated
4006         from do_tlink.
4007         (main): Use.
4008         * collect2.h (do_tlink): Remove declaration of do_tlink.
4009         * doc/extend.texi: Remove documentation of -frepo.
4010         * doc/invoke.texi: Likewise.
4011         * doc/sourcebuild.texi: Remove cleanup-repo-files.
4012         * tlink.c: Remove.
4014 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
4015             Jim Wilson  <jimw@sifive.com>
4017         PR target/91635
4018         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
4019         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
4020         paradoxical_subreg_p (operands[0]).
4021         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
4022         use as intermediate value.
4024 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
4026         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
4027         (sync_compare_and_swap<mode>_insn): Likewise.
4029 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4031         PR middle-end/91615
4032         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
4033         without movmisalign optab.
4035 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
4037         PR middle-end/91001
4038         PR middle-end/91105
4039         PR middle-end/91106
4040         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
4041         types, use type of their first field instead of type of
4042         args[i].tree_value.
4044 2019-09-05  Richard Biener  <rguenther@suse.de>
4046         PR rtl-optimization/91656
4047         * postreload-gcse.c (record_last_mem_set_info): Revert addition
4048         of early out.
4050 2019-09-05  Richard Biener  <rguenther@suse.de>
4052         PR middle-end/90501
4053         * tree-inline.c (declare_return_variable): Mark the return
4054         slot as addressable after building an address of it.
4056 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
4058         * doc/install.texi: Update and clarify requirements to build GNAT.
4060 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
4062         PR middle-end/91577
4063         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
4064         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
4065         call to be in memory.
4066         (pass_expand::execute): Call discover_nonconstant_array_refs before
4067         setting currently_expanding_to_rtl.
4069 2019-09-04  Caroline Tice  <cmtice@google.com>
4071         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
4072         specified together.
4074 2019-09-04  Marek Polacek  <polacek@redhat.com>
4076         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
4078 2019-09-04  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4080         PR target/32413
4081         * config/i386/i386.c (inline_secondary_memory_needed): Return true
4082         for QI and HImode moves between SSE and general registers.
4084 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
4086         PR c/78736
4087         * doc/invoke.texi: Document -Wenum-conversion.
4089 2019-09-04  Richard Biener  <rguenther@suse.de>
4091         PR rtl-optimization/36262
4092         * postreload-gcse.c: Include intl.h and gcse.h.
4093         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
4094         to avoid linear list walk.
4095         (record_last_mem_set_info): Gate off if not computing transparentness.
4096         (get_bb_avail_insn): If transparentness isn't computed give up
4097         early.
4098         (gcse_after_reload_main): Skip compute_transp and extended PRE
4099         if gcse_or_cprop_is_too_expensive says so.
4101 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4103         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
4104         noinit section.
4105         (msp430_select_section): Handle decls with the "noinit" attribute with
4106         default_elf_select_section.
4107         Handle SECCAT_RODATA_MERGE_* section types with
4108         default_elf_select_section.
4109         Add comments about handling of unsupported section types.
4110         (msp430_section_type_flags): Remove handling of the noinit section.
4112 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4114         * config/msp430/msp430.c (msp430_attr): Remove warnings about
4115         conflicting msp430-specific attributes.
4116         (msp430_section_attr): Likewise.
4117         Add warnings about conflicts with generic "noinit" and "section"
4118         attributes.
4119         Fix grammar in -mlarge error message.
4120         (msp430_data_attr): Rename to msp430_persist_attr.
4121         Add warnings about conflicts with generic "noinit" and "section"
4122         attributes.
4123         Add warning for when variable is not initialized.
4124         Chain conditionals which prevent the attribute being added.
4125         (ATTR_EXCL): New helper.
4126         (attr_reent_exclusions): New exclusion table.
4127         (attr_naked_exclusions): Likewise.
4128         (attr_crit_exclusions): Likewise.
4129         (attr_lower_exclusions): Likewise.
4130         (attr_upper_exclusions): Likewise.
4131         (attr_either_exclusions): Likewise.
4132         (attr_persist_exclusions): Likewise.
4133         (msp430_attribute_table): Update with exclusion rules.
4134         (msp430_output_aligned_decl_common): Don't output common symbol if decl
4135         has a section.
4137 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
4139         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
4140         (msp430_handle_generic_attribute): New function.
4141         * doc/tm.texi: Regenerate.
4142         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
4143         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
4144         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
4145         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
4147 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
4149         PR tree-optimization/91504
4150         * match.pd: Add ((~a & b) ^a) --> (a | b).
4152 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
4154         PR target/91604
4155         * config/i386/i386-expand.c (split_double_mode): If there is more than
4156         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
4157         already split matching MEM operand instead of calling adjust_address
4158         again.
4160 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
4162         * config.gcc: Obsolete spu target.  Remove references to spu.
4163         * configure.ac: Remove references to spu.
4164         * configure: Regenerate.
4165         * config/spu/: Remove directory.
4166         * common/config/spu/: Remove directory.
4168         * doc/extend.texi: Remove references to spu.
4169         * doc/invoke.texi: Likewise.
4170         * doc/md.texi: Likewise.
4171         * doc/sourcebuild.texi: Likewise.
4173 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4175         PR middle-end/91603
4176         PR middle-end/91612
4177         PR middle-end/91613
4178         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
4179         and SSA_NAME referring to CONSTANT_P correctly.
4181 2019-09-03  Richard Biener  <rguenther@suse.de>
4183         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
4184         (vn_nary_op_insert): Likewise.
4185         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
4186         (vn_nary_op_lookup): Likewise.
4187         (vn_nary_op_insert): Likewise.
4189 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
4191         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
4192         (*op0, 1) instead of XEXP (*op1, 0).
4194 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4196         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
4197         (aarch64_fjcvtzs): New define_insn.
4198         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
4199         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
4200         Add AARCH64_JSCVT.
4201         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
4202         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
4203         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4204         __ARM_FEATURE_JCVT where appropriate.
4205         * config/aarch64/arm_acle.h (__jcvt): Define.
4207 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4209         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
4210         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
4211         (aarch64_<frintnzs_op><mode>): New define_insn.
4212         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
4213         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
4214         __ARM_FEATURE_FRINT when appropriate.
4215         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
4216         frint32x, frint64z, frint64x.
4217         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
4218         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
4219         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
4220         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
4221         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
4222         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
4223         * config/aarch64/iterators.md (VSFDF): Define.
4224         (FRINTNZX): Likewise.
4225         (frintnzs_op): Likewise.
4227 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
4229         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
4230         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
4231         Cortex-A34.
4232         * config/aarch64/aarch64-tune.md: Regenerated.
4233         * doc/invoke.texi: Document the new processors.
4235 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
4237         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
4238         string.
4239         (ssbs): Likewise.
4240         (sve2): Likewise.
4241         (sve2-sm4): Likewise.
4242         (sveaes): Likewise.
4243         (svesha3): Likewise.
4244         (svebitperm): Likewise.
4246 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
4247             Richard Biener  <rguenther@suse.de>
4249         PR tree-optimization/91597
4250         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
4251         BIT_AND_EXPR optimization for pointers, even if both operand
4252         ranges don't include NULL, the result can be NULL.
4254 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4256         PR middle-end/91605
4257         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
4258         (non_mem_decl_p): ...this.
4259         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
4260         (expand_assignment): Call mem_ref_referes_to_non_mem_p
4261         unconditionally as before.
4263 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
4265         PR target/91323
4266         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
4267         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
4268         * tree.def (LTGT_EXPR): Likewise.
4269         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
4271 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
4273         PR go/91617
4274         * fold-const.c (range_check_type): For enumeral and boolean
4275         type, pass 1 to type_for_size langhook instead of
4276         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
4277         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
4278         (build_range_check): Don't call unsigned_type_for for pointer types.
4279         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
4280         range_check_type result.
4282 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
4284         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
4285         (replace_ref): Do not replace a chain of only two candidates which are
4286         valid memory references.
4288 2019-09-02  Martin Liska  <mliska@suse.cz>
4290         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
4291         Bail out when we'll end up with the same number of clusters as
4292         at the beginning.
4293         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
4294         (jump_table_cluster::can_be_handled): Remove the guard
4295         as it's already handled in ::is_enabled.  Allocate output
4296         after early bail out.
4298 2019-09-02  Martin Liska  <mliska@suse.cz>
4300         PR gcov-profile/91601
4301         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
4302         (path_contains_zero_or_negative_cycle_arc): ... this and handle
4303         also negative edges.
4304         (circuit): Handle also negative edges as they can happen
4305         in some situations.
4307 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
4309         PR target/91472
4310         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
4311         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
4312         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
4314 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
4316         PR middle-end/91623
4317         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
4318         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
4319         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
4320         zero vector.
4322         PR lto/91572
4323         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
4324         GIMPLE_ASM TREE_LIST operands.
4326 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
4328         * doc/generic.texi (Unary and Binary Expressions): Mark up
4329         an instance of TYPE_MIN.
4331 2019-08-31  Stafford Horne  <shorne@gmail.com>
4333         * config/or1k/constraints.md (t): New constraint.
4334         * config/or1k/or1k.h (GOT_REGS): New register class.
4335         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
4337 2019-08-30  Jim Wilson  <jimw@sifive.com>
4339         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
4340         and -fpic and -mplt then disable -msave-restore and warn.
4342 2019-08-30  Martin Sebor  <msebor@redhat.com>
4344         PR middle-end/91599
4345         * tree-ssa-strlen.c (handle_store): Use a fallback location if
4346         the statement doesn't have one.
4347         * gimple-pretty-print.c (percent_G_format): Same.
4349         PR middle-end/91584
4350         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
4351         before using them to validate MEM_REF offset.
4353 2019-08-30  Marek Polacek  <polacek@redhat.com>
4355         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
4357 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4359         * config/arm/arm.md (unaligned_loaddi,
4360         unaligned_storedi): New unspec insn patterns.
4361         * config/arm/neon.md (unaligned_storev8qi): Likewise.
4362         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
4363         and unaligned_storedi for 4-byte aligned memory.
4364         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
4365         4-byte aligned memory.
4367 2019-08-30  Martin Jambor  <mjambor@suse.cz>
4369         tree-optimization/91579
4370         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
4371         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
4372         appropriate.
4373         (arg_needs_copy_p): Removed.
4374         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
4375         arg_needs_copy_p.
4376         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
4378 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4380         * config/i386/i386-features.c
4381         (general_scalar_chain::compute_convert_gain):
4382         Correct cost for double-word shifts.
4383         (general_scalar_to_vector_candidate_p): Reject count operands
4384         greater or equal to mode bitsize.
4386 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4388         * config/i386/i386.c (inline_secondary_memory_needed): Return true
4389         for moves between SSE and non-general registers and between
4390         mask and non-general registers.
4391         (ix86_register_move_cost): Remove stalled comment.
4393 2019-08-29  Richard Biener  <rguenther@suse.de>
4395         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
4396         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
4398 2019-08-29  Richard Biener  <rguenther@suse.de>
4400         PR bootstrap/91580
4401         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
4402         Do not emit scalar copies for debug-insns, instead replace
4403         their uses with the reg copy used in the chain or reset them
4404         if there is a reaching definition outside of the chain as well.
4406 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
4408         PR target/91560
4409         * config/i386/i386-expand.c (expand_vec_perm_movs,
4410         expand_vec_perm_blend, expand_vec_perm_vpermil,
4411         expand_vec_perm_pshufb, expand_vec_perm_1,
4412         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
4413         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
4414         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
4415         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
4416         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
4417         comments - replace ix86_expand_vec_perm_builtin_1 with
4418         ix86_expand_vec_perm_const_1.
4419         (expand_vec_perm2_vperm2f128_vblend): New function.
4420         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
4421         expand_vec_perm2_vperm2f128_vblend as last resort.
4422         (canonicalize_perm): Formatting fix.
4424         PR tree-optimization/91351
4425         * tree-cfg.c (generate_range_test): Use range_check_type instead of
4426         unsigned_type_for.
4427         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
4428         range_check_type returns NULL.
4429         * tree-switch-conversion.c (switch_conversion::build_one_array):
4430         Use range_check_type instead of unsigned_type_for, don't perform
4431         linear opt if it returns NULL.
4432         (bit_test_cluster::find_bit_tests): Formatting fix.
4433         (bit_test_cluster::emit): Use range_check_type instead of
4434         unsigned_type_for.
4435         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
4436         returns NULL.
4438 2019-08-29  Richard Biener  <rguenther@suse.de>
4440         PR tree-optimization/91568
4441         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
4442         (vect_update_max_nunits): Add overload for poly_uint64.
4443         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
4444         (vect_build_slp_tree): Record max_nunits into the subtree
4445         and merge it upwards.
4446         (vect_print_slp_tree): Print max_nunits.
4448 2019-08-28  Marek Polacek  <polacek@redhat.com>
4450         Implement P1152R4: Deprecating some uses of volatile.
4451         PR c++/91361
4452         * doc/invoke.texi: Document -Wvolatile.
4454 2019-08-28  Marek Polacek  <polacek@redhat.com>
4456         PR c++/91360 - Implement C++20 P1143R2: constinit.
4457         * doc/invoke.texi: Document -Wc++20-compat.
4459 2019-08-28  Martin Sebor  <msebor@redhat.com>
4461         PR tree-optimization/91457
4462         * builtins.c (component_size): New function.
4463         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
4464         * builtins.h (compute_objsize): Add argument.
4465         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
4466         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
4467         (vrp_prop::check_mem_ref): Same.
4468         (vrp_prop::search_for_addr_array): Set no-warning bit.
4469         (check_array_bounds): Same.
4471 2019-08-28  Martin Sebor  <msebor@redhat.com>
4473         PR driver/80545
4474         * opts-common.c (option_enabled): Correct checking for language
4475         options.
4477 2019-08-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4479         * config/i386/i386.c (ix86_register_move_cost): Do not
4480         limit the cost of moves to/from XMM register to minimum 8.
4482 2019-08-28  Martin Jambor  <mjambor@suse.cz>
4484         PR ipa/91468
4485         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
4486         checking assert a normal assert to test it really is redundant.
4487         * ipa-prop.c (compute_complex_assign_jump_func): Removed
4488         redundant test.
4489         (update_jump_functions_after_inlining): Removed combining unary
4490         arithmetic operations with an ancestor jump function.
4491         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
4492         instead of t.
4494 2019-08-28  Richard Biener  <rguenther@suse.de>
4496         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
4497         add the MD problem.
4499 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4500             Richard Biener  <rguenther@suse.de>
4502         * expr.c (expand_assignment): Handle misaligned DECLs.
4503         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
4504         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
4505         too.
4506         (assign_parm_setup_stack): Allocate properly aligned stack slots.
4507         * varasm.c (build_constant_desc): Align constants of misaligned types.
4508         * config/arm/predicates.md (aligned_operand): New predicate.
4509         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
4510         aligned_operand to check restrictions on memory addresses.
4511         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
4512         * config/arm/vec-common.md (mov<VALL>): Likewise.
4514 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
4516         PR libgomp/91530
4517         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
4518         V_128 iterator instead of VI_128.
4520 2019-08-28  Martin Liska  <mliska@suse.cz>
4522         PR tree-optimization/90970
4523         * builtins.c (check_access): Remove assignment to maxread
4524         as it hasn't been used since when it was introduced in r255755.
4526 2019-08-27  Martin Sebor  <msebor@redhat.com>
4528         PR tree-optimization/91567
4529         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
4530         of unknown strings.
4531         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
4532         to PTRDIFF_MAX - 2.
4534 2019-08-27  Jeff Law  <law@redhat.com>
4536         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
4537         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
4539 2019-08-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4541         PR target/91528
4542         * config/i386/i386-features.c (convert_scalars_to_vector):
4543         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
4544         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
4545         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
4546         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
4548 2019-08-27  Richard Biener  <rguenther@suse.de>
4550         * config/i386/i386-features.h
4551         (general_scalar_chain::~general_scalar_chain): Add.
4552         (general_scalar_chain::insns_conv): New bitmap.
4553         (general_scalar_chain::n_sse_to_integer): New.
4554         (general_scalar_chain::n_integer_to_sse): Likewise.
4555         (general_scalar_chain::make_vector_copies): Adjust signature.
4556         * config/i386/i386-features.c
4557         (general_scalar_chain::general_scalar_chain): Outline,
4558         initialize new members.
4559         (general_scalar_chain::~general_scalar_chain): New.
4560         (general_scalar_chain::mark_dual_mode_def): Record insns
4561         we need to insert conversions at and count them.
4562         (general_scalar_chain::compute_convert_gain): Account
4563         for conversion instructions at chain boundary.
4564         (general_scalar_chain::make_vector_copies): Generate a single
4565         copy for a def by a specific insn.
4566         (general_scalar_chain::convert_registers): First populate
4567         defs_map, then make copies at out-of chain insns.
4569 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
4571         * config/arm/arm.md (stack_protect_set_insn): Add security-related
4572         comment.
4573         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
4575 2019-08-27  Martin Liska  <mliska@suse.cz>
4577         * cgraph.c (cgraph_node::remove): Remove dead assignment before
4578         loop.
4579         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
4580         Enclose in anonymous namespace.
4581         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
4582         hard_register initialization in braces.
4583         * tree-vrp.h (value_range_base::supports_type_p): Return false
4584         for function with boolean return type.
4586 2019-08-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4588         * config/i386/i386.c (emit_i387_cw_initialization)
4589         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
4591 2019-08-26  Martin Sebor  <msebor@redhat.com>
4593         PR c++/83431
4594         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
4595         (sprintf_dom_walker): Remove class.
4596         (get_int_range): Make argument const.
4597         (directive::fmtfunc, directive::set_precision): Same.
4598         (format_none): Same.
4599         (build_intmax_type_nodes): Same.
4600         (adjust_range_for_overflow): Same.
4601         (format_floating): Same.
4602         (format_character): Same.
4603         (format_string): Same.
4604         (format_plain): Same.
4605         (get_int_range): Cast away constness.
4606         (format_integer): Same.
4607         (get_string_length): Call get_range_strlen_dynamic.  Handle
4608         null lendata.maxbound.
4609         (should_warn_p): Adjust argument scope qualifier.
4610         (maybe_warn): Same.
4611         (format_directive): Same.
4612         (parse_directive): Same.
4613         (is_call_safe): Same.
4614         (try_substitute_return_value): Same.
4615         (sprintf_dom_walker::handle_printf_call): Rename...
4616         (handle_printf_call): ...to this.  Initialize target to host charmap
4617         here instead of in pass_sprintf_length::execute.
4618         (struct call_info): Make global.
4619         (sprintf_dom_walker::compute_format_length): Make global.
4620         (sprintf_dom_walker::handle_gimple_call): Same.
4621         * passes.def (pass_sprintf_length): Replace with pass_strlen.
4622         * print-rtl.c (print_pattern): Reduce the number of spaces to
4623         avoid -Wformat-truncation.
4624         * tree-pass.h (make_pass_warn_printf): New function.
4625         * tree-ssa-strlen.c (strlen_optimize): New variable.
4626         (get_string_length): Add comments.
4627         (get_range_strlen_dynamic): New function.
4628         (check_and_optimize_call): New function.
4629         (handle_integral_assign): New function.
4630         (strlen_check_and_optimize_stmt): Factor code out into
4631         strlen_check_and_optimize_call and handle_integral_assign.
4632         (strlen_dom_walker::evrp): New member.
4633         (strlen_dom_walker::before_dom_children): Use evrp member.
4634         (strlen_dom_walker::after_dom_children): Use evrp member.
4635         (printf_strlen_execute): New function.
4636         (pass_strlen::gate): Update to handle printf calls.
4637         (dump_strlen_info): New function.
4638         (pass_data_warn_printf): New variable.
4639         (pass_warn_printf): New class.
4640         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
4641         (handle_printf_call): Same.
4642         * tree-vrp.c (value_range_base::type): Adjust assertion.
4643         * vr-values.c (vr_values::update_value_range): Use type of the first
4644         argument rather than the second.
4646 2019-08-26  Richard Biener  <rguenther@suse.de>
4648         * config/i386/i386-features.c (general_remove_non_convertible_regs):
4649         Remove.
4650         (convert_scalars_to_vector): Do not call it.
4652 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
4653             Uros Bizjak  <ubizjak@gmail.com>
4655         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
4656         CASE_MATHFN_FLOATN for roundeven.
4657         * config/i386/i386.c (ix86_i387_mode_needed): Add case
4658         I387_ROUNDEVEN.
4659         (ix86_mode_needed): Likewise.
4660         (ix86_mode_after): Likewise.
4661         (ix86_mode_entry): Likewise.
4662         (ix86_mode_exit): Likewise.
4663         (ix86_emit_mode_set): Likewise.
4664         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
4665         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
4666         (ix86_entity): Add I387_ROUNDEVEN.
4667         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
4668         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
4669         (define_int_iterator): Likewise.
4670         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
4671         (define_constant): Define ROUND_ROUNDEVEN mode.
4672         (define_attr): Add roundeven mode for i387_cw.
4673         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
4674         * internal-fn.def (ROUNDEVEN): New builtin function.
4675         * optabs.def (roundeven_optab): New optab.
4677 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
4679         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
4680         for ROUNDEVEN.
4681         * builtins.def: Added function definitions for roundeven function
4682         variants.
4683         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
4684         function call.  Adjust condition for floor, ceil, trunc and round.
4685         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
4686         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
4687         (integer_valued_real_call_p): Added case for roundeven function.
4688         * real.c (is_even): New function. Returns true if real number is even,
4689         otherwise returns false.
4690         (is_halfway_below): New function. Returns true if real number is
4691         halfway between two integers, else return false.
4692         (real_roundeven): New function. Round real number to nearest integer,
4693         rounding halfway cases towards even.
4694         * real.h (real_value): Added descriptive comments.  Added function
4695         declaration for roundeven function.
4696         * doc/extend.texi (Other Builtins): List roundeven variants among
4697         functions which can be handled as builtins.
4699 2019-08-26  Richard Biener  <rguenther@suse.de>
4701         PR target/91522
4702         PR target/91527
4703         * config/i386/i386-features.h (general_scalar_chain::defs_map):
4704         New member.
4705         (general_scalar_chain::replace_with_subreg): Remove.
4706         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4707         (general_scalar_chain::convert_reg): Adjust signature.
4708         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
4709         iterate over all defs of a reg.
4710         (general_scalar_chain::replace_with_subreg): Remove.
4711         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
4712         (general_scalar_chain::make_vector_copies): Populate defs_map,
4713         place copy only after defs that are used as vectors in the chain.
4714         (general_scalar_chain::convert_reg): Emit a copy for a specific
4715         def in a specific instruction.
4716         (general_scalar_chain::convert_op): All reg uses are converted here.
4717         (general_scalar_chain::convert_insn): Emit copies for scalar
4718         uses of defs here.  Replace uses with the copies we created.
4719         Replace and convert the def.  Adjust REG_DEAD notes, remove
4720         REG_EQUIV/EQUAL notes.
4721         (general_scalar_chain::convert_registers): Only handle copies
4722         into the chain here.
4724 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
4726         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
4728 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
4730         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
4731         Add nop_convert case.
4732         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
4733         Fold all statements if requested.
4734         * tree-ssa-propagate.h (class substitute_and_fold_engine):
4735         Allow to fold all statements.
4736         * tree-vrp.c (class vrp_folder):
4737         Let substitute_and_fold_engine fold all statements.
4739 2019-08-26  Richard Biener  <rguenther@suse.de>
4741         PR tree-optimization/91526
4742         * passes.def: Note that after late FRE we do TODO_update_address_taken.
4743         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
4744         TODO_update_address_taken.
4746 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
4748         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
4749         __STDC_HOSTED__.
4751 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
4753         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
4754         machine mode for unspec_volatile operand.
4756 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
4758         * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
4759         * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
4760         * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
4761         (prefer_neon_for_64bits): Remove.
4762         * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
4763         (tune_params): Remove PREF_NEON_64_FALSE uses.
4764         (arm_option_override): Remove prefer_neon selection code.
4765         (arm_print_tune_info): Remove prefer_neon_for_64bits.
4766         * gcc/config/arm/arm-protos.h (tune_params): Remove
4767         prefer_neon_for_64bits.
4768         (prefer_neon_for_64bits): Remove.
4770 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
4772         PR pch/61250
4773         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
4774         and issue any diagnostics needed before collecting the pre-PCH
4775         state.
4777 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
4779         PR middle-end/91283
4780         * common.opt (fexcess-precision=): Add Optimization flag.  Use
4781         flag_excess_precision variable instead of
4782         flag_excess_precision_cmdline.
4783         * flags.h (class target_flag_state): Remove x_flag_excess_precision
4784         member.
4785         (flag_excess_precision): Don't define.
4786         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
4787         flag_excess_precision_cmdline.  Remove comment.
4788         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
4789         and x_flag_excess_precision instead of
4790         frontend_set_flag_excess_precision_cmdline and
4791         x_flag_excess_precision_cmdline.
4792         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
4793         x_flag_excess_precision_cmdline.
4794         * toplev.c (init_excess_precision): Remove.
4795         (lang_dependent_init_target): Don't call it.
4797 2019-08-23  Martin Liska  <mliska@suse.cz>
4799         * lto-wrapper.c (run_gcc): When setting jobserver
4800         set also parallel to 1.  This was done so before r273908.
4802 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
4804         * config/arm/arm-cpus.in (cortex-m35p): New entry.
4805         (cortex-a76ae): Likewise.
4806         (cortex-a77): Likewise
4807         * config/arm/arm-tables.opt: Regenerate.
4808         * config/arm/arm-tune.md: Likewise.
4809         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
4810         cortex-a77 CPU options.
4812 2019-08-23  Martin Liska  <mliska@suse.cz>
4814         * profile.c (instrument_values): Do not set
4815         0 as last argument.
4816         * tree-profile.c (gimple_gen_interval_profiler): Remove
4817         last argument.
4818         (gimple_gen_pow2_profiler): Likewise.
4819         (gimple_gen_topn_values_profiler): Likewise.
4820         (gimple_gen_ic_profiler): Likewise.
4821         (gimple_gen_time_profiler): Likewise.
4822         (gimple_gen_average_profiler): Likewise.
4823         (gimple_gen_ior_profiler): Likewise.
4824         * value-prof.c (dump_histogram_value): Use default
4825         in switch statement instead of HIST_TYPE_MAX.
4826         (stream_in_histogram_value): Likewise.
4827         (gimple_duplicate_stmt_histograms): Do not
4828         use NULL for implicitly set arguments.
4829         (gimple_divmod_values_to_profile): Do not use
4830         reserve+quick_push.
4831         (gimple_indirect_call_to_profile): Likewise.
4832         (gimple_find_values_to_profile): Use implicit
4833         function call arguments.
4834         * value-prof.h (gimple_alloc_histogram_value):
4835         Set default values.
4836         (gimple_gen_interval_profiler): Remove last argument.
4837         (gimple_gen_pow2_profiler): Likewise.
4838         (gimple_gen_topn_values_profiler): Likewise.
4839         (gimple_gen_ic_profiler): Likewise.
4840         (gimple_gen_time_profiler): Likewise.
4841         (gimple_gen_average_profiler): Likewise.
4842         (gimple_gen_ior_profiler): Likewise.
4844 2019-08-22  Martin Sebor  <msebor@redhat.com>
4846         PR middle-end/91490
4847         * builtins.c (c_strlen): Rename argument and introduce new local.
4848         Set no-warning bit on original argument.
4849         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
4850         Fold empty and zero constructors into empty strings.
4851         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
4852         for missing initializers.
4853         * tree.c (build_string_literal): Handle optional argument.
4854         * tree.h (build_string_literal): Add defaulted argument.
4855         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
4856         no-warning bit on original expression.
4858 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
4860         PR target/91481
4861         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4862         and UNSPEC_DARN_RAW.
4863         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
4864         UNSPECV_DARN_RAW.
4865         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
4866         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
4867         (darn): Use an unspec_volatile, and UNSPECV_DARN.
4869 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
4871         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
4872         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
4873         * config/rs6000/rs6000.md (unspec): ... here.
4874         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
4875         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4876         cmpeqb, *cmpeqb_internal): Delete, move to...
4877         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
4878         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
4879         cmpeqb, *cmpeqb_internal): ... here.
4881 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
4883         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
4884         intrinsics if __ARM_FP.
4885         Use __ARM_FEATURE_CRC32 ifdef guard.
4887 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
4889         * config/arm/arm.md (neon_for_64bits): Remove.
4890         (avoid_neon_for_64bits): Remove.
4891         (arm_adddi3): Always split early.
4892         (arm_subdi3): Always split early.
4893         (negdi2): Remove Neon expansion.
4894         (split zero_extend): Split before reload.
4895         (split sign_extend): Split before reload.
4897 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
4899         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
4900         (qhs_extenddi_cstr): Likewise.
4901         * config/arm/arm.md (ashldi3): Always expand early.
4902         (ashlsi3): Likewise.
4903         (ashrsi3): Likewise.
4904         (zero_extend<mode>di2): Remove Neon variants.
4905         (extend<mode>di2): Likewise.
4906         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
4907         (signed_shift_di3_neon): Likewise.
4908         (unsigned_shift_di3_neon): Likewise.
4909         (ashrdi3_neon_imm_noclobber): Likewise.
4910         (lshrdi3_neon_imm_noclobber): Likewise.
4911         (<shift>di3_neon): Likewise.
4912         (split extend): Remove DI extend split patterns.
4914 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
4916         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
4917         (split not): Add DImode not splitter.
4918         (anddi3): Remove pattern.
4919         (anddi3_insn): Likewise.
4920         (anddi_zesidi_di): Likewise.
4921         (anddi_sesdi_di): Likewise.
4922         (anddi_notdi_di): Likewise.
4923         (anddi_notzesidi_di): Likewise.
4924         (anddi_notsesidi_di): Likewise.
4925         (iordi3): Likewise.
4926         (iordi3_insn): Likewise.
4927         (iordi_zesidi_di): Likewise.
4928         (iordi_sesidi_di): Likewise.
4929         (xordi3): Likewise.
4930         (xordi3_insn): Likewise.
4931         (xordi_sesidi_di): Likewise.
4932         (xordi_zesidi_di): Likewise.
4933         (one_cmpldi2): Likewise.
4934         (one_cmpldi2_insn): Likewise.
4935         * config/arm/constraints.md: Remove De, Df, Dg constraints.
4936         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
4937         alternative.
4938         (iwmmxt_xordi3): Likewise.
4939         (iwmmxt_anddi3): Likewise.
4940         * config/arm/neon.md (orndi3_neon): Remove pattern.
4941         (anddi_notdi_di): Likewise.
4942         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
4943         (arm_iordi_operand_neon): Likewise.
4944         (arm_xordi_operand_neon): Likewise.
4945         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
4946         (iordi_notzesidi_di): Likewise.
4947         (iordi_notdi_zesidi): Likewise.
4948         (iordi_notsesidi_di): Likewise.
4950 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
4952         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
4953         insn.
4954         (iorsi3_compare0_scratch): Likewise.
4956 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
4958         * config/aarch64/aarch64-simd-builtins.def:
4959         (ld1x4): New.
4960         (st1x4): Likewise.
4961         * config/aarch64/aarch64-simd.md:
4962         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
4963         (aarch64_st1x4<VALLDIF:mode>): Likewise.
4964         (aarch64_ld1_x4_<mode>): Likewise.
4965         (aarch64_st1_x4_<mode>): Likewise.
4966         * config/aarch64/arm_neon.h:
4967         (vld1_s8_x4): New function.
4968         (vld1q_s8_x4): Likewise.
4969         (vld1_s16_x4): Likewise.
4970         (vld1q_s16_x4): Likewise.
4971         (vld1_s32_x4): Likewise.
4972         (vld1q_s32_x4): Likewise.
4973         (vld1_u8_x4): Likewise.
4974         (vld1q_u8_x4): Likewise.
4975         (vld1_u16_x4): Likewise.
4976         (vld1q_u16_x4): Likewise.
4977         (vld1_u32_x4): Likewise.
4978         (vld1q_u32_x4): Likewise.
4979         (vld1_f16_x4): Likewise.
4980         (vld1q_f16_x4): Likewise.
4981         (vld1_f32_x4): Likewise.
4982         (vld1q_f32_x4): Likewise.
4983         (vld1_p8_x4): Likewise.
4984         (vld1q_p8_x4): Likewise.
4985         (vld1_p16_x4): Likewise.
4986         (vld1q_p16_x4): Likewise.
4987         (vld1_s64_x4): Likewise.
4988         (vld1_u64_x4): Likewise.
4989         (vld1_p64_x4): Likewise.
4990         (vld1q_s64_x4): Likewise.
4991         (vld1q_u64_x4): Likewise.
4992         (vld1q_p64_x4): Likewise.
4993         (vld1_f64_x4): Likewise.
4994         (vld1q_f64_x4): Likewise.
4995         (vst1_s8_x4): Likewise.
4996         (vst1q_s8_x4): Likewise.
4997         (vst1_s16_x4): Likewise.
4998         (vst1q_s16_x4): Likewise.
4999         (vst1_s32_x4): Likewise.
5000         (vst1q_s32_x4): Likewise.
5001         (vst1_u8_x4): Likewise.
5002         (vst1q_u8_x4): Likewise.
5003         (vst1_u16_x4): Likewise.
5004         (vst1q_u16_x4): Likewise.
5005         (vst1_u32_x4): Likewise.
5006         (vst1q_u32_x4): Likewise.
5007         (vst1_f16_x4): Likewise.
5008         (vst1q_f16_x4): Likewise.
5009         (vst1_f32_x4): Likewise.
5010         (vst1q_f32_x4): Likewise.
5011         (vst1_p8_x4): Likewise.
5012         (vst1q_p8_x4): Likewise.
5013         (vst1_p16_x4): Likewise.
5014         (vst1q_p16_x4): Likewise.
5015         (vst1_s64_x4): Likewise.
5016         (vst1_u64_x4): Likewise.
5017         (vst1_p64_x4): Likewise.
5018         (vst1q_s64_x4): Likewise.
5019         (vst1q_u64_x4): Likewise.
5020         (vst1q_p64_x4): Likewise.
5021         (vst1_f64_x4): Likewise.
5022         (vst1q_f64_x4): Likewise.
5024 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5026         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
5028 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5029             Richard Sandiford  <richard.sandiford@arm.com>
5031         PR target/88839
5032         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
5033         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
5035 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5037         PR target/90724
5038         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
5039         in reg if it fails aarch64_plus_operand predicate.
5041 2019-08-21  Richard Biener  <rguenther@suse.de>
5043         PR tree-optimization/91482
5044         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
5045         BUILT_IN_ASSUME_ALIGNED calls.
5047 2019-08-21  Richard Biener  <rguenther@suse.de>
5049         PR target/91498
5050         PR target/91503
5051         * config/i386/i386-features.c
5052         (general_scalar_chain::make_vector_copies): Copy stack temporary
5053         rtx when using it multiple times.
5054         (general_scalar_chain::convert_reg): Likewise.
5056 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5058         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
5060 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
5062         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
5063         catch more redundant zero initialization cases.
5064         (dse_dom_walker::dse_optimize_stmt): Likewise.
5066 2019-08-20  Richard Biener  <rguenther@suse.de>
5068         PR lto/91307
5069         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
5070         by collect2 when targetm.have_ctors_dtors which avoids dragging
5071         in temporary filenames from LTO input objects.
5073 2019-08-20  Richard Biener  <rguenther@suse.de>
5075         PR tree-optimization/37242
5076         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
5077         to (T)a + (T)b if we know that a + b does not overflow.
5079 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
5081         PR rtl-optimization/91347
5082         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
5083         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
5085 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5087         * calls.h (function_arg_info): Add a pass_by_reference field,
5088         defaulting to false.
5089         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
5090         when applying pass-by-reference semantics.
5091         (initialize_argument_information): Likewise.
5092         (emit_library_call_value_1): Likewise.
5093         * function.c (assign_parm_data_one): Remove passed_pointer field.
5094         (assign_parm_find_data_types): Don't set it.
5095         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
5096         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
5097         arg.pass_by_reference instead of passed_pointer.
5099 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5101         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
5102         into a single function_arg_info, updating its fields when we
5103         apply pass-by-reference and promotion semantics.  Use the
5104         function_arg_info to track the mode rather than keeping it in
5105         a separate local variable.
5106         (initialize_argument_information): Likewise.  Base the final
5107         arg_to_skip on this new function_arg_info rather than creating
5108         a new one from scratch.
5110 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5112         * function.c (assign_parm_data_one): Replace passed_type,
5113         promoted_mode and named_arg with a function_arg_info field.
5114         (assign_parm_find_data_types): Remove local variables and
5115         assign directly to "data".  Make data->passed_mode shadow
5116         data->arg.mode until promotion, then assign the promoted
5117         mode to data->arg.mode.
5118         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
5119         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
5120         (assign_parm_remove_parallels, assign_parm_setup_block_p)
5121         (assign_parm_setup_block, assign_parm_setup_reg)
5122         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
5123         arg.mode instead of promoted_mode, arg.type instead of passed_type
5124         and arg.named instead of named_arg.  Use data->arg for
5125         function_arg_info structures that had the field values passed_type,
5126         promoted_mode and named_arg.  Base other function_arg_infos on
5127         data->arg, changing the necessary properties.
5129 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5131         * calls.h (apply_pass_by_reference_rules): Declare.
5132         * calls.c (apply_pass_by_reference_rules): New function.
5133         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
5134         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
5135         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
5136         * function.c (assign_parm_find_data_types): Likewise.
5137         * var-tracking.c (prepare_call_arguments): Likewise.
5139 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5141         * target.def (must_pass_in_stack): Take a function_arg_info instead
5142         of a mode and a type.
5143         * doc/tm.texi: Regenerate.
5144         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
5145         instead of a mode and a type.
5146         (must_pass_in_stack_var_size_or_pad): Likewise.
5147         * calls.c (must_pass_in_stack_var_size): Likewise.
5148         (must_pass_in_stack_var_size_or_pad): Likewise.
5149         (initialize_argument_information): Update call to
5150         targetm.calls.must_pass_in_stack.
5151         (must_pass_va_arg_on_stack): Likewise.
5152         * function.c (assign_parm_find_entry_rtl): Likewise.
5153         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
5154         * config/alpha/alpha.c (alpha_function_arg): Likewise.
5155         (alpha_function_arg_advance): Likewise.
5156         * config/cr16/cr16.c (cr16_function_arg): Likewise.
5157         (cr16_function_arg_advance): Likewise.
5158         * config/cris/cris.c (cris_pass_by_reference): Likewise.
5159         (cris_arg_partial_bytes): Likewise.
5160         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5161         * config/lm32/lm32.c (lm32_function_arg): Likewise.
5162         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
5163         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
5164         * config/mips/mips.c (mips_pass_by_reference): Likewise.
5165         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
5166         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
5167         * config/sh/sh.c (sh_pass_by_reference): Likewise.
5168         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
5169         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
5170         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
5171         instead of a mode and a type.
5172         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
5173         (fr30_num_arg_regs): Likewise.
5174         (fr30_setup_incoming_varargs): Update calls accordingly.
5175         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
5176         (fr30_function_arg_advance): Likewise.
5177         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
5178         instead of a mode and a type.
5179         * config/gcn/gcn.c (num_arg_regs): Likewise.
5180         (gcn_function_arg, gcn_function_arg_advance): Update calls to
5181         num_arg_regs and targetm.calls.must_pass_in_stack.
5182         (gcn_arg_partial_bytes): Likewise.
5183         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
5184         function_arg_info instead of a mode and a type.
5185         (classify_argument): Update call accordingly.
5186         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
5187         function_arg_info instead of a mode and a type.
5188         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
5189         Likewise.
5190         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
5191         (rs6000_parm_needs_stack): Update call accordingly.
5192         (setup_incoming_varargs): Likewise.
5194 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5196         * target.def (callee_copies): Take a function_arg_info instead
5197         of a mode, type and named flag.
5198         * doc/tm.texi: Regenerate.
5199         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
5200         instead of a mode, type and named flag.
5201         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
5202         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5203         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
5204         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
5205         instead of a mode, type and named flag.
5206         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
5207         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
5208         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
5209         * calls.h (reference_callee_copied): Take a function_arg_info
5210         instead of a mode, type and named flag.
5211         * calls.c (reference_callee_copied): Likewise.
5212         (initialize_argument_information): Update call accordingly.
5213         (emit_library_call_value_1): Likewise.
5214         * function.c (gimplify_parameters): Likewise.
5215         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
5216         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
5217         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
5218         * config/c6x/c6x.c (c6x_callee_copies): Delete.
5219         (TARGET_CALLEE_COPIES): Define to
5220         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
5221         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
5222         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
5223         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
5224         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
5225         instead of a mode, type and named flag.
5226         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
5227         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
5228         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
5229         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
5230         * config/msp430/msp430.c (msp430_callee_copies): Delete.
5231         (TARGET_CALLEE_COPIES): Define to
5232         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
5233         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
5234         instead of a mode, type and named flag.
5235         * config/sh/sh.c (sh_callee_copies): Likewise.
5236         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
5237         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
5238         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
5240 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5242         * target.def (function_arg_advance): Take a function_arg_info instead
5243         of a mode, type and named flag.
5244         * doc/tm.texi: Regenerate.
5245         * targhooks.h (default_function_arg_advance): Take a function_arg_info
5246         instead of a mode, type and named flag.
5247         * targhooks.c (default_function_arg_advance): Likewise.
5248         * calls.c (initialize_argument_information): Update call to
5249         targetm.calls.function_arg_advance.
5250         (emit_library_call_value_1): Likewise.
5251         * dse.c (get_call_args): Likewise.
5252         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5253         * function.c (assign_parms, gimplify_parameters): Likewise.
5254         * var-tracking.c (prepare_call_arguments): Likewise.
5255         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
5256         function_arg_info instead of a mode, type and named flag.
5257         (aarch64_setup_incoming_varargs): Update call accordingly.
5258         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
5259         function_arg_info instead of a mode, type and named flag.
5260         (alpha_setup_incoming_varargs): Update call accordingly.
5261         * config/arc/arc.c (arc_function_arg_advance): Take a
5262         function_arg_info instead of a mode, type and named flag.
5263         (arc_setup_incoming_varargs): Update call accordingly.
5264         * config/arm/arm.c (arm_function_arg_advance): Take a
5265         function_arg_info instead of a mode, type and named flag.
5266         (cmse_func_args_or_return_in_stack): Update call accordingly.
5267         (arm_function_ok_for_sibcall): Likewise.
5268         (cmse_nonsecure_call_clear_caller_saved): Likewise.
5269         * config/avr/avr.c (avr_function_arg_advance): Take a
5270         function_arg_info instead of a mode, type and named flag.
5271         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
5272         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
5273         (c6x_call_saved_register_used): Update call accordingly.
5274         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
5275         function_arg_info instead of a mode, type and named flag.
5276         * config/cris/cris.c (cris_function_arg_advance): Likewise.
5277         * config/csky/csky.c (csky_function_arg_advance): Likewise.
5278         (csky_setup_incoming_varargs): Update call accordingly.
5279         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
5280         function_arg_info instead of a mode, type and named flag.
5281         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
5282         * config/frv/frv.c (frv_function_arg_advance): Likewise.
5283         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
5284         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
5285         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
5286         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
5287         (ix86_setup_incoming_varargs): Update call accordingly.
5288         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
5289         function_arg_info instead of a mode, type and named flag.
5290         (ia64_setup_incoming_varargs): Update call accordingly.
5291         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
5292         function_arg_info instead of a mode, type and named flag.
5293         (iq2000_expand_prologue): Update call accordingly.
5294         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
5295         function_arg_info instead of a mode, type and named flag.
5296         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
5297         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
5298         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
5299         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
5300         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
5301         Likewise.
5302         (microblaze_expand_prologue): Update call accordingly.
5303         * config/mips/mips.c (mips_function_arg_advance): Take a
5304         function_arg_info instead of a mode, type and named flag.
5305         (mips_setup_incoming_varargs): Update call accordingly.
5306         (mips_output_args_xfer): Likewise.
5307         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
5308         function_arg_info instead of a mode, type and named flag.
5309         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
5310         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
5311         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
5312         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
5313         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
5314         (nios2_setup_incoming_varargs): Update call accordingly.
5315         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
5316         function_arg_info instead of a mode, type and named flag.
5317         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
5318         * config/pa/pa.c (pa_function_arg_advance): Likewise.
5319         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
5320         * config/pru/pru.c (pru_function_arg_advance): Likewise.
5321         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
5322         (riscv_setup_incoming_varargs): Update call accordingly.
5323         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
5324         function_arg_info instead of a mode, type and named flag.
5325         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
5326         Likewise.
5327         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
5328         (rs6000_parm_needs_stack): Update call accordingly.
5329         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
5330         instead of a mode, type and named flag.
5331         * config/s390/s390.c (s390_function_arg_advance): Likewise.
5332         (s390_call_saved_register_used): Update call accordingly.
5333         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
5334         instead of a mode, type and named flag.
5335         (sh_output_mi_thunk): Update call accordingly.
5336         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
5337         function_arg_info instead of a mode, type and named flag.
5338         * config/spu/spu.c (spu_function_arg_advance): Likewise.
5339         (spu_setup_incoming_varargs): Update call accordingly.
5340         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
5341         function_arg_info instead of a mode, type and named flag.
5342         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
5343         (tilegx_setup_incoming_varargs): Update call accordingly.
5344         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
5345         function_arg_info instead of a mode, type and named flag.
5346         (tilegx_setup_incoming_varargs): Update call accordingly.
5347         * config/v850/v850.c (v850_function_arg_advance): Take a
5348         function_arg_info instead of a mode, type and named flag.
5349         * config/vax/vax.c (vax_function_arg_advance): Likewise.
5350         * config/visium/visium.c (visium_function_arg_advance): Likewise.
5351         (visium_setup_incoming_varargs): Update call accordingly.
5352         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
5353         function_arg_info instead of a mode, type and named flag.
5355 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5357         * target.def (function_arg, function_incoming_arg): Take a
5358         function_arg_info instead of a mode, tree and named flag.
5359         * doc/tm.texi: Regenerate.
5360         * targhooks.h (default_function_arg): Take a function_arg_info
5361         instead of a mode, tree and named flag.
5362         (default_function_incoming_arg): Likewise.
5363         * targhooks.c (default_function_arg): Likewise.
5364         (default_function_incoming_arg): Likewise.
5365         * calls.h (function_arg_info::end_marker_p): New function.
5366         (function_arg_info::end_marker): Likewise.
5367         * calls.c (prepare_call_address, initialize_argument_information)
5368         (expand_call, emit_library_call_value_1): Update calls to
5369         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
5370         * dse.c: Include calls.h.
5371         (get_call_args): Update call to targetm.calls.function_arg.
5372         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5373         * var-tracking.c (prepare_call_arguments): Likewise.
5374         * function.c (assign_parm_find_entry_rtl): Update call to
5375         targetm.calls.function_incoming_arg.
5376         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
5377         function_arg_info instead of a mode, tree and named flag.
5378         * config/alpha/alpha.c (alpha_function_arg): Likewise.
5379         * config/arc/arc.c (arc_function_arg): Likewise.
5380         * config/arm/arm.c (arm_function_arg): Likewise.
5381         (cmse_func_args_or_return_in_stack): Update call accordingly.
5382         (arm_function_ok_for_sibcall): Likewise.
5383         (cmse_nonsecure_call_clear_caller_saved): Likewise.
5384         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
5385         instead of a mode, tree and named flag.
5386         * config/bfin/bfin.c (bfin_function_arg): Likewise.
5387         * config/c6x/c6x.c (c6x_function_arg): Likewise.
5388         (c6x_call_saved_register_used): Update call accordingly.
5389         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
5390         instead of a mode, tree and named flag.
5391         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
5392         (cris_function_arg_1): Likewise.
5393         * config/csky/csky.c (csky_function_arg): Likewise.
5394         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
5395         * config/fr30/fr30.c (fr30_function_arg): Likewise.
5396         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
5397         (frv_function_arg_1): Likewise.
5398         * config/ft32/ft32.c (ft32_function_arg): Likewise.
5399         * config/gcn/gcn.c (gcn_function_arg): Likewise.
5400         * config/h8300/h8300.c (h8300_function_arg): Likewise.
5401         * config/i386/i386.c (ix86_function_arg): Likewise.
5402         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
5403         (ia64_function_arg_1): Likewise.
5404         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
5405         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
5406         accordingly.
5407         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
5408         instead of a mode, tree and named flag.
5409         * config/m32c/m32c.c (m32c_function_arg): Likewise.
5410         * config/m32r/m32r.c (m32r_function_arg): Likewise.
5411         * config/m68k/m68k.c (m68k_function_arg): Likewise.
5412         * config/mcore/mcore.c (mcore_function_arg): Likewise.
5413         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
5414         (microblaze_expand_prologue): Update call accordingly.
5415         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
5416         instead of a mode, tree and named flag.
5417         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
5418         (mmix_function_arg_1): Likewise.
5419         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
5420         * config/moxie/moxie.c (moxie_function_arg): Likewise.
5421         * config/msp430/msp430.c (msp430_function_arg): Likewise.
5422         * config/nds32/nds32.c (nds32_function_arg): Likewise.
5423         * config/nios2/nios2.c (nios2_function_arg): Likewise.
5424         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
5425         (nvptx_function_incoming_arg): Likewise.
5426         * config/or1k/or1k.c (or1k_function_arg): Likewise.
5427         * config/pa/pa.c (pa_function_arg): Likewise.
5428         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
5429         * config/pru/pru.c (pru_function_arg): Likewise.
5430         * config/riscv/riscv.c (riscv_function_arg): Likewise.
5431         * config/rl78/rl78.c (rl78_function_arg): Likewise.
5432         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
5433         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
5434         (rs6000_parm_needs_stack): Update call accordingly.
5435         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
5436         instead of a mode, tree and named flag.
5437         * config/s390/s390.c (s390_function_arg): Likewise.
5438         (s390_call_saved_register_used): Update call accordingly.
5439         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
5440         instead of a mode, tree and named flag.
5441         (sh_output_mi_thunk): Update call accordingly.
5442         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
5443         (sparc_function_incoming_arg): Take a function_arg_info instead of
5444         a mode, tree and named flag.
5445         * config/spu/spu.c (spu_function_arg): Likewise.
5446         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
5447         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
5448         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
5449         * config/v850/v850.c (v850_function_arg): Likewise.
5450         * config/vax/vax.c (vax_function_arg): Likewise.
5451         * config/visium/visium.c (visium_function_arg): Likewise.
5452         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
5453         (xtensa_function_incoming_arg): Likewise.
5455 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5457         * target.def (setup_incoming_varargs): Take a function_arg_info
5458         instead of a mode and tree.
5459         * doc/tm.texi: Regenerate.
5460         * targhooks.h (default_setup_incoming_varargs): Take a
5461         function_arg_info instead of a mode and tree.
5462         * targhooks.c (default_setup_incoming_varargs): Likewise.
5463         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
5464         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
5465         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
5466         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
5467         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
5468         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
5469         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
5470         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
5471         Likewise.
5472         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
5473         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
5474         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
5475         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
5476         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
5477         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
5478         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
5479         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
5480         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
5481         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
5482         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
5483         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
5484         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
5485         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
5486         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
5487         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
5488         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
5489         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
5490         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
5491         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
5492         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
5493         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
5494         * function.c (assign_parms_setup_varargs): Update call to
5495         targetm.calls.setup_incoming_varargs.
5497 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5499         * target.def (pass_by_reference): Take a function_arg_info instead
5500         of a mode, type and named flag.
5501         * doc/tm.texi: Regenerate.
5502         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
5503         accordingly.
5504         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
5505         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
5506         function_arg_info instead of a mode, type and named flag.
5507         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
5508         * calls.h (pass_by_reference): Take a function_arg_info instead of a
5509         mode, type and named flag.
5510         * calls.c (pass_by_reference): Likewise.
5511         (pass_va_arg_by_reference): Update call accordingly.
5512         (initialize_argument_information): Likewise.
5513         (emit_library_call_value_1): Likewise.
5514         * function.c (assign_parm_find_data_types): Likewise.
5515         * var-tracking.c (prepare_call_arguments): Likewise.
5516         * stor-layout.c: Include calls.h.
5517         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
5518         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
5519         function_arg_info instead of a mode, type and named flag.
5520         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
5521         * config/arc/arc.c (arc_pass_by_reference): Likewise.
5522         * config/arm/arm.c (arm_pass_by_reference): Likewise.
5523         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
5524         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
5525         (c6x_call_saved_register_used): Update call to pass_by_reference.
5526         * config/cris/cris.c (cris_pass_by_reference): Take a
5527         function_arg_info instead of a mode, type and named flag.
5528         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
5529         function_arg_info instead of a mode, type and named flag.
5530         (epiphany_arg_partial_bytes): Update call accordingly.
5531         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
5532         function_arg_info instead of a mode, type and named flag.
5533         (ft32_arg_partial_bytes): Update call accordingly.
5534         * config/i386/i386.c (ix86_pass_by_reference): Take a
5535         function_arg_info instead of a mode, type and named flag.
5536         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
5537         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
5538         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
5539         (m32r_return_in_memory): Update call accordingly.
5540         * config/mips/mips.c (mips_pass_by_reference): Take a
5541         function_arg_info instead of a mode, type and named flag.
5542         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
5543         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
5544         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
5545         (moxie_arg_partial_bytes): Update call accordingly.
5546         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
5547         function_arg_info instead of a mode, type and named flag.
5548         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
5549         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
5550         * config/pa/pa.c (pa_pass_by_reference): Likewise.
5551         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
5552         (riscv_return_in_memory): Update call accordingly.
5553         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
5554         function_arg_info instead of a mode, type and named flag.
5555         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
5556         (rs6000_parm_needs_stack): Update call to pass_by_reference.
5557         * config/s390/s390.c (s390_pass_by_reference): Take a
5558         function_arg_info instead of a mode, type and named flag.
5559         (s390_call_saved_register_used): Update call accordingly.
5560         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
5561         instead of a mode, type and named flag.
5562         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
5563         * config/spu/spu.c (spu_pass_by_reference): Likewise.
5564         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
5565         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
5566         * config/v850/v850.c (v850_pass_by_reference): Likewise.
5567         * config/visium/visium.c (visium_pass_by_reference): Likewise.
5569 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5571         * target.def (arg_partial_bytes): Take a function_arg_info instead
5572         of a mode, type and named flag.
5573         * doc/tm.texi: Regenerate.
5574         * target.h (function_arg_info): Declare.
5575         * calls.h (function_arg_info): New class.
5576         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5577         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
5578         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
5579         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
5580         * calls.c (initialize_argument_information): Update call to
5581         targetm.calls.partial_bytes.
5582         (emit_library_call_value_1): Likewise.
5583         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
5584         * function.c (assign_parm_find_entry_rtl): Likewise.
5585         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
5586         function_arg_info instead of a mode, type and named flag.
5587         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
5588         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
5589         (cmse_func_args_or_return_in_stack): Update accordingly.
5590         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
5591         function_arg_info instead of a mode, type and named flag.
5592         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
5593         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
5594         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
5595         * config/fr30/fr30.c: Include calls.h.
5596         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
5597         type and named flag.
5598         * config/frv/frv.c: Include calls.h.
5599         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
5600         type and named flag.
5601         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
5602         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
5603         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
5604         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
5605         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
5606         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
5607         * config/microblaze/microblaze.c (function_arg_partial_bytes):
5608         Likewise.
5609         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
5610         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
5611         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
5612         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
5613         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
5614         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
5615         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
5616         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
5617         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
5618         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
5619         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
5620         (rs6000_parm_needs_stack): Update call accordingly.
5621         * config/sh/sh.c (sh_arg_partial_bytes): Take a
5622         function_arg_info instead of a mode, type and named flag.
5623         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
5624         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
5626 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5628         * calls.h (must_pass_va_arg_in_stack): Declare.
5629         * calls.c (must_pass_va_arg_in_stack): New function.
5630         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
5631         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
5632         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
5633         Likewise.
5634         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5636 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
5638         * calls.h (pass_va_arg_by_reference): Declare.
5639         * calls.c (pass_va_arg_by_reference): New function.
5640         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
5641         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
5642         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
5643         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
5644         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
5645         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
5646         (mips_gimplify_va_arg_expr): Likewise.
5647         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
5648         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
5649         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
5650         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
5651         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
5652         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
5653         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
5654         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
5655         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
5656         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
5657         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
5659 2019-08-20  Richard Biener  <rguenther@suse.de>
5661         PR target/91498
5662         * config/i386/i386-features.c (general_scalar_chain::convert_op):
5663         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
5664         (convert_scalars_to_vector): Add timode_p parameter and use it
5665         to guard TImode-only operation.
5666         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
5667         (pass_stv::execute): Pass down timode_p.
5669 2019-08-20  Lili Cui  <lili.cui@intel.com>
5671         * common/config/i386/i386-common.c
5672         (processor_names): Add tigerlake and cooperlake.
5673         (processor_alias_table): Add tigerlake and cooperlake.
5674         * config.gcc: Add -march=tigerlake and cooperlake.
5675         * config/i386/driver-i386.c
5676         (host_detect_local_cpu): Detect tigerlake and cooperlake.
5677         Add "has_avx" to classify processor.
5678         * config/i386/i386-builtins.c (processor_model) :
5679         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
5680         (arch_names_table): Add tigerlake and cooperlake.
5681         (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
5682         and PROCESSOR_COOPERLAKE.
5683         * config/i386/i386-c.c
5684         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
5685         * config/i386/i386-options.c
5686         (m_TIGERLAKE)  : Define.
5687         (m_COOPERLAKE) : Ditto.
5688         (m_CORE_AVX512): Ditto.
5689         (processor_cost_table): Add cascadelake.
5690         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
5691         * config/i386/i386.h
5692         (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
5693         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5694         (PTA_MOVDIRI): Ditto.
5695         (PTA_MOVDIR64B): Ditto.
5696         (PTA_COOPERLAKE) : Ditto.
5697         (PTA_TIGERLAKE)  : Ditto.
5698         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
5699         * doc/extend.texi: Add tigerlake and cooperlake.
5700         * doc/invoke.texi: Add tigerlake and cooperlake.
5702 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
5704         * doc/install.texi (Specific, alpha): Remove note to use
5705         binutils 2.11.2 or later.
5707 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5709         PR middle-end/89544
5710         * function.c (assign_parm_find_stack_rtl): Use larger alignment
5711         when possible.
5713 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
5715         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
5716         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
5717         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
5718         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
5719         * config/aarch64/constraints.md (Dt): New constraint
5720         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
5722 2019-08-19  Richard Biener  <rguenther@suse.de>
5724         PR tree-optimization/91403
5725         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
5726         cases we can handle with tail-recursion...
5727         (follow_ssa_edge_expr): ... here.  Do so.
5729 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
5731         PR target/91441
5732         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
5733         implemented for -fsanitize=kernel-address, and merge check logic
5734         with -fsanitize=address.
5736 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
5738         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
5739         for cpu and machine.  Factor 64/32b builtins.
5741 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
5743         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
5744         gone, point to sourceforge.net.
5746 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
5747         
5748         * doc/ux.texi (User Experience Guidelines): Update reference.
5750 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
5751         
5752         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
5753         not LGPL".
5755 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
5757         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
5758         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
5760 2019-08-16  Martin Sebor  <msebor@redhat.com>
5762         * tree.def (TYPE_SIZE): Clarify.
5763         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
5765 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5767         PR tree-optimization/91109
5768         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
5769         * lra.c (lra): Use lra_need_for_scratch_reg_p.
5770         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
5772 2019-08-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5774         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
5775         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
5776         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
5777         (uavg<mode>3_ceil): New expander.
5778         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
5779         mode iterator when creating CONST1_RTX.
5780         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
5781         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
5782         mode iterator for const1_operand predicate.
5784 2019-08-16  Richard Biener  <rguenther@suse.de>
5786         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
5787         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
5788         follow_ssa_edge.
5789         (follow_ssa_edge_in_condition_phi_branch): Likewise.
5790         (analyze_evolution_in_loop): Likewise.
5791         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
5792         (follow_ssa_edge_expr): ... here.  Refactor code.
5794 2019-08-16  Richard Biener  <rguenther@suse.de>
5796         PR target/91469
5797         * config/i386/i386-features.c
5798         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
5800 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5802         PR other/91255
5803         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
5804         only if subst_name matches curr_attr string.
5806 2019-08-16  Richard Biener  <rguenther@suse.de>
5808         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
5809         stmt at gsi_p, instead replace it with a NOP removed later.
5810         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
5811         that became dead because of that.
5813 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
5815         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
5816         for which we can't represent a range.
5817         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
5818         set_varying.
5819         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
5820         Set VR_UNDEFINED if type is not supported.
5821         * tree-ssanames.c (get_range_info): Pass type to set_varying.
5822         * tree-vrp.c (value_range_base::check): Assert that a varying has
5823         min/max set.
5824         (value_range_base::equal_p): Early bail for undefines.
5825         (value_range_base::set_varying): Accept a type.
5826         (value_range::set_varying): Same.
5827         (value_range_base::type): VARYING can have a type, while UNDEFINE
5828         is typeless.
5829         (value_range_base::dump): Print type for VARYING nodes.
5830         (value_range_base::set): Add type to VARYING.
5831         (extract_range_from_multiplicative_op): Pass type to set_varying.
5832         (extract_range_from_binary_expr): Same.
5833         (value_range_base::intersect_helper): Same.
5834         (value_range_base::union_helper): Same.
5835         (value_range_base::normalize_symbolics): Same.
5836         (determine_value_range_1): Same.
5837         * tree-vrp.h (class value_range_base): Add type to set_varying.
5838         Add prototype for dump(void).
5839         Add prototype for supports_type_p.
5840         (class value_range): Add type to set_varying.
5841         Add prototype for dump(void).
5842         * vr-values.c (set_value_range_to_truthvalue): Pass type to
5843         set_varying.
5844         (vr_values::get_lattice_entry): Set varying even if propagation
5845         finished.
5846         Pass type to set_varying.
5847         (vr_values::get_value_range): Remove vr_const_varying.
5848         Reallocate the lattice if needed.
5849         (vr_values::update_value_range): Pass type to set_varying.
5850         (vr_values::extract_range_for_var_from_comparison_expr): Same.
5851         (vr_values::extract_range_from_binary_expr): Same.
5852         (vr_values::extract_range_from_unary_expr): Same.
5853         (vr_values::extract_range_from_cond_expr): Same.
5854         (vr_values::check_for_binary_op_overflow): Same.
5855         (vr_values::extract_range_basic): Same.
5856         (vr_values::extract_range_from_assignment): Same.
5857         (vr_values::vr_values): Increase size of num_vr_values.
5858         (vr_values::extract_range_from_phi_node): Pass type to
5859         set_varying.
5861 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
5863         PR target/90878
5864         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
5865         for costs of hard register moves.
5866         (ix86_register_move_cost): Likewise.
5867         * config/i386/i386.h (processor_costs): Move costs of hard
5868         register moves to hard_register.  Add int_load, int_store,
5869         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5870         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
5871         for costs of RTL expressions.
5872         * config/i386/x86-tune-costs.h: Move costs of hard register
5873         moves to hard_register.  Duplicate int_load, int_store,
5874         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
5875         sse_load, sse_store for costs of RTL expressions.
5877 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
5879         * target.def (setup_incoming_vararg_bounds): Remove.
5880         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
5881         * doc/tm.texi: Regenerate.
5882         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
5883         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
5884         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
5885         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
5887 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5889         MSP430: Fix lines over 80 characters long in
5890         config/msp430/*.{c,h} files
5892         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
5893         specifier in string.
5894         (msp430_select_hwmult_lib): Split line more than 80 characters long.
5895         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
5896         redundant old comment.
5897         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
5898         Split line more than 80 characters long.
5899         * config/msp430/msp430.c (msp430_option_override): Likewise.
5900         (msp430_return_in_memory): Likewise.
5901         (msp430_gimplify_va_arg_expr): Likewise.
5902         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
5903         (msp430_legitimate_constant): Likewise.
5904         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
5905         (msp430_attr): Likewise.
5906         (msp430_data_attr): Likewise.
5907         (msp430_start_function): Likewise.
5908         (gen_prefix): Likewise.
5909         (msp430_init_sections): Likewise.
5910         (msp430_select_section): Likewise.
5911         (msp430_function_section): Likewise.
5912         (msp430_unique_section): Likewise.
5913         (msp430_output_aligned_decl_common): Likewise.
5914         (msp430_do_not_relax_short_jumps): Likewise.
5915         (msp430_init_builtins): Likewise.
5916         (msp430_expand_delay_cycles): Likewise.
5917         (msp430_expand_prologue): Likewise.
5918         (msp430_expand_epilogue): Likewise.
5919         (msp430_expand_helper): Likewise.
5920         (msp430_split_movsi): Likewise.
5921         (msp430_print_operand): Likewise.
5922         (msp430_return_addr_rtx): Likewise.
5923         (msp430x_extendhisi): Likewise.
5924         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
5925         (ASM_SPEC): Likewise.
5926         Remove very obvious comments.
5927         (LIB_SPEC): Split line more than 80 characters long.
5928         (EH_RETURN_HANDLER_RTX): Likewise.
5929         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
5931 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5933         MSP430: Fix whitespace errors and incorrect indentation in
5934         config/msp430/*.{c,h} files
5936         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
5937         (msp430_select_hwmult_lib): Likewise.
5938         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
5939         (msp430_extract_mcu_data): Likewise.
5940         (struct t_msp430_mcu_data): Likewise.
5941         * config/msp430/msp430.c (struct machine_function): Remove whitespace
5942         before left square bracket.
5943         (msp430_option_override): Fix indentation.
5944         (msp430_hard_regno_nregs_with_padding): Likewise.
5945         (msp430_initial_elimination_offset): Likewise.
5946         (msp430_special_register_convention_p): Remove whitespace before left
5947         square bracket and after exclamation mark.
5948         (msp430_evaluate_arg): Likewise.
5949         (msp430_callee_copies): Fix indentation.
5950         (msp430_gimplify_va_arg_expr): Likewise.
5951         (msp430_function_arg_advance): Remove whitespace before left square
5952         bracket.
5953         (reg_ok_for_addr): Likewise.
5954         (msp430_preserve_reg_p): Likewise.
5955         (msp430_compute_frame_info): Likewise.
5956         (msp430_asm_output_addr_const_extra): Add space between function name
5957         and open parenthesis.
5958         (has_section_name): Fix indentation.
5959         (msp430_attr): Remove trailing whitespace.
5960         (msp430_section_attr): Likewise.
5961         (msp430_data_attr): Likewise.
5962         (struct msp430_attribute_table): Fix comment and whitespace.
5963         (msp430_start_function): Remove whitespace before left square bracket.
5964         Add space between function name and open parenthesis.
5965         (msp430_select_section): Remove trailing whitespace.
5966         (msp430_section_type_flags): Remove trailing whitespace.
5967         (msp430_unique_section): Remove space before closing parenthesis.
5968         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
5969         (msp430_builtins): Remove whitespace before left square bracket.
5970         (msp430_init_builtins): Fix indentation.
5971         (msp430_expand_prologue): Remove whitespace before left square bracket.
5972         Remove space before closing parenthesis.
5973         (msp430_expand_epilogue): Remove whitespace before left square bracket.
5974         (msp430_split_movsi): Remove space before closing parenthesis.
5975         (helper_function_name_mappings): Fix indentation.
5976         (msp430_use_f5_series_hwmult): Fix whitespace.
5977         (use_32bit_hwmult): Likewise.
5978         (msp430_no_hwmult): Likewise.
5979         (msp430_output_labelref): Remove whitespace before left square bracket.
5980         (msp430_print_operand_raw): Likewise.
5981         (msp430_print_operand_addr): Likewise.
5982         (msp430_print_operand): Add two spaces after '.' in comment.
5983         Fix trailing whitespace.
5984         (msp430x_extendhisi): Fix indentation.
5985         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
5986         tab.
5987         (PC_REGNUM): Likewise.
5988         (STACK_POINTER_REGNUM): Likewise.
5989         (CC_REGNUM): Likewise.
5991 2019-08-15  Richard Biener  <rguenther@suse.de>
5993         PR target/91454
5994         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
5995         helper.
5996         (general_scalar_chain::make_vector_copies): Use it.
5998 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6000         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
6002 2019-08-15  Martin Liska  <mliska@suse.cz>
6004         * tree-ssa-dce.c (propagate_necessity): We can't reach now
6005         operators with no arguments.
6006         (eliminate_unnecessary_stmts): Likewise here.
6008 2019-08-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6010         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
6011         <case COMPARE>: Revert 2019-08-14 change.
6012         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
6013         for (TARGET_64BIT || mode != DImode).
6015 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
6017         * tree-vrp.c (value_range_base::set): Merge in code from
6018         value_range_base::set_and_canonicalize.
6019         Enforce canonicalization at set time.
6020         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
6021         (value_range_base::set_undefined): Inline call to set().
6022         (value_range_base::set_varying): Same.
6023         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
6024         (vrp_val_max): New argument handle_pointers.
6025         (vrp_val_min): Same.
6026         (ranges_from_anti_range): Same.
6027         (extract_range_into_wide_ints): Use tree argument instead of sign
6028         and precision.
6029         (extract_range_from_multiplicative_op): Take in tree type instead
6030         of precision and sign.  Adapt function for canonicalized ranges.
6031         (extract_range_from_binary_expr): Pass type to
6032         extract_range_from_multiplicative_op.
6033         Adapt for canonicalized ranges.
6034         (extract_range_from_unary_expr): Same.
6035         (value_range_base::intersect_helper): Adjust for canonicalized
6036         ranges.
6037         (value_range_base::union_helper): Same.
6038         (value_range_base::normalize_symbolics): New.
6039         * tree-vrp.h (class value_range_base): Remove
6040         set_and_canonicalize.
6041         New prototype for normalize_symbolics.
6042         (class value_range): Remove set_and_canonicalize.
6043         (vrp_val_min): Adjust prototype.
6044         (vrp_val_max): Same.
6045         * vr-values.c
6046         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
6047         instead of set_and_canonicalize.
6049 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6051         PR middle-end/91444
6052         * tree-vect-stmts.c (vectorizable_call): Check that the function
6053         is a BUILT_IN_MD function before passing it to
6054         targetm.vectorize.builtin_md_vectorized_function.
6056 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6058         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
6059         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
6060         (aarch64_select_early_remat_modes): Use it.
6062 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6064         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
6065         16 for SVE predicates even if they are fixed-length.
6067 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6069         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
6070         operand order match the MOV /Z alias.
6072 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6074         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
6075         the vector pattern as an aarch64_svpattern argument.  Update the
6076         overloaded caller accordingly.
6077         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
6078         (aarch64_output_sve_vector_inc_dec): Likewise.
6080 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6082         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
6083         multiplication case, try to compute VG * (lowest set bit) directly
6084         rather than always basing the multiplication on VG.  Use
6085         expand_mult for the multiplication if we can.
6087 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6089         * config/aarch64/aarch64-protos.h
6090         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
6091         (aarch64_sve_inc_dec_immediate_p): Rename to...
6092         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
6093         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
6094         (aarch64_output_sve_scalar_inc_dec): Declare.
6095         (aarch64_output_sve_inc_dec_immediate): Rename to...
6096         (aarch64_output_sve_vector_inc_dec): ...this.
6097         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
6098         (aarch64_output_sve_scalar_inc_dec): New functions.
6099         (aarch64_output_sve_addvl_addpl): Remove the base and offset
6100         arguments.  Only handle true ADDVL and ADDPL instructions;
6101         don't emit an INC or DEC.
6102         (aarch64_sve_inc_dec_immediate_p): Rename to...
6103         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
6104         (aarch64_output_sve_inc_dec_immediate): Rename to...
6105         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
6106         aarch64_sve_vector_inc_dec_immediate_p.
6107         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
6108         (aarch64_sve_plus_immediate): New predicates.
6109         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
6110         rather than aarch64_sve_addvl_addpl_immediate.
6111         (aarch64_sve_inc_dec_immediate): Rename to...
6112         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
6113         aarch64_sve_vector_inc_dec_immediate_p.
6114         (aarch64_sve_add_operand): Update accordingly.
6115         * config/aarch64/constraints.md (Uai): New constraint.
6116         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
6117         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
6118         operand into a register if it satisfies aarch64_sve_plus_immediate.
6119         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
6120         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
6121         * config/aarch64/aarch64-sve.md (add<mode>3): Call
6122         aarch64_output_sve_vector_inc_dec instead of
6123         aarch64_output_sve_inc_dec_immediate.
6125 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6127         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
6128         (UNSPEC_REVW): New constants.
6129         (elem_bits): New mode attribute.
6130         (SVE_INT_UNARY): New int iterator.
6131         (optab): Handle UNSPEC_REV[BHW].
6132         (sve_int_op): New int attribute.
6133         (min_elem_bits): Handle VNx16QI and the predicate modes.
6134         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
6135         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
6136         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
6137         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
6138         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
6139         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
6140         unspecs based on the total width of the reversed data.
6141         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
6142         reinterpret followed by a subreg on big-endian targets.
6144 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6145             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6147         * config/aarch64/aarch64-sve.md
6148         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
6149         alternatives in which one of the inputs is in the same register
6150         as the output.
6152 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6154         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
6155         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
6157 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6159         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
6160         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
6162 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6163             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6165         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
6166         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
6167         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
6169 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6170             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6172         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
6173         Add an alternative that uses reversed shifts.
6175 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6177         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
6178         struct.
6180 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6182         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
6183         a commutativity marker.
6185 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6186             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6188         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
6189         (aarch64_prepare_sve_cond_int_fma): Declare.
6190         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
6191         (aarch64_prepare_sve_int_fma): New functions.
6192         (aarch64_prepare_sve_cond_int_fma): Likewise.
6193         * config/aarch64/aarch64-sve.md
6194         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
6195         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
6196         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
6197         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
6198         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
6199         (*madd<mode>): Rename to...
6200         (*fma<mode>4): ...this.
6201         (*msub<mode>): Rename to...
6202         (*fnma<mode>4): ...this.
6204 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6205             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6207         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
6208         Print 2.0 naturally.
6209         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
6210         * config/aarch64/predicates.md
6211         (aarch64_sve_float_negated_arith_immediate): New predicate,
6212         renamed from aarch64_sve_float_arith_with_sub_immediate.
6213         (aarch64_sve_float_arith_with_sub_immediate): Test for both
6214         positive and negative constants.
6215         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
6216         or an aarch64_sve_float_arith_with_sub_immediate.
6217         * config/aarch64/constraints.md (vsN): Use
6218         aarch64_sve_float_negated_arith_immediate.
6219         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
6220         iterator.
6221         (sve_pred_fp_rhs2_immediate): New int attribute.
6222         * config/aarch64/aarch64-sve.md
6223         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
6224         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
6225         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
6226         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
6227         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
6228         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
6230 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6231             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6233         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
6234         (*aarch64_cond_abd<SVE_F:mode>_3)
6235         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
6237 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6238             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6240         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
6241         (*aarch64_cond_<su>abd<mode>_any): New patterns.
6243 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
6244             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6246         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
6247         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
6248         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
6249         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
6250         optabs.
6251         * optabs.h (create_convert_operand_from): Expand comment.
6252         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
6253         when mapping scalar rtxes to vector operands.
6254         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
6255         ashiftrt and lshiftrt.
6256         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
6257         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
6258         (*cond_<optab><mode>_any_const): New patterns.
6260 2019-08-15  Martin Liska  <mliska@suse.cz>
6262         PR ipa/91438
6263         * cgraph.c (cgraph_node::remove): When setting
6264         n->origin = NULL for all nested functions, reset
6265         also next_nested.
6267 2019-08-15  Martin Liska  <mliska@suse.cz>
6269         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
6270         and next_nested.
6272 2019-08-15  Martin Liska  <mliska@suse.cz>
6274         PR ipa/91404
6275         * passes.c (order): Remove.
6276         (uid_hash_t): Likewise).
6277         (remove_cgraph_node_from_order): Remove from set
6278         of pointers (cgraph_node *).
6279         (insert_cgraph_node_to_order): New.
6280         (duplicate_cgraph_node_to_order): New.
6281         (do_per_function_toporder): Register all 3 cgraph hooks.
6282         Skip removed_nodes now as we know about all of them.
6284 2019-08-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6286         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
6287         <case E_V8QImode>: Use vector_set path for
6288         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6289         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
6290         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6292 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6294         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
6296 2019-08-14  Martin Sebor  <msebor@redhat.com>
6298         PR tree-optimization/91294
6299         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
6300         source length as exact.
6302 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
6304         * doc/extend.texi: Add "noinit" attribute documentation.
6305         * doc/sourcebuild.texi: Add noinit effective target documentation.
6306         * varasm.c (default_section_type_flags): Add support for "noinit"
6307         section.
6308         (default_elf_select_section): Add support for "noinit" attribute.
6309         * config/msp430/msp430.c (msp430_attribute_table): Remove
6310         "noinit" entry.
6312 2019-08-14  Richard Biener  <rguenther@suse.de>
6313             UroÅ¡ Bizjak  <ubizjak@gmail.com>
6315         PR target/91154
6316         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
6317         mode arguments.
6318         (scalar_chain::smode): New member.
6319         (scalar_chain::vmode): Likewise.
6320         (dimode_scalar_chain): Rename to...
6321         (general_scalar_chain): ... this.
6322         (general_scalar_chain::general_scalar_chain): Take mode arguments.
6323         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
6324         base with TImode and V1TImode.
6325         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
6326         (general_scalar_chain::vector_const_cost): Adjust for SImode
6327         chains.
6328         (general_scalar_chain::compute_convert_gain): Likewise.  Add
6329         {S,U}{MIN,MAX} support.
6330         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
6331         (general_scalar_chain::make_vector_copies): Likewise.  Handle
6332         non-DImode chains appropriately.
6333         (general_scalar_chain::convert_reg): Likewise.
6334         (general_scalar_chain::convert_op): Likewise.
6335         (general_scalar_chain::convert_insn): Likewise.  Add
6336         fatal_insn_not_found if the result is not recognized.
6337         (convertible_comparison_p): Pass in the scalar mode and use that.
6338         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
6339         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
6340         (scalar_to_vector_candidate_p): Remove by inlining into single
6341         caller.
6342         (general_remove_non_convertible_regs): Rename from
6343         dimode_remove_non_convertible_regs.
6344         (remove_non_convertible_regs): Remove by inlining into single caller.
6345         (convert_scalars_to_vector): Handle SImode and DImode chains
6346         in addition to TImode chains.
6347         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
6348         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
6349         (*<maxmin>di3_doubleword): Likewise.
6351 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6352             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6354         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
6355         (*cond_bic<mode>_any): New patterns.
6357 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6359         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
6360         take the equivalent mask, as well as a bit count.
6361         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
6362         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
6363         (aarch64_sve_pred_and_operand): New predicates.
6364         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
6365         code attribute.
6366         * config/aarch64/aarch64-sve.md
6367         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
6368         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
6370 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6372         * config/aarch64/aarch64-sve.md
6373         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
6374         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
6375         New patterns.
6377 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6378             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6380         * config/aarch64/aarch64-sve.md
6381         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
6382         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
6384 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6385             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6387         * config/aarch64/aarch64-sve.md
6388         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
6389         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
6391 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6393         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
6394         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
6395         New pattern.
6397 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6398             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6400         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
6402 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6403             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6405         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
6406         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
6407         (aarch64_print_operand): Add support for %I.
6408         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
6409         Bitcast floating-point constants to the corresponding integer constant.
6410         (aarch64_float_const_representable_p): Handle vectors as well
6411         as scalars.
6412         (aarch64_expand_sve_vcond): Make sure that the operands are valid
6413         for the new vcond_mask_<mode><vpred> expander.
6414         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
6415         test aarch64_float_const_representable_p.
6416         (aarch64_sve_reg_or_dup_imm): New predicate.
6417         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
6418         gen_vcond_mask_<mode><vpred> instead of
6419         gen_aarch64_sve_dup<mode>_const.
6420         (vcond_mask_<mode><vpred>): Turn into a define_expand that
6421         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
6422         for operands 1 and 2 respectively.  Force operand 2 into a
6423         register if operand 1 is a register.  Fold old define_insn...
6424         (aarch64_sve_dup<mode>_const): ...and this define_insn...
6425         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
6426         floating-point constants that can be moved as integers.  Add
6427         alternatives for MOV /M and FMOV /M.
6428         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
6429         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
6430         1 and 2 respectively.
6431         * config/aarch64/constraints.md (Ufc): Handle vectors as well
6432         as scalars.
6433         (vss): New constraint.
6435 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6437         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
6438         (aarch64_sve_float_maxmin_operand): New predicates.
6439         * config/aarch64/constraints.md (vsB): New constraint.
6440         (vsM): Fix typo.
6441         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
6442         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
6443         UNSPEC_COND_FMINNM.
6444         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
6445         Use aarch64_sve_float_maxmin_operand for operand 2.
6446         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
6447         Add alternatives for the constant forms.
6449 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6451         * config/aarch64/constraints.md (vsb): New constraint.
6452         (vsm): Generalize description.
6453         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
6454         iterator.
6455         (sve_imm_con): Handle smax, smin, umax and umin.
6456         (sve_imm_prefix): New code attribute.
6457         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
6458         (aarch64_sve_vsb_operand): New predicates.
6459         (aarch64_sve_mul_immediate): Rename to...
6460         (aarch64_sve_vsm_immediate): ...this.
6461         (aarch64_sve_mul_operand): Rename to...
6462         (aarch64_sve_vsm_operand): ...this.
6463         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
6464         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
6465         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
6466         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
6467         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
6468         add movprfx support for the immediate alternatives.
6469         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
6470         of the above.
6471         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
6472         for operand 3.
6474 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6476         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
6477         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
6478         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
6480 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6482         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
6483         (optab, sve_int_op): Handle them.
6484         * config/aarch64/aarch64-sve.md: Expand comment.
6486 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6488         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
6489         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
6490         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
6492 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6494         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
6495         (aarch64_expand_sve_const_pred_trn): New functions.
6496         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
6497         use the above functions when the parameter is true.
6498         (aarch64_expand_sve_const_pred): Update call accordingly.
6499         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
6500         Rename to...
6501         (@aarch64_sve_<perm_insn><mode>): ...this.
6503 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6505         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
6506         Declare.
6507         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
6508         (aarch64_sve_emit_int_cmp): New functions.
6509         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
6510         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
6511         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
6512         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
6513         (UNSPEC_PRED_Z): New unspec.
6514         (set_clobber_cc_nzc): Delete.
6515         * config/aarch64/aarch64-sve.md: Add a block comment about
6516         UNSPEC_PRED_Z.
6517         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
6518         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
6519         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
6520         UNSPEC_MERGE_PTRUE.
6521         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
6522         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
6523         check for compatible predicates.
6524         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
6525         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
6526         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
6527         comparisons above.
6529 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6531         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
6532         * config/aarch64/aarch64-sve.md: Add a section describing it.
6533         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
6534         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
6535         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
6536         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
6537         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
6538         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
6539         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
6540         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
6541         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
6542         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
6543         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
6544         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
6545         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
6546         (aarch64_evpc_rev_local): Update accordingly.
6548 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6550         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
6551         iterators.
6552         (SVE_BHSI, SVE_SDI): Tweak comment.
6553         (SVE_HSDI): Likewise.  Fix definition.
6554         (SVE_SDF): New mode iterator.
6555         (elem_bits): New mode attribute.
6556         (SVE_COND_FCVT): New int iterator.
6557         * config/aarch64/aarch64-sve.md
6558         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
6559         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
6560         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
6561         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
6562         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
6563         ...these new patterns.
6564         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
6565         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
6566         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
6567         Merge into...
6568         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
6569         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
6570         ...these new patterns.
6571         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
6572         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
6573         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
6574         ...this new pattern.
6575         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
6576         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
6577         ...this new pattern.
6578         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
6580 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6582         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
6583         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
6584         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
6585         unspecs.
6586         (optab, su): Handle them.
6587         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
6588         * config/aarch64/aarch64-sve.md
6589         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
6590         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
6591         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
6592         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
6593         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
6594         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
6595         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
6596         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
6597         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
6598         FIXUORS.
6599         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
6600         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
6601         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
6602         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
6603         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
6604         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
6605         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
6606         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
6607         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
6608         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
6609         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
6610         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
6611         of UNSPEC_FLOAT_CONVERT.
6612         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
6613         aarch64_sve_extend<mode><Vwide>2.
6615 2019-08-14  Richard Biener  <rguenther@suse.de>
6617         PR target/91154
6618         * config/i386/i386-features.c
6619         (dimode_scalar_chain::compute_convert_gain): Compute and dump
6620         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
6621         ix86_cost->sse_op for vector instruction costs.
6623 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6625         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
6626         (cmp_op): Handle it.
6627         (SVE_COND_FP_CMP): Rename to...
6628         (SVE_COND_FP_CMP_I0): ...this.
6629         (SVE_FP_CMP): Remove.
6630         * config/aarch64/aarch64-sve.md
6631         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
6632         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
6633         using unspecs to represent the comparison.
6634         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
6635         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
6636         accordingly.
6637         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
6638         (aarch64_unspec_cond_code): Move after integer code.  Handle
6639         UNORDERED.
6640         (aarch64_emit_sve_predicated_cond): Replace with...
6641         (aarch64_emit_sve_fp_cond): ...this new function.
6642         (aarch64_emit_sve_or_conds): Replace with...
6643         (aarch64_emit_sve_or_fp_conds): ...this new function.
6644         (aarch64_emit_sve_inverted_cond): Replace with...
6645         (aarch64_emit_sve_invert_fp_cond): ...this new function.
6646         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
6648 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6650         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
6651         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
6652         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
6653         SVE_HSD instead of SVE_SD.
6655 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6656             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6658         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
6659         iterator.
6660         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
6661         attributes.
6662         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
6663         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
6664         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
6665         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
6666         (*div<SVE_F:mode>3): Generalize to...
6667         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
6669 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6670             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6672         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
6673         constants.
6674         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
6675         predicate.
6676         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
6677         Declare.
6678         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
6679         function.
6680         * config/aarch64/aarch64-sve.md: Add a block comment about the
6681         handling of predicated FP operations.
6682         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
6683         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
6684         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6685         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
6686         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
6687         operand.
6688         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
6689         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
6690         operand.
6691         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
6692         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
6693         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
6694         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
6695         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
6696         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
6697         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
6698         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
6699         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
6700         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
6701         strictness operands.  Use aarch64_sve_pred_dominates_p to check
6702         whether the predicate on the conditional operation is suitable
6703         for merging.  Split patterns into the canonical equal-predicate form.
6704         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
6705         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
6707 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6708             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6710         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
6711         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
6712         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
6713         rtx codes.
6714         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
6715         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
6716         unspecs.
6718 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6719             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
6721         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
6722         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
6723         actually has, rather than relying on REG_EQUAL notes.
6724         Make the insn operand order match the SVE operand order.
6725         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
6726         the SVE operand order.
6728 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6730         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
6731         (aarch64_emit_set_immediate): Likewise.
6732         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
6733         (aarch64_pfalse_reg): Likewise.
6734         (aarch64_convert_sve_data_to_pred): New function.
6735         (aarch64_sve_move_pred_via_while): Take an optional target register
6736         and the required register mode.
6737         (aarch64_expand_sve_const_pred_1): New function.
6738         (aarch64_expand_sve_const_pred): Likewise.
6739         (aarch64_expand_mov_immediate): Build an all-true predicate
6740         if the significant bits of the immediate are all true.  Use
6741         aarch64_expand_sve_const_pred for all compile-time predicate constants.
6742         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
6743         before register allocation.
6744         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
6745         a VNx16BI PTRUE when splitting the memory alternative.
6746         (vec_duplicate<mode>): Update accordingly.
6747         (*pred_cmp<cmp_op><mode>): Rename to...
6748         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
6750 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
6752         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
6753         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
6754         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
6755         (UNSPEC_PTEST): New unspec.
6756         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
6757         * config/aarch64/iterators.md (data_bytes): New mode attribute.
6758         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
6759         * config/aarch64/aarch64-sve.md: Add a new section describing the
6760         handling of UNSPEC_PTEST.
6761         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
6762         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
6763         (ptest_ptrue<mode>): Replace with...
6764         (aarch64_ptest<mode>): ...this new pattern.
6765         (cbranch<mode>4): Update after above changes.
6766         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
6767         UNSPEC_PTEST_PTRUE.
6768         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
6769         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
6770         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
6772 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
6774         PR lto/91287
6775         * builtins.c (builtin_with_linkage_p): New function.
6776         * builtins.h (builtin_with_linkage_p): New function.
6777         * symtab.c (write_symbol): Remove redundant assert.
6778         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
6779         Remove FIXME and use builtin_with_linkage_p.
6781 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6783         PR middle-end/91421
6784         * tree-core.h (function_decl::function_code): Change type to
6785         unsigned int.
6786         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
6787         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
6788         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
6789         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
6790         is BUILT_IN_NORMAL.
6791         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
6792         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
6793         (fndecl_built_in_p): Change the type of the "name" argument to
6794         unsigned int.
6795         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
6796         after check for DECL_BUILT_IN_CLASS.
6797         * cgraphclones.c (build_function_decl_skip_args): Use
6798         set_decl_built_in_function.
6799         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
6800         * ipa-split.c (split_function): Likewise.
6801         * langhooks.c (add_builtin_function_common): Likewise.
6802         * omp-simd-clone.c (simd_clone_create): Likewise.
6803         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
6804         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
6805         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
6806         DECL_FUNCTION_CODE.
6807         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
6808         instead of DECL_FUNCTION_CODE.
6809         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
6810         instead of DECL_FUNCTION_CODE.
6811         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
6812         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
6813         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
6814         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
6815         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
6816         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
6817         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
6818         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
6819         (alpha_gimple_fold_builtin): Likewise.
6820         * config/arc/arc.c (arc_expand_builtin): Likewise.
6821         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
6822         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
6823         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
6824         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
6825         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
6826         * config/frv/frv.c (frv_expand_builtin): Likewise.
6827         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
6828         (gcn_expand_builtin): Likewise.
6829         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
6830         (fold_builtin_cpu): Likewise.
6831         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
6832         * config/i386/i386.c (ix86_fold_builtin): Likewise.
6833         (ix86_gimple_fold_builtin): Likewise.
6834         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
6835         (ia64_expand_builtin): Likewise.
6836         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
6837         * config/mips/mips.c (mips_expand_builtin): Likewise.
6838         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
6839         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
6840         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
6841         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
6842         * config/pa/pa.c (pa_expand_builtin): Likewise.
6843         * config/pru/pru.c (pru_expand_builtin): Likewise.
6844         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
6845         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
6846         Likewise.
6847         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
6848         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
6849         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
6850         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
6851         (rs6000_builtin_reciprocal): Likewise.
6852         * config/rx/rx.c (rx_expand_builtin): Likewise.
6853         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
6854         * config/s390/s390.c (s390_expand_builtin): Likewise.
6855         * config/sh/sh.c (sh_expand_builtin): Likewise.
6856         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
6857         (sparc_fold_builtin): Likewise.
6858         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
6859         * config/spu/spu.c (spu_expand_builtin): Likewise.
6860         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
6861         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
6862         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
6863         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
6864         (xtensa_expand_builtin): Likewise.
6866 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6868         PR middle-end/91421
6869         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
6870         before the DECL_FUNCTION_CODE.
6871         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
6872         to check for a BUILT_IN_ALLOCA call.
6873         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
6874         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
6875         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
6876         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
6877         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
6878         for BUILT_IN_NORMAL functions.
6879         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
6880         test for BUILT_IN_TM_ABORT.
6881         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
6882         to check for a BUILT_IN_STACK_RESTORE call.
6883         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
6884         * tree-ssa-threadedge.c
6885         (record_temporary_equivalences_from_stmts_at_dest): Check for a
6886         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
6887         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
6888         test for a BUILT_IN_NORMAL call instead of a negative test for
6889         an internal function call.
6891 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6893         * tree.h (build_vector_a_then_b): Declare.
6894         * tree.c (build_vector_a_then_b): New function.
6895         * fold-const-call.c (fold_while_ult): Likewise.
6896         (fold_const_call): Use it to handle IFN_WHILE_ULT.
6897         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
6898         (aarch64_svpattern): New enum.
6899         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
6900         constants through aarch64_expand_mov_immediate.
6901         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
6902         than general_operand as the predicate for operand 1.
6903         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
6904         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
6905         insn_type.
6906         (simd_immediate_info::simd_immediate_info): New overload that
6907         takes a scalar_int_mode and an svpattern.
6908         (simd_immediate_info::u): Add a "pattern" field.
6909         (svpattern_token): New function.
6910         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
6911         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
6912         (aarch64_sve_move_pred_via_while): New functions.
6913         (aarch64_expand_mov_immediate): Try using
6914         aarch64_sve_move_pred_via_while for predicates that contain N ones
6915         followed by M zeros but that do not correspond to a VLnnn pattern.
6916         (aarch64_sve_pred_valid_immediate): New function.
6917         (aarch64_simd_valid_immediate): Use it instead of dealing directly
6918         with PTRUE and PFALSE.
6919         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
6920         forms.
6922 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
6924         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
6925         flag.
6926         (darwin_override_options): Likewise.
6927         * config/darwin.h: Likewise.
6928         * config/darwin.opt: Likewise.
6929         * config/i386/i386.c (output_pic_addr_const): Likewise.
6930         * config/rs6000/darwin.h: Likewise.
6931         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
6932         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
6933         ... this TARGET_MACHO_SYMBOL_STUBS.
6934         (FUNCTION_PROFILER):Likewise.
6935         * config/i386/i386.h: Likewise.
6937 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6939         * config/i386/i386-expand.c (ix86_expand_vector_extract)
6940         <case E_V2SImode>: Use vec_extr path for
6941         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
6942         <case E_V8QImode>: Ditto.
6943         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
6944         Use SWI48 mode iterator.  Use %k to output operand 0.
6945         (*mmx_pextrw): New insn pattern.
6946         (*mmx_pextrb): Ditto.
6947         (*mmx_pextrb_zext): Ditto.
6949 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
6951         * target.def (libc_has_function, libc_has_fast_function): Improve
6952         documentation strings.
6953         * doc/tm.texi: Regenerate.
6955 2019-08-13  Caroline Tice  <cmtice@google.com>
6957         PR other/91396
6958         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
6959         vtv_end.o or vtv_end_preinit.o files if !static.
6961 2019-08-13  Olivier Hainque  <hainque@adacore.com>
6963         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
6965 2019-08-13  Olivier Hainque  <hainque@adacore.com>
6967         * rtlanal.c (tablejump_casesi_pattern): New function, to
6968         determine if a tablejump insn is a casesi dispatcher. Extracted
6969         from patch_jump_insn.
6970         * rtl.h (tablejump_casesi_pattern): Declare.
6971         * cfgrtl.c (patch_jump_insn): Use it.
6972         * dwarf2cfi.c (create_trace_edges): Use it.
6974 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
6976         PR target/81800
6977         * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
6978         operand is larger than a long int.
6980 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
6982         * machmode.h (opt_mode::else_mode): New function.
6983         (opt_mode::else_blk): Use it.
6984         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
6985         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
6986         (aarch64_gen_stepped_int_parallel): Likewise.
6987         (aarch64_stepped_int_parallel_p): Likewise.
6988         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6989         argument.
6990         * config/aarch64/aarch64.c
6991         (aarch64_expand_sve_widened_duplicate): Delete.
6992         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
6993         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
6994         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
6995         argument.  Use early returns in the !CONST_INT_P handling.
6996         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
6997         than handling some inline.
6998         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
6999         from...
7000         (aarch64_simd_container_mode): ...here.
7001         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
7002         (aarch64_sve_ld1rq_operand_p): New functions.
7003         * config/aarch64/predicates.md (descending_int_parallel)
7004         (aarch64_sve_ld1rq_operand): New predicates.
7005         * config/aarch64/constraints.md (UtQ): New constraint.
7006         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
7007         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
7008         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
7009         (@aarch64_sve_reinterpret<mode>): New expander.
7010         (*aarch64_sve_reinterpret<mode>): New pattern.
7011         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
7012         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
7013         (*sve_ld1rq<Vesize>): Replace with...
7014         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
7016 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
7018         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
7019         16:12.
7021 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7023         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
7024         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
7025         (msp430_check_path_for_devices): New.
7026         (parse_devices_csv_1): New.
7027         (parse_devices_csv): New.
7028         (msp430_extract_mcu_data): Try to find devices.csv and search for the
7029         MCU data in devices.csv before using the hard-coded data.
7030         Warn if devices.csv isn't found and the MCU wasn't found in the
7031         hard-coded data either.
7032         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
7033         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
7034         Search for devices.csv on -I and -L paths.
7035         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
7036         msp430_set_driver_var.
7037         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
7038         -mdevices-csv-loc=.
7039         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
7040         searched for devices.csv.
7041         (mwarn-devices-csv): Document option.
7043 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7045         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
7046         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
7047         Use a single Dn alternative instead of separate Dz and Dm
7048         alternatives.  Use aarch64_output_sve_move_immediate.
7049         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
7050         function.
7051         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
7052         for predicates too.
7053         (aarch64_output_sve_mov_immediate): Handle predicate modes.
7054         (aarch64_output_ptrue): Delete.
7056 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7058         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
7059         INDEX.
7060         (simd_immediate_info::value, simd_immediate_info::step)
7061         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
7062         with...
7063         (simd_immediate_info::u): ...this new union.
7064         (simd_immediate_info::simd_immediate_info): Update accordingly.
7065         (aarch64_output_simd_mov_immediate): Likewise.
7066         (aarch64_output_sve_mov_immediate): Likewise.
7068 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7070         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
7071         extra_gcc_objs.
7072         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
7073         (msp430_select_cpu): New spec function.
7074         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
7075         MCU data.
7076         * config/msp430/msp430-devices.c: New file.
7077         * config/msp430/msp430-devices.h: New file.
7078         * config/msp430/msp430.c: Remove msp430_mcu_data.
7079         (msp430_option_override): Use msp430_extract_mcu_data to extract
7080         MCU data.
7081         (msp430_use_f5_series_hwmult): Likewise.
7082         (use_32bit_hwmult): Likewise.
7083         (msp430_no_hwmult): Likewise.
7084         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
7085         assembler.
7086         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
7087         and -mcpu option.
7088         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
7089         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
7090         Remove hard-coded MCU multilib data.
7092 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7094         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
7095         based on the mode instead of testing properties of it.
7097 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7099         * doc/md.texi: Document the x and y constraints for AArch64.
7100         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
7101         (FP_LO8_REGS): New reg_class.
7102         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
7103         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
7104         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
7105         * config/aarch64/predicates.md (aarch64_simd_register): Use
7106         FP_REGNUM_P instead of checking the classes manually.
7107         * config/aarch64/constraints.md (y): New constraint.
7109 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7111         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
7112         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
7113         * config/aarch64/aarch64-simd.md
7114         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
7115         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
7116         from the asm template.
7117         * config/aarch64/aarch64-sve.md
7118         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
7119         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
7120         from the asm template.
7121         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
7122         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
7123         from the asm template.
7124         * config/aarch64/aarch64-simd-builtins.def: Update comment.
7126 2019-08-13  Martin Liska  <mliska@suse.cz>
7128         * value-prof.c (gimple_ic_transform): Add new line.
7129         Print details with MSG_NOTE.
7131 2019-08-13  Martin Liska  <mliska@suse.cz>
7133         * doc/invoke.texi: Document automatic detection of jobserver.
7134         * lto-wrapper.c (run_gcc): Detect jobserver always.
7136 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7138         * config/i386/i386-expand.c (ix86_expand_vector_set)
7139         <case E_V2SImode>: Use vec_merge path for
7140         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7141         <case E_V8QImode>: Ditto.
7142         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
7143         (*mmx_pinsrb): Ditto.
7145 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
7147         PR target/83250
7148         PR target/91340
7149         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
7150         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
7151         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
7152         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
7153         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
7155 2019-08-12  Richard Biener  <rguenther@suse.de>
7157         PR lto/91375
7158         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
7159         flag_devirtualize.
7161 2019-08-12  Richard Biener  <rguenther@suse.de>
7163         PR driver/91130
7164         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
7165         lang_mask option, always use CL_DRIVER.
7166         (get_options_from_collect_gcc_options): Adjust.
7167         (find_and_merge_options): Likewise.
7168         (run_gcc): Likewise.
7170 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
7172         * ipa-predicate.c (add_condition): Restore inverted test.
7174 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
7176         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
7177         (enum omp_clause_device_type_kind): New enum.
7178         (struct tree_omp_clause): Add subcode.device_type_kind.
7179         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
7180         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
7181         for device_type clause.
7182         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
7183         * tree-pretty-print.c (dump_omp_clause): Likewise.
7185         PR target/91408
7186         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
7187         vector_operand.
7189 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
7191         * reload1.c (finish_spills): Do not check ira_conflicts_p when
7192         handling spilled pseudos.
7194 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
7196         PR target/91386
7197         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
7198         to preserve the contents of the original insns.
7200 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
7202         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
7203         (addsi3_compare_op2): Likewise.
7205 2019-08-09  Martin Liska  <mliska@suse.cz>
7207         * alias.c (alias_ptr_types_compatible_p): Strengten
7208         type comparison in LTO mode.
7210 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
7212         PR middle-end/90313
7213         * tree-tailcall.c (find_tail_calls): Reject calls that might
7214         read from an escaped RESULT_DECL.
7216 2019-08-09  Martin Liska  <mliska@suse.cz>
7218         * doc/invoke.texi: Document the option value.
7219         * lto-wrapper.c (run_gcc): Set auto_parallel
7220         only with -flto=auto.
7222 2019-08-09  Martin Liska  <mliska@suse.cz>
7224         * opts.c (common_handle_option): Error for an invalid argument
7225         to -flto=.
7227 2019-08-09  Martin Liska  <mliska@suse.cz>
7229         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
7230         use dump_printf to report optimization.
7231         (sem_variable::merge): Likwise.
7232         (sem_item_optimizer::merge_classes): Use dump_printf to report
7233         ICF hits.
7235 2019-08-09  Martin Liska  <mliska@suse.cz>
7237         * value-prof.c (gimple_divmod_fixed_value_transform):
7238         Use dump_printf_loc.
7239         (gimple_mod_pow2_value_transform): Likewise.
7240         (gimple_mod_subtract_transform): Likewise.
7241         (init_node_map): Likewise.
7242         (gimple_ic_transform): Likewise.
7243         (gimple_stringops_transform): Likewise.
7245 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
7247         * doc/extend.texi: Add const qualifier to ld intrinsics.
7249 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
7251         * config/rs6000/dfp.md (D64_D128): Rename to ...
7252         (DDTD): ... this, throughout.
7253         (dfp_suffix): Rename to ...
7254         (q): ... this, throughout.
7256 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
7258         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
7259         (dfp_suffix): Ditto.
7260         (adddd3, addtd3): Merge to ...
7261         (add<mode>3 for D64_D128): ... this.
7262         (subdd3, subtd3): Merge to ...
7263         (sub<mode>3 for D64_D128): ... this.
7264         (muldd3, multd3): Merge to ...
7265         (mul<mode>3 for D64_D128): ... this.
7266         (divdd3, divtd3): Merge to ...
7267         (div<mode>3 for D64_D128): ... this.
7268         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
7269         (*cmp<mode>_internal1 for D64_D128): ... this.
7270         (ftruncdd2, ftrunctd2): Merge to ...
7271         (ftrunc<mode>2 for D64_D128): ... this.
7272         (fixdddi2, fixtddi2): Merge to ...
7273         (fix<mode>di2 for D64_D128): ... this.
7275 2019-08-08  Jim Wilson  <jimw@sifive.com>
7277         PR target/91229
7278         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
7279         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
7280         Pass into recursive call.
7281         (riscv_flatten_aggregate_argument): New arg.  Pass to
7282         riscv_flatten_aggregate_field.
7283         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
7284         riscv_flatten_aggregate_argument twice, with false and true as last
7285         arg.  Process result twice.  Compare results and warn if different.
7286         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
7288 2019-08-08  Martin Liska  <mliska@suse.cz>
7290         PR bootstrap/91352
7291         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
7292         * lto-wrapper.c (jobserver_active_p): Likewise.
7294 2019-08-08  Martin Liska  <mliska@suse.cz>
7296         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
7297         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
7298         (create_version_clone_with_body): Likewise.
7300 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
7302         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
7303         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
7304         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
7305         GOVD_EXPLICIT flags.
7306         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
7307         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
7308         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
7309         call install_var_field with mask 11 instead of 3.
7310         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
7311         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
7313 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7315         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
7316         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
7318 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7320         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
7321         MOVPRFX alternatives.  Make the GPR alternatives more expensive
7322         than the FPR ones.
7324 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7326         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
7327         Disparage the GPR alternative relative to the FPR one.
7328         Fix handling of 8-bit and 16-bit FPR values.
7330 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7332         * config/aarch64/iterators.md (BITWISEV): Delete.
7333         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
7334         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
7335         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
7336         UNSPEC_FMINNMV, UNSPEC_FMINV.
7337         (bit_reduc_op): Delete.
7338         (sve_int_op): New int attribute.
7339         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
7340         UNSPEC_FMINNMV, UNSPEC_FMINV.
7341         * config/aarch64/aarch64-sve.md
7342         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
7343         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
7344         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
7345         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
7346         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
7347         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
7348         new patterns.
7349         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
7350         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
7351         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
7352         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
7353         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
7354         new patterns.
7356 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7358         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
7359         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
7360         (fms<mode>4, *fms<mode>4): Replace with...
7361         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7362         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
7363         Use unspecs instead of rtx codes.
7364         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
7365         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
7367 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7369         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
7370         int iterator.
7371         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
7372         * config/aarch64/aarch64-sve.md
7373         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
7374         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
7375         use a single unspec for the rhs.
7376         (*<su><maxmin><mode>3): Delete.
7377         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
7379 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7381         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
7382         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
7383         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
7384         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
7385         (optab, sve_fp_op): Handle them.
7386         (SVE_FP_UNARY): Delete.
7387         (optab): Remove sqrt entry.
7388         (sve_fp_op): Remove neg, abs and sqrt entries.
7389         (SVE_COND_FP_UNARY): New int iterator.
7390         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
7391         (*<frint_pattern><mode>2): Delete.
7392         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
7393         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
7394         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
7395         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
7397 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7399         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
7401 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7403         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
7404         (UNSPEC_COND_FADD): ...this.
7405         (UNSPEC_COND_SUB): Rename to...
7406         (UNSPEC_COND_FSUB): ...this.
7407         (UNSPEC_COND_MUL): Rename to...
7408         (UNSPEC_COND_FMUL): ...this.
7409         (UNSPEC_COND_DIV): Rename to...
7410         (UNSPEC_COND_FDIV): ...this.
7411         (UNSPEC_COND_MAX): Rename to...
7412         (UNSPEC_COND_FMAXNM): ...this.
7413         (UNSPEC_COND_MIN): Rename to...
7414         (UNSPEC_COND_FMINNM): ...this.
7415         (UNSPEC_COND_LT): Rename to...
7416         (UNSPEC_COND_FCMLT): ...this.
7417         (UNSPEC_COND_LE): Rename to...
7418         (UNSPEC_COND_FCMLE): ...this.
7419         (UNSPEC_COND_EQ): Rename to...
7420         (UNSPEC_COND_FCMEQ): ...this.
7421         (UNSPEC_COND_NE): Rename to...
7422         (UNSPEC_COND_FCMNE): ...this.
7423         (UNSPEC_COND_GE): Rename to...
7424         (UNSPEC_COND_FCMGE): ...this.
7425         (UNSPEC_COND_GT): Rename to...
7426         (UNSPEC_COND_FCMGT): ...this.
7427         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
7428         (sve_fp_op_rev): Update accordingly.
7429         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
7431 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7433         * config/aarch64/aarch64-sve.md: Reorganize contents and add
7434         banner comments.
7435         * config/aarch64/check-sve-md.awk: New file.
7436         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
7437         (insn-conditions.md): Depend on it.
7439 2019-08-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7441         PR target/91385
7442         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
7443         (*negsi2_cmpz_zext): Ditto.
7445 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7447         * config/aarch64/iterators.md (commutative): Remove.
7449 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
7451         PR driver/91130
7452         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
7453         processing COLLECT_GCC_OPTIONS.
7454         (run_gcc): Likewise.
7456 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7458         PR tree-optimization/91109
7459         * lra-remat.c (update_scratch_ops): Remove assignment of the
7460         hard register.
7462 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
7464         * data-streamer.h (streamer_write_poly_uint64): Declare.
7465         (streamer_read_poly_uint64): Likewise.
7466         * data-streamer-in.c (streamer_read_poly_uint64): New function.
7467         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
7468         * ipa-predicate.h (condition::size): Turn into a poly_int64.
7469         (add_condition): Take a poly_int64 size.
7470         * ipa-predicate.c (add_condition): Likewise.
7471         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
7472         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
7473         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
7474         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
7475         condition::size as a poly_int64.
7476         (unmodified_parm_1): Take a poly_int64 size pointer.
7477         (unmodified_parm): Likewise.
7478         (unmodified_parm_or_parm_agg_item): Likewise.
7479         (set_cond_stmt_execution_predicate): Update accordingly.
7480         (set_switch_stmt_execution_predicate): Likewise.
7481         (will_be_nonconstant_expr_predicate): Likewise.
7482         (will_be_nonconstant_predicate): Likewise.
7483         (inline_read_section): Stream condition::size as a poly_int.
7484         (ipa_fn_summary_write): Likewise.
7486 2019-08-07  Martin Liska  <mliska@suse.cz>
7488         * fold-const.c (twoval_comparison_p): Replace int
7489         with bool as a return type.
7490         (simple_operand_p): Likewise.
7491         (operand_equal_p): Replace int with bool as a return type.
7492         * fold-const.h (operand_equal_p): Likewise.
7494 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
7496         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
7497         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
7498         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
7499         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
7500         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
7501         * tree-pretty-print.c (dump_omp_clause): Likewise.
7502         * tree-nested.c (convert_nonlocal_omp_clauses,
7503         convert_local_omp_clauses): Likewise.
7504         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
7505         Likewise.
7506         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
7507         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
7508         clause with array or reference to array types, no matter what type
7509         except for reference it has.
7511 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
7513         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
7515 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
7517         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
7518         (arch_canonicalize): Support rv32g and rv64g and fix error
7519         handling.
7521 2019-08-06  Martin Liska  <mliska@suse.cz>
7523         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
7524         and DECL_IS_OPERATOR_DELETE_P.
7526 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
7528         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
7529         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
7530         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
7531         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
7532         (gimplify_omp_for): Don't do C++ random access iterator clause
7533         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
7534         don't predetermine the artificial iterator in case of C++ random
7535         access iterators as lastprivate, but private.  For OMP_LOOP, force
7536         bind expr around simd body and force for_pre_body before the
7537         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
7538         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
7539         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
7540         diff var of C++ random access iterators.  Handle
7541         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
7542         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
7543         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
7544         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
7545         * omp-low.c (lower_rec_input_clauses): For
7546         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
7547         variables instead of default constructing them.
7548         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
7549         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
7550         is_taskloop_ctx check from the assert to the guarding condition.
7552 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
7554         * config/riscv/multilib-generator: (canonical_order): New.
7555         (arch_canonicalize): Dito.
7556         Apply arch_canonicalize for alts.
7558 2019-08-05  Martin Sebor  <msebor@redhat.com>
7560         * doc/extend.texi (Common Variable Attributes): Document alias
7561         attribute.
7563 2019-08-05  Marek Polacek  <polacek@redhat.com>
7565         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
7566         * doc/invoke.texi: Document -Wcomma-subscript.
7568 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7570         * tree-core.h (tree_function_decl): Make function_code an
7571         independent field.  Group the remaining bitfields into bytes
7572         and move decl_type so that it contines to be at a byte boundary.
7573         Leave 12 bits for future expansion.
7575 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7577         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
7578         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
7579         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
7580         IFN_MASK_STORE.
7582 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
7584         * gimple.h (gimple_move_vops): Declare.
7585         * gimple.c (gimple_move_vops): New function
7586         * gimple-fold.c (replace_call_with_call_and_fold)
7587         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
7588         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
7589         (gimple_fold_call): Use it.
7590         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
7591         * tree-call-cdce.c (use_internal_fn): Likewise.
7592         * tree-if-conv.c (predicate_load_or_store): Likewise.
7593         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
7594         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
7595         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
7596         (update_call_from_tree): Likewise.
7597         * tree-vect-stmts.c (vectorizable_load): Likewise.
7598         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
7600 2019-08-05  Martin Liska  <mliska@suse.cz>
7602         PR c++/91334
7603         * tree-ssa-dce.c (propagate_necessity): Handle new operators
7604         with not arguments.
7605         (eliminate_unnecessary_stmts): Likewise.
7607 2019-08-05  Richard Biener  <rguenther@suse.de>
7609         PR middle-end/91169
7610         * fold-const.c (get_array_ctor_element_at_index): Create
7611         offset_ints according to the sign of the index type and treat
7612         that as signed if it is obviously so.
7614 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
7616         PR target/91341
7617         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
7618         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
7619         _mm256_storeu2_m128i): New function.
7621 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
7623         * config/riscv/riscv.c (riscv_promote_function_mode): New.
7624         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
7626 2019-08-05  Alan Modra  <amodra@gmail.com>
7628         PR target/91349
7629         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
7630         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
7632 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
7634         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
7635         bug that was fixed in Tcl 8.6.1.
7637 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
7639         * config/rs6000/future.md: New file.
7640         * config/rs6000/rs6000.md: Include future.md.
7641         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
7643 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7645         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
7646         check to use targetm.slow_unaligned_access instead.
7648         * function.c (assign_param_data_one): Remove unused data members.
7650 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
7652         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
7653         build_distinct_type_copy.
7654         (simd_clone_adjust_argument_types): Ditto.
7655         (simd_clone_adjust): Call build_distinct_type_copy here.
7656         (expand_simd_clones): Ditto.
7658 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7660         PR target/91201
7661         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
7663 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
7665         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
7666         from 'const void *'.
7667         (sort_locs_in_loop_postorder_cmp): Likewise.
7669 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
7671         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
7672         (hot-bb-count-ws-permille): Likewise.
7673         (hot-bb-frequency-fraction): Likewise.
7674         (unlikely-bb-count-fraction): Likewise.
7675         * params.def (hot-bb-count-fraction): Rework description.
7676         (hot-bb-count-ws-permille): Likewise.
7677         (hot-bb-frequency-fraction): Likewise.
7678         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
7679         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
7681 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7683         PR target/91323
7684         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
7685         Return false.
7687 2019-08-02  Richard Biener  <rguenther@suse.de>
7689         * vec.h (vec::sort): Add gcc_qsort_r support.
7690         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
7691         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
7692         to gcc_qsort_r style callback.
7693         (sort_locs_in_loop_postorder_cmp): Likewise.
7694         (analyze_memory_references): Use gcc_sort_r interfaces.
7695         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
7697 2019-08-02  Martin Liska  <mliska@suse.cz>
7699         PR lto/91313
7700         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
7701         to detect working job server.
7702         (driver::detect_jobserver): Test whether jobserver
7703         is active from GCC driver. That will prevent situation where
7704         GCC is invoked from a LD plugin and the linker already uses
7705         file descriptors suggested by make.  That leads to a wrong
7706         detection.
7707         * gcc.h (driver): Add detect_jobserver.
7708         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
7709         not scanning for --jobserver-auth prefix.
7711 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
7713         PR tree-optimization/91201
7714         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
7715         V16QImode extraction without sse4.1 try to use V4SImode lowpart
7716         extraction.
7718 2019-08-01  Martin Sebor  <msebor@redhat.com>
7720         PR c++/90947
7721         * tree.c (type_initializer_zero_p): Define.
7722         * tree.h (type_initializer_zero_p): New function.
7724 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
7726         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
7728 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
7730         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
7731         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
7732         * predict.c (maybe_hot_count_p): Likewise.
7733         (maybe_hot_bb_p): Tweak comment.
7734         (maybe_hot_edge_p): Likewise.
7735         (probably_never_executed): Likewise.  Minor tweak.
7736         (probably_never_executed_bb_p): Likewise.
7737         (unlikely_executed_edge_p): Likewise.
7738         (probably_never_executed_edge_p): Likewise.
7739         (optimize_function_for_size_p): Likewise.
7740         (optimize_function_for_speed_p): Likewise.
7741         (function_optimization_type): Likewise.
7742         (optimize_bb_for_size_p): Likewise.
7743         (optimize_bb_for_speed_p): Likewise.
7744         (bb_optimization_type): Likewise.
7745         (optimize_edge_for_size_p): Likewise.
7746         (optimize_edge_for_speed_p): Likewise.
7747         (optimize_insn_for_size_p): Likewise.
7748         (optimize_insn_for_speed_p): Likewise.
7749         (optimize_loop_for_size_p): Likewise.
7750         (optimize_loop_for_speed_p): Likewise.
7751         (optimize_loop_nest_for_speed_p): Likewise.
7752         (optimize_loop_nest_for_size_p): Likewise.
7753         (predictable_edge_p): Likewise.
7754         (handle_missing_profiles): Minor tweak.
7756 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
7758         * config/rs6000/predicates.md (pcrel_external_address): Update
7759         comment.
7761 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7763         PR target/85693
7764         * config/i386/mmx.md (usadv8qi): New expander.
7766 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
7768         PR c++/90590
7769         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
7770         with reserved names that are in a system header.
7772 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7774         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
7775         (*vec_extractv2si_0_zext_sse4): New insn pattern.
7776         (*vec_extractv2si_0_zext): Ditto.
7777         (*vec_extractv2si_1): Add (rm,x) alternative.
7778         (*vec_extractv2si_1_zext): New insn pattern.
7779         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
7780         insn constraint.
7782 2019-08-01  Richard Biener  <rguenther@suse.de>
7784         * domwalk.c (bb_postorder): Remove static variable.
7785         (cmp_bb_postorder): Adjust.
7786         (sort_bbs_postorder): Adjust and use gcc_sort_r.
7787         (dom_walker::walk): Adjust.
7789 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
7791         * sort.cc (sort_r_ctx): New struct.
7792         (reorder23): Make templated on context type.
7793         (reorder45): Ditto.
7794         (cmp1): Ditto.  Adjust signature.
7795         (netsort): Ditto.
7796         (mergesort): Ditto.
7797         [CHECKING_P] (cmp2to3): New static function.  Use it...
7798         (gcc_qsort) [CHECKING_P]: ...here.
7799         (gcc_sort_r): New function.
7800         * system.h (sort_r_cmp_fn): New function typedef.
7801         (qsort_chk): Adjust signature.
7802         (gcc_sort_r): Declare.
7803         * vec.c (qsort_chk_error): Adjust.
7804         (qsort_chk): Adjust.
7806 2019-08-01  Richard Biener  <rguenther@suse.de>
7808         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
7809         (compute_antic): Localize it here.
7811 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
7813         * common/config/riscv/riscv-common.c: Check -march string ends
7814         with null.
7816 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
7818         * ipa-devirt.c (type_warning_cmp): Make static.
7819         (decl_warning_cmp): Ditto.
7821 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
7823         PR target/91050
7824         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
7825         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
7826         use of deleted rs6000_dejagnu_cpu_index variable.
7827         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
7828         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7829         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
7830         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
7831         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
7832         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
7834 2019-07-31  Richard Biener  <rguenther@suse.de>
7836         PR tree-optimization/91280
7837         * tree-ssa-structalias.c (get_constraint_for_component_ref):
7838         Decompose MEM_REF manually for offset handling.
7840 2019-07-31  Richard Biener  <rguenther@suse.de>
7842         PR tree-optimization/91293
7843         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
7844         of reduction stmts.
7846 2019-07-31  Matt Thomas  <matt@3am-software.com>
7847             Nick Hudson  <nick@nthcliff.demon.co.uk>
7848             Matthew Green  <mrg@eterna.com.au>
7849             Maya Rashish  <coypu@sdf.org>
7851         * config.gcc (hppa*-*-netbsd*): New target.
7852         * config/pa/pa-netbsd.h: New file.
7853         * config/pa/pa32-netbsd.h: New file.
7855 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7857         PR tree-optimization/91201
7858         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
7860 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
7862         * config/gcn/gcn-valu.md
7863         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
7864         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
7865         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
7866         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
7867         struct ilist. Add nops for delayeduse insns.
7868         * config/gcn/gcn.md (delayeduse): New attribute.
7869         (*movbi): Remove s_waitcnt from stores.
7870         (*mov<mode>_insn): Likewise.
7871         (*movti_insn): Likewise. Add delayeduse attribute.
7872         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
7873         (atomic_store<mode>): Remove or adjust s_waitcnt.
7875 2019-07-31  Richard Biener  <rguenther@suse.de>
7877         * vr-values.h (vr_values::swap_vr_value): New.
7878         (vr_values::free_value_range): likewise.
7879         * vr-values.c (vr_values::swap_vr_value): Implement.
7880         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
7881         Do not return a range or take a var.
7882         (evrp_range_analyzer::stack): Change back to recording a non-const
7883         value_range *.
7884         * gimple-ssa-evrp-analyze.c
7885         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
7886         value-range.
7887         (evrp_range_analyzer::pop_to_marker): Adjust.
7888         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
7889         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
7890         no longer needed value-range.
7892 2019-07-31  Martin Liska  <mliska@suse.cz>
7894         * tree-ssa-dce.c (propagate_necessity): Delete operator can
7895         have size and (or) alignment as 2nd and later arguments.
7896         Mark all of them as necessary.
7898 2019-07-31  Richard Biener  <rguenther@suse.de>
7900         PR tree-optimization/91178
7901         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
7902         Use tail-recursion.
7904 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7906         PR tree-optimization/91201
7907         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
7908         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
7909         TARGET_AVX512F.
7910         (reduc_plus_scal_<mode>): Improve formatting by introducing
7911         a temporary.
7913 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
7915         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
7916         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
7917         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
7918         (aarch64_init_tme_builtins): New.
7919         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
7920         (aarch64_expand_builtin_tme): New.
7921         (aarch64_expand_builtin): Handle TME builtins.
7922         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
7923         __ARM_FEATURE_TME when enabled.
7924         * config/aarch64/aarch64-option-extensions.def: Add "tme".
7925         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
7926         (TARGET_TME): New.
7927         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
7928         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
7929         UNSPECV_TCANCEL.
7930         (tstart, ttest, tcommit, tcancel): New instructions.
7931         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
7932         (__tcancel, __ttest): New.
7933         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
7934         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
7935         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
7936         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
7937         * config/arm/types.md: Add new tme type attr.
7938         * doc/invoke.texi: Document "tme".
7940 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
7942         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
7943         warn_unused_result attribute.
7944         (cmse_check_address_range): Add warn_unused_result attribute.
7946 2019-07-31  Richard Biener  <rguenther@suse.de>
7948         PR tree-optimization/91257
7949         * tree-vrp.c (union_ranges): Unify equality and less tests
7950         by using compare_values.  Re-order cheap tests first.
7952 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
7954         PR middle-end/91301
7955         * gimplify.c (gimplify_omp_for): If for class iterator on
7956         distribute parallel for there is no data sharing clause
7957         on inner_for_stmt, look for private clause on combined
7958         parallel too and if found, move it to inner_for_stmt.
7960 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
7962         * lra-int.h (lra_operand_data): Remove early_clobber field.
7963         (lra_insn_reg): Likewise.
7964         * lra.c (debug_operand_data): Update accordingly.
7965         (setup_operand_alternative): Likewise.
7966         (new_insn_reg): Likewise.  Remove early_clobber parameter.
7967         (collect_non_operand_hard_regs): Update call accordingly.
7968         Don't assign to lra_insn_reg::early_clobber.
7969         (add_regs_to_insn_regno_info): Remove early_clobber parameter
7970         and update calls to new_insn_reg.
7971         (lra_update_insn_regno_info): Update calls accordingly.
7972         * lra-constraints.c (update_and_check_small_class_inputs): Take the
7973         alternative number as a parameter and test whether the operand
7974         is earlyclobbered in that particular alternative.
7975         (process_alt_operands): Update call accordingly.  Use per-alternative
7976         checks for earyclobber here too.
7977         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
7978         against zero for IRA_UNKNOWN_ALT.
7980 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7982         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
7984 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
7986         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
7987         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
7989 2019-07-30  Martin Liska  <mliska@suse.cz>
7991         PR ipa/89330
7992         * cgraph.c (cgraph_edge::make_direct): Use
7993         edge->indirect_unknown_callee as edge->resolve_speculation can
7994         deallocate edge which is this pointer.
7996 2019-07-30  Richard Biener  <rguenther@suse.de>
7998         PR tree-optimization/91257
7999         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
8001 2019-07-30  Martin Liska  <mliska@suse.cz>
8003         * doc/invoke.texi: Document new behavior.
8004         * lto-wrapper.c (cpuset_popcount): New function
8005         is a copy of libgomp/config/linux/proc.c.
8006         (init_num_threads): Likewise.
8007         (run_gcc): Automatically detect core count for -flto.
8008         (jobserver_active_p): New function.
8010 2019-07-30  Richard Biener  <rguenther@suse.de>
8012         PR tree-optimization/91257
8013         * bitmap.h (bitmap_ior_into_and_free): Declare.
8014         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
8015         whether to add the unliked element to the freelist.
8016         (bitmap_list_insert_element_after): Add defaulted param for
8017         an already allocated element.
8018         (bitmap_ior_into_and_free): New function.
8019         * tree-ssa-structalias.c (condense_visit): Reduce the
8020         ponts-to and edge bitmaps of the SCC members in a
8021         logarithmic fashion rather than all to one.
8023 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
8025         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
8026         parameter.  When nonnull, make sure that the addition or subtraction
8027         has the same condition.
8028         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
8029         for CFN_COND_MUL too.
8031 2019-07-30  Richard Biener  <rguenther@suse.de>
8033         PR tree-optimization/91291
8034         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
8035         constant values.
8037 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
8039         PR middle-end/91216
8040         * omp-low.c (global_nonaddressable_vars): New variable.
8041         (use_pointer_for_field): For global decls, if they are non-addressable,
8042         remember it in the global_nonaddressable_vars bitmap, if they are
8043         addressable and in the global_nonaddressable_vars bitmap, ignore their
8044         TREE_ADDRESSABLE bit.
8045         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
8046         vars in global_nonaddressable_vars bitmap.
8047         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
8049         PR target/91150
8050         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
8051         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
8052         comparison to unsigned HOST_WIDE_INT before shifting it left.
8054 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8056         * config/i386/i386.md (movstrict<mode>): Use register_operand
8057         predicate for operand 0.  Add expander condition.  Assert that
8058         operand 0 is a SUBREG RTX.
8059         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
8060         Update operand constraints and insn condition.
8061         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
8062         (zero_extendqihi2_and): Do not call gen_movstrictqi.
8063         (*setcc_qi_slp): Use register_operand predicate for operand 0.
8064         Update operand 0 constraints.
8065         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
8067 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8069         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
8070         when -m{code,data}-region are used without -mlarge.
8071         * config/msp430/msp430.c (msp430_option_override): Error when a
8072         non-default code or data region is used without -mlarge.
8073         (msp430_section_attr): Emit a warning and do not add upper/lower/either
8074         attributes when they are used without -mlarge.
8076 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8078         PR target/70320
8079         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
8081 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8083         PR middle-end/91242
8084         * wide-int.h (generic_wide_int::sext_elt): New function.
8085         * inchash.h (hash::add_wide_int): Use it instead of elt.
8087 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8089         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
8090         CODE_FOR_arm_##.
8091         * config/arm/arm.md (<crc_variant>): Rename to...
8092         (arm_<crc_variant>): ... This.
8093         (<cdp>): Rename to...
8094         (arm_<cdp>): ... This.
8095         (<ldc>): Rename to...
8096         (arm_<ldc>): ... This.
8097         (<stc>): Rename to...
8098         (arm_<stc>): ... This.
8099         (<mcr>): Rename to...
8100         (arm_<mcr>): ... This.
8101         (<mrc>): Rename to...
8102         (arm_<mrc>): ... This.
8103         (<mcrr>): Rename to...
8104         (arm_<mcrr>): ... This.
8105         (<mrrc>): Rename to...
8106         (arm_<mrrc>): ... This.
8108 2019-07-29  Richard Biener  <rguenther@suse.de>
8110         PR tree-optimization/91257
8111         * tree-ssa-sccvn.h (struct vn_avail): New.
8112         (struct vn_ssa_aux): Add avail member.
8113         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
8114         member, add m_avail_freelist one.
8115         (rpo_elim::~rpo_elim): Remove.
8116         (rpo_elim::eliminate_avail): Adjust to new avail tracking
8117         data structure.
8118         (rpo_elim::eliminate_push_avail): Likewise.
8119         (do_unwind): Likewise.
8120         (do_rpo_vn): Likewise.
8122 2019-07-29  Richard Biener  <rguenther@suse.de>
8124         PR tree-optimization/91257
8125         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
8126         most cases, instead call compare_values which handles the
8127         symbolic ranges we handle specially.
8128         (compare_values_warnv): Do not call operand_less_p but open-code
8129         the effective fold calls.  Avoid converting so much.
8131 2019-07-29  Martin Liska  <mliska@suse.cz>
8133         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
8134         remove LHS of operator new call.  It's handled latter.
8136 2019-07-29  Richard Biener  <rguenther@suse.de>
8138         PR tree-optimization/91267
8139         * vr-values.c (vr_values::update_value_range): Add early return
8140         for effectively VARYING lattice entry.
8142 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8144         PR debug/86638
8145         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
8146         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
8147         necessary if keep_all_vdefs_p is true.
8148         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
8149         that keep_all_vdefs_p is false.
8150         (mark_all_reaching_defs_necessary): Likewise.
8151         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
8153 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8155         * common.opt (Og): Change the initial value of flag_dse to 0.
8156         * opts.c (default_options_table): Move OPT_ftree_dse from
8157         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
8158         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
8159         entry before the OPT_ftree_sra entry.
8160         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
8161         of flags disabled by Og.
8163 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8165         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
8166         variables for -Og.
8168 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8170         * doc/sourcebuild.texi (check-function-bodies): Document.
8172 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8174         * simplify-rtx.c (simplify_const_unary_operation): Fold a
8175         VEC_DUPLICATE of a fixed-length vector even if the result
8176         is variable-length.  Likewise fold a duplicate of a
8177         variable-length vector if the variable-length vector is
8178         itself a duplicate of a fixed-length sequence.
8179         (test_vector_ops_duplicate): Test more cases.
8181 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
8183         * vector-builder.h (vector_builder): Add a shape template parameter.
8184         (vector_builder::new_unary_operation): New function, generalizing
8185         the old tree_vector_builder function.
8186         (vector_builder::new_binary_operation): Likewise.
8187         (vector_builder::binary_encoded_nelts): Likewise.
8188         * int-vector-builder.h (int_vector_builder): Update template
8189         parameters to vector_builder.
8190         (int_vector_builder::shape_nelts): New function.
8191         * rtx-vector-builder.h (rtx_vector_builder): Update template
8192         parameters to vector_builder.
8193         (rtx_vector_builder::shape_nelts): New function.
8194         (rtx_vector_builder::nelts_of): Likewise.
8195         (rtx_vector_builder::npatterns_of): Likewise.
8196         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
8197         * tree-vector-builder.h (tree_vector_builder): Update template
8198         parameters to vector_builder.
8199         (tree_vector_builder::shape_nelts): New function.
8200         (tree_vector_builder::nelts_of): Likewise.
8201         (tree_vector_builder::npatterns_of): Likewise.
8202         (tree_vector_builder::nelts_per_pattern_of): Likewise.
8203         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
8204         (tree_vector_builder::new_binary_operation): Delete.
8205         (tree_vector_builder::binary_encoded_nelts): Likewise.
8206         * simplify-rtx.c: Include rtx-vector-builder.h.
8207         (distributes_over_addition_p): New function.
8208         (simplify_const_unary_operation)
8209         (simplify_const_binary_operation): Generalize handling of vector
8210         constants to include variable-length vectors.
8211         (test_vector_ops_series): Add more tests.
8213 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
8215         PR lto/91222
8216         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
8217         than INDENTIFIER_POINTER.
8219 2019-07-28  Martin Liska  <mliska@suse.cz>
8221         PR ipa/89330
8222         * cgraph.c (symbol_table::create_edge): Always allocate
8223         a cgraph_edge.
8224         (symbol_table::free_edge): Store summary_id to
8225         edge_released_summary_ids if != -1;
8226         * cgraph.h (NEXT_FREE_NODE): Remove.
8227         (SET_NEXT_FREE_NODE): Likewise.
8228         (NEXT_FREE_EDGE): Likewise.
8229         (symbol_table::release_symbol): Store summary_id to
8230         cgraph_released_summary_ids if != -1;
8231         (symbol_table::allocate_cgraph_symbol): Always allocate
8232         a cgraph_node.
8234 2019-07-28  Alan Modra  <amodra@gmail.com>
8236         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
8237         gen_sibcall.
8239 2019-07-28  Alan Modra  <amodra@gmail.com>
8241         PR target/91135
8242         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
8243         define.
8244         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
8245         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
8246         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
8248 2019-07-28  Alan Modra  <amodra@gmail.com>
8250         PR target/91050
8251         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
8252         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
8253         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
8254         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
8255         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
8256         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
8257         in asm_default spec.
8258         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
8259         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
8261 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
8263         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
8265 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
8267         PR target/89517
8268         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
8269         * config/aarch64/aarch64-option-extensions.def: Add new comments
8270         and restore easier to read options.
8272 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
8274         * convert.c (convert_to_real_1): Move part of conversion code...
8275         * match.pd: ...To here.
8277 2019-07-26  Martin Jambor  <mjambor@suse.cz>
8279         PR ipa/89330
8280         * ipa-inline-transform.c (check_speculations_1): New function.
8281         (push_all_edges_in_set_to_vec): Likewise.
8282         (check_speculations): Use check_speculations_1, new parameter
8283         new_edges.
8284         (inline_call): Pass new_edges to check_speculations.
8285         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
8286         NULL.
8287         (speculation_useful_p): Early return true if edge is inlined, remove
8288         later checks for inline_failed.
8290 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
8292         PR rtl-optimization/91223
8293         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
8294         matching with INOUT operand.
8296 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8298         * stmt.c (expand_case): Try to narrow the index type if it's larger
8299         than a word.  Tidy up.
8301 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
8303         * cif-code.def (NEVER_CALL): New code.
8304         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
8305         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
8307 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
8309         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
8310         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
8312 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8314         * ipa-devirt.c (add_type_duplicate): Fix return value.
8316 2019-07-25  Richard Biener  <rguenther@suse.de>
8318         * tree-vrp.c (extract_range_from_multiplicative_op): Add
8319         type parameter and use it instead of guessing expression
8320         type from the first operand.
8321         (extract_range_from_binary_expr): Pass expr_type down.
8323 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
8325         * config/arm/arm.md (SATrev): Change to code attribute.
8326         (*satsi_<SAT:code>): Adjust for the above.
8327         (*satsi_<SAT:code>_shift): Likewise.
8329 2019-07-25  Richard Biener  <rguenther@suse.de>
8331         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
8332         Make value_range * temporary const.
8333         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
8334         Likewise.
8335         (evrp_range_analyzer::record_ranges_from_): Likewise.
8336         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
8337         deal with having recorded a const one.
8338         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
8339         Return a const value_range *.
8340         (evrp_range_analyzer::pop_value_range): Likewise.
8341         (evrp_range_analyzer::stack): Record const value_range *s.
8342         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
8343         Adjust.
8344         * gimple-ssa-sprintf.c (get_int_range): Likewise.
8345         (format_integer): Likewise.
8346         (sprintf_dom_walker::handle_gimple_call): Likewise.
8347         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
8348         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
8349         (vrp_prop::get_value_range): Adjust.
8350         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
8351         modifying the lattice in-place.
8352         (vrp_prop::visit_stmt): Likewise.
8353         * vr-values.c (vr_values::get_lattice_entry): New private method.
8354         (vr_values::get_value_range): Wrap it and return a const
8355         value_range *.
8356         (vr_values::set_def_to_varying): New.
8357         (vr_values::set_defs_to_varying): Use it.
8358         (vr_values::update_value_range): Likewise.
8359         (vr_values::vrp_stmt_computes_nonzero): Adjust.
8360         (values::op_with_constant_singleton_va): Likewise.
8361         (vr_values::extract_range_for_var_from_co): Likewise.
8362         (vr_values::extract_range_from_ssa_name): Likewise.
8363         (vr_values::extract_range_from_cond_expr): Likewise.
8364         (vr_values::extract_range_basic): Likewise.
8365         (compare_ranges): Take const value_range *, adjust.
8366         (compare_range_with_value): Likewise.
8367         (vrp_valueize): Adjust.
8368         (vrp_valueize_1): Likewise.
8369         (vr_values::get_vr_for_comparison): Return a const value_range *.
8370         (vr_values::compare_name_with_value): Adjust.
8371         (vr_values::compare_names): Likewise.
8372         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
8373         Likewise.
8374         (vr_values::vrp_evaluate_conditional): Likewise.
8375         (find_case_label_ranges): Take a const value_range *.
8376         (vr_values::vrp_visit_switch_stmt): Adjust.
8377         (vr_values::extract_range_from_phi_node): Likewise.
8378         (vr_values::simplify_div_or_mod_using_ran): Likewise.
8379         (vr_values::simplify_abs_using_ranges): Likewise.
8380         (test_for_singularity): Take a const value_range *.
8381         (range_fits_type_p): Likewise.
8382         (vr_values::simplify_cond_using_ranges_1): Adjust.
8383         (vr_values::simplify_cond_using_ranges_2): Likewise.
8384         (vr_values::simplify_switch_using_ranges): Likewise.
8385         (vr_values::simplify_float_conversion_usi): Likewise.
8386         (vr_values::two_valued_val_range_p): Likewise.
8387         * vr-values.h (vr_values::get_value_range): Return a const
8388         value_range *.
8389         (vr_values::set_def_to_varying): New.
8390         (vr_values::get_lattice_entry): New private method.
8391         (vr_values::get_vr_for_comparison): Return a const value_range *.
8393 2019-07-25  Martin Liska  <mliska@suse.cz>
8394             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
8396         PR c++/23383
8397         * common.opt: Add -fallocation-dce
8398         * gimple.c (gimple_call_operator_delete_p): New.
8399         * gimple.h (gimple_call_operator_delete_p): Likewise.
8400         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
8401         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
8402         DECL_IS_OPERATOR_DELETE_P.
8403         (mark_all_reaching_defs_necessary_1): Likewise.
8404         (propagate_necessity): Likewise.
8405         (eliminate_unnecessary_stmts): Handle
8406         gimple_call_operator_delete_p.
8407         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
8408         Add packing of OPERATOR_DELETE.
8409         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
8410         Similarly here.
8411         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
8412         (DECL_SET_IS_OPERATOR_DELETE): New.
8413         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
8415 2019-07-25  Martin Liska  <mliska@suse.cz>
8417         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
8418         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
8419         * coverage.c (coverage_begin_function): Likewise.
8420         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
8421         * gimple.c (gimple_call_nonnull_result_p): Likewise.
8422         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
8423         (sem_item::hash_referenced_symbol_properties): Likewise.
8424         * lto-streamer-out.c (hash_tree): Likewise.
8425         * predict.c (expr_expected_value_1): Likewise.
8426         * tree-inline.c (expand_call_inline): Likewise.
8427         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
8428         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
8429         * tree-core.h (enum function_decl_type): New enum.
8430         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
8431         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
8432         (set_function_decl_type): Likewise.
8433         (DECL_IS_OPERATOR_NEW_P): New.
8434         (DECL_SET_IS_OPERATOR_NEW): Likewise.
8435         (DECL_LAMBDA_FUNCTION): Likewise.
8436         (DECL_LAMBDA_FUNCTION_P): Likewise.
8437         (DECL_IS_OPERATOR_NEW): Remove.
8438         (DECL_SET_LAMBDA_FUNCTION): Likewise.
8440 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
8442         * ipa-profile.c (get_most_common_single_value): Use
8443         get_nth_most_common_value.
8444         * profile.c (sort_hist_value): New function.
8445         (compute_value_histograms): Call sort_hist_value to sort the
8446         values after loading from disk.
8447         * value-prof.c (get_most_common_single_value): Rename to ...
8448         get_nth_most_common_value.  Add input params n, return
8449         the n_th value and count.
8450         (gimple_divmod_fixed_value_transform): Use
8451         get_nth_most_common_value.
8452         (gimple_ic_transform): Likewise.
8453         (gimple_stringops_transform): Likewise.
8454         * value-prof.h (get_most_common_single_value): Add input params
8455         n, default to 0.
8457 2019-07-25  Richard Biener  <rguenther@suse.de>
8459         PR tree-optimization/91236
8460         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
8461         size of CONSTRUCTOR write.  Fix buffer size we pass to
8462         native_encode_expr.
8464 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8466         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
8467         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
8468         r273773.
8470 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8472         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
8473         explicitly disabled with --disable-initfini-array.
8475 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8477         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
8478         if-exists.
8480 2019-07-24  Martin Sebor  <msebor@redhat.com>
8482         PR tree-optimization/91183
8483         PR tree-optimization/86688
8484         * builtins.c (compute_objsize): Handle MEM_REF.
8485         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
8486         (get_min_string_length): Remove.
8487         (count_nonzero_bytes): New function.
8488         (handle_char_store): Rename...
8489         (handle_store): to this.  Handle multibyte stores via integer types.
8490         (strlen_check_and_optimize_stmt): Adjust conditional and the called
8491         function name.
8493 2019-07-24  Martin Sebor  <msebor@redhat.com>
8495         PR driver/80545
8496         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
8497         (diagnostic_report_diagnostic): Same.
8498         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
8499         (diagnostic_context::lang_mask): New data member.
8500         * ipa-pure-const.c (suggest_attribute): Use
8501         lang_hooks.option_lang_mask ().
8502         * opts-common.c (option_enabled): Handle new argument.
8503         (get_option_state): Pass an additional argument.
8504         * opts.c (print_filtered_help): Print supported languages for
8505         unsupported options.  Adjust printing of current state.
8506         * opts.h (option_enabled): Add argument.
8507         * toplev.c (print_switch_values): Use lang_mask.
8508         (general_init): Set global_dc->lang_mask.
8510 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
8512         PR bootstrap/87030
8513         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
8515 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
8517         * cgraphunit.c (symbol_table::compile): Start and stop
8518         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
8519         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
8521 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
8523         * gimplify.c (flag_instrument_functions_exclude_p): Include
8524         namespace/class information in the printable name.
8525         * opts.c (add_comma_separated_to_vector): Add NUL terminator
8526         to tokens entered into the vector.
8528 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
8530         * tree-nested.c (build_simple_mem_ref_notrap): New function.
8531         (get_static_chain): Call it instead of build_simple_mem_ref.
8532         (get_frame_field): Likewise.
8533         (get_nonlocal_debug_decl): Likewise.
8534         (convert_nonlocal_reference_op): Likewise.
8536 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
8538         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
8539         declaration.
8540         (arc_compute_frame_size): Millicode is disabled when compiling
8541         ISR.
8542         (arc_return_address_register): Likewise.
8543         (arc_compute_function_type): Likewise.
8544         (arc_compute_frame_size): Likewise.
8545         (secondary_reload_info): Likewise.
8546         (arc_get_unalign): Likewise.
8547         (arc_can_use_return_insn): Declare.
8548         * config/arc/arc.c (AUX_LP_START): Define
8549         (AUX_LP_END): Likewise.
8550         (arc_frame_info): Update gmask member to 64-bit datum.
8551         (GMASK_LEN): Update.
8552         (arc_compute_function_type): Make it static, move it forward.
8553         (arc_must_save_register): Update, consider the extra regs.
8554         (arc_compute_millicode_save_restore_regs): Update to use the 64
8555         bit gmask.
8556         (arc_compute_frame_size): Likewise.
8557         (arc_enter_leave_p): Likewise.
8558         (arc_save_callee_saves): Likewise.
8559         (arc_restore_callee_saves): Likewise.
8560         (arc_save_callee_enter): Likewise.
8561         (arc_restore_callee_leave): Likewise.
8562         (arc_save_callee_milli): Likewise.
8563         (arc_restore_callee_milli): Likewise.
8564         (arc_expand_prologue): Add new interrupt handling.
8565         (arc_return_address_register): Make it static, move it forward.
8566         (arc_expand_epilogue): Add new interrupt handling.
8567         (arc_get_unalign): Delete.
8568         (arc_epilogue_uses): Make sure we do not remove the extra
8569         saved/restored registers when interrupt.
8570         (arc_can_use_return_insn): New function.
8571         (push_reg): Likewise.
8572         (pop_reg): Likewise.
8573         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
8574         procedures.
8575         (arc_restore_callee_saves): Likewise, but restoring.
8576         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
8577         (R33_REG): Likewise.
8578         (R34_REG): Likewise.
8579         (R35_REG): Likewise.
8580         (R36_REG): Likewise.
8581         (R37_REG): Likewise.
8582         (R38_REG): Likewise.
8583         (R39_REG): Likewise.
8584         (R45_REG): Likewise.
8585         (R46_REG): Likewise.
8586         (R47_REG): Likewise.
8587         (R48_REG): Likewise.
8588         (R49_REG): Likewise.
8589         (R50_REG): Likewise.
8590         (R51_REG): Likewise.
8591         (R52_REG): Likewise.
8592         (R53_REG): Likewise.
8593         (R54_REG): Likewise.
8594         (R55_REG): Likewise.
8595         (R56_REG): Likewise.
8596         (R58_REG): Likewise.
8597         (type): Add rtie attribute.
8598         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
8599         (movsi_insn): Accept moves to lp_count.
8600         (rtie): Update pattern.
8601         (simple_return): Simplify it, don't use this pattern as a return
8602         from an interrupt.
8603         (arc600_rtie): New pattern.
8604         (p_return_i): Clean up.
8605         (return): Likewise.
8606         * config/arc/builtins.def (rtie): Only available for non ARC6xx
8607         family CPUs.
8608         * config/arc/predicates.md (move_src_operand): Consider lp_count
8609         as a register.
8611 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
8613         * config/s390/predicates.md (addv_const_operand): New predicate.
8614         * config/s390/s390-modes.def (CCO): New condition code mode.
8615         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
8616         (s390_branch_condition_mask): Likewise.
8617         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
8618         ("mulv<mode>4"): New expanders.
8619         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
8620         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
8621         pattern definitions.
8623 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
8625         PR middle-end/91166
8626         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
8627         (define_predicates): Add entry for uniform_vector_p.
8628         (vec_same_elem_p): New match pattern.
8630 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
8632         PR bootstrap/87030
8633         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
8634         * config/i386/darwin32-biarch.h .. to here.
8635         * config/i386/darwin64-biarch.h: Adjust comments.
8636         * config/rs6000/darwin32-biarch.h: Likewise.
8637         * config/rs6000/darwin64-biarch.h: Likewise.
8638         * config.gcc: Missed commit from r273746
8639         (*-*-darwin*): Don't include CPU t-darwin here.
8640         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8641         an error message if i686-darwin configuration is attempted for
8642         Darwin >= 18.
8644 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
8646         PR bootstrap/87030
8647         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
8648         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
8649         an error message if i686-darwin configuration is attempted for
8650         Darwin >= 18.
8651         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
8652         (powerpc-*-darwin*): Use biarch files where needed.
8653         (powerpc64-*-darwin*): Likewise.
8654         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
8655         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8656         arch case.
8657         * config/i386/darwin32-biarch.h: New.
8658         * config/i386/darwin64.h: Rename.
8659         * config/i386/darwin64-biarch.h: To this.
8660         * config/i386/t-darwin: Rename.
8661         * config/i386/t-darwin32-biarch: To this.
8662         * config/i386/t-darwin64: Rename.
8663         * config/i386/t-darwin64-biarch: To this.
8664         * config/rs6000/darwin32-biarch.h: New.
8665         * config/rs6000/darwin64.h: Rename.
8666         * config/rs6000/darwin64-biarch.h: To this.
8667         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
8668         arch case.
8669         * config/rs6000/t-darwin8: Rename.
8670         * config/rs6000/t-darwin32-biarch: To this.
8671         * config/rs6000/t-darwin64 Rename.
8672         * config/rs6000/t-darwin64-biarch: To this.
8674 2019-07-23  Martin Sebor  <msebor@redhat.com>
8676         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
8678 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
8680         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
8681         (rh): New alias for it.
8683 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
8685         * gdbhooks.py: Pass replace=True to
8686         gdb.printing.register_pretty_printer.
8688 2019-07-23  Richard Biener  <rguenther@suse.de>
8690         PR debug/91231
8691         * lto-streamer-in.c (input_function): Drop inline-entry markers
8692         that ended up with an unknown location block.
8694 2019-07-23  Richard Biener  <rguenther@suse.de>
8696         PR tree-optimization/83518
8697         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
8698         init from a constant even when partial defs are already recorded.
8700 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8702         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
8703         * config/i386/znver1.md: Enable patterns for znver2 and add store
8704         variants which use extra AGU unit.
8706 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8708         * config/i386/i386-options.c (ix86_option_override_internal): Default
8709         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
8710         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
8711         for ZNVER2.
8713 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
8715         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
8716         (znver2_costs): Update 256 bit SSE costs and multiplication.
8718 2019-07-23  Jan Beulich  <jbeulich@suse.com>
8720         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
8721         Require only AVX512F.
8722         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
8723         alternative expanding to vpternlog.
8725 2019-07-23  Martin Liska  <mliska@suse.cz>
8727         * dwarf2out.c (gen_producer_string): Canonize -flto=N
8728         to -flto in dwarf producer string.
8730 2019-07-23  Richard Biener  <rguenther@suse.de>
8732         * tree-cfg.c (label_for_bb): Remove global var.
8733         (main_block_label): Take label_for_bb as argument.
8734         (cleanup_dead_labels_eh): Likewise, adjust.
8735         (cleanup_dead_labels): Adjust.
8737 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
8739         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
8740         Configurations): Add documentation for __builtin_mtfsf.
8742 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
8744         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
8745         * config/riscv/riscv.c (riscv_constant_alignment): Use
8746         riscv_align_data_type.
8747         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
8748         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8749         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
8750         * config/riscv/riscv.opt (malign-data): New.
8751         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
8753 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
8755         * cgraph.c (dump_graphviz): New function.
8756         * cgraph.h (dump_graphviz): New function.
8757         * symtab.c (dump_graphviz): New function.
8759 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
8761         * config/aarch64/aarch64-simd.md
8762         (*aarch64_simd_sra<mode>): New.
8763         * config/aarch64/iterators.md
8764         (SHIFTRT): New iterator.
8765         (sra_op): New attribute.
8767 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8769         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
8770         callee-saved regs R4->R10 in an interrupt function that calls another
8771         function.
8773 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
8775         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
8776         (_mm_blendv_epi8): New.
8778 2019-07-22  Richard Biener  <rguenther@suse.de>
8780         PR tree-optimization/91221
8781         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
8782         restrict partial-def handling of empty constructors and
8783         memset to refs with known offset.
8785 2019-07-22  Jan Beulich  <jbeulich@suse.com>
8787         * config/i386/sse.md (ternlogsuffix): New.
8788         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
8789         AVX512F is in use.
8790         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
8792 2019-07-22  Martin Liska  <mliska@suse.cz>
8794         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
8795         comment.
8796         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
8798 2019-07-22  Martin Liska  <mliska@suse.cz>
8800         * lto-section-in.c (lto_get_section_data):
8801         Use new function get_compression.
8802         * lto-streamer-out.c (produce_lto_section): Use
8803         set_compression to encode compression algorithm.
8804         * lto-streamer.h (struct lto_section): Do not
8805         use bitfields in the format.
8807 2019-07-22  Martin Liska  <mliska@suse.cz>
8809         PR driver/91172
8810         * opts-common.c (decode_cmdline_option): Decode
8811         argument of -Werror and check it for a wrong language.
8812         * opts-global.c (complain_wrong_lang): Remove such case.
8814 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
8816         * config/arc/arc.c (prepare_move_operands): Always use an
8817         intermediate register when storing a TLS symbols.
8819 2019-07-22  Stafford Horne  <shorne@gmail.com>
8821         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
8822         force_reg.
8824 2019-07-22  Stafford Horne  <shorne@gmail.com>
8826         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
8827         and munordered-float validations.
8828         * config/or1k/constraints.md (d): New register constraint.
8829         * config/or1k/predicates.md (fp_comparison_operator): New.
8830         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
8831         operands.
8832         (or1k_expand_compare): Normalize unordered comparisons.
8833         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
8834         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
8835         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
8836         * config/or1k/or1k.md (type): Add fpu.
8837         (fpu): New instruction reservation.
8838         (F, f, fr, fi, FI, FOP, fop): New.
8839         (<fop><F:mode>3): New ALU instruction definition.
8840         (float<fi><F:mode>2): New conversion instruction definition.
8841         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
8842         (fpcmpcc): New code iterator.
8843         (*sf_fp_insn): New instruction definition.
8844         (cstore<F:mode>4): New expand definition.
8845         (cbranch<F:mode>4): New expand definition.
8846         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
8847         munordered-float): New options.
8848         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
8849         munordered-float.
8851 2019-07-22  Stafford Horne  <shorne@gmail.com>
8853         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
8854         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
8855         documenation to be more clear.
8856         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
8857         more clear.
8858         * config/or1k/or1k.opt (mrori): New option.
8859         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
8860         msfimm, mshftimm): Rewrite documentation to be more clear.
8861         * config/or1k/or1k.md (insn_support): Add ror and rori.
8862         (enabled): Add conditions for ror and rori.
8863         (rotrsi3): Replace condition for shftimm with ror and rori.
8865 2019-07-22  Stafford Horne  <shorne@gmail.com>
8867         PR target/90363
8868         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
8869         (extend<mode>si2): Update predicate.
8870         * config/or1k/predicates.md (volatile_mem_operand): New.
8871         (reg_or_mem_operand): New.
8873 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
8875         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
8876         * config/rs6000/rs6000-call.c: ... to here.
8878 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8880         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
8881         memory.
8883 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8885         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
8887 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8889         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
8891 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
8893         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
8894         (any_memory_operand): New predicate.
8895         (reg_or_mem_operand): Use it.
8897 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8899         PR target/91204
8900         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
8902 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
8904         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
8905         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
8907 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
8909         * tree.def (OMP_LOOP): New tree code.
8910         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
8911         (enum omp_clause_bind_kind): New enum.
8912         (struct tree_omp_clause): Add subcode.bind_kind.
8913         * tree.h (OMP_LOOP_CHECK): Rename to ...
8914         (OMP_LOOPING_CHECK): ... this.
8915         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
8916         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
8917         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
8918         (OMP_CLAUSE_BIND_KIND): Define.
8919         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
8920         bind clause entries.
8921         (walk_tree_1): Handle OMP_CLAUSE_BIND.
8922         * tree-pretty-print.c (dump_omp_clause): Likewise.
8923         (dump_generic_node): Handle OMP_LOOP.
8924         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
8925         (in_omp_construct): New variable.
8926         (is_gimple_stmt): Handle OMP_LOOP.
8927         (gimplify_scan_omp_clauses): For lastprivate don't set
8928         check_non_private if code == OMP_LOOP.  For reduction clause
8929         on OMP_LOOP combined with parallel or teams propagate as shared
8930         on the combined construct.  Handle OMP_CLAUSE_BIND.
8931         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
8932         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
8933         for constructs from a loop construct to gimplify_scan_omp_clauses.
8934         Don't predetermine iterator linear on OMP_SIMD from loop construct.
8935         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
8936         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
8937         to match the implicit ORT_TARGET construct around whole body.
8938         Temporarily clear in_omp_construct when processing body.
8939         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
8940         etc. temporarily set in_omp_construct when processing body.
8941         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
8942         * omp-low.c (struct omp_context): Add loop_p.
8943         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
8944         in that the original var might be private.
8945         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
8946         (check_omp_nesting_restrictions): Adjust nesting restrictions for
8947         addition of loop construct.
8948         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
8950         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
8951         lastprivate non-addressable iterator of a collapse(1) simd.
8953 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
8955         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
8956         as in rs6000.c.
8958 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
8960         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
8961         refer to default conditions.  Warn for the 'y' spec which is ignored
8962         by current linkers.
8964 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
8966         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
8967         cpu_supports_info, builtin_hash_struct, builtin_hasher,
8968         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
8969         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
8970         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
8971         init_cumulative_args, rs6000_promote_function_mode,
8972         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
8973         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
8974         rs6000_function_arg_boundary, rs6000_parm_offset,
8975         rs6000_parm_start, rs6000_arg_size,
8976         rs6000_darwin64_record_arg_advance_flush,
8977         rs6000_darwin64_record_arg_advance_recurse,
8978         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
8979         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
8980         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
8981         rs6000_mixed_function_arg, rs6000_psave_function_arg,
8982         rs6000_finish_function_arg, rs6000_function_arg,
8983         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
8984         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
8985         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
8986         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
8987         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
8988         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
8989         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
8990         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
8991         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
8992         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
8993         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
8994         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
8995         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
8996         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
8997         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
8998         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
8999         get_element_number, altivec_expand_vec_set_builtin,
9000         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9001         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9002         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9003         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9004         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9005         rs6000_expand_builtin, rs6000_vector_type,
9006         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
9007         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
9008         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
9009         to rs6000-call.c.
9010         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
9011         cpu_supports_info, builtin_hash_struct, builtin_hasher,
9012         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
9013         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
9014         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
9015         init_cumulative_args, rs6000_promote_function_mode,
9016         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
9017         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
9018         rs6000_function_arg_boundary, rs6000_parm_offset,
9019         rs6000_parm_start, rs6000_arg_size,
9020         rs6000_darwin64_record_arg_advance_flush,
9021         rs6000_darwin64_record_arg_advance_recurse,
9022         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
9023         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
9024         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
9025         rs6000_mixed_function_arg, rs6000_psave_function_arg,
9026         rs6000_finish_function_arg, rs6000_function_arg,
9027         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
9028         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
9029         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
9030         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
9031         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
9032         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
9033         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
9034         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
9035         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
9036         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
9037         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
9038         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
9039         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
9040         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
9041         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
9042         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
9043         get_element_number, altivec_expand_vec_set_builtin,
9044         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
9045         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
9046         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
9047         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
9048         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
9049         rs6000_expand_builtin, rs6000_vector_type,
9050         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
9051         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
9052         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
9053         to here from rs6000.c.
9054         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
9055         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
9056         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
9057         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
9058         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
9059         rs6000_return_in_memory, rs6000_return_in_msb,
9060         rs6000_pass_by_reference, setup_incoming_varargs,
9061         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
9062         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
9063         rs6000_function_arg_padding, rs6000_function_arg,
9064         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
9065         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
9066         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
9067         rs6000_passes_long_double, rs6000_passes_vector,
9068         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
9069         altivec_builtin_mask_for_load) Add declarations.
9070         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
9071         * config/config.gcc: Add new source file rs6000-call.c to garbage
9072         collector and extra_objs.
9074 2019-07-19  Jeff Law  <law@redhat.com>
9076         PR tree-optimization/86061
9077         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
9078         strncpy.  Drop some trivial dead code.
9079         (maybe_trim_memstar_call): Handle strncpy.
9081 2019-07-19  Richard Biener  <rguenther@suse.de>
9083         PR tree-optimization/91211
9084         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9085         memset encoding size.
9087 2019-07-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9089         PR target/91204
9090         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
9092 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
9094         PR ipa/91194
9095         * ipa-inline.c (recursive_inlining): Fix limits check.
9097 2019-07-19  Richard Biener  <rguenther@suse.de>
9099         PR tree-optimization/91200
9100         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
9101         no PHI nodes in middle-bb.
9103 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
9105         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
9106         to +sve-bitperm.
9107         * config/aarch64/aarch64-option-extensions.def: Likewise.
9109 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
9111         PR middle-end/91190
9112         * function.c (insert_temp_slot_address): Store into the hash table
9113         a copy of address to avoid RTL sharing issues.
9115 2019-07-19  Richard Biener  <rguenther@suse.de>
9117         PR tree-optimization/91207
9118         Revert
9119         2019-07-17  Richard Biener  <rguenther@suse.de>
9121         PR tree-optimization/91178
9122         * tree-vect-stmts.c (get_group_load_store_type): For SLP
9123         loads with a gap larger than the vector size always use
9124         VMAT_STRIDED_SLP.
9125         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
9126         avoid loading vectors that are only contained in the gap
9127         and thus are not needed.
9129 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9131         * config/i386/i386.md (*addqi_2_slp): Remove.
9132         (*<code>qi_2_slp): Ditto.
9134 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
9136         * config/rs6000/predicates.md (prefixed_mem_operand): Call
9137         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
9138         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
9139         Rename function from rs6000_prefixed_address.
9140         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9141         TARGET_HAS_TOC.
9142         (TARGET_TOC): Likewise.
9143         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9144         rs6000.h.
9145         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9146         TARGET_HAS_TOC.
9147         (TARGET_TOC): Likewise.
9148         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9149         rs6000.h.
9150         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9151         TARGET_HAS_TOC.
9152         (TARGET_TOC): Likewise.
9153         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
9154         check to require -mcmodel=medium for pc-relative addressing.
9155         (create_TOC_reference): Add assertion for TARGET_TOC.
9156         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
9157         TARGET_NO_TOC.
9158         (rs6000_emit_move): Likewise.
9159         (TOC_alias_set): Rename TOC alias set static variable from 'set'
9160         to 'TOC_alias_set'.
9161         (get_TOC_alias_set): Likewise.
9162         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
9163         TARGET_NO_TOC.
9164         (rs6000_can_eliminate): Likewise.
9165         (rs6000_prefixed_address_mode_p): Rename function from
9166         rs6000_prefixed_address.
9167         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
9168         TARGET_HAS_TOC and not pc-relative.
9169         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
9170         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
9171         TARGET_HAS_TOC.
9172         (TARGET_TOC): Likewise.
9173         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
9174         rs6000.h.
9176 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9178         PR target/91188
9179         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
9180         for operand 0.  Do not use (match_dup) to match operand 1 with
9181         operand 0.  Add check in insn constraint that either input operand
9182         matches operand 0.  Use SWI12 mode iterator to also handle
9183         HImode operands.
9184         (*and<mode>_1_slp): Ditto.
9185         (*<code>qi_1_slp): Ditto.
9186         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
9187         Do not use (match_dup) to match operand 1 with operand 0.  Add
9188         check in insn constraint that operand 1 matches operand 0.
9189         Use SWI12 mode iterator to also handle HImode operands.
9190         (*ashl<mode>3_1_slp): Ditto.
9191         (*<shift_insn><mode>3_1_slp): Ditto.
9192         (*<rotate_insn><mode>3_1_slp): Ditto.
9194 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
9196         * config/arm/arm-builtins.c
9197         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
9198         (arm_expand_unop_builtin): Likewise.
9199         * config/arm/crypto.md
9200         (crypto_sha1h): Convert from define_insn to define_expand.
9201         (crypto_<crypto_pattern>): Likewise.
9202         (crypto_sha1h_lb): New define_insn.
9203         (crypto_<crypto_pattern>_lb): Likewise.
9205 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
9207         PR target/90317
9208         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
9209         (vsha1cq_u32): Likewise.
9210         (vsha1pq_u32): Likewise.
9211         (vsha1mq_u32): Likewise.
9212         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
9213         vec select.
9214         (crypto_sha1c): Correct vec select.
9215         (crypto_sha1m): Likewise.
9216         (crypto_sha1p): Likewise.
9218 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
9220         * config/arm/predicates.md (arm_borrow_operation): New predicate.
9221         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
9222         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
9223         (subdi_zesidi_zesidi): Likewise.
9224         (negdi2_compare, negdi2_insn): Likewise.
9225         (negdi_extensidi): Likewise.
9226         (negdi_zero_extendsidi): Likewise.
9227         (arm_cmpdi_insn): Likewise.
9228         (subsi3_carryin): Use arm_borrow_operation.
9229         (subsi3_carryin_const): Likewise.
9230         (subsi3_carryin_const0): Likewise.
9231         (subsi3_carryin_compare): Likewise.
9232         (subsi3_carryin_compare_const): Likewise.
9233         (subsi3_carryin_compare_const0): Likewise.
9234         (subsi3_carryin_shift): Likewise.
9235         (rsbsi3_carryin_shift): Likewise.
9236         (negsi2_carryin_compare): Likewise.
9238 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
9240         PR tree-optimization/91137
9241         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
9242         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
9243         Init, use and fini the above new field.
9244         (determine_base_object_1): New function.
9245         (determine_base_object): Reimplement using walk_tree.
9247 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
9249         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
9250         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
9251         CLEANUP_FORCE_FAST_DCE is set.
9252         * ifcvt.c (rest_of_handle_if_conversion): Pass
9253         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
9254         if-conversion succeeded.
9256 2019-07-18  Richard Biener  <rguenther@suse.de>
9258         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
9259         branches to make code less indented.
9261 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
9263         PR middle-end/81824
9264         * attribs.c (decls_mismatched_attributes): Simplify the logic
9265         that avoids duplicates and false positives.
9267 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
9269         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
9270         data into data section when generating PIC code.
9271         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
9272         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
9273         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
9274         return 2 for SOM and 0 for other targets.
9276 2019-07-17  Jeff Law  <law@redhat.com>
9278         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
9279         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
9280         avoid unexpected switch statement fallthru.
9282 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9284         * config/i386/i386.md (*add<dwi>3_doubleword):
9285         Remove redundant constraints.
9286         (*add<mode>_1): Ditto.
9287         (*addhi_1): Ditto.
9288         (*addqi_1): Ditto.
9289         (*addqi_1_slp): Ditto.
9290         (*add<mode>_2): Ditto.
9291         (*addv<mode>4): Ditto.
9292         (*sub<dwi>3_doubleword): Ditto.
9293         (*sub<mode>_1): Ditto.
9294         (*subqi_1_slp): Ditto.
9295         (*sub<mode>_2): Ditto.
9296         (*subv<mode>4): Ditto.
9297         (*sub<mode>_3): Ditto.
9298         (@add<mode>3_carry): Ditto.
9299         (@sub<mode>3_carry): Ditto.
9300         (*add<mode>3_cc_overflow_1): Ditto.
9301         (*add<mode>3_zext_cc_overflow_2): Ditto.
9302         (*anddi_1): Ditto.
9303         (*and<mode>_1): Ditto.
9304         (*andqi_1): Ditto.
9305         (*andqi_1_slp): Ditto.
9306         (*anddi_2): Ditto.
9307         (*andqi_2_maybe_si): Ditto.
9308         (*and<mode>_2): Ditto.
9309         (*andqi_2_slp): Ditto.
9310         (*<code><mode>_1): Ditto.
9311         (*<code>qi_1): Ditto.
9312         (*<code>qi_1_slp): Ditto.
9313         (*<code><mode>_2): Ditto.
9314         (*<code>qi_2_slp): Ditto.
9316 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
9318         * alias.c (record_component_aliases): Do not simplify pointed-to
9319         types of ODR types.
9321 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9323         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
9324         partial reg stall on alternative 2.
9326 2019-07-17  Richard Biener  <rguenther@suse.de>
9328         PR tree-optimization/91178
9329         * tree-ssa.c (release_defs_bitset): Iterate from higher to
9330         lower SSA names to avoid quadratic behavior in the common case.
9331         * tree-data-ref.c (split_constant_offset): Add limit argument
9332         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9333         (split_constant_offset_1): Add limit argument and use it to
9334         limit SSA def walking.  Optimize the common plus/minus case.
9336 2019-07-17  Richard Biener  <rguenther@suse.de>
9338         PR tree-optimization/91178
9339         * tree-vect-stmts.c (get_group_load_store_type): For SLP
9340         loads with a gap larger than the vector size always use
9341         VMAT_STRIDED_SLP.
9342         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
9343         avoid loading vectors that are only contained in the gap
9344         and thus are not needed.
9346 2019-07-17  Richard Biener  <rguenther@suse.de>
9348         PR tree-optimization/91180
9349         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
9350         computation for memset partial defs.
9352 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
9354         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
9355         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
9356         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
9357         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
9358         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
9359         * omp-grid.c (grid_process_grid_body,
9360         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
9361         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
9362         == GF_OMP_FOR_KIND_SIMD.
9363         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
9364         check_omp_nesting_restrictions, scan_omp_1_stmt,
9365         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
9366         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
9367         omp_find_scan): Likewise.
9368         * omp-expand.c (expand_omp_for): Likewise.
9369         * omp-general.c (omp_extract_for_data): Likewise.
9371         PR tree-optimization/91157
9372         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
9373         a vector boolean with scalar mode.
9374         (expand_vector_condition): Handle first operand being a vector boolean
9375         with scalar mode.
9376         (expand_vector_operations_1): For comparisons, don't bail out early
9377         if the return type is vector boolean with scalar mode, but comparison
9378         operand type is not.
9380 2019-07-17  Richard Biener  <rguenther@suse.de>
9382         PR tree-optimization/91181
9383         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
9384         IFN_LOADs as calls.
9386 2019-07-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9388         * config/i386/i386.md (*testdi_1): Match CCZmode for
9389         constants that might have the SImode sign bit set.
9390         (*testqi_1_maybe_si): Remove "!" constraint modifier.
9391         Use correct constraints for pentium pairing.
9392         (*test<mode>_1): Ditto.
9394 2019-07-16  Jeff Law  <law@redhat.com>
9396         PR rtl-optimization/91173
9397         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
9398         SSA_NAME with a constant value, fold its value into the offset
9399         and clear the base before calling gen_addr_rtx.
9401 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
9403         PR rtl-optimization/91164
9404         * dse.c (rest_of_handle_dse): If dead edges have been purged,
9405         invalidate dominance info.
9407 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9409         * read-md.h (md_reader::record_potential_iterator_use): Add a
9410         file_location parameter.
9411         * read-rtl.c (attribute_use::loc): New field.
9412         (map_attr_string): Take a file_location parameter.  Report cases
9413         in which attributes map to multiple distinct values.
9414         (apply_attribute_uses): Update call accordingly.
9415         (md_reader::handle_overloaded_name): Likewise.
9416         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
9417         nonnull strings.
9418         (record_attribute_use): Take a file_location parameter.
9419         Initialize attribute_use::loc.
9420         (md_reader::record_potential_iterator_use): Take a file_location
9421         parameter.  Update call to record_attribute_use.
9422         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
9423         (rtx_reader::read_rtx_code): Likewise.
9424         (rtx_reader::read_rtx_operand): Likewise.  Record a location
9425         for implicitly-expanded empty strings.
9427 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9429         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
9430         Use file_location instead of separate fields.
9431         (md_reader::set_md_ptr_loc): Take a file_location instead of a
9432         separate filename and line number.
9433         * read-md.c (ptr_loc): As above.
9434         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
9435         (md_reader::fprint_md_ptr_loc): Likewise.
9436         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
9437         instead of a separate filename and line number.
9438         (md_reader::read_string): Update call accordingly.
9440 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9442         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
9443         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
9444         leaving the choice between SFDF and P implicit.
9445         (*mov<mode>_update2): Likewise.
9446         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
9447         rather than leaving the choice betweem IBM128 and GPR implicit.
9448         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
9449         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
9450         QHSI implicit.
9451         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
9452         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
9453         * config/rs6000/vsx.md
9454         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
9455         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
9456         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
9457         and VSX_EXTRACT_I implicit.
9459 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
9461         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
9462         Explicitly use <MOVEP1:MODE> for the mode attribute.
9464 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
9466         PR bootstrap/91176
9467         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
9469 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
9471         PR target/91050
9472         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
9473         .machine directive.
9475 2019-07-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9477         * config/i386/i386.md (@test<mode>_ccno_1):
9478         Rename from test<mode>_ccno_1.
9479         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
9480         (*testqi_1_maybe_si): Remove modrm attribute.
9481         (*test<mode>_1): Ditto.
9482         * config/i386/i386-expand.c (ix86_split_idivmod): Use
9483         gen_test_ccno_1 and gen_extend_insn.
9485 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
9487         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
9488         to 0.
9490 2019-07-15  Richard Biener  <rguenther@suse.de>
9492         PR middle-end/91162
9493         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
9494         node make sure to replace all uses with something valid.
9496 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
9498         PR tree-optimization/88497
9499         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
9500         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
9501         function undistribute_bitref_for_vector.
9502         (undistribute_bitref_for_vector): New function.
9503         (cleanup_vinfo_map): Likewise.
9504         (sort_by_mach_mode): Likewise.
9506 2019-07-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9508         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
9509         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
9510         and testdi_ccno_1 using SWI48 mode attribute.
9511         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
9512         x86_64_szext_general_operand.
9513         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
9514         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
9515         instead of genera_operand mode attribute.
9517 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
9519         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
9520         fopen and fclose to their respective types.
9521         (DotFn.invoke): Ditto.
9523 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
9525         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
9526         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
9527         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
9528         (array_index_predicate): Remove.
9529         (analyze_function_body): Account cost for variable ofsetted array
9530         indexing.
9531         (estimate_node_size_and_time): Do not compute array index hint.
9532         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
9533         (inline_read_section): Do not read array index hint.
9534         (ipa_fn_summary_write): Do not write array index hint.
9535         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
9536         * ipa-cp.c (hint_time_bonus): Remove.
9537         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
9538         (ipa_fnsummary): Remove array_index.
9539         * ipa-inline.c (want_inline_small_function_p): Do not use
9540         array_index.
9541         (edge_badness): Likewise.
9542         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
9544 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
9546         PR target/91148
9547         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
9548         superfluous "builtin function" phrasing.
9550 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
9552         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
9553         Break out from ...
9554         (aliasing_component_refs_walk): Break out from ...
9555         (aliasing_component_refs_p): ... here.
9557 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
9559         PR target/91148
9560         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
9561         "builtin function" phrasing.
9563 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9565         PR target/90723
9566         * recog.h (temporary_volatile_ok): New class.
9567         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
9568         volatile_ok temporarily to true using temporary_volatile_ok.
9569         * expr.c (emit_block_move_via_cpymem): Likewise.
9570         * optabs.c (maybe_legitimize_operand): Likewise.
9572 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
9574         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
9575         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
9576         uses inside of order(concurrent) constructs.
9577         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
9578         OMP_CLAUSE_ORDER is seen.
9579         * omp-low.c (struct omp_context): Add order_concurrent member.
9580         (scan_sharing_clauses): Set ctx->order_concurrent if
9581         OMP_CLAUSE_ORDER is seen.
9582         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
9583         of simd order(concurrent).  Diagnose constructs not allowed inside of
9584         for order(concurrent).
9585         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
9586         complaining about static double setjmp (double); or class static
9587         methods or non-global namespace setjmps.
9588         (omp_runtime_api_call): New function.
9589         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
9590         order(concurrent) loops.
9592 2019-07-12  Martin Sebor  <msebor@redhat.com>
9594         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
9595         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
9596         * tree-vrp.c (vrp_prop::check_mem_ref): Use
9597         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
9599 2019-07-12  Jan Hubicka  <jh@suse.cz>
9601         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
9602         (indirect_refs_may_alias_p): ... here.
9603         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
9604         mem refs in the access paths.
9606 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
9608         PR tree-optimization/89430
9609         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
9610         store elimination for local variable without address escape.
9612 2019-07-12  Jeff Law  <law@redhat.com>
9614         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
9615         for the ".far" section.
9617 2019-07-12  Richard Biener  <rguenther@suse.de>
9619         PR tree-optimization/91145
9620         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
9621         chain check.
9623 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
9625         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
9626         rather than this_state as the lowering context for the ELSE
9627         seq in a GIMPLE_EH_ELSE.
9629 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
9631         * vector-builder.h (vector_builder::elt): Allow already-supplied
9632         elements to be read back before building is complete.
9634 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9636         PR rtl-optimization/91136
9637         * df-core.c (ACCESSING REFS): Fix typos in comment.
9638         * resource.c (mark_target_live_reg): Add artificial defs that occur at
9639         the beginning of the block to the initial set of live registers.
9641 2019-07-12  Richard Biener  <rguenther@suse.de>
9643         * fold-const.h (get_array_ctor_element_at_index): Adjust.
9644         * fold-const.c (get_array_ctor_element_at_index): Add
9645         ctor_idx output parameter informing the caller where in
9646         the constructor the element was (not) found.  Add early exit
9647         for when the ctor is sorted.
9648         * gimple-fold.c (fold_array_ctor_reference): Support constant
9649         folding across multiple array elements.
9651 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
9653         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
9654         doesn't have location, set the current location to the function's end.
9656 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
9658         * config/aarch64/aarch64.md (*compare_condjump<mode>)
9659         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
9660         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
9661         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
9662         * config/aarch64/aarch64-simd.md
9663         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
9664         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
9665         * config/aarch64/aarch64-sve.md
9666         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
9667         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
9669 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
9671         * doc/md.texi: Document that @ patterns can have different
9672         numbers of operands.
9673         * genemit.c (handle_overloaded_gen): Handle this case.
9674         * genopinit.c (handle_overloaded_gen): Likewise.
9675         * gensupport.c (replace_operands_with_dups): Iterate over
9676         the new rtx's format rather than the old one's.
9678 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
9680         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
9681         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
9682         order clause entries.
9683         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
9684         * tree-pretty-print.c (dump_omp_clause): Likewise.
9685         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
9686         Likewise.
9687         * omp-low.c (scan_sharing_clauses): Likewise.
9688         * tree-nested.c (convert_nonlocal_omp_clauses,
9689         convert_local_omp_clauses): Likewise.
9691 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
9693         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
9694         fallthrough target of current basic block isn't the placed
9695         right next.
9697 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
9699         PR target/90980
9700         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
9701         (_mm512_storeu_epi64): Likewise.
9702         (_mm512_loadu_epi32): Likewise.
9703         (_mm512_storeu_epi32): Likewise.
9704         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
9705         (_mm_storeu_epi64): Likewise.
9706         (_mm256_storeu_epi32): Likewise.
9707         (_mm_storeu_epi32): Likewise.
9709 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
9711         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
9713 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
9715         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
9716         Handle Modula-2.
9718 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
9720         PR target/91124
9721         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
9722         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
9723         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
9724         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
9725         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
9726         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
9727         define_insns.
9728         (ufix_truncv2dfv2si2<mask_name>): Change into ...
9729         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
9730         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
9731         define_insns.
9732         (sse2_cvttpd2dq<mask_name>): Change into ...
9733         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
9734         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
9735         (*sse2_cvtpd2dq<mask_name>): Change into ...
9736         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
9737         Add "C" constraint to const0_operand.
9738         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
9739         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
9740         changes.
9742         PR target/91124
9743         * config/i386/i386-builtin-types.def
9744         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
9745         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
9746         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
9747         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
9748         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
9749         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
9750         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
9751         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
9752         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
9753         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
9754         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
9755         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
9756         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
9757         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
9758         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
9759         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
9760         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
9761         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
9762         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
9763         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
9764         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
9765         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
9766         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
9767         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
9768         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
9769         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
9770         __builtin_ia32_vpdpbusd_v4si_maskz,
9771         __builtin_ia32_vpdpbusds_v16si_mask,
9772         __builtin_ia32_vpdpbusds_v16si_maskz,
9773         __builtin_ia32_vpdpbusds_v8si_mask,
9774         __builtin_ia32_vpdpbusds_v8si_maskz,
9775         __builtin_ia32_vpdpbusds_v4si_mask,
9776         __builtin_ia32_vpdpbusds_v4si_maskz,
9777         __builtin_ia32_vpdpwssd_v16si_mask,
9778         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
9779         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
9780         __builtin_ia32_vpdpwssd_v4si_maskz,
9781         __builtin_ia32_vpdpwssds_v16si_mask,
9782         __builtin_ia32_vpdpwssds_v16si_maskz,
9783         __builtin_ia32_vpdpwssds_v8si_mask,
9784         __builtin_ia32_vpdpwssds_v8si_maskz,
9785         __builtin_ia32_vpdpwssds_v4si_mask,
9786         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
9787         suffixed types rather than *_INT.
9788         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
9789         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
9790         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
9791         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
9792         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
9793         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
9795 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
9797         * tree-vrp.c (intersect_ranges): If we know the intersection is
9798         empty, there is no need to conservatively add anything else to
9799         the set.
9801 2019-07-11  Richard Biener  <rguenther@suse.de>
9803         PR middle-end/91131
9804         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
9805         when the object is volatile and we have not cleared it even though
9806         there are no nonzero elements.
9808 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
9810         * config/rs6000/predicates.md (cint34_operand): Update
9811         SIGNED_34BIT_OFFSET_P call.
9812         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
9813         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
9814         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
9815         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
9816         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
9817         argument.
9818         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
9819         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
9820         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
9821         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
9822         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
9824 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
9826         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
9827         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
9828         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
9829         (DEF_MIN_OSX_VERSION): New.
9831 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
9833         * fold-const.c (fold_relational_const): Fix folding of
9834         vector-to-scalar NE_EXPRs.
9835         (test_vector_folding): Add more tests.
9837 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
9839         PR target/91060
9840         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
9841         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
9842         (vec_setv2di_internal): Reexpress as...
9843         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
9844         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
9845         rather than gen_neon_vset_lane<mode>.
9847 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
9849         PR target/91102
9850         * lra-constraints.c (process_alt_operands): Don't match user
9851         defined regs only if they are early clobbers.
9853 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
9855         * wide-int.h (wi::lshift): Reject negative values for the fast path.
9857 2019-07-10  Richard Biener  <rguenther@suse.de>
9859         PR tree-optimization/91126
9860         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
9861         native encoding offset for BYTES_BIG_ENDIAN.
9862         (vn_reference_lookup_3): Likewise.
9864 2019-07-10  Richard Biener  <rguenther@suse.de>
9866         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
9867         LHS whenever possible.
9869 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
9871         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
9872         from ...; work also on duplicated types.
9873         (nonoverlapping_component_refs_since_match): ... here
9874         (ncr_type_uid): Break out from ...
9875         (ncr_compar): ... here; look for TYPE_UID of canonical type if
9876         available.
9877         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
9878         the types and nonoverlapping_component_refs_p_1 to disambiguate.
9880 2019-07-09  Martin Sebor  <msebor@redhat.com>
9882         PR tree-optimization/90989
9883         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
9884         optimization to just single character stores.
9886 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
9888         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
9889         Swap operands only once.
9891 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
9893         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
9894         for both call instructions.
9896 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
9898         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
9899         rather than GET_MODE_BITSIZE to better handle partial integer modes.
9901 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
9903         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
9904         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
9905         function from rs6000-logue.c back to rs6000.c.
9906         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
9908 2019-07-09  Martin Sebor  <msebor@redhat.com>
9910         PR c++/61339
9911         * auto-profile.c: Change class-key of PODs to struct and others
9912         to class.
9913         * basic-block.h: Same.
9914         * bitmap.c (bitmap_alloc): Same.
9915         * bitmap.h: Same.
9916         * builtins.c (expand_builtin_prefetch): Same.
9917         (expand_builtin_interclass_mathfn): Same.
9918         (expand_builtin_strlen): Same.
9919         (expand_builtin_mempcpy_args): Same.
9920         (expand_cmpstr): Same.
9921         (expand_builtin___clear_cache): Same.
9922         (expand_ifn_atomic_bit_test_and): Same.
9923         (expand_builtin_thread_pointer): Same.
9924         (expand_builtin_set_thread_pointer): Same.
9925         * caller-save.c (setup_save_areas): Same.
9926         (replace_reg_with_saved_mem): Same.
9927         (insert_restore): Same.
9928         (insert_save): Same.
9929         (add_used_regs): Same.
9930         * cfg.c (get_bb_copy): Same.
9931         (set_loop_copy): Same.
9932         * cfg.h: Same.
9933         * cfganal.h: Same.
9934         * cfgexpand.c (alloc_stack_frame_space): Same.
9935         (add_stack_var): Same.
9936         (add_stack_var_conflict): Same.
9937         (add_scope_conflicts_1): Same.
9938         (update_alias_info_with_stack_vars): Same.
9939         (expand_used_vars): Same.
9940         * cfghooks.c (redirect_edge_and_branch_force): Same.
9941         (delete_basic_block): Same.
9942         (split_edge): Same.
9943         (make_forwarder_block): Same.
9944         (force_nonfallthru): Same.
9945         (duplicate_block): Same.
9946         (lv_flush_pending_stmts): Same.
9947         * cfghooks.h: Same.
9948         * cfgloop.c (flow_loops_cfg_dump): Same.
9949         (flow_loop_nested_p): Same.
9950         (superloop_at_depth): Same.
9951         (get_loop_latch_edges): Same.
9952         (flow_loop_dump): Same.
9953         (flow_loops_dump): Same.
9954         (flow_loops_free): Same.
9955         (flow_loop_nodes_find): Same.
9956         (establish_preds): Same.
9957         (flow_loop_tree_node_add): Same.
9958         (flow_loop_tree_node_remove): Same.
9959         (flow_loops_find): Same.
9960         (find_subloop_latch_edge_by_profile): Same.
9961         (find_subloop_latch_edge_by_ivs): Same.
9962         (mfb_redirect_edges_in_set): Same.
9963         (form_subloop): Same.
9964         (merge_latch_edges): Same.
9965         (disambiguate_multiple_latches): Same.
9966         (disambiguate_loops_with_multiple_latches): Same.
9967         (flow_bb_inside_loop_p): Same.
9968         (glb_enum_p): Same.
9969         (get_loop_body_with_size): Same.
9970         (get_loop_body): Same.
9971         (fill_sons_in_loop): Same.
9972         (get_loop_body_in_dom_order): Same.
9973         (get_loop_body_in_custom_order): Same.
9974         (release_recorded_exits): Same.
9975         (get_loop_exit_edges): Same.
9976         (num_loop_branches): Same.
9977         (remove_bb_from_loops): Same.
9978         (find_common_loop): Same.
9979         (delete_loop): Same.
9980         (cancel_loop): Same.
9981         (verify_loop_structure): Same.
9982         (loop_preheader_edge): Same.
9983         (loop_exit_edge_p): Same.
9984         (single_exit): Same.
9985         (loop_exits_to_bb_p): Same.
9986         (loop_exits_from_bb_p): Same.
9987         (get_loop_location): Same.
9988         (record_niter_bound): Same.
9989         (get_estimated_loop_iterations_int): Same.
9990         (max_stmt_executions_int): Same.
9991         (likely_max_stmt_executions_int): Same.
9992         (get_estimated_loop_iterations): Same.
9993         (get_max_loop_iterations): Same.
9994         (get_max_loop_iterations_int): Same.
9995         (get_likely_max_loop_iterations): Same.
9996         * cfgloop.h (simple_loop_desc): Same.
9997         (get_loop): Same.
9998         (loop_depth): Same.
9999         (loop_outer): Same.
10000         (loop_iterator::next): Same.
10001         (loop_outermost): Same.
10002         * cfgloopanal.c (mark_irreducible_loops): Same.
10003         (num_loop_insns): Same.
10004         (average_num_loop_insns): Same.
10005         (expected_loop_iterations_unbounded): Same.
10006         (expected_loop_iterations): Same.
10007         (mark_loop_exit_edges): Same.
10008         (single_likely_exit): Same.
10009         * cfgloopmanip.c (fix_bb_placement): Same.
10010         (fix_bb_placements): Same.
10011         (remove_path): Same.
10012         (place_new_loop): Same.
10013         (add_loop): Same.
10014         (scale_loop_frequencies): Same.
10015         (scale_loop_profile): Same.
10016         (create_empty_if_region_on_edge): Same.
10017         (create_empty_loop_on_edge): Same.
10018         (loopify): Same.
10019         (unloop): Same.
10020         (fix_loop_placements): Same.
10021         (copy_loop_info): Same.
10022         (duplicate_loop): Same.
10023         (duplicate_subloops): Same.
10024         (loop_redirect_edge): Same.
10025         (can_duplicate_loop_p): Same.
10026         (duplicate_loop_to_header_edge): Same.
10027         (mfb_keep_just): Same.
10028         (has_preds_from_loop): Same.
10029         (create_preheader): Same.
10030         (create_preheaders): Same.
10031         (lv_adjust_loop_entry_edge): Same.
10032         (loop_version): Same.
10033         * cfgloopmanip.h: Same.
10034         * cgraph.h: Same.
10035         * cgraphbuild.c: Same.
10036         * combine.c (make_extraction): Same.
10037         * config/i386/i386-features.c: Same.
10038         * config/i386/i386-features.h: Same.
10039         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
10040         (ix86_emit_outlined_ms2sysv_restore): Same.
10041         (ix86_noce_conversion_profitable_p): Same.
10042         (ix86_init_cost): Same.
10043         (ix86_simd_clone_usable): Same.
10044         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
10045         Wstruct-not-pod.
10046         * coretypes.h: Same.
10047         * data-streamer-in.c (string_for_index): Change class-key of PODs
10048         to struct and others to class.
10049         (streamer_read_indexed_string): Same.
10050         (streamer_read_string): Same.
10051         (bp_unpack_indexed_string): Same.
10052         (bp_unpack_string): Same.
10053         (streamer_read_uhwi): Same.
10054         (streamer_read_hwi): Same.
10055         (streamer_read_gcov_count): Same.
10056         (streamer_read_wide_int): Same.
10057         * data-streamer.h (streamer_write_bitpack): Same.
10058         (bp_unpack_value): Same.
10059         (streamer_write_char_stream): Same.
10060         (streamer_write_hwi_in_range): Same.
10061         (streamer_write_record_start): Same.
10062         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
10063         (add_cross_iteration_register_deps): Same.
10064         (build_intra_loop_deps): Same.
10065         * df-core.c (df_analyze): Same.
10066         (loop_post_order_compute): Same.
10067         (loop_inverted_post_order_compute): Same.
10068         * df-problems.c (df_rd_alloc): Same.
10069         (df_rd_simulate_one_insn): Same.
10070         (df_rd_local_compute): Same.
10071         (df_rd_init_solution): Same.
10072         (df_rd_confluence_n): Same.
10073         (df_rd_transfer_function): Same.
10074         (df_rd_free): Same.
10075         (df_rd_dump_defs_set): Same.
10076         (df_rd_top_dump): Same.
10077         (df_lr_alloc): Same.
10078         (df_lr_reset): Same.
10079         (df_lr_local_compute): Same.
10080         (df_lr_init): Same.
10081         (df_lr_confluence_n): Same.
10082         (df_lr_free): Same.
10083         (df_lr_top_dump): Same.
10084         (df_lr_verify_transfer_functions): Same.
10085         (df_live_alloc): Same.
10086         (df_live_reset): Same.
10087         (df_live_init): Same.
10088         (df_live_confluence_n): Same.
10089         (df_live_finalize): Same.
10090         (df_live_free): Same.
10091         (df_live_top_dump): Same.
10092         (df_live_verify_transfer_functions): Same.
10093         (df_mir_alloc): Same.
10094         (df_mir_reset): Same.
10095         (df_mir_init): Same.
10096         (df_mir_confluence_n): Same.
10097         (df_mir_free): Same.
10098         (df_mir_top_dump): Same.
10099         (df_word_lr_alloc): Same.
10100         (df_word_lr_reset): Same.
10101         (df_word_lr_init): Same.
10102         (df_word_lr_confluence_n): Same.
10103         (df_word_lr_free): Same.
10104         (df_word_lr_top_dump): Same.
10105         (df_md_alloc): Same.
10106         (df_md_simulate_one_insn): Same.
10107         (df_md_reset): Same.
10108         (df_md_init): Same.
10109         (df_md_free): Same.
10110         (df_md_top_dump): Same.
10111         * df-scan.c (df_insn_delete): Same.
10112         (df_insn_rescan): Same.
10113         (df_notes_rescan): Same.
10114         (df_sort_and_compress_mws): Same.
10115         (df_install_mws): Same.
10116         (df_refs_add_to_chains): Same.
10117         (df_ref_create_structure): Same.
10118         (df_ref_record): Same.
10119         (df_def_record_1): Same.
10120         (df_find_hard_reg_defs): Same.
10121         (df_uses_record): Same.
10122         (df_get_conditional_uses): Same.
10123         (df_get_call_refs): Same.
10124         (df_recompute_luids): Same.
10125         (df_get_entry_block_def_set): Same.
10126         (df_entry_block_defs_collect): Same.
10127         (df_get_exit_block_use_set): Same.
10128         (df_exit_block_uses_collect): Same.
10129         (df_mws_verify): Same.
10130         (df_bb_verify): Same.
10131         * df.h (df_scan_get_bb_info): Same.
10132         * doc/tm.texi: Same.
10133         * dse.c (record_store): Same.
10134         * dumpfile.h: Same.
10135         * emit-rtl.c (const_fixed_hasher::equal): Same.
10136         (set_mem_attributes_minus_bitpos): Same.
10137         (change_address): Same.
10138         (adjust_address_1): Same.
10139         (offset_address): Same.
10140         * emit-rtl.h: Same.
10141         * except.c (dw2_build_landing_pads): Same.
10142         (sjlj_emit_dispatch_table): Same.
10143         * explow.c (allocate_dynamic_stack_space): Same.
10144         (emit_stack_probe): Same.
10145         (probe_stack_range): Same.
10146         * expmed.c (store_bit_field_using_insv): Same.
10147         (store_bit_field_1): Same.
10148         (store_integral_bit_field): Same.
10149         (extract_bit_field_using_extv): Same.
10150         (extract_bit_field_1): Same.
10151         (emit_cstore): Same.
10152         * expr.c (emit_block_move_via_cpymem): Same.
10153         (expand_cmpstrn_or_cmpmem): Same.
10154         (set_storage_via_setmem): Same.
10155         (emit_single_push_insn_1): Same.
10156         (expand_assignment): Same.
10157         (store_constructor): Same.
10158         (expand_expr_real_2): Same.
10159         (expand_expr_real_1): Same.
10160         (try_casesi): Same.
10161         * flags.h: Same.
10162         * function.c (try_fit_stack_local): Same.
10163         (assign_stack_local_1): Same.
10164         (assign_stack_local): Same.
10165         (cut_slot_from_list): Same.
10166         (insert_slot_to_list): Same.
10167         (max_slot_level): Same.
10168         (move_slot_to_level): Same.
10169         (temp_address_hasher::equal): Same.
10170         (remove_unused_temp_slot_addresses): Same.
10171         (assign_temp): Same.
10172         (combine_temp_slots): Same.
10173         (update_temp_slot_address): Same.
10174         (preserve_temp_slots): Same.
10175         * function.h: Same.
10176         * fwprop.c: Same.
10177         * gcc-rich-location.h: Same.
10178         * gcov.c: Same.
10179         * genattrtab.c (check_attr_test): Same.
10180         (check_attr_value): Same.
10181         (convert_set_attr_alternative): Same.
10182         (convert_set_attr): Same.
10183         (check_defs): Same.
10184         (copy_boolean): Same.
10185         (get_attr_value): Same.
10186         (expand_delays): Same.
10187         (make_length_attrs): Same.
10188         (min_fn): Same.
10189         (make_alternative_compare): Same.
10190         (simplify_test_exp): Same.
10191         (tests_attr_p): Same.
10192         (get_attr_order): Same.
10193         (clear_struct_flag): Same.
10194         (gen_attr): Same.
10195         (compares_alternatives_p): Same.
10196         (gen_insn): Same.
10197         (gen_delay): Same.
10198         (find_attrs_to_cache): Same.
10199         (write_test_expr): Same.
10200         (walk_attr_value): Same.
10201         (write_attr_get): Same.
10202         (eliminate_known_true): Same.
10203         (write_insn_cases): Same.
10204         (write_attr_case): Same.
10205         (write_attr_valueq): Same.
10206         (write_attr_value): Same.
10207         (write_dummy_eligible_delay): Same.
10208         (next_comma_elt): Same.
10209         (find_attr): Same.
10210         (make_internal_attr): Same.
10211         (copy_rtx_unchanging): Same.
10212         (gen_insn_reserv): Same.
10213         (check_tune_attr): Same.
10214         (make_automaton_attrs): Same.
10215         (handle_arg): Same.
10216         * genextract.c (gen_insn): Same.
10217         (VEC_char_to_string): Same.
10218         * genmatch.c (print_operand): Same.
10219         (lower): Same.
10220         (parser::parse_operation): Same.
10221         (parser::parse_capture): Same.
10222         (parser::parse_c_expr): Same.
10223         (parser::parse_simplify): Same.
10224         (main): Same.
10225         * genoutput.c (output_operand_data): Same.
10226         (output_get_insn_name): Same.
10227         (compare_operands): Same.
10228         (place_operands): Same.
10229         (process_template): Same.
10230         (validate_insn_alternatives): Same.
10231         (validate_insn_operands): Same.
10232         (gen_expand): Same.
10233         (note_constraint): Same.
10234         * genpreds.c (write_one_predicate_function): Same.
10235         (add_constraint): Same.
10236         (process_define_register_constraint): Same.
10237         (write_lookup_constraint_1): Same.
10238         (write_lookup_constraint_array): Same.
10239         (write_insn_constraint_len): Same.
10240         (write_reg_class_for_constraint_1): Same.
10241         (write_constraint_satisfied_p_array): Same.
10242         * genrecog.c (optimize_subroutine_group): Same.
10243         * gensupport.c (process_define_predicate): Same.
10244         (queue_pattern): Same.
10245         (remove_from_queue): Same.
10246         (process_rtx): Same.
10247         (is_predicable): Same.
10248         (change_subst_attribute): Same.
10249         (subst_pattern_match): Same.
10250         (alter_constraints): Same.
10251         (alter_attrs_for_insn): Same.
10252         (shift_output_template): Same.
10253         (alter_output_for_subst_insn): Same.
10254         (process_one_cond_exec): Same.
10255         (subst_dup): Same.
10256         (process_define_cond_exec): Same.
10257         (mnemonic_htab_callback): Same.
10258         (gen_mnemonic_attr): Same.
10259         (read_md_rtx): Same.
10260         * ggc-page.c: Same.
10261         * gimple-loop-interchange.cc (dump_reduction): Same.
10262         (dump_induction): Same.
10263         (loop_cand::~loop_cand): Same.
10264         (free_data_refs_with_aux): Same.
10265         (tree_loop_interchange::interchange_loops): Same.
10266         (tree_loop_interchange::map_inductions_to_loop): Same.
10267         (tree_loop_interchange::move_code_to_inner_loop): Same.
10268         (compute_access_stride): Same.
10269         (compute_access_strides): Same.
10270         (proper_loop_form_for_interchange): Same.
10271         (tree_loop_interchange_compute_ddrs): Same.
10272         (prune_datarefs_not_in_loop): Same.
10273         (prepare_data_references): Same.
10274         (pass_linterchange::execute): Same.
10275         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
10276         (unroll_jam_possible_p): Same.
10277         (fuse_loops): Same.
10278         (adjust_unroll_factor): Same.
10279         (tree_loop_unroll_and_jam): Same.
10280         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
10281         (loop_versioning::expensive_stmt_p): Same.
10282         (loop_versioning::version_for_unity): Same.
10283         (loop_versioning::dump_inner_likelihood): Same.
10284         (loop_versioning::find_per_loop_multiplication): Same.
10285         (loop_versioning::analyze_term_using_scevs): Same.
10286         (loop_versioning::record_address_fragment): Same.
10287         (loop_versioning::analyze_expr): Same.
10288         (loop_versioning::analyze_blocks): Same.
10289         (loop_versioning::prune_conditions): Same.
10290         (loop_versioning::merge_loop_info): Same.
10291         (loop_versioning::add_loop_to_queue): Same.
10292         (loop_versioning::decide_whether_loop_is_versionable): Same.
10293         (loop_versioning::make_versioning_decisions): Same.
10294         (loop_versioning::implement_versioning_decisions): Same.
10295         * gimple-ssa-evrp-analyze.c
10296         (evrp_range_analyzer::record_ranges_from_phis): Same.
10297         * gimple-ssa-store-merging.c (split_store::split_store): Same.
10298         (count_multiple_uses): Same.
10299         (split_group): Same.
10300         (imm_store_chain_info::output_merged_store): Same.
10301         (pass_store_merging::process_store): Same.
10302         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
10303         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
10304         (is_max): Same.
10305         (alloca_call_type): Same.
10306         (pass_walloca::execute): Same.
10307         * gimple-streamer-in.c (input_phi): Same.
10308         (input_gimple_stmt): Same.
10309         * gimple-streamer.h: Same.
10310         * godump.c (go_force_record_alignment): Same.
10311         (go_format_type): Same.
10312         (go_output_type): Same.
10313         (go_output_fndecl): Same.
10314         (go_output_typedef): Same.
10315         (keyword_hash_init): Same.
10316         (find_dummy_types): Same.
10317         * graph.c (draw_cfg_nodes_no_loops): Same.
10318         (draw_cfg_nodes_for_loop): Same.
10319         * hard-reg-set.h (hard_reg_set_iter_next): Same.
10320         * hsa-brig.c: Same.
10321         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
10322         * hsa-dump.c (dump_hsa_cfun): Same.
10323         * hsa-gen.c (gen_function_def_parameters): Same.
10324         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
10325         * input.c (dump_line_table_statistics): Same.
10326         (test_lexer): Same.
10327         * input.h: Same.
10328         * internal-fn.c (get_multi_vector_move): Same.
10329         (expand_load_lanes_optab_fn): Same.
10330         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
10331         (expand_GOMP_SIMT_EXIT): Same.
10332         (expand_GOMP_SIMT_LAST_LANE): Same.
10333         (expand_GOMP_SIMT_ORDERED_PRED): Same.
10334         (expand_GOMP_SIMT_VOTE_ANY): Same.
10335         (expand_GOMP_SIMT_XCHG_BFLY): Same.
10336         (expand_GOMP_SIMT_XCHG_IDX): Same.
10337         (expand_addsub_overflow): Same.
10338         (expand_neg_overflow): Same.
10339         (expand_mul_overflow): Same.
10340         (expand_call_mem_ref): Same.
10341         (expand_mask_load_optab_fn): Same.
10342         (expand_scatter_store_optab_fn): Same.
10343         (expand_gather_load_optab_fn): Same.
10344         * ipa-cp.c (ipa_get_parm_lattices): Same.
10345         (print_all_lattices): Same.
10346         (ignore_edge_p): Same.
10347         (build_toporder_info): Same.
10348         (free_toporder_info): Same.
10349         (push_node_to_stack): Same.
10350         (ipcp_lattice<valtype>::set_contains_variable): Same.
10351         (set_agg_lats_to_bottom): Same.
10352         (ipcp_bits_lattice::meet_with): Same.
10353         (set_single_call_flag): Same.
10354         (initialize_node_lattices): Same.
10355         (ipa_get_jf_ancestor_result): Same.
10356         (ipcp_verify_propagated_values): Same.
10357         (propagate_scalar_across_jump_function): Same.
10358         (propagate_context_across_jump_function): Same.
10359         (propagate_bits_across_jump_function): Same.
10360         (ipa_vr_operation_and_type_effects): Same.
10361         (propagate_vr_across_jump_function): Same.
10362         (set_check_aggs_by_ref): Same.
10363         (set_chain_of_aglats_contains_variable): Same.
10364         (merge_aggregate_lattices): Same.
10365         (agg_pass_through_permissible_p): Same.
10366         (propagate_aggs_across_jump_function): Same.
10367         (call_passes_through_thunk_p): Same.
10368         (propagate_constants_across_call): Same.
10369         (devirtualization_time_bonus): Same.
10370         (good_cloning_opportunity_p): Same.
10371         (context_independent_aggregate_values): Same.
10372         (gather_context_independent_values): Same.
10373         (perform_estimation_of_a_value): Same.
10374         (estimate_local_effects): Same.
10375         (value_topo_info<valtype>::add_val): Same.
10376         (add_all_node_vals_to_toposort): Same.
10377         (value_topo_info<valtype>::propagate_effects): Same.
10378         (ipcp_propagate_stage): Same.
10379         (ipcp_discover_new_direct_edges): Same.
10380         (same_node_or_its_all_contexts_clone_p): Same.
10381         (cgraph_edge_brings_value_p): Same.
10382         (gather_edges_for_value): Same.
10383         (create_specialized_node): Same.
10384         (find_more_scalar_values_for_callers_subset): Same.
10385         (find_more_contexts_for_caller_subset): Same.
10386         (copy_plats_to_inter): Same.
10387         (intersect_aggregates_with_edge): Same.
10388         (find_aggregate_values_for_callers_subset): Same.
10389         (cgraph_edge_brings_all_agg_vals_for_node): Same.
10390         (decide_about_value): Same.
10391         (decide_whether_version_node): Same.
10392         (spread_undeadness): Same.
10393         (identify_dead_nodes): Same.
10394         (ipcp_store_vr_results): Same.
10395         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
10396         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
10397         (redirect_to_unreachable): Same.
10398         (edge_set_predicate): Same.
10399         (evaluate_conditions_for_known_args): Same.
10400         (evaluate_properties_for_edge): Same.
10401         (ipa_fn_summary_t::duplicate): Same.
10402         (ipa_call_summary_t::duplicate): Same.
10403         (dump_ipa_call_summary): Same.
10404         (ipa_dump_fn_summary): Same.
10405         (eliminated_by_inlining_prob): Same.
10406         (set_cond_stmt_execution_predicate): Same.
10407         (set_switch_stmt_execution_predicate): Same.
10408         (compute_bb_predicates): Same.
10409         (will_be_nonconstant_expr_predicate): Same.
10410         (phi_result_unknown_predicate): Same.
10411         (analyze_function_body): Same.
10412         (compute_fn_summary): Same.
10413         (estimate_edge_devirt_benefit): Same.
10414         (estimate_edge_size_and_time): Same.
10415         (estimate_calls_size_and_time): Same.
10416         (estimate_node_size_and_time): Same.
10417         (remap_edge_change_prob): Same.
10418         (remap_edge_summaries): Same.
10419         (ipa_merge_fn_summary_after_inlining): Same.
10420         (ipa_fn_summary_generate): Same.
10421         (inline_read_section): Same.
10422         (ipa_fn_summary_read): Same.
10423         (ipa_fn_summary_write): Same.
10424         * ipa-fnsummary.h: Same.
10425         * ipa-hsa.c (ipa_hsa_read_section): Same.
10426         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
10427         * ipa-icf.c (sem_function::param_used_p): Same.
10428         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
10429         * ipa-inline.c (edge_badness): Same.
10430         (inline_small_functions): Same.
10431         * ipa-polymorphic-call.c
10432         (ipa_polymorphic_call_context::stream_out): Same.
10433         * ipa-predicate.c (predicate::remap_after_duplication): Same.
10434         (predicate::remap_after_inlining): Same.
10435         (predicate::stream_out): Same.
10436         * ipa-predicate.h: Same.
10437         * ipa-profile.c (ipa_profile_read_summary): Same.
10438         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
10439         (count_formal_params): Same.
10440         (ipa_dump_param): Same.
10441         (ipa_alloc_node_params): Same.
10442         (ipa_print_node_jump_functions_for_edge): Same.
10443         (ipa_print_node_jump_functions): Same.
10444         (ipa_load_from_parm_agg): Same.
10445         (get_ancestor_addr_info): Same.
10446         (ipa_compute_jump_functions_for_edge): Same.
10447         (ipa_analyze_virtual_call_uses): Same.
10448         (ipa_analyze_stmt_uses): Same.
10449         (ipa_analyze_params_uses_in_bb): Same.
10450         (update_jump_functions_after_inlining): Same.
10451         (try_decrement_rdesc_refcount): Same.
10452         (ipa_impossible_devirt_target): Same.
10453         (update_indirect_edges_after_inlining): Same.
10454         (combine_controlled_uses_counters): Same.
10455         (ipa_edge_args_sum_t::duplicate): Same.
10456         (ipa_write_jump_function): Same.
10457         (ipa_write_indirect_edge_info): Same.
10458         (ipa_write_node_info): Same.
10459         (ipa_read_edge_info): Same.
10460         (ipa_prop_read_section): Same.
10461         (read_replacements_section): Same.
10462         * ipa-prop.h (ipa_get_param_count): Same.
10463         (ipa_get_param): Same.
10464         (ipa_get_type): Same.
10465         (ipa_get_param_move_cost): Same.
10466         (ipa_set_param_used): Same.
10467         (ipa_get_controlled_uses): Same.
10468         (ipa_set_controlled_uses): Same.
10469         (ipa_get_cs_argument_count): Same.
10470         * ipa-pure-const.c (analyze_function): Same.
10471         (pure_const_read_summary): Same.
10472         * ipa-ref.h: Same.
10473         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
10474         * ipa-split.c (test_nonssa_use): Same.
10475         (dump_split_point): Same.
10476         (dominated_by_forbidden): Same.
10477         (split_part_set_ssa_name_p): Same.
10478         (find_split_points): Same.
10479         * ira-build.c (finish_loop_tree_nodes): Same.
10480         (low_pressure_loop_node_p): Same.
10481         * ira-color.c (ira_reuse_stack_slot): Same.
10482         * ira-int.h: Same.
10483         * ira.c (setup_reg_equiv): Same.
10484         (print_insn_chain): Same.
10485         (ira): Same.
10486         * loop-doloop.c (doloop_condition_get): Same.
10487         (add_test): Same.
10488         (record_reg_sets): Same.
10489         (doloop_optimize): Same.
10490         * loop-init.c (loop_optimizer_init): Same.
10491         (fix_loop_structure): Same.
10492         * loop-invariant.c (merge_identical_invariants): Same.
10493         (compute_always_reached): Same.
10494         (find_exits): Same.
10495         (may_assign_reg_p): Same.
10496         (find_invariants_bb): Same.
10497         (find_invariants_body): Same.
10498         (replace_uses): Same.
10499         (can_move_invariant_reg): Same.
10500         (free_inv_motion_data): Same.
10501         (move_single_loop_invariants): Same.
10502         (change_pressure): Same.
10503         (mark_ref_regs): Same.
10504         (calculate_loop_reg_pressure): Same.
10505         * loop-iv.c (biv_entry_hasher::equal): Same.
10506         (iv_extend_to_rtx_code): Same.
10507         (check_iv_ref_table_size): Same.
10508         (clear_iv_info): Same.
10509         (latch_dominating_def): Same.
10510         (iv_get_reaching_def): Same.
10511         (iv_constant): Same.
10512         (iv_subreg): Same.
10513         (iv_extend): Same.
10514         (iv_neg): Same.
10515         (iv_add): Same.
10516         (iv_mult): Same.
10517         (get_biv_step): Same.
10518         (record_iv): Same.
10519         (analyzed_for_bivness_p): Same.
10520         (record_biv): Same.
10521         (iv_analyze_biv): Same.
10522         (iv_analyze_expr): Same.
10523         (iv_analyze_def): Same.
10524         (iv_analyze_op): Same.
10525         (iv_analyze): Same.
10526         (iv_analyze_result): Same.
10527         (biv_p): Same.
10528         (eliminate_implied_conditions): Same.
10529         (simplify_using_initial_values): Same.
10530         (shorten_into_mode): Same.
10531         (canonicalize_iv_subregs): Same.
10532         (determine_max_iter): Same.
10533         (check_simple_exit): Same.
10534         (find_simple_exit): Same.
10535         (get_simple_loop_desc): Same.
10536         * loop-unroll.c (report_unroll): Same.
10537         (decide_unrolling): Same.
10538         (unroll_loops): Same.
10539         (loop_exit_at_end_p): Same.
10540         (decide_unroll_constant_iterations): Same.
10541         (unroll_loop_constant_iterations): Same.
10542         (compare_and_jump_seq): Same.
10543         (unroll_loop_runtime_iterations): Same.
10544         (decide_unroll_stupid): Same.
10545         (unroll_loop_stupid): Same.
10546         (referenced_in_one_insn_in_loop_p): Same.
10547         (reset_debug_uses_in_loop): Same.
10548         (analyze_iv_to_split_insn): Same.
10549         * lra-eliminations.c (lra_debug_elim_table): Same.
10550         (setup_can_eliminate): Same.
10551         (form_sum): Same.
10552         (lra_get_elimination_hard_regno): Same.
10553         (lra_eliminate_regs_1): Same.
10554         (eliminate_regs_in_insn): Same.
10555         (update_reg_eliminate): Same.
10556         (init_elimination): Same.
10557         (lra_eliminate): Same.
10558         * lra-int.h: Same.
10559         * lra-lives.c (initiate_live_solver): Same.
10560         * lra-remat.c (create_remat_bb_data): Same.
10561         * lra-spills.c (lra_spill): Same.
10562         * lra.c (lra_set_insn_recog_data): Same.
10563         (lra_set_used_insn_alternative_by_uid): Same.
10564         (init_reg_info): Same.
10565         (expand_reg_info): Same.
10566         * lto-cgraph.c (output_symtab): Same.
10567         (read_identifier): Same.
10568         (get_alias_symbol): Same.
10569         (input_node): Same.
10570         (input_varpool_node): Same.
10571         (input_ref): Same.
10572         (input_edge): Same.
10573         (input_cgraph_1): Same.
10574         (input_refs): Same.
10575         (input_symtab): Same.
10576         (input_offload_tables): Same.
10577         (output_cgraph_opt_summary): Same.
10578         (input_edge_opt_summary): Same.
10579         (input_cgraph_opt_section): Same.
10580         * lto-section-in.c (lto_free_raw_section_data): Same.
10581         (lto_create_simple_input_block): Same.
10582         (lto_free_function_in_decl_state_for_node): Same.
10583         * lto-streamer-in.c (lto_tag_check_set): Same.
10584         (lto_location_cache::revert_location_cache): Same.
10585         (lto_location_cache::input_location): Same.
10586         (lto_input_location): Same.
10587         (stream_input_location_now): Same.
10588         (lto_input_tree_ref): Same.
10589         (lto_input_eh_catch_list): Same.
10590         (input_eh_region): Same.
10591         (lto_init_eh): Same.
10592         (make_new_block): Same.
10593         (input_cfg): Same.
10594         (fixup_call_stmt_edges): Same.
10595         (input_struct_function_base): Same.
10596         (input_function): Same.
10597         (lto_read_body_or_constructor): Same.
10598         (lto_read_tree_1): Same.
10599         (lto_read_tree): Same.
10600         (lto_input_scc): Same.
10601         (lto_input_tree_1): Same.
10602         (lto_input_toplevel_asms): Same.
10603         (lto_input_mode_table): Same.
10604         (lto_reader_init): Same.
10605         (lto_data_in_create): Same.
10606         * lto-streamer-out.c (output_cfg): Same.
10607         * lto-streamer.h: Same.
10608         * modulo-sched.c (duplicate_insns_of_cycles): Same.
10609         (generate_prolog_epilog): Same.
10610         (mark_loop_unsched): Same.
10611         (dump_insn_location): Same.
10612         (loop_canon_p): Same.
10613         (sms_schedule): Same.
10614         * omp-expand.c (expand_omp_for_ordered_loops): Same.
10615         (expand_omp_for_generic): Same.
10616         (expand_omp_for_static_nochunk): Same.
10617         (expand_omp_for_static_chunk): Same.
10618         (expand_omp_simd): Same.
10619         (expand_omp_taskloop_for_inner): Same.
10620         (expand_oacc_for): Same.
10621         (expand_omp_atomic_pipeline): Same.
10622         (mark_loops_in_oacc_kernels_region): Same.
10623         * omp-offload.c (oacc_xform_loop): Same.
10624         * omp-simd-clone.c (simd_clone_adjust): Same.
10625         * optabs-query.c (get_traditional_extraction_insn): Same.
10626         * optabs.c (expand_vector_broadcast): Same.
10627         (expand_binop_directly): Same.
10628         (expand_twoval_unop): Same.
10629         (expand_twoval_binop): Same.
10630         (expand_unop_direct): Same.
10631         (emit_indirect_jump): Same.
10632         (emit_conditional_move): Same.
10633         (emit_conditional_neg_or_complement): Same.
10634         (emit_conditional_add): Same.
10635         (vector_compare_rtx): Same.
10636         (expand_vec_perm_1): Same.
10637         (expand_vec_perm_const): Same.
10638         (expand_vec_cond_expr): Same.
10639         (expand_vec_series_expr): Same.
10640         (maybe_emit_atomic_exchange): Same.
10641         (maybe_emit_sync_lock_test_and_set): Same.
10642         (expand_atomic_compare_and_swap): Same.
10643         (expand_atomic_load): Same.
10644         (expand_atomic_store): Same.
10645         (maybe_emit_op): Same.
10646         (valid_multiword_target_p): Same.
10647         (create_integer_operand): Same.
10648         (maybe_legitimize_operand_same_code): Same.
10649         (maybe_legitimize_operand): Same.
10650         (create_convert_operand_from_type): Same.
10651         (can_reuse_operands_p): Same.
10652         (maybe_legitimize_operands): Same.
10653         (maybe_gen_insn): Same.
10654         (maybe_expand_insn): Same.
10655         (maybe_expand_jump_insn): Same.
10656         (expand_insn): Same.
10657         * optabs.h (create_expand_operand): Same.
10658         (create_fixed_operand): Same.
10659         (create_output_operand): Same.
10660         (create_input_operand): Same.
10661         (create_convert_operand_to): Same.
10662         (create_convert_operand_from): Same.
10663         * optinfo.h: Same.
10664         * poly-int.h: Same.
10665         * predict.c (optimize_insn_for_speed_p): Same.
10666         (optimize_loop_for_size_p): Same.
10667         (optimize_loop_for_speed_p): Same.
10668         (optimize_loop_nest_for_speed_p): Same.
10669         (get_base_value): Same.
10670         (predicted_by_loop_heuristics_p): Same.
10671         (predict_extra_loop_exits): Same.
10672         (predict_loops): Same.
10673         (predict_paths_for_bb): Same.
10674         (predict_paths_leading_to): Same.
10675         (propagate_freq): Same.
10676         (pass_profile::execute): Same.
10677         * predict.h: Same.
10678         * profile-count.c (profile_count::differs_from_p): Same.
10679         (profile_probability::differs_lot_from_p): Same.
10680         * profile-count.h: Same.
10681         * profile.c (branch_prob): Same.
10682         * regrename.c (free_chain_data): Same.
10683         (mark_conflict): Same.
10684         (create_new_chain): Same.
10685         (merge_overlapping_regs): Same.
10686         (init_rename_info): Same.
10687         (merge_chains): Same.
10688         (regrename_analyze): Same.
10689         (regrename_do_replace): Same.
10690         (scan_rtx_reg): Same.
10691         (record_out_operands): Same.
10692         (build_def_use): Same.
10693         * regrename.h: Same.
10694         * reload.h: Same.
10695         * reload1.c (init_reload): Same.
10696         (maybe_fix_stack_asms): Same.
10697         (copy_reloads): Same.
10698         (count_pseudo): Same.
10699         (count_spilled_pseudo): Same.
10700         (find_reg): Same.
10701         (find_reload_regs): Same.
10702         (select_reload_regs): Same.
10703         (spill_hard_reg): Same.
10704         (fixup_eh_region_note): Same.
10705         (set_reload_reg): Same.
10706         (allocate_reload_reg): Same.
10707         (compute_reload_subreg_offset): Same.
10708         (reload_adjust_reg_for_icode): Same.
10709         (emit_input_reload_insns): Same.
10710         (emit_output_reload_insns): Same.
10711         (do_input_reload): Same.
10712         (inherit_piecemeal_p): Same.
10713         * rtl.h: Same.
10714         * sanopt.c (maybe_get_dominating_check): Same.
10715         (maybe_optimize_ubsan_ptr_ifn): Same.
10716         (can_remove_asan_check): Same.
10717         (maybe_optimize_asan_check_ifn): Same.
10718         (sanopt_optimize_walker): Same.
10719         * sched-deps.c (add_dependence_list): Same.
10720         (chain_to_prev_insn): Same.
10721         (add_insn_mem_dependence): Same.
10722         (create_insn_reg_set): Same.
10723         (maybe_extend_reg_info_p): Same.
10724         (sched_analyze_reg): Same.
10725         (sched_analyze_1): Same.
10726         (get_implicit_reg_pending_clobbers): Same.
10727         (chain_to_prev_insn_p): Same.
10728         (deps_analyze_insn): Same.
10729         (deps_start_bb): Same.
10730         (sched_free_deps): Same.
10731         (init_deps): Same.
10732         (init_deps_reg_last): Same.
10733         (free_deps): Same.
10734         * sched-ebb.c: Same.
10735         * sched-int.h: Same.
10736         * sched-rgn.c (add_branch_dependences): Same.
10737         (concat_insn_mem_list): Same.
10738         (deps_join): Same.
10739         (sched_rgn_compute_dependencies): Same.
10740         * sel-sched-ir.c (reset_target_context): Same.
10741         (copy_deps_context): Same.
10742         (init_id_from_df): Same.
10743         (has_dependence_p): Same.
10744         (change_loops_latches): Same.
10745         (bb_top_order_comparator): Same.
10746         (make_region_from_loop_preheader): Same.
10747         (sel_init_pipelining): Same.
10748         (get_loop_nest_for_rgn): Same.
10749         (make_regions_from_the_rest): Same.
10750         (sel_is_loop_preheader_p): Same.
10751         * sel-sched-ir.h (inner_loop_header_p): Same.
10752         (get_all_loop_exits): Same.
10753         * selftest.h: Same.
10754         * sese.c (sese_build_liveouts): Same.
10755         (sese_insert_phis_for_liveouts): Same.
10756         * sese.h (defined_in_sese_p): Same.
10757         * sreal.c (sreal::stream_out): Same.
10758         * sreal.h: Same.
10759         * streamer-hooks.h: Same.
10760         * target-globals.c (save_target_globals): Same.
10761         * target-globals.h: Same.
10762         * target.def: Same.
10763         * target.h: Same.
10764         * targhooks.c (default_has_ifunc_p): Same.
10765         (default_empty_mask_is_expensive): Same.
10766         (default_init_cost): Same.
10767         * targhooks.h: Same.
10768         * toplev.c: Same.
10769         * tree-affine.c (aff_combination_mult): Same.
10770         (aff_combination_expand): Same.
10771         (aff_combination_constant_multiple_p): Same.
10772         * tree-affine.h: Same.
10773         * tree-cfg.c (build_gimple_cfg): Same.
10774         (replace_loop_annotate_in_block): Same.
10775         (replace_uses_by): Same.
10776         (remove_bb): Same.
10777         (dump_cfg_stats): Same.
10778         (gimple_duplicate_sese_region): Same.
10779         (gimple_duplicate_sese_tail): Same.
10780         (move_block_to_fn): Same.
10781         (replace_block_vars_by_duplicates): Same.
10782         (move_sese_region_to_fn): Same.
10783         (print_loops_bb): Same.
10784         (print_loop): Same.
10785         (print_loops): Same.
10786         (debug): Same.
10787         (debug_loops): Same.
10788         * tree-cfg.h: Same.
10789         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
10790         (chrec_fold_multiply_poly_poly): Same.
10791         (chrec_evaluate): Same.
10792         (chrec_component_in_loop_num): Same.
10793         (reset_evolution_in_loop): Same.
10794         (is_multivariate_chrec): Same.
10795         (chrec_contains_symbols): Same.
10796         (nb_vars_in_chrec): Same.
10797         (chrec_convert_1): Same.
10798         (chrec_convert_aggressive): Same.
10799         * tree-chrec.h: Same.
10800         * tree-core.h: Same.
10801         * tree-data-ref.c (dump_data_dependence_relation): Same.
10802         (canonicalize_base_object_address): Same.
10803         (data_ref_compare_tree): Same.
10804         (prune_runtime_alias_test_list): Same.
10805         (get_segment_min_max): Same.
10806         (create_intersect_range_checks): Same.
10807         (conflict_fn_no_dependence): Same.
10808         (object_address_invariant_in_loop_p): Same.
10809         (analyze_ziv_subscript): Same.
10810         (analyze_siv_subscript_cst_affine): Same.
10811         (analyze_miv_subscript): Same.
10812         (analyze_overlapping_iterations): Same.
10813         (build_classic_dist_vector_1): Same.
10814         (add_other_self_distances): Same.
10815         (same_access_functions): Same.
10816         (build_classic_dir_vector): Same.
10817         (subscript_dependence_tester_1): Same.
10818         (subscript_dependence_tester): Same.
10819         (access_functions_are_affine_or_constant_p): Same.
10820         (get_references_in_stmt): Same.
10821         (loop_nest_has_data_refs): Same.
10822         (graphite_find_data_references_in_stmt): Same.
10823         (find_data_references_in_bb): Same.
10824         (get_base_for_alignment): Same.
10825         (find_loop_nest_1): Same.
10826         (find_loop_nest): Same.
10827         * tree-data-ref.h (dr_alignment): Same.
10828         (ddr_dependence_level): Same.
10829         * tree-if-conv.c (fold_build_cond_expr): Same.
10830         (add_to_predicate_list): Same.
10831         (add_to_dst_predicate_list): Same.
10832         (phi_convertible_by_degenerating_args): Same.
10833         (idx_within_array_bound): Same.
10834         (all_preds_critical_p): Same.
10835         (pred_blocks_visited_p): Same.
10836         (predicate_bbs): Same.
10837         (build_region): Same.
10838         (if_convertible_loop_p_1): Same.
10839         (is_cond_scalar_reduction): Same.
10840         (predicate_scalar_phi): Same.
10841         (remove_conditions_and_labels): Same.
10842         (combine_blocks): Same.
10843         (version_loop_for_if_conversion): Same.
10844         (versionable_outer_loop_p): Same.
10845         (ifcvt_local_dce): Same.
10846         (tree_if_conversion): Same.
10847         (pass_if_conversion::gate): Same.
10848         * tree-if-conv.h: Same.
10849         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
10850         * tree-loop-distribution.c (bb_top_order_cmp): Same.
10851         (free_rdg): Same.
10852         (stmt_has_scalar_dependences_outside_loop): Same.
10853         (copy_loop_before): Same.
10854         (create_bb_after_loop): Same.
10855         (const_with_all_bytes_same): Same.
10856         (generate_memset_builtin): Same.
10857         (generate_memcpy_builtin): Same.
10858         (destroy_loop): Same.
10859         (build_rdg_partition_for_vertex): Same.
10860         (compute_access_range): Same.
10861         (data_ref_segment_size): Same.
10862         (latch_dominated_by_data_ref): Same.
10863         (compute_alias_check_pairs): Same.
10864         (fuse_memset_builtins): Same.
10865         (finalize_partitions): Same.
10866         (find_seed_stmts_for_distribution): Same.
10867         (prepare_perfect_loop_nest): Same.
10868         * tree-parloops.c (lambda_transform_legal_p): Same.
10869         (loop_parallel_p): Same.
10870         (reduc_stmt_res): Same.
10871         (add_field_for_name): Same.
10872         (create_call_for_reduction_1): Same.
10873         (replace_uses_in_bb_by): Same.
10874         (transform_to_exit_first_loop_alt): Same.
10875         (try_transform_to_exit_first_loop_alt): Same.
10876         (transform_to_exit_first_loop): Same.
10877         (num_phis): Same.
10878         (gen_parallel_loop): Same.
10879         (gather_scalar_reductions): Same.
10880         (get_omp_data_i_param): Same.
10881         (try_create_reduction_list): Same.
10882         (oacc_entry_exit_single_gang): Same.
10883         (parallelize_loops): Same.
10884         * tree-pass.h: Same.
10885         * tree-predcom.c (determine_offset): Same.
10886         (last_always_executed_block): Same.
10887         (split_data_refs_to_components): Same.
10888         (suitable_component_p): Same.
10889         (valid_initializer_p): Same.
10890         (find_looparound_phi): Same.
10891         (insert_looparound_copy): Same.
10892         (add_looparound_copies): Same.
10893         (determine_roots_comp): Same.
10894         (predcom_tmp_var): Same.
10895         (initialize_root_vars): Same.
10896         (initialize_root_vars_store_elim_1): Same.
10897         (initialize_root_vars_store_elim_2): Same.
10898         (finalize_eliminated_stores): Same.
10899         (initialize_root_vars_lm): Same.
10900         (remove_stmt): Same.
10901         (determine_unroll_factor): Same.
10902         (execute_pred_commoning_cbck): Same.
10903         (base_names_in_chain_on): Same.
10904         (combine_chains): Same.
10905         (pcom_stmt_dominates_stmt_p): Same.
10906         (try_combine_chains): Same.
10907         (prepare_initializers_chain_store_elim): Same.
10908         (prepare_initializers_chain): Same.
10909         (prepare_initializers): Same.
10910         (prepare_finalizers_chain): Same.
10911         (prepare_finalizers): Same.
10912         (insert_init_seqs): Same.
10913         * tree-scalar-evolution.c (loop_phi_node_p): Same.
10914         (compute_overall_effect_of_inner_loop): Same.
10915         (add_to_evolution_1): Same.
10916         (add_to_evolution): Same.
10917         (follow_ssa_edge_binary): Same.
10918         (follow_ssa_edge_expr): Same.
10919         (backedge_phi_arg_p): Same.
10920         (follow_ssa_edge_in_condition_phi_branch): Same.
10921         (follow_ssa_edge_in_condition_phi): Same.
10922         (follow_ssa_edge_inner_loop_phi): Same.
10923         (follow_ssa_edge): Same.
10924         (analyze_evolution_in_loop): Same.
10925         (analyze_initial_condition): Same.
10926         (interpret_loop_phi): Same.
10927         (interpret_condition_phi): Same.
10928         (interpret_rhs_expr): Same.
10929         (interpret_expr): Same.
10930         (interpret_gimple_assign): Same.
10931         (analyze_scalar_evolution_1): Same.
10932         (analyze_scalar_evolution): Same.
10933         (analyze_scalar_evolution_for_address_of): Same.
10934         (get_instantiated_value_entry): Same.
10935         (loop_closed_phi_def): Same.
10936         (instantiate_scev_name): Same.
10937         (instantiate_scev_poly): Same.
10938         (instantiate_scev_binary): Same.
10939         (instantiate_scev_convert): Same.
10940         (instantiate_scev_not): Same.
10941         (instantiate_scev_r): Same.
10942         (instantiate_scev): Same.
10943         (resolve_mixers): Same.
10944         (initialize_scalar_evolutions_analyzer): Same.
10945         (scev_reset_htab): Same.
10946         (scev_reset): Same.
10947         (derive_simple_iv_with_niters): Same.
10948         (simple_iv_with_niters): Same.
10949         (expression_expensive_p): Same.
10950         (final_value_replacement_loop): Same.
10951         * tree-scalar-evolution.h (block_before_loop): Same.
10952         * tree-ssa-address.h: Same.
10953         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
10954         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
10955         (record_edge_info): Same.
10956         * tree-ssa-live.c (var_map_base_fini): Same.
10957         (remove_unused_locals): Same.
10958         * tree-ssa-live.h: Same.
10959         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
10960         (pass_ch_vect::execute): Same.
10961         (pass_ch::process_loop_p): Same.
10962         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
10963         (movement_possibility): Same.
10964         (outermost_invariant_loop): Same.
10965         (stmt_cost): Same.
10966         (determine_max_movement): Same.
10967         (invariantness_dom_walker::before_dom_children): Same.
10968         (move_computations): Same.
10969         (may_move_till): Same.
10970         (force_move_till_op): Same.
10971         (force_move_till): Same.
10972         (memref_free): Same.
10973         (record_mem_ref_loc): Same.
10974         (set_ref_stored_in_loop): Same.
10975         (mark_ref_stored): Same.
10976         (sort_bbs_in_loop_postorder_cmp): Same.
10977         (sort_locs_in_loop_postorder_cmp): Same.
10978         (analyze_memory_references): Same.
10979         (mem_refs_may_alias_p): Same.
10980         (find_ref_loc_in_loop_cmp): Same.
10981         (rewrite_mem_ref_loc::operator): Same.
10982         (first_mem_ref_loc_1::operator): Same.
10983         (sm_set_flag_if_changed::operator): Same.
10984         (execute_sm_if_changed_flag_set): Same.
10985         (execute_sm): Same.
10986         (hoist_memory_references): Same.
10987         (ref_always_accessed::operator): Same.
10988         (refs_independent_p): Same.
10989         (record_dep_loop): Same.
10990         (ref_indep_loop_p_1): Same.
10991         (ref_indep_loop_p): Same.
10992         (can_sm_ref_p): Same.
10993         (find_refs_for_sm): Same.
10994         (loop_suitable_for_sm): Same.
10995         (store_motion_loop): Same.
10996         (store_motion): Same.
10997         (fill_always_executed_in): Same.
10998         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
10999         (estimated_unrolled_size): Same.
11000         (loop_edge_to_cancel): Same.
11001         (remove_exits_and_undefined_stmts): Same.
11002         (remove_redundant_iv_tests): Same.
11003         (unloop_loops): Same.
11004         (estimated_peeled_sequence_size): Same.
11005         (try_peel_loop): Same.
11006         (canonicalize_loop_induction_variables): Same.
11007         (canonicalize_induction_variables): Same.
11008         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
11009         (name_info): Same.
11010         (stmt_after_inc_pos): Same.
11011         (contains_abnormal_ssa_name_p): Same.
11012         (niter_for_exit): Same.
11013         (find_bivs): Same.
11014         (mark_bivs): Same.
11015         (find_givs_in_bb): Same.
11016         (find_induction_variables): Same.
11017         (find_interesting_uses_cond): Same.
11018         (outermost_invariant_loop_for_expr): Same.
11019         (idx_find_step): Same.
11020         (add_candidate_1): Same.
11021         (add_iv_candidate_derived_from_uses): Same.
11022         (alloc_use_cost_map): Same.
11023         (prepare_decl_rtl): Same.
11024         (generic_predict_doloop_p): Same.
11025         (computation_cost): Same.
11026         (determine_common_wider_type): Same.
11027         (get_computation_aff_1): Same.
11028         (get_use_type): Same.
11029         (determine_group_iv_cost_address): Same.
11030         (iv_period): Same.
11031         (difference_cannot_overflow_p): Same.
11032         (may_eliminate_iv): Same.
11033         (determine_set_costs): Same.
11034         (cheaper_cost_pair): Same.
11035         (compare_cost_pair): Same.
11036         (iv_ca_cand_for_group): Same.
11037         (iv_ca_recount_cost): Same.
11038         (iv_ca_set_remove_invs): Same.
11039         (iv_ca_set_no_cp): Same.
11040         (iv_ca_set_add_invs): Same.
11041         (iv_ca_set_cp): Same.
11042         (iv_ca_add_group): Same.
11043         (iv_ca_cost): Same.
11044         (iv_ca_compare_deps): Same.
11045         (iv_ca_delta_reverse): Same.
11046         (iv_ca_delta_commit): Same.
11047         (iv_ca_cand_used_p): Same.
11048         (iv_ca_delta_free): Same.
11049         (iv_ca_new): Same.
11050         (iv_ca_free): Same.
11051         (iv_ca_dump): Same.
11052         (iv_ca_extend): Same.
11053         (iv_ca_narrow): Same.
11054         (iv_ca_prune): Same.
11055         (cheaper_cost_with_cand): Same.
11056         (iv_ca_replace): Same.
11057         (try_add_cand_for): Same.
11058         (get_initial_solution): Same.
11059         (try_improve_iv_set): Same.
11060         (find_optimal_iv_set_1): Same.
11061         (create_new_iv): Same.
11062         (rewrite_use_compare): Same.
11063         (remove_unused_ivs): Same.
11064         (determine_scaling_factor): Same.
11065         * tree-ssa-loop-ivopts.h: Same.
11066         * tree-ssa-loop-manip.c (create_iv): Same.
11067         (compute_live_loop_exits): Same.
11068         (add_exit_phi): Same.
11069         (add_exit_phis): Same.
11070         (find_uses_to_rename_use): Same.
11071         (find_uses_to_rename_def): Same.
11072         (find_uses_to_rename_in_loop): Same.
11073         (rewrite_into_loop_closed_ssa): Same.
11074         (check_loop_closed_ssa_bb): Same.
11075         (split_loop_exit_edge): Same.
11076         (ip_end_pos): Same.
11077         (ip_normal_pos): Same.
11078         (copy_phi_node_args): Same.
11079         (gimple_duplicate_loop_to_header_edge): Same.
11080         (can_unroll_loop_p): Same.
11081         (determine_exit_conditions): Same.
11082         (scale_dominated_blocks_in_loop): Same.
11083         (niter_for_unrolled_loop): Same.
11084         (tree_transform_and_unroll_loop): Same.
11085         (rewrite_all_phi_nodes_with_iv): Same.
11086         * tree-ssa-loop-manip.h: Same.
11087         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
11088         (number_of_iterations_ne): Same.
11089         (assert_no_overflow_lt): Same.
11090         (assert_loop_rolls_lt): Same.
11091         (number_of_iterations_lt): Same.
11092         (adjust_cond_for_loop_until_wrap): Same.
11093         (tree_simplify_using_condition): Same.
11094         (simplify_using_initial_conditions): Same.
11095         (simplify_using_outer_evolutions): Same.
11096         (loop_only_exit_p): Same.
11097         (ssa_defined_by_minus_one_stmt_p): Same.
11098         (number_of_iterations_popcount): Same.
11099         (number_of_iterations_exit): Same.
11100         (find_loop_niter): Same.
11101         (finite_loop_p): Same.
11102         (chain_of_csts_start): Same.
11103         (get_val_for): Same.
11104         (loop_niter_by_eval): Same.
11105         (derive_constant_upper_bound_ops): Same.
11106         (do_warn_aggressive_loop_optimizations): Same.
11107         (record_estimate): Same.
11108         (get_cst_init_from_scev): Same.
11109         (record_nonwrapping_iv): Same.
11110         (idx_infer_loop_bounds): Same.
11111         (infer_loop_bounds_from_ref): Same.
11112         (infer_loop_bounds_from_array): Same.
11113         (infer_loop_bounds_from_pointer_arith): Same.
11114         (infer_loop_bounds_from_signedness): Same.
11115         (bound_index): Same.
11116         (discover_iteration_bound_by_body_walk): Same.
11117         (maybe_lower_iteration_bound): Same.
11118         (estimate_numbers_of_iterations): Same.
11119         (estimated_loop_iterations): Same.
11120         (estimated_loop_iterations_int): Same.
11121         (max_loop_iterations): Same.
11122         (max_loop_iterations_int): Same.
11123         (likely_max_loop_iterations): Same.
11124         (likely_max_loop_iterations_int): Same.
11125         (estimated_stmt_executions_int): Same.
11126         (max_stmt_executions): Same.
11127         (likely_max_stmt_executions): Same.
11128         (estimated_stmt_executions): Same.
11129         (stmt_dominates_stmt_p): Same.
11130         (nowrap_type_p): Same.
11131         (loop_exits_before_overflow): Same.
11132         (scev_var_range_cant_overflow): Same.
11133         (scev_probably_wraps_p): Same.
11134         (free_numbers_of_iterations_estimates): Same.
11135         * tree-ssa-loop-niter.h: Same.
11136         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
11137         (idx_analyze_ref): Same.
11138         (analyze_ref): Same.
11139         (gather_memory_references_ref): Same.
11140         (mark_nontemporal_store): Same.
11141         (emit_mfence_after_loop): Same.
11142         (may_use_storent_in_loop_p): Same.
11143         (mark_nontemporal_stores): Same.
11144         (should_unroll_loop_p): Same.
11145         (volume_of_dist_vector): Same.
11146         (add_subscript_strides): Same.
11147         (self_reuse_distance): Same.
11148         (insn_to_prefetch_ratio_too_small_p): Same.
11149         * tree-ssa-loop-split.c (split_at_bb_p): Same.
11150         (patch_loop_exit): Same.
11151         (find_or_create_guard_phi): Same.
11152         (easy_exit_values): Same.
11153         (connect_loop_phis): Same.
11154         (connect_loops): Same.
11155         (compute_new_first_bound): Same.
11156         (split_loop): Same.
11157         (tree_ssa_split_loops): Same.
11158         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
11159         (is_maybe_undefined): Same.
11160         (tree_may_unswitch_on): Same.
11161         (simplify_using_entry_checks): Same.
11162         (tree_unswitch_single_loop): Same.
11163         (tree_unswitch_loop): Same.
11164         (tree_unswitch_outer_loop): Same.
11165         (empty_bb_without_guard_p): Same.
11166         (used_outside_loop_p): Same.
11167         (get_vop_from_header): Same.
11168         (hoist_guard): Same.
11169         * tree-ssa-loop.c (gate_oacc_kernels): Same.
11170         (get_lsm_tmp_name): Same.
11171         * tree-ssa-loop.h: Same.
11172         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
11173         (build_and_add_sum): Same.
11174         (no_side_effect_bb): Same.
11175         (get_ops): Same.
11176         (linearize_expr): Same.
11177         (should_break_up_subtract): Same.
11178         (linearize_expr_tree): Same.
11179         * tree-ssa-scopedtables.c: Same.
11180         * tree-ssa-scopedtables.h: Same.
11181         * tree-ssa-structalias.c (condense_visit): Same.
11182         (label_visit): Same.
11183         (dump_pred_graph): Same.
11184         (perform_var_substitution): Same.
11185         (move_complex_constraints): Same.
11186         (remove_preds_and_fake_succs): Same.
11187         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
11188         (determine_bb_domination_status): Same.
11189         (duplicate_thread_path): Same.
11190         (thread_through_all_blocks): Same.
11191         * tree-ssa-threadupdate.h: Same.
11192         * tree-streamer-in.c (streamer_read_string_cst): Same.
11193         (input_identifier): Same.
11194         (unpack_ts_type_common_value_fields): Same.
11195         (unpack_ts_block_value_fields): Same.
11196         (unpack_ts_translation_unit_decl_value_fields): Same.
11197         (unpack_ts_omp_clause_value_fields): Same.
11198         (streamer_read_tree_bitfields): Same.
11199         (streamer_alloc_tree): Same.
11200         (lto_input_ts_common_tree_pointers): Same.
11201         (lto_input_ts_vector_tree_pointers): Same.
11202         (lto_input_ts_poly_tree_pointers): Same.
11203         (lto_input_ts_complex_tree_pointers): Same.
11204         (lto_input_ts_decl_minimal_tree_pointers): Same.
11205         (lto_input_ts_decl_common_tree_pointers): Same.
11206         (lto_input_ts_decl_non_common_tree_pointers): Same.
11207         (lto_input_ts_decl_with_vis_tree_pointers): Same.
11208         (lto_input_ts_field_decl_tree_pointers): Same.
11209         (lto_input_ts_function_decl_tree_pointers): Same.
11210         (lto_input_ts_type_common_tree_pointers): Same.
11211         (lto_input_ts_type_non_common_tree_pointers): Same.
11212         (lto_input_ts_list_tree_pointers): Same.
11213         (lto_input_ts_vec_tree_pointers): Same.
11214         (lto_input_ts_exp_tree_pointers): Same.
11215         (lto_input_ts_block_tree_pointers): Same.
11216         (lto_input_ts_binfo_tree_pointers): Same.
11217         (lto_input_ts_constructor_tree_pointers): Same.
11218         (lto_input_ts_omp_clause_tree_pointers): Same.
11219         (streamer_read_tree_body): Same.
11220         * tree-streamer.h: Same.
11221         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
11222         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
11223         (vect_analyze_possibly_independent_ddr): Same.
11224         (vect_analyze_data_ref_dependence): Same.
11225         (vect_compute_data_ref_alignment): Same.
11226         (vect_enhance_data_refs_alignment): Same.
11227         (vect_analyze_data_ref_access): Same.
11228         (vect_check_gather_scatter): Same.
11229         (vect_find_stmt_data_reference): Same.
11230         (vect_create_addr_base_for_vector_ref): Same.
11231         (vect_setup_realignment): Same.
11232         (vect_supportable_dr_alignment): Same.
11233         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
11234         (adjust_phi_and_debug_stmts): Same.
11235         (vect_set_loop_mask): Same.
11236         (add_preheader_seq): Same.
11237         (vect_maybe_permute_loop_masks): Same.
11238         (vect_set_loop_masks_directly): Same.
11239         (vect_set_loop_condition_masked): Same.
11240         (vect_set_loop_condition_unmasked): Same.
11241         (slpeel_duplicate_current_defs_from_edges): Same.
11242         (slpeel_add_loop_guard): Same.
11243         (slpeel_can_duplicate_loop_p): Same.
11244         (create_lcssa_for_virtual_phi): Same.
11245         (iv_phi_p): Same.
11246         (vect_update_ivs_after_vectorizer): Same.
11247         (vect_gen_vector_loop_niters_mult_vf): Same.
11248         (slpeel_update_phi_nodes_for_loops): Same.
11249         (slpeel_update_phi_nodes_for_guard1): Same.
11250         (find_guard_arg): Same.
11251         (slpeel_update_phi_nodes_for_guard2): Same.
11252         (slpeel_update_phi_nodes_for_lcssa): Same.
11253         (vect_do_peeling): Same.
11254         (vect_create_cond_for_alias_checks): Same.
11255         (vect_loop_versioning): Same.
11256         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
11257         (vect_inner_phi_in_double_reduction_p): Same.
11258         (vect_analyze_scalar_cycles_1): Same.
11259         (vect_fixup_scalar_cycles_with_patterns): Same.
11260         (vect_get_loop_niters): Same.
11261         (bb_in_loop_p): Same.
11262         (vect_get_max_nscalars_per_iter): Same.
11263         (vect_verify_full_masking): Same.
11264         (vect_compute_single_scalar_iteration_cost): Same.
11265         (vect_analyze_loop_form_1): Same.
11266         (vect_analyze_loop_form): Same.
11267         (vect_active_double_reduction_p): Same.
11268         (vect_analyze_loop_operations): Same.
11269         (neutral_op_for_slp_reduction): Same.
11270         (vect_is_simple_reduction): Same.
11271         (vect_model_reduction_cost): Same.
11272         (get_initial_def_for_reduction): Same.
11273         (get_initial_defs_for_reduction): Same.
11274         (vect_create_epilog_for_reduction): Same.
11275         (vectorize_fold_left_reduction): Same.
11276         (vectorizable_reduction): Same.
11277         (vectorizable_induction): Same.
11278         (vectorizable_live_operation): Same.
11279         (loop_niters_no_overflow): Same.
11280         (vect_get_loop_mask): Same.
11281         (vect_transform_loop_stmt): Same.
11282         (vect_transform_loop): Same.
11283         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
11284         (vect_determine_precisions): Same.
11285         (vect_pattern_recog_1): Same.
11286         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
11287         * tree-vect-stmts.c (stmt_vectype): Same.
11288         (process_use): Same.
11289         (vect_init_vector_1): Same.
11290         (vect_truncate_gather_scatter_offset): Same.
11291         (get_group_load_store_type): Same.
11292         (vect_build_gather_load_calls): Same.
11293         (vect_get_strided_load_store_ops): Same.
11294         (vectorizable_simd_clone_call): Same.
11295         (vectorizable_store): Same.
11296         (permute_vec_elements): Same.
11297         (vectorizable_load): Same.
11298         (vect_transform_stmt): Same.
11299         (supportable_widening_operation): Same.
11300         * tree-vectorizer.c (vec_info::replace_stmt): Same.
11301         (vec_info::free_stmt_vec_info): Same.
11302         (vect_free_loop_info_assumptions): Same.
11303         (vect_loop_vectorized_call): Same.
11304         (set_uid_loop_bbs): Same.
11305         (vectorize_loops): Same.
11306         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
11307         * tree.c (add_tree_to_fld_list): Same.
11308         (fld_type_variant_equal_p): Same.
11309         (fld_decl_context): Same.
11310         (fld_incomplete_type_of): Same.
11311         (free_lang_data_in_binfo): Same.
11312         (need_assembler_name_p): Same.
11313         (find_decls_types_r): Same.
11314         (get_eh_types_for_runtime): Same.
11315         (find_decls_types_in_eh_region): Same.
11316         (find_decls_types_in_node): Same.
11317         (assign_assembler_name_if_needed): Same.
11318         * value-prof.c (stream_out_histogram_value): Same.
11319         * value-prof.h: Same.
11320         * var-tracking.c (use_narrower_mode): Same.
11321         (prepare_call_arguments): Same.
11322         (vt_expand_loc_callback): Same.
11323         (resolve_expansions_pending_recursion): Same.
11324         (vt_expand_loc): Same.
11325         * varasm.c (const_hash_1): Same.
11326         (compare_constant): Same.
11327         (tree_output_constant_def): Same.
11328         (simplify_subtraction): Same.
11329         (get_pool_constant): Same.
11330         (output_constant_pool_2): Same.
11331         (output_constant_pool_1): Same.
11332         (mark_constants_in_pattern): Same.
11333         (mark_constant_pool): Same.
11334         (get_section_anchor): Same.
11335         * vr-values.c (compare_range_with_value): Same.
11336         (vr_values::extract_range_from_phi_node): Same.
11337         * vr-values.h: Same.
11338         * web.c (unionfind_union): Same.
11339         * wide-int.h: Same.
11341 2019-07-09  Martin Sebor  <msebor@redhat.com>
11343         PR c++/61339
11344         * align.h: Change class-key from class to struct and vice versa
11345         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
11346         * alloc-pool.h: Same.
11347         * asan.c (shadow_mem_size): Same.
11348         * auto-profile.c: Same.
11349         * basic-block.h: Same.
11350         * bitmap.h: Same.
11351         * cfgexpand.c (set_rtl): Same.
11352         (expand_one_stack_var_at): Same.
11353         * cfghooks.h: Same.
11354         * cfgloop.h: Same.
11355         * cgraph.h: Same.
11356         * config/i386/i386.h: Same.
11357         * df-problems.c (df_print_bb_index): Same.
11358         * df-scan.c: Same.
11359         * df.h (df_single_use): Same.
11360         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
11361         (layout::annotation_line_showed_range_p): Same.
11362         (get_printed_columns): Same.
11363         (correction::ensure_terminated): Same.
11364         (line_corrections::~line_corrections): Same.
11365         * dojump.h: Same.
11366         * dse.c: Same.
11367         * dump-context.h: Same.
11368         * dumpfile.h: Same.
11369         * dwarf2out.c: Same.
11370         * edit-context.c: Same.
11371         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
11372         * flags.h: Same.
11373         * function.c (assign_stack_local): Same.
11374         * function.h: Same.
11375         * gcc.c: Same.
11376         * gcov.c (block_info::block_info): Same.
11377         * genattrtab.c: Same.
11378         * genextract.c: Same.
11379         * genmatch.c (comparison_code_p): Same.
11380         (id_base::id_base): Same.
11381         (decision_tree::print): Same.
11382         * genoutput.c: Same.
11383         * genpreds.c (write_one_predicate_function): Same.
11384         * genrecog.c (validate_pattern): Same.
11385         (find_operand_positions): Same.
11386         (optimize_subroutine_group): Same.
11387         (merge_pattern_transition::merge_pattern_transition): Same.
11388         (merge_pattern_info::merge_pattern_info): Same.
11389         (merge_state_result::merge_state_result): Same.
11390         (merge_into_state): Same.
11391         * gensupport.c: Same.
11392         * gensupport.h: Same.
11393         * ggc-common.c (init_ggc_heuristics): Same.
11394         * ggc-tests.c (test_union): Same.
11395         * gimple-loop-interchange.cc (dump_induction): Same.
11396         * gimple-loop-versioning.cc: Same.
11397         * gimple-match.h (gimple_match_cond::any_else): Same.
11398         * gimple-ssa-backprop.c: Same.
11399         * gimple-ssa-sprintf.c: Same.
11400         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
11401         Same.
11402         (store_immediate_info::store_immediate_info): Same.
11403         (merged_store_group::apply_stores): Same.
11404         (get_location_for_stmts): Same.
11405         * gimple-ssa-strength-reduction.c: Same.
11406         * gimple-ssa-warn-alloca.c: Same.
11407         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
11408         * godump.c (go_type_decl): Same.
11409         * hash-map-tests.c (test_map_of_strings_to_int): Same.
11410         * hash-map.h: Same.
11411         * hash-set-tests.c (test_set_of_strings): Same.
11412         * hsa-brig.c: Same.
11413         * hsa-common.h: Same.
11414         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
11415         * input.c (assert_loceq): Same.
11416         * input.h: Same.
11417         * ipa-cp.c: Same.
11418         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
11419         * ipa-fnsummary.h: Same.
11420         * ipa-inline.h: Same.
11421         * ipa-prop.h: Same.
11422         * ipa-split.c (visit_bb): Same.
11423         * ira-int.h (minmax_set_iter_next): Same.
11424         * loop-invariant.c: Same.
11425         * loop-iv.c: Same.
11426         * lra-eliminations.c: Same.
11427         * lra-int.h: Same.
11428         * lra-lives.c (mark_regno_dead): Same.
11429         * lra-remat.c: Same.
11430         * lra-spills.c: Same.
11431         * lto-streamer.h: Same.
11432         * mem-stats.h: Same.
11433         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
11434         * omp-low.c (omp_clause_aligned_alignment): Same.
11435         * optabs-query.h (get_vcond_eq_icode): Same.
11436         * optabs.h: Same.
11437         * opts.c (wrap_help): Same.
11438         * poly-int.h: Same.
11439         * predict.c (predict_paths_leading_to_edge): Same.
11440         * pretty-print.h: Same.
11441         * profile-count.h: Same.
11442         * read-md.h: Same.
11443         * read-rtl-function.c: Same.
11444         * ree.c: Same.
11445         * reginfo.c: Same.
11446         * regrename.c: Same.
11447         * regrename.h: Same.
11448         * reload.h: Same.
11449         * rtl-iter.h: Same.
11450         * rtl.h (costs_add_n_insns): Same.
11451         * sanopt.c: Same.
11452         * sched-int.h: Same.
11453         * sel-sched-ir.h: Same.
11454         * selftest.h: Same.
11455         * sese.h (vec_find): Same.
11456         * stmt.c: Same.
11457         * target-globals.h: Same.
11458         * tree-affine.c (aff_combination_find_elt): Same.
11459         * tree-affine.h: Same.
11460         * tree-data-ref.h: Same.
11461         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
11462         * tree-predcom.c: Same.
11463         * tree-scalar-evolution.c (find_var_scev_info): Same.
11464         * tree-ssa-alias.h: Same.
11465         * tree-ssa-ccp.c: Same.
11466         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
11467         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
11468         (rewrite_mem_refs): Same.
11469         (execute_sm_if_changed): Same.
11470         (hoist_memory_references): Same.
11471         * tree-ssa-loop-ivopts.c (operator<=): Same.
11472         * tree-ssa-loop.h: Same.
11473         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
11474         * tree-ssa-structalias.c: Same.
11475         * tree-switch-conversion.h (cluster::cluster): Same.
11476         (simple_cluster::simple_cluster): Same.
11477         * tree-vect-patterns.c (type_conversion_p): Same.
11478         * tree-vectorizer.c (dump_stmt_cost): Same.
11479         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
11480         * tree.c (protected_set_expr_location): Same.
11481         * tree.h (desired_pro_or_demotion_p): Same.
11482         (fndecl_built_in_p): Same.
11483         * unique-ptr-tests.cc: Same.
11484         * var-tracking.c (delete_variable_part): Same.
11485         * varasm.c (assemble_real): Same.
11486         (tree_output_constant_def): Same.
11487         * vec.c: Same.
11488         * wide-int-bitmask.h: Same.
11489         * wide-int.h (decompose): Same.
11491 2019-07-09  Richard Biener  <rguenther@suse.de>
11493         PR tree-optimization/91114
11494         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
11495         find a vector type isn't fatal.
11497 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
11499         * config/aarch64/aarch64-simd.md
11500         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
11501         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
11502         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
11503         (*aarch64_crypto_aese_fused,
11504         *aarch64_crypto_aesd_fused): Update to new definition.
11505         * config/aarch64/aarch64.c
11506         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
11508 2019-07-09  Richard Biener  <rguenther@suse.de>
11510         * gimple-match.h (gimple_match_op::resimplify): New.
11511         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
11512         gimple_resimplify4, gimple_resimplify5): Remove.
11513         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
11514         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
11515         Make static.
11516         (gimple_match_op::resimplify): New.
11517         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
11518         according to availability.  Use gimple_match_op::resimplify.
11520 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
11522         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
11524 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
11526         * config/arm/crypto.md:
11527         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
11528         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
11529         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
11530         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
11531         * config/arm/arm.c
11532         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
11533         * config/arm/aarch-common-protos.h
11534         (aarch_crypto_can_dual_issue): Remove.
11535         * config/arm/aarch-common.c
11536         (aarch_crypto_can_dual_issue): Likewise.
11537         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
11538         * config/arm/cortex-a53.md: Likewise.
11539         * config/arm/cortex-a57.md: Likewise.
11540         * config/arm/iterators.md:
11541         (CRYPTO_BINARY): Redefine.
11542         (CRYPTO_UNARY): Removed.
11543         (CRYPTO_AES, CRYPTO_AESMC): New.
11545 2019-07-09  Richard Biener  <rguenther@suse.de>
11547         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
11548         (vn_reference_lookup_3): If the main ref has no access path recorded
11549         but orig_ref has use it to do access-path based disambiguation.
11550         (vn_reference_lookup_pieces): Adjust.
11551         (vn_reference_lookup): Pass down original ref if we valueized.
11553 2019-07-09  Martin Liska  <mliska@suse.cz>
11555         * doc/extend.texi: Document influence on loop
11556         optimizers.
11558 2019-07-09  Martin Liska  <mliska@suse.cz>
11560         * lto-compress.c (lto_normalized_zstd_level): Do not use
11561         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
11562         of libzstd.  One can use 0 as a default compression level.
11564 2019-07-09  Martin Liska  <mliska@suse.cz>
11566         * doc/invoke.texi: Add link from -fprofile-dir option.
11567         Use better wording for 'gcno filename'.
11569 2019-07-08  Martin Sebor  <msebor@redhat.com>
11571         PR middle-end/71924
11572         PR middle-end/90549
11573         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
11574         comment.
11575         (args_loc_t): New type.
11576         (args_loc_t, locmap_t): same.
11577         (diag_returned_locals): New function.
11578         (is_addr_local): Same.
11579         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
11580         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
11581         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
11583 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
11585         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
11586         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
11587         and casts in offset when different, both through gimple stmts
11588         and through trees.  Rewritten using loops to minimize code duplication
11589         for each operand.
11591 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
11593         * emit-rtl.c (set_insn_locations): New function moved from...
11594         * function.c (set_insn_locations): ...here.
11595         * ira-emit.c (emit_moves): Propagate location of the first instruction
11596         to the inserted move instructions.
11597         * reg-stack.c (compensate_edge): Set the location if the sequence is
11598         inserted on the edge.
11599         * rtl.h (set_insn_locations): Declare.
11601 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
11603         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
11604         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
11605         .machine string.
11607 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
11609         PR rtl-optimization/88233
11610         * common.opt (fsplit-wide-types-early): New option.
11611         * common/config/rs6000/rs6000-common.c
11612         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
11613         OPT_LEVELS_ALL.
11614         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
11615         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
11616         flag_split_wide_types_early.
11617         (pass_data_lower_subreg3): New.
11618         (pass_lower_subreg3): New.
11619         (make_pass_lower_subreg3): New.
11620         * passes.def (pass_lower_subreg2): Move after the loop passes.
11621         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
11622         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
11623         the pass pipeline; its previous place is taken by ...
11624         (make_pass_lower_subreg3): ... this.
11626 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
11628         * config/s390/s390.c (s390_shift_truncation_mask): Define.
11629         (TARGET_SHIFT_TRUNCATION_MASK): Define.
11631 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
11633         * config/s390/constraints.md: Add new jsc constraint.
11634         * config/s390/predicates.md: New predicates.
11635         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
11636         * config/s390/s390.c (s390_valid_shift_count): New function.
11637         (print_shift_count_operand): Use s390_valid_shift_count.
11638         (print_operand): Likewise.
11639         * config/s390/s390.md: Use new predicate.
11640         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
11641         * config/s390/vector.md: Use new predicate.
11643 2019-07-08  Andrew Waterman  <andrew@sifive.com>
11644             Jim Wilson  <jimw@sifive.com>
11646         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
11647         bitsize instead of BITS_PER_WORD.
11649 2019-07-08  Martin Liska  <mliska@suse.cz>
11651         * collect2.c (defined): Revert to before r254460.
11652         (scan_prog_file): Revert to before r254460.
11654 2019-07-08  Richard Biener  <rguenther@suse.de>
11656         PR tree-optimization/83518
11657         * tree-ssa-sccvn.c: Include splay-tree.h.
11658         (struct pd_range, struct pd_data): New.
11659         (struct vn_walk_cb_data): Add data to track partial definitions.
11660         (vn_walk_cb_data::~vn_walk_cb_data): New.
11661         (vn_walk_cb_data::push_partial_def): New.
11662         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
11663         (vn_reference_lookup_2): When partial defs are registered give up.
11664         (vn_reference_lookup_3): Track partial defs for memset and
11665         constructor zeroing and for defs from constants.
11667 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
11669         * doc/install.texi (bootstrap-Og): Document.
11671 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
11673         * config/riscv/pic.md (*local_pic_load_s<mode>)
11674         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
11675         referenced by <mode>, giving...
11676         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
11677         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
11678         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
11679         use <X:MODE> for the mode attribute.
11681 2019-07-07  Jeff Law  <law@redhat.com>
11683         PR tree-optimization/91090
11684         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
11685         in handling of ranges to simplify switch statements.
11687 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
11689         * config/darwin.c (darwin_override_options): Make a final check on PIC
11690         options.
11692 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
11694         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
11695         on for kernel code.
11697 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
11699         PR target/91068
11700         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
11701         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
11702         instead of matching them to "l" output operands.
11704 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
11706         * config/mips/mips.c (mips_split_move): Zero-initialize addr
11707         and check whether addr.reg is nonnull before using it.
11709 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
11711         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
11712         ctx->for_simd_scan_phase simd copy the outer var to the privatized
11713         variable(s).  For conditional lastprivate look through outer
11714         GIMPLE_OMP_SCAN context.
11715         (lower_omp_1): For conditional lastprivate look through outer
11716         GIMPLE_OMP_SCAN context.
11718         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
11719         member to combined_into_simd_safelen1.
11720         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
11721         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
11722         clauses if ctx->combined_into_simd_safelen1 put statements after the
11723         predicate conditionalized block rather than into it.
11725 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11727         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
11728         operand 1.
11729         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
11730         Make the choice of <mode> explicit, giving...
11731         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
11733 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11735         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
11736         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
11737         of .md attributes.
11738         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
11739         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
11740         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
11741         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
11742         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
11743         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
11744         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
11745         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
11746         (*avx512f_scatterdi<mode>): Likewise.
11747         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
11749 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11751         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
11752         specify the mode iterator referenced by <mode>, giving...
11753         (*push1_h8300hs_<QHI:mode>): ...this.
11755 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11757         * config/gcn/gcn-valu.md
11758         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
11759         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
11760         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
11761         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
11762         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
11763         but using the _exec comparison patterns.
11764         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
11765         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
11766         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
11767         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
11768         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
11769         but using the _exec comparison patterns.
11771 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
11773         * config/arm/sync.md
11774         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
11775         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
11776         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
11777         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
11778         <SIDI:cas_cmp_str>.
11780 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
11782         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
11783         (maybe_lookup_ctx): Add forward declaration.
11784         (omp_find_scan): Likewise.  Walk into body of simd if composited
11785         with worksharing loop.
11786         (scan_omp_simd_scan): New function.
11787         (scan_omp_1_stmt): Call it.
11788         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
11789         ctx->for_simd_scan_phase.
11790         (lower_rec_input_clauses): Do much less work for inscan reductions
11791         in ctx->for_simd_scan_phase is_simd regions.
11792         (lower_omp_scan): Set is_simd also on simd constructs composited
11793         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
11794         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
11795         emit their body after in simd constructs composited with worksharing
11796         loop.
11797         (lower_omp_for_scan): Handle worksharing loop composited with simd.
11799         * omp-low.c (omp_find_scan): Make static.
11800         (lower_omp_for_scan): Fix order of merge arguments in input phase of
11801         the second loop, var2 represents the first partial sum and so needs
11802         to go before rprivb[ivar].
11804 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
11806         * config/rs6000/rs6000-logue.c: Remove unused code.
11808 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
11810         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
11812 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
11814         PR target/90712
11815         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
11816         check with a frame laid out check.
11818 2019-07-05  Richard Biener  <rguenther@suse.de>
11820         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
11821         when comparing against a store with possibly the same value.
11823 2019-07-05  Richard Biener  <rguenther@suse.de>
11825         PR tree-optimization/91091
11826         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
11827         (walk_non_aliased_vuses): Likewise.
11828         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
11829         (get_continuation_for_phi): New tbaa_p parameter and pass
11830         it down.
11831         (walk_non_aliased_vuses): Likewise.
11832         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
11833         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
11834         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
11835         Likewise.
11836         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
11837         (adjust_offsets_for_equal_base_address): New function.
11838         (vn_reference_lookup_3): Use it to catch more base equivalences.
11839         Handle and pass down tbaa_p flag.
11840         (vn_reference_lookup_pieces): Adjust.
11841         (vn_reference_lookup): Remove alias-set altering, instead pass
11842         down false as tbaa_p.
11844 2019-07-05  Richard Biener  <rguenther@suse.de>
11846         PR tree-optimization/91091
11847         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
11848         accesses can happen with -fno-strict-aliasing.
11850 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
11852         * tree-ssa-alias.c (alias_stats): Add
11853         nonoverlapping_component_refs_since_match_p_must_overlap.
11854         (dump_alias_stats): Print it.
11855         (nonoverlapping_component_refs_since_match_p): Add early exit.
11856         (nonoverlapping_component_refs_p): Do not account early exit.
11858 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
11860         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
11861         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
11862         (emit_eh_dispatch): Delete.
11863         (lower_catch): Emit the eh_dispatch manually and set the location of
11864         the first catch statement onto it.
11865         (lower_eh_filter): Emit the eh_dispatch manually and set location.
11866         (lower_eh_dispatch): Propagate location.
11867         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
11868         (eliminate_build): Likewise.
11870 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
11872         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
11873         phi nodes if possible.
11874         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
11875         location info on the newly created statement.
11876         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
11877         newly created increment if needed.
11879 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
11881         PR middle-end/78884
11882         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
11883         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
11884         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
11885         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
11886         ctx->add_safelen1 is set.
11888         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
11889         GOMP_loop_start at the start of second worksharing loop in a scan.
11890         For nowait, don't emit GOMP_loop_end_nowait at the end of first
11891         worksharing loop in a scan even if there are conditional lastprivates,
11892         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
11894 2019-07-04  Jan Hubicka  <jh@suse.cz>
11896         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
11897         Fix check for match in the ref walk.
11899 2019-07-04  Martin Liska  <mliska@suse.cz>
11901         * tree-ssa-loop-niter.c
11902         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
11903         (estimate_numbers_of_iterations):
11904         Support __builtin_expect_with_probability for analysis
11905         of # of loop iterations.
11907 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
11909         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
11910         * except.c: Likewise.
11911         * expr.c (expand_expr_real_1): Reject it.
11912         * gimplify.c (gimplify_expr): Gimplify it, within
11913         TRY_FINALLY_EXPR.
11914         * tree-dump.c (dequeue_and_dump): Dump it.
11915         * tree-pretty-print.c (dump_generic_node): Likewise.
11916         * tree.c (block_may_fallthru): Handle it.
11917         * tree.def (EH_ELSE_EXPR): Introduce it.
11918         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
11919         with GIMPLE_EH_ELSE as try/finally/else.
11921 2019-07-04  Richard Biener  <rguenther@suse.de>
11923         PR ipa/91062
11924         * tree-pass.h (execute_all_ipa_transforms): Add a flag
11925         parameter whether to disable GC collection.
11926         * passes.c (execute_one_ipa_transform_pass): Likewise, and
11927         honor it.
11928         (execute_all_ipa_transforms): Likewise and pass it down.
11929         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
11930         collection from applying IPA transforms.
11931         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
11932         from applying IPA transforms.
11934 2019-07-04  Richard Biener  <rguenther@suse.de>
11936         PR tree-optimization/90911
11937         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
11938         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
11939         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
11940         scalar_loop_scaling.
11941         (vect_transform_loop): Scale scalar loop profile if needed.
11942         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
11943         the loop copy from if-conversion adjust edge probabilities
11944         and scale the vectorized loop body profile, queue the scalar
11945         profile for updating after peeling.
11947 2019-07-04  Jan Hubicka  <jh@suse.cz>
11949         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
11950         parameters; return early for must-alias.
11951         (indirect_ref_may_alias_decl_p): Likewise; when establishing
11952         outer types match, try nonoverlapping_component_refs
11953         if must-alias is not obvious.
11954         (indirect_refs_may_alias_p): Likewise.
11955         (refs_may_alias_p_2): Likewise.
11957 2019-07-04  Richard Biener  <rguenther@suse.de>
11959         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
11960         argument.
11961         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
11962         globals into...
11963         (struct vn_walk_cb_data): New callback data struct.
11964         (vn_reference_lookup_2): Adjust.
11965         (vn_reference_lookup_3): Likewise.
11966         (vn_reference_lookup_pieces): Likewise.
11967         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
11968         (visit_reference_op_load): Adjust.
11970 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
11972         PR tree-optimization/91063
11973         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
11974         stmt from stmts sequence before calling vect_init_vector_1.
11975         Formatting fix.
11977 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
11979         PR target/88833
11980         * fwprop.c (reg_single_def_p): New function.
11981         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
11982         (forward_propagate_into): New parameter reg_prop_only
11983         with default value false.
11984         Propagate def's src into loop only if SET_SRC and SET_DEST
11985         of def_set have single definitions.
11986         Likewise if reg_prop_only is set to true.
11987         (fwprop): New param fwprop_addr_p.
11988         Integrate fwprop_addr into fwprop.
11989         (fwprop_addr): Remove.
11990         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
11991         to true.
11992         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
11993         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
11994         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
11996 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
11998         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
11999         in worksharing loop scans.
12001         PR tree-optimization/91074
12002         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
12003         temporary.
12005         PR rtl-optimization/90756
12006         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
12007         for VECTOR_TYPE_P.
12009 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
12011         * config/aarch64/aarch64.md: Remove redundant constraints from
12012         define_expand but keep some patterns untouched if they are
12013         specially selected by TARGET_SECONDARY_RELOAD hook.
12014         * config/aarch64/aarch64-sve.md: Likewise.
12015         * config/aarch64/atomics.md: Remove redundant constraints from
12016         define_expand.
12017         * config/aarch64/aarch64-simd.md: Likewise.
12019 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
12021         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
12022         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
12023         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
12024         clauses.
12025         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
12026         DARWIN_NOPIE_SPEC.
12028 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
12030         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
12031         (STARTFILE_SPEC): Split crt3 into a separate spec.
12032         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
12033         (DARWIN_CRT2_SPEC): New.
12034         (DARWIN_CRT3_SPEC): New.
12035         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
12036         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
12037         (DARWIN_CRT3_SPEC): New.
12039 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
12041         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
12042         Change the RTL attribute "length" from "4" to "*" to allow the
12043         length attribute to be adjusted automatically for prefixed load,
12044         store, and add immediate instructions.
12045         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
12046         Likewise.
12047         (extendsi<mode>2, EXTSI iterator): Likewise.
12048         (movsi_internal1): Likewise.
12049         (movsi_from_sf): Likewise.
12050         (movdi_from_sf_zero_ext): Likewise.
12051         (mov<mode>_internal): Likewise.
12052         (movcc_internal1, QHI iterator): Likewise.
12053         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
12054         (movsf_from_si): Likewise.
12055         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
12056         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
12057         (mov<mode>, FMOVE128 iterator): Likewise.
12058         (movdi_internal64): Likewise.
12059         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
12060         Likewise.
12061         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
12062         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
12063         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
12064         (vsx_splat_v4sf): Likewise.
12066 2019-07-03  Mark Wielaard  <mark@klomp.org>
12068         PR debug/90981
12069         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
12070         DW_AT_addr_base if there is actually a .debug_addr section with
12071         addresses.
12072         (output_addr_table): Add DWARF5 table header generation here after
12073         checking there are actually any addresses from...
12074         (dwarf2out_finish): ...here.
12076 2019-07-03  Richard Biener  <rguenther@suse.de>
12078         PR middle-end/91069
12079         * match.pd (vec_perm -> bit_insert): Fix element read from
12080         first vector.
12082 2019-07-03  Martin Liska  <mliska@suse.cz>
12084         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
12085         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
12086         condition.
12087         * generic-match-head.c: Include dbgcnt.h.
12088         * gimple-match-head.c: Likewise.
12090 2019-07-03  Martin Liska  <mliska@suse.cz>
12092         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
12093         (GCOV_COUNTER_V_TOPN): New.
12094         (GCOV_COUNTER_V_INDIR): Use _topn.
12095         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
12096         (GCOV_TOPN_VALUES): New.
12097         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
12098         (GCOV_TOPN_VALUES_COUNTERS): New.
12099         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
12100         * tree-profile.c:
12101         (gimple_init_gcov_profiler): Rename variables from one_value
12102         to topn_values.
12103         (gimple_gen_one_value_profiler): Remove.
12104         (gimple_gen_topn_values_profiler): New function.
12105         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
12106         names instead of SINGLE_VALUE.
12107         (stream_out_histogram_value): Likewise.
12108         (stream_in_histogram_value): Likewise.
12109         (get_most_common_single_value): Likewise.
12110         (gimple_divmod_fixed_value_transform): Likewise.
12111         (gimple_stringops_transform): Likewise.
12112         (gimple_divmod_values_to_profile): Likewise.
12113         (gimple_stringops_values_to_profile): Likewise.
12114         (gimple_find_values_to_profile): Likewise.
12115         * value-prof.h (enum hist_type): Rename to TOPN.
12116         (gimple_gen_one_value_profiler): Remove.
12117         (gimple_gen_topn_values_profiler): New.
12119 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
12121         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
12122         if it has the DW_AT_data_member_location attribute.
12124 2019-07-03  Richard Biener  <rguenther@suse.de>
12126         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
12127         dumping.
12129 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
12131         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
12132         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
12133         (tlsdesc_small_sve_<mode>): Likewise.
12135 2019-07-03  Martin Liska  <mliska@suse.cz>
12137         * Makefile.in: Define ZSTD_LIB.
12138         * common.opt: Adjust compression level
12139         to support also zstd levels.
12140         * config.in: Regenerate.
12141         * configure: Likewise.
12142         * configure.ac: Add --with-zstd and --with-zstd-include options
12143         and detect ZSTD.
12144         * doc/install.texi: Mention zstd dependency.
12145         * gcc.c: Print supported LTO compression algorithms.
12146         * lto-compress.c (lto_normalized_zstd_level): Likewise.
12147         (lto_compression_zstd): Likewise.
12148         (lto_uncompression_zstd): Likewise.
12149         (lto_end_compression): Dispatch in between zlib and zstd.
12150         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
12151         (lto_uncompression_zlib): Make it static.
12152         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
12153         * lto-section-in.c (lto_get_section_data): Pass info
12154         about used compression.
12155         * lto-streamer-out.c: By default use zstd when possible.
12156         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
12157         (TV_IPA_LTO_COMPRESS): Likewise for compression.
12159 2019-07-03  Martin Liska  <mliska@suse.cz>
12161         * lto-section-in.c (lto_get_section_data): Add "lto" section.
12162         * lto-section-out.c (lto_destroy_simple_output_block): Never
12163         compress LTO_section_lto section.
12164         * lto-streamer-out.c (produce_asm): Do not set major_version
12165         and minor_version.
12166         (lto_output_toplevel_asms): Likewise.
12167         (produce_lto_section): New function.
12168         (lto_output): Call produce_lto_section.
12169         (lto_write_mode_table): Do not set major_version and
12170         minor_version.
12171         (produce_asm_for_decls): Likewise.
12172         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
12173         type.
12174         (struct lto_header): Remove.
12175         (struct lto_section): New struct.
12176         (struct lto_simple_header): Do not inherit from lto_header.
12177         (struct lto_file_decl_data): Add lto_section_header field.
12179 2019-07-03  Martin Liska  <mliska@suse.cz>
12181         * lra-eliminations.c (eliminate_regs_in_insn): Remove
12182         dead assignemts.
12183         * reg-stack.c (check_asm_stack_operands): Likewise.
12184         * tree-ssa-structalias.c (create_function_info_for): Likewise.
12185         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
12186         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
12187         force_expand_binop.
12189 2019-07-03  Martin Liska  <mliska@suse.cz>
12191         PR tree-optimization/90892
12192         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
12193         in string constants.
12195 2019-07-03  Martin Liska  <mliska@suse.cz>
12197         PR middle-end/90899
12198         * multiple_target.c (create_dispatcher_calls): Add to comdat
12199         group only if set for ifunc.
12201 2019-07-03  Martin Liska  <mliska@suse.cz>
12203         PR target/88056
12204         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
12205         Define local_object_name in outer scope in order to handle
12206         use-after-scope issue.
12208 2019-07-03  Martin Liska  <mliska@suse.cz>
12210         * common.opt: Add fprofile-note.
12211         * coverage.c (coverage_init): Append the option
12212         to bbg_file_name.
12213         * doc/invoke.texi: Document -fprofile-note.
12215 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
12217         PR tree-optimization/91033
12218         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
12219         vect_analyze_data_refs): Add bool * arguments.
12220         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
12221         if failure is due to scatter/gather, set *fatal to false if non-NULL.
12222         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
12223         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
12224         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
12225         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
12226         vect_analyze_data_refs caller.
12228         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
12229         clause.
12230         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
12231         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
12232         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
12233         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
12234         OMP_CLAUSE__SCANTEMP_ entry.
12235         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
12236         * tree-pretty-print.c (dump_omp_clause): Likewise.
12237         * tree-nested.c (convert_nonlocal_omp_clauses,
12238         convert_local_omp_clauses): Likewise.
12239         * omp-general.h (struct omp_for_data): Add have_scantemp and
12240         have_nonctrl_scantemp members.
12241         * omp-general.c (omp_extract_for_data): Initialize them.
12242         * omp-low.c (struct omp_context): Add scan_exclusive member.
12243         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
12244         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
12245         ctx->scan_exclusive.
12246         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
12247         of !ctx->scan_inclusive.
12248         (lower_rec_input_clauses): Simplify gimplification of dtors using
12249         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
12250         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
12251         loops.  Don't add barrier for reduction_omp_orig_ref if
12252         ctx->scan_??xclusive.
12253         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
12254         (lower_omp_scan): Use ctx->scan_exclusive instead
12255         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
12256         reductions.  Use new_vard != new_var instead of repeated
12257         omp_is_reference calls.
12258         (omp_find_scan, lower_omp_for_scan): New functions.
12259         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
12260         inscan reductions.
12261         * omp-expand.c (expand_omp_scantemp_alloc): New function.
12262         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
12263         and fd->have_scantemp.
12265         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
12266         on worksharing loop propagate it as shared clause to containing
12267         combined parallel.
12269         * omp-expand.c (expand_omp_for_static_nochunk,
12270         expand_omp_for_static_chunk): For nowait worksharing loop with
12271         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
12272         at the end.
12274 2019-07-02  qing zhao  <qing.zhao@oracle.com>
12276         PR preprocessor/90581
12277         * doc/cppopts.texi: Add document for -fmax-include-depth.
12278         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
12280 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12282         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
12283         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
12284         (mmx_packssdw): Ditto.
12285         (mmx_punpckhbw): Ditto.
12286         (mmx_punpcklbw): Ditto.
12287         (mmx_punpckhwd): Ditto.
12288         (mmx_punpcklwd): Ditto.
12289         (mmx_punpckhdq): Ditto.
12290         (mmx_punpckldq): Ditto.
12291         (*vec_dupv4hi): Ditto.
12292         (*vec_dupv2si): Ditto.
12293         (mmx_pmovmskb): Ditto.
12294         * config/i386/sse.md (sse_cvtpi2ps): Use
12295         TARGET_SSE2 && SSE_REG_P in split condition.
12296         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
12297         TARGET_SSSE3 && SSE_REGNO_P in split condition.
12298         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
12299         (ssse3_pshufbv8qi3): Ditto.
12300         (ssse3_palignrdi): Ditto.
12302 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
12304         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
12305         with inlined save and restore.
12307 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
12309         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
12310         to be inserted on single successor edge of the entry block.  Then call
12311         commit_edge_insertions instead of inserting the instructions manually.
12312         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
12313         RTL expansion and rebuild jump labels chain.
12315 2019-07-02  Richard Biener  <rguenther@suse.de>
12317         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
12318         TI_CHREC_KNOWN.
12319         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
12320         Define here.
12321         * tree.c (build_common_tree_nodes): Initialize them.
12322         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
12323         Make declarations comments.
12324         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
12325         chrec_known): Remove definitions.
12326         (initialize_scalar_evolutions_analyzer): Remove.
12327         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
12328         * tree-streamer.c (preload_common_nodes): Do not preload
12329         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
12331 2019-07-02  Jan Hubicka  <jh@suse.cz>
12333         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
12334         sanity check.
12336 2019-07-02  Jan Hubicka  <jh@suse.cz>
12338         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
12339         to ..
12340         (nonoverlapping_component_refs_since_match_p): ... this one;
12341         handle also non-decl bases; return -1 if search gave up.
12342         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
12343         nonoverlapping_component_refs_of_decl_p_no_alias to
12344         nonoverlapping_component_refs_since_match_p_may_alias,
12345         nonoverlapping_component_refs_since_match_p_no_alias.
12346         (dump_alias_stats): Update dumping.
12347         (aliasing_matching_component_refs_p): Break out from ...;
12348         dispatch to nonoverlapping_component_refs_for_decl_p
12349         and nonoverlapping_component_refs_since_match_p.
12350         (aliasing_component_refs_p): ... here; call
12351         nonoverlapping_component_refs_p in scenarios where we can not
12352         precisely determine base match.
12353         (decl_refs_may_alias_p): Use
12354         nonoverlapping_component_refs_since_match_p.
12355         (indirect_ref_may_alias_decl_p): Do not call
12356         nonoverlapping_component_refs_p.
12357         (indirect_refs_may_alias_p): Likewise.
12359 2019-07-02  Jan Hubicka  <jh@suse.cz>
12361         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
12362         to clobber of return value.
12364 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
12366         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
12367         for is_neon_type instructions that have not already been categorized.
12369 2019-07-02  Richard Biener  <rguenther@suse.de>
12371         PR tree-optimization/58483
12372         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
12373         for MEM_REF base hashing.
12374         (equal_mem_array_ref_p): Likewise for base comparison.
12376 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12378         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
12379         parameterized name.
12380         (signbit<mode>2): Use that name.  Simplify.
12382 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
12384         PR middle-end/66726
12385         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
12386         Tune heuristic from PR71016 to allow MIN / MAX.
12388 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12390         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
12391         parameterized name.
12392         (abs<mode>2): Use that name.  Simplify.
12394 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12396         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
12397         parameterized name.
12398         (neg<mode>2): Use that name.  Simplify.
12400 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12402         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
12403         name.
12404         (abs<mode>2): Use that name.  Simplify.
12406 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12408         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
12409         name.
12410         (neg<mode>2): Use that name.  Simplify.
12412 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12414         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
12415         ("enabled" attribute): Handle sse_noavx isa attribute.
12416         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
12417         Use TARGET_SSE && SSE_REGNO_P in split condition.
12418         (*vec_dupv2sf): Ditto.
12420 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12422         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
12423         name.
12424         (floatsi<mode>2): Use that name.  Simplify.
12426 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12428         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
12429         parameterized name.
12430         (extenddf<mode>2_vsx): Make this a parameterized name.
12431         (extenddf<mode>2): Use those names.  Simplify.
12433 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12435         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
12436         name.
12437         (eh_return): Use that name.  Simplify.
12439 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12441         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
12442         (doloop_end): Use that name.  Simplify.
12444 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12446         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
12447         parameterized name.
12448         (indirect_jump): Use that name.  Simplify.
12450 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12452         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
12453         parameterized name.
12454         (abs<mode>2): Use that name.  Simplify.
12456 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12458         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
12459         parameterized name.
12460         (fix_trunc<mode>si2): Use that name.  Simplify.
12462 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12464         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
12465         (allocate_stack): Use that name.  Simplify.
12467 2019-07-01  Martin Sebor  <msebor@redhat.com>
12469         PR middle-end/90923
12470         * hash-map.h (hash_map::put): On insertion invoke element ctor.
12471         (hash_map::get_or_insert): Same.  Reformat comment.
12472         * hash-set.h (hash_set::add): On insertion invoke element ctor.
12473         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
12474         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
12475         * hash-table.h (hash_table::operator=): Prevent copy assignment.
12476          (hash_table::hash_table (const hash_table&)): Use copy ctor
12477          instead of assignment to copy elements.
12479 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
12480             John David Anglin  <danglin@gcc.gnu.org>
12482         PR target/90963
12483         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
12484         using saved frame pointer.
12486 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
12488         PR middle-end/64242
12489         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
12490         Add frame clobber and schedule blockage.
12492 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
12494         * doc/invoke.texi (Link Options): Further editorial changes to
12495         -flinker-output docs.
12497 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
12499         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
12500         Load both operands of a PLUS into registers separately.
12502 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
12504         * config/s390/vector.md: Fix shift count operand printing.
12506 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12508         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
12510 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12512         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
12513         Use recog_data to test for an output operand.
12515 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12517         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
12518         exclude any others that are disparaged or that are bound to need
12519         a reload or spill.
12520         (ira_get_dup_out_num): Expand comment.
12522 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12524         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
12525         constraint string for each operand/alternative combo.  Only handle
12526         '%' at the start of constraint strings, and look for it outside
12527         the main loop.
12529 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
12531         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
12532         alternative_mask instead of HARD_REG_SET to represent a
12533         bitmask of alternatives.
12534         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
12535         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
12537 2019-07-01  Martin Liska  <mliska@suse.cz>
12539         * edit-context.c (test_applying_fixits_unreadable_file): Do not
12540         use () for a constructor call.
12541         (test_applying_fixits_line_out_of_range): Likewise.
12542         * ggc-page.c (alloc_page): Use (void *) for %p printf format
12543         argument.
12544         (free_page): Likewise.
12546 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
12548         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
12549         parameter names to match usage (no functional change).
12550         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
12552 2019-07-01  Richard Biener  <rguenther@suse.de>
12554         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
12555         pass parameter.
12556         (pass_fre::execute): Honor it.
12557         * passes.def: Adjust pass_fre invocations to allow iterating,
12558         add non-iterating pass_fre before late threading/dom.
12560 2019-07-01  Richard Biener  <rguenther@suse.de>
12562         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
12563         TARGET_MEM_REF handling to also handle address-taken ones.
12565 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
12567         * doc/sourcebuild.texi (Effective-Target Keywords, Other
12568         hardware attributes): Document avx512vp2intersect.
12570 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12572         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
12573         (abs<mode>2): New expander.
12574         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
12575         Use CODE_FOR_ssse3_absv8qi2.
12576         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
12577         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
12579 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12581         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
12582         to sse, sse_noavx and avx.  Update all uses.
12584 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12586         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
12587         (*mmx_<plusminus_insn><mode>3): Ditto.
12588         (*mmx_mulv4hi3"): Ditto.
12589         (*mmx_smulv4hi3_highpart): Ditto.
12590         (*mmx_umulv4hi3_highpart): Ditto.
12591         (*mmx_pmaddwd): Ditto.
12592         (*sse2_umulv1siv1di3): Ditto.
12593         (*mmx_<code>v4hi3): Ditto.
12594         (*mmx_<code>v8qi3): Ditto.
12595         (mmx_ashr<mode>3): Ditto.
12596         ("mmx_<shift_insn><mode>3): Ditto.
12597         (*mmx_eq<mode>3): Ditto.
12598         (mmx_gt<mode>3): Ditto.
12599         (mmx_andnot<mode>3): Ditto.
12600         (*mmx_<code><mode>3): Ditto.
12601         (*mmx_pinsrw): Ditto.
12602         (*mmx_pextrw): Ditto.
12603         (mmx_pshufw_1): Ditto.
12604         (*mmx_uavgv8qi3): Ditto.
12605         (*mmx_uavgv4hi3): Ditto.
12606         ("mmx_psadbw): Ditto.
12607         * config/i386/sse.md (sse_cvtps2pi): Ditto.
12608         (sse_cvttps2pi): Ditto.
12609         (ssse3_pmaddubsw): Ditto.
12610         (*ssse3_pmulhrswv4hi3): Ditto.
12611         (ssse3_psign<mode>3): Ditto.
12613 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
12615         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
12616         adjustment for bit-fields to all aggregate types.
12618 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
12620         * config/rs6000/predicates.md (pcrel_address): Use
12621         SYMBOL_REF_LOCAL_P to determine if a label is local.
12622         (pcrel_external_address): New predicate.
12623         (non_prefixed_mem_operand): Delete, predicate not used.
12624         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
12625         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
12626         addressing.
12627         (SYMBOL_REF_PCREL_P): Likewise.
12629         PR target/91009
12630         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
12631         alternative.
12632         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
12633         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
12634         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
12636 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
12638         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
12639         override on extra_headers.
12641 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
12643         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
12644         * config/darwin-driver.c (darwin_default_min_version): Remove newline
12645         from warning.
12646         (darwin_driver_init): Likewise.
12648 2019-06-28  Jan Beulich  <jbeulich@suse.com>
12650         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12651         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
12652         Eliminate redundant alternative.
12654 2019-06-28  Jan Beulich  <jbeulich@suse.com>
12656         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
12657         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
12658         Use vector_operand.
12660 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
12662         * config/arc/arc.c (arc_rtx_costs): All short instructions are
12663         having a lower cost regardless of the speed option.
12665 2019-06-28  Jan Beulich  <jbeulich@suse.com>
12667         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
12668         vector_operand plus, on both alternatives, "Bm" constraint.
12670 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
12672         * config/arm/arm.md: Remove redundant constraints from
12673         define_expand but leave reload_inm and reload_outm patterns
12674         untouched since they need special constraints to work.
12675         * config/arm/arm-fixed.md: Remove redundant constraints from
12676         define_expand.
12677         * config/arm/iwmmxt.md: Likewise.
12678         * config/arm/neon.md: Likewise.
12679         * config/arm/sync.md: Likewise.
12680         * config/arm/thumb1.md: Likewise.
12681         * config/arm/vec-common.md: Likewise.
12683 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
12685         * doc/install.texi: Document --disable-tm-clone-registry.
12687 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
12689         PR c++/91024
12690         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
12691         statements.
12693         PR tree-optimization/91010
12694         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
12695         return true.  Otherwise, don't call operand_equal_p if offset1 or
12696         offset2 is NULL and just return false.
12698 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
12700         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
12701         user-specified float mode choice for kernel mode code.
12703 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
12705         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
12706         spec.
12708 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
12710         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
12711         use longcall for 64b code.
12713 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
12715         * builtins.c (get_memory_rtx): Fix comment.
12716         * optabs.def (movmem_optab): Change to cpymem_optab.
12717         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
12718         (emit_block_move_hints): Change movmem to cpymem.
12719         * defaults.h: Change movmem to cpymem.
12720         * targhooks.c (get_move_ratio): Change movmem to cpymem.
12721         (default_use_by_pieces_infrastructure_p): Ditto.
12722         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
12723         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
12724         to cpymem.
12725         * config/aarch64/aarch64.h: Change movmem to cpymem.
12726         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
12727         * config/alpha/alpha.h: Change movmem to cpymem in comment.
12728         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
12729         movmem to cpymem.
12730         * config/arc/arc-protos.h: Change movmem to cpymem.
12731         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
12732         * config/arc/arc.h: Change movmem to cpymem in comment.
12733         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
12734         * config/arm/arm-protos.h: Change movmem to cpymem in names.
12735         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
12736         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
12737         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
12738         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
12739         * config/avr/avr-protos.h: Change movmem to cpymem.
12740         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
12741         avr_out_movmem): Change movmem to cpymem.
12742         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
12743         Change movmem to cpymem.
12744         * config/bfin/bfin-protos.h: Change movmem to cpymem.
12745         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
12746         Change movmem to cpymem.
12747         * config/bfin/bfin.h: Change movmem to cpymem in comment.
12748         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
12749         * config/c6x/c6x-protos.h: Change movmem to cpymem.
12750         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
12751         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
12752         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
12753         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
12754         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
12755         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
12756         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
12757         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
12758         expand_small_cpymem_or_setmem,
12759         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
12760         expand_set_or_cpymem_constant_prologue,
12761         ix86_expand_set_or_cpymem): Change movmem to cpymem.
12762         * config/i386/i386-protos.h: Change movmem to cpymem.
12763         * config/i386/i386.h: Change movmem to cpymem in comment.
12764         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
12765         (setmem<mode>): Change expansion function name.
12766         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
12767         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
12768         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
12769         * config/m32c/m32c-protos.h: Change movmem to cpymem.
12770         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
12771         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
12772         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
12773         to cpymem.
12774         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
12775         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
12776         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
12777         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
12778         Change movmem to cpymem.
12779         * config/mips/mips.h: Change movmem to cpymem.
12780         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
12781         * config/nds32/nds32-memory-manipulation.c
12782         (nds32_expand_movmemsi_loop_unknown_size,
12783         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
12784         nds32_expand_movmemsi_unroll,
12785         nds32_expand_movmemsi): Change movmem to cpymem.
12786         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
12787         * config/nds32/nds32-protos.h: Change movmem to cpymem.
12788         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
12789         (pa_adjust_insn_length): Change call to compute_movmem_length.
12790         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
12791         movmemdi, movmemdi_prereload,
12792         movmemdi_postreload): Change movmem to cpymem.
12793         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
12794         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
12795         * config/riscv/riscv.c: Change movmem to cpymem in comment.
12796         * config/riscv/riscv.h: Change movmem to cpymem.
12797         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
12798         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
12799         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
12800         movmem to cpymem.
12801         * config/s390/s390-protos.h: Change movmem to cpymem.
12802         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
12803         s390_expand_insv): Change movmem to cpymem.
12804         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
12805         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
12806         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
12807         * config/sparc/sparc.h: Change movmem to cpymem in comment.
12808         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
12809         for nonexistent function.
12810         * config/vax/vax.h: Change movmem to cpymem in comment.
12811         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
12812         * config/visium/visium.h: Change movmem to cpymem in comment.
12813         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
12814         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
12815         * doc/md.texi: Change movmem to cpymem and update description to match.
12816         * doc/rtl.texi: Change movmem to cpymem.
12817         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
12818         * doc/tm.texi: Regenerate.
12820 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
12822         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
12823         -fvariable-expansion-in-unroller by default.
12824         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
12825         default for Power.
12827 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
12829         Revert
12830         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
12831         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12833         * config.gcc(rs6000-*-*): Define target_gtfiles.
12835 2019-06-27  Jan Hubicka  <jh@suse.cz>
12837         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
12838         (add_type_duplicate): When odr hash is not allocated, to nothing.
12839         (odr_based_tbaa_p): New function.
12840         (set_type_canonical_for_odr_type): New function.
12841         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
12842         set_type_canonical_for_odr_type): New.
12843         * tree.c (gimple_canonical_types_compatible_p): ODR types with
12844         ODR based TBAA are not equivalent to non-ODR types.
12846 2019-06-27  Martin Liska  <mliska@suse.cz>
12848         PR tree-optimization/90974
12849         PR rtl-optimization/90975
12850         PR rtl-optimization/90976
12851         PR target/91016
12852         PR tree-optimization/91017
12853         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
12854         unused tmp.
12855         * lra.c (lra_set_insn_recog_data): Remove a leftover from
12856         initial commit of IRA.
12857         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
12858         of op0 and op1.
12859         * tree-vect-loop.c (vect_create_epilog_for_reduction):
12860         Remove unused mode1.
12861         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
12862         to new_stmt_info.
12864 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
12866         PR target/90991
12867         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
12868         instead of register_operand for operands[1], add m to its constraints
12869         if operands[2] uses "C" constraint.  Ensure in condition that if
12870         operands[2] is not 0, then operands[1] is not a MEM.  For last two
12871         alternatives, use unaligned loads instead of aligned if operands[1] is
12872         misaligned_operand.
12874 2019-06-27  Martin Liska  <mliska@suse.cz>
12876         * asan.c (asan_emit_allocas_unpoison): Remove obviously
12877         dead assignments.
12878         * bt-load.c (move_btr_def): Likewise.
12879         * builtins.c (expand_builtin_apply_args_1): Likewise.
12880         (expand_builtin_apply): Likewise.
12881         * cfgexpand.c (expand_asm_stmt): Likewise.
12882         (construct_init_block): Likewise.
12883         * cfghooks.c (verify_flow_info): Likewise.
12884         * cfgloopmanip.c (remove_path): Likewise.
12885         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
12886         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
12887         * combine.c (simplify_if_then_else): Likewise.
12888         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
12889         (choose_basereg): Likewise.
12890         (ix86_expand_prologue): Likewise.
12891         (ix86_preferred_output_reload_class): Likewise.
12892         * cselib.c (cselib_record_sets): Likewise.
12893         * df-scan.c (df_scan_alloc): Likewise.
12894         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
12895         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
12896         * emit-rtl.c (try_split): Likewise.
12897         * graphite-scop-detection.c (assign_parameter_index_in_region):
12898         Likewise.
12899         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
12900         * ira-color.c (setup_profitable_hard_regs): Likewise.
12901         * ira.c (rtx_moveable_p): Likewise.
12902         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
12903         * read-rtl.c (read_subst_mapping): Likewise.
12904         * regrename.c (scan_rtx): Likewise.
12905         * reorg.c (fill_slots_from_thread): Likewise.
12906         * tree-inline.c (tree_function_versioning): Likewise.
12907         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
12908         * tree-ssa-sink.c (statement_sink_location): Likewise.
12909         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
12910         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
12911         (vect_create_epilog_for_reduction): Likewise.
12912         * tree.c (build_nonstandard_integer_type): Likewise.
12914 2019-06-27  Richard Biener  <rguenther@suse.de>
12916         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
12918 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
12920         PR tree-optimization/89772
12921         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
12922         out-of-bound accesses checking.
12924 2019-06-27  Martin Liska  <mliska@suse.cz>
12926         PR tree-optimization/91014
12927         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
12928         when LHS is NULL_TREE.
12930 2019-06-27  Martin Liska  <mliska@suse.cz>
12932         * symbol-summary.h (traverse): Pass
12933         argument a to the call of callback.
12934         (gt_ggc_mx): Mark arguments as unused.
12935         (gt_pch_nx): Likewise.
12937 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
12939         PR target/62147
12940         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
12941         finiteness.
12943 2019-06-26  Jeff Law  <law@redhat.com>
12945         PR tree-optimization/90883
12946         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
12947         (delete_dead_or_redundant_assignment): Likewise.
12949         PR tree-optimization/90883
12950         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
12951         * tree-ssa-dse.c: Update various comments to distinguish between
12952         dead and redundant stores.
12953         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
12954         (dse_optimize_redundant_stores): New function.
12955         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
12956         Distinguish between dead and redundant calls in dump output.  All
12957         callers updated.
12958         (delete_dead_or_redundant_assignment): Similarly for assignments.
12959         (dse_optimize_stmt): Handle _CHK variants.  For statements which
12960         store 0 into multiple memory locations, try to prove a subsequent
12961         store is redundant.
12963 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
12965         PR target/89021
12966         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
12967         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
12969 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
12971         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
12972         (branch_islands): New extern.
12973         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
12974         * config/rs6000/rs6000.c: .. here.
12976 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
12978         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
12979         (powerpc*-*-*) ... to here.
12981 2019-06-26  Jeff Law  <law@redhat.com>
12983         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
12984         memcpy, memmove and memset builtins.
12985         (maybe_trim_memstar_call): Likewise.
12987 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
12989         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
12991 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
12993         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
12995 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
12997         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
12998         declaration.
12999         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
13000         "static".
13001         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
13002         declaration.
13004 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
13006         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
13008 2019-06-26  Richard Biener  <rguenther@suse.de>
13010         PR ipa/90982
13011         * tree-inline.c (remap_ssa_name): Copy SSA range info.
13013 2019-06-26  Richard Biener  <rguenther@suse.de>
13015         * lto-streamer.h (lto_bitmap_alloc): Remove.
13016         (lto_bitmap_free): Likewise.
13017         * lto-streamer.c (lto_bitmap_alloc): Remove.
13018         (lto_bitmap_free): Likewise.
13019         (lto_obstack): Likewise.
13020         (lto_obstack_initialized): Likewise.
13021         * lto-streamer-out.c (lto_output): Use own obstack for local
13022         bitmap, free it consistently.
13024 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
13026         PR target/90991
13027         * config/i386/sse.md
13028         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
13029         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
13030         insns if operands[2] is misaligned_operand.
13032 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
13034         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
13035         TARGET_POWERPC64.
13036         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
13037         to GPR.
13039 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
13041         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
13043 2019-06-26  Martin Liska  <mliska@suse.cz>
13045         PR tree-optimization/90973
13046         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
13047         epilogue_cost_vec instead of prologue_cost_vec for
13048         a epilogue cost.
13050 2019-06-26  Martin Liska  <mliska@suse.cz>
13052         * bb-reorder.c (connect_better_edge_p): Add missing else
13053         statement in the middle of if-else statements.
13055 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
13056             H.J. Lu  <hongjiu.lu@intel.com>
13057             Olga Makhotina  <olga.makhotina@intel.com>
13059         * common/config/i386/i386-common.c
13060         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
13061         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
13062         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
13063         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
13064         (ix86_handle_option): Handle -mavx512vp2intersect.
13065         * config/i386/avx512vp2intersectintrin.h: New.
13066         * config/i386/avx512vp2intersectvlintrin.h: New.
13067         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
13068         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
13069         AVX512VP2INTERSECT.
13070         * config/i386/i386-builtin-types.def: Add new types.
13071         * config/i386/i386-builtin.def: Add new builtins.
13072         * config/i386/i386-builtins.c: (enum processor_features): Add
13073         F_AVX512VP2INTERSECT.
13074         (static const _isa_names_table isa_names_table): Ditto.
13075         * config/i386/i386-c.c (ix86_target_macros_internal): Define
13076         __AVX512VP2INTERSECT__.
13077         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
13078         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
13079         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
13080         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
13081         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
13082         * config/i386/i386-options.c (ix86_target_string): Add
13083         -mavx512vp2intersect.
13084         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
13085         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
13086         P2HImode and P2QImode.
13087         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
13088         number for P2QImode and P2HImode.
13089         (ix86_regmode_natural_size): New function.
13090         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
13091         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
13092         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
13093         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
13094         * config/i386/i386.opt: Add -mavx512vp2intersect.
13095         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
13096         avx512vp2intersectvlintrin.h.
13097         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
13098         (define_mode_iterator VI48_AVX512VP2VL): New.
13099         (avx512vp2intersect_2intersect<mode>,
13100         avx512vp2intersect_2intersectv16si): New define_insn patterns.
13101         * config.gcc: Add avx512vp2intersectvlintrin.h and
13102         avx512vp2intersectintrin.h to extra_headers.
13103         * doc/invoke.texi: Document -mavx512vp2intersect.
13105 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
13107         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
13109 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
13111         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
13112         savres_routine_syms, savres_routine_name, morestack_ref,
13113         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
13114         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
13115         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
13116         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
13117         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
13118         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
13119         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
13120         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
13121         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
13122         get_stack_clash_protection_probe_interval,
13123         get_stack_clash_protection_guard_size,
13124         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
13125         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
13126         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
13127         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
13128         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
13129         gen_frame_mem_offset, rs6000_savres_routine_name,
13130         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
13131         ptr_regno_for_savres, rs6000_emit_savres_rtx,
13132         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
13133         rs6000_global_entry_point_prologue_needed_p,
13134         rs6000_get_separate_components, rs6000_components_for_bb,
13135         rs6000_disqualify_components, rs6000_emit_prologue_components,
13136         rs6000_emit_epilogue_components, rs6000_set_handled_components,
13137         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
13138         rs6000_output_savres_externs, rs6000_output_function_prologue,
13139         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
13140         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
13141         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
13142         rs6000_output_function_epilogue, gen_add3_const,
13143         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
13144         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
13145         to rs6000-logue.c.
13146         (machine_function): Moved to rs6000.h.
13147         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
13148         rs6000-internal.h.
13149         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
13150         savres_routine_syms, savres_routine_name, morestack_ref,
13151         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
13152         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
13153         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
13154         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
13155         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
13156         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
13157         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
13158         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
13159         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
13160         get_stack_clash_protection_probe_interval,
13161         get_stack_clash_protection_guard_size,
13162         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
13163         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
13164         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
13165         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
13166         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
13167         gen_frame_mem_offset, rs6000_savres_routine_name,
13168         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
13169         ptr_regno_for_savres, rs6000_emit_savres_rtx,
13170         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
13171         rs6000_global_entry_point_prologue_needed_p,
13172         rs6000_get_separate_components, rs6000_components_for_bb,
13173         rs6000_disqualify_components, rs6000_emit_prologue_components,
13174         rs6000_emit_epilogue_components, rs6000_set_handled_components,
13175         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
13176         rs6000_output_savres_externs, rs6000_output_function_prologue,
13177         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
13178         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
13179         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
13180         rs6000_output_function_epilogue, gen_add3_const,
13181         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
13182         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
13183         to here from rs6000.c.
13184         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
13185         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
13186         quad_address_offset_p) Moved to here from rs6000.c.
13187         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
13188         * config/config.gcc: Add new source file rs6000-logue.c to garbage
13189         collector.
13191 2019-06-25  Martin Liska  <mliska@suse.cz>
13193         * hash-table.c (hashtab_chk_error): Move here from ...
13194         * hash-table.h (hashtab_chk_error): ... here.
13196 2019-06-25  Martin Liska  <mliska@suse.cz>
13198         PR tree-optimization/90978
13199         * df-scan.c (df_update_entry_block_defs): Remove dead else
13200         branch.
13201         (df_update_exit_block_uses): Likewise.
13203 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
13204             Andrew Stubbs  <ams@codesourcery.com>
13206         * config.gcc (thread_file): Set to gcn for AMD GCN.
13207         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
13208         (TARGET_EMUTLS_VAR_INIT): New hook.
13210 2019-06-25  Martin Jambor  <mjambor@suse.cz>
13212         PR ipa/90939
13213         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
13215 2019-06-25  Richard Biener  <rguenther@suse.de>
13217         PR tree-optimization/90930
13218         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
13219         into parallel form in the last pass instance.
13221 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
13223         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
13224         (arc_legitimize_pic_address): Simplify and cleanup the function.
13225         (SYMBOLIC_CONST): Remove.
13226         (prepare_pic_move): Likewise.
13227         (prepare_move_operands): Handle complex mov cases here.
13228         (arc_legitimize_address_0): Remove call to
13229         arc_legitimize_pic_address.
13230         (arc_legitimize_address): Remove call to
13231         arc_legitimize_tls_address.
13232         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
13233         (movhi_insn): Likewise.
13235 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13237         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
13238         PTRDIFF_TYPE.
13239         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
13240         format of "__intN" types for UINTMAX_TYPE.
13241         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
13242         format of "__intN" types for SIZETYPE.
13243         * tree.c (build_common_tree_nodes): Accept "__intN__"
13244         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
13245         * doc/invoke.texi: Document that __intN__ disables pedantic
13246         warnings.
13248 2019-06-25  Jan Hubicka  <jh@suse.cz>
13250         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
13251         base2_alias_set is non-zero before doing TBAA based disambiguation.
13253 2019-06-25  Martin Liska  <mliska@suse.cz>
13255         PR tree-optimization/90973
13256         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
13257         of prologue and epilogue.
13259 2019-06-24  Jan Hubicka  <jh@suse.cz>
13261         * ipa-utils.h (type_with_linkage_p): Verify that type is
13262         CXX_ODR_P.
13263         (odr_type_p): Remove extra return.
13264         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
13265         hash STRING_FLAG only for arrays and integers.
13266         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
13267         Update analogously.
13268         * tree-streamer-out.c (pack_ts_type_common_value_fields):
13269         Likewise.
13270         * print-tree.c (print_node): Print cxx-odr-p
13271         and string-flag.
13272         * tree.c (need_assembler_name_p): Also check that type
13273         is CXX_ODR_TYPE_P
13274         (verify_type_variant): Update verification of SRING_FLAG;
13275         also check CXX_ODR_P.
13276         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
13277         (TYPE_STRING_FLAG): Use it.
13278         (TYPE_CXX_ODR_P): New macro.
13279         * dwarf2out.c (gen_array_type_die): First check that type
13280         is an array and then test string flag.
13282 2019-06-24  Richard Biener  <rguenther@suse.de>
13284         PR tree-optimization/90972
13285         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
13286         in common code, dealing with STRING_CST properly.
13288 2019-06-24  Richard Biener  <rguenther@suse.de>
13290         PR tree-optimization/90930
13291         PR tree-optimization/90316
13292         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
13293         decrement of limit.
13295 2019-06-24  Martin Sebor  <msebor@redhat.com>
13297         * tree-pretty-print.h: Remove unnecessary punctuation characters
13298         from a diagnostic.
13299         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
13301 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
13303         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
13304         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
13305         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
13307 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
13309         * config/rs6000/darwin.h: Handle GCC target pragma.
13311 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
13313         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
13315 2019-06-22  Jeff Law  <law@redhat.com>
13317         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13319 2019-06-22  Jan Hubicka  <jh@suse.cz>
13321         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
13322         give up on bitfields; continue searching for different refs
13323         appearing later.
13325 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
13327         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
13328         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
13329         containing the offset as possible simd lane access.  Look through
13330         widening conversion.  Move the
13331         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
13333 2019-06-21  Richard Biener  <rguenther@suse.de>
13335         PR tree-optimization/90930
13336         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
13337         flag on new stmts to avoid re-processing them.
13339 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
13341         PR c++/90875 - added -Wswitch-outside-range option
13342         * doc/invoke.texi (Wswitch-outside-range): Document.
13344 2019-06-21  Jeff Law  <law@redhat.com>
13346         PR tree-optimization/90949
13347         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
13348         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
13350 2019-06-21  Richard Biener  <rguenther@suse.de>
13352         PR debug/90914
13353         * dwarf2out.c (prune_unused_types_walk): Always consider
13354         function-local extern declarations as used.
13356 2019-06-21  Richard Biener  <rguenther@suse.de>
13358         PR tree-optimization/90913
13359         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
13360         the scalar variant of if-conversion versioning.
13362 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
13364         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
13365         create another "omp scan inscan exclusive" array if
13366         !ctx->scan_inclusive.
13367         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
13368         (lower_omp_scan): Likewise.
13369         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
13370         2-bit bitfield for simd_lane_access_p member.
13371         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
13372         aux == (void *)-4 as simd lane access.
13373         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
13374         comment with permutations to show the canonical permutation order.
13375         (vectorizable_scan_store): Handle exclusive scan.
13376         (vectorizable_store): Call vectorizable_scan_store even for
13377         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
13379         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
13380         "omp simd array" arrays with one byte elements.
13382 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13384         * config/alpha/alpha.md (@unaligned_store<mode>):
13385         Rename from unaligned_store<mode>.
13386         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
13387         * config/alpha/sync.md (@load_locked_<mode>): Rename
13388         from load_locked_<mode>.
13389         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
13390         (@atomic_compare_and_swap<mode>_1): Rename
13391         from atomic_compare_and_swap<mode>_1.
13392         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
13393         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
13394         Use gen_reload_in_aligned and gen_unaligned_store.
13395         (emit_load_locked): Remove.
13396         (emit_store_conditional): Ditto.
13397         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
13398         (alpha_split_compare_and_swap): Ditto.
13399         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
13400         (alpha_split_compare_and_swap_12): Use gen_load_locked
13401         and gen_store_conditional.
13402         (alpha_split_atomic_exchange): Ditto.
13403         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
13404         (alpha_split_atomic_exchange_12): Use gen_load_locked
13405         and gen_store_conditional.
13407 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
13409         * config/aarch64/aarch64-errata.h: New file.
13410         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
13411         (CA53_ERR_843419_SPEC): Delete.
13412         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
13413         * config/aarch64/aarch64-linux.h: Likewise.
13414         * config/aarch64/aarch64-netbsd.h: Likewise.
13415         * config/aarch64/aarch64-freebsd.h: Likewise.
13417 2019-06-20  Marek Polacek  <polacek@redhat.com>
13419         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
13421 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
13423         * config/rs6000/rs6000.md (isa attribute): Add support for
13424         for a future processor.
13426 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
13428         PR target/54855
13429         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
13430         standard scalar operation pattern for V2DF.
13431         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
13432         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
13433         (*ieee_<ieee_maxmin><mode>3): Likewise.
13434         (vec_setv2df_0): Likewise.
13436 2019-06-20  Jan Hubicka  <jh@suse.cz>
13438         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
13439         parameter; it has no use in gimple memory model.
13440         (indirect_ref_may_alias_decl_p): Update.
13442 2019-06-20  Martin Liska  <mliska@suse.cz>
13444         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
13445         to 10.
13447 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
13449         * tree-vect-stmts.c (enum scan_store_kind): New type.
13450         (scan_store_can_perm_p): Change last argument from int * to
13451         vec<enum scan_store_kind> *, record precisely which permutations
13452         need whole vector left shift or that plus VEC_COND_EXPR.
13453         (vectorizable_scan_store): Adjust caller, use whole vector left shift
13454         and additional VEC_COND_EXPR only for those iterations that need it.
13456 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
13458         * config.gcc: Fix ARM --with-fpu checking and error message.
13460 2019-06-19  Marek Polacek  <polacek@redhat.com>
13462         PR c++/60364 - noreturn after first decl not diagnosed.
13463         * attribs.c (get_attribute_namespace): No longer static.
13464         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
13465         attributes.
13466         (attr_noreturn_exclusions): Make it extern.
13467         * attribs.h (get_attribute_namespace): Declare.
13468         * tree-inline.c (function_attribute_inlinable_p): Use
13469         get_attribute_name.
13471 2019-06-19  Martin Sebor  <msebor@redhat.com>
13473         PR tree-optimization/90626
13474         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
13476         PR tree-optimization/90626
13477         * tree-ssa-strlen.c (strxcmp_unequal): New function.
13478         (handle_builtin_string_cmp): Call it.
13480 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
13482         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
13483         and DARWIN_NOPIE_SPEC.
13484         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
13485         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
13486         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
13487         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
13488         (DARWIN_EXPORT_DYNAMIC): Delete.
13489         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
13490         and pie options processing to  darwin.h.
13491         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
13493 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
13495         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
13496         in computing the number of options to be moved.
13498 2019-06-19  Maya Rashish  <coypu@sdf.org>
13500         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
13501         (CLEAR_INSN_CACHE) Use it.
13503 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13505         * config/i386/i386.md (cmpstrnsi): Remove dead code.
13507 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
13509         PR middle-end/84521
13510         * builtins.c (expand_builtin_setjmp_setup): Save
13511         hard_frame_pointer_rtx.
13512         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
13513         restore fp.
13514         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
13515         non-local goto.
13516         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
13517         elimination code.
13518         (remove_reg_equal_offset_note): Remove unused function.
13519         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
13520         code.
13521         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13522         (arc_builtin_setjmp_frame_value): Remove function.
13523         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13524         (avr_builtin_setjmp_frame_value): Remove function.
13525         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13526         (ix86_builtin_setjmp_frame_value): Remove function.
13527         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
13528         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13529         (sparc_builtin_setjmp_frame_value): Remove function.
13530         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
13531         (vax_builtin_setjmp_frame_value): Remove function.
13532         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
13533         pointer if has_nonlocal_label.
13535 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
13537         * doc/md.texi: Document vec_shl_<mode> pattern.
13538         * optabs.def (vec_shl_optab): New optab.
13539         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
13540         argument, if == vec_shl_optab, check for left whole vector shift
13541         pattern rather than right shift.
13542         (expand_vec_perm_const): Add vec_shl_optab support.
13543         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
13544         in the comment.
13545         * tree-vect-generic.c (lower_vec_perm): Support permutations which
13546         can be handled by vec_shl_optab.
13547         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
13548         (check_scan_store): Use it.
13549         (vectorizable_scan_store): If target can't do normal permutations,
13550         try to use whole vector left shifts and if needed a VEC_COND_EXPR
13551         after it.
13552         * config/i386/sse.md (vec_shl_<mode>): New expander.
13554         * omp-low.c (lower_rec_input_clauses): Handle references properly
13555         in inscan clauses.
13556         (lower_omp_scan): Likewise.
13558 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
13560         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
13561         mem_mode is BLKmode.
13563 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
13565         PR target/90922
13566         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
13567         pointer adjustment for the case of no callee-saved registers and
13568         stack frame bigger than 128 bytes.
13570 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
13572         PR middle-end/90862
13573         * omp-low.c (check_omp_nesting_restrictions): Handle
13574         GF_OMP_TARGET_KIND_OACC_DECLARE.
13576 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13578         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
13579         (@add<mode>3_carry): Rename from add<mode>3_carry.
13580         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
13581         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
13582         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
13583         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
13584         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
13585         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
13586         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
13587         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
13588         (cmpstrnsi): Use gen_cmp_1.
13589         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
13590         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
13591         (@umonitor_<mode>): Rename from umonitor_<mode>.
13592         * config/i386/i386-expand.c (ix86_expand_copysign):
13593         Use gen_copysign3_const and gen_copysign3_var.
13594         (ix86_expand_xorsign): Use gen_xorsign3_1.
13595         (ix86_expand_branch): Use gen_sub3_carry_ccc,
13596         gen_sub3_carry_ccgz and gen_cmp1.
13597         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
13598         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
13599         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
13600         (ix86_split_lshr): Ditto.
13601         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
13603 2019-06-18  Jason Merrill  <jason@redhat.com>
13605         * tree.c (build_constructor): Add MEM_STAT_DECL.
13607 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13609         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
13610         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
13611         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
13612         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
13613         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
13614         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
13615         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
13616         Use CC_NZC instead of CC.
13617         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
13618         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
13619         (aarch64_print_operand): Handle E_CC_NZCmode.
13620         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
13621         of gen_set_clobber_cc.
13623 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13625         * config/aarch64/aarch64-sve.md: Tabify file.
13627 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13629         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
13630         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
13631         * config/aarch64/aarch64-sve.md: Use it.
13633 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13635         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
13636         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
13637         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
13638         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
13639         (aarch64_expand_sve_vec_cmp_int): Use it.
13640         (aarch64_expand_sve_vec_cmp_float): Likewise.
13641         * config/aarch64/aarch64-sve.md: Likewise throughout.
13643 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13644             Kugan Vivekanandarajah  <kuganv@linaro.org>
13646         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
13647         (*cond_<optab><mode>_z): Fold into...
13648         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
13649         operand 4 can be tied to operand 0 (either inherently or via RA).
13651 2019-06-18  Richard Biener  <rguenther@suse.de>
13653         PR debug/90900
13654         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
13655         as if optimized away.
13657 2019-06-18  Tom de Vries  <tdevries@suse.de>
13659         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
13660         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
13661         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
13662         Rename to ...
13663         (define_insn "@set_softstack_<mode>"): ... this.
13664         (define_insn "omp_simt_enter_<mode>"): Rename to ...
13665         (define_insn "@omp_simt_enter_<mode>"): ... this.
13666         (define_insn "omp_simt_exit_<mode>"): Rename to ...
13667         (define_insn "@omp_simt_exit_<mode>"): ... this.
13669 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
13671         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
13672         vf parameter.  Restore the previous iv step of nscalars_step,
13673         but give it iv_type rather than compare_type.  Tweak code order
13674         to match the comments.
13675         (vect_set_loop_condition_masked): Update accordingly.
13676         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
13677         for iv_precision.  Tweak comment formatting.
13679 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
13681         * config/darwin.c: Strip trailing whitespace.
13683 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
13685         * config/darwin.c (darwin_emit_unwind_label): New default to false.
13686         (darwin_override_options): Set darwin_emit_unwind_label as needed.
13688 2019-06-18  Martin Jambor  <mjambor@suse.cz>
13690         PR ipa/90889
13691         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
13692         caller does not have flag_ipa_cp set.
13694 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
13696         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
13697         from "*fold_left_plus_<mode>", updated operands order.
13698         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
13699         * internal-fn.c (mask_fold_left_direct): New define.
13700         (expand_mask_fold_left_optab_fn): Likewise.
13701         (direct_mask_fold_left_optab_supported_p): Likewise.
13702         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
13703         * optabs.def (mask_fold_left_plus_optab): New optab.
13704         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
13705         masked internal_fn for a reduction ifn.
13706         (vectorize_fold_left_reduction): Add support for masking reductions.
13708 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
13710         PR middle-end/80791
13711         * target.def (predict_doloop_p): New hook.
13712         * targhooks.h (default_predict_doloop_p): New declaration.
13713         * targhooks.c (default_predict_doloop_p): New function.
13714         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
13715         * doc/tm.texi: Regenerate.
13716         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
13717         (TARGET_PREDICT_DOLOOP_P): New macro.
13718         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
13720 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
13722         * omp-low.c (struct omp_context): Add scan_inclusive field.
13723         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
13724         if inclusive scan.
13725         (struct omplow_simd_context): Add lastlane member.
13726         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
13727         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
13728         1 or 2 argument.
13729         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
13730         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
13731         (lower_omp_scan): New function.
13732         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
13733         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
13734         check 3rd argument if present rather than 2nd.
13735         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
13736         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
13737         2-bit bitfield.
13738         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13739         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
13740         than 2nd.
13741         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
13742         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
13743         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
13744         init.
13745         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
13746         IFN_GOMP_SIMD_LANE argument.
13747         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
13748         encoded ->aux value.
13749         * tree-vect-stmts.c: Include attribs.h.
13750         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
13751         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
13752         functions.
13753         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
13754         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
13756 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13758         PR target/62055
13759         * config/i386/i386.md (*nabstf2_1): New insn pattern.
13760         (*nabs<mode>2_1): Ditto.
13761         (nabs sse-reg splitter): New splitter.
13762         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
13764 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
13766         PR bootstrap/90873.
13767         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
13768         TMR index check.
13770 2019-06-17  Tom de Vries  <tdevries@suse.de>
13772         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
13773         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
13774         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
13775         ...
13776         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
13777         match_operand 0.
13778         (define_insn "omp_simt_enter_insn"): Rename to ...
13779         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
13780         match_operand 0, 1 and 2, as well as the unspec_volatile result.
13781         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
13782         gen_omp_simt_enter_si.
13783         (define_expand "omp_simt_exit"): New.
13784         (define_insn "omp_simt_exit"): Rename to ...
13785         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
13786         match_operand 0.
13788 2019-06-17  Matthew Green  <mrg@eterna.com.au>
13789             Maya Rashish  <coypu@sdf.org>
13791         * config.gcc (aarch64*-*-netbsd*): New target.
13792         * config/aarch64/aarch64-netbsd.h: New file.
13793         * config/aarch64/t-aarch64-netbsd: Likewise.
13795 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
13797         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
13798         the access path from base to first VIEW_CONVERT_EXPR or
13799         BIT_FIELD_REF.
13801 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
13803         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
13804         access path on BIT_FIELD_REFs.
13806 2019-06-17  Martin Liska  <mliska@suse.cz>
13808         PR ipa/90874
13809         * ipa-utils.h (odr_type_p): Remove dead code.
13811 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
13813         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
13814         alternative Solaris 11.4 format.
13815         * configure: Regenerate.
13817 2019-06-17  Tom de Vries  <tdevries@suse.de>
13819         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
13820         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
13821         match_operand 0.
13822         (define_insn "call_value_insn"): Rename to ...
13823         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
13824         match_operand 0.
13825         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
13826         DI.
13828 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
13830         PR middle-end/64242
13831         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
13832         frame clobbers and schedule block.
13833         (builtin_longjmp): Likewise.
13835 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13837         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
13838         describe how to perform MSPABI compliant 64-bit shift.
13839         * config/msp430/msp430.md (ashldi3): New define_expand.
13840         (ashrdi3): New define_expand.
13841         (lshrdi3): New define_expand.
13843 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
13845         * doc/sourcebuild.texi: Document new effective target keyword
13846         longlong64.
13848 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
13850         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
13851         indirect_refs_may_alias_p): Revert accidental commits.
13853         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
13854         at the end of structures.
13856 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
13858         * config/darwin.c (machopic_indirect_call_target): Use renamed
13859         darwin_picsymbol_stubs to decide on output.
13860         (darwin_override_options): Handle darwin_picsymbol_stubs.
13861         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
13862         (LD64_VERSION): Revise default.
13863         * config/darwin.opt: (mpic-symbol-stubs): New option.
13864         (darwin_picsymbol_stubs): New variable.
13865         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
13866         rename to TARGET_MACHO_PICSYM_STUBS.
13867         * config/i386/i386.c (output_pic_addr_const): Likewise.
13868         * config/i386/i386.h Likewise.
13869         * config/rs6000/darwin.h: Likewise.
13870         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
13871         darwin_picsymbol_stubs.
13873 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
13875         * config/darwin.opt (prebind, noprebind, seglinkedit,
13876         noseglinkedit): Add RejectNegative.
13878 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
13880         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
13881         in my previous patch.
13883 2019-06-16  Tom de Vries  <tdevries@suse.de>
13885         PR tree-optimization/89376
13886         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
13888 2019-06-15  Maya Rashish  <coypu@sdf.org>
13890         * doc/invoke.texi (Spec Files): Update location of the
13891         Fortran spec file.
13893 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
13895         * doc/extend.texi (Common Function Attributes): Clarify
13896         no_sanitize.  Fix grammar.
13898 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
13900         * tree-ssa-alias.c (alias_stats): Add
13901         nonoverlapping_component_refs_p_may_alias,
13902         nonoverlapping_component_refs_p_no_alias,
13903         nonoverlapping_component_refs_of_decl_p_may_alias,
13904         nonoverlapping_component_refs_of_decl_p_no_alias.
13905         (dump_alias_stats): Dump them.
13906         (nonoverlapping_component_refs_of_decl_p): Add stats.
13907         (nonoverlapping_component_refs_p): Add stats; do not stop on first
13908         ARRAY_REF.
13910 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13912         * config/i386/i386.md (and<mode>3): Generate zero-extends for
13913         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
13914         only.
13915         (*anddi3_doubleword): Split before reload. Merge with
13916         anddi->zext pre-reload splitter.
13917         (*andndi3_doubleword): Split before reload.
13918         (*<code>di3_doubleword): Ditto.
13919         (*one_cmpldi2_doubleword): Ditto.
13921 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
13923         PR middle-end/90779
13924         * gimplify.c: Include omp-offload.h and context.h.
13925         (gimplify_bind_expr): Add "omp declare target" attributes
13926         to static block scope variables inside of target region or target
13927         functions.
13929 2019-06-15  Tom de Vries  <tdevries@suse.de>
13931         PR tree-optimization/90009
13932         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
13933         Return NULL if bb contains IFN_UNIQUE.
13935 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
13937         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
13938         (un): New define_mode_attr.
13939         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
13940         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
13941         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
13942         merge into ...
13943         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
13945 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
13947         * config/darwin.opt: Add RejectNegative where needed, reorder
13948         and add minimal functional descriptions.
13950 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13952         PR rtl-optimization/90765
13953         * calls.c (update_stack_alignment_for_call): New function.
13954         (expand_call): Call update_stack_alignment_for_call when
13955         outgoing parameter is passed in the stack.
13956         (emit_library_call_value_1): Likewise.
13957         * function.c (locate_and_pad_parm): Don't update
13958         stack_alignment_needed and preferred_stack_boundary.
13960 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
13962         PR target/90877
13963         * config/i386/i386-features.c
13964         (dimode_scalar_chain::compute_convert_gain): Replace
13965         mmxsse_to_integer with sse_to_integer.
13966         * config/i386/i386.c (ix86_register_move_cost): Verify that
13967         moves between MMX and non-MMX units require secondary memory.
13968         Correct costs of moves between SSE and integer units.
13969         * config/i386/i386.h (processor_costs): Rename cost of moving
13970         SSE register to integer to sse_to_integer.  Rename cost of
13972 2019-06-14  Matt Thomas  <matt@3am-software.com>
13973             Matthew Green  <mrg@eterna.com.au>
13974             Nick Hudson  <skrll@netbsd.org>
13975             Maya Rashish  <coypu@sdf.org>
13976             Richard Earnshaw  <rearnsha@arm.com>
13978         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
13979         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
13980         * config/arm/netbsd-eabi.h: New file.
13981         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
13982         redefining.
13983         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
13984         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
13985         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
13986         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
13988 2019-06-14  Richard Biener  <rguenther@suse.de>
13990         * tree-loop-distribution.c (classify_partition): Return
13991         whether a reduction appeared in all partitions and do not
13992         stop builtin detection because of this.
13993         (distribute_loop): Sort a non-builtin partition last if
13994         there's a reduction in all partitions and make sure the
13995         partition prevailing as last is not a builtin.
13997 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
13999         PR ipa/90401
14000         * ipa-prop.c (add_to_agg_contents_list): New function.
14001         (clobber_by_agg_contents_list_p): Likewise.
14002         (extract_mem_content): Likewise.
14003         (get_place_in_agg_contents_list): Delete.
14004         (determine_known_aggregate_parts): Renamed from
14005         determine_locally_known_aggregate_parts.  New parameter
14006         aa_walk_budget_p.
14008 2019-06-13  Martin Sebor  <msebor@redhat.com>
14010         PR tree-optimization/90662
14011         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
14012         to the same type.
14014 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
14016         PR bootstrap/90873
14017         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
14018         dbase is not TARGET_MEM_REF.
14020 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14022         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
14023         Update all uses.
14024         (and<mode>3): Use gen_extend_insn instead of indirect functions.
14025         Do not generate DImode extends for 32bit targets.
14026         (and->zext post-reload splitter): Use gen_extend_insn
14027         instead of indirect functions.
14028         (anddi->zext pre-reload splitter): New.
14029         (*zext<mode>_doubleword_and): Remove.
14030         (*zext<mode>_doubleword): Ditto.
14031         (*zextsi_doubleword): Dittto.
14033 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14035         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
14036         Use gen_sub3_insn instead of indirect function.
14037         (ix86_expand_ashl_const): Use gen_add2_insn instead of
14038         indirect function.
14039         (ix86_adjust_counter): Ditto.
14041 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
14042             Lijia He  <helijia@linux.ibm.com>
14044         PR tree-optimization/77820
14045         * tree-ssa-threadedge.c
14046         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
14047         function.
14048         (thread_across_edge): Add call to
14049         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
14051 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
14053         * config/darwin-driver.c (validate_macosx_version_min): New.
14054         (darwin_default_min_version): Cleanup and validate supplied version.
14055         (darwin_driver_init): Likewise and push cleaned version into opts.
14057 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
14059         PR tree-optimization/90869
14060         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
14061         converts in MEM_REF referencing decl rather than view converts
14062         from decl type to MEM_REF type.
14064 2019-06-13  Richard Biener  <rguenther@suse.de>
14066         PR tree-optimization/90856
14067         * tree-sra.c (build_ref_for_model): Only use
14068         build_reconstructed_reference when address-spaces are the same.
14070 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
14072         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
14073         wrap ei variable name in the declaration in ()s.
14074         (nvptx_single): Actually use mode_label variable.  Formatting fix.
14076 2019-06-13  Richard Biener  <rguenther@suse.de>
14078         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
14079         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
14080         also return the condition stmt.
14081         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
14082         loop we can version and version that, reusing the loop version
14083         created by if-conversion instead of versioning again.
14085 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
14087         * gimple-loop-versioning.cc (prune_loop_conditions): Use
14088         may_contain_p.
14089         * tree-vrp (value_range_base::may_contain_p): Call into
14090         value_inside_range.
14091         (value_inside_range): Make private inside value_range_base class.
14092         Take min/max from *this.
14093         (range_includes_p): Remove.
14094         * tree-vrp.h (value_range_base): Add value_inside_range.
14095         (range_includes_p): Remove.
14096         (range_includes_zero_p): Call may_contain_p.
14097         * vr-values.c (compare_range_with_value): Same.
14099 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
14101         * doc/extend.texi (ARC Function Attributes): Update info.
14103 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
14105         PR tree-optimization/89713
14106         * doc/invoke.texi (-ffinite-loops): Document new option.
14107         * common.opt (-ffinite-loops): New option.
14108         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
14109         IFN_GOACC_LOOP calls as necessary.
14110         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
14111         is finite.
14112         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
14113         IFN_GOACC_LOOP call is not used.
14114         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
14116 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
14118         PR target/88838
14119         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
14120         compare_type is not with Pmode size, we will create an IV with
14121         Pmode size with truncated use (i.e. converted to the correct type).
14122         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
14123         (vect_iv_limit_for_full_masking): New. Factored out of
14124         vect_set_loop_condition_masked.
14125         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
14126         (vect_iv_limit_for_full_masking): Declare.
14128 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
14130         PR target/88834
14131         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
14132         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
14133         (get_alias_ptr_type_for_ptr_address): Likewise.
14134         (add_iv_candidate_for_use): Add scaled index candidate if useful.
14135         * tree-ssa-address.c (preferred_mem_scale_factor): New.
14136         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
14137         allow_reg_index_p.
14139 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
14141         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
14143 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
14145         * common/config/pru/pru-common.c: New file.
14146         * config.gcc: Add PRU target.
14147         * config/pru/alu-zext.md: New file.
14148         * config/pru/constraints.md: New file.
14149         * config/pru/predicates.md: New file.
14150         * config/pru/pru-opts.h: New file.
14151         * config/pru/pru-passes.c: New file.
14152         * config/pru/pru-pragma.c: New file.
14153         * config/pru/pru-protos.h: New file.
14154         * config/pru/pru.c: New file.
14155         * config/pru/pru.h: New file.
14156         * config/pru/pru.md: New file.
14157         * config/pru/pru.opt: New file.
14158         * config/pru/t-pru: New file.
14159         * doc/extend.texi: Document PRU pragmas.
14160         * doc/invoke.texi: Document PRU-specific options.
14161         * doc/md.texi: Document PRU asm constraints.
14163 2019-06-12  Martin Sebor  <msebor@redhat.com>
14165         PR middle-end/90676
14166         * tree-pretty-print.c (dump_mem_ref): New function.  Include
14167         MEM_REF type in output when different size than operand.
14168         (dump_generic_node): Move code to dump_mem_ref and call it.
14170 2019-06-12  Martin Sebor  <msebor@redhat.com>
14172         PR tree-optimization/90662
14173         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
14174         to arrays.
14176 2019-06-12  Tom de Vries  <tdevries@suse.de>
14178         PR tree-optimization/90009
14179         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
14181 2019-06-12  Martin Liska  <mliska@suse.cz>
14183         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
14184         the created map.
14185         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
14186         * mem-stats.h (mem_alloc_description::mem_alloc_description):
14187         Do not sanitize created maps.
14189 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
14191         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
14192         value_range::singleton_p.
14193         * tree-vrp.c (value_range_constant_singleton): Remove.
14194         * tree-vrp.h (value_range_constant_singleton): Remove.
14195         * vr-values.c (vr_values::singleton): Use
14196         value_range::singleton_p.
14198 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
14200         PR target/90811
14201         * cfgexpand.c (align_local_variable): Add really_expand argument,
14202         don't SET_DECL_ALIGN if it is false.
14203         (add_stack_var): Add really_expand argument, pass it through to
14204         align_local_variable.
14205         (expand_one_stack_var_1): Pass true as really_expand to
14206         align_local_variable.
14207         (expand_one_ssa_partition): Pass true as really_expand to
14208         add_stack_var.
14209         (expand_one_var): Pass really_expand through to add_stack_var.
14211 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
14213         * config/arm/iterators.md (VABAL): New int iterator.
14214         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
14215         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
14216         UNSPEC_VABAL_U values.
14218 2019-06-12  Martin Liska  <mliska@suse.cz>
14220         * value-prof.c (stream_out_histogram_value): Only first value
14221         can't be negative.
14223 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
14225         PR c/90760
14226         * symtab.c (symtab_node::set_section): Allow being called on aliases
14227         as long as they aren't analyzed yet.
14229 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
14231         * config/mips/mips.c (mips_final_postscan_insn): Modify call
14232         to `mips_set_text_contents_type' to indicate whether a
14233         non-debug insn follows.
14235 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
14237         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
14238         enabling -mpcrel by default.
14239         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
14240         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
14241         that the test against -mcpu=future is done first.  Then test if
14242         -mprefixed-addr is on for -mpcrel.
14243         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
14245 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
14247         PR target/90811
14248         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
14249         instead of and.u%d.
14251 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
14253         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
14255 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
14257         PR c++/90449 - add -Winaccessible-base option.
14258         * doc/invoke.texi (Winaccessible-base): Document.
14260 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
14262         PR tree-optimization/62041
14263         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
14265 2019-06-11  Jason Merrill  <jason@redhat.com>
14267         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
14268         * tree.c (get_tree_code_name): Likewise.
14269         * print-tree.c (print_node): Only briefly print a node with an
14270         invalid code.
14272 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
14274         PR bootstrap/90819
14275         * trans-mem.c (tm_memopt_compute_available): Add assertion
14276         that blocks is not empty.  Formatting fix.
14278 2019-06-11  Martin Liska  <mliska@suse.cz>
14280         PR c++/87847
14281         * hash-table.h: Extend create_gcc, add one parameter
14282         that is passed into hash_table::hash_table.
14284 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14286         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
14287         New prototype.
14288         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
14289         Emit clobber also for non-sse operations.
14290         (ix86_split_fp_absneg_operator): New function.
14291         * config/i386/i386.md (SSEMODEF): New mode iterator.
14292         (ssevecmodef): New mode attribute.
14293         (<code>tf2): Use absneg code iterator.
14294         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
14295         Add three-operand AVX alternatives.
14296         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
14297         Use absneg code iterator and X87MODEF mode iterator.
14298         (absneg fp_reg non-sse splitter): Call absneg code iterator
14299         and X87MODEF mode iterator.
14300         (absneg general_reg non-sse splitter): Use absneg code iterator
14301         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
14302         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
14303         code iterator.  Add three-operand AVX alternative.
14304         (absneg sse_reg splitter): Use absneg code iterator
14305         and SSEMODEF mode iterator.  Handle AVX operands.
14306         (absneg fp_reg splitter): Use absneg code iterator
14307         and MODEF mode iterator.
14308         (absneg general_reg splitter): Merge splitters using MODEF mode
14309         iterator.  Use absneg code iterator.  Call
14310         ix86_split_fp_absneg_operator.
14311         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
14312         Do not enable for non-sse modes before reload.
14313         (CSGNMODE): Remove.
14314         (CSGNVMODE): Ditto.
14315         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
14316         ssevecmodef mode attribute instaed of CSGNVMODE.
14317         (copysign<mode>3_const): Ditto.
14318         (copysign<mode>3_var): Ditto.
14319         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
14320         Use absneg code iterator.  Simplify code using std::swap.
14321         * config/i386/predicates.md (absneg_operator): Remove.
14323 2019-06-10  Martin Sebor  <msebor@redhat.com>
14325         * gimple-fold.c (get_range_strlen): Update comment that didn't
14326         make it into r267503 or related commits.
14328 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
14330         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
14331         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
14333 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
14335         * tree.def (OMP_SCAN): New tree code.
14336         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
14337         OMP_CLAUSE_EXCLUSIVE.
14338         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
14339         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
14340         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
14341         OMP_CLAUSE_{IN,EX}CLUSIVE.
14342         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
14343         * tree-nested.c (convert_nonlocal_reference_stmt,
14344         convert_local_reference_stmt, convert_gimple_call): Handle
14345         GIMPLE_OMP_SCAN.
14346         * tree-pretty-print.c (dump_omp_clause): Handle
14347         OMP_CLAUSE_{IN,EX}CLUSIVE.
14348         (dump_generic_node): Handle OMP_SCAN.
14349         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
14350         * gimple.h (gomp_scan): New type.
14351         (is_a_helper <gomp_scan *>::test,
14352         is_a_helper <const gomp_scan *>::test): New templates.
14353         (gimple_build_omp_scan): Declare.
14354         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
14355         gimple_omp_scan_set_clauses): New inline functions.
14356         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
14357         * gimple.c (gimple_build_omp_scan): New function.
14358         (gimple_copy): Handle GIMPLE_OMP_SCAN.
14359         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
14360         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
14361         GIMPLE_OMP_TASKGROUP.
14362         (dump_gimple_omp_scan): New function.
14363         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
14364         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
14365         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
14366         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
14367         (is_gimple_stmt): Handle OMP_SCAN.
14368         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
14369         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
14370         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
14371         mentioned in nested #pragma omp scan.  Handle
14372         OMP_CLAUSE_{IN,EX}CLUSIVE.
14373         (gimplify_expr): Handle OMP_SCAN.
14374         * omp-low.c (check_omp_nesting_restrictions): For parent context,
14375         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
14376         simd constructs.
14377         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
14378         GIMPLE_OMP_SCAN.
14380 2019-06-10  Martin Liska  <mliska@suse.cz>
14382         * ipa-cp.c (ignore_edge_p): New function.
14383         (build_toporder_info): Use it.
14384         * ipa-inline.c (ignore_edge_p): New function.
14385         (inline_small_functions): Use it.
14386         * ipa-pure-const.c (ignore_edge_for_nothrow):
14387         Verify opt_for_fn for caller and callee.
14388         (ignore_edge_for_pure_const): Likewise.
14389         * ipa-reference.c (ignore_edge_p): Extend to check
14390         for opt_for_fn.
14391         * ipa-utils.c (searchc): Refactor.
14392         * ipa-utils.h: Fix coding style.
14394 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
14396         * config/arc/arc.c (arc_rtx_costs): Update costs.
14398 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
14400         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
14401         (arc_split_ior): Likewise.
14402         (arc_check_mov_const): Likewise.
14403         (arc_split_mov_const): Likewise.
14404         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
14405         (arc_rtx_costs): Replace check Crr with Cax constraint.
14406         (prepare_move_operands): Cleanup, remove unused code.
14407         (arc_split_ior): New function.
14408         (arc_check_ior_const): Likewise.
14409         (arc_split_mov_const): Likewise.
14410         (arc_check_mov_const): Likewise.
14411         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
14412         in define_insn_and_split pattern.
14413         (iorsi3): Likewise.
14414         (mulsi3_v2): Add new matching variant.
14415         (andsi3_i): Cleanup pattern.
14416         (rotrsi3_cnt1): Update pattern.
14417         (rotrsi3_cnt8): New pattern.
14418         (ashlsi2_cnt8): Likewise.
14419         (ashlsi2_cnt16): Likewise.
14420         * config/arc/constraints.md (C0p): Update constraint.
14421         (Crr): Remove it.
14422         (C0x): New pattern.
14423         (Cax): New pattern.
14425 2019-06-10  Martin Liska  <mliska@suse.cz>
14427         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
14428         Update coding style.
14429         (sem_item_optimizer::dump_cong_classes):
14430         Print how many items are in a non-singular class.  Improve
14431         coding style.
14433 2019-06-10  Martin Liska  <mliska@suse.cz>
14435         * value-prof.c (dump_histogram_value): Change dump format.
14436         (gimple_mod_subtract_transform): Remove legacy comment.
14438 2019-06-10  Martin Liska  <mliska@suse.cz>
14440         * value-prof.c (dump_histogram_value): Print histogram values
14441         only if present.
14443 2019-06-10  Martin Liska  <mliska@suse.cz>
14445         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
14446         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
14447         * ipa-profile.c (ipa_profile_generate_summary):
14448         Use get_most_common_single_value.
14449         * tree-profile.c (gimple_init_gcov_profiler):
14450         Instrument with __gcov_one_value_profiler_v2
14451         and __gcov_indirect_call_profiler_v4.
14452         * value-prof.c (dump_histogram_value):
14453         Print all values for HIST_TYPE_SINGLE_VALUE.
14454         (stream_out_histogram_value): Update assert for
14455         N values.
14456         (stream_in_histogram_value): Set number of
14457         counters for HIST_TYPE_SINGLE_VALUE.
14458         (get_most_common_single_value): New.
14459         (gimple_divmod_fixed_value_transform):
14460         Use get_most_common_single_value.
14461         (gimple_ic_transform): Likewise.
14462         (gimple_stringops_transform): Likewise.
14463         (gimple_find_values_to_profile): Set number
14464         of counters for HIST_TYPE_SINGLE_VALUE.
14465         * value-prof.h (get_most_common_single_value): New.
14467 2019-06-10  Martin Liska  <mliska@suse.cz>
14469         * hash-map.h: Pass default value to hash_table ctor.
14470         * hash-table.h: Add default value to call of a ctor.
14472 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
14474         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
14475         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
14477 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
14479         PR target/90751
14480         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
14481         Call pa_output_function_label.
14482         (TARGET_ASM_FUNCTION_PROLOGUE): define.
14483         * config/pa/pa-protos.h (pa_output_function_label): Declare.
14484         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
14485         to declaration.
14486         (pa_linux_output_function_prologue): Declare.
14487         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
14488         (pa_output_function_label): New.
14489         (pa_output_function_prologue): Revise to use pa_output_function_label.
14490         (pa_linux_output_function_prologue): New.
14491         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
14493 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
14495         * tree-vrp.h (value_range_base::intersect): New.
14496         (value_range::intersect_helper): Move from here...
14497         (value_range_base::intersect_helper): ...to here.
14498         * tree-vrp.c (value_range::intersect_helper): Rename to...
14499         (value_range_base::intersect_helper): ...this, and rewrite to
14500         return a value instead of modifying THIS in place.
14501         Also, move equivalence handling...
14502         (value_range::intersect): ...here, while calling intersect_helper.
14503         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
14504         calling intersect.
14505         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
14506         Same.
14507         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
14509 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
14511         * Makefile.in (genprogerr): Add condmd.
14512         (genprog): Remove it here.
14514 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
14516         * doc/invoke.texi (AMD GCN Options): Add gfx906.
14518 2019-06-07  Richard Biener  <rguenther@suse.de>
14520         PR debug/90574
14521         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
14522         that appear after user labels.
14524 2019-06-07  Martin Liska  <mliska@suse.cz>
14526         * cselib.c (cselib_init): Disable hash table
14527         sanitization.
14528         * hash-set.h: Pass new default argument to m_table.
14529         * hash-table.c: Add global variable with hash table
14530         sanitization limit.
14531         * hash-table.h (Allocator>::hash_table): Add new argument
14532         to ctor.
14533         (hashtab_chk_error): New.
14534         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
14535         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
14536         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
14538 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
14540         * common.opt (flto-odr-type-merging): Ignore.
14541         * invoke.texi (-flto-odr-type-merging): Remove.
14542         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
14543         (can_be_vtable_hashed_p): Remove.
14544         (hash_odr_vtable): Remove.
14545         (odr_vtable_hasher::hash): Remove.
14546         (types_same_for_odr): Remove.
14547         (types_odr_comparable): Remove.
14548         (odr_vtable_hasher::equal): Remove.
14549         (odr_vtable_hash_type, odr_vtable_hash): Remove.
14550         (add_type_duplicate): Do not synchronize vtable and name hashtables.
14551         (get_odr_type): Do not use vtable hash.
14552         (dump_odr_type): Remove commented out code.
14553         (build_type_inheritance_graph): Do not allocate vtable hash.
14554         (rebuild_type_inheritance_graph): Do not delete vtable hash.
14555         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
14556         (odr_type_p): Likewise.
14557         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
14558         test.
14560 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
14562         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
14563         immediately after same_types_for_tbaa_p returns -1 and continue
14564         looking for possible exact match; if matching types are arrays
14565         watch for partial overlaps.
14566         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
14567         (indirect_refs_may_alias_p): Do type based disambiguation first;
14568         update comment.
14570 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
14572         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
14574 2019-06-07  Martin Liska  <mliska@suse.cz>
14576         * doc/invoke.texi: Remove param.
14577         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
14578         Remove.
14579         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
14580         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
14581         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
14582         * profile.c (instrument_values): Remove
14583         HIST_TYPE_INDIR_CALL_TOPN.
14584         * tree-profile.c (init_ic_make_global_vars):
14585         Always build __gcov_indirect_call only.
14586         (gimple_init_gcov_profiler): Remove usage
14587         of PARAM_INDIR_CALL_TOPN_PROFILE.
14588         (gimple_gen_ic_profiler): Likewise.
14589         * value-prof.c (dump_histogram_value): Likewise.
14590         (stream_in_histogram_value): Likewise.
14591         (gimple_indirect_call_to_profile): Likewise.
14592         (gimple_find_values_to_profile): Likewise.
14593         * value-prof.h (enum hist_type): Likewise.
14595 2019-06-07  Martin Liska  <mliska@suse.cz>
14597         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
14598         function.
14600 2019-06-07  Martin Liska  <mliska@suse.cz>
14602         PR tree-optimization/78902
14603         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
14604         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
14605         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14606         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
14607         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
14608         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14609         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
14610         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
14611         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14612         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
14613         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
14614         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
14615         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
14616         New.
14617         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
14618         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
14619         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
14620         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14621         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
14622         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
14623         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14624         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
14625         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
14626         warn_unused_result attribute.
14627         (BUILT_IN_STRDUP): Likewise.
14628         (BUILT_IN_STRNDUP): Likewise.
14629         (BUILT_IN_ALLOCA): Likewise.
14630         (BUILT_IN_CALLOC): Likewise.
14631         (BUILT_IN_MALLOC): Likewise.
14632         (BUILT_IN_REALLOC): Likewise.
14634 2019-06-06  Jim Wilson  <jimw@sifive.com>
14636         PR target/89955
14637         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
14638         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
14639         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
14641 2019-06-06  Martin Sebor  <msebor@redhat.com>
14643         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
14644         (handle_builtin_malloc): Remove trailing spaces.
14645         (handle_builtin_memset): Same.
14646         (handle_builtin_memcmp): Same.
14647         (compute_string_length): Same.
14648         (determine_min_objsize): Same.
14649         (handle_builtin_string_cmp): Same.
14650         (handle_char_store): Same.  Break up excessively long line.
14652 2019-06-06  Martin Jambor  <mjambor@suse.cz>
14654         * tree-sra.c (build_reconstructed_reference): Drop the alignment
14655         check.
14657 2019-06-06  Martin Jambor  <mjambor@suse.cz>
14659         * tree-sra.c (struct access): New field grp_same_access_path.
14660         (dump_access): Dump it.
14661         (build_reconstructed_reference): New function.
14662         (build_ref_for_model): Use it if possible.
14663         (path_comparable_for_same_access): New function.
14664         (same_access_path_p): Likewise.
14665         (sort_and_splice_var_accesses): Set the new flag.
14666         (analyze_access_subtree): Likewise.
14667         (propagate_subaccesses_across_link): Propagate zero value of the new
14668         flag down the access tree.
14670 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
14672         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
14673         * config/gcn/gcn.opt (gpu_type): Add gfx906.
14674         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
14675         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
14676         Add gfx906.
14678 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
14680         PR tree-optimization/90332
14681         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
14682         Handle VALS containing two vectors.
14683         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
14684         to...
14685         (@aarch64_combinez<mode>): ... This.
14686         (*aarch64_combinez_be<mode>): Rename to...
14687         (@aarch64_combinez_be<mode>): ... This.
14688         (vec_init<mode><Vhalf>): New define_expand.
14689         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
14691 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14693         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
14694         library functions only when not optimizing for size.
14695         (ashlsi3): Likewise.
14696         (ashrhi3): Likewise.
14697         (ashrsi3): Likewise.
14698         (lshrhi3): Likewise.
14699         (lshrsi3): Likewise.
14701 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
14703         PR rtl-optimization/88751
14704         * ira.c (ira): Use the number of the actually referenced registers
14705         when calculating the threshold.
14707 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
14709         * configure: Regenerate.
14711 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14713         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
14714         register if it is in memory, so the shift can be emulated with a rotate
14715         instruction.
14716         (ashrhi3): Likewise.
14717         (lshrhi3): Likewise.
14719 2019-06-06  Martin Liska  <mliska@suse.cz>
14721         PR tree-optimization/87954
14722         * match.pd: Simplify mult where both arguments are 0 or 1.
14724 2019-06-06  Richard Biener  <rguenther@suse.de>
14726         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
14727         put equivalences on UNDEFINED ranges.
14728         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
14729         Make sure to drop defs of stmts added during simplification
14730         to VARYING.
14732 2019-06-06  Richard Biener  <rguenther@suse.de>
14734         * tree-ssa-structalias.c: Include tree-cfg.h.
14735         (make_heapvar): Do not make heap vars artificial.
14736         (find_func_aliases_for_builtin_call): Handle stack allocation
14737         functions.
14738         (find_func_aliases): Delay processing of simple enough returns
14739         in non-IPA mode.
14740         (set_uids_in_ptset): Adjust.
14741         (find_what_var_points_to): Likewise.
14742         (solve_constraints): Do not dump points-to sets here.
14743         (compute_points_to_sets): Post-process return statements,
14744         amending the escaped solution.  Dump points-to sets afterwards.
14745         (ipa_pta_execute): Dump points-to sets.
14747 2019-06-06  Martin Liska  <mliska@suse.cz>
14749         PR web/87933
14750         * doc/install.texi: Fix HTML headers and
14751         titles for 'Installing GCC' pages.
14753 2019-06-06  Martin Liska  <mliska@suse.cz>
14755         * ipa-icf-gimple.h (dump_message_1): Remove.
14756         (dump_message): Likewise.
14757         (return_false_with_message_1): Print also file.
14758         (return_false_with_msg): Likewise.
14759         (return_with_result): Likewise.
14760         (return_with_debug): Likewise.
14761         * ipa-icf.c (sem_function::equals_private): Remove call
14762         to dump_message.
14764 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
14766         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
14767         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
14768         memory operand for it.
14769         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
14771 2019-06-05  Martin Sebor  <msebor@redhat.com>
14773         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
14774         Adjust quoting and hyphenation.
14775         * convert.c (convert_to_real_1): Same.
14776         * gcc.c (driver_wrong_lang_callback): Same.
14777         (driver::handle_unrecognized_options): Same.
14778         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
14779         * opts-common.c (cmdline_handle_error): Same.
14780         (read_cmdline_option): Same.
14781         * opts-global.c (complain_wrong_lang): Same.
14782         (print_ignored_options): Same.
14783         (handle_common_deferred_options): Same.
14784         * pretty-print.h: Same.
14785         * print-rtl.c (debug_bb_n_slim): Same.
14786         * sched-rgn.c (make_pass_sched_fusion): Same.
14787         * tree-cfg.c (verify_gimple_assign_unary): Same.
14788         (verify_gimple_label): Same.
14789         * tree-ssa-operands.c (verify_ssa_operands): Same.
14790         * varasm.c (do_assemble_alias): Same.
14791         (assemble_alias): Same.
14793 2019-06-05  Richard Henderson  <rth@twiddle.net>
14795         * config/alpha/alpha.c (direct_return): Move down after
14796         struct machine_function definition; use saved frame_size;
14797         return bool.
14798         (struct machine_function): Add sa_mask, sa_size, frame_size.
14799         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
14800         (alpha_compute_frame_layout): ... new function.
14801         (TARGET_COMPUTE_FRAME_LAYOUT): New.
14802         (alpha_initial_elimination_offset): Use saved sa_size.
14803         (alpha_vms_initial_elimination_offset): Likewise.
14804         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
14805         (alpha_expand_prologue): Use saved frame data.  Merge integer
14806         and fp register save loops.
14807         (alpha_expand_epilogue): Likewise.
14808         (alpha_start_function): Use saved frame data.
14809         * config/alpha/alpha-protos.h (direct_return): Update.
14810         (alpha_sa_size): Remove.
14812 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
14814         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
14815         multiplication by a power-of-two value.
14816         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
14817         and turn the modulo operation into a masking operation.
14819 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
14821         PR debug/90733
14822         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
14823         with VOIDmode inner operands.
14825 2019-06-05  Richard Biener  <rguenther@suse.de>
14827         PR middle-end/90726
14828         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
14829         turn an expression graph into a tree.
14831 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
14833         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
14834         member.
14835         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
14836         treat it like explicit monotonic schedule modifier.
14837         (expand_omp_for): Initialize has_lastprivate_conditional.
14838         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
14839         schedule modifier.
14841         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
14842         references, lookup in in hash map MEM_REF operand instead of the
14843         MEM_REF itself.
14844         (lower_omp_1): When looking for lastprivate conditional assignments,
14845         handle MEM_REFs with REFERENCE_TYPE operands.
14847         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
14848         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
14849         and references a VLA.  Handle references to non-VLAs if is_simd
14850         all privatization clauses like reductions.
14851         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
14852         If omp_is_reference, use always omp simd arrays and set
14853         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
14854         fails, emit reference initialization.
14856 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
14858         PR target/89803
14859         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
14860         _mm_mask_fpclass_sd_mask): New intrinsics.
14861         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
14862         * config/i386/i386-builtin.def
14863         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
14864         New builtins.
14865         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
14866         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
14867         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
14868         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
14869         case QI_FTYPE_V2SF_INT): Ditto.
14870         * config/i386/sse.md
14871         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
14872         Extended to insnstructions with mask operands.
14874 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14876         * config/rs6000/constraints.md (define_register_constraint "wp"):
14877         Delete.
14878         (define_register_constraint "wq"): Delete.
14879         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14880         (rs6000_init_hard_regno_mode_ok): Adjust.
14881         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14882         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
14883         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
14884         (define_mode_attr VSa): Delete.
14885         (define_mode_attr VSisa): New.
14886         (rest of file): Adjust.
14887         * doc/md.texi (Machine Constraints): Adjust.
14889 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14891         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
14892         (define_attr "enabled"): Handle those new isa values.
14894 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14896         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
14897         (define_mode_attr VSr5): Delete.
14898         (define_mode_attr VStype_sqrt): Delete.
14899         (define_mode_iterator VSX_SPDP): Delete.
14900         (define_mode_attr VS_spdp_res): Delete.
14901         (define_mode_attr VS_spdp_insn): Delete.
14902         (define_mode_attr VS_spdp_type): Delete.
14903         (*vsx_sqrt<mode>2): Adjust.
14904         (vsx_<VS_spdp_insn>): Delete, split to...
14905         (vsx_xscvdpsp): ... this.  New.  And...
14906         (vsx_xvcvspdp): ... this.  New.  And...
14907         (vsx_xvcvdpsp): ... this.  New.
14909 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14911         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
14912         and V2DF.
14913         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
14914         (rest of file): Adjust.
14916 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14918         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
14919         (vsx_extract_<mode>_var): Ditto.
14921 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14923         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
14924         with just "wa".
14926 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14928         * config/rs6000/constraints.md (define_register_constraint "ww"):
14929         Delete.
14930         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14931         (rs6000_init_hard_regno_mode_ok): Adjust.
14932         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14933         RS6000_CONSTRAINT_ww.
14934         * config/rs6000/rs6000.md: Adjust.
14935         * config/rs6000/vsx.md: Adjust.
14936         * doc/md.texi (Machine Constraints): Adjust.
14938 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14940         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
14941         (define_mode_attr sd): New.
14942         (define_mode_attr s): New.
14943         (define_mode_attr Ftrad): Delete.
14944         (define_mode_attr Fvsx): Delete.
14945         (define_mode_attr Fs): Delete.
14946         (rest of file): Use the new mode attributes.
14947         * config.rs6000/vsx.md: Use the new mode attributes.
14949 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14951         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
14952         with just "wa".
14954 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14956         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
14957         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
14958         used with VSX_B, VSX_D, or VSX_F, with just "wa".
14960 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
14962         PR target/78263
14963         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
14964         C++ with strict ANSI requirements.
14966 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
14968         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
14969         computations when step is 1.
14971 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14973         * config/rs6000/constraints.md (define_register_constraint "wf"):
14974         Delete.
14975         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14976         (rs6000_init_hard_regno_mode_ok): Adjust.
14977         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14978         RS6000_CONSTRAINT_wf.
14979         * config/rs6000/rs6000.md: Adjust.
14980         * config/rs6000/vsx.md: Adjust.
14981         * doc/md.texi (Machine Constraints): Adjust.
14983 2019-06-04  Andrew Pinski  <apinski@marvell.com>
14985         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
14986         Fix ILP32 value.
14988 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
14990         * config/rs6000/constraints.md (define_register_constraint "wd"):
14991         Delete.
14992         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
14993         (rs6000_init_hard_regno_mode_ok): Adjust.
14994         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
14995         RS6000_CONSTRAINT_wd.
14996         * config/rs6000/rs6000.md: Adjust.
14997         * config/rs6000/vsx.md: Adjust.
14998         * doc/md.texi (Machine Constraints): Adjust.
15000 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15002         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
15003         (rest of file): Adjust.
15005 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15007         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
15008         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
15009         (vsx_splat_<mode>_reg): Adjust.
15011 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15013         * config/rs6000/constraints.md (define_register_constraint "ws"):
15014         Delete.
15015         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15016         (rs6000_init_hard_regno_mode_ok): Adjust.
15017         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15018         RS6000_CONSTRAINT_ws.
15019         * config/rs6000/rs6000.md: Adjust.
15020         * config/rs6000/vsx.md: Adjust.
15021         * doc/md.texi (Machine Constraints): Adjust.
15023 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15025         * config/rs6000/constraints.md (define_register_constraint "wv"):
15026         Delete.
15027         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15028         (rs6000_init_hard_regno_mode_ok): Adjust.
15029         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15030         RS6000_CONSTRAINT_wv.
15031         * config/rs6000/rs6000.md: Adjust.
15032         * config/rs6000/vsx.md: Adjust.
15033         * doc/md.texi (Machine Constraints): Adjust.
15035 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
15037         * config/rs6000/constraints.md (define_register_constraint "wi"):
15038         Delete.
15039         (define_register_constraint "wt"): Delete.
15040         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15041         (rs6000_init_hard_regno_mode_ok): Adjust.
15042         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15043         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
15044         * config/rs6000/rs6000.md: Adjust.
15045         * config/rs6000/vsx.md: Adjust.
15046         * doc/md.texi (Machine Constraints): Adjust.
15048 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15050         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
15051         const.
15052         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
15053         default_elf_asm_output_external.
15055 2019-06-04  Martin Liska  <mliska@suse.cz>
15057         * ipa-icf.c (INCLUDE_LIST): Remove.
15058         (sem_item_optimizer::execute): Remove call to init_wpa.
15059         * ipa-icf.h (init_wpa): Remove.
15061 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
15063         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
15064         conditional on combined for simd.
15065         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
15066         member.
15067         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
15068         constructs, don't remove lastprivate_conditional_map, but instead set
15069         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
15070         to parent construct temporaries.
15071         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
15072         like !ctx->lastprivate_conditional_map.
15073         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
15074         use up->outer context instead of up.
15075         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
15076         gimple_omp_for_combined_p.
15077         (expand_omp_for_static_nochunk): Likewise.
15078         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
15079         probably moved over into expand_omp_for_generic rather than being copied
15080         there.
15082 2019-06-04  Martin Liska  <mliska@suse.cz>
15084         * value-prof.c (dump_histogram_value): Fix typo.
15085         (gimple_mod_subtract_transform): Likewise.
15087 2019-06-04  Richard Biener  <rguenther@suse.de>
15089         PR middle-end/90726
15090         * tree-chrec.c (chrec_contains_symbols): Add to visited.
15091         (tree_contains_chrecs): Likewise.
15092         (chrec_contains_symbols_defined_in_loop): Move here and avoid
15093         exponential behaivor from ...
15094         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
15095         ... here.
15096         (expression_expensive_p): Avoid exponential behavior and compute
15097         expanded size, rejecting any expansion.
15098         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
15099         (idx_contains_abnormal_ssa_name_p): Likewise.
15100         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
15101         (contains_abnormal_ssa_name_p): Simplify and use
15102         walk_tree_without_duplicates.
15104 2019-06-04  Richard Biener  <rguenther@suse.de>
15106         PR tree-optimization/90738
15107         Revert
15108         2019-06-03  Richard Biener  <rguenther@suse.de>
15110         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
15111         full reference tree and record in ref->ref.
15112         (vn_reference_lookup_3): Pass in original ref to
15113         ao_ref_init_from_vn_reference.
15114         (vn_reference_lookup): Likewise.
15115         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
15116         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15117         Handle non-decl bases in the original reference.
15119 2019-06-04  Martin Liska  <mliska@suse.cz>
15121         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
15122         number of references.
15123         (sem_item_optimizer::do_congruence_step):
15124         (sem_item_optimizer::worklist_push): Dump how references
15125         a class has.
15126         (sem_item_optimizer::worklist_pop): Use heap.
15127         (sem_item_optimizer::process_cong_reduction): Likewise.
15128         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
15130 2019-06-04  Martin Liska  <mliska@suse.cz>
15132         * ipa-icf.h (struct sem_usage_pair_hash): New.
15133         (sem_usage_pair_hash::hash): Likewise.
15134         (sem_usage_pair_hash::equal): Likewise.
15135         (struct sem_usage_hash): Likewise.
15136         * ipa-icf.c (sem_item::sem_item): Initialize
15137         referenced_by_count.
15138         (sem_item::add_reference): Register a reference
15139         in ref_map and not in target->usages.
15140         (sem_item::setup): Remove initialization of
15141         dead vectors.
15142         (sem_item::~sem_item): Remove usage of dead vectors.
15143         (sem_item::dump): Remove dump of references.
15144         (sem_item_optimizer::sem_item_optimizer): Initialize
15145         m_references.
15146         (sem_item_optimizer::read_section): Remove useless
15147         dump.
15148         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
15149         (sem_item_optimizer::build_graph): Pass m_references
15150         to ::add_reference.
15151         (sem_item_optimizer::verify_classes): Remove usage of dead
15152         vectors.
15153         (sem_item_optimizer::traverse_congruence_split): Return true
15154         when a class is split.
15155         (sem_item_optimizer::do_congruence_step_for_index): Use
15156         hash_map for look up of (sem_item *, index). That brings
15157         significant speed up.
15158         (sem_item_optimizer::do_congruence_step): Return true
15159         when a split is done.
15160         (congruence_class::is_class_used): Use referenced_by_count.
15162 2019-06-04  Alan Modra  <amodra@gmail.com>
15164         PR target/90689
15165         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
15166         error.
15168 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
15170         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
15171         * config/rs6000/rs6000.c (direct_move_p): Adjust.
15172         (rs6000_secondary_reload_simple_move): Adjust.
15173         (rs6000_opt_masks): Neuter the "mfpgpr" option.
15174         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
15175         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
15176         comment.
15177         (power6x): Adjust.
15178         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
15179         (floatunssi<mode>2_lfiwzx): Adjust.
15180         (fix_trunc<mode>si2_stfiwx): Adjust.
15181         (fixuns_trunc<mode>si2_stfiwx): Adjust.
15182         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
15183         (mfpgpr): Mark as deprecated.
15184         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
15185         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
15186         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
15188 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
15190         * config/rs6000/constraints.md (define_register_constraint "wg"):
15191         Delete.
15192         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
15193         RS6000_CONSTRAINT_wg.
15194         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
15195         (rs6000_init_hard_regno_mode_ok): Adjust.
15196         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
15197         Delete "wg" alternatives.
15198         * doc/md.texi (Machine Constraints): Adjust.
15200 2019-06-03  Alan Modra  <amodra@gmail.com>
15202         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
15203         (get_uncond_jump_length): Assert length less than INT_MAX and
15204         non-negative.
15206 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
15208         PR middle-end/64242
15209         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
15210         block.
15211         (expand_builtin_nonlocal_goto): Likewise.
15213 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
15215         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
15216         (aarch64_asm_output_external): Declare.
15217         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
15218         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
15219         (aarch64_asm_output_alias): New.
15220         (aarch64_asm_output_external): New.
15221         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
15222         (ASM_OUTPUT_EXTERNAL): Define.
15224 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
15225         * tree-vrp.h (value_range_base::nonzero_p): New.
15226         (value_range_base::set_nonnull): Rename to...
15227         (value_range_base::set_nonzero): ...this.
15228         (value_range_base::set_null): Rename to...
15229         (value_range_base::set_zero): ...this.
15230         (value_range::set_nonnull): Remove.
15231         (value_range::set_null): Remove.
15232         * tree-vrp.c (range_is_null): Remove.
15233         (range_is_nonnull): Remove.
15234         (extract_range_from_binary_expr): Use value_range_base::*zero_p
15235         instead of range_is_*null.
15236         (extract_range_from_unary_expr): Same.
15237         (value_range_base::set_nonnull): Rename to...
15238         (value_range_base::set_nonzero): ...this.
15239         (value_range::set_nonnull): Remove.
15240         (value_range_base::set_null): Rename to...
15241         (value_range_base::set_zero): ...this.
15242         (value_range::set_null): Remove.
15243         (extract_range_from_binary_expr): Rename set_*null uses to
15244         set_*zero.
15245         (extract_range_from_unary_expr): Same.
15246         (union_helper): Same.
15247         * vr-values.c (get_value_range): Use set_*zero instead of
15248         set_*null.
15249         (vr_values::extract_range_from_binary_expr): Same.
15250         (vr_values::extract_range_basic): Same.
15252 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
15254         PR driver/90684
15255         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
15257 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15259         * config/aarch64/iterators.md (MAX_OPP): New code attr.
15260         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
15261         Rename to...
15262         (aarch64_<su>abd<mode>_3): ... This.
15263         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
15265 2019-06-03  Richard Biener  <rguenther@suse.de>
15267         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
15268         full reference tree and record in ref->ref.
15269         (vn_reference_lookup_3): Pass in original ref to
15270         ao_ref_init_from_vn_reference.
15271         (vn_reference_lookup): Likewise.
15272         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
15273         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
15274         Handle non-decl bases in the original reference.
15276 2019-06-03  Martin Liska  <mliska@suse.cz>
15278         * doc/generic.texi: Remove Java Trees.
15280 2019-06-03  Martin Liska  <mliska@suse.cz>
15282         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
15283         returns 0 when operands are equal.
15285 2019-06-03  Richard Biener  <rguenther@suse.de>
15287         PR tree-optimization/90716
15288         * tree-loop-distribution.c (destroy_loop): Process blocks in
15289         correct order.
15291 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
15293         PR target/88837
15294         * vector-builder.h (vector_builder::count_dups): New method.
15295         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
15296         Declare prototype.
15297         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
15298         (vec_init<mode><Vel>): New pattern.
15299         * config/aarch64/aarch64.c (emit_insr): New function.
15300         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
15301         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
15302         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
15303         (aarch64_sve_expand_vector_init): Define two overloaded functions.
15305 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15307         PR tree-optimization/90681
15308         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
15309         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
15310         special case for SLP, but fail on non-groupped loads.
15312 2019-06-03  Martin Liska  <mliska@suse.cz>
15314         * cfg.c (debug): Use TDF_DETAILS for debug and
15315         print edge info only once.
15317 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
15319         PR fortran/90539
15320         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
15322 2019-06-01  Martin Sebor  <msebor@redhat.com>
15324         PR middle-end/90694
15325         * tree-pretty-print.c (dump_generic_node): Add parentheses.
15327 2019-05-31  Jan Hubicka  <jh@suse.cz>
15329         * alias.c: Include ipa-utils.h.
15330         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
15331         * ipa-devirt.c (prevailing_odr_type): New.
15332         * ipa-utils.h (previaling_odr_type): Declare.
15334 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
15335             Hongtao Liu  <hongtao.liu@intel.com>
15337         PR target/89355
15338         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
15339         NOTE_INSN_DELETED_LABEL check.
15341 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
15342             Robert Suchanek  <robert.suchanek@mips.com>
15344         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
15345         and 3rd operands of the fmadd/fmsub/maddv builtin.
15347 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
15349         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
15350         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15351         on OMP_SIMD if not nested inside of worksharing loop that also has
15352         lastprivate conditional clause for the same decl.
15353         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
15354         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
15355         on simd.
15356         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
15357         on simd construct.
15358         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
15359         on simd construct.
15360         (lower_lastprivate_clauses): Likewise.
15361         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
15362         calling lower_rec_input_clauses.
15363         (lower_omp_for): Likewise.
15364         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
15365         clause on simd construct.
15366         * omp-expand.c (expand_omp_simd): Initialize cond_var if
15367         OMP_CLAUSE__CONDTEMP_ clause is present.
15369         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
15370         ivar and lvar.
15372 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
15374         PR c/43673
15375         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
15376         TEX_D32, TEX_D64 or TEX_D128.
15378 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
15380         * match.pd (~(vec?cst1:cst2)): New transformation.
15382 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
15384         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
15385         ((size_t)(A /[ex] B) CMP C): New transformation.
15387 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
15389         * doc/md.texi: Document define_insn_and_rewrite.
15390         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
15391         * gensupport.c (queue_elem): Update comment.
15392         (replace_operands_with_dups): New function.
15393         (gen_rewrite_sequence): Likewise.
15394         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
15395         * read-rtl.c (apply_subst_iterator): Likewise.
15396         (add_condition_to_rtx, named_rtx_p): Likewise.
15397         (rtx_reader::read_rtx_operand): Likewise.
15398         * config/aarch64/aarch64-sve.md
15399         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
15400         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
15401         define_insn_and_rewrite.
15402         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
15403         Remove separate define_split.
15405 2019-05-31  Jan Hubicka  <jh@suse.cz>
15407         * tree-ssa-alias.c (type_has_components_p): New function.
15408         (aliasing_component_refs_p): Use it.
15410 2019-05-31  Martin Liska  <mliska@suse.cz>
15412         * gdbhooks.py: Add const_tree to TreePrinter.
15414 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
15416         PR debug/86964
15417         * common.opt (feliminate-unused-debug-symbols): Enable by default.
15418         * doc/invoke.texi (Debugging Options): Document new default of
15419         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
15421 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
15423         PR tree-optimization/90671
15424         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
15425         template_block used to be empty on the first call, don't use
15426         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
15427         seq with bb_seq and set it with set_bb_seq.
15429 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
15431         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
15433 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
15434             Michael Meissner  <meissner@linux.ibm.com>
15436         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
15437         (prefixed_mem_operand): Likewise.
15438         (non_prefixed_mem_operand): Likewise.
15439         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
15440         prototype.
15441         * config/rs6000/rs6000.c (print_operand_address): Handle
15442         PC-relative addresses.
15443         (mode_supports_prefixed_address_p): New function.
15444         (rs6000_prefixed_address): New function.
15445         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
15446         (SYMBOL_REF_PCREL_P): Likewise.
15448 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
15450         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
15451         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
15452         (gimplify_omp_for): If worksharing loop with lastprivate conditional
15453         is nested inside of parallel region, add _condtemp_ clause to both.
15454         * tree-nested.c (convert_nonlocal_omp_clauses,
15455         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
15456         assertion failure.
15457         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
15458         member.
15459         * omp-general.c (omp_extract_for_data): Compute it.
15460         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
15461         (lower_rec_input_clauses): Likewise.
15462         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
15463         clause is already present, just add one further one after it.
15464         (lower_lastprivate_clauses): Handle cond_ptr with array type.
15465         (lower_send_shared_vars): Clear _condtemp_ vars.
15466         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
15467         or section or taskgroup.
15468         * omp-expand.c (determine_parallel_type): Disallow combining only if
15469         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
15470         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
15471         (expand_omp_for_generic, expand_omp_for_static_nochunk,
15472         expand_omp_for_static_chunk, expand_omp_for): Use
15473         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
15474         determine if a special set of API routines are needed and if condtemp
15475         needs to be initialized, while always initialize cond_var if
15476         fd->lastprivate_conditional is non-zero.
15478 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
15479             Michael Meissner  <meissner@linux.ibm.com>
15481         * config/rs6000/constraints.md (eI): New constraint.
15482         * config/rs6000/predicates.md (cint34_operand): New predicate.
15483         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
15484         (SIGNED_34BIT_OFFSET_P): Likewise.
15485         * doc/md.texi (eI): Document constraint.
15487 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
15489         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
15491 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
15492             Michael Meissner  <meissner@linux.ibm.com>
15494         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
15495         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
15496         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
15497         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
15498         (OTHER_FUTURE_MASKS): Likewise.
15499         (POWERPC_MASKS): Likewise.
15500         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
15501         specified without -mprefixed-addr or -mcpu=future.  Error if
15502         -mprefixed-addr is specified without -mcpu=future.
15503         (rs6000_opt_masks): Add entry for prefixed-addr.
15504         * rs6000.opt (mprefixed-addr): New option.
15506 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
15508         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
15509         cfun->is_thunk check.
15511 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
15513         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
15514         to length.
15516 2019-05-30  Martin Liska  <mliska@suse.cz>
15518         * gdbinit.in: Fix 'ptc' command.  Add trt
15519         that prints TREE_TYPE($).
15521 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
15522             Alan Modra  <amodra@gmail.com>
15524         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
15525         calls here...
15526         (rs6000_indirect_call_template_1): ...and here.
15527         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
15528         plt16_ha, plt16_lo, mtctr indirect calls.  Use
15529         rs6000_pltseq_enum.
15530         (rs6000_decl_ok_for_sibcall): New function.
15531         (rs6000_function_ok_for_sibcall): Refactor.
15532         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
15533         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
15534         when pcrel.  Reorganize.
15535         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
15536         * rs6000.h (rs6000_pltseq_enum): New enum.
15537         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
15538         (*pltseq_tocsave): Use rs6000_pltseq_enum.
15539         (*pltseq_plt16_ha): Likewise.
15540         (*pltseq_plt16_lo): Likewise.
15541         (*pltseq_mtctr): Likewise.
15542         (*pltseq_plt_pcrel): New insn.
15543         (*call_local_aix): Handle @notoc calls.
15544         (*call_value_local_aix): Likewise.
15545         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
15546         (*call_value_nonlocal_aix): Likewise.
15547         (*call_indirect_pcrel): New insn.
15548         (*call_value_indirect_pcrel): Likewise.
15550 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15552         * config/i386/sse.md (*save_multiple<mode>): Rename from
15553         save_multiple<mode>.
15554         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
15555         (*restore_multiple_and_return<mode>): Rename from
15556         restore_multiple_and_return<mode>.
15557         (*restore_multiple_leave_return<mode>): Rename from
15558         restore_multiple_leave_return<mode>.
15560 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
15562         * config.gcc (rx-*-linux*): New target.
15563         * config/rx/elf.opt: New file.
15564         * config/rx/linux.h: Likewise.
15565         * config/rx/t-linux: Likewise.
15566         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
15567         make it zero.
15568         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
15569         (ASM_APP_OFF): Likewise.
15570         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
15571         moved elsewhere.
15573 2019-05-29  Jan Hubicka  <jh@suse.cz>
15575         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
15576         variants are pointer equivalent.
15578 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15580         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
15581         * config/aarch64/aarch64-sve2.md: New file.
15582         (<u>avg<mode>3_floor): New pattern.
15583         (<u>avg<mode>3_ceil): Likewise.
15584         (*<sur>h<addsub><mode>): Likewise.
15585         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
15586         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
15588 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
15590         PR bootstrap/90543
15591         * optc-save-gen.awk: In cl_optimization_print, use correct condition
15592         for var_opt_string printing.  In cl_optimization_print_diff, print
15593         (null) instead of invoking undefined behavior if one of the
15594         var_opt_string pointers is NULL and use && instead of first || in the
15595         guarding condition.  For var_target_other options, handle const char *
15596         target variables similarly to const char * optimize node variables.
15598 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
15600         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
15601         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
15602         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
15603         Add autib1716 and pacib1716 initialisation.
15604         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
15605         for autib1716 and pacib1716.
15606         * config/aarch64/aarch64-protos.h (aarch64_key_type,
15607         aarch64_post_cfi_startproc): Define.
15608         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
15609         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
15610         aarch64_handle_pac_ret_protection): Set default sign key to A.
15611         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
15612         aarch64_expand_prologue): Add check for b-key.
15613         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
15614         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
15615         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
15616         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
15617         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
15618         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
15619         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15620         * config/aarch64/aarch64.md (do_return): Add check for b-key.
15621         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
15622         pauth_hint_num_a with pauth_hint_num.
15623         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
15624         pauth_hint_num_a with pauth_hint_num.
15625         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
15626         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
15627         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15628         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
15629         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
15630         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
15631         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
15632         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
15633         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
15634         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
15635         UNSPEC_AUTIA1716 respectively.
15636         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
15637         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
15638         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
15639         * doc/invoke.texi (-mbranch-protection): Add b-key type.
15640         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
15641         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
15643 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
15645         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
15646         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
15647         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
15648         explicit clause on combined parallel into implicit shared clause.
15649         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
15650         and firstprivate if the decl has one too from combined parallel to
15651         the worksharing construct.
15653 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
15654             Michael Meissner  <meissner@linux.ibm.com>
15656         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
15658 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
15660         * rtl.h (LABEL_REF_P): New #define.
15662 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
15664         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
15666 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
15668         * internal-fn.c: Marked mask_load_direct as vectorizable.
15669         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
15670         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
15671         combined even if masks different with allow_slp_p param.
15672         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
15673         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
15674         dissolve SLP-only vectorizable groups when SLP has been discarded.
15675         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
15676         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
15677         masks.
15678         (vect_build_slp_tree_1): Fixed comment typo.
15679         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
15680         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
15681         loads for SLP only.
15682         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
15683         vectorizable.
15684         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
15686 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15688         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
15689         Remove obsolete use_thunk reference.
15690         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
15691         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
15692         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
15693         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
15694         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
15695         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
15696         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
15697         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
15698         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
15700 2019-05-28  Nathan Sidwell  <nathan@acm.org>
15702         * tree.h (IDENTIFIER_ANON_P): New.
15703         (anon_aggrname_format, anon_aggname_p): Don't declare.
15704         (make_anon_name): Declare.
15705         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
15706         (hash_tree): Likewise.
15707         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
15708         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
15709         (anon_cnt, make_anon_name): New.
15711 2019-05-28  Martin Liska  <mliska@suse.cz>
15713         PR other/90315
15714         * opts-global.c (decode_options): Print help for all
15715         help_option_arguments.
15716         * opts.c (print_help): Add new argument.
15717         (common_handle_option): Remember all values into
15718         help_option_arguments.
15719         * opts.h (print_help): Add new argument.
15721 2019-05-28  Martin Liska  <mliska@suse.cz>
15723         PR ipa/90555
15724         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
15725         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
15726         (func_checker::compare_bb): Call compare_loops.
15728 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
15730         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
15731         on sections construct.
15732         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
15733         construct.
15734         (lower_omp_sections): Handle lastprivate conditional.
15735         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
15736         lastprivate_conditional_map.
15737         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
15739         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
15740         critical, taskgroup and section regions when looking for a region
15741         with non-NULL lastprivate_conditional_map.
15743 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15745         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
15746         (*ix86_gen_sub3): Ditto.
15747         (*ix86_gen_sub3_carry): Ditto.
15748         (*ix86_gen_one_cmpl2): Ditto.
15749         (*ix86_gen_andsp): Ditto.
15750         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
15751         (gen_and2_insn): New static function.
15752         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
15753         Use gen_add3_insn instead of ix86_gen_add3.
15754         (ix86_expand_split_stack_prologue): Use gen_add2_insn
15755         instead of ix86_gen_add3.
15756         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
15757         Use gen_sub3_insn instead of ix86_gen_sub3.
15758         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
15759         instead of ix86_gen_add3.
15760         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
15761         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
15762         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
15763         * config/i386/i386-options.c (ix86_option_override_internal):
15764         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
15765         ix86_gen_one_cmpl2 and ix86_gen_andsp.
15767 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
15769         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
15770         and DW_OP_GNU_const_index opcodes.
15772 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15774         * config/i386/i386.h (STACK_SIZE_MODE): Define.
15776 2019-05-27  Richard Biener  <rguenther@suse.de>
15778         PR tree-optimization/90637
15779         * tree-ssa-sink.c (statement_sink_location): Honor the
15780         computed sink location for single-uses.
15782 2019-05-27  Richard Biener  <rguenther@suse.de>
15784         PR middle-end/90610
15785         * match.pd (vec_perm): Avoid clobbering op0 when not generating
15786         a bit-insert.
15788 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15790         * config/i386/i386.md (@sub<mode>3_carry): Rename
15791         from sub<mode>3_carry.
15792         (@leave_<mode>): New expander.
15793         (*leave): Rename from leave.
15794         (*leave_rex64): Rename from leave_rex64.
15795         (@monitorx_<mode>): Rename from monitorx_<mode>.
15796         (@clzero_<mode>): Rename from clzero_<mode>.
15797         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
15798         from sse3_monitor_<mode>.
15799         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
15800         (*ix86_gen_leave): Ditto.
15801         (*ix86_gen_monitor): Ditto.
15802         (*ix86_gen_monitorx): Ditto.
15803         (*ix86_gen_clzero): Ditto.
15804         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
15805         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
15806         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
15807         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
15808         Use gen_sse3_monitor instead of ix86_gen_monitor.
15809         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
15810         instead of ix86_gen_monitorx.
15811         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
15812         instead of ix86_gen_clzero.
15813         * config/i386/i386-options.c (ix86_option_override_internal):
15814         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
15815         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
15817 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15819         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
15820         Rename from tls_global_dynamic_64_<mode>.
15821         (@tls_local_dynamic_base_64_<mode>): Rename from
15822         tls_local_dynamic_base_64_<mode>.
15823         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
15824         Remove indirect function.
15825         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
15826         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
15827         instead of ix86_gen_tls_global_dynamic_64.
15828         Use gen_tls_local_dynamic_base_64 instead of
15829         ix86_gen_tls_local_dynamic_base_64.
15830         * config/i386/i386-options.c (ix86_option_override_internal):
15831         Do not initialize ix86_gen_tls_global_dynamic_64 and
15832         ix86_gen_tls_local_dynamic_base_64.
15834 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15836         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
15837         Rename from pro_epilogue_adjust_stack_<mode>_add.
15838         (@pro_epilogue_adjust_stack_sub_<mode>)
15839         Rename from pro_epilogue_adjust_stack_<mode>_sub.
15840         (@allocate_stack_worker_probe_<mode>):
15841         Rename from allocate_stack_worker_probe_<mode>.
15842         (allocate_stack): Use gen_allocate_stack_worker_probe.
15843         (probe_stack): Use gen_probe_stack_1.
15844         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
15845         (@adjust_stack_and_probe_<mode>): Rename from
15846         adjust_stack_and_probe<mode>.
15847         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
15848         (stack_protect_set): Use gen_stack_protect_set_1.
15849         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
15850         (stack_protect_test): Use gen_stack_protect_test_1.
15851         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
15852         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
15853         Remove indirect function.
15854         (*ix86_gen_adjust_stack_and_probe): Ditto.
15855         (*ix86_gen_probe_stack_range): Ditto.
15856         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
15857         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
15858         (ix86_adjust_stack_and_probe_stack_clash): Use
15859         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
15860         (ix86_adjust_stack_and_probe): Ditto.
15861         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
15862         of ix86_gen_probe_stack_range.
15863         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
15864         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
15865         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
15866         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
15867         CODE_FOR_stack_protect_test_{si,di}.
15868         * config/i386/i386-options.c (ix86_option_override_internal):
15869         Do not initialize ix86_gen_allocate_stack_worker,
15870         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
15872 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
15874         * doc/invoke.texi (Link Options): Many editorial changes around
15875         -flinker-output.
15877 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
15879         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
15880         pre-Solaris 11 referene and most Studio compiler details.
15882 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
15884         PR target/90530
15885         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
15886         DImode to SImode in floating-point registers on 64-bit target.
15887         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
15888         register_operand in xmpyu patterns.
15890 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
15892         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
15893         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
15894         OMP_CLAUSE__REDUCTEMP_.
15895         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
15896         OMP_CLAUSE__CONDTEMP_.
15897         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
15898         * tree-pretty-print.c (dump_omp_clause): Likewise.
15899         * tree-nested.c (convert_nonlocal_omp_clauses,
15900         convert_local_omp_clauses): Likewise.
15901         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
15902         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
15903         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
15904         on OMP_FOR.
15905         (gimplify_omp_for): Warn and disable conditional modifier from
15906         lastprivate on loop iterators.
15907         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
15908         member.
15909         * omp-general.c (omp_extract_for_data): Initialize it.
15910         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
15911         member.
15912         (delete_omp_context): Delete it.
15913         (lower_lastprivate_conditional_clauses): New function.
15914         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
15915         handle lastprivate conditional clauses.
15916         (lower_reduction_clauses): Add CLIST argument, emit it into
15917         the critical section if any.
15918         (lower_omp_sections): Adjust lower_lastprivate_clauses and
15919         lower_reduction_clauses callers.
15920         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
15921         to lower_lastprivate_clauses.
15922         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
15923         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
15924         clist into a critical section if not emitted there already by
15925         lower_reduction_clauses.
15926         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
15927         callers.
15928         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
15929         conditional variables.
15930         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
15931         clause is present.
15932         (expand_omp_for_generic, expand_omp_for_static_nochunk,
15933         expand_omp_for_static_chunk): Handle lastprivate conditional.
15934         (expand_omp_for): Handle fd.lastprivate_conditional like
15935         fd.have_reductemp.
15937 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
15939         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
15940         kernel does not exit cleanly.
15941         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
15943 2019-05-24  Jason Merrill  <jason@redhat.com>
15945         Revert:
15946         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
15948 2019-05-24  Richard Biener  <rguenther@suse.de>
15950         PR testsuite/90607
15951         * tree-loop-distribution.c (struct partition): Add location
15952         member.
15953         (partition_alloc): Initialize all fields.
15954         (generate_memset_builtin): Use the location recorded in the
15955         partition for the generated call.
15956         (generate_memcpy_builtin): Likewise.
15957         (classify_partition): Record the location of a single store
15958         as location for the partition.
15960 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
15962         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
15963         for lo-part.
15965 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
15967         PR target/90588
15968         * common/config/aarch64/aarch64-common.c
15969         (aarch64_rewrite_selected_cpu): Change local temporary variable
15970         type from unsigned long to uint64_t.
15971         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
15972         aarch64_get_extension_string_for_isa_flags): Change declaration to
15973         match new definition by replacing unsigned long with uint64_t.
15975 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
15977         PR target/90568
15978         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
15979         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
15980         Handle stack_protect_test_<mode> codegen similarly to corresponding
15981         sub instruction.
15983 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
15985         * config/i386/darwin.h: Reject -mfentry*.
15986         * doc/sourcebuild.texi: Document mfentry target support.
15988 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
15990         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
15991         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
15992         false for PC-relative functions.
15993         (rs6000_output_function_prologue): Change called function name to
15994         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
15995         name,1" for PC-relative functions.
15996         (rs6000_elf_declare_function_name): Change called function name to
15997         rs6000_global_entry_point_prologue_needed_p.
15999 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16001         PR target/90552
16002         * config/i386/i386.c (gen_rtx_cost):
16003         Use ix86_tune_cost instead of ix86_cost.
16005 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
16006             Michael Meissner  <meissner@linux.ibm.com>
16007             Segher Boessenkool  <segher@kernel.crashing.org>
16009         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
16010         OPTION_MASK_PCREL.
16011         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
16012         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
16013         (rs6000_fndecl_pcrel_p): Likewise.
16014         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
16015         error if -mpcrel is requested without -mcpu=future.
16016         (rs6000_opt_masks): Add entry for pcrel.
16017         (rs6000_fndecl_pcrel_p): New function.
16018         (rs6000_pcrel_p): Likewise.
16019         * config/rs6000/rs6000.opt (mpcrel): New option.
16020         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
16022 2019-05-23  Jan Hubicka  <jh@suse.cz>
16023             Martin Liska  <mliska@suse.cz>
16025         PR tree-optimization/90576
16026         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
16027         poly_int_tree_p.
16028         (aliasing_component_refs_p): Fix three way size compare conditional;
16029         give up earlier in case we can not decide on equivalence.
16031 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
16032             Michael Meissner  <meissner@linux.ibm.com>
16033             Segher Boessenkool  <segher@kernel.crashing.org>
16035         * config.gcc: Add future cpu.
16036         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
16037         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
16038         #define.
16039         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
16040         (RS6000_CPU): New instantiation for future cpu.
16041         * config/rs6000/rs6000-opts.h (enum processor_type): Add
16042         PROCESSOR_FUTURE.
16043         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
16044         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
16045         * config/rs6000/rs6000-tables.opt: Regenerate.
16046         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
16047         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
16048         (rs6000_machine_from_flags): Handle future cpu.
16049         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
16050         PROCESSOR_POWER9 for now.
16051         (rs6000_adjust_cost): Likewise.
16052         (rs6000_issue_rate): Likewise.
16053         (rs6000_register_move_cost): Likewise.
16054         (rs6000_opt_masks): Add entry for future.
16055         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
16056         (MASK_FUTURE): New #define.
16057         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
16058         * config/rs6000/rs6000.opt (mfuture): New target option.
16059         * doc/invoke.texi (mcpu): Add future cpu.
16061 2019-05-23  Martin Liska  <mliska@suse.cz>
16063         PR c++/90587
16064         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
16065         operation points to a temporary (pointed via tree_to_wide_ref)
16066         that is out of scope after the &.
16068 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
16070         PR c++/90592
16071         * doc/extend.texi (Function Names): Add missing word.
16073 2019-05-23  Richard Biener  <rguenther@suse.de>
16075         PR tree-optimization/88440
16076         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
16077         at -O[2s]+.
16078         * tree-loop-distribution.c (generate_memset_builtin): Fold the
16079         generated call.
16080         (generate_memcpy_builtin): Likewise.
16081         (distribute_loop): Pass in whether to only distribute patterns.
16082         (prepare_perfect_loop_nest): Also allow size optimization.
16083         (pass_loop_distribution::execute): When optimizing a loop
16084         nest for size allow pattern replacement.
16086 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
16088         PR target/90568
16089         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
16090         of xor.
16092 2019-05-23  Martin Liska  <mliska@suse.cz>
16094         PR sanitizer/90570
16095         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
16096         expression similarly to gimplify_decl_expr.
16098 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16100         * cse.c (cse_dump_path): s/dump_file/f.
16102 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
16104         PR c++/90462
16105         * diagnostic-format-json.cc: Include "selftest.h".
16106         (json_from_expanded_location): Only add "file" key for non-NULL
16107         file strings.
16108         (json_from_location_range): Don't add "start" and "finish"
16109         children if they are UNKNOWN_LOCATION.
16110         (selftest::test_unknown_location): New selftest.
16111         (selftest::test_bad_endpoints): New selftest.
16112         (selftest::diagnostic_format_json_cc_tests): New function.
16113         * json.cc (json::object::get): New function.
16114         (selftest::test_object_get): New selftest.
16115         (selftest::json_cc_tests): Call it.
16116         * json.h (json::object::get): New decl.
16117         * selftest-run-tests.c (selftest::run_tests): Call
16118         selftest::diagnostic_format_json_cc_tests.
16119         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
16120         decl.
16122 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
16123             Andrew Stubbs  <amd@codesourcery.com>
16125         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
16126         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
16127         (kernel): Rename to...
16128         (main_kernel): ... this.
16129         (load_image): Load _init_array and _fini_array kernels.
16130         (run): Add argument for kernel to run.
16131         (main): Run init_array_kernel before main_kernel, and
16132         fini_array_kernel after.
16133         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
16134         amdgpu_hsa_kernel attribute on functions.
16135         (gcn_disable_constructors): Delete.
16136         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
16137         * config/gcn/crt0.c (size_t): Define.
16138         (_init_array, _fini_array): New.
16139         (__preinit_array_start, __preinit_array_end,
16140         __init_array_start, __init_array_end,
16141         __fini_array_start, __fini_array_end): Declare weak references.
16143 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
16145         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
16147 2019-05-22  Jason Merrill  <jason@redhat.com>
16149         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
16151 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
16153         PR target/88483
16154         * config/i386/i386-options.c (ix86_init_machine_status): Set
16155         stack_frame_required to true.
16156         * config/i386/i386.c (ix86_get_frame_size): New function.
16157         (ix86_frame_pointer_required): Replace get_frame_size with
16158         ix86_get_frame_size.
16159         (ix86_compute_frame_layout): Likewise.
16160         (ix86_find_max_used_stack_alignment): Changed to void.  Set
16161         stack_frame_required.
16162         (ix86_finalize_stack_frame_flags): Always call
16163         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
16164         ix86_get_frame_size.
16165         * config/i386/i386.h (machine_function): Add stack_frame_required.
16167 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16169         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
16171 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
16173         * common/config/aarch64/aarch64-common.c
16174         (struct aarch64_option_extension, struct processor_name_to_arch,
16175         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
16176         aarch64_contains_opt,
16177         aarch64_get_extension_string_for_isa_flags): Change type of
16178         variables storing flags to uint64_t.
16179         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
16180         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
16181         * config/aarch64/aarch64.c (struct processor,
16182         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
16183         aarch64_validate_march, aarch64_override_options,
16184         aarch64_option_print, aarch64_handle_attr_isa_flags,
16185         aarch64_declare_function_name, aarch64_start_file): Make flag
16186         variables uint64_t.
16187         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
16188         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
16189         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
16190         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
16191         * config/aarch64/driver-aarch64.c
16192         (struct aarch64_arch_extension, struct aarch64_core_data,
16193         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
16194         flag variables uint64_t.
16195         * doc/invoke.texi: Add documentation for new arguments.
16197 2019-05-22  Richard Biener  <rguenther@suse.de>
16199         * alias.c (ao_ref_from_mem): Move stack-slot sharing
16200         rewrite ...
16201         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
16203 2019-05-22  Martin Liska  <mliska@suse.cz>
16205         PR lto/90500
16206         * doc/extend.texi: Document the change.
16208 2019-05-22  Richard Biener  <rguenther@suse.de>
16210         PR tree-optimization/90450
16211         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
16212         (mem_ref_hasher::equal): Check it.
16213         (mem_ref_alloc): Initialize it.
16214         (gather_mem_refs_stmt): Set it.
16216 2019-05-22  Richard Biener  <rguenther@suse.de>
16218         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
16219         Add ABS_EXPR.
16220         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
16221         as ABSU_EXPR.
16223 2019-05-22  Alan Modra  <amodra@gmail.com>
16225         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
16226         (ASM_CPU_SPEC): Conditionally add -many.
16227         * config/rs6000/rs6000.c (rs6000_machine): New static var.
16228         (rs6000_machine_from_flags, emit_asm_machine): New functions..
16229         (rs6000_file_start): ..extracted from here, and modified to
16230         test all ISA bits.
16231         (rs6000_output_function_prologue): Emit .machine as necessary.
16233 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
16235         PR middle-end/90553
16236         * ira-lives.c (process_bb_node_lives): Consider defs
16237         for a call insn to be die before the call, not after.
16239         * function.c (assign_parm_setup_block): Raise alignment of
16240         stacked parameter only for STRICT_ALIGNMENT targets.
16242 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16244         * config/rs6000/constraints.md (define_register_constraint "wz"):
16245         Delete.
16246         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16247         RS6000_CONSTRAINT_wz.
16248         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16249         (rs6000_init_hard_regno_mode_ok): Adjust.
16250         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
16251         * doc/md.texi (Machine Constraints): Adjust.
16253 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16255         * config/rs6000/constraints.md (define_register_constraint "wl"):
16256         Delete.
16257         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16258         RS6000_CONSTRAINT_wl.
16259         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16260         (rs6000_init_hard_regno_mode_ok): Adjust.
16261         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
16262         * doc/md.texi (Machine Constraints): Adjust.
16264 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16266         * config/rs6000/constraints.md (define_register_constraint "wm"):
16267         Delete.
16268         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16269         RS6000_CONSTRAINT_wm.
16270         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16271         (rs6000_init_hard_regno_mode_ok): Adjust.
16272         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
16273         * doc/md.texi (Machine Constraints): Adjust.
16275 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16277         * config/rs6000/constraints.md (define_register_constraint "wk"):
16278         Delete.
16279         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16280         RS6000_CONSTRAINT_wk.
16281         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16282         (rs6000_init_hard_regno_mode_ok): Adjust.
16283         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
16284         * doc/md.texi (Machine Constraints): Adjust.
16286 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16288         * config/rs6000/constraints.md (define_register_constraint "wj"):
16289         Delete.
16290         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16291         RS6000_CONSTRAINT_wj.
16292         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16293         (rs6000_init_hard_regno_mode_ok): Adjust.
16294         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
16295         (VS_64dm): Delete.
16296         * config/rs6000/vsx.md: Ditto.
16297         * doc/md.texi (Machine Constraints): Adjust.
16299 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
16301         * config/rs6000/constraints.md (define_register_constraint "wh"):
16302         Delete.
16303         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16304         RS6000_CONSTRAINT_wh.
16305         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16306         (rs6000_init_hard_regno_mode_ok): Adjust.
16307         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
16308         * doc/md.texi (Machine Constraints): Adjust.
16310 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16312         PR target/90547
16313         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
16314         Avoid calling gen_lowpart with CONST operand.
16316 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
16318         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
16319         field template_last_to_copy.
16320         (ssa_create_duplicates): Set it, and use it.  Attempt to
16321         preserve more debug stmts.
16323 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16325         * config/i386/sse.md (VF1_AVX2): New mode iterator.
16326         (signbit<mode>2): New expander
16328 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
16330         PR bootstrap/87338
16331         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
16332         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
16334 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16336         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
16337         %ebx and %ecx bafore calling cpuid with leaf 1 or
16338         non-constant leaf argument.
16340 2019-05-21  Alan Modra  <amodra@gmail.com>
16342         PR target/90545
16343         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
16344         power9 direct move cost.
16346 2019-05-21  Richard Biener  <rguenther@suse.de>
16348         PR middle-end/90510
16349         * fold-const.c (fold_read_from_vector): New function.
16350         * fold-const.h (fold_read_from_vector): Declare.
16351         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
16352         single-element insert permutations.  Canonicalize selector
16353         further and fix issue with last commit.
16355 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
16357         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
16358         parameter with default value false to declaration.
16359         (split_edges_for_insertion): New inline function.  Wrapper for
16360         split_critical_edges with for_edge_insertion_p = true.
16361         * tree-cfg.c (split_critical_edges): Don't split non-critical
16362         edges if for_edge_insertion_p is false.  Fix whitespace.
16363         * tree-ssa-pre.c (pass_pre::execute): Call
16364         split_edges_for_insertion instead of split_critical_edges.
16365         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
16366         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
16367         (pass_data_sink_code): Update function name in the comment.
16369 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
16371         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
16372         around is_value_included_in that knows how to handle BIT_AND_EXPR.
16373         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
16374         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
16375         positives.
16377 2019-05-21  Martin Liska  <mliska@suse.cz>
16379         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
16380         an extra newline.
16381         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
16382         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
16383         vec_lvsr.
16384         * config/rs6000/rs6000.c (rs6000_option_override_internal):
16385         Quote a C type.
16386         (rs6000_function_arg): Likewise.
16387         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
16388         (rs6000_expand_ternop_builtin): Use interval syntax.
16389         (get_element_number): Likewise.
16390         (altivec_expand_builtin): Likewise.
16391         (rs6000_get_function_versions_dispatcher): Quote target_clones.
16393 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
16395         PR c++/59813
16396         PR target/90418
16397         * function.h (struct function): Add calls_eh_return member.
16398         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
16399         gimplifying __builtin_eh_return call.
16400         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
16401         to cfun.
16402         (expand_call_inline): Or in src_cfun->calls_eh_return into
16403         dst_cfun->calls_eh_return.
16404         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
16405         cfun->calls_eh_return.
16406         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
16407         * lto-streamer-out.c (output_struct_function_base): Write
16408         calls_eh_return.
16410 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
16412         PR rtl-optimization/43147
16413         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
16414         IX86_BUILTIN_SHUFPD.
16416 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
16418         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
16419         (refs_may_alias_p_1): ... here; update stats.
16420         (refs_may_alias_p): Do not update stats here.
16422 2019-05-20  Richard Biener  <rguenther@suse.de>
16424         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
16425         doesn't produce pointers.
16426         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
16427         the first operand points to.
16429 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
16431         * tree-ssa-alias.c (compare_sizes): New function.
16432         (sompare_type_sizes): New function
16433         (aliasing_component_refs_p): Use it.
16434         (indirect_ref_may_alias_decl_p): Likewise.
16436 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16438         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
16440 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16442         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
16443         (LIBLSAN_EARLY_SPEC): Likewise.
16444         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
16446 2019-05-20  Martin Liska  <mliska@suse.cz>
16448         * config/i386/i386.c (ix86_libc_has_fast_function):
16449         Add ATTRIBUTE_UNUSED for the argument.
16451 2019-05-20  Richard Biener  <rguenther@suse.de>
16453         * gimple-match-head.c: Include vec-perm-indices.h.
16454         * generic-match-head.c: Likewise.
16455         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
16456         is included.
16457         * fold-const.c (fold_vec_perm): Export.
16458         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
16459         (match.pd): ...here.
16461 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
16463         * cfgloop.h (struct loop): Add simdlen member.
16464         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
16465         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
16466         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
16467         as new argument to autovectorize_vector_sizes target hook.  If
16468         loop->simdlen, pick up vector size where the vectorization factor
16469         is equal to loop->simd, and if there is none, fall back to the first
16470         successful one.
16471         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
16472         caller.
16473         * omp-low.c (omp_clause_aligned_alignment): Likewise.
16474         * omp-general.c (omp_max_vf): Likewise.
16475         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
16476         * tree-vect-slp.c (vect_slp_bb): Likewise.
16477         * target.def (autovectorize_vector_sizes): Add ALL argument and
16478         document it.
16479         * doc/tm.texi: Adjust documentation.
16480         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
16481         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
16482         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
16483         bool argument.
16484         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
16485         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
16486         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
16487         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
16488         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
16489         preferred vector size is not 512-bit or 256-bit, just put those
16490         unpreferred ones last.
16492 2019-05-20  Martin Liska  <mliska@suse.cz>
16494         * targhooks.c (default_libc_has_fast_function): New function.
16495         * targhooks.h (default_libc_has_fast_function): Likewise.
16497 2019-05-20  Martin Liska  <mliska@suse.cz>
16499         PR middle-end/90263
16500         * builtins.c (expand_builtin_memory_copy_args): When having a
16501         target with fast mempcpy implementation do now use memcpy.
16502         * config/i386/i386.c (ix86_libc_has_fast_function): New.
16503         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
16504         * doc/tm.texi: Likewise.
16505         * doc/tm.texi.in: Likewise.
16506         * target.def:
16507         * expr.c (emit_block_move_hints): Add 2 new arguments.
16508         * expr.h (emit_block_move_hints): Bail out when libcall
16509         to memcpy would be used.
16511 2019-05-20  Martin Liska  <mliska@suse.cz>
16513         * profile-count.c: Add vertical spacing in order
16514         to separate functions.
16515         * profile-count.h: Likewise.
16517 2019-05-20  Martin Liska  <mliska@suse.cz>
16519         * profile-count.h: Do not use full qualified
16520         names if possible.
16521         * profile-count.c (profile_count::to_frequency): Likewise.
16523 2019-05-20  Martin Liska  <mliska@suse.cz>
16525         * profile-count.h (enum profile_quality): Use capital letters
16526         for enum value names.  Use the adjusted names.
16527         * profile-count.c: Use the adjusted names.
16529 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16531         * config/rs6000/constraints.md (define_register_constraint "wH"):
16532         Delete.
16533         (define_register_constraint "wI"): Delete.
16534         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16535         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
16536         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16537         (rs6000_init_hard_regno_mode_ok): Adjust.
16538         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
16539         resp. "d", or with "wa" as appropriate, all with "p8v".
16540         * config/rs6000/vsx.md: Ditto.
16541         * doc/md.texi (Machine Constraints): Adjust.
16543 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16545         * config/rs6000/constraints.md (define_register_constraint "wy"):
16546         Delete.
16547         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16548         RS6000_CONSTRAINT_wy.
16549         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16550         (rs6000_init_hard_regno_mode_ok): Adjust.
16551         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
16552         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
16553         (define_mode_attr Fisa): New.
16554         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
16555         * doc/md.texi (Machine Constraints): Adjust.
16557 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16559         * config/rs6000/constraints.md (define_register_constraint "wu"):
16560         Delete.
16561         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16562         RS6000_CONSTRAINT_wu.
16563         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16564         (rs6000_init_hard_regno_mode_ok): Adjust.
16565         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
16566         both with "p8v".
16567         (define_mode_attr Fa): Delete.
16568         * config/rs6000/vsx.md: Ditto.
16569         * doc/md.texi (Machine Constraints): Adjust.
16571 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16573         * config/rs6000/constraints.md (define_register_constraint "wJ"):
16574         Delete.
16575         (define_register_constraint "wK"): Delete.
16576         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16577         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
16578         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16579         (rs6000_init_hard_regno_mode_ok): Adjust.
16580         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
16581         Replace "wK" constraint by "wH" with "p9v".
16582         * config/rs6000/vsx.md: Ditto.
16583         * doc/md.texi (Machine Constraints): Adjust.
16585 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16587         * config/rs6000/constraints.md (define_register_constraint "wb"):
16588         Delete.
16589         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16590         RS6000_CONSTRAINT_wb.
16591         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16592         (rs6000_init_hard_regno_mode_ok): Adjust.
16593         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
16594         * config/rs6000/vsx.md: Ditto.
16595         * doc/md.texi (Machine Constraints): Adjust.
16597 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
16599         * config/rs6000/constraints.md (define_register_constraint "wo"):
16600         Delete.
16601         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16602         RS6000_CONSTRAINT_wo.
16603         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16604         (rs6000_init_hard_regno_mode_ok): Adjust.
16605         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
16606         * config/rs6000/altivec.md: Ditto.
16607         * doc/md.texi (Machine Constraints): Adjust.
16609 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
16611         * config/darwin-c.c (darwin_register_objc_includes): Do not
16612         prepend the sysroot when building gnu-runtime header search
16613         paths.
16615 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
16617         * config/darwin.c (darwin_file_end): Use switch_to_section ()
16618         instead of direct output of the asm.
16620 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
16622         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
16623         argument to be type bool (was int before).
16624         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
16625         at first use.  Use type bool for some variables.  Fix a theoretical
16626         eh_return bug for svr4.
16628 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
16630         * config/rs6000/rs6000.md (isa): New attribute.
16631         (enabled): New attribute.
16633 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
16635         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
16636         assemble_start_function and assemble_end_function.
16638 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
16640         PR middle-end/89433
16641         * omp-general.c (oacc_verify_routine_clauses): Change formal
16642         parameters.  Add checking if already marked with an OpenACC
16643         'routine' directive.  Adjust all users.
16645         PR middle-end/89433
16646         * omp-general.c (oacc_build_routine_dims): Move some of its
16647         processing into...
16648         (oacc_verify_routine_clauses): ... this new function.
16649         * omp-general.h (oacc_verify_routine_clauses): New prototype.
16651 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
16653         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
16654         formating of picbase labels to match other ports.
16656 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
16658         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
16659         in the generated code.
16661 2019-05-16  Martin Sebor  <msebor@redhat.com>
16663         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
16664         identifiers, keywords, operators, and types in diagnostics.  Correct
16665         quoting, spelling, and sentence capitalization issues.
16666         (expand_builtin_atomic_is_lock_free): Same.
16667         (fold_builtin_next_arg): Same.
16668         * cfgexpand.c (expand_one_var): Same.
16669         (tree_conflicts_with_clobbers_p): Same.
16670         (expand_asm_stmt): Same.
16671         (verify_loop_structure): Same.
16672         * cgraphunit.c (process_function_and_variable_attributes): Same.
16673         * collect-utils.c (collect_execute): Same.
16674         * collect2.c (maybe_run_lto_and_relink): Same.
16675         (is_lto_object_file): Same.
16676         (scan_prog_file): Same.
16677         * convert.c (convert_to_real_1): Same.
16678         * dwarf2out.c (dwarf2out_begin_prologue): Same.
16679         * except.c (verify_eh_tree): Same.
16680         * gcc.c (execute): Same.
16681         (eval_spec_function): Same.
16682         (run_attempt): Same.
16683         (driver::set_up_specs): Same.
16684         (compare_debug_auxbase_opt_spec_function): Same.
16685         * gcov-tool.c (unlink_gcda_file): Same.
16686         (do_merge): Same.
16687         (do_rewrite): Same.
16688         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
16689         * gimplify.c (gimplify_asm_expr): Same.
16690         (gimplify_adjust_omp_clauses): Same.
16691         * hsa-gen.c (gen_hsa_addr_insns): Same.
16692         (gen_hsa_insns_for_load): Same.
16693         (gen_hsa_cmp_insn_from_gimple): Same.
16694         (gen_hsa_insns_for_operation_assignment): Same.
16695         (gen_get_level): Same.
16696         (gen_hsa_alloca): Same.
16697         (omp_simple_builtin::generate): Same.
16698         (gen_hsa_atomic_for_builtin): Same.
16699         (gen_hsa_insns_for_call): Same.
16700         * input.c (dump_location_info): Same.
16701         * ipa-devirt.c (compare_virtual_tables): Same.
16702         * ira.c (ira_setup_eliminable_regset): Same.
16703         * lra-assigns.c (lra_assign): Same.
16704         * lra-constraints.c (lra_constraints): Same.
16705         * lto-streamer-in.c (lto_input_mode_table): Same.
16706         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
16707         (merge_and_complain): Same.
16708         (compile_offload_image): Same.
16709         (compile_images_for_offload_targets): Same.
16710         (debug_objcopy): Same.
16711         (run_gcc): Same.
16712         (main): Same.
16713         * opts.c (print_specific_help): Same.
16714         (parse_no_sanitize_attribute): Same.
16715         (print_help): Same.
16716         (handle_param): Same.
16717         * plugin.c (add_new_plugin): Same.
16718         (parse_plugin_arg_opt): Same.
16719         (try_init_one_plugin): Same.
16720         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
16721         operators, and types in diagnostics.  Correct quoting and spelling
16722         issues.
16723         * read-rtl-function.c (parse_edge_flag_token): Same.
16724         (function_reader::parse_enum_value): Same.
16725         * reg-stack.c (check_asm_stack_operands): Same.
16726         * regcprop.c (validate_value_data): Same.
16727         * sched-rgn.c (make_pass_sched_fusion): Same.
16728         * stmt.c (check_unique_operand_names): Same.
16729         * targhooks.c (default_target_option_pragma_parse): Same.
16730         * tlink.c (recompile_files): Same.
16731         * toplev.c (process_options): Same.
16732         (do_compile): Same.
16733         * trans-mem.c (diagnose_tm_1): Same.
16734         (ipa_tm_scan_irr_block): Same.
16735         (ipa_tm_diagnose_transaction): Same.
16736         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
16737         format a tree code name in a diagnostic.
16738         (verify_types_in_gimple_min_lval): Same.
16739         (verify_types_in_gimple_reference): Same.
16740         (verify_gimple_call): Same.
16741         (verify_gimple_assign_unary): Same.
16742         (verify_gimple_assign_binary): Same.
16743         (verify_gimple_assign_ternary): Same.
16744         (verify_gimple_assign_single): Same.
16745         (verify_gimple_switch): Same.
16746         (verify_gimple_label): Same.
16747         (verify_gimple_phi): Same.
16748         (verify_gimple_in_seq): Same.
16749         (verify_eh_throw_stmt_node): Same.
16750         (collect_subblocks): Same.
16751         (gimple_verify_flow_info): Same.
16752         (do_warn_unused_result): Same.
16753         * tree-inline.c (expand_call_inline): Same.
16754         * tree-into-ssa.c (update_ssa): Same.
16755         * tree.c (tree_int_cst_elt_check_failed): Same.
16756         (tree_vec_elt_check_failed): Same.
16757         (omp_clause_operand_check_failed): Same.
16758         (verify_type_variant): Same.
16759         (verify_type): Same.
16760         * value-prof.c (verify_histograms): Same.
16761         * varasm.c (assemble_start_function): Same.
16763 2019-05-16  Martin Sebor  <msebor@redhat.com>
16765         * config/i386/i386-expand.c (get_element_number): Quote keywords
16766         and other internal names in diagnostics.  Adjust other diagnostic
16767         formatting issues noted by -Wformat-diag.
16768         * config/i386/i386-features.c
16769         (ix86_mangle_function_version_assembler_name): Same.
16770         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
16771         * config/i386/i386.c (ix86_function_type_abi): Same.
16772         (ix86_function_ms_hook_prologue): Same.
16773         (classify_argument): Same.
16774         (ix86_expand_prologue): Same.
16775         (ix86_md_asm_adjust): Same.
16776         (ix86_memmodel_check): Same.
16778 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
16780         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
16781         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
16782         and fpxx modes.
16784 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
16786         PR target/90497
16787         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
16788         intrinsics without SSE/SSE2/SSSE3.
16789         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
16790         check.
16791         (*mmx_uavgv8qi3): Likewise.
16793 2019-05-17  Richard Biener  <rguenther@suse.de>
16795         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
16796         VEC_PERM_EXPR as __VEC_PERM with -gimple.
16798 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
16800         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
16801         vec_sldw insn pattern.
16803 2019-05-17  Richard Biener  <rguenther@suse.de>
16805         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
16807 2019-05-17  Martin Liska  <mliska@suse.cz>
16809         PR driver/90496
16810         * toplev.c (output_stack_usage): With LTO and sanitizer it
16811         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
16812         has no file location.
16814 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
16816         PR c++/90484
16817         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
16818         sz0 is equal to sz1, instead return false in that case.
16820         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
16821         has non-constant expression, force sctx.lane and use two
16822         argument IFN_GOMP_SIMD_LANE instead of single argument.
16823         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
16824         two argument IFN_GOMP_SIMD_LANE without lhs.
16825         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
16826         member.
16827         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
16828         Define.
16829         (LOOP_REQUIRES_VERSIONING): Or in
16830         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
16831         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
16832         simd_if_cond.
16833         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
16834         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
16835         from simd if clause if needed.
16837 2019-05-16  Richard Biener  <rguenther@suse.de>
16839         * tree-affine.c (expr_to_aff_combination): New function split
16840         out from...
16841         (tree_to_aff_combination): ... here.
16842         (aff_combination_expand): Avoid building a GENERIC tree.
16844 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
16846         * cgraphunit.c (cgraph_node::expand_thunk): Remove
16847         assemble_start_function and assemble_end_function calls.
16848         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
16849         assemble_start_function and assemble_end_function.
16850         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
16851         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
16852         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
16853         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
16854         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
16855         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
16856         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
16857         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
16858         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16859         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
16860         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
16861         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
16862         Likewise.
16863         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
16864         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
16865         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
16866         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
16867         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
16868         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
16869         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
16870         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
16871         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16872         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
16873         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16874         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16875         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
16876         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
16877         Likewise.
16878         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16879         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16880         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
16882 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
16884         * tree-ssa-alias.c (alias_stats): Add
16885         aliasing_component_refs_p_may_alias and
16886         aliasing_component_refs_p_no_alias.
16887         (dump_alias_stats): Print aliasing_component_refs_p stats.
16888         (aliasing_component_refs_p): Update stats.
16890 2019-05-16  Martin Liska  <mliska@suse.cz>
16892         PR lto/90500
16893         * multiple_target.c (expand_target_clones): Do not allow
16894         target_clones being used with a symbol that is an alias.
16896 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
16898         PR tree-optimization/90394
16899         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
16900         positives rather than ICE for cases where (code2 == NE_EXPR
16901         && code1 == BIT_AND_EXPR).
16903 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
16905         PR fortran/90329
16906         * tree-core.h (struct tree_decl_common): Document
16907         decl_nonshareable_flag for PARM_DECLs.
16908         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
16909         * calls.c (expand_call): Don't try tail call if caller
16910         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
16911         passed on the stack and callee needs to pass any arguments on the
16912         stack.
16913         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
16914         else if instead of series of mutually exclusive ifs.  Handle
16915         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
16916         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
16918         * lto-streamer.h (LTO_major_version): Bump to 9.
16920 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
16922         PR tree-optimization/90106
16923         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
16924         new parameter as new internal function call, also move it to new
16925         basic block.
16926         (use_internal_fn): Pass internal function call to
16927         shrink_wrap_one_built_in_call_with_conds.
16929 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
16931         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
16932         max_vf to 1.
16933         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
16934         safelen_int and set loop->dont_vectorize.
16936 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16938         PR target/89021
16939         * config/i386/i386-builtin.def: Enable MMX intrinsics with
16940         SSE/SSE2/SSSE3.
16941         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
16942         Likewise.
16943         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
16944         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
16945         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
16946         is defined.
16948 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16950         PR target/89021
16951         * config/i386/mmx.md (*vec_dupv2sf): Changed to
16952         define_insn_and_split to support SSE emulation.
16953         (*vec_extractv2sf_0): Likewise.
16954         (*vec_extractv2sf_1): Likewise.
16955         (*vec_extractv2si_0): Likewise.
16956         (*vec_extractv2si_1): Likewise.
16957         (*vec_extractv2si_zext_mem): Likewise.
16958         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
16959         (vec_extractv2sf_1 splitter): Likewise.
16960         (vec_extractv2sfsf): Likewise.
16961         (vec_setv2si): Likewise.
16962         (vec_extractv2si_1 splitter): Likewise.
16963         (vec_extractv2sisi): Likewise.
16964         (vec_setv4hi): Likewise.
16965         (vec_extractv4hihi): Likewise.
16966         (vec_setv8qi): Likewise.
16967         (vec_extractv8qiqi): Likewise.
16968         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
16969         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
16970         (vec_extractv2sisi): Likewise.
16971         (vec_extractv4hihi): Likewise.
16972         (vec_extractv8qiqi): Likewise.
16973         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
16974         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
16975         (vec_initv2sisi): Likewise.
16976         (vec_initv4hihi): Likewise.
16977         (vec_initv8qiqi): Likewise.
16978         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
16979         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
16980         (vec_setv4hi): Likewise.
16981         (vec_setv8qi): Likewise.
16983 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
16985         PR target/89021
16986         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
16987         TARGET_MMX_WITH_SSE.
16988         (MMXMODE:*mov<mode>_internal): Likewise.
16989         (MMXMODE:movmisalign<mode>): Likewise.
16991 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16993         PR target/89021
16994         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
16995         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
16996         (sse2_cvtpd2pi): Ditto.
16997         (sse2_cvttpd2pi): Ditto.
16998         (*vec_concatv2sf_sse4_1): Ditto.
16999         (*vec_concatv2sf_sse): Ditto.
17000         (*vec_concatv2si_sse4_1): Ditto.
17001         (*vec_concatv2si): Ditto.
17002         (*vec_concatv4si_0): Ditto.
17003         (*vec_concatv2di_0): Ditto.
17005 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17007         PR target/89021
17008         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
17010 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17012         PR target/89021
17013         * config/i386/sse.md (ssse3_palignrdi): Changed to
17014         define_insn_and_split to support SSE emulation.
17016 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17018         PR target/89021
17019         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
17021 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17023         PR target/89021
17024         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
17025         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
17026         SSE emulation.
17028 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17030         PR target/89021
17031         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
17032         or TARGET_MMX_WITH_SSE.
17033         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
17035 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17037         PR target/89021
17038         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
17040 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17042         PR target/89021
17043         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
17044         Changed to define_insn_and_split to support SSE emulation.
17046 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17048         PR target/89021
17049         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
17050         Changed to define_insn_and_split to support SSE emulation.
17052 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17054         PR target/89021
17055         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
17056         (*mmx_<emms>): This.
17057         (mmx_<emms>): New expander.
17059 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17061         PR target/89021
17062         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
17063         support.
17064         (*sse2_umulv1siv1di3): Add SSE2 emulation.
17066 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17068         PR target/89021
17069         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
17071 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17073         PR target/89021
17074         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
17076 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17078         PR target/89021
17079         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
17080         TARGET_MMX_WITH_SSE.
17081         (*mmx_uavgv4hi3): Add SSE emulation.
17083 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17085         PR target/89021
17086         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
17087         and TARGET_MMX_WITH_SSE.
17088         (*mmx_uavgv8qi3): Add SSE emulation.
17090 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17092         PR target/89021
17093         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
17094         maskmovdqu for __MMX_WITH_SSE__.
17096 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17098         PR target/89021
17099         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
17100         TARGET_MMX and TARGET_MMX_WITH_SSE.
17101         (*mmx_umulv4hi3_highpart): Add SSE emulation.
17103 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17105         PR target/89021
17106         * config/i386/mmx.md (mmx_pmovmskb): Changed to
17107         define_insn_and_split to support SSE emulation.
17109 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17111         PR target/89021
17112         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
17113         and TARGET_MMX_WITH_SSE.
17114         (mmx_<code>v8qi3): Likewise.
17115         (smaxmin:<code>v4hi3): New.
17116         (umaxmin:<code>v8qi3): Likewise.
17117         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
17118         (umaxmin:*mmx_<code>v8qi3): Likewise.
17120 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17122         PR target/89021
17123         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
17124         TARGET_MMX_WITH_SSE.
17125         (*mmx_pinsrw): Add SSE emulation.
17127 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17129         PR target/89021
17130         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
17132 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17134         PR target/89021
17135         * config/i386/sse.md (sse_cvtpi2ps): Changed to
17136         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
17137         SSE emulation.
17139 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17141         PR target/89021
17142         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
17143         (sse_cvttps2pi): Likewise.
17145 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17147         PR target/89021
17148         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
17149         TARGET_MMX_WITH_SSE.
17150         (mmx_pshufw_1): Add SSE emulation.
17151         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
17152         TARGET_MMX_WITH_SSE to support SSE emulation.
17154 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17156         PR target/89021
17157         * config/i386/constraints.md (Yw): New constraint.
17158         * config/i386/mmx.md (*vec_dupv2si): Changed to
17159         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
17160         support SSE emulation.
17162 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17164         PR target/89021
17165         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
17166         TARGET_MMX_WITH_SSE.
17167         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
17168         support.
17169         (mmx_gt<mode>3): Likewise.
17171 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17173         PR target/89021
17174         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
17175         TARGET_MMX_WITH_SSE.  Add SSE support.
17177 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17179         PR target/89021
17180         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
17181         TARGET_MMX_WITH_SSE.
17182         (any_logic:<code><mode>3): New.
17183         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
17184         Add SSE support.
17186 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17188         PR target/89021
17189         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
17190         TARGET_MMX_WITH_SSE.  Add SSE emulation.
17191         (mmx_<shift_insn><mode>3): Likewise.
17192         (ashr<mode>3): New.
17193         (<shift_insn><mode>3): Likewise.
17195 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17197         PR target/89021
17198         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
17199         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
17201 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17203         PR target/89021
17204         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
17205         TARGET_MMX_WITH_SSE.
17206         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
17207         SSE support.
17209 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17211         PR target/89021
17212         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
17213         TARGET_MMX_WITH_SSE.
17214         (mulv4hi3): New.
17215         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
17216         support.
17218 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17220         PR target/89021
17221         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
17222         (plusminus:mmx_<plusminus_insn><mode>3): Check
17223         TARGET_MMX_WITH_SSE.
17224         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
17225         (<plusminus_insn><mode>3): New.
17226         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
17227         (*mmx_<plusminus_insn><mode>3): Likewise.
17229 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17231         PR target/89021
17232         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
17233         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
17234         prototype.
17235         * config/i386/mmx.m (mmx_punpckhbw): Changed to
17236         define_insn_and_split to support SSE emulation.
17237         (mmx_punpcklbw): Likewise.
17238         (mmx_punpckhwd): Likewise.
17239         (mmx_punpcklwd): Likewise.
17240         (mmx_punpckhdq): Likewise.
17241         (mmx_punpckldq): Likewise.
17243 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17244             Uros Bizjak  <ubizjak@gmail.com>
17246         PR target/89021
17247         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
17248         New function.
17249         (ix86_split_mmx_pack): Likewise.
17250         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
17251         New prototype.
17252         (ix86_split_mmx_pack): Likewise.
17253         * config/i386/i386.md (mmx_isa): New.
17254         (enabled): Also check mmx_isa.
17255         * config/i386/mmx.md (any_s_truncate): New code iterator.
17256         (s_trunsuffix): New code attr.
17257         (mmx_packsswb): Removed.
17258         (mmx_packssdw): Likewise.
17259         (mmx_packuswb): Likewise.
17260         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
17261         MMX packsswb/packuswb with SSE2.
17262         (mmx_packssdw): Likewise.
17263         * config/i386/predicates.md (register_mmxmem_operand): New.
17265 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
17267         PR target/89021
17268         * config/i386/i386-c.c (ix86_target_macros_internal): Define
17269         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
17270         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
17271         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
17272         (ix86_vector_mode_supported_p): Likewise.
17273         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
17275 2019-05-15  Martin Liska  <mliska@suse.cz>
17277         PR middle-end/90478
17278         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17279         Check for overflow.
17281 2019-05-15  Richard Biener  <rguenther@suse.de>
17283         * tree-into-ssa.c (pass_build_ssa::execute): Run
17284         update_address_taken before going into SSA.
17286 2019-05-15  Richard Biener  <rguenther@suse.de>
17288         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
17289         as __BIT_FIELD_REF with type with -gimple.
17291 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
17293         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
17294         semantically equivalent branches (left over after prior refactorings).
17296 2019-05-15  Richard Biener  <rguenther@suse.de>
17298         PR tree-optimization/88828
17299         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
17300         bogus check.
17302 2019-05-14  Richard Biener  <rguenther@suse.de>
17304         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
17305         as __VIEW_CONVERT with -gimple.
17307 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
17309         PR target/82920
17310         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
17311         Darwin.
17313 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
17315         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
17316         define_split to become a define_insn_and_split.
17318 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
17320         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
17321         arguments.
17322         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
17323         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
17324         (sibcall_epilogue): Adjust.
17325         (epilogue): Adjust.
17327 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17329         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
17330         to unsupported ones.
17331         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
17332         * config.host: Likewise.
17333         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
17334         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
17335         __svr4__]: Remove "brand" fallback.
17336         [!KSTAT_DATA_STRING]: Remove.
17337         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
17338         to *-*-solaris2*.
17339         (comdat_group): Likewise.
17340         (set_have_as_tls): Likewise.
17341         (gcc_cv_target_dl_iterate_phdr): Likewise.
17342         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
17343         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
17344         * configure: Regenerate.
17345         * doc/install.texi: Simplify Solaris target triplets.
17346         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
17347         (Specific, *-*-solaris2*): Document Solaris 10 removal.
17348         Remove Solaris 10 references.
17349         Remove obsolete Solaris bug reference.
17350         (Specific, sparc-sun-solaris2.10): Remove.
17352 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17354         * config/i386/i386.md (any_div): New code iterator.
17355         (paired_mod): New code attribute.
17356         (sgnprefix): Handle DIV and UDIV RTXes.
17357         (u): Ditto.
17358         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
17359         and udivmod<mode>4 patterns using any_div code iterator.
17360         (divmod splitters): Macroize splitters using any_div code iterator.
17361         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
17362         (*udivmodsi4_pow2_zext_2): Ditto.
17363         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
17364         and *udivmod<mode>4_noext patterns using any_div code iterator.
17365         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
17366         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
17367         patterns using any_div code iterator.
17368         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
17369         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
17370         patterns using any_div code iterator.
17371         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
17372         udivmodhiqi3 patterns using any_extend code iterator.
17374 2019-05-14  Richard Biener  <rguenther@suse.de>
17375             H.J. Lu  <hongjiu.lu@intel.com>
17377         PR tree-optimization/88828
17378         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
17379         permuting in a single non-constant element not extracted
17380         from a vector.
17382 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
17384         * internal-fn.def (SIGNBIT): New.
17385         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
17386         defined.
17387         (signbitv4sf2): Likewise.
17389 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
17391         PR target/90357
17392         * config/mips/mips.c (mips_split_move): Skip forward SRC into
17393         next insn when the SRC reg is dead.
17395 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
17397         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
17398         (alloc_cand_and_find_basis): Ditto.
17399         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
17400         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
17401         (create_add_imm_cand, slsr_process_cast): Ditto.
17402         (slsr_process_copy, replace_mult_candidate): Ditto.
17403         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
17404         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
17405         (pass_strength_reduction::execute): Init the first NULL element.
17407 2019-05-13  Nathan Sidwell  <nathan@acm.org>
17409         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
17410         (run_attempt): Reformat line break.
17412 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
17414         PR target/90418
17415         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
17416         data registers in sibcall epilogues.
17417         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17419 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17421         PR target/89221
17422         * configure.ac (--enable-frame-pointer):
17423         Disable by default for cygwin and mingw.
17424         * configure: Regenerate.
17426 2019-05-13  Nathan Sidwell  <nathan@acm.org>
17428         * dwarf2out.c (breakout_comdat_types): Move comment to correct
17429         piece of code.
17430         (const_ok_for_output_1): Balance parens around #if/#else/#endif
17431         (gen_member_die): Move abstract origin check earlier.  Only VARs
17432         can be static_inline_p.  Simplify splicing control flow.
17434 2019-05-13  Richard Biener  <rguenther@suse.de>
17436         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
17437         VIEW_CONVERT_EXPR.
17438         (vect_build_slp_tree_1): Likewise.
17440 2019-05-13  Richard Biener  <rguenther@suse.de>
17442         PR tree-optimization/90402
17443         * tree-if-conv.c (tree_if_conversion): Value number only
17444         the loop body by making the latch an exit of the region
17445         as well.
17446         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
17447         processing PHIs.
17448         (do_rpo_vn): Deal with multiple edges into the entry block
17449         that are not backedges inside the region by skipping PHIs
17450         of the entry block.
17452 2019-05-13  Richard Biener  <rguenther@suse.de>
17454         PR tree-optimization/90316
17455         * tree-ssa-pre.c (insert_aux): Fold into ...
17456         (insert): ... this function.  Use a RPO walk to reduce the
17457         number of required iterations.
17459 2019-05-13  Martin Liska  <mliska@suse.cz>
17461         PR tree-optimization/90416
17462         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
17463         string instead of passing the second part as va_arg argument.
17465 2019-05-13  Martin Liska  <mliska@suse.cz>
17467         PR gcov-profile/90380
17468         * gcov.c (handle_cycle): Do not support zero cycle count,
17469         it should not be possible.
17470         (path_contains_zero_cycle_arc): New function.
17471         (circuit): Ignore zero cycle arc counts.
17473 2019-05-13  Martin Liska  <mliska@suse.cz>
17475         PR gcov-profile/90380
17476         * gcov.c (enum loop_type): Remove the enum and
17477         the operator.
17478         (handle_cycle): Assert that we should not reach
17479         a negative count.
17480         (circuit): Use loop_found instead of a tri-state loop_type.
17481         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
17482         happen.
17484 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
17486         PR target/82920
17487         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
17488         (ix86_output_indirect_branch_via_reg): Use output mechanism
17489         accounting for __USER_LABEL_PREFIX__.
17490         (ix86_output_indirect_branch_via_push): Likewise.
17491         (ix86_output_function_return): Likewise.
17492         (ix86_output_indirect_function_return): Likewise.
17494 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
17496         * doc/md.texi: Document use of code attributes in rtx patterns.
17497         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
17498         * read-rtl.c (find_code): Split out search loops into...
17499         (maybe_find_code): ...this new function.
17500         (check_code_iterator): Make the error message more informative.
17501         (check_code_attribute): New function.
17502         (rtx_reader::rtx_alloc_for_name): Likewise.
17503         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
17504         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
17505         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
17506         <max_opp> directly as an rtx code instead of via a match_operator.
17507         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
17508         (<su>abd<mode>_3): Update accordingly.
17510 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
17512         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
17513         is given, print the state of the EH "save world" computation for
17514         Darwin.
17516 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
17518         PR c++/59813
17519         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
17520         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
17522 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17524         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
17525         Use pinsrd for TARGET_SSE4_1.
17526         * config/i386/sse.md (movdi_to_sse): Ditto.
17528 2019-05-10  Richard Biener  <rguenther@suse.de>
17530         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
17531         (do_rpo_vn): Initialize next_value_id.
17533 2019-05-10  Martin Liska  <mliska@suse.cz>
17535         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17536         Fix plural form.
17538 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
17540         PR tree-optimization/90385
17541         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
17542         arguments of the exit phis.
17544         PR c++/90383
17545         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
17546         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
17547         id->do_not_fold.
17548         (copy_tree_body_r): Likewise.
17549         (copy_fn): Set id.do_not_fold to true.
17551 2019-05-10  Martin Liska  <mliska@suse.cz>
17553         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
17554         Reapply changes from r269790.
17556 2019-05-10  Martin Liska  <mliska@suse.cz>
17558         PR middle-end/90340
17559         * doc/invoke.texi: New params.
17560         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
17561         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
17562         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
17563         Use it.
17564         * tree-switch-conversion.h (struct jump_table_cluster):
17565         Likewise.
17567 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
17569         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
17571 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
17573         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
17575 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
17577         PR rtl-optimization/88879
17578         * sel-sched.c (sel_target_adjust_priority): Remove assert.
17580 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
17582         PR target/90405
17583         * config/arm/arm.c (callee_saved_reg_p): Move before
17584         thumb_find_work_register.
17585         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
17586         thumb_find_work_register.  Only call df_get_live_out once.
17587         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
17588         (thumb_find_work_register): Use
17589         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
17590         algorithms to locate a spare call clobbered reg.
17592 2019-05-09  Martin Liska  <mliska@suse.cz>
17594         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
17595         and MAX_EXPR in GIMPLE FE format.
17597 2019-05-09  Martin Liska  <mliska@suse.cz>
17599         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
17600         * gimple-pretty-print.c (dump_gimple_bb_header):
17601         Dump BB count.
17602         (pp_cfg_jump): Dump edge probability.
17603         * profile-count.c (profile_quality_as_string): Simplify
17604         with a static array.
17605         (parse_profile_quality): New function.
17606         (profile_count::dump): Simplify with a static array.
17607         (profile_count::from_gcov_type): Add new argument.
17608         * profile-count.h (parse_profile_quality): Likewise.
17609         * predict.h (set_hot_bb_threshold): New.
17610         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
17611         New param.
17612         * predict.c (get_hot_bb_threshold): Set from the new param.
17613         (set_hot_bb_threshold): New.
17615 2019-05-09  Richard Biener  <rguenther@suse.de>
17617         PR tree-optimization/90395
17618         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
17619         rewrite vector stores that throw internally.
17621 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
17623         * cif-code.def (CHKP): Remove.
17625         PR target/89221
17626         * configure.ac (--enable-frame-pointer): Disable by default for
17627         GNU systems.
17628         * configure: Regenerate.
17630 2019-05-09  Alan Modra  <amodra@gmail.com>
17632         PR target/89271
17633         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
17634         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
17635         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
17636         cost for general <-> vsx when direct moves are available.
17637         Cost union classes at minimal cost for any reg in the class.
17638         Correct calculation for moves between vsx, float, and altivec.
17639         Don't return a low cost for moves between special regs.  Don't
17640         use hard coded register numbers.
17641         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
17642         (rs6000_ira_change_pseudo_allocno_class): New function.
17643         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
17644         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
17645         alternatives.
17646         (movsi_internal1): Don't disparage vector alternatives.
17647         (mov<mode>_internal): Likewise, excepting alternative that
17648         will be split.
17649         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
17650         we <- b alternative.
17652 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
17654         PR c++/59813
17655         PR tree-optimization/89060
17656         * tree-ssa-live.h (live_vars_map): New typedef.
17657         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
17658         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
17659         (struct compute_live_vars_data): New type.
17660         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
17661         live_vars_at_stmt, destroy_live_vars): New functions.
17662         * tree-tailcall.c: Include tree-ssa-live.h.
17663         (live_vars, live_vars_vec): New global variables.
17664         (find_tail_calls): Perform variable life analysis before punting.
17665         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
17666         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
17667         member.
17668         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
17669         Perform variable life analysis to select variables that really need
17670         clobbers added.
17671         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
17672         instead set id->eh_landing_pad_dest and assert it is the same.
17673         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
17675 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
17676             Richard Earnshaw  <rearnsha@arm.com>
17678         PR target/88167
17679         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
17680         function.
17681         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
17682         (thumb1_compute_save_core_reg_mask): Don't force a spare work
17683         register if both the epilogue and prologue can use call-clobbered
17684         regs.
17685         (thumb1_unexpanded_epilogue): Use
17686         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
17687         picking temporaries for restoring high regs to match that of the
17688         prologue where possible.
17689         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
17690         the list of work registers.  Detect if the return address is still live
17691         at the end of the prologue and avoid using it for a work register if so.
17692         If the return address is not live, add LR to the list of pushable regs
17693         after the first pass.
17695 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
17697         PR tree-optimization/90078
17698         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
17699         (INFTY): Increase the value for infinite cost.
17700         (struct comp_cost): Promote type of members to int64_t.
17701         (infinite_cost): Don't set complexity in initialization.
17702         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
17703         overflows to infinite_cost.
17704         (adjust_setup_cost): Promote type of parameter and cost computation
17705         to int64_t.
17706         (struct ainc_cost_data, struct iv_ca): Promote type of member to
17707         int64_t.
17708         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
17709         cost computation to int64_t.
17710         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
17711         int64_t's format specifier in dump.
17713 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
17715         PR tree-optimization/90240
17716         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
17717         with respect to scaling factor pre-computed for each basic block.
17718         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
17719         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
17720         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
17721         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
17722         live range for array of loop's basic blocks.  Cleanup aux field of
17723         loop's basic blocks.
17725 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
17727         PR tree-optimization/90356
17728         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
17730 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
17732         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
17733         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
17734         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
17735         (ix86_handle_option): Handle -mavx512bf16.
17736         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
17737         to extra_headers.
17738         * config/i386/avx512bf16vlintrin.h: New.
17739         * config/i386/avx512bf16intrin.h: New.
17740         * config/i386/cpuid.h (bit_AVX512BF16): New.
17741         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
17742         * config/i386/i386-builtin-types.def: Add new types.
17743         * config/i386/i386-builtin.def: Add new builtins.
17744         * config/i386/i386-c.c (ix86_target_macros_internal): Define
17745         __AVX512BF16__.
17746         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
17747         (ix86_option_override_internal): Handle BF16.
17748         (ix86_valid_target_attribute_inner_p): Ditto.
17749         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
17750         * config/i386/i386-builtin.c (enum processor_features): Add
17751         F_AVX512BF16.
17752         (static const _isa_names_table isa_names_table): Ditto.
17753         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
17754         (PTA_AVX512BF16): Ditto.
17755         * config/i386/i386.opt: Add -mavx512bf16.
17756         * config/i386/immintrin.h: Include avx512bf16intrin.h
17757         and avx512bf16vlintrin.h.
17758         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
17759         avx512f_cvtneps2bf16_<mode><mask_name>,
17760         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
17761         * config/i386/subst.md (mask_half): Add new subst.
17762         * doc/invoke.texi: Document -mavx512bf16.
17764 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
17766         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
17767         Delete declaration.
17768         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
17769         (rs6000_debug_legitimize_reload_address): Delete.
17770         (rs6000_legitimize_reload_address_ptr): Delete.
17771         (rs6000_option_override_internal): Adjust.
17772         (mem_operand_gpr): Adjust comment.
17773         (legitimate_lo_sum_address_p): Ditto.
17774         (rs6000_legitimize_reload_address): Delete.
17775         (rs6000_debug_legitimize_reload_address): Delete.
17776         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
17778 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17780         PR target/89765
17781         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
17782         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
17783         to compute vector element selector for both constant and variable
17784         operands.
17786 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17788         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
17789         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
17790         ashrdi3_cvt using SWI48 mode iterator.
17792 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
17794         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
17795         (aarch64_<su>abd<mode>_3): Likewise.
17796         (*aarch64_<su>abd<mode>_3): New define_insn.
17797         (<sur>sad<vsi2qi>): New define_expand.
17798         * config/aarch64/iterators.md: Added MAX_OPP attribute.
17799         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
17800         (build_vect_cond_expr): Likewise.
17802 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17804         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
17805         clobbers outside of accessible_reg_set.
17806         * config/i386/i386.c (ix86_conditional_register_usage):
17807         Disable register sets by clearing corresponding bits in
17808         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
17809         call_used_regs and don't clear corresponding reg_names array members.
17811 2019-05-07  Richard Biener  <rguenther@suse.de>
17813         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
17814         not specified still compute a comp_vectype for invariant
17815         compares.
17817 2019-05-07  Richard Biener  <rguenther@suse.de>
17819         PR tree-optimization/90316
17820         * tree-ssa-pre.c (translate_vuse_through_block): When
17821         same_valid is NULL do not bother to search for a virtual
17822         PHI continuation.
17823         (phi_translate_1): When operands changed we cannot keep
17824         the same value-number so do not bother to ask whether
17825         that's possible from translate_vuse_through_block.
17827 2019-05-07  Martin Liska  <mliska@suse.cz>
17829         * bitmap.c (bitmap_register): Come up with
17830         alloc_descriptor_max_uid and assign it for
17831         a new bitmap.
17832         (register_overhead): Use get_descriptor as
17833         a descriptor.
17834         (release_overhead): New.
17835         (bitmap_elem_to_freelist): Call it.
17836         (bitmap_elt_clear_from): Likewise.
17837         (bitmap_obstack_free): Likewise.
17838         (bitmap_move): Sensitively release memory.
17839         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
17840         (bitmap_initialize): Initialize alloc_descriptor to zero.
17841         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
17843 2019-05-07  Richard Biener  <rguenther@suse.de>
17845         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
17846         we build a SLP node.  Remove max_size and limiting.
17847         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
17849 2019-05-07  Richard Biener  <rguenther@suse.de>
17851         PR tree-optimization/90316
17852         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
17853         limit by reference.
17854         (walk_non_aliased_vuses): Take walking limit argument.
17855         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
17856         walking if it is reached instead of just counting.
17857         (get_continuation_for_phi): Likewise.
17858         (walk_non_aliased_vuses): Likewise, instead of leaving counter
17859         limiting to the callback.
17860         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
17861         (vn_reference_lookup_3): Likewise.
17862         (vn_reference_lookup_pieces): Likewise.
17863         (vn_reference_lookup): Likewise.
17864         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
17865         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
17866         (avail_exprs_stack::lookup_avail_expr): Likewise.
17868 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
17870         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
17871         for comparaible types in the second direction even if first one
17872         hits incomparable type.
17874 2019-05-07  Richard Biener  <rguenther@suse.de>
17876         PR lto/90369
17877         * lto-wrapper.c (debug_objcopy): Use the original filename
17878         including archive offset for the filename used for -save-temps.
17880 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
17882         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
17883         detection.
17885 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
17886             Hongtao Liu  <hongtao.liu@intel.com>
17888         PR target/89750
17889         PR target/86444
17890         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
17891         Modified, original implementation isn't correct.
17893 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17895         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
17896         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
17897         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
17898         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
17899         (FRAME_POINTER_REGNUM): Change numbering.
17900         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
17901         (alt_reg_names): Adjust.
17902         (rs6000_conditional_register_usage): Don't mark hard register 64 as
17903         fixed.
17904         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17905         (DWARF_FRAME_REGISTERS): Delete.
17906         (DWARF2_FRAME_REG_OUT): Fix whitespace.
17907         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17908         Adjust.
17909         (REG_ALLOC_ORDER): Adjust.
17910         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
17911         (REG_CLASS_CONTENTS): Adjust.
17912         (RETURN_ADDR_RTX): Change comment.
17913         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
17914         instead of 67.
17915         (REGISTER_NAMES): Adjust.
17916         (ADDITIONAL_REGISTER_NAMES): Adjust.
17917         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17919 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17921         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
17922         Delete.
17923         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
17924         (DWARF_FRAME_REGISTERS): Adjust.
17925         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
17926         Adjust.
17927         (REG_ALLOC_ORDER): Adjust.
17928         (enum reg_class): Delete SPR_REGS.
17929         (REG_CLASS_NAMES): Delete SPR_REGS.
17930         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
17931         (REGISTER_NAMES): Adjust.
17932         (ADDITIONAL_REGISTER_NAMES): Adjust.
17933         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
17934         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
17935         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
17936         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
17937         (htm_spr_regno): Delete.
17938         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
17939         argument.
17940         (rs6000_dbx_register_number): Adjust.
17942 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17944         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
17946 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
17948         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
17949         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
17951 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
17953         PR tree-optimization/88709
17954         PR tree-optimization/90271
17955         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
17956         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
17957         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
17958         variable.
17959         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
17960         of the store merging group is larger than
17961         PARAM_STORE_MERGING_MAX_SIZE parameter.
17962         (split_group): Add bzero_first argument.  If set, always emit first
17963         the first store which must be = {} of the whole area and then for the
17964         rest of the stores consider all zero bytes as paddings.
17965         (imm_store_chain_info::output_merged_store): Check if first store
17966         is = {} of the whole area and if yes, determine which setting of
17967         bzero_first for split_group gives smaller number of stores.  Adjust
17968         split_group callers.
17969         (lhs_valid_for_store_merging_p): Allow decls.
17970         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
17971         no elts.
17972         (pass_store_merging::process_store): Likewise.
17974 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
17976         PR target/89424
17977         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
17978         handling of V1TImode.
17980 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17982         PR target/89221
17983         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
17984         and enable_frame_pointer ...
17985         * configure.ac: ... here.  Update help strings for
17986         --enable-frame-pointer.
17987         * configure: Regenerate.
17988         * config/i386/i386-options.c (ix86_option_override_internal): Remove
17989         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
17990         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
17991         (USE_X86_64_FRAME_POINTER): Ditto.
17993 2019-05-06  Martin Liska  <mliska@suse.cz>
17995         * config.gcc: Append to target_gtfiles and fix indentation.
17997 2019-05-06  Richard Biener  <rguenther@suse.de>
17999         PR tree-optimization/90358
18000         * tree-vect-stmts.c (get_group_load_store_type): Properly
18001         detect unused upper half of load.
18002         (vectorizable_load): Likewise.
18004 2019-05-06  Richard Biener  <rguenther@suse.de>
18006         PR tree-optimization/88828
18007         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
18008         (simplify_vector_constructor): ...here.  Handle constants in
18009         the constructor.
18011 2019-05-06  Richard Biener  <rguenther@suse.de>
18013         PR tree-optimization/90328
18014         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
18015         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
18016         is valid in the loop nest before using it.
18017         (initialize_data_dependence_relation): Adjust.
18018         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
18019         loop as loop-nest to dr_may_alias_p.
18021 2019-05-06  Richard Biener  <rguenther@suse.de>
18023         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
18025 2019-05-06  Richard Biener  <rguenther@suse.de>
18027         PR tree-optimization/90316
18028         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
18029         compute target on demand.
18030         (get_continuation_for_phi): Remove code walking stmts to
18031         get to a target virtual operand which could end up being
18032         quadratic.
18034 2019-05-06  Martin Liska  <mliska@suse.cz>
18036         PR sanitizer/90312
18037         * config/i386/i386-options.c (ix86_option_override_internal): Error only
18038         when -mabi is selected to a non-default version.
18040 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
18041             Martin Liska  <mliska@suse.cz>
18043         * Makefile.in: Add lto-dump.texi.
18044         * cgraph.h: Add new functions get_visibility_string and
18045         get_symtab_type_string.
18046         * doc/gcc.texi: Include lto-dump section.
18047         * doc/lto-dump.texi: New file.
18048         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
18049         (parse_dump_option): Factor out this function.
18050         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
18051         (parse_dump_option): Export the function.
18052         * symtab.c (symtab_node::get_visibility_string): New function.
18053         (symtab_node::get_symtab_type_string): Likewise.
18055 2019-05-06  Martin Liska  <mliska@suse.cz>
18057         * config/i386/i386-builtins.c: New file.
18058         * config/i386/i386-builtins.h: New file.
18059         * config/i386/i386-expand.c: New file.
18060         * config/i386/i386-expand.h: New file.
18061         * config/i386/i386-features.c: New file.
18062         * config/i386/i386-features.h: New file.
18063         * config/i386/i386-options.c: New file.
18064         * config/i386/i386-options.h: New file.
18065         * config.gcc: Add new files into extra_objs and
18066         target_gtfiles.
18067         * config/i386/i386.c: Split content of the file
18068         into newly introduced files.
18069         * config/i386/i386.h: Declare common variables
18070         and macros.
18071         * config/i386/t-i386: Define dependencies for new files.
18073 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
18075         PR target/89400
18076         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
18077         Restrict 'all' variant to 32-bit configurations.
18078         (unaligned_loadhiu): Likewise.
18079         (unaligned_storehi): Likewise.
18080         (unaligned_storesi): Likewise.
18081         (unaligned_loadhis): Disable when compiling for thumb1.
18083 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
18085         PR tree-optimization/90269
18086         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
18087         Ignore clobbers.
18089 2019-05-03  Martin Liska  <mliska@suse.cz>
18091         * hash-map.h: Add is_empty function.
18092         * hash-set.h: Likewise.
18093         * hash-table.h: Likewise.
18094         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
18095         elements () == 0 (and similar usages).
18096         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
18097         * gimplify.c (gimplify_bind_expr): Likewise.
18098         (gimplify_switch_expr): Likewise.
18099         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
18100         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
18101         * postreload-gcse.c (dump_hash_table): Likewise.
18102         (gcse_after_reload_main): Likewise.
18103         * predict.c (combine_predictions_for_bb): Likewise.
18104         * tree-parloops.c (reduction_phi): Likewise.
18105         (separate_decls_in_region): Likewise.
18106         (transform_to_exit_first_loop): Likewise.
18107         (gen_parallel_loop): Likewise.
18108         (gather_scalar_reductions): Likewise.
18109         (try_create_reduction_list): Likewise.
18110         * var-tracking.c (dump_vars): Likewise.
18111         (emit_notes_for_changes): Likewise.
18112         (vt_emit_notes): Likewise.
18114 2019-05-03  Richard Biener  <rguenther@suse.de>
18116         PR tree-optimization/90316
18117         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
18118         before running VN.
18120 2019-05-03  Richard Biener  <rguenther@suse.de>
18122         * tree-vect-stmts.c (get_group_load_store_type): Avoid
18123         peeling for gaps by loading only lower halves of vectors
18124         if possible.
18125         (vectorizable_load): Likewise.
18127 2019-05-03  Richard Biener  <rguenther@suse.de>
18129         PR middle-end/89518
18130         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
18132 2019-05-03  Richard Biener  <rguenther@suse.de>
18134         PR middle-end/87314
18135         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
18136         Handle STRING_CST vs DECL or STRING_CST.
18138 2019-05-03  Richard Biener  <rguenther@suse.de>
18140         PR tree-optimization/88963
18141         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
18142         vector loads feeding only BIT_FIELD_REFs to component
18143         loads.  Rewrite stores fed by CONSTRUCTORs to component
18144         stores.
18146 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
18148         * opts.h (finish_options): Remove lang_mask argument.
18149         (print_help, help_option_argument): Declare.
18150         * opts.c (print_help): Remove forward declaration, no longer static.
18151         (finish_options): Remove lang_mask argument, don't call print_help
18152         here.
18153         * opts-global.c (decode_options): Adjust finish_option caller, call
18154         print_help here.
18156         PR tree-optimization/90303
18157         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
18158         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
18160 2019-05-03  Richard Biener  <rguenther@suse.de>
18162         PR tree-optimization/89698
18163         * gimple-fold.c (canonicalize_constructor_val): Early out
18164         for constants, handle unfolded INTEGER_CSTs as they appear in
18165         C++ virtual table ctors.
18167 2019-05-03  Richard Biener  <rguenther@suse.de>
18169         * passes.c (execute_function_todo): Remove dead code.
18171 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
18173         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
18174         the internal register number, for any "real" register.
18176 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
18178         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
18179         correct numbers for TFHAR, TFIAR, TEXASR.
18181 2019-05-02  Richard Biener  <rguenther@suse.de>
18183         PR tree-optimization/89653
18184         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
18185         update-address-taken before the pass.
18186         * passes.def (pass_tree_loop_init): Put comment before it.
18188 2019-05-02  Richard Biener  <rguenther@suse.de>
18190         PR tree-optimization/89509
18191         * tree-ssa-structalias.c (compute_dependence_clique): Look
18192         at the first subvar when determining whether it is restrict.
18194 2019-05-02  Richard Biener  <rguenther@suse.de>
18196         PR tree-optimization/90273
18197         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
18198         useless debug stmts.
18200 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
18202         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
18203         ACLE branch.
18204         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
18205         SVE ACLE branch.
18206         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
18207         VEC_COND_EXPR be inserted to emulate a conditional internal function.
18208         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
18209         (vectorizable_reduction): Use the functions above to vectorize in a
18210         fully masked loop codes that don't have a conditional internal
18211         function.
18213 2019-05-02  Martin Liska  <mliska@suse.cz>
18215         * cgraphclones.c: Call valid_attribute_p with 1 for
18216         target_clone.
18217         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
18218         it's for target attribute.
18219         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
18220         Add new boolean argument.
18221         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
18222         Likewise.
18223         (ix86_valid_target_attribute_tree): Pass target_clone_attr
18224         to ix86_valid_target_attribute_inner_p.
18225         (ix86_valid_target_attribute_p): Pass flags argument to
18226         ix86_valid_target_attribute_inner_p.
18227         (get_builtin_code_for_version): Use 0 as it's target attribute.
18229 2019-05-02  Martin Liska  <mliska@suse.cz>
18231         * gcc.c (process_command): Add dummy file only
18232         if n_infiles == 0.
18233         * opts-global.c (decode_options): Pass lang_mask.
18234         * opts.c (print_help): New function.
18235         (finish_options): Print --help if help_option_argument
18236         is set.
18237         (common_handle_option): Factor out content of OPT__help_
18238         into print_help.
18239         * opts.h (finish_options): Add new argument.
18241 2019-05-02  Martin Liska  <mliska@suse.cz>
18243         PR target/88809
18244         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
18245         With -minline-all-stringops use inline expansion using 4B loop.
18246         * doc/invoke.texi: Document the change of
18247         -minline-all-stringops.
18249 2019-05-01  Jeff Law  <law@redhat.com>
18251         PR tree-optimization/88797
18252         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
18253         PHI feeds a conditional on the RHS of an assignment.
18255 2019-04-30  Andrew Waterman  <andrew@sifive.com>
18256             Jim Wilson  <jimw@sifive.com>
18258         * config/riscv/constraints.md (L): New.
18259         * config/riscv/predicates.md (lui_operand): New.
18260         (sfb_alu_operand): New.
18261         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
18262         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
18263         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
18264         * config/riscv/risc.md (type): Add sfb_alu.
18265         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
18266         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
18267         (branch_zero<mode>): Delete.
18268         (mov<mode>cc): New.
18269         (mov<GPR:mode><X:mode>cc): Likewise.
18270         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
18272 2019-04-30  Nathan Sidwell  <nathan@acm.org>
18274         * tree.h (MARK_TS_EXP): New.
18276 2019-04-30  Martin Liska  <mliska@suse.cz>
18278         * opts.c (enable_warning_as_error): Provide hints
18279         for unknown options.
18281 2019-04-30  Martin Liska  <mliska@suse.cz>
18283         PR debug/90288
18284         * doc/invoke.texi: Add missing dash for gas-locview-support
18285         and gno-as-locview-support.
18287 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
18289         PR target/89093
18290         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
18291         whitespace at the start of target attribute string.
18293 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18295         PR target/86538
18296         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
18297         Define __ARM_FEATURE_ATOMICS.
18299 2019-04-30  Martin Liska  <mliska@suse.cz>
18301         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
18302         into built_in_function enum. Remove code for endp == 2 and
18303         use BUILT_IN_* constants.
18304         (gimple_fold_builtin): Call the function with fcode.
18306 2019-04-30  Martin Liska  <mliska@suse.cz>
18308         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
18309         DECL_FUNCTION_CODE into ix86_builtins enum before
18310         the switch statement.
18312 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
18314         PR tree-optimization/89475
18315         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
18316         calls.
18318 2019-04-30  Martin Liska  <mliska@suse.cz>
18320         PR translation/90274
18321         * opts.c (print_filtered_help): Wrap string in _(...).
18323 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
18325         PR tree-optimization/90240
18326         Revert:
18327         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
18329         PR tree-optimization/90078
18330         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18331         checks for infinite_cost overflow.
18333 2019-04-29  Jeff Law  <law@redhat.com>
18335         * passes.def: Move -Wrestrict pass after copy propagation.
18337 2019-04-29  Maya Rashish  <coypu@sdf.org>
18339         * config.gcc (default_gnu_indirect_function): Default to yes
18340         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
18341         sparc*-*-netbsd*, x86_64-*-netbsd*.
18343 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
18345         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
18346         where cond2 is NE_EXPR.
18347         (is_value_included_in): Update comment.
18349 2019-04-29  Richard Biener  <rguenther@suse.de>
18351         PR tree-optimization/90278
18352         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
18353         EH on comparison simplification.
18355 2019-04-29  Jason Merrill  <jason@redhat.com>
18357         PR c++/82081 - tail call optimization breaks noexcept
18358         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
18359         nothrow function to a might-throw function into a tail call.
18361 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
18363         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
18364         (DDR_INNER_LOOP): Likewise.
18365         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
18366         (initialize_data_dependence_relation): Likewise.
18367         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
18369 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
18371         PR rtl-optimization/90257
18372         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
18373         return value.
18375         Revert the revert:
18376         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
18378         PR target/90178
18379         Revert:
18380         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
18382         Revert the revert:
18383         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
18385         Revert:
18386         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
18388         * lra-spills.c (lra_final_code_change): Remove useless move insns.
18390 2019-04-29  Richard Biener  <rguenther@suse.de>
18392         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
18393         rhs issue a reset.
18395 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
18397         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
18398         varasm.h, and netbsd-protos.h.
18400 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18402         PR target/89261
18403         * config/i386/i386-protos.h (ix86_data_alignment): Change
18404         the second argument type to unsigned int.
18405         * config/i386/i386.c (ix86_data_alignment): Change "align"
18406         argument type to unsigned int.
18408 2019-04-27  Martin Liska  <mliska@suse.cz>
18410         PR middle-end/90258
18411         * opt-suggestions.c (option_proposer::build_option_suggestions):
18412         When get_valid_option_values returns empty values, add the
18413         misspelling candidate.
18415 2019-04-26  Jim Wilson  <jimw@sifive.com>
18417         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
18418         parameter.
18419         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
18420         Pass orig_mode to riscv_build_integer.
18421         (riscv_split_integer): Pass mode to riscv_move_integer.
18422         (riscv_legitimize_const_move): Likewise.
18423         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
18424         promoted_mode.  Replace force_reg call with code to load constant into
18425         promoted reg and then subreg it for the store.
18426         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
18427         riscv_move_integer.
18429 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
18431         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
18432         corrupt codes.
18434 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
18436         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
18437         commentary about the encoding of precision.
18439 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
18441         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
18442         * config/i386/t-freebsd64: New file.
18443         * config.gcc: Add the t-freebsd64 for multilib support.
18445 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18447         * doc/extend.texi (vector_size): Add missing comma after @xref.
18449 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
18451         * BASE-VER: Set to 10.0.0.
18453 2019-04-25  Richard Biener  <rguenther@suse.de>
18455         PR middle-end/89765
18456         * gimplify.c (gimplify_expr): Avoid turning a lvalue
18457         VIEW_CONVERT_EXPR into one operating on an rvalue.
18459 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
18461         PR target/89929
18462         * config/i386/i386.c (feature_priority): Moved to file scope.
18463         (processor_features): Likewise.
18464         (processor_model): Likewise.
18465         (_arch_names_table): Likewise.
18466         (arch_names_table): Likewise.
18467         (_feature_list): Removed.
18468         (feature_list): Likewise.
18469         (_isa_names_table): Moved to file scope.  Add priority.
18470         (isa_names_table): Likewise.
18471         (get_builtin_code_for_version): Replace feature_list with
18472         isa_names_table.  Update error message for P_ZERO priority.
18474 2019-04-25  Richard Biener  <rguenther@suse.de>
18476         * tree-pass.h (make_pass_phi_only_cprop): Remove.
18477         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
18479 2019-04-24  Jeff Law  <law@redhat.com>
18481         PR tree-optimization/90037
18482         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
18483         * passes.def: Replace all instance of phi-only cprop with the
18484         lattice propagator.  Move propagation pass from after erroneous
18485         path isolation to before erroneous path isolation.
18486         * tree-ssa-phionlycprop.c: Remove.
18488 2019-04-24  Richard Biener  <rguenther@suse.de>
18490         PR middle-end/90213
18491         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
18492         by size and BITS_PER_UNIT on poly-wide-ints.
18494 2019-04-25  Richard Biener  <rguenther@suse.de>
18496         PR middle-end/90194
18497         * match.pd: Add pattern to simplify view-conversion of an
18498         empty constructor.
18500 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
18502         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
18503         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
18504         for Go on 32 bit AIX.
18505         * config/rs6000/aix72.h: Likewise.
18507 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
18509         PR target/90193
18510         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
18511         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
18513 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
18515         PR target/89952
18516         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
18517         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
18518         for restored hard frame pointer.
18519         (s390_sched_dependencies_evaluation): Implement new target hook.
18520         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
18522 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
18524         * config/arc/arc-options.def: Fix typos and spelling mistakes.
18525         * config/arc/arc.c (arc_init): Cleanup warning message.
18526         (arc_override_options): Likewise.
18528 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
18530         PR target/90187
18531         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
18532         a register if both if_true and if_false are MEMs.
18534         PR tree-optimization/90208
18535         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
18536         after labels of new_bb, not before them.
18538         PR tree-optimization/90211
18539         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
18540         which are not SSA_NAMEs.
18542 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
18544         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
18545         AArch64.
18546         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
18548 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
18550         PR rtl-optimization/87979
18551         * modulo-sched.c (sms_schedule): Start ii value "mii" should
18552         not equal zero.
18554 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
18556         PR rtl-optimization/84032
18557         * modulo-sched.c (ps_insn_find_column): Change condition so that
18558         branch will always be the last insn in a row inside partial
18559         schedule.
18561 2019-04-23  Richard Biener  <rguenther@suse.de>
18563         PR debug/90131
18564         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
18565         dest_single_pred_p argument.
18566         (remove_forwarder_block): Adjust.
18567         (remove_forwarder_block_with_phi): Likewise.
18569 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
18570             Bernd Edlinger  <bernd.edlinger@hotmail.de>
18571             Jakub Jelinek  <jakub@redhat.com>
18573         PR target/89093
18574         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
18575         if used with general-regs-only.
18576         (arm_conditional_register_usage): Don't add non-general regs if
18577         general-regs-only.
18578         (arm_valid_target_attribute_rec): Handle general-regs-only.
18579         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
18580         general-regs-only.
18581         (TARGET_HARD_FLOAT_SUB): Define.
18582         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
18583         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
18584         (TARGET_REALLY_IWMMXT2): Likewise.
18585         * config/arm/arm.opt: Add -mgeneral-regs-only.
18586         * doc/extend.texi: Document ARM general-regs-only target.
18587         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
18589 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
18591         PR tree-optimization/90078
18592         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
18593         checks for infinite_cost overflow.
18595 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
18597         PR tree-optimization/90021
18598         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
18599         and check univariate against it.
18600         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
18601         * tree-data-ref.c (add_other_self_distances): Pass new argument.
18603 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
18605         PR target/90178
18606         Revert:
18607         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
18609         Revert the revert:
18610         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
18612         Revert:
18613         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
18615         * lra-spills.c (lra_final_code_change): Remove useless move insns.
18617 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
18619         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
18620         names using operand format, rather than hard-wired.
18621         (speculation_barrier): Likewise.
18623 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
18625         PR tree-optimization/88055
18626         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
18627         (gen_one_condition): Use it if !HONOR_NANS.
18629 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
18631         PR middle-end/90139
18632         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
18633         assign_temp instead of gen_reg_rtx.
18635 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
18637         PR translation/90118
18638         * config/aarch64/aarch64.c (aarch64_override_options_internal):
18639         Add missing space before %<.
18641 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
18643         PR rtl-optimization/87871
18644         * ira-lives.c (make_object_dead): Don't add conflicts to
18645         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
18647 2019-04-18  Martin Sebor  <msebor@redhat.com>
18649         PR middle-end/89797
18650         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
18651         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
18652         assuming type size fits in SHWI.
18654 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
18656         PR ipa/85051
18657         * ipa-inline.c (flatten_function): New parameter UPDATE.
18658         (ipa_inline, early_inliner): Use it.
18660 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
18662         * fold-const.c (int_const_binop): Return early on failure.
18664 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
18666         PR middle-end/85164
18667         * combine.c (force_int_to_mode): Cast the argument rather than
18668         the result of known_alignment.
18669         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
18671 2019-04-18  Richard Biener  <rguenther@suse.de>
18673         PR debug/90131
18674         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
18675         out from ...
18676         (remove_forwarder_block): ... here.
18677         (remove_forwarder_block_with_phi): Also move debug stmts here.
18679 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
18681         PR translation/79183
18682         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
18683         inform where appropriate.
18685 2019-04-18  Richard Biener  <rguenther@suse.de>
18687         * tree.c (get_qualified_type): Put found type variants at the
18688         head of the variant list.
18690 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
18692         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
18694 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
18696         PR target/90125
18697         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
18698         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
18699         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
18700         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
18701         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
18703 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
18705         * ira-conflicts.c (print_allocno_conflicts): Always print something,
18706         even for allocno's with no conflicts.
18707         (print_conflicts): Print an extra newline.
18709 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
18711         * auto-inc-dec.c (attempt_change): Set the alignment of the
18712         temporary memory to that of the original.
18714 2019-04-17  Joao Moreira  <jmoreira@suse.de>
18716         * targhooks.c (default_print_patchable_function_entry): Emit
18717         __patchable_function_entries section with writable flags to allow
18718         relocation resolution.
18720 2019-04-17  Jonny Grant  <jg@jguk.org>
18722         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
18724 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
18726         PR middle-end/90095
18727         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
18728         on lowpart SUBREGs.
18730 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
18732         * config/arc/arc.c (arc_init): Format diagnostic string.
18733         (arc_override_options): Likewise.
18734         (check_if_valid_regno_const): Likewise.
18735         (arc_reorg): Likewise.
18737 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
18739         PR target/17108
18740         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
18741         name.
18742         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
18743         name.
18744         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
18745         (*movdi_update1): Use Pmode.
18746         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
18747         (movdi_<mode>_update_stack): Rename to ...
18748         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
18749         use Pmode.
18750         (*movsi_update1): Use Pmode.
18751         (*movsi_update2): Use Pmode.
18752         (movsi_update): Rename to ...
18753         (movsi_<mode>_update): ... this.  Use Pmode.
18754         (movsi_update_stack): Fix condition.
18755         (*movhi_update1): Use Pmode.  Fix argument to
18756         avoiding_indexed_address_p.
18757         (*movhi_update2): Ditto.
18758         (*movhi_update3): Ditto.
18759         (*movhi_update4): Ditto.
18760         (*movqi_update1): Ditto.
18761         (*movqi_update2): Ditto.
18762         (*movqi_update3): Ditto.
18763         (*movsf_update1, *movdf_update1): Merge, rename to...
18764         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
18765         avoiding_indexed_address_p.  Add "size" attribute.
18766         (*movsf_update2, *movdf_update2): Merge, rename to...
18767         (*mov<mode>_update2): This.  Ditto.
18768         (*movsf_update3): Use Pmode.  Fix argument to
18769         avoiding_indexed_address_p.
18770         (*movsf_update4): Ditto.
18771         (allocate_stack): Simplify condition.  Adjust pattern names.
18773 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
18775         PR target/89093
18776         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
18777         whitespace at the start of target attribute string.
18779 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
18781         PR target/84369
18782         * config/rs6000/power9.md: Add store forwarding bypass.
18784 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
18786         PR debug/89528
18787         * valtrack.c (dead_debug_insert_temp): Reset debug references
18788         to the return value of a call being removed.
18790 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18792         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
18793         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
18794         implement target hook.
18795         (arc_memory_move_cost): New function.
18796         (TARGET_REGISTER_MOVE_COST): Define.
18797         (TARGET_MEMORY_MOVE_COST): Likewise.
18798         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
18799         (MEMORY_MOVE_COST): Likewise.
18801 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18803         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
18804         (sibcall_value_insn): Likewise.
18805         * config/arc/constraints.md (Rs5): Remove.
18807 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18809         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
18810         for last two fake registers.
18811         (arc_conditional_register_usage): Make sure fake frame and arg
18812         pointer regs are in general regs class.
18813         (FRAME_POINTER_MASK): Remove.
18814         (RETURN_ADDR_MASK): Remove.
18815         (arc_must_save_register): Use hard frame regnum.
18816         (frame_restore_reg): Use hard_frame_pointer_rtx.
18817         (arc_save_callee_saves): Likewise.
18818         (arc_restore_callee_saves): Likewise.
18819         (arc_save_callee_enter): Likewise.
18820         (arc_restore_callee_leave): Likewise.
18821         (arc_save_callee_milli): Likewise.
18822         (arc_eh_return_address_location): Likewise.
18823         (arc_check_multi): Use hard frame regnum.
18824         (arc_can_eliminate): Likewise.
18825         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
18826         for register allocator.
18827         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
18828         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
18829         (FRAME_POINTER_REGNUM): Change it to a fake register.
18830         (HARD_FRAME_POINTER_REGNUM): Defined.
18831         (ARG_POINTER_REGNUM): Change it to a new fake register.
18832         (ELIMINABLE_REGS): Update.
18833         (REGISTER_NAMES): Update names.
18834         * config/arc/arc.md (LP_START): Remove.
18835         (LP_END): Likewise.
18836         (shift_si3_loop): Update pattern.
18838 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
18840         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
18841         to avoid delay slot scheduling.
18842         (arc_must_save_register): Don't save SP.
18843         * config/arc/arc.md (stack_tie): Remove.
18844         (UNSPEC_ARC_STKTIE): Likewise.
18846 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
18847             Shiva Chen  <shiva0217@gmail.com>
18849         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
18850         code gen with large shift amount.
18852 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
18854         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
18855         subreg.
18857 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
18859         PR target/90096
18860         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
18861         print -m64/-mx32/-m32 if it is true.
18862         (ix86_debug_options, ix86_function_specific_print): Pass true as
18863         ADD_ABI_P to ix86_target_string.
18864         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
18865         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
18866         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
18868         PR rtl-optimization/90082
18869         * dce.c (can_delete_call): New function.
18870         (deletable_insn_p, mark_insn): Use it.
18872         PR tree-optimization/90090
18873         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
18874         throw internally.
18875         (is_division_by_square): Likewise.  Formatting fix.
18877 2019-04-16  Richard Biener  <rguenther@suse.de>
18879         PR tree-optimization/56049
18880         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
18881         equality check if alias-set zero will prevail.
18883 2019-04-15  Jeff Law  <law@redhat.com>
18885         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
18886         size and alignment as unsigned.
18888 2019-04-15  Richard Biener  <rguenther@suse.de>
18890         PR debug/90074
18891         * tree-loop-distribution.c (destroy_loop): Preserve correct
18892         debug info.
18894 2019-04-15  Richard Biener  <rguenther@suse.de>
18896         PR tree-optimization/90071
18897         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
18898         abnormal operands from def stmts.
18900 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
18902         PR rtl-optimization/89794
18903         * combine.c (count_auto_inc): New function.
18904         (try_combine): Count how many auto_inc expressions there were in the
18905         original instructions.  Ensure we have the same number in the new
18906         instructions.  Remove the code that tried to ensure auto_inc side
18907         effects on i1 and i0 are not lost.
18909 2019-04-15  Richard Biener  <rguenther@suse.de>
18911         PR ipa/88936
18912         * tree.h (auto_var_p): Declare.
18913         * tree.c (auto_var_p): New function, split out from ...
18914         (auto_var_in_fn_p): ... here.
18915         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
18916         member.
18917         (new_var_info): Initialize it.
18918         (set_uids_in_ptset): Also set the shadow variable uid if required.
18919         (ipa_pta_execute): Postprocess points-to solutions assigning
18920         shadow variable uids for locals that may reach their containing
18921         function recursively.
18922         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
18923         assert but instead check whether the points-to solution is
18924         a singleton.
18926 2019-04-15  Martin Jambor  <mjambor@suse.cz>
18928         PR ipa/pr89693
18929         * cgraph.c (clone_of_p): Loop over clone chain for each step in
18930         the thunk chain.
18932 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
18934         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
18936 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
18937             Kito Cheng  <kito.cheng@gmail.com>
18938             Shiva Chen  <shiva0217@gmail.com>
18940         * config/nds32/nds32-md-auxiliary.c
18941         (nds32_legitimize_pic_address): Use new PIC pattern.
18942         (nds32_legitimize_tls_address): Use new TLS pattern.
18943         (nds32_output_symrel): New.
18944         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
18945         (nds32_alloc_relax_group_id): Ditto.
18946         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
18947         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
18948         relax_group_id.
18949         (nds32_group_tls_insn): Ditto.
18950         (nds32_group_float_insns): Ditto.
18951         * config/nds32/nds32.md (tls_le): New.
18952         (sym_got): Ditto.
18954 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
18956         * configure: Add nds32 target for dwarf2 debug_line checking.
18957         * configure.ac: Regenerated.
18959 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
18961         PR lto/89358
18962         * ipa-devirt.c (skip_in_fields_list_p): New.
18963         (odr_types_equivalent_p): Use it.
18965 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
18967         PR target/89093
18968         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
18969         instead of strncmp when checking for thumb and arm.  Formatting fixes.
18971 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
18973         * doc/install.texi: Document --with-target-system-zlib.
18975 2019-04-12  Martin Sebor  <msebor@redhat.com>
18977         PR c/88383
18978         PR c/89288
18979         PR c/89798
18980         PR c/89797
18981         * targhooks.c (default_vector_alignment): Avoid assuming
18982         argument fits in SHWI.
18983         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
18984         a shift expression.
18985         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
18987 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
18989         PR rtl-optimization/89965
18990         * dce.c: Include rtl-iter.h.
18991         (struct check_argument_load_data): New type.
18992         (check_argument_load): New function.
18993         (find_call_stack_args): Check for loads from stack slots still tracked
18994         in sp_bytes and punt if any is found.
18996         * config/mips/loongson-mmiintrin.h: Fix up #error message.
18998 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
19000         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
19001         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
19003 2019-04-12  Martin Liska  <mliska@suse.cz>
19005         PR middle-end/89970
19006         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
19007         in error message.
19008         (separate_attrs): Handle multiple 'default's.
19009         (expand_target_clones): Rework error handling code.
19011 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19013         PR target/87532
19014         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
19015         mode of vector rather than mode of destination for move instruction.
19016         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
19017         Use QI inner mode with V16QI vector mode.
19019 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
19021         PR target/52726
19022         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
19023         "invalid %%t operand" in output_operand_lossage message.
19025 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
19027         * config/s390/predicates.md (permute_pattern_operand): New
19028         predicate.
19029         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
19030         operand for the permute pattern.
19031         ("*vec_perm<mode>"): New insn definition.
19032         ("bswap<mode>"): Generate the permute pattern operand in the
19033         expander and perform the operand reloads for pre arch13 level
19034         already.
19035         ("*bswap<mode>_emu"): Rename to ...
19036         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
19037         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
19038         Add the USE operand for the permute pattern.
19039         ("*vec_set_bswap_vec<mode>"): Likewise.
19041 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
19043         PR c/89946
19044         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
19045         and gcc_unreachable if it fails, just call tree_to_uhwi which
19046         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
19047         Start warning message with a lower-case letter.  Formatting fixes.
19049         PR rtl-optimization/90026
19050         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
19051         successors, look for BARRIERs inside of the whole BB_FOOTER chain
19052         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
19053         in cfglayout mode, use emit_barrier_after_bb.
19055 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
19057         PR rtl-optimization/87763
19058         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
19059         New Instruction.
19061 2019-04-11  Tom de Vries  <tdevries@suse.de>
19063         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
19064         max macro using statement expression.
19066 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
19068         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
19069         * xcoffout.c (xcoff_private_rodata_section_name): Define.
19070         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
19071         read_only_private_data_section using xcoff_private_rodata_section_name.
19072         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
19074 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
19076         PR target/90016
19077         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
19079 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
19081         PR rtl-optimization/89965
19082         * dce.c (sp_based_mem_offset): New function.
19083         (find_call_stack_args): Use sp_based_mem_offset.
19085 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
19087         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
19089 2019-04-11  Richard Biener  <rguenther@suse.de>
19091         PR tree-optimization/90020
19092         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
19093         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
19094         * tree-ssa-pre.c (compute_avail): Use it to not put
19095         possibly trapping references after a call that might not
19096         return into EXP_GEN.
19097         * gcse.c (compute_hash_table_work): Do not elide
19098         marking a block containing a call if the call might not
19099         return.
19101 2019-04-11  Richard Biener  <rguenther@suse.de>
19103         PR tree-optimization/90018
19104         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
19105         Test both SLP and interleaving variants.
19107 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
19109         * config/s390/8561.md: New file.
19110         * config/s390/driver-native.c (s390_host_detect_local_cpu):
19111         Add arch13 cpu model.
19112         * config/s390/s390-opts.h (enum processor_type): Likewise.
19113         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
19114         (s390_get_unit_mask): Likewise.
19115         (s390_is_fpd): Likewise.
19116         (s390_is_fxd): Likewise.
19117         * config/s390/s390.h (s390_tune_attr): Likewise.
19118         * config/s390/s390.md: Include arch13 pipeline description.
19119         * config/s390/s390.opt: Add arch13.
19121 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
19123         PR rtl-optimization/87763
19124         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
19125         New prototype.
19126         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
19127         New function.
19128         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
19129         New instruction.
19130         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
19131         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
19132         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
19133         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
19135 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
19137         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
19138         "Although" in -fipa-icf documentation.
19140         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
19141         of using multiple -g options.
19143 2019-04-10  Martin Liska  <mliska@suse.cz>
19145         PR gcov-profile/89959
19146         * doc/gcov.texi: Make documentation of -x option
19147         more precise.
19149 2019-04-10  Richard Biener  <rguenther@suse.de>
19151         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
19152         member.
19153         (DR_GROUP_SAME_DR_STMT): Remove.
19154         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
19155         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
19156         replace with assert.
19157         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
19158         (vect_record_grouped_load_vectors): Remove unreachable code.
19160 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
19162         PR target/90016
19163         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
19164         obsolete reference to N.
19166 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
19168         PR middle-end/90025
19169         * expr.c (store_expr): Set properly size on the MEM passed to
19170         clear_storage.
19172         PR c++/90010
19173         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
19174         with strlen in between hostsz-3 and hostsz-1 inclusive when no
19175         translation is needed, and when translation is needed, only append
19176         ... if the string length is hostsz or more bytes long.  Avoid using
19177         strncpy or strcat.
19179 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
19181         PR target/90024
19182         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
19183         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
19184         into three.
19185         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
19186         differences directly.
19187         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
19189 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
19191         PR translation/90011
19192         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
19193         from diagnostics.
19194         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
19195         diagnostics.
19196         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
19197         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
19198         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
19199         trailing space from -gsplit-dwarf diagnostics.
19201         PR tree-optimization/89998
19202         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
19203         instead of integer_type_node if possible, don't add ranges if return
19204         type is not compatible with int.
19205         * gimple-fold.c (gimple_fold_builtin_sprintf,
19206         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
19207         integer_type_node.
19209 2019-04-09  Martin Liska  <mliska@suse.cz>
19211         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
19212         * doc/install.texi: Document the new config.
19214 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
19216         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
19217         use gimple_expr_type for load and store calls.  Skip over the
19218         condition argument in a conditional internal function.
19219         Protect use of TREE_INT_CST_LOW.
19221 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
19223         PR target/90015
19224         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
19225         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
19226         trailing period from it too.
19228 2019-04-08  wu yuan  <wuyuan5@huawei.com>
19230         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
19231         * config/aarch64/aarch64.md : Add "tsv110.md"
19232         * config/aarch64/tsv110.md: New file.
19234 2019-04-08  Richard Biener  <rguenther@suse.de>
19236         PR tree-optimization/90006
19237         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
19238         calls like lrint.
19240 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
19242         PR target/83033
19243         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
19244         construction.
19245         (fma_root_node): Likewise.
19246         (func_fma_steering): Likewise.
19248 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
19250         PR rtl-optimization/89865
19251         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
19253         PR rtl-optimization/89865
19254         * config/i386/i386.md
19255         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
19256         numbers not to clash with the additional operands[4].
19257         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
19258         with extra register copy in the middle.
19260 2019-04-08  Martin Liska  <mliska@suse.cz>
19262         PR gcov-profile/89961
19263         * doc/gcov.texi: Document data_file.
19264         * gcov.c (generate_results): Add data_info into JSON output.
19266 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
19268         PR tree-optimization/89725
19269         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
19270         loop's chrec as invariant symbol.
19271         * tree-chrec.h (chrec_contains_symbols): New parameter.
19272         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
19273         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
19274         function of loops not in DDR's loop_nest.
19275         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
19277 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
19279         PR target/89623
19280         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
19281         Mask.
19283 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19285         PR target/89945
19286         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
19287         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
19289 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
19291         * sched-deps.c (sched_macro_fuse_insns): Check return value of
19292         targetm.fixed_condition_code_regs.
19294 2019-04-05  Richard Biener  <rguenther@suse.de>
19296         PR debug/89892
19297         PR debug/89905
19298         * tree-cfgcleanup.c (remove_forwarder_block): Always move
19299         debug bind stmts but reset them if they are not valid at the
19300         destination.
19302 2019-04-05  Martin Liska  <mliska@suse.cz>
19304         PR translation/89936
19305         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
19306         order to wrap keywords or arguments.
19307         * collect2.c (main): Likewise.
19308         (scan_prog_file): Likewise.
19309         (scan_libraries): Likewise.
19310         * common/config/riscv/riscv-common.c
19311         (riscv_subset_list::parsing_subset_version): Likewise.
19312         (riscv_subset_list::parse_std_ext): Likewise.
19313         * config/aarch64/aarch64.c (aarch64_override_options_internal):
19314         Likewise.
19315         * config/arm/arm.c (arm_option_override): Likewise.
19316         * config/cris/cris.c (cris_print_operand): Likewise.
19317         * config/darwin-c.c (darwin_pragma_options): Likewise.
19318         (darwin_pragma_unused): Likewise.
19319         (darwin_pragma_ms_struct): Likewise.
19320         * config/ft32/ft32.c (ft32_print_operand): Likewise.
19321         * config/i386/i386.c (print_reg): Likewise.
19322         (ix86_print_operand): Likewise.
19323         * config/i386/xm-djgpp.h: Likewise.
19324         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
19325         * config/m32c/m32c.c (m32c_option_override): Likewise.
19326         * config/msp430/msp430.c (msp430_option_override): Likewise.
19327         * config/nds32/nds32.c (nds32_option_override): Likewise.
19328         * config/nvptx/mkoffload.c (main): Likewise.
19329         * config/rx/rx.c (rx_print_operand): Likewise.
19330         (valid_psw_flag): Likewise.
19331         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
19332         (vms_pragma_nomember_alignment): Likewise.
19333         (vms_pragma_extern_model): Likewise.
19334         * lto-wrapper.c (compile_offload_image): Likewise.
19335         * omp-offload.c (oacc_parse_default_dims): Likewise.
19336         * symtab.c (symtab_node::verify_base): Likewise.
19337         * tlink.c (recompile_files): Likewise.
19338         (start_tweaking): Likewise.
19339         * tree-profile.c (parse_profile_filter): Likewise.
19341 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
19343         PR tree-optimization/89956
19344         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
19345         multiple negates of the same value.
19347 2019-04-04  Martin Sebor  <msebor@redhat.com>
19349         PR middle-end/89957
19350         PR middle-end/89911
19351         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
19352         have the same precision since the function crashes otherwise.
19353         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
19354         has non-zero arguments.
19356 2019-04-04  Martin Sebor  <msebor@redhat.com>
19358         PR middle-end/89934
19359         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
19360         out if the number of arguments is less than expected.
19362 2019-04-04  Jeff Law  <law@redhat.com>
19364         PR rtl-optimization/89399
19365         * ree.c (combine_set_extension): Use single_set rather than
19366         digging into PATTERN for items on the candidate list.
19367         (combine_reaching_defs): Likewise.
19369 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
19371         PR rtl-optimization/46590
19372         * loop-invariant.c (find_defs): Move df_remove_problem and
19373         df_process_deferred_rescans to move_invariants.
19374         Move df_live_add_problem and df_live_set_all_dirty calls
19375         to move_invariants.
19376         (move_invariants): Likewise.
19377         (move_loop_invariants): Likewise, making the df_live calls
19378         conditional on -O.  Remove the problem again if we added it
19379         locally.
19381 2019-04-03  qing zhao  <qing.zhao@oracle.com>
19383         PR tree-optimization/89730
19384         * ipa-inline.c (can_inline_edge_p): Delete the checking for
19385         -flive-patching=inline-only-static.
19386         (can_inline_edge_by_limits_p): Add the checking for
19387         -flive-patching=inline-only-static and grant always_inline
19388         even when -flive-patching=inline-only-static is specified.
19390 2019-04-03  Jeff Law  <law@redhat.com>
19392         PR rtl-optimization/81025
19393         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
19395 2019-04-03  Richard Biener  <rguenther@suse.de>
19397         PR tree-optimization/84101
19398         * tree-vect-stmts.c: Include explow.h for hard_function_value,
19399         regs.h for hard_regno_nregs.
19400         (cfun_returns): New helper.
19401         (vect_model_store_cost): When vectorizing a store to a decl
19402         we return and the function ABI returns in a multi-reg location
19403         account for the possible spilling that will happen.
19405 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
19407         * config/s390/s390.c (s390_legitimate_address_p): Reject long
19408         displacement addresses for vector mode operands.
19410 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
19412         * config/arc/arc.c (GMASK_LEN): Define.
19413         (arc_restore_callee_saves): Restore first blink when
19414         !optimize_size.
19416 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
19418         * doc/extend.texi: Add deprecated comment on sign-return-address
19419         function attribute and add mbranch-protection.
19420         * doc/invoke.texi: Add bti to the options for mbranch-protection.
19422 2019-04-03  Richard Biener  <rguenther@suse.de>
19424         PR lto/89896
19425         * lto-wrapper.c (run_gcc): Avoid implicit rules making
19426         the all target phony.
19428 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19430         PR target/89902
19431         PR target/89903
19432         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
19433         Return false for variable DImode shifts.
19434         (dimode_scalar_chain::compute_convert_gain): Do not handle
19435         register count operand in variable DImode shifts.
19436         (dimode_scalar_chain::make_vector_copies): Remove support to copy
19437         count argument of a variable shift instruction to a vector register.
19438         (dimode_scalar_chain::convert_reg): Remove support to convert
19439         count argument of a variable shift instruction.
19441 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
19443         PR rtl-optimization/84206
19444         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
19445         iterating over loop headers.
19447 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
19449         PR rtl-optimization/85876
19450         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
19451         beyond the original fence.
19453 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
19455         * config.gcc: Mark spu* targets as deprecated/obsolete.
19457 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19459         * config/s390/s390-builtin-types.def: New builtin function type
19460         definitions. Remove unused types.
19461         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
19462         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
19463         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
19464         overloaded builtins.
19465         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
19466         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
19467         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
19468         (vec_double, vec_signed, vec_unsigned): Define to use the new
19469         overloaded builtins.
19470         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
19471         Remove expanders.
19473 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19475         * config/s390/s390-builtin-types.def: New builtin function type
19476         definitions.
19477         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
19478         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
19479         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
19480         (s390_vstrszh, s390_vstrszf): New low-level builtins.
19481         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
19482         constant definitions.
19483         * config/s390/vecintrin.h (vec_search_string_cc)
19484         (vec_search_string_until_zero_cc): New builtin name definitions.
19485         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
19486         expanders.
19487         ("vec_vstrs<mode>"): New insn definition.
19489 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19491         * config/s390/s390-builtin-types.def: Add new builtin function
19492         types.
19493         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
19494         New overloaded builtins.
19495         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
19496         s390_vsrd.
19497         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
19498         (UNSPEC_VEC_SLDBYTE): ... this.
19499         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
19500         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
19501         definitions.
19502         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
19503         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
19504         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
19506 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19508         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
19509         New insn definition.
19510         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
19511         * config/s390/vector.md (V_HW_HSD): ... here.
19513 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19515         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
19516         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
19517         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
19518         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
19519         New insn definitions.
19521 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19523         * config/s390/s390-builtin-types.def: Add new builtin function type.
19524         * config/s390/s390-builtins.def: Add overloaded builtin
19525         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
19526         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
19527         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
19528         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
19529         ("eltswap<mode>"): New expander.
19530         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
19531         insn definitions.
19533 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19535         * config/s390/s390-builtin-types.def: Add new builtin function types.
19536         * config/s390/s390-builtins.def: Add overloaded builtin
19537         s390_vec_revb. Add low-level builtins for vlbr and vstbr
19538         instructions.
19539         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
19540         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
19541         ("bswap<mode>"): New expander.
19542         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
19544 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19546         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
19547         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
19548         vector builtin version number in __VEC__.
19550 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19552         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
19553         iterators.
19554         (SFSI): New mode attribute.
19555         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
19556         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
19557         rename to ...
19558         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
19559         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
19560         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
19561         ("floatsi<mode>2"): Add wcefb instruction.
19563 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19565         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
19566         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
19567         mode iterators.
19568         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
19569         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
19570         support 32 bit fp-int conversions. Rename to ...
19571         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19572         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
19573         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
19574         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
19575         ... to these.
19577 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19579         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
19580         if-then-else constructs if we can use the select instruction.
19581         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
19583 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19585         * config/s390/s390.md ("*popcountdi_arch13_cc")
19586         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
19587         definition.
19588         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
19589         Append _z196 to make it ...
19590         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
19591         ("popcounthi2_z196"): ... this.
19592         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
19593         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
19595 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19597         * config/s390/s390.c (s390_canonicalize_comparison): Convert
19598         certain compares for arch13 in order to make use of the condition
19599         code result produced by the new instructions.
19600         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
19601         nxrk, and nxgrk instruction patterns.
19602         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
19603         (inv_no): Add new code iterator together with some attributes.
19604         ("*andc_split_<mode>"): Disable splitter for arch13.
19605         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
19606         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
19607         ("*<ANDOR:bitops_name>c<GPR:mode>")
19608         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
19609         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
19610         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
19611         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
19613 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
19615         * common/config/s390/s390-common.c (processor_flags_table): New
19616         entry for arch13.
19617         * config.gcc: Support arch13 with the --with-arch= configure flag.
19618         * config/s390/driver-native.c (s390_host_detect_local_cpu):
19619         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
19620         * config/s390/s390.c (s390_get_sched_attrmask)
19621         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
19622         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
19623         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
19624         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
19625         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
19626         definitions.
19627         * config/s390/s390.opt: Support arch13 as processor type in
19628         command line options.
19630 2019-04-02  Martin Liska  <mliska@suse.cz>
19632         PR translation/89912
19633         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
19634         Fix param description of graphite-max-arrays-per-scop.
19636 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
19638         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
19639         (ASAN_CC1_SPEC): Use it in 64-bit mode.
19640         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
19642 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
19644         PR rtl-optimization/85412
19645         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
19646         sel_sched_region_1, not after.
19648 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
19650         PR rtl-optimization/86928
19651         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
19652         compute_live if necessary.
19653         (sel_redirect_edge_and_branch): Likewise.
19655 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
19657         PR rtl-optimization/89865
19658         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
19659         register if it is a part of small class.
19661 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
19663         PR rtl-optimization/87273
19664         * sel-sched-ir.c (merge_fences): Remove assert.
19666 2019-04-01  Richard Biener  <rguenther@suse.de>
19668         PR tree-optimization/46590
19669         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
19670         (dom_walker::m_reachability): Add in place of...
19671         (dom_walker::m_skip_unreachable_blocks): ...this.
19672         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
19673         Move complex initialization ...
19674         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
19675         lazily and initialize edge flags on each invocation.
19676         (dom_walker::bb_reachable): Use m_reachability.
19678 2019-04-01  Martin Liska  <mliska@suse.cz>
19680         PR driver/89861
19681         * opt-suggestions.c (option_proposer::build_option_suggestions):
19682         Add variant without any argument in order to provide better
19683         hints.
19685 2019-04-01  Richard Biener  <rguenther@suse.de>
19687         PR c/71598
19688         * gimple.c: Include langhooks.h.
19689         (gimple_get_alias_set): Treat enumeral types as the underlying
19690         integer type.
19692 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
19693             Eric Botcazou  <ebotcazou@adacore.com>
19695         PR rtl-optimization/89862
19696         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
19697         that operates on the full registers for WORD_REGISTER_OPERATIONS
19698         architectures.
19700 2019-03-29  Jim Wilson  <jimw@sifive.com>
19702         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
19703         Clear MASK_RVC and then set if C subset supported.
19705 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
19707         PR c/89872
19708         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
19709         non-addressable complit into its initializer if it is volatile.
19711 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
19713         * opts-common.c (integral_argument): Set errno properly in one case.
19715 2019-03-29  Martin Liska  <mliska@suse.cz>
19717         * doc/invoke.texi: Remove -Wchkp from documentation.
19719 2019-03-29  Martin Liska  <mliska@suse.cz>
19721         * dbgcnt.c (print_limit_reach): New function.
19722         (dbg_cnt): Use it.
19724 2019-03-29  Martin Liska  <mliska@suse.cz>
19726         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
19727         (dbg_cnt_process_opt): Parse first tokens aas
19728         dbg_cnt_process_single_pair is also using strtok.
19730 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
19732         PR rtl-optimization/87485
19733         * function.c (expand_function_end): Move stack_protect_epilogue
19734         before loading of return value into hard register(s).
19736 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
19738         PR middle-end/89621
19739         * tree-inline.h (struct copy_body_data): Add
19740         dont_remap_vla_if_no_change flag.
19741         * tree-inline.c (remap_type_3, remap_type_2): New functions.
19742         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
19743         and remap_type_2 returns false.
19744         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
19745         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
19746         only from where it is copied to nested contexts.
19748 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19750         PR target/89865
19751         * config/i386/i386.md (RMW operation with LEA peephole):
19752         Use LEAMODE mode attribute instead of SWI mode iterator for
19753         LEA pattern.
19755 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19757         PR target/89848
19758         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
19759         Also process XEXP (src, 0) of a shift insn.
19761 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
19763         PR middle-end/89725
19764         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
19765         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
19767 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
19769         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
19770         test.
19771         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
19772         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
19773         immediately after first one with df_analyze in between, but rather
19774         process all bbs, queueing ones that need second pass in a worklist,
19775         df_analyze, process queued debug insn changes and if second pass is
19776         needed, process bbs from worklist, df_analyze, process queued debug
19777         insns again.
19779         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
19780         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
19781         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
19783 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
19785         PR c/79022
19786         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
19787         definition.
19789 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
19791         PR target/85667
19792         * config/i386/i386.c (ix86_function_value_1): Call the newly added
19793         function for 32-bit MS_ABI.
19794         (function_value_ms_32): New function.
19796 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
19798         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
19799         (movdi): Call gen_movdi_symbol_save_scc.
19800         (gen_movdi_symbol_save_scc): New insn and split.
19802 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
19804         PR rtl-optimization/89313
19805         * function.c (matching_constraint_num): New static function.
19806         (match_asm_constraints_1): Use it.  Fixup white space and comment.
19807         Don't replace inputs with non-matching constraints which conflict
19808         with early clobber outputs.
19810 2019-03-27  Jeff Law  <law@redhat.com>
19812         PR rtl-optimization/87761
19813         PR rtl-optimization/89826
19814         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
19815         slightly later.
19816         (pass_cprop_hardreg::execute): Call df_analyze after adding the
19817         note problem to get REG_DEAD/REG_UNUSED notes updated.
19819 2019-03-27  Richard Biener  <rguenther@suse.de>
19821         PR tree-optimization/89463
19822         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
19823         queue edges to remove.
19824         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
19825         dead stmts.  Delay edge removal until PHIs are removed to
19826         make debug-stmt creation not confused by seemingly degenerate
19827         PHIs.
19829 2019-03-27  Alan Modra  <amodra@gmail.com>
19831         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
19832         throughout file.
19833         * config/rs6000/darwin.h: Likewise.
19834         * config/rs6000/rs6000.c: Likewise.
19836 2019-03-27  Alan Modra  <amodra@gmail.com>
19838         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
19839         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
19841 2019-03-26  Andrew Waterman  <andrew@sifive.com>
19842             Jim Wilson  <jimw@sifive.com>
19844         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
19845         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
19846         (generic_idivdi, generic_fmul_single, generic_fmul_double)
19847         (generic_fdiv, generic_fsqrt): Add check for generic tune.
19848         (generic_alu): Add auipc to type list.
19849         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
19850         (riscv_microarchitecture): Declare.
19851         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
19852         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
19853         field.
19854         (riscv_microarchitecture): New.
19855         (sifive_7_tune_info): New.
19856         (riscv_cpu_info_table): Add microarchitecture value for rocket and
19857         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
19858         entries.
19859         (riscv_store_data_bypass_p): New.
19860         (riscv_option_override): Set riscv_microarchitecture from
19861         cpu->microarchitecture.
19862         * config/riscv/riscv.md: Include sifive-7.md.
19863         (type): Add auipc.
19864         (tune): New.
19865         (auipc<mode>): Change type to auipc.
19866         (restore_stack_nonlocal): New.
19867         * config/riscv/sifive-7.md: New.
19868         * doc/invoke.texi (RISC-V Options): Update mtune docs.
19870 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19872         PR target/89827
19873         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
19874         Also process XEXP (src, 0) of a shift insn.
19876 2019-03-26  Richard Biener  <rguenther@suse.de>
19878         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
19879         (copy_debug_stmt): Likewise.
19880         (expand_call_inline): Likewise.
19881         (copy_bb): Avoid redundant lookup & set of gimple_block.
19882         * gimple-low.c (lower_gimple_return): Likewise.
19883         (lower_builtin_setjmp): Likewise.
19885 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
19887         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
19888         is constant 0, turn into static const data member initialized to false.
19889         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
19890         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
19892 2019-03-26  Jason Merrill  <jason@redhat.com>
19893             Jakub Jelinek  <jakub@redhat.com>
19895         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
19896         method.
19897         (mem_alloc_description::release_object_overhead): Fix comment typos.
19898         * hash-table.h (hash_table::~hash_table): Call
19899         release_instance_overhead only if m_entries is non-NULL, otherwise
19900         call unregister_descriptor.
19902 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
19904         PR tree-optimization/81740
19905         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
19906         In case of outer loop vectorization, check for backward dependence
19907         at the inner loop if outer loop dependence is reversed.
19909 2019-03-26  Alan Modra  <amodra@gmail.com>
19911         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
19912         rs6000_vector_mem init.  Correct wI and wJ comment.
19914 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
19916         PR rtl-optimization/88347
19917         PR rtl-optimization/88423
19918         * sched-deps.c (sched_analyze_insn): Take into account that for
19919         tablejumps the barrier appears after a label and a jump_table_data.
19921 2019-03-25  Martin Sebor  <msebor@redhat.com>
19923         PR c/89812
19924         * c-common.c (check_user_alignment): Rename local.  Correct maximum
19925         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
19926         convert it to UHWI when it fits.
19928 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
19930         PR debug/86964
19931         * dwarf2out.c (premark_used_variables): New function.
19932         (prune_unused_types_walk): Do not mark not premarked external
19933         variables.
19934         (prune_unused_types): Call premark_used_variables.
19936 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
19938         PR rtl-optimization/89676
19939         * lra-constraints.c (curr_insn_transform): Do match reload for
19940         early clobbers when the match was successful only for different
19941         registers.
19943 2019-03-25  Martin Sebor  <msebor@redhat.com>
19945         * doc/extend.texi (Common Type Attributes): Document vector_size.
19946         (Common Variable Attributes): Mention size constraint.  Correct
19947         quoting and typos.
19948         (Vector Extensions): Use @dfn when defining bas type.  Clarify
19949         base type and size constraints.
19951 2019-03-25  Richard Biener  <rguenther@suse.de>
19953         PR tree-optimization/89789
19954         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
19955         changes from non-undefined back to undefined.
19957 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
19959         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
19960         heap string and a gc string, but since this variable is unknown to
19961         ggc the gc string might get reused and corrupted. Fixed by always
19962         using a heap string.
19964 2019-03-25  Richard Biener  <rguenther@suse.de>
19966         PR tree-optimization/89779
19967         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
19968         to remove IV defs, delay actual removal.
19969         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
19970         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
19971         very end, properly also reset loop control IV information.
19973 2019-03-25  Richard Biener  <rguenther@suse.de>
19975         PR tree-optimization/89802
19976         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
19977         move EH data to folded stmt.
19979 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
19981         * config/s390/s390-builtin-types.def: Remove few unused types and
19982         fix sort order for others.
19984 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
19986         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
19987         expected and found types with -mdebug during builtin matching.
19989 2019-03-25  Richard Biener  <rguenther@suse.de>
19991         PR middle-end/89790
19992         * fold-const.c (operand_equal_p): Revert last change with
19993         updated comment.
19995 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
19997         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
19998         notes for the result of the __tls_get_addr calls.
19999         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
20001 2019-03-24  Jeff Law  <law@redhat.com>
20003         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
20005         PR rtl-optimization/87761
20006         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
20007         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
20008         as needed.
20009         (pass_cprop_hardreg::execute): Add df note problem and defer insn
20010         rescans.  Reprocess blocks as needed, calling df_analyze before
20011         reprocessing.  Always call df_analyze before fixing up debug bind
20012         insns.
20014 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
20016         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
20017         big endian.
20019 2019-03-22  Andrew Pinski  <apinski@marvell.com>
20021         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
20022         attrribute for uxtw.
20024 2019-03-26  Jeff Law  <law@redhat.com>
20026         PR rtl-optimization/87761
20027         * config/mips/mips-protos.h (mips_split_move): Add new argument.
20028         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
20029         (mips_split_move): Accept new INSN argument.  Try to forward SRC
20030         into the next instruction.
20031         (mips_split_move_insn): Pass INSN through to mips_split_move.
20033 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
20035         PR rtl-optimization/89676
20036         * lra-constraints.c (curr_insn_transform): Do match reload for
20037         early clobbers even if the match was successful.
20039 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
20041         PR c++/87481
20042         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
20044 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
20046         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
20048 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
20050         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
20051         <avx512>_fmsub_<mode>_mask3<round_name>,
20052         <avx512>_fnmadd_<mode>_mask3<round_name>,
20053         <avx512>_fnmsub_<mode>_mask3<round_name>,
20054         avx512f_vmfmadd_<mode>_mask3<round_name>,
20055         avx512f_vmfmsub_<mode>_mask3<round_name>,
20056         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
20057         instead of register_operand and %v instead of v for match_operand 1.
20058         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
20059         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
20060         <round_nimm_predicate> instead of register_operand and %v instead of v
20061         for match_operand 1.
20063         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
20064         <avx512>_fmadd_<mode>_mask3<round_name>,
20065         <avx512>_fmsub_<mode>_mask<round_name>,
20066         <avx512>_fmsub_<mode>_mask3<round_name>,
20067         <avx512>_fnmadd_<mode>_mask<round_name>,
20068         <avx512>_fnmadd_<mode>_mask3<round_name>,
20069         <avx512>_fnmsub_<mode>_mask<round_name>,
20070         <avx512>_fnmsub_<mode>_mask3<round_name>,
20071         <avx512>_fmaddsub_<mode>_mask<round_name>,
20072         <avx512>_fmaddsub_<mode>_mask3<round_name>,
20073         <avx512>_fmsubadd_<mode>_mask<round_name>,
20074         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
20075         <round_nimm_predicate> instead of nonimmediate_operand.
20076         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
20077         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
20078         Use register_operand instead of <round_nimm_predicate> for the
20079         operand that needs to match output.
20080         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
20081         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
20082         Likewise.  Formatting fixes.
20084         PR target/89784
20085         * config/i386/i386.c (enum ix86_builtins): Remove
20086         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
20087         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
20088         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
20089         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
20090         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
20091         __builtin_ia32_vfmsubss3_mask3): New builtins.
20092         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
20093         avx512f_vmfmadd_<mode>_mask3<round_name>,
20094         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
20095         *avx512f_vmfmsub_<mode>_mask<round_name>,
20096         avx512f_vmfmsub_<mode>_mask3<round_name>,
20097         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
20098         *avx512f_vmfnmadd_<mode>_mask<round_name>,
20099         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
20100         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
20101         *avx512f_vmfnmsub_<mode>_mask<round_name>,
20102         avx512f_vmfnmsub_<mode>_mask3<round_name>,
20103         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
20104         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
20105         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
20106         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
20107         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
20108         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
20109         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
20110         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
20111         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
20112         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
20113         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
20114         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
20115         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
20116         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
20117         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
20118         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
20119         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
20120         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
20121         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
20122         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
20123         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
20124         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
20126 2019-03-21  Martin Sebor  <msebor@redhat.com>
20128         PR tree-optimization/89350
20129         * builtins.c (compute_objsize): Also ignore offsets whose upper
20130         bound is negative.
20131         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
20132         (builtin_memref::builtin_memref): Initialize new member.
20133         Allow EXPR to be null.
20134         (builtin_memref::extend_offset_range): Replace local with a member.
20135         Avoid assuming pointer offsets are unsigned.
20136         (builtin_memref::set_base_and_offset): Determine base object
20137         before computing offset range.
20138         (builtin_access::builtin_access): Handle memset.
20139         (builtin_access::generic_overlap): Replace local with a member.
20140         (builtin_access::strcat_overlap): Same.
20141         (builtin_access::overlap): Same.
20142         (maybe_diag_overlap): Same.
20143         (maybe_diag_access_bounds): Same.
20144         (wrestrict_dom_walker::check_call): Handle memset.
20145         (check_bounds_or_overlap): Same.
20147 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
20148             Jakub Jelinek  <jakub@redhat.com>
20150         PR lto/89692
20151         * tree.c (fld_type_variant, fld_incomplete_type_of,
20152         fld_process_array_type): Call fld->pset.add and don't call
20153         add_tree_to_fld_list if it returns true.
20154         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
20155         non-marked types from TYPE_NEXT_VARIANT list.
20156         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
20158 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
20160         * hash-table.h (hash_table): Add Lazy template parameter defaulted
20161         to false, if true, don't alloc_entries during construction, but defer
20162         it to the first method that needs m_entries allocated.
20163         (hash_table::hash_table, hash_table::~hash_table,
20164         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
20165         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
20166         hash_table::clear_slot, hash_table::traverse_noresize,
20167         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
20168         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
20169         false.
20170         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
20171         NO_INSERT instead of find_with_hash.
20172         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
20173         hash_set::m_table): Add Lazy to template params of hash_table.
20174         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
20175         * attribs.c (test_attribute_exclusions): Likewise.
20176         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
20177         hash_set.  Add tests for hash_set with Lazy = true.
20179 2019-03-21  Richard Biener  <rguenther@suse.de>
20181         PR tree-optimization/89779
20182         * tree.c (tree_nop_conversion): Consolidate and fix defensive
20183         checks with respect to released SSA names now having error_mark_node
20184         type.
20185         * fold-const.c (operand_equal_p): Likewise.
20187 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
20189         PR target/89775
20190         * config/s390/s390.c (global_not_special_regno_p): Move to make it
20191         available to ...
20192         (s390_optimize_register_info): Use global_not_special_regno_p to
20193         check for global regs.
20195 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
20197         PR target/89752
20198         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
20199         update this_alternative nor this_alternative_set.
20201 2019-03-19  Jim Wilson  <jimw@sifive.com>
20203         PR target/89411
20204         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
20205         align, size, offset.  Use them to handle a BLKmode reference.  Update
20206         comment.
20207         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
20209 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
20211         PR rtl-optimization/89768
20212         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
20213         instead of GEN_INT.
20214         (unroll_loop_runtime_iterations): Likewise.
20216 2019-03-19  Martin Sebor  <msebor@redhat.com>
20218         PR tree-optimization/89644
20219         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
20220         rather than endptr as an indicator of nul-termination.
20222         PR tree-optimization/89644
20223         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
20224         arrays in determining sequence sizes in strncpy and stpncpy.
20226 2019-03-19  Martin Liska  <mliska@suse.cz>
20228         PR middle-end/89737
20229         * predict.c (combine_predictions_for_bb): Empty likely_edges and
20230         unlikely_edges if there's an edge that belongs to both these sets.
20232 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
20234         PR target/89746
20235         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
20236         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
20237         go via a stack temporary.
20239 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
20241         PR target/89378
20242         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
20243         instead of gen_rtx_SUBREG.
20244         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
20246 2019-03-19  Richard Biener  <rguenther@suse.de>
20248         PR debug/88389
20249         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
20251 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
20253         PR lto/87809
20254         PR lto/89335
20255         * tree.c (free_lang_data_in_decl): Do not free context of C++
20256         destrutors.
20258 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
20260         PR target/89506
20261         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
20262         subs for the first alternative except when operands[3] is 1.
20264         PR target/89752
20265         * gimplify.c (gimplify_asm_expr): For output argument with
20266         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
20267         diagnose error.
20269 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
20271         PR rtl-optimization/89753
20272         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20273         explicit unrolling factor even more robust.
20275 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
20277         PR target/89726
20278         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
20279         compensation use x2 += 1 instead of x2 -= -1 and when honoring
20280         signed zeros, do another copysign after the compensation.
20282 2019-03-18  Martin Sebor  <msebor@redhat.com>
20284         PR tree-optimization/89720
20285         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
20286         more conservatively, the same as anti-range.
20288 2019-03-18  Richard Biener  <rguenther@suse.de>
20290         PR middle-end/88945
20291         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
20292         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
20293         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
20294         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
20296 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
20298         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
20299         Extend queue to 1024 entries.
20300         Add "consumed" field.
20301         (gomp_print_output): Remove print_index parameter.
20302         Add final parameter.
20303         Change limit to unsigned.
20304         Use consumed field to implement circular buffer.
20305         Detect interrupted print in final pass.
20306         Flush output at the end.
20307         (run): Update gomp_print_output usage.
20308         (main): Initialize kernargs->output_data.consumed.
20310 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
20312         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
20313         calculation of the minimum number of scalar iterations for
20314         fully-predicated loops.
20316 2019-03-18  Martin Jambor  <mjambor@suse.cz>
20318         PR tree-optimization/89546
20319         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
20320         any propagation to its children took place.
20322 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
20324         PR target/89627
20325         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
20326         parameter, and make use of it.
20327         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
20329 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
20331         * config/arc/arc.opt (mcode-density-frame): Get the inital value
20332         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
20333         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
20334         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
20335         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
20336         match what the ops is doing.
20337         (push_multi_fp_blink): Likewise.
20338         * config/arc/arc.c (arc_override_options): Enable enter/leave when
20339         compiling for size and elf target.
20340         (arc_save_callee_enter): Adjust note to match what enter/leave
20341         operation does.
20343 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
20345         * config/arc/arc.md (tst_movb): Fix constraint.
20347 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
20349         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
20351 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
20353         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
20354         * config/arc/arc.c (arc_conditional_register_usage): Remove all
20355         reg_alloc_order references.
20356         (size_alloc_order): Define.
20357         (arc_adjust_reg_alloc_order): New function.
20358         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
20359         order.
20360         (ADJUST_REG_ALLOC_ORDER): Define.
20361         (HONOR_REG_ALLOC_ORDER): Likewise.
20363 2019-03-18  Richard Biener  <rguenther@suse.de>
20365         PR target/87561
20366         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
20367         loads and stores a bit more.
20369 2019-03-18  Richard Biener  <rguenther@suse.de>
20371         PR target/87561
20372         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
20373         load pessimization to stores as well.
20375 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
20377         PR middle-end/86979
20378         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
20379         successor, use NULL as its av set.
20381 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
20383         PR rtl-optimization/89721
20384         * lra-constraints (invariant_p): Return false if side_effects_p holds.
20386 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20388         PR target/87532
20389         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
20390         When handling vec_extract, use modular arithmetic to allow
20391         constant selectors greater than vector length.
20392         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
20393         V1TImode vectors to have constant selector values greater than 0.
20394         Use modular arithmetic to compute vector index.
20395         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
20396         index for in-memory vectors.  Correct code generation for
20397         in-register vectors.
20398         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
20399         compute index.
20401 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
20403         PR c++/88534
20404         PR c++/88537
20405         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
20406         VAR_DECL args.
20408 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
20410         PR c++/89709
20411         * tree.c (inchash::add_expr): Strip any location wrappers.
20412         * fold-const.c (operand_equal_p): Move stripping of location wrapper
20413         after hash verification.
20415         PR debug/89704
20416         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
20417         SIGN_EXTEND and ZERO_EXTEND.
20419 2019-03-14  Jason Merrill  <jason@redhat.com>
20420             Jakub Jelinek  <jakub@redhat.com>
20422         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
20423         than if is_empty (*slot).
20424         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
20425         existing elt and for elt removal.
20426         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
20427         of already removed elt.
20429 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
20431         PR target/89650
20432         * config/i386/i386.c (remove_partial_avx_dependency): Handle
20433         REG_EH_REGION note.
20435 2019-03-14  Martin Liska  <mliska@suse.cz>
20437         PR other/89712
20438         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
20440 2019-03-14  Richard Biener  <rguenther@suse.de>
20442         PR target/89711
20443         * config/i386/i386.c (make_resolver_func): Properly set
20444         DECL_CONTEXT on the RESULT_DECL.
20445         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
20447 2019-03-14  Richard Biener  <rguenther@suse.de>
20449         * gimple-pretty-print.c: Include cfgloop.h.
20450         (dump_gimple_phi): Adjust.
20451         (dump_gimple_bb_header): Dump loop header for GIMPLE.
20452         (pp_cfg_jump): Adjust.
20453         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
20454         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
20455         (lower_phi_internal_fn): Remove.
20456         (verify_gimple_call): Remove IFN_PHI special-casing.
20457         (dump_function_to_file): Dump IL state.
20458         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
20459         done to deal with PHI nodes being present in non-SSA state.
20461 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
20463         PR ipa/89684
20464         * multiple_target.c (create_dispatcher_calls): Change
20465         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
20466         In the node->iterate_referring loop, push *ref rather than ref, call
20467         ref->remove_reference () and always pass 0 to iterate_referring.
20469         PR rtl-optimization/89679
20470         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
20471         would contain a paradoxical SUBREG.
20473 2019-03-14  Richard Biener  <rguenther@suse.de>
20475         PR tree-optimization/89710
20476         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
20477         safe_dyn_cast.
20479 2019-03-14  Martin Liska  <mliska@suse.cz>
20481         * coverage.c (coverage_begin_function): Stream also
20482         end_column.
20483         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
20484         documentation about function declaration location.
20485         * gcov-dump.c (tag_function): Print whole range
20486         of function declaration.
20487         * gcov.c (struct function_info): Add end_column field.
20488         (function_info::function_info): Initialize it.
20489         (output_json_intermediate_file): Output {start,end}_column
20490         fields.
20491         (read_graph_file): Read end_column.
20493 2019-03-14  Richard Biener  <rguenther@suse.de>
20495         PR middle-end/89698
20496         * fold-const.c (operand_equal_p): For INDIRECT_REF check
20497         that the access types are similar.
20499 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
20501         PR tree-optimization/89703
20502         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
20503         aren't compatible also with builtin_decl_explicit.  Check pure
20504         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
20505         and BUILT_IN_STPNCPY{,_CHK}.
20507 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
20509         PR target/89523
20510         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
20511         addr32 prefix to VSIB address for X32.
20512         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
20513         "%M2" to opcode.
20514         (*avx512pf_gatherpf<mode>df_mask): Likewise.
20515         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
20516         (*avx512pf_scatterpf<mode>df_mask): Likewise.
20517         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
20518         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
20519         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
20520         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
20521         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
20522         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
20523         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
20524         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
20525         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
20526         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
20527         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
20528         (*avx512f_scatterdi<mode>): Likewise.
20530 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
20532         PR target/85860
20533         * lra-constraints.c (inherit_in_ebb): Update
20534         potential_reload_hard_regs along with live_hard_regs.
20536 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
20538         PR debug/89498
20539         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
20540         DWARF_OFFSET_SIZE.
20541         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
20543 2019-03-13  Martin Sebor  <msebor@redhat.com>
20545         PR tree-optimization/89662
20546         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
20547         has a size.
20549 2019-03-13  Richard Biener  <rguenther@suse.de>
20551         PR middle-end/89677
20552         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
20553         throw FP expressions at tree-affine.
20555 2019-03-14  Richard Biener  <rguenther@suse.de>
20557         * tree-pretty-print.c (dump_generic_node): For -gimple properly
20558         dump negative integer constants using _Literal (type) -num.
20560 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
20562         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
20563         nonlocal_value member.
20565         PR middle-end/88588
20566         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
20567         (ipa_simd_modify_function_body): Handle PHIs.
20569 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
20571         * config/s390/s390.c (s390_option_override_internal): Use more
20572         aggressive inlining parameters.
20574 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
20576         * config/s390/3906.md: New file.
20577         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20578         (LONGRUNNING_THRESHOLD): Remove.
20579         (MAX_SCHED_MIX_SCORE): Decrease.
20580         (MAX_SCHED_MIX_DISTANCE): Decrease.
20581         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
20582         (struct s390_sched_state): New struct to hold scheduling state.
20583         (S390_SCHED_STATE_NORMAL): Remove.
20584         (S390_SCHED_STATE_CRACKED): Remove.
20585         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
20586         (s390_get_sched_attrmask): Use new attribute.
20587         (s390_get_unit_mask): Use new units.
20588         (s390_is_fpd): New function.
20589         (s390_is_fxd): New function.
20590         (s390_is_longrunning): New function.
20591         (s390_sched_score): Use new functions.
20592         (s390_sched_reorder): Likewise.
20593         (s390_sched_variable_issue): Rework and use new functions.
20594         (s390_sched_init): Use new functions.
20595         * config/s390/s390.h (s390_tune_attr): Add z14.
20596         * config/s390/s390.md: Add z14.
20598 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
20600         * config/s390/2964.md: Update pipeline description.
20601         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
20602         (LONGRUNNING_THRESHOLD): Remove.
20603         (LATENCY_FACTOR): Remove.
20604         (s390_get_unit_mask): Add unit.
20605         (s390_sched_score): Use fxd/fpd.
20606         (s390_sched_variable_issue): Use fxd/fpd.
20608 2019-03-12  Martin Liska  <mliska@suse.cz>
20610         * config/i386/i386.c: Reword an error message.
20612 2019-03-12  Martin Jambor  <mjambor@suse.cz>
20614         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
20615         terminate with newline.
20617 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
20619         PR target/52726
20620         * config/s390/s390.md (tabort): Use %wd instead of
20621         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
20622         letters and periods.
20623         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
20624         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
20625         's with %< and %>.
20627         PR middle-end/89663
20628         * builtins.c (expand_builtin_int_roundingfn,
20629         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
20630         gcc_unreachable if validate_arglist fails.
20632 2019-03-12  Richard Biener  <rguenther@suse.de>
20634         PR tree-optimization/89664
20635         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
20636         free the occurance tree after the early out.
20638 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
20640         PR middle-end/89655
20641         PR bootstrap/89656
20642         * vr-values.c (vr_values::update_value_range): If
20643         old_vr->varying_p (), don't update it, make new_vr also VARYING
20644         and return false.
20646 2019-03-11  Martin Liska  <mliska@suse.cz>
20648         * config/aarch64/aarch64.c (aarch64_override_options_internal):
20649         Fix double string quoting.
20651 2019-03-11  Martin Liska  <mliska@suse.cz>
20653         * collect-utils.c (collect_wait): Wrap apostrophes
20654         in gcc internal format with %'.
20655         * collect2.c (main): Likewise.
20656         (scan_prog_file): Likewise.
20657         (scan_libraries): Likewise.
20658         * config/i386/i386.c (ix86_expand_call): Likewise.
20659         (ix86_handle_interrupt_attribute): Likewise.
20660         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
20661         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
20662         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
20663         * lto-wrapper.c (find_crtoffloadtable): Likewise.
20664         * symtab.c (symtab_node::verify_base): Likewise.
20665         * tree-cfg.c (verify_gimple_label): Likewise.
20666         * tree.c (verify_type_variant): Likewise.
20668 2019-03-11  Martin Liska  <mliska@suse.cz>
20670         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
20671         in a string format message and fix GNU coding style.
20672         (expand_builtin_set_thread_pointer): Likewise.
20673         * common/config/aarch64/aarch64-common.c
20674         (aarch64_rewrite_selected_cpu): Likewise.
20675         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
20676         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
20677         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
20678         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
20679         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
20680         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
20681         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
20682         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
20683         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
20684         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
20685         Likewise.
20686         * common/config/riscv/riscv-common.c
20687         (riscv_subset_list::parsing_subset_version): Likewise.
20688         (riscv_subset_list::parse_std_ext): Likewise.
20689         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
20690         (riscv_subset_list::parse): Likewise.
20691         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
20692         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
20693         (aarch64_override_options_internal): Likewise.
20694         (aarch64_validate_mcpu): Likewise.
20695         (aarch64_validate_march): Likewise.
20696         (aarch64_validate_mtune): Likewise.
20697         (aarch64_override_options): Likewise.
20698         * config/alpha/alpha.c (alpha_option_override): Likewise.
20699         * config/arc/arc.c (arc_init): Likewise.
20700         (parse_mrgf_banked_regs_option): Likewise.
20701         (arc_override_options): Likewise.
20702         (arc_expand_builtin_aligned): Likewise.
20703         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
20704         (arm_expand_builtin): Likewise.
20705         * config/arm/arm.c (arm_option_check_internal): Likewise.
20706         (arm_configure_build_target): Likewise.
20707         (arm_option_override): Likewise.
20708         (arm_options_perform_arch_sanity_checks): Likewise.
20709         (arm_handle_cmse_nonsecure_entry): Likewise.
20710         (arm_handle_cmse_nonsecure_call): Likewise.
20711         (arm_tls_referenced_p): Likewise.
20712         (thumb1_expand_prologue): Likewise.
20713         * config/avr/avr.c (avr_option_override): Likewise.
20714         * config/bfin/bfin.c (bfin_option_override): Likewise.
20715         * config/c6x/c6x.c (c6x_option_override): Likewise.
20716         * config/cr16/cr16.c (cr16_override_options): Likewise.
20717         * config/cris/cris.c (cris_option_override): Likewise.
20718         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
20719         * config/darwin-c.c (macosx_version_as_macro): Likewise.
20720         * config/darwin.c (darwin_override_options): Likewise.
20721         * config/frv/frv.c (frv_expand_builtin): Likewise.
20722         * config/h8300/h8300.c (h8300_option_override): Likewise.
20723         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
20724         (ix86_option_override_internal): Likewise.
20725         (warn_once_call_ms2sysv_xlogues): Likewise.
20726         (ix86_expand_prologue): Likewise.
20727         (split_stack_prologue_scratch_regno): Likewise.
20728         (ix86_warn_parameter_passing_abi): Likewise.
20729         * config/ia64/ia64.c (fix_range): Likewise.
20730         * config/m68k/m68k.c (m68k_option_override): Likewise.
20731         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
20732         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
20733         (mips_set_compression_mode): Likewise.
20734         * config/mmix/mmix.c (mmix_option_override): Likewise.
20735         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
20736         * config/msp430/msp430.c (msp430_option_override): Likewise.
20737         * config/nds32/nds32.c (nds32_option_override): Likewise.
20738         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
20739         (nios2_option_override): Likewise.
20740         (nios2_expand_custom_builtin): Likewise.
20741         * config/nvptx/mkoffload.c (main): Likewise.
20742         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
20743         * config/pa/pa.c (fix_range): Likewise.
20744         (pa_option_override): Likewise.
20745         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
20746         (riscv_option_override): Likewise.
20747         * config/rl78/rl78.c (rl78_option_override): Likewise.
20748         * config/rs6000/aix61.h: Likewise.
20749         * config/rs6000/aix71.h: Likewise.
20750         * config/rs6000/aix72.h: Likewise.
20751         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
20752         * config/rs6000/freebsd64.h: Likewise.
20753         * config/rs6000/linux64.h: Likewise.
20754         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
20755         (rs6000_expand_zeroop_builtin): Likewise.
20756         (rs6000_expand_mtfsb_builtin): Likewise.
20757         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
20758         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
20759         (rs6000_invalid_builtin): Likewise.
20760         (rs6000_expand_split_stack_prologue): Likewise.
20761         * config/rs6000/rtems.h: Likewise.
20762         * config/rx/rx.c (valid_psw_flag): Likewise.
20763         (rx_expand_builtin): Likewise.
20764         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
20765         * config/s390/s390.c (s390_expand_builtin): Likewise.
20766         (s390_function_profiler): Likewise.
20767         (s390_option_override_internal): Likewise.
20768         (s390_option_override): Likewise.
20769         * config/sh/sh.c (sh_option_override): Likewise.
20770         (sh_builtin_saveregs): Likewise.
20771         (sh_fix_range): Likewise.
20772         * config/sh/vxworks.h: Likewise.
20773         * config/sparc/sparc.c (sparc_option_override): Likewise.
20774         * config/spu/spu.c (spu_option_override): Likewise.
20775         (fix_range): Likewise.
20776         * config/visium/visium.c (visium_option_override): Likewise.
20777         (visium_handle_interrupt_attr): Likewise.
20778         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
20779         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
20780         (dbg_cnt_process_opt): Likewise.
20781         * dwarf2out.c (output_dwarf_version): Likewise.
20782         * except.c (expand_eh_return): Likewise.
20783         * gcc.c (defined): Likewise.
20784         (driver_handle_option): Likewise.
20785         (process_command): Likewise.
20786         (compare_files): Likewise.
20787         (driver::prepare_infiles): Likewise.
20788         (driver::do_spec_on_infiles): Likewise.
20789         (driver::maybe_run_linker): Likewise.
20790         * omp-offload.c (oacc_parse_default_dims): Likewise.
20791         * opts-global.c (handle_common_deferred_options): Likewise.
20792         * opts.c (parse_sanitizer_options): Likewise.
20793         (common_handle_option): Likewise.
20794         (enable_warning_as_error): Likewise.
20795         * passes.c (enable_disable_pass): Likewise.
20796         * plugin.c (parse_plugin_arg_opt): Likewise.
20797         (default_plugin_dir_name): Likewise.
20798         * targhooks.c (default_expand_builtin_saveregs): Likewise.
20799         (default_pch_valid_p): Likewise.
20800         * toplev.c (init_asm_output): Likewise.
20801         (process_options): Likewise.
20802         (toplev::run_self_tests): Likewise.
20803         * tree-cfg.c (verify_gimple_call): Likewise.
20804         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
20805         (tree_inlinable_function_p): Likewise.
20806         * var-tracking.c (vt_find_locations): Likewise.
20808 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
20810         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
20811         only on the else branch.
20813 2019-03-11  Martin Liska  <mliska@suse.cz>
20815         * gcov.c (output_intermediate_json_line): Print function
20816         name of each line.
20817         (output_json_intermediate_file): Add new argument.
20818         * doc/gcov.texi: Document the change.
20820 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
20822         PR rtl-optimization/89588
20823         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
20824         explicit unrolling factor more robust.
20826 2019-03-11  Richard Biener  <rguenther@suse.de>
20828         PR tree-optimization/89649
20829         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
20830         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
20831         on the prolog and epilog loops.
20832         (vect_loop_versioning): Return copy of loop.
20833         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
20834         on the non-vectorized version of the loop.
20836 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20838         PR target/68924
20839         * config/i386/sse.md (*vec_extractv2di_0_sse):
20840         Add (=r,x) alternative and corresponding splitter.
20842 2019-03-10  Martin Jambor  <mjambor@suse.cz>
20844         PR tree-optimization/85762
20845         PR tree-optimization/87008
20846         PR tree-optimization/85459
20847         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
20848         it points to if there is a type changing MEM_REF.  Adjust all callers.
20849         (build_accesses_from_assign): Disable total scalarization if
20850         contains_vce_or_bfcref_p returns true through the new parameter, for
20851         both rhs and lhs.
20853 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
20855         PR c/88568
20856         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
20857         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
20859         PR target/79645
20860         * common.opt (fdiagnostics-show-labels,
20861         fdiagnostics-show-line-numbers, fdiagnostics-format=,
20862         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
20863         gas-locview-support, ginline-points, ginternal-reset-location-views):
20864         Terminate description text with a dot.
20865         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
20866         * config/mcore/mcore.opt (m210, m340): Likewise.
20867         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
20868         mnops=): Start description text with a capital letter.
20869         * config/arc/arc.opt (msize-level=): Likewise.
20870         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
20871         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
20872         mnewlib): Likewise.
20873         * config/ft32/ft32.opt (msim): Likewise.
20874         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
20875         (mnodiv, mnopm): Terminate description text with a dot.
20876         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
20877         a colon.
20878         * config/i386/i386.opt (prefer_vector_width, instrument_return):
20879         Likewise.
20880         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
20881         text.
20883         PR rtl-optimization/89634
20884         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
20885         are modified in BB_END (e->src) instruction.
20887 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
20889         PR target/79926
20890         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
20891         messages more amenable to translation, and improve wording.
20893 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
20895         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
20896         ud- and du-chains between phases.
20898 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
20900         PR debug/89631
20901         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
20902         instead of POLY_INT_CST.
20904 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
20906         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
20907         requirement.
20909 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20911         PR target/68924
20912         PR target/78782
20913         PR target/87558
20914         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
20915         (_mm_storeu_si64): Ditto.
20917 2019-03-08  Martin Liska  <mliska@suse.cz>
20919         PR target/86952
20920         * config/i386/i386.c (ix86_option_override_internal): Disable
20921         jump tables when retpolines are used.
20923 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
20925         PR go/63560
20926         * ipa-split.c (execute_split_functions): Do not split
20927         'noinline' or 'section' function.
20929 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
20931         PR target/79846
20932         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
20933         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
20934         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
20936         PR ipa/80000
20937         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20938         from diagnostics.  Formatting fixes.
20940         PR target/85665
20941         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
20942         warn_odr diagnostics.
20944         PR other/80058
20945         * lra-constraints.c (process_alt_operands): Avoid one space before
20946         " at the end of line and another after " on another line in a string
20947         literal.
20948         * attribs.c (handle_dll_attribute): Likewise.
20949         * config/avr/avr-devices.c (avr_texinfo): Likewise.
20951         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
20952         warning_at or inform messages in G_() if there is no ?:.
20954         PR tree-optimization/89550
20955         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
20956         returned true.  Formatting fixes.
20957         (expand_builtin_strnlen): Formatting fixes.
20958         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
20959         if warning_at returned true.
20960         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
20962 2019-03-08  Richard Biener  <rguenther@suse.de>
20964         PR middle-end/89578
20965         * cfgloop.h (struct loop): Add owned_clique field.
20966         * cfgloopmanip.c (copy_loop_info): Copy it.
20967         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
20968         cliques.
20969         * tree-inline.c (copy_loops): Remap owned_clique.
20970         * lto-streamer-in.c (input_cfg): Stream owned_clique.
20971         * lto-streamer-out.c (output_cfg): Likewise.
20973 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
20975         PR target/80190
20976         * config/darwin.c: Include intl.h.
20977         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
20978         composing the message out of two separate parts.
20980 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
20982         PR target/80003
20983         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
20984         doesn't start with a capital letter and doesn't end with a dot.
20985         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
20986         with a capital letter.
20987         (ix86_mangle_function_version_assembler_name): Likewise.
20988         (ix86_generate_version_dispatcher_body): Likewise.
20989         (fold_builtin_cpu): Likewise.
20990         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
20991         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
20992         translators, wrap full type name in %qs.
20994         PR translation/79999
20995         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
20996         depend clause with source (or sink) modifier.
20997         * omp-expand.c (expand_omp_ordered_sink): Likewise.
20999         PR target/89602
21000         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
21001         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
21002         (avx512f_load<mode>_mask): New define_expand.
21003         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
21004         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
21005         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
21006         __builtin_ia32_movess_mask): New builtins.
21007         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
21008         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
21009         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
21010         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
21012 2019-03-07  Martin Jambor  <mjambor@suse.cz>
21014         PR lto/87525
21015         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
21016         for extern inline functions.
21018 2019-03-07  Martin Jambor  <mjambor@suse.cz>
21020         PR ipa/88235
21021         * cgraph.h (cgraph_node): New inline method former_thunk_p.
21022         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
21023         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
21024         have multiple callees.  At the end check if declarations match as
21025         opposed to cgraph_nodes.
21027 2019-03-07  Martin Liska  <mliska@suse.cz>
21029         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
21030         which is equivalent to searching for this in clones chain.
21031         * symtab.c (symtab_node::verify_base): Similarly compare ASM
21032         names with a neighbour and special case first node in a chain.
21034 2019-01-25  Jason Merrill  <jason@redhat.com>
21036         PR c++/80916 - spurious "static but not defined" warning.
21037         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
21038         for an internal symbol with DECL_EXTERNAL.
21040 2019-04-07  Richard Biener  <rguenther@suse.de>
21042         PR middle-end/89618
21043         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
21044         * tree-inline.c (copy_loops): Simplify.
21046 2019-03-07  Martin Liska  <mliska@suse.cz>
21048         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
21050 2019-03-07  Richard Biener  <rguenther@suse.de>
21052         PR tree-optimization/89595
21053         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
21054         stmt iterator as reference, take boolean output parameter to
21055         indicate whether the stmt was removed and thus the iterator
21056         already advanced.
21057         (dom_opt_dom_walker::before_dom_children): Re-iterate over
21058         stmts created by folding.
21060 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
21062         PR c++/89585
21063         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
21064         at toplevel.
21066 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
21068         PR rtl-optimization/88845
21069         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
21070         LRA.
21071         * lra.c (remove_scratches_1): New function.
21072         (remove_scratches): Use it.
21073         (lra_emit_move): Likewise.
21075 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
21077         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
21078         unaligned_access variable.
21079         * config/arc/arc.c (arc_override_options): Set unaligned access
21080         default on for HS CPUs.
21081         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
21083 2019-03-06  Martin Liska  <mliska@suse.cz>
21085         PR gcov-profile/89577
21086         * doc/gcov.texi: Prefer to use --coverage.
21087         * doc/sourcebuild.texi: Likewise.
21089 2019-03-02  Jason Merrill  <jason@redhat.com>
21091         PR c++/86485 - -Wmaybe-unused with empty class ?:
21092         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
21094 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
21096         PR target/89587
21097         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
21098         if_multiarch.
21100         PR middle-end/89590
21101         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
21102         exactly one argument.
21104 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
21105             Richard Sandiford  <richard.sandiford@arm.com>
21107         PR tree-optimization/89570
21108         * match.pd (vec_cond into cond_op simplification): Don't use
21109         get_conditional_internal_fn, use as_internal_fn (cond_op).
21111 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
21113         PR target/89222
21114         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
21115         to decide when to split off a non-zero offset from a symbol.
21116         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
21117         in function symbols.
21119 2019-03-05  Richard Biener  <rguenther@suse.de>
21121         PR tree-optimization/89594
21122         * tree-if-conv.c (pass_if_conversion::execute): Handle
21123         case where .LOOP_VECTORIZED_FUNCTION was removed.
21125 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
21127         PR bootstrap/89560
21128         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
21129         instead alloca it only when needed with the needed size.
21131         PR tree-optimization/89570
21132         * match.pd (vec_cond into cond_op simplification): Guard with
21133         vectorized_internal_fn_supported_p test and #if GIMPLE.
21135         PR tree-optimization/89566
21136         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
21137         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
21138         Punt if get_user_idx_format succeeds, but idx_format argument is
21139         not provided or doesn't have pointer type, or if idx_args is above
21140         number of provided arguments.
21142 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
21144         PR tree-optimization/89437
21145         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
21147 2019-03-04  Richard Biener  <rguenther@suse.de>
21149         PR middle-end/89572
21150         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
21151         safe_dyn_cast.
21153 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
21155         PR tree-optimization/89487
21156         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
21157         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
21158         (distribute_loop): Don't do runtime alias check if there is non-
21159         addressable data reference.
21160         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
21161         is a register variable.
21163 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
21165         PR target/89506
21166         * config/arm/arm.md (cmpsi2_addneg): Use
21167         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
21168         If operands[2] is 0 or INT_MIN, force use of subs.
21169         (*compare_scc splitter): Use gen_int_mode.
21170         (*negscc): Likewise.
21171         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
21173 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
21174             Monk Chiang  <sh.chiang04@gmail.com>
21176         * common/config/riscv/riscv-common.c: Include sstream.
21177         (riscv_subset_list::to_string): New.
21178         (riscv_arch_str): Likewise.
21179         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
21180         * config.in: Regen.
21181         * config/riscv/riscv-protos.h (riscv_arch_str): New.
21182         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
21183         (riscv_emit_attribute): New.
21184         (riscv_file_start): Emit attribute if needed.
21185         (riscv_option_override): Init riscv_emit_attribute_p.
21186         * config/riscv/riscv.opt (mriscv-attribute): New option.
21187         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
21188         * configure: Regen.
21189         * doc/install.texi: Document --with-riscv-attribute.
21190         * doc/invoke.texi: Document -mriscv-attribute.
21192         * common/config/riscv/riscv-common.c:
21193         Include config/riscv/riscv-protos.h.
21194         (INCLUDE_STRING): Defined.
21195         (RISCV_DONT_CARE_VERSION): Defined.
21196         (riscv_subset_t): Declare.
21197         (riscv_subset_t::riscv_subset_t): New.
21198         (riscv_subset_list): Declare.
21199         (riscv_subset_list::riscv_subset_list): New.
21200         (riscv_subset_list::~riscv_subset_list): Likewise.
21201         (riscv_subset_list::parsing_subset_version): Likewise.
21202         (riscv_subset_list::parse_std_ext): Likewise.
21203         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21204         (riscv_subset_list::add): Likewise.
21205         (riscv_subset_list::lookup): Likewise.
21206         (riscv_subset_list::xlen): Likewise.
21207         (riscv_subset_list::parse): Likewise.
21208         (riscv_supported_std_ext): Likewise.
21209         (current_subset_list): Likewise.
21210         (riscv_parse_arch_string): Using riscv_subset_list::parse to
21211         parse.
21213 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
21215         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
21216         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
21217         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
21219 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
21221         PR rtl-optimization/85899
21222         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
21223         fallthru edges leading to the exit block.
21225 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
21227         PR target/89517
21228         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
21229         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
21231 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
21233         PR tree-optimization/89535
21234         * tree-vect-stmts.c (vectorizable_call): Record the vector types
21235         for each operand.  Calculate the fallback choice for mask operands
21236         and pass it to vect_get_vec_def_for_operand.
21238 2019-03-01  Richard Biener  <rguenther@suse.de>
21240         PR middle-end/89541
21241         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
21242         get virtual operands.
21243         (get_expr_operands): Handle CONST_DECL like other decls.
21245 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
21247         PR middle-end/89503
21248         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
21249         on DECL_P and EXPR_P.
21251 2019-03-01  Richard Biener  <rguenther@suse.de>
21253         PR middle-end/89497
21254         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
21255         argument, defaulted to zero.
21256         * passes.c (execute_function_todo): Pass down SSA update flags
21257         to cleanup_tree_cfg.
21258         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
21259         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
21260         form if requested.
21261         (cleanup_tree_cfg): Get and pass down SSA update flags.
21263 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
21265         PR bootstrap/89539
21266         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
21267         early_lto_debug argument.
21269 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
21271         PR tree-optimization/89536
21272         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
21273         only whether bit #0 of the value is 0 instead of the entire value.
21275 2019-02-28  Marek Polacek  <polacek@redhat.com>
21277         PR c++/87068 - missing diagnostic with fallthrough statement.
21278         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
21279         at the end of a seq, save its location to walk_stmt_info.
21280         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
21281         a switch.
21283 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
21285         PR lto/88585
21286         * tree.c (find_atomic_core_type): Move ahead in file.
21287         (check_base_type): Correctly compare alignments of atomic types.
21289 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
21291         PR target/89455
21292         * config/i386/i386.c (get_builtin_code_for_version): Identify
21293         Westmere from PCLMUL, instead of AES.
21295 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
21297         PR target/89434
21298         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
21299         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
21300         -UINTVAL (...).
21302 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
21304         PR target/88530
21305         * config/aarch64/aarch64-option-extensions.def: Document it.
21306         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
21307         if empty hwcaps.
21309 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
21311         PR c/89520
21312         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
21313         builtins if they don't have a single scalar floating point argument.
21314         Formatting fixes.
21316 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
21318         PR rtl-optimization/89490
21319         * varasm.c (get_block_for_section): Bail out for mergeable sections.
21320         (default_use_anchors_for_symbol_p, output_object_block): Assert the
21321         block section is not mergeable.
21323 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
21325         PR target/70341
21326         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
21327         old define_insn to ...
21328         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
21329         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
21330         Rename old define_insn to ...
21331         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
21332         (thumb2_casesi_internal_pic): New define_expand.  Rename old
21333         define_insn to ...
21334         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
21335         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
21336         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
21338 2019-02-27  Richard Biener  <rguenther@suse.de>
21340         PR debug/88878
21341         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
21343 2019-02-27  Richard Biener  <rguenther@suse.de>
21345         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
21346         building.
21348 2019-02-27  Richard Biener  <rguenther@suse.de>
21350         PR debug/88878
21351         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
21352         parameter, prefix section name with .gnu.debuglto_ if true.
21353         (dwarf2out_finish): Pass false to output_comdat_type_unit.
21354         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
21356 2019-02-27  Richard Biener  <rguenther@suse.de>
21358         PR debug/89514
21359         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
21360         rather than on use_debug_types, doing what output_die does.
21361         (value_format): Likewise.
21363 2019-02-27  Martin Jambor  <mjambor@suse.cz>
21364             Martin Sebor  <msebor@redhat.com>
21366         * doc/invoke.texi (Warning Options): Reword description of
21367         -Wno-absolute-value.
21369 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
21371         PR tree-optimization/89280
21372         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
21373         builtin_setjmp_setup_bb): New functions.
21374         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
21375         When visiting __builtin_setjmp_setup block, queue in special
21376         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
21377         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
21378         from visited after the loop if they don't have any visited successor
21379         blocks.
21381 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
21383         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
21384         New function.
21385         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
21387 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
21389         PR c++/89507
21390         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
21391         with types other than sizetype/ssizetype.
21393 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21395         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
21396         (enum sparc_processor_type): ...this.
21397         (enum sparc_code_model_type): New enumeration type.
21398         (enum sparc_memory_model_type): Tweak comments.
21399         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
21400         (mtune): Likewise.
21401         (mcmodel): Use sparc_code_model enumeration and variable.
21402         (sparc_code_model): New enumeration.
21403         (mdebug): Add Undocumented marker.
21404         * config/sparc/sparc.h (enum cmodel): Delete.
21405         (sparc_cmodel): Likewise.
21406         (TARGET_CM_MEDLOW): Adjust to above renaming.
21407         (TARGET_CM_MEDMID): Likewise.
21408         (TARGET_CM_MEDANY): Likewise.
21409         (TARGET_CM_EMBMEDANY): Likewise.
21410         * config/sparc/sparc.c (sparc_cmodel): Delete.
21411         (sparc_option_override): Remove string/value mapping support for the
21412         code model.  Move code and memory model support to after the handling
21413         of target flags.  Do private machine setup last.
21414         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
21415         (sparc_legitimize_reload_address): Likewise.
21416         (sparc_output_mi_thunk): Likewise.
21417         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
21419 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
21421         PR tree-optimization/89500
21422         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
21423         (handle_builtin_strlen): Remove noncst_bound variable.  Always
21424         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
21425         cst if the first cst bytes starting at x are known to be non-zero,
21426         even if the string is not zero terminated.  Don't try to modify
21427         *si for strnlen.  Update strlen_to_stridx only for strlen or if
21428         we can prove strnlen returns the same value as strlen would.
21430 2019-02-26  Martin Liska  <mliska@suse.cz>
21432         * alloc-pool.h (struct pool_usage): Remove extra
21433         print_dash_line.
21434         * bitmap.h (struct bitmap_usage): Likewise.
21435         * ggc-common.c (struct ggc_usage): Likewise.
21436         * mem-stats.h (struct mem_usage): Likewise.
21437         (mem_alloc_description::dump): Print dash lines
21438         here and repeat header at the end of a table report.
21439         It's then more readable.
21440         * tree-phinodes.c (phinodes_print_statistics): Make
21441         horizontal alignment.
21442         * tree-ssanames.c (ssanames_print_statistics): Likewise.
21443         * vec.c (struct vec_usage): Remove extra print_dash_line.
21444         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
21446 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21448         * doc/extend.texi (__builtin_object_size):
21449         Use @pxref instead of @xref inside parenthesis.
21450         (__builtin_has_attribute): Add missing comma after @xref.
21451         (__builtin_object_size): Ditto.
21452         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
21454 2019-02-26  Jeff Law  <law@redhat.com>
21456         PR rtl-optimization/87761
21457         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
21458         detect obviously dead insns and delete them.
21460 2019-02-26  Richard Biener  <rguenther@suse.de>
21462         PR tree-optimization/89505
21463         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
21464         to handle restrict pointed-to vars with multiple subvars
21465         correctly.
21467 2019-02-26  Richard Biener  <rguenther@suse.de>
21469         PR tree-optimization/89489
21470         * tree-parloops.c (create_loop_fn): Copy over last_clique.
21472 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
21474         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
21475         and move around comment.
21476         <BIT_AND_EXPR>: Likewise.
21477         <BIT_NOT_EXPR>: Add specific handling for boolean types.
21479 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
21481         PR target/89474
21482         * config/i386/i386.c (remove_partial_avx_dependency): Call
21483         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
21484         after changing possibly many instructions to use that pseudo.  Fix up
21485         insertion of v4sf_const0 setter at the start of bb.
21487 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
21489         PR c/80409
21490         * doc/extend.texi (Variadic Pointer Args): New section.
21492 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
21493             Martin Sebor  <msebor@gmail.com>
21495         * common.opt (Wattribute-alias): Likewise.
21496         * doc/invoke.texi (Option Summary): List general form of
21497         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
21498         (-Wmissing-attributes): Invert entry, rewrite and correct default.
21499         Add cross-references.
21500         (-Wattribute-alias): Rewrite and correct default.  Mention
21501         considered attributes (same as for -Wmissing-attributes).
21503 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
21505         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
21506         (_mm_cvtpd_ps): Likewise.
21507         (_mm_cvttpd_epi32): Likewise.
21509         PR target/89338
21510         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
21511         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
21513         PR target/89339
21514         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
21516 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
21518         PR target/88530
21519         * common/config/aarch64/aarch64-common.c
21520         (struct aarch64_option_extension): Add is_synthetic.
21521         (all_extensions): Use it.
21522         (TARGET_OPTION_INIT_STRUCT): Define hook.
21523         (struct gcc_targetm_common): Moved to end.
21524         (all_extensions_by_on): New.
21525         (opt_ext_cmp, typedef opt_ext): New.
21526         (aarch64_option_init_struct): New.
21527         (aarch64_contains_opt): New.
21528         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
21529         * config/aarch64/aarch64-option-extensions.def
21530         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
21531         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
21532         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
21533         Set is_synthetic to false.
21534         (crypto): Set is_synthetic to true.
21535         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
21536         SYNTHETIC.
21538 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
21540         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21541         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
21542         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21543         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
21544         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
21545         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
21546         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
21547         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
21548         Rename ...
21549         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
21550         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21551         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
21552         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
21553         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
21554         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
21555         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
21556         vfmlsl_laneq_high_f16): ... To this.
21557         * config/arm/neon.md: Update comments.
21559 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
21561         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
21562         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
21563         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
21564         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
21565         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
21566         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
21567         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
21568         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
21569         Rename ...
21570         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
21571         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
21572         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
21573         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
21574         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
21575         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
21576         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
21577         vfmlslq_laneq_high_f16): ... To this.
21579 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
21581         PR rtl-optimization/86096
21582         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
21583         comparing mw_order values.
21585 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
21587         PR target/89434
21588         * config/arm/arm.md (*subsi3_carryin_const): Use
21589         arm_neg_immediate_operand predicate instead of
21590         arm_not_immediate_operand, "L" constraint instead of "K" and
21591         print it using %n2 instead of %B2.
21592         (*subsi3_carryin_const0): New define_insn.
21593         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
21594         instead of arm_not_operand and "I" constraint instead of "K" and
21595         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
21596         another match_operand and in the condition check that it is negation
21597         of operands[2].
21598         (*subsi3_carryin_compare_const0): New define_ins.
21599         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
21600         *subsi3_carryin_const.
21601         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
21602         split into *subsi3_carryin_compare_const0 if the highpart is zero.
21604         PR target/89438
21605         * config/arm.vfp.md (*negdf2_vfp): Use
21606         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
21607         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
21609 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
21611         PR rtl-optimization/89445
21612         * simplify-rtx.c (simplify_ternary_operation): Don't use
21613         simplify_merge_mask on operands that may trap.
21614         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
21615         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
21616         second operand is CONST_VECTOR, check if any element could be zero.
21617         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
21618         their operands can trap.
21620 2019-02-23  Martin Sebor  <msebor@redhat.com>
21622         * gimple-ssa-sprintf.c (target_strtol): Rename...
21623         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
21624         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
21625         check for range error.
21627 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
21629         PR driver/69471
21630         * opts-common.c (prune_options): Also prune joined switches
21631         with Negative and RejectNegative.
21632         * config/i386/i386.opt (march=): Add Negative(march=).
21633         (mtune=): Add Negative(mtune=).
21634         * doc/options.texi: Document Negative used together with Joined
21635         and RejectNegative.
21637 2019-02-22  Martin Sebor  <msebor@redhat.com>
21639         * doc/extend.texi (Other Builtins): Add
21640         __builtin_is_constant_evaluated.
21642 2019-02-22  Richard Biener  <rguenther@suse.de>
21644         PR tree-optimization/87609
21645         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
21647 2019-02-22  Jeff Law  <law@redhat.com>
21649         PR rtl-optimization/87761
21650         * config/mips/mips.md: Add new combiner pattern to recognize
21651         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
21653 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
21655         PR target/89324
21656         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
21657         destination register in peepholes generating patterns for ADDS/SUBS.
21658         (add<mode>3_compare0,
21659         *addsi3_compare0_uxtw, add<mode>3_compareC,
21660         add<mode>3_compareV_imm, add<mode>3_compareV,
21661         *adds_<optab><ALLX:mode>_<GPI:mode>,
21662         *subs_<optab><ALLX:mode>_<GPI:mode>,
21663         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
21664         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
21665         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
21666         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
21667         sub<mode>3_compare1): Allow stack pointer for source register.
21668         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
21670 2019-02-22  Martin Sebor  <msebor@redhat.com>
21672         PR tree-optimization/88993
21673         PR tree-optimization/88853
21674         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
21675         New helper.
21676         (sprintf_dom_walker::call_info::is_string_func): New helper.
21677         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
21678         for formatted string functions.
21679         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
21681 2019-02-22  Martin Sebor  <msebor@redhat.com>
21683         PR c/89425
21684         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
21685         unreachable subexpressions.
21687 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
21688             Hongtao Liu  <hongtao.liu@intel.com>
21689             Sunil K Pandey  <sunil.k.pandey@intel.com>
21691         PR target/87007
21692         * config/i386/i386-passes.def: Add
21693         pass_remove_partial_avx_dependency.
21694         * config/i386/i386-protos.h
21695         (make_pass_remove_partial_avx_dependency): New.
21696         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
21697         New function.
21698         (pass_data_remove_partial_avx_dependency): New.
21699         (pass_remove_partial_avx_dependency): Likewise.
21700         (make_pass_remove_partial_avx_dependency): Likewise.
21701         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
21702         (*extendsfdf2): Add avx_partial_xmm_update.
21703         (truncdfsf2): Likewise.
21704         (*float<SWI48:mode><MODEF:mode>2): Likewise.
21705         (SF/DF conversion splitters): Disabled for TARGET_AVX.
21707 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
21709         PR middle-end/85598
21710         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
21711         analysis for pass.
21713 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
21715         PR target/89444
21716         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
21717         (PTA_SKYLAKE): Add PTA_AES.
21718         (PTA_GOLDMONT): Likewise.
21720 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
21722         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
21723         instruction if enabled.
21724         (aarch64_override_options): Remove reference to return address key.
21726 2019-02-22  Richard Biener  <rguenther@suse.de>
21728         PR tree-optimization/89440
21729         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
21730         not necessary assert.
21732 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
21734         PR fortran/72741
21735         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
21736         (oacc_replace_fn_attrib_attr): ... this new function.
21737         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
21738         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
21740 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21742         * config/arm/arm-cpus.in (ares): Rename to...
21743         (neoverse-n1): ... This.  Add ares as alias.
21744         * config/arm/arm-tables.opt: Regenerate.
21745         * config/arm/arm-tune.md: Likewise.
21746         * doc/invoke.txt (ARM Options): Document neoverse-n1.
21748 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21750         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
21751         * config/aarch64/aarch64-tune.md: Regenerate.
21752         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
21754 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
21756         * config/aarch64/aarch64.c (ares_tunings): Rename to...
21757         (neoversen1_tunings): ... This.
21758         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
21759         (neoverse-n1): New CPU.
21760         * config/aarch64/aarch64-tune.md: Regenerate.
21761         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
21763 2019-02-22  Richard Biener  <rguenther@suse.de>
21765         PR middle-end/87609
21766         * cfghooks.h (dependence_hash): New typedef.
21767         (struct copy_bb_data): New type.
21768         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
21769         (duplicate_block): Likewise.
21770         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
21771         (copy_bbs): Create and pass down copy_bb_data.
21772         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
21773         (rtl_duplicate_bb): Likewise.
21774         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
21775         remap dependence info.
21777 2019-02-22  Richard Biener  <rguenther@suse.de>
21779         PR tree-optimization/87609
21780         * tree-core.h (tree_base): Document special clique values.
21781         * tree-inline.c (remap_dependence_clique): Do not use the
21782         special clique value of one.
21783         (maybe_set_dependence_info): Use clique one.
21784         (clear_dependence_clique): New callback.
21785         (compute_dependence_clique): Clear clique one from all refs
21786         before assigning it (again).
21788 2019-02-21  Martin Sebor  <msebor@redhat.com>
21790         * doc/extend.texi (__clear_cache): Correct signature.
21792 2019-02-21  Ian Lance Taylor  <iant@golang.org>
21794         PR go/89170
21795         * varasm.c (decode_addr_const): Call lookup_constant_def rather
21796         than output_constant_def.
21797         (add_constant_to_table): New static function.
21798         (output_constant_def): Call add_constant_to_table.
21799         (tree_output_constant_def): Likewise.
21801 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
21803         PR c++/89285
21804         * builtins.c (fold_builtin_arith_overflow): If first two args are
21805         INTEGER_CSTs, set intres and ovfres to constants rather than calls
21806         to ifn.
21808 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
21810         PR target/87412
21811         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
21812         error for -mindirect-branch/-mfunction-return with incompatible
21813         -fcf-protection.
21815 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
21817         PR bootstrap/88714
21818         * constraints.md (q): Remove.
21819         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
21820         instead of q.
21822 2019-02-21  Martin Jambor  <mjambor@suse.cz>
21824         PR hsa/89302
21825         * omp-general.c (omp_extract_for_data): Removed a duplicate call
21826         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
21827         (omp_adjust_for_condition): ...here.  Added necessary parameters.
21828         * omp-general.h (omp_adjust_for_condition): Updated declaration.
21829         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
21830         proper values to new parameters of omp_adjust_for_condition.
21832 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
21834         PR middle-end/89412
21835         * expr.c (expand_assignment): If result is a MEM, use change_address
21836         instead of simplify_gen_subreg.
21838 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
21839             David Malcolm  <dmalcolm@redhat.com>
21841         PR middle-end/89091
21842         * fold-const.c (decode_field_reference): Return NULL_TREE if
21843         lang_hooks.types.type_for_size returns NULL.  Check it before
21844         overwriting *exp_.  Use return NULL_TREE instead of return 0.
21846 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
21848         PR middle-end/88074
21849         PR middle-end/89415
21850         * toplev.c (do_compile): Double the emin/emax exponents to workaround
21851         buggy mpc_norm.
21853 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21855         PR target/89397
21856         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
21857         TARGET_SSE in addition to TARGET_SSE_MATH.
21859         (ix86_excess_precision): Ditto.
21860         (ix86_float_exceptions_rounding_supported_p): Ditto.
21861         (use_rsqrt_p): Ditto.
21862         * config/i386/sse.md (rsqrt<mode>2): Ditto.
21864 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
21866         PR c/89410
21867         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
21868         linenum_arith_t when determining if two adjacent line spans are
21869         close enough to merge.
21870         (diagnostic_show_locus): Use linenum_arith_t when iterating over
21871         lines within each line_span.
21873 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
21875         PR target/86487
21876         * lra-constraints.c(uses_hard_regs_p): Fix handling of
21877         paradoxical SUBREGS.
21879 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
21881         PR target/88100
21882         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
21883         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
21884         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
21885         range checking it.
21887 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
21889         * config/gcn/gcn.c (print_operand): Fix typo.
21891 2019-02-19  Richard Biener  <rguenther@suse.de>
21893         PR middle-end/88074
21894         * toplev.c (do_compile): Initialize mpfr's exponent range
21895         based on available float modes.
21897 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
21899         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
21900         as long as the epilogue isn't completed.
21902 2019-02-18  Martin Sebor  <msebor@redhat.com>
21904         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
21905         __has_cpp_attribute, and __has_include.
21907 2019-02-18  Martin Sebor  <msebor@redhat.com>
21909         * doc/invoke.texi (-Wreturn-type): Correct and expand.
21911 2019-02-18  Martin Sebor  <msebor@redhat.com>
21913         PR middle-end/89294
21914         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
21915         expression.
21916         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
21918 2019-02-18  Richard Biener  <rguenther@suse.de>
21920         PR tree-optimization/89296
21921         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
21922         of no-warning flag to cases that might emit the bogus warning.
21924 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
21926         PR bootstrap/88714
21927         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
21928         "q" constraint.
21929         * config/arm/vfp.md (*movdi_vfp): Likewise.
21930         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
21931         "q" constraint for operands[0].
21933         PR target/89369
21934         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
21935         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
21936         pattern in a temporary buffer.
21937         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
21938         than 64-operands[2].
21940         PR target/89361
21941         * config/s390/s390.c (s390_indirect_branch_attrvalue,
21942         s390_indirect_branch_settings): Define unconditionally.
21943         (s390_set_current_function): Likewise, but guard the whole body except
21944         the s390_indirect_branch_settings call with
21945         #if S390_USE_TARGET_ATTRIBUTE.
21946         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
21948         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
21949         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
21950         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
21951         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
21952         HOST_WIDE_INT_1U instead of 1ULL.
21953         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
21954         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
21955         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
21956         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
21957         instead of 1UL.
21958         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
21959         instead of 1ul.
21961 2019-02-18  Martin Jambor  <mjambor@suse.cz>
21963         PR tree-optimization/89209
21964         * tree-sra.c (create_access_replacement): New optional parameter
21965         reg_tree.  Use it as a type if non-NULL and access type is not of
21966         a register type.
21967         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
21968         to create_access_replacement.
21969         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
21970         Check lacc is non-NULL before attempting to re-create it on the RHS.
21972 2019-02-18  Martin Liska  <mliska@suse.cz>
21974         PR ipa/89306
21975         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
21976         by default.
21977         (symbol_table::free_edge): Recycle m_summary_id.
21978         * cgraph.h (get_summary_id): New.
21979         (symbol_table::release_symbol): Set m_summary_id to -1
21980         by default.
21981         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
21982         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
21983         function_summary to fast_function_summary.
21984         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
21985         * ipa-pure-const.c (class funct_state_summary_t):
21986         Switch from function_summary to fast_function_summary.
21987         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
21988         (class ipa_ref_opt_summary_t): Switch from function_summary
21989         to fast_function_summary.
21990         * symbol-summary.h (class function_summary_base): New class
21991         that is created from base of former function_summary.
21992         (function_summary_base::unregister_hooks): New.
21993         (class function_summary): Inherit from function_summary_base.
21994         (class call_summary_base): New class
21995         that is created from base of former call_summary.
21996         (class call_summary): Inherit from call_summary_base.
21997         (struct is_same): New.
21998         (class fast_function_summary): New summary class.
21999         (class fast_call_summary): New summary class.
22000         * vec.h (vec_safe_grow_cleared): New function.
22002 2019-02-18  Martin Liska  <mliska@suse.cz>
22004         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
22005         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
22006         * doc/tm.texi: Document new target hook.
22007         * doc/tm.texi.in: Likewise.
22008         * target.def: Add new target macro.
22009         * gcc.c (find_fortran_preinclude_file): Do not search multilib
22010         suffixes.
22012 2019-02-17  Alan Modra  <amodra@gmail.com>
22014         PR target/89271
22015         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
22016         output reg on add insn.
22017         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
22019 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
22021         PR target/89372
22022         * config/i386/sse.md (ssedoublemode): Remove V4HI.
22023         (PMULHRSW): Likewise.
22024         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
22025         TARGET_AVX2.
22026         (ssse3_pmulhrswv4hi3): New expander.
22028 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
22030         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
22031         MMX.  Add isa attribute.
22033 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
22035         PR rtl-optimization/66152
22036         * builtins.h (c_readstr): Declare.
22037         * builtins.c (c_readstr): Remove forward declaration.  Add
22038         null_terminated_p argument, if false, read all bytes from the
22039         string instead of stopping after '\0'.
22040         * expr.c (string_cst_read_str): New function.
22041         (store_expr): Use string_cst_read_str instead of
22042         builtin_strncpy_read_str.  Try to store by pieces the whole
22043         exp_len first, and only if that fails, split it up into
22044         store by pieces followed by clear_storage.  Formatting fix.
22046         * config/i386/i386.md (*movqi_internal): Remove static from
22047         buf variable.  Use output_asm_insn (buf, operands); return "";
22048         instead of return buf;.
22049         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
22050         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
22051         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
22053 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
22055         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
22056         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
22057         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
22058         (CC1_SPEC): Likewise.
22059         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
22061 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
22063         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
22064         the base address on 64-bit strict-alignment platforms.
22066 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
22068         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
22070 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22072         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
22074 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
22076         PR rtl-optimization/88308
22077         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
22078         on copied instruction.
22080 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
22082         * final.c (insn_current_reference_address): Replace test on JUMP_P
22083         with test on jump_to_label_p.
22084         * config/visium/visium-passes.def: New file.
22085         * config/visium/t-visium (PASSES_EXTRA): Define.
22086         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
22087         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
22088         (TRAMPOLINE_ALIGNMENT): Define.
22089         * config/visium/visium.c (visium_option_override): Do not register
22090         the machine-specific reorg pass here.
22091         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
22092         for the GR6.
22093         (output_branch): Adjust threshold for long branch instruction.
22094         * config/visium/visium.md (cpu): Move around.
22095         (length): Adjust for the GR6.
22097 2019-02-15  Richard Biener  <rguenther@suse.de>
22098             Jakub Jelinek  <jakub@redhat.com>
22100         PR tree-optimization/89278
22101         * tree-loop-distribution.c: Include tree-eh.h.
22102         (generate_memset_builtin, generate_memcpy_builtin): Call
22103         rewrite_to_non_trapping_overflow on builtin->size before passing it
22104         to force_gimple_operand_gsi.
22106 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
22108         PR other/89342
22109         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
22110         optimize_debug.
22111         * opth-gen.awk: Likewise.
22113 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22115         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
22116         Enable MMX, SSE and SSE2 by default.
22117         * config/i386/i386.c (ix86_option_override_internal): Do not
22118         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
22120 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
22122         PR rtl-optimization/89354
22123         * combine.c (make_extraction): Punt if extraction_mode is narrower
22124         than len bits.
22126 2019-02-14  Maya Rashish  <coypu@sdf.org>
22128         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
22129         * config/netbsd-d.c: New file.
22130         * config/t-netbsd: Add netbsd-d.o
22132 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
22134         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
22135         affects_type_identity to true for aarch64_vector_pcs.
22136         (aarch64_comp_type_attributes): New function.
22137         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
22139 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
22141         PR target/88850
22142         * config/arm/iterators.md (ANY64): Add V4HF.
22144 2019-02-14  Martin Liska  <mliska@suse.cz>
22146         PR rtl-optimization/89242
22147         * dce.c (delete_unmarked_insns): Call free_dominance_info we
22148         process a transformation.
22150 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
22152         PR tree-optimization/89314
22153         * fold-const.c (fold_binary_loc): Cast strlen argument to
22154         const char * before dereferencing it.  Formatting fixes.
22156         PR middle-end/89284
22157         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
22159 2019-02-13  Ian Lance Taylor  <iant@golang.org>
22161         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
22162         and set current index for other optimizations.
22164 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22166         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
22167         nonimmediate_operand as operand 2 predicate.
22168         (vec_set<VF2_512_256:mode>_0): Ditto.
22169         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
22170         (*vec_concatv2si): Remove alternative 2.
22171         (*vec_concatv4si_0): Use vm constraint for alternative 0.
22172         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
22173         (vec_concatv2di): Split alternatives 4,5,6 to ...
22174         (*vec_concatv2di_0) ... new pattern.
22176 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
22178         PR target/89190
22179         * config/arm/arm.c (ldm_stm_operation_p) Set
22180         addr_reg_in_reglist correctly for first register.
22181         (load_multiple_sequence): Remove dead base check.
22182         (gen_ldm_seq): Correctly set write_back for Thumb-1.
22184 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
22186         PR target/88847
22187         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
22188         Expose as @aarch64_pred_mov.
22189         * config/aarch64/aarch64.c (aarch64_classify_address):
22190         Use expand_insn which legitimizes operands.
22192 2019-02-13  Martin Liska  <mliska@suse.cz>
22194         * builtins.h (expand_builtin_with_bounds): Remove declaration.
22195         * calls.c (struct arg_data): Remove special_slot, pointer_arg
22196         and pointer_offset fields.
22197         (initialize_argument_information): Remove usage of dead
22198         fields.
22199         * cgraph.h (struct cgraph_thunk_info): Remove
22200         add_pointer_bounds_args.
22201         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
22202         fields.
22203         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
22204         fields.
22205         * config/i386/i386.c (ix86_function_arg_advance): Remove
22206         unrelated comment.
22207         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
22208         (def_builtin): Remove usage of dead fields.
22209         (ix86_add_new_builtins): Likewise.
22210         * ipa-fnsummary.c (compute_fn_summary): Likewise.
22211         * ipa-icf.c (sem_function::equals_wpa): Likewise.
22212         (sem_function::init): Likewise.
22213         (sem_variable::merge): Likewise.
22214         * ipa-visibility.c (function_and_variable_visibility): Likewise.
22215         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
22216         * lto-cgraph.c (lto_output_node): Likewise.
22217         (lto_output_varpool_node): Likewise.
22218         (input_node): Likewise.
22219         (input_varpool_node): Likewise.
22220         * lto-streamer-out.c (lto_output): Likewise.
22221         * tree-inline.c (expand_call_inline): Remove usage of
22222         assign_stmts.
22223         * tree-inline.h (struct copy_body_data): Likewise.
22224         * varpool.c (varpool_node::dump): Likewise.
22226 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
22228         PR middle-end/89303
22229         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
22230         into pt->vars_contains_escaped_heap instead of setting
22231         pt->vars_contains_escaped_heap to it.
22233         PR middle-end/89281
22234         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
22235         INTVAL (size), compare it to GET_MODE_MASK instead of
22236         1 << GET_MODE_BITSIZE.
22238         PR target/89290
22239         * config/i386/predicates.md (x86_64_immediate_operand): Allow
22240         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
22241         -mcmodel=large.
22243 2019-02-13  Martin Liska  <mliska@suse.cz>
22245         PR lto/88858
22246         * cfgrtl.c (remove_barriers_from_footer): New function.
22247         (try_redirect_by_replacing_jump): Use it.
22248         (cfg_layout_redirect_edge_and_branch): Likewise.
22250 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
22252         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
22253         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
22254         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
22255         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
22256         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
22257         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
22258         New BU_CRYPTO_2.
22259         * config/rs6000/rs6000.c (builtin_function_type)
22260         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
22261         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
22262         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
22263         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
22264         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
22266 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
22268         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
22269         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
22271 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
22273         PR target/89229
22274         * config/i386/i386.md (*movoi_internal_avx): Revert revision
22275         268678 and revision 268657.
22276         (*movti_internal): Likewise.
22278 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
22280         PR target/89233
22281         * config/s390/s390.c (s390_decompose_address): Update comment.
22282         (s390_check_qrst_address): Reject invalid address forms after
22283         LRA.
22285 2019-02-12  Martin Liska  <mliska@suse.cz>
22287         PR lto/88876
22288         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
22289         we need default values of funct_state for a function that
22290         is not optimized.
22292 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
22294         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
22295         the object to pick the size of stores on strict-alignment platforms.
22297         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
22298         (*movdi_insn_sp32): Likewise.
22299         (*movdi_insn_sp64): Likewise.
22301 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
22303         PR lto/88677
22304         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
22305         types that needs constructiong.
22306         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
22308 2019-02-12  Richard Biener  <rguenther@suse.de>
22310         PR tree-optimization/89253
22311         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
22312         duplicate the loop.
22314 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
22316         PR lto/88147
22317         * input.c (selftest::test_line_offset_overflow): New selftest.
22318         (selftest::input_c_tests): Call it.
22320 2019-02-11  Martin Sebor  <msebor@redhat.com>
22322         PR tree-optimization/88771
22323         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
22324         when -Wstringop-overflow is set.
22325         (builtin_memref::builtin_memref): Adjust excessive upper bound
22326         only when lower bound is not excessive.
22327         (maybe_diag_overlap): Detect and diagnose excessive bounds via
22328         -Wstringop-ovefflow.
22329         (maybe_diag_offset_bounds): Rename...
22330         (maybe_diag_access_bounds): ...to this.
22331         (check_bounds_or_overlap): Adjust for name change above.
22333 2019-02-11  Martin Sebor  <msebor@redhat.com>
22335         PR c++/87996
22336         * builtins.c (max_object_size): Move from here...
22337         * builtins.h (max_object_size): ...and here...
22338         * tree.c (max_object_size): ...to here...
22339         * tree.h (max_object_size): ...and here.
22341 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
22343         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
22344         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
22345         for correct semantics.
22347 2019-02-11  Alan Modra  <amodra@gmail.com>
22349         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
22350         -mlongcall and -mpltseq.
22351         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
22352         (RS/6000 and PowerPC Options <-mpltseq>): Document.
22353         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
22354         * config/rs6000/sysv4.opt (mpltseq): New option.
22355         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
22356         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
22357         support is lacking.  Don't allow -mpltseq with -mbss-plt.
22358         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
22359         -mpltseq given for ELFv1.
22360         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
22361         Only use UNSPEC_PLTSEQ for inline PLT calls.
22362         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
22363         use UNSPEC_PLTSEQ for inline PLT calls.
22364         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
22365         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
22366         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
22367         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22368         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22369         (pltseq_mtctr_<mode>): Likewise.
22371 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
22373         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
22374         Solaris ld.
22375         * configure: Regenerate.
22377 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
22379         PR bootstrap/88714
22380         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
22381         instead of r.
22383 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
22385         * function.c (assign_parm_setup_block): Use the stored
22386         size, not the passed size, when allocating stack-space,
22387         also for a parameter with alignment larger than
22388         MAX_SUPPORTED_STACK_ALIGNMENT.
22390 2019-02-11  Martin Liska  <mliska@suse.cz>
22392         PR ipa/89009
22393         * ipa-cp.c (build_toporder_info): Remove usage of a param.
22394         * ipa-inline.c (inline_small_functions): Likewise.
22395         * ipa-pure-const.c (propagate_pure_const): Likewise.
22396         (propagate_nothrow): Likewise.
22397         * ipa-reference.c (propagate): Likewise.
22398         * ipa-utils.c (struct searchc_env): Remove unused field.
22399         (searchc): Always search across AVAIL_INTERPOSABLE.
22400         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
22401         the only called IPA pure const can properly not propagate
22402         across interposable boundary.
22403         * ipa-utils.h (ipa_reduced_postorder): Remove param.
22405 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
22407         * config/nds32/nds32.md (call_internal, call_value_internal,
22408         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
22410 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
22412         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
22413         typo.
22415 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
22417         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
22418         in comments
22420 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
22422         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
22424 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
22426         PR tree-optimization/89268
22427         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
22428         if preds is non-NULL.
22430 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
22432         PR lto/89272
22433         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
22434         polymorphic types.
22436 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
22438         * config/nds32/nds32.md (trap): New pattern.
22440 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
22442         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
22443         dwarf span.
22445 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
22447         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
22448         to split POST_INC.
22450 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
22452         * ipa-visibility.c (localize_node): Also do not localize
22453         LDPR_PREVAILING_DEF_IRONLY_EXP.
22455 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
22457         PR lto/87957
22458         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
22459         instead of type_with_linkage.
22461 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
22463         PR ipa/88755
22464         * params.def (uninlined-function-insns, uninlined-function-time,
22465         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
22466         bound so we don't get overflows.
22468 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
22470         * config/rs6000/rs6000-string.c (expand_compare_loop,
22471         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
22472         memcmp/strncmp.
22474 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
22476         PR middle-end/89246
22477         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22478         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
22479         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
22481 2019-02-09  Alan Modra  <amodra@gmail.com>
22483         PR target/88343
22484         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
22485         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
22486         setup.
22488 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
22490         PR middle-end/88560
22491         * lra-constraints.c (process_alt_operands): Don't increase reject
22492         for memory when offset memory is required.
22494 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
22496         * config/s390/vector.md: Implement vector copysign.
22498 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
22500         * expr.c (expand_constructor): Correct indentations.
22502 2019-02-08  Richard Biener  <rguenther@suse.de>
22504         PR tree-optimization/89247
22505         * tree-if-conv.c: Include tree-cfgcleanup.h.
22506         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
22507         (tree_if_conversion): Pass through predicate vector.
22508         (pass_if_conversion::execute): Do CFG cleanup and SSA update
22509         inline, see if any if-converted loops we refrece in
22510         LOOP_VECTORIZED calls vanished and fixup.
22511         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
22513 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
22515         * config/s390/constraints.md (jdd): New constraint.
22517 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
22519         PR target/89229
22520         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
22521         upper 16 vector registers without TARGET_AVX512VL.
22522         (*movti_internal): Likewise.
22524 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
22526         PR rtl-optimization/89234
22527         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
22528         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
22529         (copy_reg_eh_region_note_backward): Likewise.
22531 2019-02-08  Richard Biener  <rguenther@suse.de>
22533         PR middle-end/89223
22534         * tree-data-ref.c (initialize_matrix_A): Fail if constant
22535         doesn't fit in HWI.
22536         (analyze_subscript_affine_affine): Handle failure from
22537         initialize_matrix_A.
22539 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
22541         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
22542         cfun everywhere.
22544 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
22546         PR tree-optimization/86637
22547         PR tree-optimization/89235
22548         * tree-vect-loop.c (optimize_mask_stores): Add an
22549         auto_purge_vect_location sentinel to ensure that vect_location is
22550         purged on exit.
22551         * tree-vectorizer.c
22552         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
22553         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
22554         to ensure that vect_location is purged on exit.
22555         (pass_slp_vectorize::execute): Likewise, replacing the manual
22556         reset.
22557         * tree-vectorizer.h (class auto_purge_vect_location): New class.
22559 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22561         * config/aarch64/iterators.md (max_opp): New code_attr.
22562         (USMAX): New code iterator.
22563         * config/aarch64/predicates.md (aarch64_smin): New predicate.
22564         (aarch64_smax): Likewise.
22565         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
22566         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
22567         MINUS (MAX MIN).
22569 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
22571         PR target/89229
22572         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
22573         for TARGET_AVX512VL.
22574         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
22576 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
22578         * config/s390/s390-builtin-types.def: Add new types.
22579         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
22580         (s390_vec_xlw4): Make the memory operand into a const pointer.
22581         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
22582         float.
22583         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
22584         a new vector type with the alignment of the scalar memory operand.
22586 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
22587             Jakub Jelinek  <jakub@redhat.com>
22589         PR bootstrap/88714
22590         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
22591         arm_count_ldrdstrd_insns): New declarations.
22592         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
22593         MINUS.
22594         (valid_operands_ldrd_strd): New function.
22595         (arm_count_ldrdstrd_insns): New function.
22596         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
22597         sets instead of single DImode set and define new insns to match this.
22599 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
22601         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
22602         Make it a C initializer.
22604 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
22606         PR/target 88850
22607         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
22609 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22611         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
22612         Use neon_dot<q> for type.
22613         (neon_<sup>dot_lane<vsi2qi>): Likewise.
22615 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22617         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
22618         Use neon_dot<q> for type.
22619         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
22620         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
22622 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
22624         PR rtl-optimization/89225
22625         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
22626         sizes check.
22628 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
22630         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
22631         after restoring registers saved to allocate the frame on Windows.
22633 2019-02-06  Richard Biener  <rguenther@suse.de>
22635         PR tree-optimization/89182
22636         * graphite.h (cached_scalar_evolution_in_region): Declare.
22637         * graphite.c (struct seir_cache_key): New.
22638         (struct sese_scev_hash): Likewise.
22639         (seir_cache): New global.
22640         (cached_scalar_evolution_in_region): New function.
22641         (graphite_transform_loops): Allocate and release seir_cache.
22642         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
22643         cached_scalar_evolution_in_region.
22644         * graphite-scop-detection.c (scop_detection::can_represent_loop):
22645         Simplify.
22646         (scop_detection::graphite_can_represent_expr: Use
22647         cached_scalar_evolution_in_region.
22648         (scop_detection::stmt_simple_for_scop_p): Likewise.
22649         (find_params_in_bb): Likewise.
22650         (gather_bbs::before_dom_children): Likewise.
22651         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
22652         (add_loop_constraints): Likewise.
22654 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
22656         PR middle-end/89210
22657         * fold-const-call.c (fold_const_vec_convert): Pass true as last
22658         operand to new_unary_operation only if both element types are integral
22659         and it isn't a widening conversion.  Return NULL_TREE if
22660         new_unary_operation failed.
22662 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
22664         PR target/88856
22665         * config/s390/s390.md: Remove load and test FP splitter.
22667 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
22669         PR target/89112
22670         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
22671         expand_compare_loop, expand_block_compare_gpr,
22672         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
22673         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
22674         #include "profile-count.h" and "predict.h" for types and functions
22675         needed to work with REG_BR_PROB notes.
22677 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
22679         PR target/89112
22680         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
22681         for the long branch case.
22683 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
22685         PR target/89188
22686         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
22687         can throw, non-call exceptions are enabled and we can't delete
22688         dead exceptions or alter cfg.  Set must_clean if
22689         delete_insn_and_edges returns true, don't set it blindly for calls.
22690         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
22692         PR rtl-optimization/89195
22693         * combine.c (make_extraction): For MEMs, don't extract bytes outside
22694         of the original MEM.
22696 2019-02-05  Martin Liska  <mliska@suse.cz>
22698         PR gcov-profile/89000
22699         * gcov.c (function_summary): Remove argument.
22700         (file_summary): New function.
22701         (print_usage): Replace tabs with spaces.
22702         (generate_results): Use new function file_summary.
22704 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
22706         PR target/89186
22707         * optabs.c (prepare_cmp_insn): Pass x and y to
22708         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
22710 2019-02-05  Richard Biener  <rguenther@suse.de>
22712         PR middle-end/89150
22713         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
22714         (struct bitmap_element): Drop chain_prev so we properly recurse on
22715         the prev member, supporting tree views.
22716         (struct bitmap_head): GTY skip the obstack member.
22718 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
22720         PR c/88698
22721         * doc/extend.texi (Vector Extensions): Add an example of using vector
22722         types together with x86 intrinsics.
22724 2019-02-04  Alan Modra  <amodra@gmail.com>
22726         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
22727         str[] size to 160, and comment.
22729 2019-02-04  Alan Modra  <amodra@gmail.com>
22731         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
22732         (rs6000_pltseq_template): Guard output of TLS markers with
22733         TARGET_TLS_MARKERS.
22734         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
22735         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
22736         to use inline PLT sequences.
22737         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
22738         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
22739         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
22741 2019-02-04  Martin Liska  <mliska@suse.cz>
22743         PR ipa/88985
22744         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
22745         out when ipa_fn_summaries does not contain entry for callee.
22747 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
22749         * config/sparc/sparc.h: Remove superfluous blank lines.
22750         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
22751         (got_register_rtx): ...this.
22752         (sparc_got): Adjust to above renaming.
22753         (sparc_tls_got): Likewise.
22754         (sparc_delegitimize_address): Likewise.
22755         (sparc_output_mi_thunk): Likewise.
22756         (sparc_init_pic_reg): Likewise.
22757         (save_local_or_in_reg_p): Fix test on the GOT register.
22758         (USE_HIDDEN_LINKONCE): Move around.
22759         (get_pc_thunk_name): Likewise.
22760         (gen_load_pcrel_sym): Likewise.
22761         (load_got_register): Likewise.
22763 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
22765         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
22766         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
22768 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22770         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
22771         into consideration.
22773 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
22775         * config.gcc (with_nds32_lib, glibc):
22776         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
22777         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
22778         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
22780 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22782         PR target/89071
22783         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
22784         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
22785         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
22786         (*rcpsf2_sse): Ditto.
22787         (*rsqrtsf2_sse): Ditto.
22788         (sse4_1_round<mode<2): Ditto.
22790 2019-02-03  Richard Biener  <rguenther@suse.de>
22792         PR debug/87295
22793         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
22794         orig.
22796 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
22798         PR middle-end/87887
22799         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
22800         Punt with warning on aggregate return or argument types.  Ignore
22801         type/mode checking for uniform arguments.
22803 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
22805         * combine.c (try_combine): Do not print "Can't combine" messages unless
22806         printing failed combination attempts.
22808 2019-02-01  Martin Jambor  <mjambor@suse.cz>
22810         PR hsa/87863
22811         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
22812         segment and global segment variables before making them static.
22814 2019-02-01  Martin Jambor  <mjambor@suse.cz>
22816         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
22817         missed optimization dump with dump_enabled_p.
22819 2019-02-01  Richard Biener  <rguenther@suse.de>
22821         PR middle-end/88597
22822         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
22823         the instantiate cache.
22824         (instantiate_scev_binary): Elide second operand procesing
22825         if equal to the first.
22826         * tree-chrec.c (chrec_contains_symbols): Add visited set.
22827         (chrec_contains_undetermined): Likewise.
22828         (tree_contains_chrecs): Likewise.
22830 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
22832         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
22834 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
22836         PR tree-optimization/89143
22837         * wide-int-range.h (wide_int_range_absu): Declare.
22838         * wide-int-range.cc (wide_int_range_absu): New function.
22839         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
22841         PR tree-optimization/88107
22842         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
22843         instead of assertion that eh_region_outermost is non-NULL, if it
22844         is NULL, set *ALL to true and return NULL.
22845         (move_sese_region_to_fn): Adjust caller, if all is set, call
22846         duplicate_eh_regions with NULL region.
22848 2019-02-01  Richard Biener  <rguenth@suse.de>
22850         PR rtl-optimization/88593
22851         * mode-switching.c (optimize_mode_switching): Free dominators before
22852         calling cleanup_cfg.
22854 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
22856         PR tree-optimization/88932
22857         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
22859 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
22861         PR middle-end/89137
22862         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
22863         bogus clang warning.
22865 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22867         PR target/89071
22868         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
22869         alternative to avoid partial SSE register stall for TARGET_AVX.
22870         (truncdfsf2): Ditto.
22871         (sse4_1_round<mode>2): Ditto.
22873 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
22875         PR tree-optimization/89008
22876         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
22877         process anything of the form X * 0.
22879 2019-01-31  Richard Biener  <rguenther@suse.de>
22881         PR tree-optimization/89135
22882         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
22883         with abnormal preds.
22885 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
22887         PR sanitizer/89124
22888         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
22889         always_inline callees into no_sanitize_address callers.
22891 2019-01-31  Richard Biener  <rguenther@suse.de>
22893         PR rtl-optimization/89115
22894         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
22896 2019-01-30  Martin Sebor  <msebor@redhat.com>
22898         PR other/89106
22899         * doc/extend.texi (cast to a union): Correct and expand.
22901 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
22903         PR rtl-optimization/87246
22904         * lra-constraints.c (simplify_operand_subreg): Reload memory
22905         in subreg if the address became invalid.
22907 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
22909         PR target/87064
22910         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
22911         Disable for little-endian.
22913 2019-01-30  Richard Biener  <rguenther@suse.de>
22915         PR rtl-optimization/89115
22916         * opts.c (default_options_optimization): Reduce
22917         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
22918         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
22919         to the default.
22921 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
22923         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
22924         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
22925         type of vector element when vec_extract is implemented by direct
22926         move.
22928 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
22930         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
22932 2019-01-30  Richard Biener  <rguenther@suse.de>
22934         PR tree-optimization/89111
22935         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
22936         canonicalization to appropriately sized access types.
22938 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
22940         PR c++/89105
22941         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
22942         for arguments to functions that are TU-local and shouldn't be
22943         referenced by assembly.
22945 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
22947         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
22948         after '='.
22950 2019-01-29  Martin Sebor  <msebor@redhat.com>
22952         PR c/88956
22953         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
22955 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
22957         PR c++/66676
22958         PR ipa/89104
22959         * omp-simd-clone.c (simd_clone_clauses_extract)
22960         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
22961         OMP_CLAUSE_ALIGNED_ALIGNMENT.
22963 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
22965         * config.gcc: Force .init_array for ARC.
22967 2019-01-29  Richard Biener  <rguenther@suse.de>
22969         PR debug/87295
22970         * dwarf2out.c (collect_skeleton_dies): New helper.
22971         (copy_decls_for_unworthy_types): Call it.
22972         (build_abbrev_table): Assert we do not try to replace
22973         DW_AT_signature refs with local refs.
22975 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
22977         PR middle-end/89002
22978         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
22979         for lastprivate/linear IV, push gimplify context around gimplify_assign
22980         and, if it needed any temporaries, pop it into a gimple bind around the
22981         sequence.
22983 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22985         * common.opt (-Wattribute-alias): Remove "no-" from name.
22986         Make -Wattribute-alias command line option and
22987         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
22989 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
22991         PR target/89073
22992         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
22993         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
22994         x86 ISA options.
22995         (bmi2): Add missing @opindex.
22996         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
22997         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
22998         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
22999         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
23000         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
23001         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
23002         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
23003         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
23004         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
23005         xsavec, xsaveopt and xsaves options.
23007 2019-01-28  Richard Biener  <rguenther@suse.de>
23009         PR debug/89076
23010         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
23011         support removal.
23013 2019-01-28  Richard Biener  <rguenther@suse.de>
23015         PR tree-optimization/88739
23016         * tree-cfg.c (verify_types_in_gimple_reference): Verify
23017         BIT_FIELD_REFs only are applied to mode-precision operands
23018         when they are integral.
23019         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
23020         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
23021         BIT_FIELD_REFs of non-mode-precision integral operands.
23023 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
23025         PR target/87214
23026         * config/i386/sse.md
23027         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
23028         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
23029         first constants in pairs are multiples of 2.  Formatting fixes.
23030         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
23031         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
23032         first constants in each quadruple are multiples of 4.  Formatting fixes.
23034 2019-01-26  Martin Jambor  <mjambor@suse.cz>
23036         PR ipa/88933
23037         * tree-inline.c: Include tree-cfgcleanup.h.
23038         (delete_unreachable_blocks_update_callgraph): Move...
23039         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
23040         ...here, make externally visible, make second argument bool, adjust
23041         all callers.
23042         * tree-cfgcleanup.c: Include cgraph.h.
23043         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
23044         Declare.
23045         * ipa-prop.c: Include tree-cfgcleanup.h.
23046         (ipcp_transform_function): Call
23047         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
23049 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
23051         PR rtl-optimization/88846
23052         * ira.c (process_set_for_memref_referenced_p): New.
23053         (memref_referenced_p): Add new param.  Use
23054         process_set_for_memref_referenced_p.  Add new switch cases.
23055         (memref_used_between_p): Pass new arg to memref_referenced_p.
23057 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
23059         PR target/88469
23060         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
23061         argument ABI_BREAK.  Set to true if the calculated alignment has
23062         changed in gcc-9.  Check bit-fields for their base type alignment.
23063         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
23064         (aarch64_function_arg_boundary): Likewise.
23065         (aarch64_gimplify_va_arg_expr): Likewise.
23067 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
23069         PR middle-end/89037
23070         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
23071         instead of accessing TREE_INT_CST_ELT directly.
23073 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
23075         * doc/sourcebuild.texi (Environment attributes): Add fenv and
23076         fenv_exceptions description.
23078 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
23080         PR rtl-optimization/87763
23081         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
23082         Allow SUBREG when matching CC_NZmode compare.
23084 2019-01-25  Richard Biener  <rguenther@suse.de>
23086         PR tree-optimization/89049
23087         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
23088         Look at the pattern stmt to determine if the stmt is vectorized.
23090 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
23092         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
23093         (pred_mov<mode>): Handle all-register forms using both a new
23094         alternative and a split.
23096 2019-01-25  Richard Biener  <rguenther@suse.de>
23098         PR tree-optimization/86865
23099         * graphite-scop-detection.c (scop_detection::can_represent_loop):
23100         Reject non-do-while loops.
23102 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
23104         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
23105         * config/rs6000/constraints.md (Q constraint): Use REG_P.
23106         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
23107         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
23108         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
23109         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23110         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
23111         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
23112         vlogical_operand, gpc_reg_operand, int_reg_operand,
23113         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
23114         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
23115         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
23116         (save_world_operation, restore_world_operation, lmw_operation,
23117         stmw_operation): Use MEM_P and REG_P.
23118         (tie_operand): Use MEM_P.
23119         (vrsave_operation, crsave_operation): Use REG_P.
23120         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
23121         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
23122         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
23123         (call_operand): Use HARD_REGISTER_P.
23124         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
23125         Use CONST_INT_P.
23126         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
23127         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
23128         quad_aligned_load_p, replace_swapped_aligned_store,
23129         recombine_lvx_pattern, replace_swapped_aligned_load,
23130         recombine_stvx_pattern): Use MEM_P.
23131         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
23132         Use MEM_P and SYMBOL_REF_P.
23133         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
23134         (insn_is_swappable_p): Use REG_P and MEM_P.
23135         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
23136         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
23137         Use CONST_INT_P.
23138         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
23139         Use CONST_DOUBLE_P.
23140         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
23141         CONST_WIDE_INT_P.
23142         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
23143         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
23144         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
23145         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
23146         reg_or_subregno:
23147         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
23148         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
23149         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
23150         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
23151         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
23152         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
23153         rs6000_split_logical_di): Use CONST_INT_P.
23154         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
23155         REG_P and SYMBOL_REF_P.
23156         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
23157         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
23158         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
23159         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
23160         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
23161         (small_data_operand, print_operand_address): Use CONST_INT_P and
23162         SYMBOL_REF_P.
23163         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
23164         (rs6000_init_hard_regno_mode_ok, direct_move_p):
23165         Use HARD_REGISTER_NUM_P.
23166         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
23167         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
23168         SUBREG_P and SYMBOL_REF_P.
23169         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
23170         and HARD_REGISTER_NUM_P.
23171         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
23172         reg_or_subregno.
23173         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
23174         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
23175         MEM_P and REG_P.
23176         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
23177         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
23178         find_addr_reg): Use REG_P.
23179         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
23180         (rs6000_emit_le_vsx_move): Use SUBREG_P.
23181         (offsettable_ok_by_alignment, constant_pool_expr_p,
23182         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
23183         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
23184         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
23185         rs6000_assemble_integer, create_TOC_reference,
23186         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
23187         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
23188         (rs6000_split_vec_extract_var): Use reg_or_subregno.
23189         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
23190         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
23191         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23192         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
23193         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
23194         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
23195         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
23196         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
23197         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
23198         and cbranch<mode>4): Use CONST_INT_P.
23199         (multiple define_splits): Use REG_P and SUBREG_P.
23200         (define_expands call, call_value): Use MEM_P.
23201         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
23202         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
23203         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
23204         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
23205         and HARD_REGISTER_NUM_P.
23206         (multiple define_splits): Use HARD_REGISTER_NUM_P.
23208 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23210         PR rtl-optimization/88948
23211         * rtl.h (prepare_copy_insn): New prototype.
23212         * gcse.c (prepare_copy_insn): New function, split out from
23213         process_insert_insn.
23214         (process_insert_insn): Use prepare_copy_insn.
23215         * store-motion.c (replace_store_insn): Use prepare_copy_insn
23216         instead of gen_move_insn.
23218 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
23220         PR debug/89006
23221         * config/i386/i386.c (ix86_pic_register_p): Return true for
23222         UNSPEC_SET_GOT too.
23224         PR tree-optimization/88964
23225         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
23226         punt if HONOR_SNANS (chrec).
23228         PR middle-end/89015
23229         * tree-nested.c (convert_nonlocal_reference_stmt,
23230         convert_local_reference_stmt, convert_tramp_reference_stmt,
23231         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
23232         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
23233         or GIMPLE_OMP_TASK.
23235         PR tree-optimization/89027
23236         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
23237         for "omp simd array" variables.
23239 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
23241         PR target/88469
23242         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
23243         force the alignment of m_val.
23245 2019-01-24  Richard Biener  <rguenther@suse.de>
23247         PR lto/87187
23248         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
23249         When in "legacy" debug mode make sure to reset self-origins.
23251 2019-01-24  Martin Liska  <mliska@suse.cz>
23253         PR gcov-profile/88994
23254         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
23255         result will be always smaller or equal to the original.
23256         * gcov.c (mangle_name): Fix else branch where we should
23257         also copy to PTR and shift the pointer.
23259 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
23261         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
23262         * vr-values.c (find_case_label_ranges): Fix a comment typo.
23264 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
23266         * common/config/i386/i386-common.c
23267         (OPTION_MASK_ISA_ENQCMD_SET,
23268         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
23269         (ix86_handle_option): Handle -menqcmd.
23270         * config.gcc (enqcmdintrin.h): New header file.
23271         * config/i386/cpuid.h (bit_ENQCMD): New bit.
23272         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
23273         -menqcmd.
23274         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
23275         function type.
23276         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
23277         __builtin_ia32_enqcmds): New builtins.
23278         * config/i386/i386-c.c (__ENQCMD__): New macro.
23279         * config/i386/i386-option.c (ix86_target_string): Add
23280         -menqcmd.
23281         (ix86_valid_target_attribute_inner_p): Likewise.
23282         * config/i386/i386-expand.c
23283         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
23284         IX86_BUILTIN_ENQCMDS.
23285         * config/i386/i386.h (TARGET_ENQCMD): New.
23286         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
23287         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
23288         (movdir64b_<mode>): Parameterize to enable share expansion code
23289         with ENQCMD in function ix86_expand_builtin.
23290         * config/i386/i386.opt: Add -menqcmd.
23291         * config/i386/immintrin.h: Include enqcmdintrin.h.
23292         * config/i386/enqcmdintrin.h: New intrinsic file.
23293         * doc/invoke.texi: Add -menqcmd.
23295 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
23296             Steve Ellcey  <sellcey@marvell.com>
23298         PR target/85711
23299         * recog.c (address_operand): Return false on wrong mode for address.
23300         (constrain_operands): Check for mode with 'p' constraint.
23302 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23304         PR target/88998
23305         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
23306         Disparage MMX alternative.
23307         (sse2_cvtpd2pi): Ditto.
23308         (sse2_cvttpd2pi): Ditto.
23310 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
23312         PR driver/89014
23313         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
23314         use-after-free of the result of
23315         aarch64_get_extension_string_for_isa_flags.
23317 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
23319         PR c/44715
23320         * doc/extend.texi: Document break and continue behavior in
23321         statement expressions.
23323 2019-01-23  Richard Biener  <rguenther@suse.de>
23325         PR tree-optimization/89008
23326         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
23327         not leave another stray operand.
23329 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
23331         * BASE-VER: Bump to 9.0.1.
23333 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
23335         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
23336         thunk that returns by reference, use the type of the return object
23337         of the thunk instead of that of the alias to build the dereference.
23339 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
23341         * config/arc/atomic.md: Add operand to DMB instruction.
23343 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
23345         PR tree-optimization/88964
23346         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
23347         build_zero_cst instead of build_int_cst.  Return false for loop
23348         invariants which honor signed zeros.
23350 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
23352         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
23354 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
23356         PR target/88965
23357         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
23358         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
23359         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
23361         PR middle-end/88968
23362         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
23363         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
23365         PR target/87064
23366         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
23367         Disable for little endian.
23369 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
23371         PR target/88469
23372         * config/arm/arm.c (arm_needs_double_word_align): Check
23373         DECL_BIT_FIELD_TYPE.
23375 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
23376             H.J. Lu  <hongjiu.lu@intel.com>
23378         PR target/88909
23379         * config/i386/i386-builtin.def: Add mask2 to all builtin
23380         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
23381         SPECIAL_ARGS.
23382         * config/i386/i386.c (BDESC): Add mask2 to the definition.
23383         (BDESC_FIRST): Likewise.
23384         (define_builtin): Add an argument for mask2.  Updated to handle
23385         both ix86_isa_flags and ix86_isa_flags2.
23386         (define_builtin_const): Likewise.
23387         (define_builtin_pure): Likewise.
23388         (define_builtin2): Deleted.
23389         (define_builtin_const2): Likewise.
23390         (builtin_description): Add a member, mask2.
23391         (bdesc_*): Add mask2 to builtin initializations.
23392         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
23393         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
23394         support.
23395         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
23397 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
23399         PR target/88954
23400         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
23401         noplt attribute.
23403 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
23405         PR target/88469
23406         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
23407         alignment is dominated by a bitfield with 64-bit aligned base type.
23408         (arm_function_arg): Emit a warning if the alignment has changed since
23409         earlier GCC releases.
23410         (arm_function_arg_boundary): Likewise.
23411         (arm_setup_incoming_varargs): Likewise.
23413 2019-01-22  Richard Biener  <rguenther@suse.de>
23415         PR tree-optimization/88862
23416         * graphite-scop-detection.c
23417         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
23419 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
23421         * doc/extend.tex (AMD GCN Function Attributes): New section.
23422         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
23423         * doc/invoke.texi (AMD GCN Options): New section.
23424         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
23426 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
23428         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
23429         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
23431 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
23433         PR tree-optimization/88044
23434         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
23435         is false in the first iteration, but !every_iteration, return false
23436         instead of true with niter->niter zero.
23438         PR rtl-optimization/88904
23439         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
23440         any nonequal registers before processing BB_END (b).
23442         PR target/88905
23443         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
23444         GET_MODE (op0).
23445         (expand_binop_directly, expand_doubleword_clz,
23446         expand_doubleword_popcount, expand_ctz, expand_ffs,
23447         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
23449         PR rtl-optimization/49429
23450         PR target/49454
23451         PR rtl-optimization/86334
23452         PR target/88906
23453         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
23454         addressable from here...
23455         (emit_block_op_via_libcall): ... to here.
23457 2019-01-22  Richard Biener  <rguenther@suse.de>
23459         * tree-vect-loop.c (vect_analyze_loop_operations): Use
23460         auto_vec for cost vector to fix memleak.
23461         (vectorize_fold_left_reduction): Properly gather SLP defs.
23462         (vectorizable_comparison): Do not swap operands to properly
23463         gather SLP defs.
23465 2019-01-22  Alan Modra  <amodra@gmail.com>
23467         PR target/88614
23468         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
23469         stays a reg.  Allow a const_int.
23470         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
23471         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
23472         (IS_NOMARK_TLSGETADDR): Define.
23473         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
23474         (rs6000_output_tlsargs): New function.
23475         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
23476         __tls_get_addr call takes an arg.
23477         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
23478         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
23479         delete split..
23480         (call_value_nonlocal_sysv): ..or here, delete split.
23481         (tls_gdld_nomark): Delete.
23482         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
23483         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
23484         (call_value_nonlocal_sysv): Likewise.
23485         (call_value_nonlocal_sysv_secure): Likewise.
23486         (call_value_nonlocal_aix): Likewise.
23487         (call_value_indirect_aix): Likewise.
23488         (call_value_indirect_elfv2): Likewise.
23489         (call_value_local32, call_value_local64): Disable for no-mark tls.
23490         (call_value_local_aix): Likewise.
23492 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23494         PR target/88938
23495         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
23496         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
23498 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
23500         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
23501         string contents as hash_map keys.
23503 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
23505         PR c/88928
23506         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
23507         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
23508         instead of TYPE_ALIGN.
23509         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
23510         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
23511         pointer from TYPE_STUB_DECL.
23513 2019-01-21  Richard Biener  <rguenther@suse.de>
23515         PR tree-optimization/88934
23516         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
23517         at the possibly non-constant operand.
23518         (vect_get_constant_vectors): Adjust.
23520 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
23522         PR target/71659
23523         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
23524         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
23525         instead of _X86INTRIN_H_INCLUDED.
23526         * onfig/i386/clwbintrin.h: Likewise.
23527         * config/i386/pkuintrin.h: Likewise.
23528         * config/i386/prfchwintrin.h: Likewise.
23529         * config/i386/rdseedintrin.h: Likewise.
23530         * config/i386/wbnoinvdintrin.h: Likewise.
23531         * config/i386/xsavecintrin.h: Likewise.
23532         * config/i386/xsavesintrin.h: Likewise.
23533         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
23534         * config/i386/xsaveintrin.h: Likewise.
23535         * config/i386/xsaveoptintrin.h: Likewise.
23536         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
23537         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
23538         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
23539         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
23540         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
23541         * config/i386/immintrin.h: Here.
23543 2019-01-20  Martin Jambor  <mjambor@suse.cz>
23545         PR ipa/87615
23546         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
23547         with aa_walk_budget.
23548         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
23549         aa_walk_budget_p parameter.
23550         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
23551         walk.  Updated all callers.
23552         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
23553         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
23554         unmodified_parm.
23555         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
23556         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
23557         and to unmodified_parm.
23558         (phi_result_unknown_predicate): New parameter fbi, removed parameter
23559         info, updated call to will_be_nonconstant_expr_predicate.
23560         (param_change_prob): New parameter fbi, limit AA walking.
23561         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
23562         calls to various above functions.
23563         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
23564         parameter.  Use it to limit AA walking.
23565         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
23566         fbi, limit AA walk.
23567         (detect_type_change): New parameter fbi, pass it on to
23568         detect_type_change_from_memory_writes.
23569         (detect_type_change_ssa): Likewise.
23570         (aa_overwalked): Removed.
23571         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
23572         accordingly, adjust to the neew AA limiting scheme.
23573         (parm_ref_data_preserved_p): Likewise.
23574         (ipa_compute_jump_functions_for_edge): Adjust call to
23575         get_dynamic_type.
23576         (ipa_analyze_call_uses): Likewise.
23577         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
23578         (ipa_analyze_node): Initialize aa_walk_budget.
23579         (ipcp_transform_function): Likewise.
23580         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
23581         to get_dynamic_type.
23583 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
23585         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
23586         outside of #if CHECKING_P code.
23588 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
23590         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
23591         New function, split out from...
23592         (loop_versioning::analyze_stride): ...here.
23593         (loop_versioning::find_per_loop_multiplication): Use gassign.
23594         (loop_versioning::analyze_term_using_scevs): Return a success code.
23595         (loop_versioning::analyze_arbitrary_term): New function.
23596         (loop_versioning::analyze_address_fragment): Use
23597         analyze_arbitrary_term if all else fails.
23599 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
23601         PR target/88892
23602         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
23603         operands.
23605 2019-01-18  Richard Biener  <rguenther@suse.de>
23607         PR tree-optimization/88903
23608         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
23609         scalar stmts a SLP shift amount is composed of when detecting
23610         shifts by scalars.
23612 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
23614         PR target/88799
23615         * config/arm/arm-cpus.in (mp): New feature.
23616         (sec): New feature.
23617         (fgroup ARMv7ve): Add mp and sec features.
23618         (arch armv7-a): Add options to allow mp and sec extensions.
23619         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
23620         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
23621         extenstions to the base architecture.
23622         (cpu cortex-a8): Add sec extension to the base architecture.
23623         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
23624         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
23625         variants down to the base v7-a varaint.
23626         * config/arm/t-multilib (v7_a_arch_variants): New variable.
23627         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
23628         of permitted extensions for -march=armv7-a and for
23629         -mcpu=generic-armv7-a.
23631 2019-01-18  Martin Liska  <mliska@suse.cz>
23633         * params.def: Fix comment.
23634         * tree-profile.c (gimple_init_gcov_profiler): Bump function
23635         name.
23636         (gimple_gen_ic_func_profiler): Likewise.
23638 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
23640         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
23641         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
23642         and put in error checks for stack protector guard options.
23643         (aarch64_stack_protect_guard): New.
23644         (TARGET_STACK_PROTECT_GUARD): Define.
23645         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
23646         (reg_stack_protect_address<mode>): New.
23647         (stack_protect_set): Adjust for SSP_GLOBAL.
23648         (stack_protect_test): Likewise.
23649         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
23650         (-mstack-protector-guard): Likewise.
23651         (-mstack-protector-guard-offset): Likewise.
23653 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
23655         PR tree-optimization/86214
23656         * tree-inline.h (struct copy_body_data): Add
23657         add_clobbers_to_eh_landing_pads member.
23658         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
23659         (copy_edges_for_bb): Call it if EH edge destination is <
23660         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
23661         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
23662         if flag_stack_reuse != SR_NONE and clear it afterwards.
23664 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
23666         PR target/85596
23667         * doc/install.texi (with-multilib-list): Document for aarch64.
23669 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
23671         PR target/88734
23672         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
23673         (("..."))) with ("...").
23675 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
23677         * doc/extend.texi (Built-in Functions for Memory Model Aware
23678         Atomic Operations): Document atomic fetch and nand.
23680 2019-01-18  Martin Liska  <mliska@suse.cz>
23681             Richard Biener  <rguenther@suse.de>
23683         PR middle-end/88587
23684         * cgraph.h (create_version_clone_with_body): Add new argument
23685         with attributes.
23686         * cgraphclones.c (cgraph_node::create_version_clone): Add
23687         DECL_ATTRIBUTES to a newly created decl.  And call
23688         valid_attribute_p so that proper cl_target_optimization_node
23689         is set for the newly created declaration.
23690         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
23691         for declaration.
23692         (expand_target_clones): Do not call valid_attribute_p, it must
23693         be already done.
23694         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
23695         vector types.
23697 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
23699         PR target/88734
23700         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
23701         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
23702         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
23704 2019-01-17  Martin Sebor  <msebor@redhat.com>
23706         PR middle-end/88273
23707         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
23708         Handle anti-ranges the same as no range at all.
23710 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
23712         * config/aarch64/aarch64.c (cgraph.h): New include.
23713         (intl.h): New include.
23714         (supported_simd_type): New function.
23715         (currently_supported_simd_type): Ditto.
23716         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
23717         (aarch64_simd_clone_adjust): Ditto.
23718         (aarch64_simd_clone_usable): Ditto.
23719         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
23720         (TARGET_SIMD_CLONE_ADJUST): Ditto.
23721         (TARGET_SIMD_CLONE_USABLE): Ditto.
23722         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
23723         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
23724         call.
23726 2019-01-17  Martin Sebor  <msebor@redhat.com>
23728         PR tree-optimization/88800
23729         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
23730         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
23731         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
23732         redundant argument.  Add new argument and issue diagnostics under
23733         its control.  Detect out-of-bounds access even with warnings
23734         disabled.
23735         (check_bounds_or_overlap): Change return type.  Add argument.
23736         (wrestrict_dom_walker::check_call): Adjust.
23737         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
23738         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
23739         check_bounds_or_overlap's return value.
23740         (handle_builtin_stxncpy): Same.
23741         (handle_builtin_strcat): Same.
23743 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23744             Kwok Cheung Yeung  <kcy@codesourcery.com>
23745             Julian Brown  <julian@codesourcery.com>
23746             Tom de Vries  <tom@codesourcery.com>
23748         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
23750 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23752         * doc/sourcebuild.texi: Document dg-require-effective-target
23753         llvm_binutils and offload_gcn.
23755 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23756             Kwok Cheung Yeung  <kcy@codesourcery.com>
23757             Julian Brown  <julian@codesourcery.com>
23758             Tom de Vries  <tom@codesourcery.com>
23760         * doc/sourcebuild.texi: Document dg-required-effective-target
23761         exceptions.
23763 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23764             Kwok Cheung Yeung  <kcy@codesourcery.com>
23765             Julian Brown  <julian@codesourcery.com>
23766             Tom de Vries  <tom@codesourcery.com>
23767             Jan Hubicka  <hubicka@ucw.cz>
23768             Martin Jambor  <mjambor@suse.cz>
23770         * config.gcc: Add amdgcn*-*-amdhsa configuration.
23771         * configure.ac: Check for dlopen.
23772         * configure: Regenerate.
23774 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23775             Kwok Cheung Yeung  <kcy@codesourcery.com>
23776             Julian Brown  <julian@codesourcery.com>
23777             Tom de Vries  <tom@codesourcery.com>
23778             Jan Hubicka  <hubicka@ucw.cz>
23779             Martin Jambor  <mjambor@suse.cz>
23781         * common/config/gcn/gcn-common.c: New file.
23782         * config/gcn/driver-gcn.c: New file.
23783         * config/gcn/gcn-builtins.def: New file.
23784         * config/gcn/gcn-hsa.h: New file.
23785         * config/gcn/gcn-modes.def: New file.
23786         * config/gcn/gcn-opts.h: New file.
23787         * config/gcn/gcn-passes.def: New file.
23788         * config/gcn/gcn-protos.h: New file.
23789         * config/gcn/gcn-run.c: New file.
23790         * config/gcn/gcn-tree.c: New file.
23791         * config/gcn/gcn.c: New file.
23792         * config/gcn/gcn.h: New file.
23793         * config/gcn/gcn.opt: New file.
23794         * config/gcn/t-gcn-hsa: New file.
23796 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
23797             Kwok Cheung Yeung  <kcy@codesourcery.com>
23798             Julian Brown  <julian@codesourcery.com>
23799             Tom de Vries  <tom@codesourcery.com>
23800             Jan Hubicka  <hubicka@ucw.cz>
23801             Martin Jambor  <mjambor@suse.cz>
23803         * config/gcn/constraints.md: New file.
23804         * config/gcn/gcn-valu.md: New file.
23805         * config/gcn/gcn.md: New file.
23806         * config/gcn/predicates.md: New file.
23808 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
23810         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
23811         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
23812         (stmt_uses_0_or_null_in_undefined_way): Likewise.
23813         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
23815 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
23817         PR target/88851
23818         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
23819         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
23820         it and document registers.
23822 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23824         * config/aarch64/aarch64.c (ares_tunings): Define.
23825         * config/aarch64/aarch64-cores.def (ares): Use the above.
23827 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
23829         PR target/88794
23830         Revert:
23831         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
23833         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
23834         (_mm512_fixupimm_round_pd): Update parameters and builtin.
23835         (_mm512_maskz_fixupimm_round_pd): Ditto.
23836         (_mm512_fixupimm_round_ps): Ditto.
23837         (_mm512_maskz_fixupimm_round_ps): Ditto.
23838         (_mm_fixupimm_round_sd): Ditto.
23839         (_mm_maskz_fixupimm_round_sd): Ditto.
23840         (_mm_fixupimm_round_ss): Ditto.
23841         (_mm_maskz_fixupimm_round_ss): Ditto.
23842         (_mm512_fixupimm_pd): Ditto.
23843         (_mm512_maskz_fixupimm_pd): Ditto.
23844         (_mm512_fixupimm_ps): Ditto.
23845         (_mm512_maskz_fixupimm_ps): Ditto.
23846         (_mm_fixupimm_sd): Ditto.
23847         (_mm_maskz_fixupimm_sd): Ditto.
23848         (_mm_fixupimm_ss): Ditto.
23849         (_mm_maskz_fixupimm_ss): Ditto.
23850         (_mm512_mask_fixupimm_round_pd): Update builtin.
23851         (_mm512_mask_fixupimm_round_ps): Ditto.
23852         (_mm_mask_fixupimm_round_sd): Ditto.
23853         (_mm_mask_fixupimm_round_ss): Ditto.
23854         (_mm512_mask_fixupimm_pd): Ditto.
23855         (_mm512_mask_fixupimm_ps): Ditto.
23856         (_mm_mask_fixupimm_sd): Ditto.
23857         (_mm_mask_fixupimm_ss): Ditto.
23858         * config/i386/avx512vlintrin.h:
23859         (_mm256_fixupimm_pd): Update parameters and builtin.
23860         (_mm256_maskz_fixupimm_pd): Ditto.
23861         (_mm256_fixupimm_ps): Ditto.
23862         (_mm256_maskz_fixupimm_ps): Ditto.
23863         (_mm_fixupimm_pd): Ditto.
23864         (_mm_maskz_fixupimm_pd): Ditto.
23865         (_mm_fixupimm_ps): Ditto.
23866         (_mm_maskz_fixupimm_ps): Ditto.
23867         (_mm256_mask_fixupimm_pd): Update builtin.
23868         (_mm256_mask_fixupimm_ps): Ditto.
23869         (_mm_mask_fixupimm_pd): Ditto.
23870         (_mm_mask_fixupimm_ps): Ditto.
23871         * config/i386/i386-builtin-types.def: Add new types and remove
23872         useless ones.
23873         * config/i386/i386-builtin.def: Update builtin definitions.
23874         * config/i386/i386.c: Handle new builtin types and remove useless ones.
23875         * config/i386/sse.md: Update VFIXUPIMM* patterns.
23876         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23877         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23878         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
23879         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23880         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23881         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
23882         * config/i386/subst.md:
23883         (round_saeonly_sd_mask_operand4): Add new subst_attr.
23884         (round_saeonly_sd_mask_op4): Ditto.
23885         (round_saeonly_expand_operand5): Ditto.
23886         (round_saeonly_expand): Update.
23888 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
23890         PR target/88794
23891         Revert:
23892         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
23894         * config/i386/sse.md: Combine VFIXUPIMM* patterns
23895         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23896         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23897         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
23898         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
23899         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
23900         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
23902 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
23904         PR target/88794
23905         Revert:
23906         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
23908         PR target/88489
23909         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
23910         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
23911         instead of UNSPEC_FIXUPIMM.
23913 2019-01-17  Richard Biener  <rguenther@suse.de>
23915         PR lto/86736
23916         * dwarf2out.c (want_pubnames): Never generate pubnames sections
23917         and friends for the LTO part of debug info.
23919 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
23921         PR tree-optimization/86214
23922         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
23923         if x == y.
23925         PR rtl-optimization/88870
23926         * dce.c (deletable_insn_p): Never delete const/pure calls that can
23927         throw if we can't alter the cfg or delete dead exceptions.
23928         (mark_insn): Don't call find_call_stack_args for such calls.
23930 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
23932         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
23933         prototypes for vec_st.
23934         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
23935         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
23936         mainly on signed/unsigned long long and double.
23938 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
23940         PR target/88861
23941         * combine.c (delete_noop_moves): Convert to "bool" return,
23942         returning true if any edges are eliminated.
23943         (combine_instructions): Also return true if delete_noop_moves
23944         returns true.
23946 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
23948         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
23949         correct max nunits for endian swap.
23950         (aarch64_expand_fcmla_builtin): Correct subreg code.
23951         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
23952         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
23953         lane endianness.
23955 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23957         * config/alpha/alpha.c (alpha_gimplify_va_arg):
23958         Handle split indirect COMPLEX_TYPE arguments.
23960 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
23962         PR target/86891
23963         * config/aarch64/aarch64-modes.def: Add comment about how the carry
23964         bit is set by add and compare.
23965         (CC_ADC): New CC_MODE.
23966         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
23967         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
23968         comparison.  Add detection for CC_ADCmode.
23969         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
23970         CC_ADCmode.
23971         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
23972         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
23973         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
23974         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
23975         to eliminate the need for zero-extending the operands.
23976         (add<mode>3_compareC_imm): Delete.  Merge into ...
23977         (add<mode>3_compareC): ... this.  Restructure the comparison to
23978         eliminate the need for zero-extending the operands.
23979         (add<mode>3_carryin): Use LTU for the overflow detection.
23980         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
23981         Reexpress comparison for overflow.
23982         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
23983         (add<mode>3_carryinC): Likewise.
23984         (add<mode>3_carryinV): Use LTU for carry between partials.
23985         * config/aarch64/predicates.md (aarch64_carry_operation): Update
23986         handling of CC_Cmode and add CC_ADCmode.
23987         (aarch64_borrow_operation): Likewise.
23989 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
23991         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
23992         Remove patternmode.
23993         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
23994         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
23995         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
23996         Remove endianness conversion.
23998 2019-01-16  Martin Liska  <mliska@suse.cz>
24000         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
24001         for GCC driver.
24002         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
24003         a new argument.
24004         * gcc.c (add_sysrooted_hdrs_prefix): New function.
24005         (path_prefix_reset): Move up in the source file.
24006         (find_fortran_preinclude_file): Make complex search for the
24007         fortran header files.
24009 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
24011         * godump.c (go_output_typedef): When outputting a typedef, refer
24012         to the underlying type by its name and not its structure.
24014 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
24016         PR c++/88795
24017         * tree.c (build_function_type): Assert that arg_types is not
24018         error_mark_node.
24020 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
24022         PR inline-asm/52813
24023         * doc/extend.texi: Document that listing the stack pointer in the
24024         clobber list of an asm is a deprecated feature.
24025         * common.opt (Wdeprecated): Moved from c-family/c.opt.
24026         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
24027         warning instead of an error for clobbers of the stack pointer.
24028         Add a note explaining why.
24030 2019-01-15  Richard Biener  <rguenther@suse.de>
24032         PR debug/88046
24033         * dwarf2out.c (gen_member_die): Do not generate inheritance
24034         DIEs late.
24036 2019-01-15  Richard Biener  <rguenther@suse.de>
24038         PR tree-optimization/88855
24039         * tree-if-conv.c (combine_blocks): Collect
24040         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
24042 2019-01-15  Tom de Vries  <tdevries@suse.de>
24044         PR target/80547
24045         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
24046         lhs == NULL_TREE for gang-level reduction.
24048 2019-01-15  Richard Biener  <rguenther@suse.de>
24049             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
24051         PR ipa/88788
24052         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
24053         return true if SSA_NAME is already marked in visited bitmap.
24054         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
24056 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
24058         PR tree-optimization/88775
24059         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
24060         equal == 0 equality pointer comparisons some more if compared in
24061         integral types and either one points to an automatic var and the
24062         other to a global, or we can prove at least one points to the middle
24063         or both point to start or both point to end.
24065 2019-01-14  Andi Kleen  <ak@linux.intel.com>
24067         * Makefile.in: Lower autofdo sampling rate by 10x.
24068         * Makefile.tpl: Dito.
24070 2019-01-14  Tom Honermann  <tom@honermann.net>
24072         * defaults.h: Define CHAR8_TYPE.
24074 2019-01-14  Martin Sebor  <msebor@redhat.com>
24076         PR target/88638
24077         * doc/extend.texi (Darwin Format Checks): Clarify.
24079 2019-01-14  Richard Biener  <rguenther@suse.de>
24081         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
24082         whether we are in (simplify ...) or (match ...) context.
24084 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
24086         PR rtl-optimization/88796
24087         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
24088         * cfgexpand.c (stack_protect_prologue): Initialize
24089         crtl->stack_protect_guard_decl.
24090         * function.c (stack_protect_epilogue): Use it instead of calling
24091         targetm.stack_protect_guard again.
24092         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
24093         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
24094         crtl->stack_protect_guard_decl.
24095         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
24096         on the returned MEM_EXPR.
24098 2019-01-12  Tom de Vries  <tdevries@suse.de>
24100         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
24101         vector length using -fopenacc-dim.
24103 2019-01-12  Tom de Vries  <tdevries@suse.de>
24105         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
24106         lengths into account.
24108 2019-01-12  Svante Signell  <svante.signell@gmail.com>
24110         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
24111         (TARGET_CAN_SPLIT_STACK): Define.
24112         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
24114 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
24116         * params.def (inline-unit-growth): Set to 40.
24118 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
24120         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
24122 2019-01-12  Tom de Vries  <tdevries@suse.de>
24124         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
24125         region calling vector-partitionable routine, set default_vector_length
24126         to WARP_SIZE.
24128 2019-01-12  Tom de Vries  <tdevries@suse.de>
24130         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
24131         variable default_vector_length.
24133 2019-01-12  Tom de Vries  <tdevries@suse.de>
24135         PR middle-end/88703
24136         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
24137         from oacc_default_dims, as oacc_validate_dims would do it, and apply
24138         dimensions limits.
24140 2019-01-12  Tom de Vries  <tdevries@suse.de>
24142         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
24143         (nvptx_goacc_validate_dims): Add used parameter.
24144         * doc/tm.texi: Regenerate.
24145         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
24146         argument to call to targetm.goacc.validate_dims.
24147         (default_goacc_validate_dims): Add used
24148         parameter.
24149         * target.def (validate_dims): Add used parameter in DEFHOOK.
24150         * targhooks.h (default_goacc_validate_dims): Add used parameter.
24152 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
24154         PR middle-end/85956
24155         PR lto/88733
24156         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
24157         field.
24158         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
24159         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
24160         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
24161         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
24163 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
24165         PR rtl-optimization/87305
24166         * lra-assigns.c
24167         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
24168         for little endian pseudos used as paradoxical subreg.
24170 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
24172         PR tree-optimization/88693
24173         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
24174         for STRING_CSTs that don't contain any NUL characters in the first
24175         TREE_STRING_LENGTH bytes.
24177 2019-01-11  Alan Modra  <amodra@gmail.com>
24179         PR 88777
24180         PR 88614
24181         * genattrtab.c (min_fn): Don't translate values.
24182         (min_attr_value): Return INT_MAX when the value can't be calculated.
24183         Return minimum among any values that can be calculated.
24184         (max_attr_value): Adjust.
24186 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
24188         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
24190 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
24192         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
24193         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
24194         (aarch64_return_call_with_max_clobbers): New function.
24195         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
24196         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
24197         argument.
24198         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
24199         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
24200         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
24201         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
24202         * cselib.c (cselib_process_insn): Add argument to
24203         targetm.hard_regno_call_part_clobbered call.
24204         * ira-conflicts.c (ira_build_conflicts): Ditto.
24205         * ira-costs.c (ira_tune_allocno_costs): Ditto.
24206         * lra-constraints.c (inherit_reload_reg): Ditto.
24207         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
24208         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
24209         argument.  Call targetm.return_call_with_max_clobbers.
24210         Add argument to targetm.hard_regno_call_part_clobbered call.
24211         (calls_have_same_clobbers_p): New function.
24212         (process_bb_lives): Add call_insn and last_call_insn variables.
24213         Pass call_insn to check_pseudos_live_through_calls.
24214         Modify if stmt to check targetm.return_call_with_max_clobbers.
24215         Update setting of flush variable.
24216         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
24217         to false.
24218         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
24219         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
24220         targetm.hard_regno_call_part_clobbered call.
24221         * reginfo.c (choose_hard_reg_mode): Ditto.
24222         * regrename.c (check_new_reg_p): Ditto.
24223         * reload.c (find_equiv_reg): Ditto.
24224         * reload1.c (emit_reload_insns): Ditto.
24225         * sched-deps.c (deps_analyze_insn): Ditto.
24226         * sel-sched.c (init_regs_for_mode): Ditto.
24227         (mark_unavailable_hard_regs): Ditto.
24228         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
24229         * target.def (hard_regno_call_part_clobbered): Add insn argument.
24230         (return_call_with_max_clobbers): New target function.
24231         * doc/tm.texi: Regenerate.
24232         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
24233         * hooks.c (hook_bool_uint_mode_false): Change to
24234         hook_bool_insn_uint_mode_false.
24235         * hooks.h (hook_bool_uint_mode_false): Ditto.
24237 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
24239         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
24240         (aarch64_remove_extra_call_preserved_regs): New function.
24241         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
24242         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
24243         * doc/tm.texi: Regenerate.
24244         * final.c (get_call_reg_set_usage): Call new hook.
24245         * target.def (remove_extra_call_preserved_regs): New hook.
24246         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
24247         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
24249 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
24251         PR bootstrap/88714
24252         * passes.c (finish_optimization_passes): Call print_combine_total_stats
24253         inside of pass_combine_1 dump rather than pass_profile_1.
24255 2019-01-11  Tom de Vries  <tdevries@suse.de>
24257         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
24258         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
24259         (PTX_NUM_PER_WORKER_BARRIERS): Define.
24260         (nvptx_apply_dim_limits): Prevent vector_length 64 and
24261         num_workers 16.
24263 2019-01-11  Tom de Vries  <tdevries@suse.de>
24265         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
24267 2019-01-11  Jan Beulich  <jbeulich@suse.com>
24269         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
24270         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
24271         sse2_cvtsi2sd): Add {l}.
24272         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
24273         syntax.
24275 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
24277         PR target/88785
24278         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
24279         define_expand.
24280         (*float<floatunssuffix>v2div2sf2): New define_insn.
24281         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
24282         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
24283         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
24284         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
24285         match_operands with "const0_operand" "C".
24287 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
24289         * config/aarch64/aarch64-builtins.c
24290         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
24291         (aarch64_init_simd_builtins): ...Here
24293 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
24295         PR rtl-optimization/87305
24296         * lra-assigns.c
24297         (setup_live_pseudos_and_spill_after_risky_transforms): Check
24298         allocation for big endian pseudos used as paradoxical subregs and
24299         spill them if it is wrong.
24300         * lra-constraints.c (lra_constraints): Add a comment.
24302 2019-01-10  Richard Biener  <rguenther@suse.de>
24304         PR tree-optimization/88792
24305         * tree-ssa-pre.c (get_representative_for): Do not return a
24306         value-number here.
24308 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
24310         PR middle-end/84877
24311         PR bootstrap/88450
24312         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
24313         (assign_parm_setup_block): Do the argument slot realignment here
24314         instead.
24316 2019-01-10  Stefan Agner  <stefan@agner.ch>
24318         PR target/88648
24319         * config/arm/arm.c (arm_option_override_internal): Force
24320         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
24322 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
24324         PR c/88568
24325         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
24326         DECL_EXTERNAL.
24328 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
24330         * config/arm/arm-builtins.c
24331         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
24332         (MAC_LANE_PAIR_QUALIFIERS): New.
24333         (arm_expand_builtin_args): Use it.
24334         (arm_expand_builtin_1): Likewise.
24335         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
24336         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
24337         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
24338         * config/arm/arm_neon.h:
24339         (vcadd_rot90_f16): New.
24340         (vcaddq_rot90_f16): New.
24341         (vcadd_rot270_f16): New.
24342         (vcaddq_rot270_f16): New.
24343         (vcmla_f16): New.
24344         (vcmlaq_f16): New.
24345         (vcmla_lane_f16): New.
24346         (vcmla_laneq_f16): New.
24347         (vcmlaq_lane_f16): New.
24348         (vcmlaq_laneq_f16): New.
24349         (vcmla_rot90_f16): New.
24350         (vcmlaq_rot90_f16): New.
24351         (vcmla_rot90_lane_f16): New.
24352         (vcmla_rot90_laneq_f16): New.
24353         (vcmlaq_rot90_lane_f16): New.
24354         (vcmlaq_rot90_laneq_f16): New.
24355         (vcmla_rot180_f16): New.
24356         (vcmlaq_rot180_f16): New.
24357         (vcmla_rot180_lane_f16): New.
24358         (vcmla_rot180_laneq_f16): New.
24359         (vcmlaq_rot180_lane_f16): New.
24360         (vcmlaq_rot180_laneq_f16): New.
24361         (vcmla_rot270_f16): New.
24362         (vcmlaq_rot270_f16): New.
24363         (vcmla_rot270_lane_f16): New.
24364         (vcmla_rot270_laneq_f16): New.
24365         (vcmlaq_rot270_lane_f16): New.
24366         (vcmlaq_rot270_laneq_f16): New.
24367         (vcadd_rot90_f32): New.
24368         (vcaddq_rot90_f32): New.
24369         (vcadd_rot270_f32): New.
24370         (vcaddq_rot270_f32): New.
24371         (vcmla_f32): New.
24372         (vcmlaq_f32): New.
24373         (vcmla_lane_f32): New.
24374         (vcmla_laneq_f32): New.
24375         (vcmlaq_lane_f32): New.
24376         (vcmlaq_laneq_f32): New.
24377         (vcmla_rot90_f32): New.
24378         (vcmlaq_rot90_f32): New.
24379         (vcmla_rot90_lane_f32): New.
24380         (vcmla_rot90_laneq_f32): New.
24381         (vcmlaq_rot90_lane_f32): New.
24382         (vcmlaq_rot90_laneq_f32): New.
24383         (vcmla_rot180_f32): New.
24384         (vcmlaq_rot180_f32): New.
24385         (vcmla_rot180_lane_f32): New.
24386         (vcmla_rot180_laneq_f32): New.
24387         (vcmlaq_rot180_lane_f32): New.
24388         (vcmlaq_rot180_laneq_f32): New.
24389         (vcmla_rot270_f32): New.
24390         (vcmlaq_rot270_f32): New.
24391         (vcmla_rot270_lane_f32): New.
24392         (vcmla_rot270_laneq_f32): New.
24393         (vcmlaq_rot270_lane_f32): New.
24394         (vcmlaq_rot270_laneq_f32): New.
24395         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
24396         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
24397         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
24398         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
24399         vcmlaq_lane270): New.
24400         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
24401         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
24402         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
24403         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
24404         (arm_option_reconfigure_globals): Use them.
24405         * config/arm/iterators.md (VDF, VQ_HSF): New.
24406         (VCADD, VCMLA): New.
24407         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
24408         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
24409         New.
24410         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
24411         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
24413 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
24415         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
24416         Add qualifier_lane_pair_index.
24417         (emit-rtl.h): Include.
24418         (TYPES_QUADOP_LANE_PAIR): New.
24419         (aarch64_simd_expand_args): Use it.
24420         (aarch64_simd_expand_builtin): Likewise.
24421         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
24422         New.
24423         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
24424         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
24425         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
24426         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
24427         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
24428         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
24429         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
24430         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
24431         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
24432         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
24433         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
24434         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
24435         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
24436         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
24437         Add __ARM_FEATURE_COMPLEX.
24438         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
24439         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
24440         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
24441         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
24442         fcmlaq_lane270): New.
24443         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
24444         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
24445         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
24446         * config/aarch64/arm_neon.h:
24447         (vcadd_rot90_f16): New.
24448         (vcaddq_rot90_f16): New.
24449         (vcadd_rot270_f16): New.
24450         (vcaddq_rot270_f16): New.
24451         (vcmla_f16): New.
24452         (vcmlaq_f16): New.
24453         (vcmla_lane_f16): New.
24454         (vcmla_laneq_f16): New.
24455         (vcmlaq_lane_f16): New.
24456         (vcmlaq_rot90_lane_f16): New.
24457         (vcmla_rot90_laneq_f16): New.
24458         (vcmla_rot90_lane_f16): New.
24459         (vcmlaq_rot90_f16): New.
24460         (vcmla_rot90_f16): New.
24461         (vcmlaq_laneq_f16): New.
24462         (vcmla_rot180_laneq_f16): New.
24463         (vcmla_rot180_lane_f16): New.
24464         (vcmlaq_rot180_f16): New.
24465         (vcmla_rot180_f16): New.
24466         (vcmlaq_rot90_laneq_f16): New.
24467         (vcmlaq_rot270_laneq_f16): New.
24468         (vcmlaq_rot270_lane_f16): New.
24469         (vcmla_rot270_laneq_f16): New.
24470         (vcmlaq_rot270_f16): New.
24471         (vcmla_rot270_f16): New.
24472         (vcmlaq_rot180_laneq_f16): New.
24473         (vcmlaq_rot180_lane_f16): New.
24474         (vcmla_rot270_lane_f16): New.
24475         (vcadd_rot90_f32): New.
24476         (vcaddq_rot90_f32): New.
24477         (vcaddq_rot90_f64): New.
24478         (vcadd_rot270_f32): New.
24479         (vcaddq_rot270_f32): New.
24480         (vcaddq_rot270_f64): New.
24481         (vcmla_f32): New.
24482         (vcmlaq_f32): New.
24483         (vcmlaq_f64): New.
24484         (vcmla_lane_f32): New.
24485         (vcmla_laneq_f32): New.
24486         (vcmlaq_lane_f32): New.
24487         (vcmlaq_laneq_f32): New.
24488         (vcmla_rot90_f32): New.
24489         (vcmlaq_rot90_f32): New.
24490         (vcmlaq_rot90_f64): New.
24491         (vcmla_rot90_lane_f32): New.
24492         (vcmla_rot90_laneq_f32): New.
24493         (vcmlaq_rot90_lane_f32): New.
24494         (vcmlaq_rot90_laneq_f32): New.
24495         (vcmla_rot180_f32): New.
24496         (vcmlaq_rot180_f32): New.
24497         (vcmlaq_rot180_f64): New.
24498         (vcmla_rot180_lane_f32): New.
24499         (vcmla_rot180_laneq_f32): New.
24500         (vcmlaq_rot180_lane_f32): New.
24501         (vcmlaq_rot180_laneq_f32): New.
24502         (vcmla_rot270_f32): New.
24503         (vcmlaq_rot270_f32): New.
24504         (vcmlaq_rot270_f64): New.
24505         (vcmla_rot270_lane_f32): New.
24506         (vcmla_rot270_laneq_f32): New.
24507         (vcmlaq_rot270_lane_f32): New.
24508         (vcmlaq_rot270_laneq_f32): New.
24509         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
24510         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
24511         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
24512         (FCADD, FCMLA): New.
24513         (rot): New.
24514         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
24516 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24518         PR other/16615
24520         * config/pa/pa.c: Change "can not" to "cannot".
24521         * gimple-ssa-evrp-analyze.c: Likewise.
24522         * ipa-icf.c: Likewise.
24523         * ipa-polymorphic-call.c: Likewise.
24524         * ipa-pure-const.c: Likewise.
24525         * lra-constraints.c: Likewise.
24526         * lra-remat.c: Likewise.
24527         * reload1.c: Likewise.
24528         * reorg.c: Likewise.
24529         * tree-ssa-uninit.c: Likewise.
24531 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
24533         PR other/16615
24535         * Makefile.in: Mechanically replace "can not" with "cannot".
24536         * alias.c: Likewise.
24537         * builtins.c: Likewise.
24538         * calls.c: Likewise.
24539         * cgraph.c: Likewise.
24540         * cgraph.h: Likewise.
24541         * cgraphclones.c: Likewise.
24542         * cgraphunit.c: Likewise.
24543         * combine-stack-adj.c: Likewise.
24544         * combine.c: Likewise.
24545         * common/config/i386/i386-common.c: Likewise.
24546         * config/aarch64/aarch64.c: Likewise.
24547         * config/alpha/sync.md: Likewise.
24548         * config/arc/arc.c: Likewise.
24549         * config/arc/predicates.md: Likewise.
24550         * config/arm/arm-c.c: Likewise.
24551         * config/arm/arm.c: Likewise.
24552         * config/arm/arm.h: Likewise.
24553         * config/arm/arm.md: Likewise.
24554         * config/arm/cortex-r4f.md: Likewise.
24555         * config/csky/csky.c: Likewise.
24556         * config/csky/csky.h: Likewise.
24557         * config/darwin-f.c: Likewise.
24558         * config/epiphany/epiphany.md: Likewise.
24559         * config/i386/i386.c: Likewise.
24560         * config/i386/sol2.h: Likewise.
24561         * config/m68k/m68k.c: Likewise.
24562         * config/mcore/mcore.h: Likewise.
24563         * config/microblaze/microblaze.md: Likewise.
24564         * config/mips/20kc.md: Likewise.
24565         * config/mips/sb1.md: Likewise.
24566         * config/nds32/nds32.c: Likewise.
24567         * config/nds32/predicates.md: Likewise.
24568         * config/pa/pa.c: Likewise.
24569         * config/rs6000/e300c2c3.md: Likewise.
24570         * config/rs6000/rs6000.c: Likewise.
24571         * config/s390/s390.h: Likewise.
24572         * config/sh/sh.c: Likewise.
24573         * config/sh/sh.md: Likewise.
24574         * config/spu/vmx2spu.h: Likewise.
24575         * cprop.c: Likewise.
24576         * dbxout.c: Likewise.
24577         * df-scan.c: Likewise.
24578         * doc/cfg.texi: Likewise.
24579         * doc/extend.texi: Likewise.
24580         * doc/fragments.texi: Likewise.
24581         * doc/gty.texi: Likewise.
24582         * doc/invoke.texi: Likewise.
24583         * doc/lto.texi: Likewise.
24584         * doc/md.texi: Likewise.
24585         * doc/objc.texi: Likewise.
24586         * doc/rtl.texi: Likewise.
24587         * doc/tm.texi: Likewise.
24588         * dse.c: Likewise.
24589         * emit-rtl.c: Likewise.
24590         * emit-rtl.h: Likewise.
24591         * except.c: Likewise.
24592         * expmed.c: Likewise.
24593         * expr.c: Likewise.
24594         * fold-const.c: Likewise.
24595         * genautomata.c: Likewise.
24596         * gimple-fold.c: Likewise.
24597         * hard-reg-set.h: Likewise.
24598         * ifcvt.c: Likewise.
24599         * ipa-comdats.c: Likewise.
24600         * ipa-cp.c: Likewise.
24601         * ipa-devirt.c: Likewise.
24602         * ipa-fnsummary.c: Likewise.
24603         * ipa-icf.c: Likewise.
24604         * ipa-inline-transform.c: Likewise.
24605         * ipa-inline.c: Likewise.
24606         * ipa-polymorphic-call.c: Likewise.
24607         * ipa-profile.c: Likewise.
24608         * ipa-prop.c: Likewise.
24609         * ipa-pure-const.c: Likewise.
24610         * ipa-reference.c: Likewise.
24611         * ipa-split.c: Likewise.
24612         * ipa-visibility.c: Likewise.
24613         * ipa.c: Likewise.
24614         * ira-build.c: Likewise.
24615         * ira-color.c: Likewise.
24616         * ira-conflicts.c: Likewise.
24617         * ira-costs.c: Likewise.
24618         * ira-int.h: Likewise.
24619         * ira-lives.c: Likewise.
24620         * ira.c: Likewise.
24621         * ira.h: Likewise.
24622         * loop-invariant.c: Likewise.
24623         * loop-unroll.c: Likewise.
24624         * lower-subreg.c: Likewise.
24625         * lra-assigns.c: Likewise.
24626         * lra-constraints.c: Likewise.
24627         * lra-eliminations.c: Likewise.
24628         * lra-lives.c: Likewise.
24629         * lra-remat.c: Likewise.
24630         * lra-spills.c: Likewise.
24631         * lra.c: Likewise.
24632         * lto-cgraph.c: Likewise.
24633         * lto-streamer-out.c: Likewise.
24634         * postreload-gcse.c: Likewise.
24635         * predict.c: Likewise.
24636         * profile-count.h: Likewise.
24637         * profile.c: Likewise.
24638         * recog.c: Likewise.
24639         * ree.c: Likewise.
24640         * reload.c: Likewise.
24641         * reload1.c: Likewise.
24642         * reorg.c: Likewise.
24643         * resource.c: Likewise.
24644         * rtl.def: Likewise.
24645         * rtl.h: Likewise.
24646         * rtlanal.c: Likewise.
24647         * sched-deps.c: Likewise.
24648         * sched-ebb.c: Likewise.
24649         * sched-rgn.c: Likewise.
24650         * sel-sched-ir.c: Likewise.
24651         * sel-sched.c: Likewise.
24652         * shrink-wrap.c: Likewise.
24653         * simplify-rtx.c: Likewise.
24654         * symtab.c: Likewise.
24655         * target.def: Likewise.
24656         * toplev.c: Likewise.
24657         * tree-call-cdce.c: Likewise.
24658         * tree-cfg.c: Likewise.
24659         * tree-complex.c: Likewise.
24660         * tree-core.h: Likewise.
24661         * tree-eh.c: Likewise.
24662         * tree-inline.c: Likewise.
24663         * tree-loop-distribution.c: Likewise.
24664         * tree-nrv.c: Likewise.
24665         * tree-profile.c: Likewise.
24666         * tree-sra.c: Likewise.
24667         * tree-ssa-alias.c: Likewise.
24668         * tree-ssa-dce.c: Likewise.
24669         * tree-ssa-dom.c: Likewise.
24670         * tree-ssa-forwprop.c: Likewise.
24671         * tree-ssa-loop-im.c: Likewise.
24672         * tree-ssa-loop-ivcanon.c: Likewise.
24673         * tree-ssa-loop-ivopts.c: Likewise.
24674         * tree-ssa-loop-niter.c: Likewise.
24675         * tree-ssa-phionlycprop.c: Likewise.
24676         * tree-ssa-phiopt.c: Likewise.
24677         * tree-ssa-propagate.c: Likewise.
24678         * tree-ssa-threadedge.c: Likewise.
24679         * tree-ssa-threadupdate.c: Likewise.
24680         * tree-ssa-uninit.c: Likewise.
24681         * tree-ssanames.c: Likewise.
24682         * tree-streamer-out.c: Likewise.
24683         * tree.c: Likewise.
24684         * tree.h: Likewise.
24685         * vr-values.c: Likewise.
24687 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24689         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
24690         (ix86_split_xorsign): Ditto.
24691         * config/i386/i386.c (ix86_expand_xorsign): New function.
24692         (ix86_split_xorsign): Ditto.
24693         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
24694         (xorsign<mode>3): New expander.
24695         (xorsign<mode>3_1): New insn_and_split pattern.
24696         * config/i386/sse.md (xorsign<mode>3): New expander.
24698 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
24700         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
24701         (*tablejump_sp64): Likewise.
24702         (*tablejump<P:mode>): ...this.
24703         (*call_address_sp32): Merge into...
24704         (*call_address_sp64): Likewise.
24705         (*call_address<P:mode>): ...this.
24706         (*call_symbolic_sp32): Merge into...
24707         (*call_symbolic_sp64): Likewise.
24708         (*call_symbolic<P:mode>): ...this.
24709         (call_value): Remove constraint and add predicate.
24710         (*call_value_address_sp32): Merge into...
24711         (*call_value_address_sp64): Likewise.
24712         (*call_value_address<P:mode>): ...this.
24713         (*call_value_symbolic_sp32): Merge into...
24714         (*call_value_symbolic_sp64): Likewise.
24715         (*call_value_symbolic<P:mode>): ...this.
24716         (*sibcall_symbolic_sp32): Merge into...
24717         (*sibcall_symbolic_sp64): Likewise.
24718         (*sibcall_symbolic<P:mode>): ...this.
24719         (sibcall_value): Remove constraint and add predicate.
24720         (*sibcall_value_symbolic_sp32): Merge into...
24721         (*sibcall_value_symbolic_sp64): Likewise.
24722         (*sibcall_value_symbolic<P:mode>): ...this.
24723         (window_save): Minor tweak.
24724         (*branch_sp32): Merge into...
24725         (*branch_sp64): Likewise.
24726         (*branch<P:mode>): ...this.
24728 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
24729             James Clarke  <jrtc27@jrtc27.com>
24731         PR target/84010
24732         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
24733         consistently in TLS address generation and adjust code to the renaming
24734         of patterns.  Mark calls to __tls_get_addr as const.
24735         * config/sparc/sparc.md (tgd_hi22): Turn into...
24736         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
24737         (tgd_lo10): Turn into...
24738         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
24739         (tgd_add32): Merge into...
24740         (tgd_add64): Likewise.
24741         (tgd_add<P:mode>): ...this and use Pmode throughout.
24742         (tldm_hi22): Turn into...
24743         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
24744         (tldm_lo10): Turn into...
24745         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
24746         (tldm_add32): Merge into...
24747         (tldm_add64): Likewise.
24748         (tldm_add<P:mode>): ...this and use Pmode throughout.
24749         (tldm_call32): Merge into...
24750         (tldm_call64): Likewise.
24751         (tldm_call<P:mode>): ...this and use Pmode throughout.
24752         (tldo_hix22): Turn into...
24753         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
24754         (tldo_lox10): Turn into...
24755         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
24756         (tldo_add32): Merge into...
24757         (tldo_add64): Likewise.
24758         (tldo_add<P:mode>): ...this and use Pmode throughout.
24759         (tie_hi22): Turn into...
24760         (tie_hi22<P:mode>): ...this and use Pmode throughout.
24761         (tie_lo10): Turn into...
24762         (tie_lo10<P:mode>): ...this and use Pmode throughout.
24763         (tie_ld64): Use DImode throughout.
24764         (tie_add32): Merge into...
24765         (tie_add64): Likewise.
24766         (tie_add<P:mode>): ...this and use Pmode throughout.
24767         (tle_hix22_sp32): Merge into...
24768         (tle_hix22_sp64): Likewise.
24769         (tle_hix22<P:mode>): ...this and use Pmode throughout.
24770         (tle_lox22_sp32): Merge into...
24771         (tle_lox22_sp64): Likewise.
24772         (tle_lox22<P:mode>): ...this and use Pmode throughout.
24773         (*tldo_ldub_sp32): Merge into...
24774         (*tldo_ldub_sp64): Likewise.
24775         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
24776         (*tldo_ldub1_sp32): Merge into...
24777         (*tldo_ldub1_sp64): Likewise.
24778         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
24779         (*tldo_ldub2_sp32): Merge into...
24780         (*tldo_ldub2_sp64): Likewise.
24781         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
24782         (*tldo_ldsb1_sp32): Merge into...
24783         (*tldo_ldsb1_sp64): Likewise.
24784         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
24785         (*tldo_ldsb2_sp32): Merge into...
24786         (*tldo_ldsb2_sp64): Likewise.
24787         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
24788         (*tldo_ldub3_sp64): Use DImode throughout.
24789         (*tldo_ldsb3_sp64): Likewise.
24790         (*tldo_lduh_sp32): Merge into...
24791         (*tldo_lduh_sp64): Likewise.
24792         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
24793         (*tldo_lduh1_sp32): Merge into...
24794         (*tldo_lduh1_sp64): Likewise.
24795         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
24796         (*tldo_ldsh1_sp32): Merge into...
24797         (*tldo_ldsh1_sp64): Likewise.
24798         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
24799         (*tldo_lduh2_sp64): Use DImode throughout.
24800         (*tldo_ldsh2_sp64): Likewise.
24801         (*tldo_lduw_sp32): Merge into...
24802         (*tldo_lduw_sp64): Likewise.
24803         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
24804         (*tldo_lduw1_sp64): Use DImode throughout.
24805         (*tldo_ldsw1_sp64): Likewise.
24806         (*tldo_ldx_sp64): Likewise.
24807         (*tldo_stb_sp32): Merge into...
24808         (*tldo_stb_sp64): Likewise.
24809         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
24810         (*tldo_sth_sp32): Merge into...
24811         (*tldo_sth_sp64): Likewise.
24812         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
24813         (*tldo_stw_sp32): Merge into...
24814         (*tldo_stw_sp64): Likewise.
24815         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
24816         (*tldo_stx_sp64): Use DImode throughout.
24818 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24820         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
24821         check configure option to set BTI and Return Address Signing.
24822         * configure.ac: Add --enable-standard-branch-protection and
24823         --disable-standard-branch-protection.
24824         * configure: Regenerated.
24825         * doc/install.texi: Document the same.
24827 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24828             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24830         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
24831         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
24832         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
24833         if bti is enabled.
24834         * config/aarch64/aarch64-bti-insert.c: New file.
24835         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
24836         pass.
24837         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
24838         new bti pass.
24839         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
24840         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
24841         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
24842         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
24844 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24846         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
24847         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
24848         Disable bti for -mbranch-protection=none.
24849         (aarch64_handle_standard_branch_protection): Enable bti for
24850         -mbranch-protection=standard.
24851         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
24852         -mbranch-protection.
24853         (aarch64_bti_enabled): Check if bti is enabled.
24854         * config/aarch64/aarch64.opt: Declare target variable.
24855         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
24857 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24859         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
24860         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
24861         (aarch64_expand_epilogue): Likewise.
24862         (aarch64_output_mi_thunk): Likewise.
24863         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
24864         TAILCALL_ADDR_REGS to x16 and x17.
24865         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
24867 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24869         * config/aarch64/aarch64-option-extensions.def: Define
24870         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
24871         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
24872         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
24873         (AARCH64_FL_PREDRES): New.
24874         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
24875         AARCH64_FL_PREDRES by default.
24876         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
24878 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
24880         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
24881         ARMv8.5-A.
24882         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
24883         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
24884         * doc/invoke.texi: Document ARMv8.5-A.
24886 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
24888         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
24889         (xorsign<mode>3): Likewise.
24891 2019-01-09  Jelinek  <jakub@redhat.com>
24893         PR middle-end/88758
24894         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
24895         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
24897         PR rtl-optimization/88331
24898         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
24899         not currently_expanding_to_rtl.
24901 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
24903         * doc/invoke.texi (-Os): Remove trailing spaces.
24904         (-finline-functions): Remove reference to -O2.
24906 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
24908         PR rtl-optimization/79593
24909         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
24911         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
24912         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
24914 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
24916         PR bootstrap/88721
24917         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
24918         to -1 on entry.
24920         PR debug/88723
24921         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
24922         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
24924 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
24926         PR target/88717
24927         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
24928         ix86_avx_u128_mode_entry.
24930 2019-01-08  Martin Liska  <mliska@suse.cz>
24932         PR tree-optimization/88753
24933         * tree-switch-conversion.c (switch_conversion::build_one_array):
24934         Come up with local variable constructor.  Convert first to
24935         type of constructor values.
24937 2019-01-08  Richard Biener  <rguenther@suse.de>
24939         PR tree-optimization/86554
24940         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
24941         rpo_avail): Move earlier.
24942         (visit_nary_op): When value-numbering to expressions
24943         with different overflow behavior make sure there's an
24944         available expression on the path.
24946 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
24948         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
24949         aarch64_parse_branch_protection,
24950         struct aarch64_branch_protect_type,
24951         aarch64_handle_no_branch_protection,
24952         aarch64_handle_standard_branch_protection,
24953         aarch64_validate_mbranch_protection,
24954         aarch64_handle_pac_ret_protection,
24955         aarch64_handle_attr_branch_protection,
24956         accepted_branch_protection_string,
24957         aarch64_pac_ret_subtypes,
24958         aarch64_branch_protect_types,
24959         aarch64_handle_pac_ret_leaf): Define.
24960         (aarch64_override_options_after_change_1, aarch64_override_options):
24961         Add check for accepted_branch_protection_string.
24962         (aarch64_option_save): Save accepted_branch_protection_string.
24963         (aarch64_option_restore): Save accepted_branch_protection_string.
24964         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
24965         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
24966         msign-return-address.
24967         * doc/invoke.texi: Add mbranch-protection.
24969 2019-01-08  Alan Modra  <amodra@gmail.com>
24971         PR target/88614
24972         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
24973         Delete "unknownp" parameter.  Adjust callers.  Handle
24974         CONST_INT, PLUS, MINUS, and MULT.
24975         (attr_value_aligned): Renamed from or_attr_value.
24976         (min_attr_value): Return INT_MIN for unhandled rtl case..
24977         (min_fn): ..and translate to INT_MAX here.
24978         (write_length_unit_log): Modify to cope without "unknown".
24979         (write_attr_value): Handle IF_THEN_ELSE.
24981 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24983         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
24984         optimization for masked stores.
24986 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
24988         PR middle-end/88567
24989         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
24990         output vector directly to duplicate_and_interleave instead of
24991         going through a temporary.  Postpone insertion of ctor_seq to
24992         the end of the loop.
24994 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
24996         PR target/86891
24997         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
24998         unsigned_p.  Handle signed and unsigned overflow correction as
24999         required.
25000         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
25001         prototype.
25002         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
25003         for operand 2.
25004         (add<mode>3_compareV_imm): Make this callable for expanding.
25005         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
25006         aarch64_plus_operand for operand 2.
25007         (subv<GPI:mode>_insn): New insn pattern.
25008         (subv<GPI:mode>_imm): Likewise.
25009         (negv<GPI:mode>3): New expand pattern.
25010         (negv<GPI:mode>_insn): New insn pattern.
25011         (negv<GPI:mode>_cmp_only): Likewise.
25012         (cmpv<GPI:mode>_insn): Likewise.
25013         (subvti4): Use register_operand for operand 1.  Update call to
25014         aarch64_expand_subvti.
25015         (usubvti4): Likewise.
25016         (negvti3): New expand pattern.
25017         (negdi_carryout): New insn pattern.
25018         (negvdi_carryinV): New insn pattern.
25019         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
25020         version the named version.
25021         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
25022         operands.
25023         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
25024         patterns.
25025         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
25026         patterns.
25027         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
25028         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
25029         (sub<mode>3_carryinCV): Delete.
25030         (sub<GPI:mode>3_carryinV): New expand pattern.
25031         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
25033 2019-01-07  Richard Biener  <rguenther@suse.de>
25035         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
25036         of tree_operand_hash.
25038 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
25040         PR tree-optimization/88598
25041         * tree.h (single_nonzero_element): Declare.
25042         * tree.c (single_nonzero_element): New function.
25043         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
25044         if I is the only nonzero element of CST.
25046 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
25048         PR tree-optimization/88598
25049         * tree.h (initializer_each_zero_or_onep): Declare.
25050         * tree.c (initializer_each_zero_or_onep): New function.
25051         (signed_or_unsigned_type_for): Handle float types too.
25052         (unsigned_type_for, signed_type_for): Update comments accordingly.
25053         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
25054         x & { 0 or -1, 0 or -1, ... }.
25056 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
25058         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
25059         with x86_64-pc-linux-gnu.
25061 2019-01-07  Tom de Vries  <tdevries@suse.de>
25063         PR target/85486
25064         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
25065         function.
25066         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
25067         routines.
25069 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
25071         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
25072         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
25073         TARGET_AVX512F as condition.
25075         PR debug/88723
25076         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
25077         const_not_ok_for_debug_p target hook.
25078         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
25079         on UNSPEC and subexpressions thereof if all subexpressions of the
25080         UNSPEC are CONSTANT_P.
25082         PR tree-optimization/88676
25083         * tree-ssa-phiopt.c (two_value_replacement): New function.
25084         (tree_ssa_phiopt_worker): Call it.
25086         PR sanitizer/88619
25087         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
25088         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
25090         PR c++/85052
25091         * tree-vect-generic.c: Include insn-config.h and recog.h.
25092         (expand_vector_piecewise): Add defaulted ret_type argument,
25093         if non-NULL, use that in preference to type for the result type.
25094         (expand_vector_parallel): Formatting fix.
25095         (do_vec_conversion, do_vec_narrowing_conversion,
25096         expand_vector_conversion): New functions.
25097         (expand_vector_operations_1): Call expand_vector_conversion
25098         for VEC_CONVERT ifn calls.
25099         * internal-fn.def (VEC_CONVERT): New internal function.
25100         * internal-fn.c (expand_VEC_CONVERT): New function.
25101         * fold-const-call.c (fold_const_vec_convert): New function.
25102         (fold_const_call): Use it for CFN_VEC_CONVERT.
25103         * doc/extend.texi (__builtin_convertvector): Document.
25105 2019-01-07  Tom de Vries  <tdevries@suse.de>
25107         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
25108         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
25109         vector_red_partition, vector_red_sym): New global variables.
25110         (nvptx_option_override): Initialize vector_red_sym.
25111         (nvptx_declare_function_name): Restore red_partition register.
25112         (nvptx_file_end): Emit code to declare the vector reduction variables.
25113         (nvptx_output_red_partition): New function.
25114         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
25115         large vector reductions.
25116         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
25117         (nvptx_init_builtins): Add VECTOR_ADDR.
25118         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
25119         Handle nvptx_expand_shared_addr.
25120         (nvptx_get_shared_red_addr): Add vector argument and handle large
25121         vectors.
25122         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
25123         large vectors.
25124         (nvptx_goacc_reduction_init): Likewise.
25125         (nvptx_goacc_reduction_fini): Likewise.
25126         (nvptx_goacc_reduction_teardown): Likewise.
25127         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
25128         init,fini,teardown}.
25129         (nvptx_init_axis_predicate): Initialize vector_red_partition.
25130         (nvptx_set_current_function): Init vector_red_partition.
25131         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
25132         (nvptx_red_partition): New insn.
25133         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
25135 2019-01-07  Tom de Vries  <tdevries@suse.de>
25137         PR target/85381
25138         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
25139         empty loops.
25141 2019-01-07  Tom de Vries  <tdevries@suse.de>
25143         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
25144         (nvptx_option_override): Init oacc_bcast_partition.
25145         (nvptx_init_oacc_workers): New function.
25146         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
25147         (nvptx_needs_shared_bcast): New function.
25148         (nvptx_find_par): Generalize to enable vectors to use shared-memory
25149         to propagate state.
25150         (nvptx_shared_propagate): Initialize vector bcast partition and
25151         synchronization state.
25152         (nvptx_single): Generalize to enable vectors to use shared-memory
25153         to propagate state.
25154         (nvptx_process_pars): Likewise.
25155         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
25156         * config/nvptx/nvptx.h (struct machine_function): Add
25157         bcast_partition and sync_bar members.
25159 2019-01-07  Tom de Vries  <tdevries@suse.de>
25161         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
25162         (nvptx_apply_dim_limits): New function.
25163         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
25164         PTX_WARP_SIZE.
25166 2019-01-07  Tom de Vries  <tdevries@suse.de>
25168         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
25169         as late as possible.
25171 2019-01-07  Tom de Vries  <tdevries@suse.de>
25173         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
25174         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
25175         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
25176         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
25177         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
25179 2019-01-07  Tom de Vries  <tdevries@suse.de>
25181         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
25183 2019-01-07  Tom de Vries  <tdevries@suse.de>
25185         * omp-offload.c (oacc_get_min_dim): New function.
25186         * omp-offload.h (oacc_get_min_dim): Declare.
25188 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
25190         PR target/88521
25191         * config/i386/i386.c (function_value_ms_64): Return small sturct in
25192         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
25194 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25196         PR tree-opt/86020
25197         Revert:
25198         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
25200         * ipa-inline.c (edge_badness): Use inlined_time instead of
25201         inline_summaries->get.
25203 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25205         * opts.c (enable_fdo_optimizations): Enable
25206         version-loops-for-strides, loop-interchange, unrol-and-jam
25207         and tree-loop-distribution.
25208         * invoke.texi: Document newly enabled options.
25210 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25212         * doc/invoke.texi (max-inline-insns-small): New parameters.
25213         * ipa-inline.c (want_early_inline_function_p): simplify.
25214         (want_inline_small_function_p): Fix pasto from previous patch;
25215         use max-inline-insns-small bound.
25216         * params.def (max-inline-insns-small): New param.
25217         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
25218         variables correctly.
25220 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25222         * doc/invoke.texi: Document max-inline-insns-size,
25223         uninlined-function-insns, uninlined-function-time,
25224         uninlined-thunk-insns and uninlined-thunk-time.
25225         * params.def: Add max-inline-insns-size,
25226         uninlined-function-insns, uninlined-function-time,
25227         uninlined-thunk-insns and uninlined-thunk-time.
25228         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
25229         new parameters.
25230         * ipa-inline.c (can_inline_edge_by_limits_p,
25231         want_inline_small_function_p): Use new parameters.
25233 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25235         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
25237 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
25239         PR middle-end/82564
25240         PR target/88620
25241         * expr.c (expand_assignment): For calls returning VLA structures
25242         if to_rtx is not a MEM, force it into a stack temporary.
25244         PR debug/88635
25245         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
25246         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
25247         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
25248         subexpressions of both operands.
25249         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
25250         subrtxes are CONSTANT_P.
25251         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
25252         2018-11-09 changes.
25254 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
25256         * params.def (hot-bb-count-ws-permille): Set to 990.
25258 2019-01-04  Martin Sebor  <msebor@redhat.com>
25260         PR c/88546
25261         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
25262         leaf.
25264 2019-01-04  Martin Sebor  <msebor@redhat.com>
25266         PR c/88363
25267         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
25269 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
25271         * gdbinit.in: Turn off pagination for the skip commands, restore
25272         it to previous state afterwards.
25274 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
25276         PR target/88594
25277         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
25278         of GET_MODE (opN) as modes of the libcall arguments.
25280 2019-01-04  Jan Beulich  <jbeulich@suse.com>
25282         * config/i386/sse.md
25283         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
25284         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
25285         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
25286         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
25287         avx512f_vmcmp<mode>3<round_saeonly_name>,
25288         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
25289         avx512f_maskcmp<mode>3,
25290         <avx512>_cvt<ssemodesuffix>2mask<mode>,
25291         <avx512>_cvt<ssemodesuffix>2mask<mode>,
25292         *<avx512>_cvtmask2<ssemodesuffix><mode>,
25293         *<avx512>_cvtmask2<ssemodesuffix><mode>,
25294         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
25295         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
25296         <avx512>_gt<mode>3<mask_scalar_merge_name>,
25297         <avx512>_gt<mode>3<mask_scalar_merge_name>,
25298         <avx512>_testm<mode>3<mask_scalar_merge_name>,
25299         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
25300         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
25301         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
25302         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
25303         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
25304         avx512cd_maskb_vec_dup<mode>,
25305         avx512cd_maskw_vec_dup<mode>,
25306         avx512dq_fpclass<mode><mask_scalar_merge_name>,
25307         avx512dq_vmfpclass<mode>,
25308         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
25309         instead of =Yk.
25311 2019-01-03  Martin Sebor  <msebor@redhat.com>
25313         PR tree-optimization/88659
25314         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
25316 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
25318         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
25319         unaligned vsx and avoid lxvd2x/stxvd2x.
25320         (gen_lvx_v4si_move): New function.
25322 2019-01-03  Tom de Vries  <tdevries@suse.de>
25324         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
25325         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
25326         function.
25327         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
25329 2019-01-03  Tom de Vries  <tdevries@suse.de>
25331         * config/nvptx/nvptx.c (struct offload_attrs): New.
25332         (populate_offload_attrs): New function.  Factor mask extraction out of
25333         nvptx_reorg.  Add extraction of dimensions.
25334         (nvptx_reorg): Use populate_offload_attrs.
25336 2019-01-03  Tom de Vries  <tdevries@suse.de>
25338         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
25339         cases for oacc_min_dims_p and routine_p.  Add asserts for
25340         oacc_default_dims_p and offload_region_p.
25342 2019-01-03  Tom de Vries  <tdevries@suse.de>
25344         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
25345         factored out of ...
25346         (nvptx_goacc_validate_dims): ... here.
25348 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
25350         PR tree-optimization/85574
25351         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
25352         structure.
25353         (struct ssa_equip_hash_traits): Declare.
25354         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
25356 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
25358         PR debug/88644
25359         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
25360         change it to qualified_type.
25362 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
25364         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
25365         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
25367 2019-01-02  Martin Sebor  <msebor@redhat.com>
25368             Jeff Law  <law@redhat.com>
25370         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
25371         (get_range_strlen_tree): Update appropriately.
25372         (get_range_strlen)
25373         * gimple-fold.h (get_range_strlen): Drop unused last argument.
25375         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
25376         rather than set_range_info.
25377         * tree-ssa-strlen.c (set_strlen_range): Extracted from
25378         maybe_set_strlen_range.  Handle potentially boundary crossing
25379         cases more conservatively.
25380         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
25381         Call set_strlen_range.
25382         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
25384         PR middle-end/88663
25385         * gimple-fold.c (get_range_strlen): Update prototype to no longer
25386         need the flexp argument.
25387         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
25388         from calls to get_range_strlen.  Update comments.  Just update
25389         VAL for an unterminated const char array and let the reset of the
25390         code handle it normally.  No longer try to set *flexp.  Adjust
25391         return value.
25392         (get_range_strlen): Update for the new get_range_strlen API.
25393         (get_maxval_strlen): Similarly.
25394         (gimple_fold_builtin_strlen): Handle update meaning of return value
25395         from get_range_strlen.
25396         * gimple-ssa-sprintf.c (get_string_length): Update for the new
25397         get_range_strlen API.
25399 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
25401         PR lto/88130
25402         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
25403         false at WPA time when body was removed.
25405 2019-01-02  Martin Liska  <mliska@suse.cz>
25407         PR tree-optimization/88650
25408         * predict.c (set_even_probabilities): Calculate probability
25409         remainer only when really used.
25411 2019-01-02  Richard Biener  <rguenther@suse.de>
25413         PR middle-end/88651
25414         * tree-data-ref.c (analyze_subscript_affine_affine): Use
25415         widest_ints when mangling max_stmt_execution results.
25417 2019-01-02  Richard Biener  <rguenther@suse.de>
25419         PR tree-optimization/88621
25420         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
25421         bitfields when canoncalizing.
25423 2019-01-02  Richard Biener  <rguenther@suse.de>
25425         PR target/87545
25426         * config/i386/x86-tune-costs.h (intel_cost): Adjust
25427         cost of cheap SSE instruction.
25429 2019-01-02  Richard Biener  <rguenther@suse.de>
25431         PR ipa/85574
25432         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
25433         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
25434         function.
25435         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
25436         set after UIDs before splitting them.
25438 2019-01-01  Martin Sebor  <msebor@redhat.com>
25439             Jeff Law  <law@redhat.com>
25441         * gimple-fold.c (get_range_strlen_tree): Record if the computed
25442         length is optimistic.  If it is, then arrange to compute the
25443         conservative length as well.
25445         * gimple-fold.h (get_range_strlen): Update prototype.
25446         * builtins.c (check_access): Update call to get_range_strlen to use
25447         c_strlen_data pointer.   Change various variable accesses to instead
25448         pull data from the c_strlen_data structure.
25449         (check_strncat_sizes, expand_builtin_strncat): Likewise.
25450         * calls.c (maybe_warn_nonstring_arg): Likewise.
25451         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
25452         minimum length if maximum lengh is unknown.
25453         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
25454         that used c_strlen, it's no longer needed.  Restructure slightly.
25455         (format_string): Set unlikely range appropriately.
25456         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
25457         formatting issues.
25458         (get_range_strlen): Accept c_strlen_data pointer for external
25459         call sites as well.  Pass through to call to internal get_range_strlen.
25460         Adjust minlen, maxlen and maxbound as needed.
25461         (get_maxval_strlen): Update comments.
25462         (gimple_fold_builtin_strlen): Update call to get_range_strlen
25463         to use c_strlen_data pointer.  Change variable accesses to instead
25464         use c_strlen_data data members.
25466         * gimple-fold.c (get_range_strlen): Update prototype.
25467         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
25468         local variables.  Use pdata to return information to caller.
25469         Update calls to get_range_strlen.  Update pdata->maxbound.
25470         (get_range_strlen -- static version): Similarly.
25471         (get_range_strlen -- extern version): Update for internal
25472         get_range_strlen API change.  Convert to external data format.
25473         (get_maxval_strlen): Similarly.
25475 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
25477         * coverage.c (get_coverage_counts): Use current_function_decl.
25478         * profile.c (read_thunk_profile): New function.
25479         (branch_prob): Add THUNK parameter.
25480         * tree-profile.c (tree_profiling): Handle thunks.
25481         * value-prof.c (init_node_map): Handle thunks.
25482         * value-prof.h (branch_prob): Upate prototype.
25483         (read_thunk_profile): Declare.
25485 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
25487         Update copyright years.
25489         * gcc.c (process_command): Update copyright notice dates.
25490         * gcov-dump.c (print_version): Ditto.
25491         * gcov.c (print_version): Ditto.
25492         * gcov-tool.c (print_version): Ditto.
25493         * gengtype.c (create_file): Ditto.
25494         * doc/cpp.texi: Bump @copying's copyright year.
25495         * doc/cppinternals.texi: Ditto.
25496         * doc/gcc.texi: Ditto.
25497         * doc/gccint.texi: Ditto.
25498         * doc/gcov.texi: Ditto.
25499         * doc/install.texi: Ditto.
25500         * doc/invoke.texi: Ditto.
25502 Copyright (C) 2019 Free Software Foundation, Inc.
25504 Copying and distribution of this file, with or without modification,
25505 are permitted in any medium without royalty provided the copyright
25506 notice and this notice are preserved.