re PR tree-optimization/92085 (ICE: tree check: expected class 'type', have 'exceptio...
[official-gcc.git] / gcc / ChangeLog
blob91809ca9c071f6867cb8beb4fcc9020c8d50e628
1 2019-10-15  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
3         PR tree-optimization/92085
4         * tree-if-conv.c (ifcvt_local_dce): Call gsi_next in else clause,
5         instead of calling it unconditionally after
6         delete_dead_or_redundant_assignment and fix indentation.
8 2019-10-15  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
10         * config/arm/vfp.md (fma<SDF:mode>4): Enable DF only when
11         TARGET_VFP_DOUBLE.
12         (*fmsub<SDF:mode>4): Likewise.
13         *fnmsub<SDF:mode>4): Likewise.
14         (*fnmadd<SDF:mode>4): Likewise.
16 2019-10-14 Joel Hutton  <Joel.Hutton@arm.com>
18         * doc/tree-ssa.texi: Update renamed macro name.
20 2019-10-14  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
22         * config/mips/mips.c (mips_cannot_force_const_mem): Reject
23         vector constants.
25 2019-10-14  Iain Sandoe  <iain@sandoe.co.uk>
27         * config/darwin.c: Use unsigned ints for the picbase label
28         counters, initialise the vars explicitly.
29         (update_pic_label_number_if_needed): Move a variable declaration
30         to where it's needed.
31         (machopic_output_function_base_name): Use a more strict checking
32         assert, and and unsigned int for the picbase label counter.
33         (machopic_get_function_picbase): Likewise.
35 2019-10-14  Richard Biener  <rguenther@suse.de>
37         PR middle-end/92046
38         * dse.c (scan_insn): Use param max_active_local_stores.
39         (dse_step1): Get PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and adjust
40         based on optimization level.
41         * loop-invariant.c (move_loop_invariants): Adjust
42         LOOP_INVARIANT_MAX_BBS_IN_LOOP based on optimization level.
43         * opts.c (default_options_optimization): Do not adjust
44         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES and
45         LOOP_INVARIANT_MAX_BBS_IN_LOOP here.
47 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
49         * config/arm/arm.c (arm_legitimize_address): Remove Thumb-2 bailout.
51 2019-10-14  Wilco Dijkstra  <wdijkstr@arm.com>
53         * config/arm/arm.c (arm_option_override): Don't override sched
54         pressure algorithm.
56 2019-10-14  Richard Biener  <rguenther@suse.de>
58         PR tree-optimization/92069
59         * tree-vect-loop.c (vect_analyze_scalar_cycles_1): For nested
60         cycles do not set vect_nested_cycle on the latch definition.
62 2019-10-14  Richard Sandiford  <richard.sandiford@arm.com>
64         * function-abi.h (expr_callee_abi): Declare.
65         * function-abi.cc (expr_callee_abi): New function.
67 2019-10-14  Aldy Hernandez  <aldyh@redhat.com>
69         * tree-vrp.c (value_range_base::set): Normalize unsigned ~[0,0]
70         into [1,MAX].
71         * tree-vrp.h (value_range_base::nonzero_p): Adjust for unsigned
72         non-zero being represented as [1,MAX].
74 2019-10-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
76         * tree-sra.c (dump_access): Add missing braces.
78 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
80         * config/darwin.c (machopic_indirection_name): Rework the
81         function to emit linker-visible symbols only for indirections
82         in the data section.  Clean up the code and update comments.
84 2019-10-13  Iain Sandoe  <iain@sandoe.co.uk>
86         * config/darwin.c (machopic_indirect_data_reference): Remove
87         redundant code.
89 2019-10-13  Nathan Sidwell  <nathan@acm.org>
91         * gengtype-lex.l (CXX_KEYWORD): Add 'mutable'.
93 2019-10-13  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
95         * doc/sourcebuild.texi (Test Directives, Add Options): Remove
96         c99_runtime.
98 2019-10-12  Jan Hubicka  <hubicka@ucw.cz>
100         * lto-streamer-out.c (collect_block_tree_leafs): Renumber statements
101         so non-virutal are before virutals.
102         (output_function): Avoid body modifications.
104 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
106         * config/pa/pa.c (pa_output_call): Load descriptor address to register
107         %r22.  Load function address before global pointer.
108         (pa_attr_length_indirect_call): Adjust length of inline versions of
109         $$dyncall.
110         (pa_output_indirect_call): Remove fast inline version of $$dyncall
111         before normal cases.  Update inline $$dyncall sequences to preserve
112         function descriptor address in register %r22.
113         (TRAMPOLINE_CODE_SIZE): Adjust.
114         (pa_asm_trampoline_template): Revise 32-bit trampoline.  Don't assume
115         register %r22 contains trampoline address.
116         (pa_trampoline_init): Adjust offsets.
117         (pa_trampoline_adjust_address): Likewise.
118         * config/pa/pa.h (TRAMPOLINE_SIZE): Adjust 32-bit size.
120 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
122         PR target/67183
123         * config/darwin.c (machopic_indirection): New field to flag
124         non-lazy-symbol-pointers in the data section.
125         (machopic_indirection_name): Compute if an indirection should
126         appear in the data section.
127         (machopic_output_data_section_indirection): New callback split
128         from machopic_output_indirection.
129         (machopic_output_stub_indirection): Likewise.
130         (machopic_output_indirection): Retain the code for non-lazy
131         symbol pointers in their regular section.
132         (machopic_finish): Use the new callbacks to order the indirection
133         output.
135 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
137         * config/darwin-protos.h (machopic_finish): Delete.
138         * config/darwin.c (machopic_finish): Make static.
140 2019-10-12  Iain Sandoe  <iain@sandoe.co.uk>
142         * config/darwin.c (darwin_file_end): Only emit empty CTOR/DTOR
143         sections when building kernel extension code.
145 2019-10-12  Palmer Dabbelt  <palmer@sifive.com>
147         * doc/extend.texi (Alternate Keywords): Change "-std=c11" to "a
148         later standard."
150 2019-10-12  John David Anglin  <danglin@gcc.gnu.org>
152         * gcc/config/pa/pa.c (pa_option_override): Remove trailing comma
153         from warning.
155 2019-10-12  Jakub Jelinek  <jakub@redhat.com>
157         PR middle-end/92063
158         * tree-eh.c (operation_could_trap_helper_p) <case COND_EXPR>
159         <case VEC_COND_EXPR>: Return false with *handled = false.
160         (tree_could_trap_p): For {,VEC_}COND_EXPR return false instead of
161         recursing on the first operand.
162         * fold-const.c (simple_operand_p_2): Use generic_expr_could_trap_p
163         instead of tree_could_trap_p.
164         * tree-ssa-sccvn.c (vn_nary_may_trap): Formatting fixes.
166 2019-10-11  Jim Wilson  <jimw@sifive.com>
168         PR rtl-optimization/91860
169         * combine.c (subst): If new_rtx is a constant, also check for
170         SIGN_EXTEND when deciding whether to call simplify_unary_operation.
172 2019-10-11  Richard Sandiford  <richard.sandiford@arm.com>
174         * expr.c (store_expr): Use rtx_to_poly_int64 rather than
175         INTVAL when calling store_bit_field.
177 2019-10-11  Wilco Dijkstra  <wdijkstr@arm.com>
179         * config/arm/arm.h (HONOR_REG_ALLOC_ORDER): Set when optimizing for
180         size.
182 2019-10-11  Bernd Edlinger  <bernd.edlinger@hotmail.de>
184         * tree-vect-loop.c (vect_analyze_loop_operations): Adjust call to
185         vectorizable_live_operation.
186         (vectorizable_live_operation): Adjust parameters.
187         * tree-vect-stmts.c (vect_init_vector,
188         vect_gen_widened_results_half): Fix typo in function comment.
189         (can_vectorize_live_stmts): Adjust function comment.
190         Adjust parameters.  Adjust call to vectorizable_live_operation.
191         (vect_analyze_stmt): Adjust call to can_vectorize_live_stmts.
192         (vect_transform_stmt): Adjust function comment.  Adjust call to
193         can_vectorize_live_stmts.
194         * tree-vectorizer.h (vectorizable_live_operation): Adjust parameters.
196 2019-10-11  Richard Biener  <rguenther@suse.de>
198         PR tree-optimization/90883
199         PR tree-optimization/91091
200         * tree-ssa-sccvn.c (vn_reference_lookup_3): Use correct
201         alias-sets both for recording VN table entries and continuing
202         walking after translating through copies.  Handle same-sized
203         reads from SSA names by returning the plain SSA name.
204         (eliminate_dom_walker::eliminate_stmt): Properly handle
205         non-size precision stores in redundant store elimination.
207 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
209         * ggc-page.c (release_pages): Output statistics when !quiet_flag.
210         (ggc_collect): Dump later to not interfere with release_page dump.
211         (ggc_trim): New function.
212         * ggc-none.c (ggc_trim): New.
213         * ggc.h (ggc_trim): Declare.
215 2019-10-11  Richard Biener  <rguenther@suse.de>
217         PR tree-optimization/92066
218         PR tree-optimization/92046
219         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
220         Fix bogus cost model check.
222 2019-10-11  Tobias Burnus  <tobias@codesourcery.com>
224         * langhooks-def.h (LANG_HOOKS_OMP_IS_ALLOCATABLE_OR_PTR): Define.
225         (LANG_HOOKS_DECLS): Add it.
226         * langhooks.h (lang_hooks_for_decls): Add omp_is_allocatable_or_ptr;
227         update comment for omp_is_optional_argument.
228         * omp-general.c (omp_is_allocatable_or_ptr): New.
229         * omp-general.h (omp_is_allocatable_or_ptr): Declare.
230         * omp-low.c (scan_sharing_clauses, lower_omp_target): Handle
231         Fortran's optional arguments and allocatable/pointer scalars
232         with use_device_addr.
234 2019-10-11  Ilya Leoshkevich  <iii@linux.ibm.com>
236         PR target/77918
237         * config/s390/2827.md: Add new opcodes.
238         * config/s390/2964.md: Likewise.
239         * config/s390/3906.md: Likewise.
240         * config/s390/8561.md: Likewise.
241         * config/s390/s390-builtins.def (s390_vfchesb): Use
242         the new vec_cmpgev4sf_quiet_nocc.
243         (s390_vfchedb): Use the new vec_cmpgev2df_quiet_nocc.
244         (s390_vfchsb): Use the new vec_cmpgtv4sf_quiet_nocc.
245         (s390_vfchdb): Use the new vec_cmpgtv2df_quiet_nocc.
246         (vec_cmplev4sf): Use the new vec_cmplev4sf_quiet_nocc.
247         (vec_cmplev2df): Use the new vec_cmplev2df_quiet_nocc.
248         (vec_cmpltv4sf): Use the new vec_cmpltv4sf_quiet_nocc.
249         (vec_cmpltv2df): Use the new vec_cmpltv2df_quiet_nocc.
250         * config/s390/s390-modes.def (CCSFPS): New mode.
251         * config/s390/s390.c (s390_match_ccmode_set): Support CCSFPS.
252         (s390_select_ccmode): Return CCSFPS for LT, LE, GT, GE and LTGT.
253         (s390_branch_condition_mask): Reuse CCS for CCSFPS.
254         (s390_expand_vec_compare): Use non-signaling patterns where
255         necessary.
256         (s390_reverse_condition): Support CCSFPS.
257         * config/s390/s390.md (*cmp<mode>_ccsfps): New pattern.
258         * config/s390/vector.md: (VFCMP_HW_OP): Remove.
259         (asm_fcmp_op): Likewise.
260         (*smaxv2df3_vx): Use pattern for quiet comparison.
261         (*sminv2df3_vx): Likewise.
262         (*vec_cmp<VFCMP_HW_OP:code><mode>_nocc): Remove.
263         (*vec_cmpeq<mode>_quiet_nocc): New pattern.
264         (vec_cmpgt<mode>_quiet_nocc): Likewise.
265         (vec_cmplt<mode>_quiet_nocc): New expander.
266         (vec_cmpge<mode>_quiet_nocc): New pattern.
267         (vec_cmple<mode>_quiet_nocc): New expander.
268         (*vec_cmpeq<mode>_signaling_nocc): New pattern.
269         (*vec_cmpgt<mode>_signaling_nocc): Likewise.
270         (*vec_cmpgt<mode>_signaling_finite_nocc): Likewise.
271         (*vec_cmpge<mode>_signaling_nocc): Likewise.
272         (*vec_cmpge<mode>_signaling_finite_nocc): Likewise.
273         (vec_cmpungt<mode>): New expander.
274         (vec_cmpunge<mode>): Likewise.
275         (vec_cmpuneq<mode>): Use quiet patterns.
276         (vec_cmpltgt<mode>): Allow only on z14+.
277         (vec_cmpordered<mode>): Use quiet patterns.
278         (vec_cmpunordered<mode>): Likewise.
279         (VEC_CMP_EXPAND): Add ungt and unge.
281 2019-10-11  Jan Hubicka  <hubicka@ucw.cz>
283         * gimple-streamer-out.c (output_gimple_stmt): Add explicit function
284         parameter.
285         * lto-streamer-out.c: Include tree-dfa.h.
286         (output_cfg): Do not use cfun.
287         (lto_prepare_function_for_streaming): New.
288         (output_function): Do not push cfun; do not initialize loop optimizer.
289         * lto-streamer.h (lto_prepare_function_for_streaming): Declare.
290         * passes.c (ipa_write_summaries): Use it.
291         (ipa_write_optimization_summaries): Do not modify bodies.
292         * tree-dfa.c (renumber_gimple_stmt_uids): Add function parameter.
293         * tree.dfa.h (renumber_gimple_stmt_uids): Update prototype.
294         * tree-ssa-dse.c (pass_dse::execute): Update use of
295         renumber_gimple_stmt_uids.
296         * tree-ssa-math-opts.c (pass_optimize_widening_mul::execute): Likewise.
298 2019-10-11  Kewen Lin  <linkw@gcc.gnu.org>
300         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
301         vec_promote_demote cost to 1 for non-Power7 VSX architectures.
303 2019-10-10  Joseph Myers  <joseph@codesourcery.com>
305         * ginclude/float.h [!__DEC32_MANT_DIG__]: Do not define DFP
306         macros.
307         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]:
308         Also define DFP macros for these conditions.
309         [!__STDC_WANT_DEC_FP__] (DEC32_SUBNORMAL_MIN, DEC64_SUBNORMAL_MIN,
310         DEC128_SUBNORMAL_MIN): Do not define.
311         [__STDC_WANT_IEC_60559_DFP_EXT__ || __STDC_VERSION__ > 201710L]
312         (DEC32_TRUE_MIN, DEC64_TRUE_MIN, DEC128_TRUE_MIN): New macros.
314 2019-10-10  Xiong Hu Luo  <luoxhu@linux.ibm.com>
315             Sandra Loosemore  <sandra@codesourcery.com>
317         PR middle-end/26241
318         * doc/lto.texi (IPA): Reference to the IPA passes.
319         * doc/passes.texi (Pass manager): Add node IPA passes and
320           description for each IPA pass.
322 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
324         * ipa-reference.c: Do not include splay-tree.h
325         (reference_vars_to_consider): Turn to hash map.
326         (get_static_name, ipa_init, analyze_function, propagate,
327         stream_out_bitmap, ipa_reference_write_optimization_summary,
328         ipa_reference_write_optimization_summary): Update.
330 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
332         * ipa-reference.c (propagate): Fix releasing of IPA summaries.
334 2019-10-10  Iain Sandoe  <iain@sandoe.co.uk>
336         * config/darwin.c: Lookup Objective C metadata and force indirection
337         for IVAR refs.
339 2019-10-10  Michael Meissner  <meissner@linux.ibm.com>
341         * config/rs6000/rs6000.c (quad_address_p): Add check for prefixed
342         addresses.
343         (mem_operand_gpr): Add check for prefixed addresses.
344         (mem_operand_ds_form): Add check for prefixed addresses.
345         (rs6000_legitimate_offset_address_p): If we support prefixed
346         addresses, check for a 34-bit offset instead of 16-bit.
347         (rs6000_legitimate_address_p): Add check for prefixed addresses.
348         Do not allow load/store with update if the address is prefixed.
349         (rs6000_mode_dependent_address):  If we support prefixed
350         addresses, check for a 34-bit offset instead of 16-bit.
352 2019-10-10  Ilya Leoshkevich  <iii@linux.ibm.com>
354         PR target/77918
355         * config/s390/vector.md (vcond_comparison_operator): New
356         predicate.
357         (vcond<V_HW:mode><V_HW2:mode>): Use vcond_comparison_operator.
359 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
361         PR 87488
362         * Makefile.in (CFLAGS-opts.o): Pass in DOCUMENTATION_ROOT_URL via
363         -D.
364         * configure.ac (--with-documentation-root-url): New option.
365         * configure: Regenerate.
366         * diagnostic-format-json.cc (json_end_diagnostic): If there is an
367         option URL, add it as a new string field of the diagnostic option.
368         * diagnostic.c (diagnostic_initialize): Initialize get_option_url.
369         (print_option_information): If get_option_url is non-NULL, call
370         it, and if the result is non-NULL, potentially emit an escape
371         sequence to markup the option text with the resulting URL.
372         * diagnostic.h (diagnostic_context::get_option_url): New callback.
373         * doc/invoke.texi (-fdiagnostics-format=): Add "option_url" to
374         example of JSON output.
375         * opts-diagnostic.h (get_option_url): New decl.
376         * opts.c (get_option_url): New function.
377         * toplev.c (general_init): Initialize the get_option_url callback.
379 2019-10-10  David Malcolm  <dmalcolm@redhat.com>
381         PR 87488
382         * common.opt (fdiagnostics-urls=): New option.
383         (diagnostic-url.h): Add SourceInclude.
384         (diagnostic_url_rule): New enum.
385         * diagnostic-color.c: Include "diagnostic-url.h".
386         (diagnostic_urls_enabled_p): New function.
387         * diagnostic-url.h: New file.
388         * diagnostic.c: Include "diagnostic-url.h".
389         (diagnostic_urls_init): New function.
390         * diagnostic.h (diagnostic_urls_init): New decl.
391         * doc/invoke.texi (Diagnostic Message Formatting Options): Add
392         -fdiagnostics-urls to the list.
393         (-fdiagnostics-urls): New option.
394         * gcc.c (driver_handle_option): Handle OPT_fdiagnostics_urls_.
395         (driver::global_initializations): Call diagnostic_urls_init.
396         * opts-global.c (init_options_once): Likewise.
397         * opts.c (common_handle_option): Handle OPT_fdiagnostics_urls_.
398         * pretty-print.c (pretty_printer::pretty_printer): Initialize
399         show_urls.
400         (pp_begin_url): New function.
401         (pp_end_url): New function.
402         (selftest::test_urls): New selftest.
403         (selftest::pretty_print_c_tests): Call it.
404         * pretty-print.h (pretty_printer::show_urls): New field.
405         (pp_begin_url): New decl.
406         (pp_end_url): New decl.
408 2019-10-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
410         PR target/92022
411         * config/alpha/alpha.c (alpha_handle_trap_shadows): Skip DEBUG_INSN.
413 2019-10-10  Oleg Endo  <olegendo@gcc.gnu.org>
415         PR target/88630
416         * config/sh/sh.h (TARGET_FPU_SH4_300): New macro.
417         * config/sh/sh.c (sh_option_override): Enable fsca and fsrra insns
418         also for TARGET_FPU_SH4_300.
419         (sh_emit_mode_set): Check for TARGET_FPU_SH4_300 instead of
420         TARGET_SH4_300.
421         * config/sh/sh.md (toggle_pr): Add TARGET_FPU_SH4_300 condition.
422         (negsf2): Expand to either negsf2_fpscr or negsf2_no_fpscr.
423         (*negsf2_i): Split into ...
424         (negsf2_fpscr, negsf2_no_fpscr): ... these new patterns.
425         (abssf2): Expand to either abssf2_fpsc or abssf2_no_fpsc.
426         (**abssf2_i): Split into ...
427         (abssf2_fpscr, abssf2_no_fpscr): ... these new patterns.
428         (negdf2): Expand to either negdf2_fpscr or negdf2_no_fpscr.
429         (*negdf2_i): Split into ...
430         (negdf2_fpscr, negdf2_no_fpscr): ... these new patterns.
431         (absdf2): Expand to either absdf2_fpscr or absdf2_no_fpsc.
432         (**abssf2_i): Split into ...
433         (absdf2_fpscr, absdf2_no_fpscr): ... these new patterns.
435 2019-10-10  Richard Biener  <rguenther@suse.de>
437         PR middle-end/92046
438         * opts.c (finish_options): Do not influence global --params
439         from options that are adjustable per function.
440         * tree-vect-data-refs.c (vect_enhance_data_refs_alignment):
441         Apply --param adjustment based on active cost-model.
442         * tree-ssa-phiopt.c (cond_if_else_store_replacement): Disable
443         further store-sinking when vectorization or if-conversion
444         are not enabled.
446 2019-10-10  Jan Hubicka  <hubicka@ucw.cz>
448         PR middle-end/92037
449         * cgraph.c (symbol_table_test::symbol_table_test): Use ggc_alloc
450         rather than ggc_alloc_cleared to alloc symbol table.
451         * toplev.c (general_init): Likewise.
452         * cgraph.h (symbol_table): Explicitly construct every field.
454 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
456         * common/config/s390/s390-common.c (PF_ARCH13): Rename to...
457         (PF_Z15): ... this.
458         * config.gcc: Add z15 as option for --with-arch and --with-tune
459         configure switches.
460         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Add
461         error reporting for unsupported builtins.
462         * config/s390/s390-opts.h (enum processor_type): Rename
463         PROCESSOR_8561_ARCH13 to PROCESSOR_8561_Z15.
464         * config/s390/8561.md: Rename arch13 to z15 throughout the file.
465         * config/s390/driver-native.c (s390_host_detect_local_cpu):
466         Likewise.
467         * config/s390/s390-builtins.def: Likewise.
468         * config/s390/s390.c (processor_table): Add z15 as option and keep arch13 as alternative.
469         (s390_expand_builtin): Add missing check for unsupported builtins.
470         (s390_canonicalize_comparison): Rename TARGET_ARCH13 to TARGET_Z15.
471         (s390_rtx_costs): Likewise.
472         (s390_get_sched_attrmask): Rename arch13 to z15.
473         (s390_get_unit_mask): Likewise.
474         (s390_is_fpd): Likewise.
475         (s390_is_fxd): Likewise.
476         * config/s390/s390.h (enum processor_flags): Likewise.
477         * config/s390/s390.md: Likewise.
478         * config/s390/vector.md: Likewise.
479         * config/s390/vx-builtins.md: Likewise.
480         * config/s390/s390.opt: Add z15 to processor_type value.
482 2019-10-10  Andreas Krebbel  <krebbel@linux.ibm.com>
484         PR target/91035
485         * config/s390/s390-protos.h (s390_output_split_stack_data): Add
486         prototype.
487         * config/s390/s390.md (UNSPECV_SPLIT_STACK_DATA): Remove.
488         ("split_stack_data", "split_stack_call")
489         ("split_stack_call_<mode>", "split_stack_cond_call")
490         ("split_stack_cond_call_<mode>"): Remove.
491         ("@split_stack_call<mode>", "@split_stack_cond_call<mode>"): New
492         insn definition.
493         * config/s390/s390.c (s390_output_split_stack_data): New function.
494         (s390_expand_split_stack_prologue): Use the merged expander.
496 2019-10-09  Martin Sebor  <msebor@redhat.com>
498         PR tree-optimization/90879
499         * builtins.c (check_access): Avoid using maxbound when null.
500         * calls.c (maybe_warn_nonstring_arg): Adjust to get_range_strlen change.
501         * doc/invoke.texi (-Wstring-compare): Document new warning option.
502         * gimple-fold.c (get_range_strlen_tree): Make setting maxbound
503         conditional.
504         (get_range_strlen): Overwrite initial maxbound when non-null.
505         * gimple-ssa-sprintf.c (get_string_length): Adjust to get_range_strlen
506         changes.
507         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Same.
508         (used_only_for_zero_equality): New function.
509         (handle_builtin_memcmp): Call it.
510         (determine_min_objsize): Return an integer instead of tree.
511         (get_len_or_size, strxcmp_eqz_result): New functions.
512         (maybe_warn_pointless_strcmp): New function.
513         (handle_builtin_string_cmp): Call it.  Fold zero-equality of strcmp
514         between a longer string and a smaller array.
515         (get_range_strlen_dynamic): Overwrite initial maxbound when non-null.
517 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
519         * config/darwin.c (darwin_override_options): Make the check for
520         Objective-C ABI version more specific for 64bit code.
522 2019-10-09  Iain Sandoe  <iain@sandoe.co.uk>
524         * config/darwin.c (machopic_indirect_data_reference): Set flag to
525         indicate that the new symbol is an indirection.
526         (machopic_indirect_call_target): Likewise.
527         * config/darwin.h (MACHO_SYMBOL_FLAG_INDIRECTION): New.
528         (MACHO_SYMBOL_INDIRECTION_P): New.
529         (MACHO_SYMBOL_FLAG_STATIC): Adjust bit number.
531 2019-10-08  Jason Merrill  <jason@redhat.com>
533         * doc/invoke.texi: Document -fconcepts-ts.
535 2019-10-09  Richard Biener  <rguenther@suse.de>
537         * tree-vect-loop.c (vect_is_simple_reduction): Simplify and
538         allow stmts other than GIMPLE_ASSIGN in nested cycles.
540 2019-10-08  Richard Biener  <rguenther@suse.de>
542         * tree-vectorizer.h (_stmt_vec_info::reduc_vectype_in): New.
543         (_stmt_vec_info::force_single_cycle): Likewise.
544         (STMT_VINFO_FORCE_SINGLE_CYCLE): New.
545         (STMT_VINFO_REDUC_VECTYPE_IN): Likewise.
546         * tree-vect-loop.c (vectorizable_reduction): Set
547         STMT_VINFO_REDUC_VECTYPE_IN and STMT_VINFO_FORCE_SINGLE_CYCLE.
548         (vect_transform_reduction): Use them to remove redundant code.
549         (vect_transform_cycle_phi): Likewise.
551 2019-10-08  Dmitrij Pochepko <dmitrij.pochepko@bell-sw.com>
553         PR tree-optimization/90836
554         * gcc/match.pd (popcount): New pattern.
556 2019-10-08  Martin Sebor  <msebor@redhat.com>
558         PR middle-end/92026
559         PR middle-end/92014
560         * tree-ssa-strlen.c (count_nonzero_bytes): Avoid recursing for MEM_REF
561         again once nbytes has been set.  Set the access size when not yet set.
563 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
565         * config/darwin.c (machopic_select_section): Remove dead code for
566         old Objective-C section selection method, replace with unreachable.
568 2019-10-08  Iain Sandoe  <iain@sandoe.co.uk>
570         * config/darwin.c (machopic_indirect_data_reference): Check for
571         required indirections before making direct access to defined
572         values.
573         (machopic_output_indirection): Place the indirected pointes for
574         required indirections into the non-lazy symbol pointers section.
575         (darwin_encode_section_info):
576         * config/darwin.h (MACHO_SYMBOL_FLAG_MUST_INDIRECT): New.
577         (MACHO_SYMBOL_MUST_INDIRECT_P): New.
579 2019-10-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
581         PR target/91994
582         * config/i386/i386.c (x86_avx_u128_mode_needed): Use SSE_REG
583         instead of ALL_SSE_REG to check if function call preserves some
584         256-bit SSE registers.
586 2019-10-08  Tulio Magno Quites Machado Filho  <tuliom@linux.ibm.com>
588         * config.gcc: Move -L usage from LINK_OS_EXTRA_SPEC32 and
589         LINK_OS_EXTRA_SPEC64 to MD_STARTFILE_PREFIX and
590         MD_STARTFILE_PREFIX_1 when using --with-advance-toolchain.
592 2019-10-08  Richard Biener  <rguenther@suse.de>
594         * tree-vectorizer.h (_stmt_vec_info::v_reduc_type): Remove.
595         (_stmt_vec_info::is_reduc_info): Add.
596         (STMT_VINFO_VEC_REDUCTION_TYPE): Remove.
597         (vectorizable_condition): Remove.
598         (vectorizable_shift): Likewise.
599         (vectorizable_reduction): Adjust.
600         (info_for_reduction): New.
601         * tree-vect-loop.c (vect_force_simple_reduction): Fold into...
602         (vect_analyze_scalar_cycles_1): ... here.
603         (vect_analyze_loop_operations): Adjust.
604         (needs_fold_left_reduction_p): Simplify for single caller.
605         (vect_is_simple_reduction): Likewise.  Remove stmt restriction
606         for nested cycles not part of double reductions.
607         (vect_model_reduction_cost): Pass in the reduction type.
608         (info_for_reduction): New function.
609         (vect_create_epilog_for_reduction): Use it, access reduction
610         meta off the stmt info it returns.  Use STMT_VINFO_REDUC_TYPE
611         instead of STMT_VINFO_VEC_REDUCTION_TYPE.
612         (vectorize_fold_left_reduction): Remove pointless assert.
613         (vectorizable_reduction): Analyze the full reduction when
614         visiting the outermost PHI.  Simplify.  Use STMT_VINFO_REDUC_TYPE
615         instead of STMT_VINFO_VEC_REDUCTION_TYPE.  Direct reduction
616         stmt code-generation to vectorizable_* in most cases.  Verify
617         code-generation only for cases handled by
618         vect_transform_reductuon.
619         (vect_transform_reduction): Use info_for_reduction to get at
620         reduction meta.  Simplify.
621         (vect_transform_cycle_phi): Likewise.
622         (vectorizable_live_operation): Likewise.
623         * tree-vect-patterns.c (vect_reassociating_reduction_p): Look
624         at the PHI node for STMT_VINFO_REDUC_TYPE.
625         * tree-vect-slp.c (vect_schedule_slp_instance): Remove no
626         longer necessary code.
627         * tree-vect-stmts.c (vectorizable_shift): Make static again.
628         (vectorizable_condition): Likewise.  Get at reduction related
629         info via info_for_reduction.
630         (vect_analyze_stmt): Adjust.
631         (vect_transform_stmt): Likewise.
632         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
633         STMT_VINFO_REDUC_TYPE instead of STMT_VINFO_VEC_REDUCTION_TYPE.
635 2019-10-08  Joseph Myers  <joseph@codesourcery.com>
637         * doc/invoke.texi (-ffp-int-builtin-inexact): Document
638         -fno-fp-int-builtin-inexact default for C2X.
640 2019-10-07  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
641             Richard Biener  <rguenther@suse.de>
643         PR tree-optimization/91532
644         * tree-if-conv.c: Include tree-ssa-dse.h.
645         (ifcvt_local_dce): Change param from bb to loop,
646         and call dse_classify_store.
647         (tree_if_conversion): Pass loop instead of loop->header as arg
648         to ifcvt_local_dce.
649         * tree-ssa-dse.c: Include tree-ssa-dse.h.
650         (delete_dead_or_redundant_assignment): Remove static qualifier from
651         declaration, and add prototype in tree-ssa-dse.h.
652         (dse_store_status): Move to tree-ssa-dse.h.
653         (dse_classify_store): Remove static qualifier and add new tree param
654         stop_at_vuse, and add prototype in tree-ssa-dse.h.
655         * tree-ssa-dse.h: New header.
657 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
659         * config/darwin.c (machopic_output_indirection): Don't put
660         hidden symbol indirections into the .data section, use the
661         non-lazy symbol pointers section as normal.
662         (darwin_encode_section_info): Record if a symbol is hidden.
663         * config/darwin.h (MACHO_SYMBOL_FLAG_HIDDEN_VIS): New.
664         (MACHO_SYMBOL_HIDDEN_VIS_P): New.
666 2019-10-07  Iain Sandoe  <iain@sandoe.co.uk>
668         * config/darwin.c (machopic_symbol_defined_p): Use symbol flag
669         predicates instead of accessing bits directly.
670         (machopic_indirect_call_target): Likewise.
671         (machopic_output_indirection): Likewise.
672         (darwin_encode_section_info): Improve description.  Use renamed
673         symbol flags.  Use predicate macros for variables and functions.
674         * config/darwin.h:
675         Rename MACHO_SYMBOL_VARIABLE to MACHO_SYMBOL_FLAG_VARIABLE.
676         Rename MACHO_SYMBOL_DEFINED to MACHO_SYMBOL_FLAG_DEFINED.
677         Rename MACHO_SYMBOL_STATIC to MACHO_SYMBOL_FLAG_STATIC.
678         (MACHO_SYMBOL_VARIABLE_P): New.
679         (MACHO_SYMBOL_DEFINED_P):New.
680         (MACHO_SYMBOL_STATIC_P): New.
681         * config/i386/darwin.h (MACHO_SYMBOL_FLAG_VARIABLE): Delete.
682         (SYMBOL_FLAG_SUBT_DEP): New.
683         * config/rs6000/darwin.h (SYMBOL_FLAG_SUBT_DEP): New.
685 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
687         * config/msp430/msp430.c (msp430_file_end): s/msp_/msp430_/
688         (msp430_expand_epilogue): Likewise.
689         * config/msp430/predicates.md: Likewise.
690         * config/msp430/msp430.md: Likewise.
691         Replace blocks of 8 spaces with tabs.
693 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
695         * config/msp430/msp430-protos.h (msp430_split_addsi): New prototype.
696         * config/msp430/msp430.c (msp430_split_addsi): New.
697         * config/msp430/msp430.md: Call msp430_split_addsi () instead of using
698         a block of C code for splitting addsi.
700 2019-10-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
702         * config/i386/i386-expand.c (ix86_expand_floorceildf_32,
703         ix86_expand_rounddf_32): Reorder functions.
704         * config/i386/i386-protos.h: Update.
706 2019-10-07  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
708         * config.in: Regenerate.
709         * config/msp430/constraints.md: Fix docstring for "Ys" constraint.
710         Add new "Yx" constraint.
711         * config/msp430/driver-msp430.c (msp430_propagate_region_opt): New spec
712         function.
713         * config/msp430/msp430-protos.h (msp430_op_not_in_high_mem): New
714         prototype.
715         * config/msp430/msp430.c (msp430_option_override): Allow the lower
716         code/data region to be selected in the small memory model.
717         (msp430_section_attr): Don't warn if the "section" and "lower"
718         attributes are used together.
719         (msp430_handle_generic_attribute): Likewise.
720         (msp430_var_in_low_mem): New function.
721         (TARGET_ENCODE_SECTION_INFO): Define.
722         (msp430_encode_section_info): New function.
723         (gen_prefix): Return early in the small memory model.
724         Require TARGET_USE_LOWER_REGION_PREFIX to be set before adding the
725         ".lower" prefix if -m{code,data}-region=lower have been passed.
726         (msp430_output_aligned_decl_common): Emit common symbols when
727         -mdata-region=lower is passed unless TARGET_USE_LOWER_REGION_PREFIX is
728         set.
729         (TARGET_ASM_FILE_END): Define.
730         (msp430_file_end): New function.
731         (msp430_do_not_relax_short_jumps): Allow relaxation when
732         function will be in the lower region.
733         (msp430_op_not_in_high_mem): New function.
734         (msp430_print_operand): Check "msp430_op_not_in_high_mem" for
735         the 'X' operand selector.
736         Clarify comment for 'x' operand selector.
737         * config/msp430/msp430.h (LINK_SPEC): Propagate
738         -m{code,data}-region to the linker via spec function
739         msp430_propagate_region_opt.
740         (msp430_propagate_region_opt): New prototype.
741         (EXTRA_SPEC_FUNCTIONS): Add msp430_propagate_region_opt.
742         (SYMBOL_FLAG_LOW_MEM): Define.
743         * config/msp430/msp430.md (addsipsi3): Add missing "%X" operand
744         selector.
745         (zero_extendqihi2): Fix operand number used by "%X" selector.
746         (zero_extendqisi2): Likewise.
747         (zero_extendhisi2): Likewise.
748         (movqi): Use "Yx" constraint in place of "%X" operand selector.
749         (movhi): Likewise.
750         (addqi3): Likewise.
751         (addhi3): Likewise.
752         (addsi3): Likewise.
753         (addhi3_cy): Likewise.
754         (addchi4_cy): Likewise.
755         (subqi3): Likewise.
756         (subhi3): Likewise.
757         (subsi3): Likewise.
758         (bic<mode>3): Likewise.
759         (and<mode>3): Likewise.
760         (ior<mode>3): Likewise.
761         (xor<mode>3): Likewise.
762         (slli_1): Add missing "%X" operand selector.
763         (slll_1): Likewise.
764         (slll_2): Likewise.
765         (srai_1): Likewise.
766         (sral_1): Likewise.
767         (sral_2): Likewise.
768         (srli_1): Likewise.
769         (srll_1): Likewise.
770         (cbranchqi4_real): Use "Yx" constraint in place of "%X" operand
771         selector.
772         (cbranchhi4_real): Likewise.
773         (cbranchqi4_reversed): Likewise.
774         (cbranchhi4_reversed): Likewise.
775         (*bitbranch<mode>4): Likewise.
776         (*bitbranch<mode>4_z): Remove unnecessary "%x" operand selector.
777         * config/msp430/msp430.opt (mcode-region=): Set default to
778         MSP430_REGION_LOWER. Improve docstring.
779         (mdata-region=): Likewise.
780         (muse-lower-region-prefix): New option.
781         * config/msp430/t-msp430 (MULTILIB_OPTIONS): Add
782         mdata-region=none multilib.
783         (MULTILIB_MATCHES): Set mdata-region={upper,either} to match
784         mdata-region=none multilib.
785         MULTILIB_EXCEPTIONS: Remove.
786         MULTILIB_REQUIRED: Define.
787         * configure: Regenerate.
788         * configure.ac: Define HAVE_AS_GNU_ATTRIBUTE and
789         HAVE_AS_MSPABI_ATTRIBUTE if GAS version >= 2.33.50.
790         * doc/extend.texi: Clarify comment for {upper,lower,either}
791         function attributes.
792         Add separate description for "lower" variable attribute.
794 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
796         PR target/77918
797         * optabs-tree.c (vcond_icode_p): New function.
798         (vcond_eq_icode_p): Likewise.
799         (expand_vec_cond_expr_p): Use vcond_icode_p and
800         vcond_eq_icode_p.
801         * optabs.c (can_vcond_compare_p): New function.
802         * optabs.h (can_vcond_compare_p): Likewise.
804 2019-10-07  Ilya Leoshkevich  <iii@linux.ibm.com>
806         PR target/77918
807         * gimple-expr.c (gimple_cond_get_ops_from_tree): Assert that the
808         caller passes a non-trapping condition.
809         (is_gimple_condexpr): Allow trapping conditions.
810         (is_gimple_condexpr_1): New helper function.
811         (is_gimple_condexpr_for_cond): New function, acts like old
812         is_gimple_condexpr.
813         * gimple-expr.h (is_gimple_condexpr_for_cond): New function.
814         * gimple.c (gimple_could_trap_p_1): Handle COND_EXPR and
815         VEC_COND_EXPR. Fix an issue with statements like i = (fp < 1.).
816         * gimplify.c (gimplify_cond_expr): Use
817         is_gimple_condexpr_for_cond.
818         (gimplify_expr): Allow is_gimple_condexpr_for_cond.
819         * tree-eh.c (operation_could_trap_p): Assert on COND_EXPR and
820         VEC_COND_EXPR.
821         (tree_could_trap_p): Handle COND_EXPR and VEC_COND_EXPR.
822         * tree-ssa-forwprop.c (forward_propagate_into_gimple_cond): Use
823         is_gimple_condexpr_for_cond, remove pointless tmp check
824         (forward_propagate_into_cond): Remove pointless tmp check.
826 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
828         * gimple-iterator.h (gsi_next_nonvirtual_phi): Change the semantics to
829         match that of other gsi_next_* functions.  Adjust the comment.
830         (gsi_start_nonvirtual_phis): New function.
831         * ipa-icf.c (sem_function::compare_phi_node): Update uses of
832         gsi_next_nonvirtual_phi accordingly.  (No functional change.)
834 2019-10-07 Vladislav Ivanishin  <vlad@ispras.ru>
836         * doc/invoke.texi (-Wuninitialized): Don't mention the clobbered by
837         setjmp situation here.  Fix a verb's ending: "the exact variables or
838         elements for which there are warnings depends" -> "... depend".
840 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
842         * ipa-prop.c (ipa_vr::nonzero_p): Add TYPE_UNSIGNED check.
844 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
846         * ipa-prop.c (ipa_vr::nonzero_p): New.
847         (ipcp_update_vr): Use nonzero_p instead of open-coding check for
848         non-zero range.
849         * ipa-prop.h (class ipa_vr): Add nonzero_p.
850         * tree-vrp.c (range_has_numeric_bounds_p): New.
851         (range_int_cst_p): Use range_has_numeric_bounds_p.
852         (get_range_op_handler): New.
853         (supported_types_p): New.
854         (defined_ranges_p): New.
855         (drop_undefines_to_varying): New.
856         (range_fold_binary_symbolics_p): New.
857         (range_fold_unary_symbolics_p): New.
858         (range_fold_unary_expr): Extract out into above functions.
859         (range_fold_binary_expr): Same.
860         (value_range_base::normalize_addresses): New.
861         (value_range_base::normalize_symbolics): Normalize addresses.
862         * tree-vrp.h (class value_range_base): Add normalize_addresses.
864 2019-10-07  Aldy Hernandez  <aldyh@redhat.com>
866         * tree-vrp.c (value_range_base::singleton_p): Use
867         value_range_base::num_pairs instead of vrp_val_is* to check
868         if a range has one sub-range.
870 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
872         * ira-lives.c (check_and_make_def_conflict): Handle cases in which
873         DEF is not a true earlyclobber but is tied to a specific input
874         operand, and so is effectively earlyclobber wrt inputs that have
875         different values.
876         (make_early_clobber_and_input_conflicts): Pass this case to the above.
878 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
880         * machmode.h (opt_mode): Mark constructors with CONSTEXPR.
881         (pod_mode): Mark operators likewise.
882         (scalar_int_mode): Mark non-default constructors and
883         operators with CONSTEXPR.
884         (scalar_float_mode, scalar_mode, complex_mode): Likewise.
885         (fixed_size_mode): Likewise.
887 2019-10-07  Richard Sandiford  <richard.sandiford@arm.com>
889         PR target/91994
890         * config/i386/sse.md (avx_vzeroupper): Turn into a define_expand
891         and wrap the unspec_volatile in a parallel.
892         (*avx_vzeroupper): New define_insn.  Use a match_parallel around
893         the unspec_volatile.
894         * config/i386/predicates.md (vzeroupper_pattern): Expect the
895         unspec_volatile to be wrapped in a parallel.
896         * config/i386/i386-features.c (ix86_add_reg_usage_to_vzeroupper)
897         (ix86_add_reg_usage_to_vzerouppers): New functions.
898         (rest_of_handle_insert_vzeroupper): Use them to add register
899         usage information to the vzeroupper instructions.
901 2019-10-07  Richard Biener  <rguenther@suse.de>
903         PR tree-optimization/91975
904         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Consistently
905         handle invariants.
907 2019-10-06  Richard Sandiford  <richard.sandiford@arm.com>
909         * var-tracking.c (dataflow_set_clear_at_call): Hoist temporary
910         function result outside of EXECUTE_IF_SET_IN_HARD_REG_SET.
912 2019-10-06  Iain Sandoe  <iain@sandoe.co.uk>
914         * config/darwin.c (darwin_override_options): Adjust objective-c
915         ABI version error messages to avoid punctuation and contracted
916         negations.
918 2019-10-05  Jan Hubicka  <hubicka@ucw.cz>
920         * ipa-inline.c: Fix type; compute size rather than self_size
921         for size of caller function.
923 2019-10-05  Iain Sandoe  <iain@sandoe.co.uk>
925         PR target/59888
926         * config/darwin.c (darwin_rodata_section): Add relocation flag,
927         choose const_data section for constants with relocations.
928         (machopic_select_section): Pass relocation flag to
929         darwin_rodata_section ().
931 2019-10-05  Jakub Jelinek  <jakub@redhat.com>
933         PR tree-optimization/91734
934         * generic-match-head.c: Include fold-const-call.h.
935         * match.pd (sqrt(x) cmp c): Check the boundary value and
936         in case inexact computation of c*c affects comparison of the boundary,
937         turn LT_EXPR into LE_EXPR, GE_EXPR into GT_EXPR, LE_EXPR into LT_EXPR
938         or GT_EXPR into GE_EXPR.  Punt for sqrt comparisons against NaN and
939         for -frounding-math.  For c2, try the next smaller or larger floating
940         point constant depending on comparison code and if it has the same
941         sqrt as c2, use it instead of c2.
943 2019-10-04  Martin Sebor  <msebor@redhat.com>
945         PR middle-end/91977
946         * tree-ssa-strlen.c (count_nonzero_bytes): Handle assignments with
947         MEM_REF right operand.  Avoid failing for MEM_REF assignments from
948         uninitialized objects.
950 2019-10-04  Martin Sebor  <msebor@redhat.com>
952         * builtins.c (compute_objsize): Add an argument.
953         * tree-object-size.c (addr_object_size): Same.
954         (compute_builtin_object_size): Same.
955         * tree-object-size.h (compute_builtin_object): Same.
957 2019-10-04  Jan Hubicka  <hubicka@ucw.cz>
959         * ipa-inline.c (inline_insns_single, inline_insns_auto): Fix typo.
961 2019-10-04  Rafael Tsuha  <rafael.tsuha@usp.br>
963         * match.pd (sinh (x) / cosh (x)): New simplification rule.
965 2019-10-04  Martin Jambor  <mjambor@suse.cz>
967         * tree-ssa-forwprop.c (simplify_builtin_call): Set gimple call
968         fntype when switching to calling memcpy instead of memset.
970 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
972         * hash-table.h (hash_table::empty_slow): Don't assign
973         size_t values to int variables.
975 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
977         * expr.c (convert_mode_scalar): Remove shadowing local var.
978         (emit_block_move): Rename local vars.
979         (block_move_libcall_safe_for_call_parm): Remove shadowing local var.
980         (emit_push_insn): Rename local vars.
981         (expand_assignment): Fix wrong mode in assign_stack_temp.  Remove
982         shadowing local vars.
983         (store_constructor): Remove shadowing local vars.  Rename local var.
984         (store_field, expand_cond_expr_using_cmove,
985         expand_expr_real_2): Remove shadowing local vars.
986         (expand_expr_real_1,
987         do_store_flag): Remove shadowing local vars.  Rename local vars.
989 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
991         * cgraph.h (FOR_EACH_ALIAS): Avoid shadowing the loop variable.
993 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
995         * genmatch.c (commutate): Rename local var.
996         (lower_cond): Reuse local var.
997         (dt_node::gen, dt_node::gen_kids, dt_node::gen_kids_1,
998         dt_operand::gen, dt_operand::gen_gimple_expr,
999         dt_simplify::gen): Add a param.  Rename generated vars.
1000         (decision_tree::insert_operand,
1001         (capture_info::walk_match, capture_info::walk_result,
1002         capture_info::walk_c_expr): Rename local vars.
1003         (expr::gen_transform): Rename generated vars.
1004         Use snprintf.  Rename local vars.
1005         (capture::gen_transform, dt_operand::get_name,
1006         dt_operand::gen_opname): Rename generated vars.
1007         (write_predicate): Adjust call to gen_kids.
1008         (parser::get_internal_capture_id): Rename generated vars.
1009         (parser::parse_expr): Rename local vars.
1010         (parser::parse_if): Remove local var.
1011         (parser::parse_pattern, add_operator): Rename local vars.
1013 2019-10-04  Joseph Myers  <joseph@codesourcery.com>
1015         * builtins.def (DEF_C2X_BUILTIN): New macro.
1016         (exp10, exp10f, exp10l, fabsd32, fabsd64, fabsd128, nand32)
1017         (nand64, nand128, roundeven, roundevenf, roundevenl, strdup)
1018         (strndup): Use DEF_C2X_BUILTIN.
1019         * coretypes.h (enum function_class): Add function_c2x_misc.
1021 2019-10-04  Maya Rashish  <coypu@sdf.org>
1023         * ira-color.c (update_costs_from_allocno): Call
1024         ira_init_register_move_cost_if_necessary.
1026 2019-10-04  Jeff Law  <law@redhat.com>
1028         * config/h8300/h8300.md (cpymemsi): Disable.
1029         (movmd, movmd_internal_<mode>, movstr, movsd):
1030         (movstr, movsd, stpcpy_internal_<mode>: Likewise.
1031         (movmd splitter, movsd splitter): Likewise.
1033         * range-op.cc (range_tests): Avoid two tests when ints and
1034         shorts are the same size.
1036 2019-10-04  Richard Biener  <rguenther@suse.de>
1038         PR lto/91968
1039         * tree.c (find_decls_types_r): Do not remove LABEL_DECLs from
1040         BLOCK_VARS.
1042 2019-10-04  Richard Biener  <rguenther@suse.de>
1044         PR tree-optimization/91982
1045         * tree-vect-loop.c (vectorizable_live_operation): Also guard
1046         against EXTRACT_LAST_REDUCTION.
1047         * tree-vect-stmts.c (vect_transform_stmt): Likewise.
1049 2019-10-04  Aldy Hernandez  <aldyh@redhat.com>
1051         * range-op.o (value_range_from_overflowed_bounds): Rename from
1052         adjust_overflow_bound.
1053         (value_range_with_overflow): Rename from
1054         create_range_with_overflow.
1055         (create_possibly_reversed_range): Adjusted for above renames.
1056         (operator_*::wi_fold): Same.
1057         (cross_product_operator::wi_cross_productor): Same.
1059 2019-10-04  Bernd Edlinger  <bernd.edlinger@hotmail.de>
1061         * doc/invoke.texi (-Wshadow=global, -Wshadow=local,
1062         -Wshadow=compatible-local): Fix description.
1063         Add an example where -Wshadow=compatible-local does not
1064         warn.
1066 2019-10-03  John David Anglin  <danglin@gcc.gnu.org>
1068         * config/pa/pa.h (MAX_PCREL17F_OFFSET): Adjust.
1070         * config/pa/pa.c (pa_output_call): Remove 64-bit sibcall sequence.
1071         (pa_attr_length_call): Adjust length for 64-bit plabel sequence.
1073 2019-10-03  Aaron Sawdey <acsawdey@linux.ibm.com>
1075         * expr.c (emit_block_move_hints): Slightly cleaner fix to
1076         can_move_by_pieces issue.
1078 2019-10-03  Iain Sandoe  <iain@sandoe.co.uk>
1080         PR target/87243
1081         * config/darwin-driver.c (maybe_get_sysroot_from_sdkroot): New.
1082         (darwin_driver_init): Use the sysroot provided by SDKROOT when that
1083         is available and the user has not set one on the command line.
1085 2019-10-03  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
1087         PR target/91769
1088         * config/mips/mips.c (mips_split_move): Use reg_overlap_mentioned_p
1089         instead of REGNO equality check on addr.reg.
1091 2019-10-03  Jan Hubicka  <hubicka@ucw.cz>
1093         * params.def (PARAM_INLINE_HEURISTICS_HINT_PERCENT,
1094         PARAM_INLINE_HEURISTICS_HINT_PERCENT_O2): New.
1095         * doc/invoke.texi (inline-heuristics-hint-percent,
1096         inline-heuristics-hint-percent-O2): Document.
1097         * tree-inline.c (inline_insns_single, inline_insns_auto): Add new
1098         hint attribute.
1099         (can_inline_edge_by_limits_p): Use it.
1101 2019-10-03  Richard Sandiford  <richard.sandiford@arm.com>
1103         * config/arm/arm.c (arm_print_value): Use real_to_decimal
1104         to print CONST_DOUBLEs.
1106 2019-10-03  Andrea Corallo  <andrea.corallo@arm.com>
1108         * ipa-cp.c (ipa_cp_c_finalize): Release ipcp_transformation_sum.
1109         * ipa-prop.c (ipcp_free_transformation_sum): New function.
1110         * ipa-prop.h (ipcp_free_transformation_sum): Add declaration.
1112 2019-10-03  Aldy Hernandez  <aldyh@redhat.com>
1114         * Makefile.in (OBJS): Add range.o and range-op.o.
1115         Remove wide-int-range.o.
1116         * function-tests.c (test_ranges): New.
1117         (function_tests_c_tests): Call test_ranges.
1118         * ipa-cp.c (ipa_vr_operation_and_type_effects): Call
1119         range_fold_unary_expr instead of extract_range_from_unary_expr.
1120         * ipa-prop.c (ipa_compute_jump_functions_for_edge): Same.
1121         * range-op.cc: New file.
1122         * range-op.h: New file.
1123         * range.cc: New file.
1124         * range.h: New file.
1125         * selftest.h (range_tests): New prototype.
1126         * ssa.h: Include range.h.
1127         * tree-vrp.c (value_range_base::value_range_base): New
1128         constructors.
1129         (value_range_base::singleton_p): Do not call
1130         ranges_from_anti_range until sure we will need to.
1131         (value_range_base::type): Rename gcc_assert to
1132         gcc_checking_assert.
1133         (vrp_val_is_max): New argument.
1134         (vrp_val_is_min): Same.
1135         (wide_int_range_set_zero_nonzero_bits): Move from
1136         wide-int-range.cc.
1137         (extract_range_into_wide_ints): Remove.
1138         (extract_range_from_multiplicative_op): Remove.
1139         (extract_range_from_pointer_plus_expr): Abstract POINTER_PLUS code
1140         from extract_range_from_binary_expr.
1141         (extract_range_from_plus_minus_expr): Abstract PLUS/MINUS code
1142         from extract_range_from_binary_expr.
1143         (extract_range_from_binary_expr): Remove.
1144         (normalize_for_range_ops): New.
1145         (range_fold_binary_expr): New.
1146         (range_fold_unary_expr): New.
1147         (value_range_base::num_pairs): New.
1148         (value_range_base::lower_bound): New.
1149         (value_range_base::upper_bound): New.
1150         (value_range_base::upper_bound): New.
1151         (value_range_base::contains_p): New.
1152         (value_range_base::invert): New.
1153         (value_range_base::union_): New.
1154         (value_range_base::intersect): New.
1155         (range_compatible_p): New.
1156         (value_range_base::operator==): New.
1157         (determine_value_range_1): Call range_fold_*expr instead of
1158         extract_range_from_*expr.
1159         * tree-vrp.h (class value_range_base): Add new constructors.
1160         Add methods for union_, intersect, operator==, contains_p,
1161         num_pairs, lower_bound, upper_bound, invert.
1162         (vrp_val_is_min): Add handle_pointers argument.
1163         (vrp_val_is_max): Same.
1164         (extract_range_from_unary_expr): Remove.
1165         (extract_range_from_binary_expr): Remove.
1166         (range_fold_unary_expr): New.
1167         (range_fold_binary_expr): New.
1168         * vr-values.c (vr_values::extract_range_from_binary_expr): Call
1169         range_fold_binary_expr instead of extract_range_from_binary_expr.
1170         (vr_values::extract_range_basic): Same.
1171         (vr_values::extract_range_from_unary_expr): Call
1172         range_fold_unary_expr instead of extract_range_from_unary_expr.
1173         * wide-int-range.cc: Remove.
1174         * wide-int-range.h: Remove.
1176 2019-10-02   Michael Meissner  <meissner@linux.ibm.com>
1178         * config/rs6000/rs6000.c (mem_operand_gpr): Use
1179         SIGNED_16BIT_OFFSET_EXTRA_P macro.
1180         (mem_operand_ds_form): Use SIGNED_16BIT_OFFSET_EXTRA_P macro.
1181         (rs6000_mode_dependent_address): Use SIGNED_16BIT_OFFSET_EXTRA_P
1182         macro.
1184 2019-10-02  Joseph Myers  <joseph@codesourcery.com>
1186         * ginclude/stdint-gcc.h [__STDC_WANT_IEC_60559_BFP_EXT__]: Change
1187         condition on WIDTH macros to [__STDC_WANT_IEC_60559_BFP_EXT__ ||
1188         (__STDC_VERSION__ && __STDC_VERSION__ > 201710L)].
1189         * glimits.h: Likewise.
1191 2019-10-03  Jakub Jelinek  <jakub@redhat.com>
1193         PR rtl-optimization/91976
1194         * expr.c (emit_block_move_hints): Don't call can_move_by_pieces if
1195         size is not CONST_INT_P, set pieces_ok to false in that case.  Simplify
1196         CONST_INT_P (size) && pieces_ok to pieces_ok.  Formatting fix.
1198 2019-10-02  Martin Sebor  <msebor@redhat.com>
1200         PR tree-optimization/80936
1201         * builtins.def (bcmp, bcopy, bzero): Declare nonnull.
1203 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
1205         * cgraph.c (cgraph_node::rtl_info): Use SET_HARD_REG_SET
1206         instead of reg_class_contents[ALL_REGS].
1208 2019-09-30  Jason Merrill  <jason@redhat.com>
1210         Add some hash_map_safe_* functions like vec_safe_*.
1211         * hash-map.h (default_hash_map_size): New variable.
1212         (create_ggc): Use it as default argument.
1213         (hash_map_maybe_create, hash_map_safe_get)
1214         (hash_map_safe_get_or_insert, hash_map_safe_put): New fns.
1216 2019-10-02  Jan Hubicka  <hubicka@ucw.cz>
1218         * cif-code.def (MAX_INLINE_INSNS_SINGLE_O2_LIMIT,
1219         MAX_INLINE_INSNS_AUTO_O2_LIMIT): New.
1220         * ipa-inline.c (inline_insns_single, inline_insns_auto): New functions.
1221         (can_inline_edge_by_limits_p): Use it.
1222         (big_speedup_p): Use PARAM_INLINE_MIN_SPEEDUP_O2.
1223         (want_inline_small_function_p): Use O2 bounds.
1224         (edge_badness): LIkewise.
1225         * opts.c (default_options): Add OPT_finline_functions.
1226         * params.def (PARAM_INLINE_MIN_SPEEDUP_O2,
1227         PARAM_MAX_INLINE_INSNS_SINGLE_O2, PARAM_MAX_INLINE_INSNS_AUTO_O2):
1228         New parameters.
1229         * doc/invoke.texi (-finline-functions): Update documentation.
1230         (max-inline-insns-single-O2, max-inline-insns-auto-O2,
1231         inline-min-speedup-O2): Document.
1232         (early-inlining-insns-O2): Simplify docs.
1234 2019-10-02  Alexander Monakov  <amonakov@ispras.ru>
1236         PR rtl-optimization/87047
1237         * ifcvt.c (average_cost): New static function.  Use it...
1238         (noce_process_if_block): ... here.
1240 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
1242         * config/rs6000/rs6000-protos.h (expand_block_move): Change prototype.
1243         * config/rs6000/rs6000-string.c (expand_block_move): Add
1244         might_overlap parm.
1245         * config/rs6000/rs6000.md (movmemsi): Add new pattern.
1246         (cpymemsi): Add might_overlap parm to expand_block_move() call.
1248 2019-10-02  Aaron Sawdey <acsawdey@linux.ibm.com>
1250         * builtins.c (expand_builtin_memory_copy_args): Add might_overlap parm.
1251         (expand_builtin_memcpy): Use might_overlap parm.
1252         (expand_builtin_mempcpy_args): Use might_overlap parm.
1253         (expand_builtin_memmove): Call expand_builtin_memory_copy_args.
1254         (expand_builtin_memory_copy_args): Add might_overlap parm.
1255         * expr.c (emit_block_move_via_cpymem): Rename to
1256         emit_block_move_via_pattern, add might_overlap parm, use cpymem
1257         or movmem optab as appropriate.
1258         (emit_block_move_hints): Add might_overlap parm, do the right
1259         thing for might_overlap==true.
1260         * expr.h (emit_block_move_hints): Update prototype.
1262 2019-10-02  Eric Botcazou  <ebotcazou@adacore.com>
1264         * tree-eh.h (unsplit_eh_edges): Declare.
1265         * tree-eh.c (maybe_remove_unreachable_handlers): Detect more cases.
1266         (unsplit_eh_edges): New function wrapping unsplit_all_eh.
1267         * gimple-ssa-store-merging.c: Include cfganal.h cfgcleanup.h except.h.
1268         (struct store_immediate_info): Add lp_nr field.
1269         (store_immediate_info::store_immediate_info): Add NR2 parameter and
1270         initialize lp_nr with it.
1271         (struct merged_store_group): Add lp_nr and only_constants fields.
1272         (merged_store_group::merged_store_group): Initialize them.
1273         (merged_store_group::can_be_merged_into): Deal with them.
1274         (pass_store_merging): Rename terminate_and_release_chain into
1275         terminate_and_process_chain.
1276         (pass_store_merging::terminate_and_process_all_chains): Adjust to above
1277         renaming and remove useless assertions.
1278         (pass_store_merging::terminate_all_aliasing_chains): Small tweak.
1279         (stmts_may_clobber_ref_p): Be prepared for different basic blocks.
1280         (imm_store_chain_info::coalesce_immediate_stores): Use only_constants
1281         instead of always recomputing it and compare lp_nr.
1282         (imm_store_chain_info::output_merged_store): If the group is in an
1283         active EH region, register new stores if they can throw.  Moreover,
1284         if the insertion has created new basic blocks, adjust the PHI nodes
1285         of the post landing pad.
1286         (imm_store_chain_info::output_merged_stores): If the original stores
1287         are in an active EH region, deregister them.
1288         (lhs_valid_for_store_merging_p): Prettify.
1289         (adjust_bit_pos): New function extracted from...
1290         (mem_valid_for_store_merging): ...here.  Use it for the base address
1291         and also for the offset if it is the addition of a constant.
1292         (lp_nr_for_store): New function.
1293         (pass_store_merging::process_store): Change return type to bool.
1294         Call lp_nr_for_store to initialize the store info.  Propagate the
1295         return status of various called functions to the return value.
1296         (store_valid_for_store_merging_p): New predicate.
1297         (enum basic_block_status): New enumeration.
1298         (get_status_for_store_merging): New function.
1299         (pass_store_merging::execute): If the function can throw and catch
1300         non-call exceptions, unsplit the EH edges on entry and clean up the
1301         CFG on exit if something changed.  Call get_status_for_store_merging
1302         for every basic block and keep the chains open across basic blocks
1303         when possible.  Terminate and process open chains at the end, if any.
1305 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
1307         * reginfo.c (globalize_reg): Fix shadowed variable in
1308         function_abis walk.
1310 2019-10-02  Martin Jambor  <mjambor@suse.cz>
1312         * cgraph.c (symbol_table::create_edge): New parameter cloning_p,
1313         do not compute some stuff when set.
1314         (cgraph_node::create_edge): Likewise.
1315         (cgraph_node::create_indirect_edge): Renamed last parameter to
1316         coning_p and flipped its meaning, don't even calculate
1317         inline_failed when set.
1318         * cgraph.h (cgraph_node::create_edge): Add new parameter.
1319         (symbol_table::::create_edge): Likewise.
1320         (cgraph_node::create_indirect_edge): Rename last parameter, flip
1321         the default value.
1322         * cgraphclones.c (cgraph_edge::clone): Pass true cloning_p to all
1323         call graph edge creating functions.
1325 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1327         PR c++/91222
1328         * ipa-devirt.c (warn_types_mismatch): Fix conditional on anonymous
1329         namespace types.
1331 2019-10-02  Shahab Vahedi  <shahab@synopsys.com>
1333         * config/arc/arc.h (ASM_SPEC): Pass -mcode-density.
1335 2019-10-02  Richard Biener  <rguenther@suse.de>
1337         * tree-vectorizer.h (vect_transform_reduction): Declare.
1338         * tree-vect-stmts.c (vect_transform_stmt): Use it.
1339         * tree-vect-loop.c (vectorizable_reduction): Split out reduction
1340         stmt transform to ...
1341         (vect_transform_reduction): ... this.
1343 2019-10-02  Tobias Burnus  <tobias@codesourcery.com>
1345         * omp-low.c (lower_omp_target): Dereference optional argument
1346         to work with the right pointer.
1348 2019-10-02  Kwok Cheung Yeung  <kcy@codesourcery.com>
1350         * langhooks-def.h (LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT): Default to
1351         false.
1352         (LANG_HOOKS_DECLS): Add LANG_HOOKS_OMP_IS_OPTIONAL_ARGUMENT.
1353         * langhooks.h (omp_is_optional_argument): New hook.
1354         * omp-general.c (omp_is_optional_argument): New.
1355         * omp-general.h (omp_is_optional_argument): New declaration.
1356         * omp-low.c (lower_omp_target): Create temporary for received value
1357         and take the address for new_var if the original variable was a
1358         DECL_BY_REFERENCE.  Use size of referenced object when a
1359         pass-by-reference optional argument used as argument to firstprivate.
1361 2019-10-02  Jakub Jelinek  <jakub@redhat.com>
1363         PR tree-optimization/91940
1364         * tree-vect-patterns.c: Include tree-vector-builder.h and
1365         vec-perm-indices.h.
1366         (vect_recog_rotate_pattern): Also handle __builtin_bswap16, either by
1367         unpromoting the argument back to uint16_t, or by converting into a
1368         rotate, or into shifts plus ior.
1370 2019-10-02  Richard Biener  <rguenther@suse.de>
1372         * tree-vectorizer.h (stmt_vec_info_type::cycle_phi_info_type):
1373         New.
1374         (vect_transform_cycle_phi): Declare.
1375         * tree-vect-stmts.c (vect_transform_stmt): Call
1376         vect_transform_cycle_phi.
1377         * tree-vect-loop.c (vectorizable_reduction): Split out
1378         PHI transformation stage to ...
1379         (vect_transform_cycle_phi): ... here.
1381 2019-10-02  Richard Sandiford  <richard.sandiford@arm.com>
1383         PR middle-end/91957
1384         * lra-lives.c (make_hard_regno_dead): Don't record conflicts for
1385         eliminable registers.
1386         (make_hard_regno_live): Likewise, and don't make them live.
1388 2019-10-01  David Malcolm  <dmalcolm@redhat.com>
1390         * diagnostic-show-locus.c (layout::print_gap_in_line_numbering):
1391         Call pp_emit_prefix.
1392         (layout::print_source_line): Likewise.
1393         (layout::start_annotation_line): Likewise.
1394         (diagnostic_show_locus): Remove call to temporarily clear the
1395         prefix.
1396         (selftest::test_one_liner_fixit_remove): Add test coverage for the
1397         interaction of pp_set_prefix with rulers and fix-it hints.
1398         * diagnostic.c (default_diagnostic_finalizer): Temporarily clear
1399         prefix when calling diagnostic_show_locus, rather than destroying
1400         it afterwards.
1401         (print_parseable_fixits): Temporarily clear prefix.
1402         * pretty-print.c (pp_format): Save and restore line_length, rather
1403         than assuming it is zero.
1404         (pp_output_formatted_text): Remove assertion that line_length is
1405         zero.
1407 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1409         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
1410         Rename to ...
1411         (nonoverlapping_refs_since_match_p): ... this; handle also
1412         ARRAY_REFs.
1413         (alias_stats): Update stats.
1414         (dump_alias_stats): Likewise.
1415         (cheap_array_ref_low_bound): New function.
1416         (aliasing_matching_component_refs_p): Add partial_overlap
1417         argument;
1418         pass it to nonoverlapping_refs_since_match_p.
1419         (aliasing_component_refs_walk): Update call of
1420         aliasing_matching_component_refs_p
1421         (nonoverlapping_array_refs_p): New function.
1422         (decl_refs_may_alias_p, indirect_ref_may_alias_decl_p,
1423         indirect_refs_may_alias_p): Update calls of
1424         nonoverlapping_refs_since_match_p.
1426 2019-10-01  Maya Rashish  <coypu@sdf.org>
1428         PR target/85401
1429         * ira-color.c (allocno_copy_cost_saving): Call
1430         ira_init_register_move_cost_if_necessary.
1432 2019-10-01  Maciej W. Rozycki  <macro@wdc.com>
1434         * Makefile.in (gnat_install_lib): New variable.
1435         * configure.ac: Substitute it.
1436         * configure: Regenerate.
1438 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1440         PR lto/91222
1441         * ipa-devirt.c (warn_types_mismatch): Do not ICE when anonymous type
1442         is matched with non-C++ type
1444 2019-10-01  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
1446         * tree-if-conv.c (tree_if_conversion): Move call to ifcvt_local_dce
1447         after local CSE.
1449 2019-10-01  Jan Hubicka  <hubicka@ucw.cz>
1451         * doc/invoke.texi (early-inlining-insns-O2): Document.
1452         (early-inlining-insns): Update.
1453         * params.def (early-inlining-insns-O2): New bound.
1454         (early-inlining-insns): Update docs.
1455         * ipa-inline.c (want_early_inline_function_p): Use new bound.
1457 2019-10-01  Oleg Endo  <olegendo@gcc.gnu.org>
1459         PR target/88562
1460         * config/sh/sh.c (sh_extending_set_of_reg::use_as_extended_reg): Use
1461         sh_check_add_incdec_notes to preserve REG_INC notes when replacing
1462         a memory access insn.
1464 2019-10-01  Bill Schmidt  <wschmidt@linux.ibm.com>
1466         * config/rs6000/rs6000-p8swap.c (rtx_is_swappable_p): Don't swap
1467         vpmsumd.
1469 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
1471         PR target/77918
1472         * config/s390/s390.c (s390_expand_vec_compare): Use
1473         gen_vec_cmpordered and gen_vec_cmpunordered.
1474         * config/s390/vector.md (vec_cmpuneq, vec_cmpltgt, vec_ordered,
1475         vec_unordered): Delete.
1476         (vec_ordered<mode>): Rename to vec_cmpordered<mode>.
1477         (vec_unordered<mode>): Rename to vec_cmpunordered<mode>.
1478         (VEC_CMP_EXPAND): New iterator for the generic dispatcher.
1479         (vec_cmp<code>): Generic dispatcher.
1481 2019-10-01  Ilya Leoshkevich  <iii@linux.ibm.com>
1483         PR target/77918
1484         * config/s390/vector.md (V_HW): Add V1TI in order to make
1485         vcond$a$b generate vcondv1tiv1tf.
1487 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1489         PR rtl-optimization/91948
1490         * ira-build.c (ira_create_allocno): Initialize
1491         ALLOCNO_CROSSED_CALLS_ABIS.
1492         * ira-color.c (allocno_reload_assign): Pass hard_regno rather
1493         than regno to ira_need_caller_save_p.
1495 2019-10-01  Alexandre Oliva <oliva@adacore.com>
1497         * config/i386/i386-options.c
1498         (ix86_recompute_optlev_based_flags): New, moved out of...
1499         (ix86_option_override_internal): ... this.  Call it.
1500         (ix86_override_options_after_change): Call it here too.
1502         PR debug/91507
1503         * dwarf2out.c (override_type_for_decl_p): New.
1504         (gen_variable_die): Use it.
1506 2019-10-01  Richard Biener  <rguenther@suse.de>
1508         * tree-vect-loop.c (vectorizable_reduction): Move variables
1509         to where they are used.
1511 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1513         * regrename.c (hide_operands): Use pc_rtx instead of cc0_rtx.
1514         (build_def_use): Use PC instead of CC0 in a comment.
1516 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1518         * rtl.def (CLOBBER_HIGH): Delete.
1519         * doc/rtl.texi (clobber_high): Remove documentation.
1520         * rtl.h (SET_DEST): Remove CLOBBER_HIGH from the list of codes.
1521         (reg_is_clobbered_by_clobber_high): Delete.
1522         (gen_hard_reg_clobber_high): Likewise.
1523         * alias.c (record_set): Remove CLOBBER_HIGH handling.
1524         * cfgexpand.c (expand_gimple_stmt): Likewise.
1525         * combine-stack-adj.c (single_set_for_csa): Likewise.
1526         * combine.c (find_single_use_1, set_nonzero_bits_and_sign_copies)
1527         (can_combine_p, is_parallel_of_n_reg_sets, try_combine)
1528         (record_dead_and_set_regs_1, reg_dead_at_p_1): Likewise.
1529         * cse.c (invalidate_reg): Remove clobber_high parameter.
1530         (invalidate): Update call accordingly.
1531         (canonicalize_insn): Remove CLOBBER_HIGH handling.
1532         (invalidate_from_clobbers, invalidate_from_sets_and_clobbers)
1533         (count_reg_usage, insn_live_p): Likewise.
1534         * cselib.h (cselib_invalidate_rtx): Remove sett argument.
1535         * cselib.c (cselib_invalidate_regno, cselib_invalidate_rtx): Likewise.
1536         (cselib_invalidate_rtx_note_stores): Update call accordingly.
1537         (cselib_expand_value_rtx_1): Remove CLOBBER_HIGH handling.
1538         (cselib_invalidate_regno, cselib_process_insn): Likewise.
1539         * dce.c (deletable_insn_p, mark_nonreg_stores_1): Likewise.
1540         (mark_nonreg_stores_2): Likewise.
1541         * df-scan.c (df_find_hard_reg_defs, df_uses_record): Likewise.
1542         (df_get_call_refs): Likewise.
1543         * dwarf2out.c (mem_loc_descriptor): Likewise.
1544         * emit-rtl.c (verify_rtx_sharing): Likewise.
1545         (copy_insn_1, copy_rtx_if_shared_1): Likewise.
1546         (hard_reg_clobbers_high, gen_hard_reg_clobber_high): Delete.
1547         * genconfig.c (walk_insn_part): Remove CLOBBER_HIGH handling.
1548         * genemit.c (gen_exp, gen_insn): Likewise.
1549         * genrecog.c (validate_pattern, remove_clobbers): Likewise.
1550         * haifa-sched.c (haifa_classify_rtx): Likewise.
1551         * ira-build.c (create_insn_allocnos): Likewise.
1552         * ira-costs.c (scan_one_insn): Likewise.
1553         * ira.c (equiv_init_movable_p, memref_referenced_p): Likewise.
1554         (rtx_moveable_p, interesting_dest_for_shprep): Likewise.
1555         * jump.c (mark_jump_label_1): Likewise.
1556         * lra-int.h (lra_insn_reg::clobber_high): Delete.
1557         * lra-eliminations.c (lra_eliminate_regs_1): Remove CLOBBER_HIGH
1558         handling.
1559         (mark_not_eliminable): Likewise.
1560         * lra-lives.c (process_bb_lives): Likewise.
1561         * lra.c (new_insn_reg): Remove clobber_high parameter.
1562         (collect_non_operand_hard_regs): Likewise.  Update call to new
1563         insn_reg.  Remove CLOBBER_HIGH handling.
1564         (lra_set_insn_recog_data): Remove CLOBBER_HIGH handling.  Update call
1565         to collect_non_operand_hard_regs.
1566         (add_regs_to_insn_regno_info): Remove CLOBBER_HIGH handling.
1567         Update call to new_insn_reg.
1568         (lra_update_insn_regno_info): Remove CLOBBER_HIGH handling.
1569         * postreload.c (reload_cse_simplify, reload_combine_note_use)
1570         (move2add_note_store): Likewise.
1571         * print-rtl.c (print_pattern): Likewise.
1572         * recog.c (store_data_bypass_p_1, store_data_bypass_p): Likewise.
1573         (if_test_bypass_p): Likewise.
1574         * regcprop.c (kill_clobbered_value, kill_set_value): Likewise.
1575         * reginfo.c (reg_scan_mark_refs): Likewise.
1576         * reload1.c (maybe_fix_stack_asms, eliminate_regs_1): Likewise.
1577         (elimination_effects, mark_not_eliminable, scan_paradoxical_subregs)
1578         (forget_old_reloads_1): Likewise.
1579         * reorg.c (find_end_label, try_merge_delay_insns, redundant_insn)
1580         (own_thread_p, fill_simple_delay_slots, fill_slots_from_thread)
1581         (dbr_schedule): Likewise.
1582         * resource.c (update_live_status, mark_referenced_resources)
1583         (mark_set_resources): Likewise.
1584         * rtl.c (copy_rtx): Likewise.
1585         * rtlanal.c (reg_referenced_p, set_of_1, single_set_2, noop_move_p)
1586         (note_pattern_stores): Likewise.
1587         (reg_is_clobbered_by_clobber_high): Delete.
1588         * sched-deps.c (sched_analyze_reg, sched_analyze_insn): Remove
1589         CLOBBER_HIGH handling.
1591 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1593         PR target/91452
1594         * config/aarch64/aarch64.h (ARM_PCS_TLSDESC): New arm_pcs.
1595         * config/aarch64/aarch64-protos.h (aarch64_tlsdesc_abi_id): Declare.
1596         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
1597         Handle ARM_PCS_TLSDESC.
1598         (aarch64_tlsdesc_abi_id): New function.
1599         * config/aarch64/aarch64.md (tlsdesc_small_sve_<mode>): Use a call
1600         rtx instead of a list of clobbers and clobber_highs.
1601         (tlsdesc_small_<mode>): Update accordingly.
1603 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1605         * config/aarch64/aarch64-protos.h (aarch64_expand_call): Take an
1606         extra callee_abi argument.
1607         * config/aarch64/aarch64.c (aarch64_expand_call): Likewise.
1608         Insert a CALLEE_ABI unspec into the call pattern as the second
1609         element in the PARALLEL.
1610         (aarch64_simd_call_p): Delete.
1611         (aarch64_insn_callee_abi): Get the arm_pcs of the callee from
1612         the new CALLEE_ABI element of the PARALLEL.
1613         (aarch64_init_cumulative_args): Get the arm_pcs of the callee
1614         from the function type, if given.
1615         (aarch64_function_arg_advance): Handle ARM_PCS_SIMD.
1616         (aarch64_function_arg): Likewise.  Return the arm_pcs of the callee
1617         when passed the function_arg_info end marker.
1618         (aarch64_output_mi_thunk): Pass the arm_pcs of the callee as the
1619         final argument of gen_sibcall.
1620         * config/aarch64/aarch64.md (UNSPEC_CALLEE_ABI): New unspec.
1621         (call): Make operand 2 a const_int_operand and pass it to expand_call.
1622         Wrap it in an UNSPEC_CALLEE_ABI unspec for the dummy define_expand
1623         pattern.
1624         (call_value): Likewise operand 3.
1625         (sibcall): Likewise operand 2.  Place the unspec before rather than
1626         after the return.
1627         (sibcall_value): Likewise operand 3.
1628         (*call_insn, *call_value_insn): Include an UNSPEC_CALLEE_ABI.
1629         (tlsgd_small_<mode>, *tlsgd_small_<mode>): Likewise.
1630         (*sibcall_insn, *sibcall_value_insn): Likewise.  Remove empty
1631         constraint strings.
1632         (untyped_call): Pass const0_rtx as the callee ABI to gen_call.
1634 2019-10-01  Richard Sandiford  <richard.sandiford@arm.com>
1636         * regs.h (HARD_REGNO_CALLER_SAVE_MODE): Update call to
1637         choose_hard_reg_mode.
1638         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
1640 2019-10-01  Segher Boessenkool  <segher@kernel.crashing.org>
1642         * doc/md.texi (vec_pack_trunc_@var{m}): Fix typo.
1643         (vec_pack_sfix_trunc_@var{m}, vec_pack_ufix_trunc_@var{m}): Ditto.
1644         (vec_packs_float_@var{m}, vec_packu_float_@var{m}): Ditto.
1646 2019-09-30  David Malcolm  <dmalcolm@redhat.com>
1648         * diagnostic-show-locus.c (line_label::line_label): Initialize
1649         m_has_vbar.
1650         (line_label::comparator): Reverse the sort order by m_state_idx,
1651         so that when the list is walked backwards the labels appear in
1652         order of insertion into the rich_location.
1653         (line_label::m_has_vbar): New field.
1654         (layout::print_any_labels): When dealing with multiple labels at
1655         the same line and column, only print vertical bars for the one
1656         with the highest label_line.
1657         (selftest::test_one_liner_labels): Update test for multiple labels
1658         to expect the labels to be in the order of insertion into the
1659         rich_location.  Add a test for many such labels, where the column
1660         numbers are out-of-order relative to the insertion order.
1662 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1664         * config/i386/i386.h (ix86_frame::expensive_p): New field.
1665         (ix86_frame::expensive_count): Likewise.
1666         * config/i386/i386.c (ix86_compute_frame_layout): Make the choice
1667         of use_fast_prologue_epilogue robust against incidental changes
1668         in function size.
1670 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
1672         PR target/77918
1673         * config/s390/vector.md (vec_unordered<mode>): Call
1674         gen_vec_ordered<mode>.
1676 2019-09-30  Yuliang Wang  <yuliang.wang@arm.com>
1678         * config/aarch64/aarch64-sve.md (sdiv_pow2<mode>3):
1679         New pattern for ASRD.
1680         * config/aarch64/iterators.md (UNSPEC_ASRD): New unspec.
1681         * internal-fn.def (IFN_DIV_POW2): New internal function.
1682         * optabs.def (sdiv_pow2_optab): New optab.
1683         * tree-vect-patterns.c (vect_recog_divmod_pattern):
1684         Modify pattern to support new operation.
1685         * doc/md.texi (sdiv_pow2$var{m3}): Documentation for the above.
1686         * doc/sourcebuild.texi (vect_sdiv_pow2_si):
1687         Document new target selector.
1689 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1691         * config/aarch64/aarch64.c (aarch64_layout_frame): Use crtl->abi
1692         to test whether we're compiling a vector PCS function and to test
1693         whether the function needs to save a particular register.
1694         Remove the vector PCS handling of df_set_regs_ever_live.
1695         (aarch64_components_for_bb): Use crtl->abi to test whether
1696         the function needs to save a particular register.
1697         (aarch64_process_components): Use crtl->abi to test whether
1698         we're compiling a vector PCS function.
1699         (aarch64_expand_prologue, aarch64_expand_epilogue): Likewise.
1700         (aarch64_epilogue_uses): Remove handling of vector PCS functions.
1702 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1704         * config/aarch64/aarch64-protos.h (aarch64_use_simple_return_insn_p):
1705         Delete.
1706         * config/aarch64/aarch64.c (aarch64_components_for_bb): Check
1707         whether the block calls a function that clobbers more registers
1708         than the current function is allowed to.
1709         (aarch64_use_simple_return_insn_p): Delete.
1710         * config/aarch64/aarch64.md (simple_return): Remove condition.
1712 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1714         * function-abi.h (function_abi_aggregator): New class.
1715         * function-abi.cc (function_abi_aggregator::caller_save_regs): New
1716         function.
1717         * ira.c (update_equiv_regs_prescan): New function.  Call
1718         set_paradoxical_subreg here rather than...
1719         (update_equiv_regs): ...here.
1720         (ira): Call update_equiv_regs_prescan.
1722 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1724         * hard-reg-set.h (regs_invalidated_by_call): Only define if
1725         IN_TARGET_CODE.
1726         (call_used_or_fixed_regs): Likewise.
1727         (call_used_or_fixed_reg_p): Likewise.
1728         * reginfo.c (regs_invalidated_by_call): New macro.
1730 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1732         * shrink-wrap.c: Include function-abi.h.
1733         (requires_stack_frame_p): Use crtl->abi to test whether the
1734         current function can use a register without saving it first.
1736 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1738         * sel-sched-ir.h (_def::crosses_call): Replace with...
1739         (_def::crossed_call_abis): ..this new field.
1740         (def_list_add): Take a mask of ABIs instead of a crosses_call
1741         boolean.
1742         * sel-sched-ir.c (def_list_add): Likewise.  Update initialization
1743         of _def accordingly.
1744         * sel-sched.c: Include function-abi.h.
1745         (hard_regs_data::regs_for_call_clobbered): Delete.
1746         (reg_rename::crosses_call): Replace with...
1747         (reg_rename::crossed_call_abis): ...this new field.
1748         (fur_static_params::crosses_call): Replace with...
1749         (fur_static_params::crossed_call_abis): ...this new field.
1750         (init_regs_for_mode): Don't initialize sel_hrd.regs_for_call_clobbered.
1751         (init_hard_regs_data): Use crtl->abi to test which registers the
1752         current function would need to save before it uses them.
1753         (mark_unavailable_hard_regs): Update handling of call-clobbered
1754         registers, using call_clobbers_in_region to find out which registers
1755         might be call-clobbered (but without taking -fipa-ra into account
1756         for now).  Remove separate handling of partially call-clobbered
1757         registers.
1758         (verify_target_availability): Use crossed_call_abis instead of
1759         crosses_call.
1760         (get_spec_check_type_for_insn, find_used_regs): Likewise.
1761         (fur_orig_expr_found, fur_on_enter, fur_orig_expr_not_found): Likewise.
1763 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1765         * sched-deps.c (deps_analyze_insn): Use the ABI of the target
1766         function to test whether a register is fully or partly clobbered.
1768 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1770         * rtlanal.c: Include function-abi.h.
1771         (reg_set_p): Use insn_callee_abi to get the ABI of the called
1772         function and clobbers_reg_p to test whether the register
1773         is call-clobbered.
1774         (find_all_hard_reg_sets): When implicit is true, use insn_callee_abi
1775         to get the ABI of the called function and full_reg_clobbers to
1776         get the set of fully call-clobbered registers.  Warn about the
1777         pitfalls of using this mode.
1779 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1781         * reload.c: Include function-abi.h.
1782         (find_equiv_reg): Use clobbers_reg_p to test whether either
1783         of the equivalent registers is clobbered by a call.
1784         * reload1.c: Include function-abi.h.
1785         (reg_reloaded_call_part_clobbered): Delete.
1786         (reload): Use crtl->abi to test which registers would need
1787         saving in the prologue before use.
1788         (find_reg): Likewise.
1789         (emit_reload_insns): Remove code for reg_reloaded_call_part_clobbered.
1790         (reload_as_needed): Likewise.  Use full_and_partial_reg_clobbers
1791         instead of call_used_or_fixed_regs | reg_reloaded_call_part_clobbered.
1793 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1795         * regrename.h (du_head::call_clobber_mask): New field.
1796         (du_head::need_caller_save_reg): Replace with...
1797         (du_head::call_abis): ...this new field.
1798         * regrename.c: Include function-abi.h.
1799         (call_clobbered_in_chain_p): New function.
1800         (check_new_reg_p): Use crtl->abi when deciding whether a register
1801         is free for use after RA.  Use call_clobbered_in_chain_p to test
1802         whether a candidate register would be clobbered by a call.
1803         (find_rename_reg): Don't add call-clobber conflicts here.
1804         (rename_chains): Check call_abis instead of need_caller_save_reg.
1805         (merge_chains): Update for changes to du_head.
1806         (build_def_use): Use insn_callee_abi to get the ABI of the call insn
1807         target.  Record the ABI identifier in call_abis and the set of
1808         fully or partially clobbered registers in call_clobber_mask.
1809         Add fully-clobbered registers to hard_conflicts here rather
1810         than in find_rename_reg.
1811         * config/aarch64/cortex-a57-fma-steering.c: Include function-abi.h.
1812         (rename_single_chain): Check call_abis instead of need_caller_save_reg.
1813         * config/aarch64/falkor-tag-collision-avoidance.c: Include
1814         function-abi.h.
1815         * config/c6x/c6x.c: Likewise.
1817 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1819         * regcprop.c (copyprop_hardreg_forward_1): Use the recorded
1820         mode of the register when deciding whether it is no longer
1821         available after a call.
1823 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1825         * recog.c: Include function-abi.h.
1826         (peep2_find_free_register): Use crtl->abi when deciding whether
1827         a register is free for use after RA.
1829 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1831         * postreload-gcse.c: Include regs.h and function-abi.h.
1832         (record_opr_changes): Use insn_callee_abi to get the ABI of the
1833         call insn target.  Conservatively assume that partially-clobbered
1834         registers are altered.
1836 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1838         * postreload.c (reload_combine_recognize_pattern): Use crtl->abi
1839         when deciding whether a register is free for use after RA.
1840         (reload_combine): Remove unnecessary use of fixed_reg_set.
1841         (reload_cse_move2add): Use insn_callee_abi to get the ABI of the
1842         call insn target.  Use reg_mode when testing whether a register
1843         is no longer available.
1845 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1847         * target.def (return_call_with_max_clobbers): Delete.
1848         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1849         * doc/tm.texi: Regenerate.
1850         * config/aarch64/aarch64.c (aarch64_return_call_with_max_clobbers)
1851         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): Delete.
1852         * lra-int.h (lra_reg::actual_call_used_reg_set): Delete.
1853         (lra_reg::call_insn): Delete.
1854         * lra.c: Include function-abi.h.
1855         (initialize_lra_reg_info_element): Don't initialize the fields above.
1856         (lra): Use crtl->abi to test whether the current function needs to
1857         save a register in the prologue.  Remove special pre-inheritance
1858         lra_create_live_ranges pass for flag_ipa_ra.
1859         * lra-assigns.c: Include function-abi.h
1860         (find_hard_regno_for_1): Use crtl->abi to test whether the current
1861         function needs to save a register in the prologue.
1862         (lra_assign): Assert that registers aren't allocated to a
1863         conflicting register, rather than checking only for overlaps
1864         with call_used_or_fixed_regs.  Do this even for flag_ipa_ra,
1865         and for registers that are not live across a call.
1866         * lra-constraints.c (last_call_for_abi): New variable.
1867         (full_and_partial_call_clobbers): Likewise.
1868         (setup_next_usage_insn): Remove the register from
1869         full_and_partial_call_clobbers.
1870         (need_for_call_save_p): Use call_clobbered_in_region_p to test
1871         whether the register needs a caller save.
1872         (need_for_split_p): Use full_and_partial_reg_clobbers instead
1873         of call_used_or_fixed_regs.
1874         (inherit_in_ebb): Initialize and maintain last_call_for_abi and
1875         full_and_partial_call_clobbers.
1876         * lra-lives.c (check_pseudos_live_through_calls): Replace
1877         last_call_used_reg_set and call_insn arguments with an abi argument.
1878         Remove handling of lra_reg::call_insn.  Use function_abi::mode_clobbers
1879         as the set of conflicting registers.
1880         (calls_have_same_clobbers_p): Delete.
1881         (process_bb_lives): Track the ABI of the last call instead of an
1882         insn/HARD_REG_SET pair.  Update calls to
1883         check_pseudos_live_through_calls.  Use eh_edge_abi to calculate
1884         the set of registers that could be clobbered by an EH edge.
1885         Include partially-clobbered as well as fully-clobbered registers.
1886         (lra_create_live_ranges_1): Don't initialize lra_reg::call_insn.
1887         * lra-remat.c: Include function-abi.h.
1888         (call_used_regs_arr_len, call_used_regs_arr): Delete.
1889         (set_bb_regs): Use insn_callee_abi to get the set of call-clobbered
1890         registers and bitmap_view to combine them into dead_regs.
1891         (call_used_input_regno_present_p): Take a function_abi argument
1892         and use it to test whether a register is call-clobbered.
1893         (calculate_gen_cands): Use insn_callee_abi to get the ABI of the
1894         call insn target.  Update tje call to call_used_input_regno_present_p.
1895         (do_remat): Likewise.
1896         (lra_remat): Remove the initialization of call_used_regs_arr_len
1897         and call_used_regs_arr.
1899 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1901         * loop-iv.c: Include regs.h and function-abi.h.
1902         (simplify_using_initial_values): Use insn_callee_abi to get the
1903         ABI of the call insn target.  Conservatively assume that
1904         partially-clobbered registers are altered.
1906 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1908         * function-abi.h (call_clobbers_in_region): Declare.
1909         (call_clobbered_in_region_p): New function.
1910         * function-abi.cc (call_clobbers_in_region): Likewise.
1911         * ira-int.h: Include function-abi.h.
1912         (ira_allocno::crossed_calls_abis): New field.
1913         (ALLOCNO_CROSSED_CALLS_ABIS): New macro.
1914         (ira_need_caller_save_regs): New function.
1915         (ira_need_caller_save_p): Likewise.
1916         * ira.c (setup_reg_renumber): Use ira_need_caller_save_p instead
1917         of call_used_or_fixed_regs.
1918         (do_reload): Use crtl->abi to test whether the current function
1919         needs to save a register in the prologue.  Count registers that
1920         need to be saved rather than registers that don't.
1921         * ira-build.c (create_cap_allocno): Copy ALLOCNO_CROSSED_CALLS_ABIS.
1922         Remove unnecessary | from ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1923         (propagate_allocno_info): Merge ALLOCNO_CROSSED_CALLS_ABIS too.
1924         (propagate_some_info_from_allocno): Likewise.
1925         (copy_info_to_removed_store_destinations): Likewise.
1926         (ira_flattening): Say that ALLOCNO_CROSSED_CALLS_ABIS and
1927         ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS are handled conservatively.
1928         (ira_build): Use ira_need_caller_save_regs instead of
1929         call_used_or_fixed_regs.
1930         * ira-color.c (calculate_saved_nregs): Use crtl->abi to test
1931         whether the current function would need to save a register
1932         before using it.
1933         (calculate_spill_cost): Likewise.
1934         (allocno_reload_assign): Use ira_need_caller_save_regs and
1935         ira_need_caller_save_p instead of call_used_or_fixed_regs.
1936         * ira-conflicts.c (ira_build_conflicts): Use
1937         ira_need_caller_save_regs rather than call_used_or_fixed_regs
1938         as the set of call-clobbered registers.  Remove the
1939         call_used_or_fixed_regs mask from the calculation of
1940         temp_hard_reg_set and mask its use instead.  Remove special
1941         handling of partially-clobbered registers.
1942         * ira-costs.c (ira_tune_allocno_costs): Use ira_need_caller_save_p.
1943         * ira-lives.c (process_bb_node_lives): Use mode_clobbers to
1944         calculate the set of conflicting registers for calls that
1945         can throw.  Record the ABIs of calls in ALLOCNO_CROSSED_CALLS_ABIS.
1946         Use full_and_partial_reg_clobbers rather than full_reg_clobbers
1947         for the calculation of ALLOCNO_CROSSED_CALLS_CLOBBERED_REGS.
1948         Use eh_edge_abi to calculate the set of registers that could
1949         be clobbered by an EH edge.  Include partially-clobbered as
1950         well as fully-clobbered registers.
1952 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1954         * haifa-sched.c: Include function-abi.h.
1955         (alloc_global_sched_pressure_data): Use crtl->abi to check whether
1956         the function would need to save a register before using it.
1958 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1960         * gcse.c: Include function-abi.h.
1961         (compute_hash_table_work): Use insn_callee_abi to get the ABI of
1962         the call insn target.  Invalidate partially call-clobbered
1963         registers as well as fully call-clobbered ones.
1965 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1967         * function.c (aggregate_value_p): Work out which ABI the
1968         function is using before testing which registers are at least
1969         partly preserved by a call.
1971 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1973         * early-remat.c: Include regs.h and function-abi.h.
1974         (early_remat::maybe_add_candidate): Don't check for call-clobbered
1975         registers here.
1976         (early_remat::restrict_remat_for_unavail_regs): New function.
1977         (early_remat::restrict_remat_for_call): Likewise.
1978         (early_remat::process_block): Before calling emit_remat_insns
1979         for a previous call in the block, invalidate any candidates
1980         that would clobber call-preserved registers.
1981         (early_remat::emit_remat_insns_for_block): Likewise for the
1982         final call in a block.  Do the same thing for live-in registers
1983         when calling emit_remat_insns at the head of a block.
1985 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1987         * df-scan.c (df_get_entry_block_def_set): Use crtl->abi to test
1988         whether the current function needs to save at least part of a
1989         register before using it.
1990         (df_get_exit_block_use_set): Likewise for epilogue restores.
1992 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
1994         * df-problems.c: Include regs.h and function-abi.h.
1995         (df_rd_problem_data): Rename sparse_invalidated_by_call to
1996         sparse_invalidated_by_eh and dense_invalidated_by_call to
1997         dense_invalidated_by_eh.
1998         (df_print_bb_index): Update accordingly.
1999         (df_rd_alloc, df_rd_start_dump, df_rd_confluence_n): Likewise.
2000         (df_lr_confluence_n): Use eh_edge_abi to get the set of registers
2001         that are clobbered by an EH edge.  Clobber partially-clobbered
2002         registers as well as fully-clobbered ones.
2003         (df_md_confluence_n): Likewise.
2004         (df_rd_local_compute): Likewise.  Update for changes to
2005         df_rd_problem_data.
2006         * df-scan.c (df_scan_start_dump): Use eh_edge_abi to get the set
2007         of registers that are clobbered by an EH edge.  Includde partially-
2008         clobbered registers as well as fully-clobbered ones.
2010 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2012         * cselib.c (cselib_process_insn): If we know what mode a
2013         register was set in, check whether it is clobbered in that
2014         mode by a call.  Only fall back to reg_raw_mode if that fails.
2016 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2018         * cse.c: Include regs.h and function-abi.h.
2019         (invalidate_for_call): Take the call insn as an argument.
2020         Use insn_callee_abi to get the ABI of the call and invalidate
2021         partially clobbered registers as well as fully clobbered ones.
2022         (cse_insn): Update call accordingly.
2024 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2026         * combine.c: Include function-abi.h.
2027         (record_dead_and_set_regs): Use insn_callee_abi to get the ABI
2028         of the target of call insns.  Invalidate partially-clobbered
2029         registers as well as fully-clobbered ones.
2031 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2033         * cfgloopanal.c: Include regs.h and function-abi.h.
2034         (init_set_costs): Use default_function_abi to test whether
2035         a general register is call-clobbered.
2037 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2039         * cfgcleanup.c (old_insns_match_p): Compare the ABIs of calls
2040         instead of the call-clobbered sets.
2042 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2044         * caller-save.c (setup_save_areas): Remove redundant |s of
2045         fixed_reg_set.
2046         (save_call_clobbered_regs): Likewise.  Use the call ABI rather
2047         than call_used_or_fixed_regs to decide whether a REG_RETURNED
2048         value is useful.
2050 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2052         * rtl.h (predefined_function_abi): Declare.
2053         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2054         instead of a boolean call_save flag.
2055         * config/gcn/gcn.c (gcn_hard_regno_caller_save_mode): Update call
2056         accordingly.
2057         * config/i386/i386.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2058         * config/ia64/ia64.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2059         * config/mips/mips.c (mips_hard_regno_caller_save_mode): Likewise.
2060         * config/msp430/msp430.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2061         * config/rs6000/rs6000.h (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
2062         * config/sh/sh.c (sh_hard_regno_caller_save_mode): Likewise.
2063         * reginfo.c (init_reg_modes_target): Likewise.
2064         (choose_hard_reg_mode): Take a pointer to a predefined_function_abi
2065         instead of a boolean call_save flag.
2066         * targhooks.c: Include function-abi.h.
2067         (default_dwarf_frame_reg_mode): Update call to choose_hard_reg_mode,
2068         using eh_edge_abi to choose the mode.
2070 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2072         * target.def (hard_regno_call_part_clobbered): Take an ABI
2073         identifier instead of an rtx_insn.
2074         * doc/tm.texi: Regenerate.
2075         * hooks.h (hook_bool_insn_uint_mode_false): Delete.
2076         (hook_bool_uint_uint_mode_false): New function.
2077         * hooks.c (hook_bool_insn_uint_mode_false): Delete.
2078         (hook_bool_uint_uint_mode_false): New function.
2079         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2080         Take an ABI identifier instead of an rtx_insn.
2081         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Likewise.
2082         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Likewise.
2083         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Likewise.
2084         * config/pru/pru.c (pru_hard_regno_call_part_clobbered): Likewise.
2085         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered):
2086         Likewise.
2087         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Likewise.
2088         * cselib.c: Include function-abi.h.
2089         (cselib_process_insn): Update call to
2090         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2091         to get the appropriate ABI identifier.
2092         * function-abi.cc (predefined_function_abi::initialize): Update call
2093         to targetm.hard_regno_call_part_clobbered.
2094         * ira-conflicts.c (ira_build_conflicts): Likewise.
2095         * ira-costs.c (ira_tune_allocno_costs): Likewise.
2096         * lra-constraints.c: Include function-abi.h.
2097         (need_for_call_save_p): Update call to
2098         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2099         to get the appropriate ABI identifier.
2100         * lra-lives.c (check_pseudos_live_through_calls): Likewise.
2101         * regcprop.c (copyprop_hardreg_forward_1): Update call
2102         to targetm.hard_regno_call_part_clobbered.
2103         * reginfo.c (choose_hard_reg_mode): Likewise.
2104         * regrename.c (check_new_reg_p): Likewise.
2105         * reload.c (find_equiv_reg): Likewise.
2106         * reload1.c (emit_reload_insns): Likewise.
2107         * sched-deps.c: Include function-abi.h.
2108         (deps_analyze_insn): Update call to
2109         targetm.hard_regno_call_part_clobbered, using insn_callee_abi
2110         to get the appropriate ABI identifier.
2111         * sel-sched.c (init_regs_for_mode, mark_unavailable_hard_regs): Update
2112         call to targetm.hard_regno_call_part_clobbered.
2113         * targhooks.c (default_dwarf_frame_reg_mode): Likewise.
2115 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2117         * config/i386/i386.c: Include function-abi.h.
2118         (ix86_avx_u128_mode_needed): Treat function calls as AVX_U128_ANY
2119         if they preserve some 256-bit or 512-bit SSE registers.
2121 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2123         * target.def (insn_callee_abi): New hook.
2124         (remove_extra_call_preserved_regs): Delete.
2125         * doc/tm.texi.in (TARGET_INSN_CALLEE_ABI): New macro.
2126         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2127         * doc/tm.texi: Regenerate.
2128         * targhooks.h (default_remove_extra_call_preserved_regs): Delete.
2129         * targhooks.c (default_remove_extra_call_preserved_regs): Delete.
2130         * config/aarch64/aarch64.c (aarch64_simd_call_p): Constify the
2131         insn argument.
2132         (aarch64_remove_extra_call_preserved_regs): Delete.
2133         (aarch64_insn_callee_abi): New function.
2134         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): Delete.
2135         (TARGET_INSN_CALLEE_ABI): New macro.
2136         * rtl.h (get_call_fndecl): Declare.
2137         (cgraph_rtl_info): Fix formatting.  Tweak comment for
2138         function_used_regs.  Remove function_used_regs_valid.
2139         * rtlanal.c (get_call_fndecl): Moved from final.c
2140         * function-abi.h (insn_callee_abi): Declare.
2141         (target_function_abi_info): Mention insn_callee_abi.
2142         * function-abi.cc (fndecl_abi): Handle flag_ipa_ra in a similar
2143         way to get_call_reg_set_usage did.
2144         (insn_callee_abi): New function.
2145         * regs.h (get_call_reg_set_usage): Delete.
2146         * final.c: Include function-abi.h.
2147         (collect_fn_hard_reg_usage): Add fixed and stack registers to
2148         function_used_regs before the main loop rather than afterwards.
2149         Use insn_callee_abi instead of get_call_reg_set_usage.  Exit early
2150         if function_used_regs ends up not being useful.
2151         (get_call_fndecl): Move to rtlanal.c
2152         (get_call_cgraph_rtl_info, get_call_reg_set_usage): Delete.
2153         * caller-save.c: Include function-abi.h.
2154         (setup_save_areas, save_call_clobbered_regs): Use insn_callee_abi
2155         instead of get_call_reg_set_usage.
2156         * cfgcleanup.c: Include function-abi.h.
2157         (old_insns_match_p): Use insn_callee_abi instead of
2158         get_call_reg_set_usage.
2159         * cgraph.h (cgraph_node::rtl_info): Take a const_tree instead of
2160         a tree.
2161         * cgraph.c (cgraph_node::rtl_info): Likewise.  Initialize
2162         function_used_regs.
2163         * df-scan.c: Include function-abi.h.
2164         (df_get_call_refs): Use insn_callee_abi instead of
2165         get_call_reg_set_usage.
2166         * ira-lives.c: Include function-abi.h.
2167         (process_bb_node_lives): Use insn_callee_abi instead of
2168         get_call_reg_set_usage.
2169         * lra-lives.c: Include function-abi.h.
2170         (process_bb_lives): Use insn_callee_abi instead of
2171         get_call_reg_set_usage.
2172         * postreload.c: Include function-abi.h.
2173         (reload_combine): Use insn_callee_abi instead of
2174         get_call_reg_set_usage.
2175         * regcprop.c: Include function-abi.h.
2176         (copyprop_hardreg_forward_1): Use insn_callee_abi instead of
2177         get_call_reg_set_usage.
2178         * resource.c: Include function-abi.h.
2179         (mark_set_resources, mark_target_live_regs): Use insn_callee_abi
2180         instead of get_call_reg_set_usage.
2181         * var-tracking.c: Include function-abi.h.
2182         (dataflow_set_clear_at_call): Use insn_callee_abi instead of
2183         get_call_reg_set_usage.
2185 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2187         * target.def (fntype_abi): New target hook.
2188         * doc/tm.texi.in (TARGET_FNTYPE_ABI): Likewise.
2189         * doc/tm.texi: Regenerate.
2190         * target.h (predefined_function_abi): Declare.
2191         * function-abi.cc (fntype_abi): Call targetm.calls.fntype_abi,
2192         if defined.
2193         * config/aarch64/aarch64.h (ARM_PCS_SIMD): New arm_pcs value.
2194         * config/aarch64/aarch64.c: Include function-abi.h.
2195         (aarch64_simd_abi, aarch64_fntype_abi): New functions.
2196         (TARGET_FNTYPE_ABI): Define.
2198 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2200         * Makefile.in (OBJS): Add function-abi.o.
2201         (GTFILES): Add function-abi.h.
2202         * function-abi.cc: New file.
2203         * function-abi.h: Likewise.
2204         * emit-rtl.h (rtl_data::abi): New field.
2205         * function.c: Include function-abi.h.
2206         (prepare_function_start): Initialize crtl->abi.
2207         * read-rtl-function.c: Include regs.h and function-abi.h.
2208         (read_rtl_function_body): Initialize crtl->abi.
2209         (read_rtl_function_body_from_file_range): Likewise.
2210         * reginfo.c: Include function-abi.h.
2211         (init_reg_sets_1): Initialize default_function_abi.
2212         (globalize_reg): Call add_full_reg_clobber for each predefined ABI
2213         when making a register global.
2214         * target-globals.h (this_target_function_abi_info): Declare.
2215         (target_globals::function_abi_info): New field.
2216         (restore_target_globals): Copy it.
2217         * target-globals.c: Include function-abi.h.
2218         (default_target_globals): Initialize the function_abi_info field.
2219         (target_globals): Allocate it.
2220         (save_target_globals): Free it.
2222 2019-09-30  Nick Clifton  <nickc@redhat.com>
2224         PR target/85978
2225         * config/frv/frv.c (frv_register_move_cost): Add break statements
2226         to avoid falling through to the wrong cases.  Tidy code.
2228 2019-09-30  Richard Sandiford  <richard.sandiford@arm.com>
2230         * config/aarch64/aarch64.c (aarch64_hard_regno_call_part_clobbered):
2231         For multi-registers modes, test how big each register part is.
2233 2019-09-30  Nick Clifton  <nickc@redhat.com>
2235         PR target/59205
2236         * config/iq2000/iq2000.c (iq2000_select_section): Delete.
2237         (TARGET_ASM_SELECT_SECTION): Remove definition.
2238         (TARGET_HAVE_SWITCHABLE_BSS_SECTIONS): Allow definition.
2240 2019-09-30  Ilya Leoshkevich  <iii@linux.ibm.com>
2242         * emit-rtl.c (init_raw_REG): New function.
2243         (gen_raw_REG): Use init_raw_REG.
2244         * gengenrtl.c (gendef): Emit init_* functions and alloca_*
2245         macros.
2246         * rtl.c (rtx_alloc_stat_v): Use rtx_init.
2247         * rtl.h (rtx_init): New function.
2248         (rtx_alloca): New function.
2249         (init_raw_REG): New function.
2250         (alloca_raw_REG): New macro.
2252 2019-09-30  Michael Meissner  <meissner@linux.ibm.com>
2254         * config/rs6000/predicates.md (pcrel_address): Delete predicate.
2255         (pcrel_local_address): Replace pcrel_address predicate, use the
2256         new function address_to_insn_form.
2257         (pcrel_external_address): Replace with new implementation using
2258         address_to_insn_form..
2259         (prefixed_mem_operand): Delete predicate which is now unused.
2260         (pcrel_external_mem_operand): Delete predicate which is now
2261         unused.
2262         * config/rs6000/rs6000-protos.h (enum insn_form): New
2263         enumeration.
2264         (enum non_prefixed_form): New enumeration.
2265         (address_to_insn_form): New declaration.
2266         (prefixed_load_p): New declaration.
2267         (prefixed_store_p): New declaration.
2268         (prefixed_paddi_p): New declaration.
2269         (rs6000_asm_output_opcode): New declaration.
2270         (rs6000_final_prescan_insn): Move declaration and update calling
2271         signature.
2272         (address_is_prefixed): New helper inline function.
2273         * config/rs6000/rs6000.c(print_operand_address): Check for either
2274         PC-relative local symbols or PC-relative external symbols.
2275         (rs6000_emit_move): Support loading PC-relative addresses.
2276         (mode_supports_prefixed_address_p): Delete, no longer used.
2277         (rs6000_prefixed_address_mode_p): Delete, no longer used.
2278         (address_to_insn_form): New function to decode an address format.
2279         (reg_to_non_prefixed): New function to identify what the
2280         non-prefixed memory instruction format is for a register.
2281         (prefixed_load_p): New function to identify prefixed loads.
2282         (prefixed_store_p): New function to identify prefixed stores.
2283         (prefixed_paddi_p): New function to identify prefixed load
2284         immediates.
2285         (next_insn_prefixed_p): New static state variable.
2286         (rs6000_final_prescan_insn): New function to determine if an insn
2287         uses a prefixed instruction.
2288         (rs6000_asm_output_opcode): New function to emit 'p' in front of a
2289         prefixed instruction.
2290         * config/rs6000/rs6000.h (FINAL_PRESCAN_INSN): New target hook.
2291         (ASM_OUTPUT_OPCODE): New target hook.
2292         * config/rs6000/rs6000.md (prefixed): New insn attribute for
2293         prefixed instructions.
2294         (prefixed_length): New insn attribute for the size of prefixed
2295         instructions.
2296         (non_prefixed_length): New insn attribute for the size of
2297         non-prefixed instructions.
2298         (pcrel_local_addr): New insn to load up a local PC-relative
2299         address.
2300         (pcrel_extern_addr): New insn to load up an external PC-relative
2301         address.
2302         (mov<mode>_64bit_dm): Split the alternatives for loading 0.0 to a
2303         GPR and loading a 128-bit floating point type to a GPR.
2305 2019-09-30  Richard Biener  <rguenther@suse.de>
2307         * gimple.c (gimple_get_lhs): For PHIs return the result.
2308         * tree-vectorizer.h (vectorizable_live_operation): Also get the
2309         SLP instance as argument.
2310         * tree-vect-loop.c (vect_analyze_loop_operations): Also handle
2311         double-reduction PHIs with vectorizable_lc_phi.
2312         (vect_analyze_loop_operations): Adjust.
2313         (vect_create_epilog_for_reduction): Remove all code not dealing
2314         with reduction LC PHI or epilogue generation.
2315         (vectorizable_live_operation): Call vect_create_epilog_for_reduction
2316         for live stmts of reductions.
2317         * tree-vect-stmts.c (vectorizable_condition): When !for_reduction
2318         do not handle defs that are not vect_internal_def.
2319         (can_vectorize_live_stmts): Adjust.
2320         (vect_analyze_stmt): When the vectorized stmt defined a value
2321         used on backedges adjust the backedge uses of vectorized PHIs.
2323 2019-09-30  Martin Jambor  <mjambor@suse.cz>
2325         PR ipa/91853
2326         * tree-inline.c (force_value_to_type): New function.
2327         (setup_one_parameter): Use force_value_to_type to convert type.
2328         * tree-inline.c (force_value_to_type): Declare.
2329         * ipa-param-manipulation.c (ipa_param_adjustments::modify_call): Deal
2330         with register type mismatches.
2332 2019-09-30  Andreas Tobler  <andreast@gcc.gnu.org>
2334         * config.gcc: Use the secure-plt on FreeBSD 13 and upwards for
2335         32-bit PowerPC.
2336         Define TARGET_FREEBSD32_SECURE_PLT for 64-bit PowerPC.
2337         * config/rs6000/t-freebsd64: Make use of the above define and build
2338         the 32-bit libraries with secure-plt.
2340 2019-09-30  Jakub Jelinek  <jakub@redhat.com>
2342         PR target/91931
2343         * config/i386/i386-expand.c (ix86_expand_adjust_ufix_to_sfix_si): Use
2344         gen_int_mode instead of GEN_INT.
2346 2019-09-29  Iain Sandoe  <iain@sandoe.co.uk>
2348         * config/darwin.c (gen_macho_low): Amend to include the mode
2349         argument.
2350         (machopic_indirect_data_reference): Amend gen_macho_low call
2351         to include mode argument
2352         * config/rs6000/rs6000.c (emit_move): Likewise. Amend a comment.
2353         * config/rs6000/darwin.md (@macho_low_<mode>): New, replaces
2354         the macho_high expander and two define_insn entries.
2356 2019-09-29  Jakub Jelinek  <jakub@redhat.com>
2358         PR bootstrap/90543
2359         * optc-save-gen.awk: Fix up printing string option differences.
2361 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
2363         * config/rs6000/rs6000.c (rs6000_builtin_vectorization_cost): Lower
2364         vec_perm cost to 1 for non-Power7 VSX architectures.
2366 2019-09-29  Kewen Lin  <linkw@gcc.gnu.org>
2368         * config/rs6000/vsx.md (vec_pack[su]_float_v2di): New define_expand.
2369         (vec_unpack_[su]fix_trunc_hi_v4sf): Likewise.
2370         (vec_unpack_[su]fix_trunc_lo_v4sf): Likewise.
2372 2019-09-28  Iain Sandoe  <iain@sandoe.co.uk>
2374         * config/darwin.c (gen_macho_high): Amend to include the mode
2375         argument.
2376         (machopic_indirect_data_reference): Amend gen_macho_high call
2377         to include mode argument.
2378         (machopic_legitimize_pic_address): Likewise.
2379         * config/rs6000/rs6000.c (rs6000_legitimize_address):
2380         * config/rs6000/darwin.md (@macho_high_<mode>): New, replaces
2381         the macho_high expander and two define_insn entries.
2383 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
2385         PR target/86805
2386         * config/sh/sh.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
2388 2019-09-28  Oleg Endo  <olegendo@gcc.gnu.org>
2390         PR target/80672
2391         * config/sh/sh.c (parse_validate_atomic_model_option): Use
2392         std::string::compare instead of std::string::find.
2394 2019-09-27  Maciej W. Rozycki  <macro@wdc.com>
2396         * configure: Regenerate.
2398 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
2400         PR middle-end/91920
2401         * gimplify.c (omp_default_clause): Predetermine DECL_IN_CONSTANT_POOL
2402         variables as shared.
2404 2019-09-27  Iain Sandoe  <iain@sandoe.co.uk>
2406         * config/rs6000/darwin.md (@macho_correct_pic_<mode>): New,
2407         replaces the expander and two define_insn entries.
2408         (@reload_macho_picbase_<mode>): Update gen_macho_correct_pic
2409         call.
2410         * config/rs6000/rs6000.md (builtin_setjmp_receiver): Likewise.
2412 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
2414         * fibonacci_heap.h (fibonacci_heap::empty): Make const.
2415         (fibonacci_heap::nodes): Likewise.
2416         (fibonacci_heap::min_key): Likewise.
2417         (fibonacci_heap::min): Likewise.
2419 2019-09-27  David Malcolm  <dmalcolm@redhat.com>
2421         * cgraph.c (cgraph_node::get_fun): Make const.
2422         * cgraph.h (cgraph_node::get_fun): Likewise.
2424 2019-09-27  Jakub Jelinek  <jakub@redhat.com>
2426         PR target/91919
2427         * config/arm/arm.md (<US>mlal): Remove SE wrappers around operands
2428         of SImode MULT.
2430 2019-09-27  Richard Biener  <rguenther@suse.de>
2432         * tree-vectorizer.h (_stmt_vec_info::reduc_fn): New.
2433         (STMT_VINFO_REDUC_FN): Likewise.
2434         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
2435         STMT_VINFO_REDUC_FN.
2436         * tree-vect-loop.c (vect_is_simple_reduction): Fix STMT_VINFO_REDUC_IDX
2437         for condition reductions.
2438         (vect_create_epilog_for_reduction): Compute all required state
2439         from the stmt to be vectorized.
2440         (vectorizable_reduction): Simplify vect_create_epilog_for_reduction
2441         invocation and remove then dead code.  For single def-use chains
2442         record only a single vector stmt.
2444 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2446         * config/aarch64/aarch64-protos.h (aarch64_builtin_class): New enum.
2447         (AARCH64_BUILTIN_SHIFT, AARCH64_BUILTIN_CLASS): New constants.
2448         (aarch64_gimple_fold_builtin, aarch64_mangle_builtin_type)
2449         (aarch64_fold_builtin, aarch64_init_builtins, aarch64_expand_builtin):
2450         (aarch64_builtin_decl, aarch64_builtin_rsqrt): Delete.
2451         (aarch64_general_mangle_builtin_type, aarch64_general_init_builtins):
2452         (aarch64_general_fold_builtin, aarch64_general_gimple_fold_builtin):
2453         (aarch64_general_expand_builtin, aarch64_general_builtin_decl):
2454         (aarch64_general_builtin_rsqrt): Declare.
2455         * config/aarch64/aarch64-builtins.c (aarch64_general_add_builtin):
2456         New function.
2457         (aarch64_mangle_builtin_type): Rename to...
2458         (aarch64_general_mangle_builtin_type): ...this.
2459         (aarch64_init_fcmla_laneq_builtins, aarch64_init_simd_builtins)
2460         (aarch64_init_crc32_builtins, aarch64_init_builtin_rsqrt)
2461         (aarch64_init_pauth_hint_builtins, aarch64_init_tme_builtins): Use
2462         aarch64_general_add_builtin instead of add_builtin_function.
2463         (aarch64_init_builtins): Rename to...
2464         (aarch64_general_init_builtins): ...this.  Use
2465         aarch64_general_add_builtin instead of add_builtin_function.
2466         (aarch64_builtin_decl): Rename to...
2467         (aarch64_general_builtin_decl): ...this and remove the unused
2468         arguments.
2469         (aarch64_expand_builtin): Rename to...
2470         (aarch64_general_expand_builtin): ...this and remove the unused
2471         arguments.
2472         (aarch64_builtin_rsqrt): Rename to...
2473         (aarch64_general_builtin_rsqrt): ...this.
2474         (aarch64_fold_builtin): Rename to...
2475         (aarch64_general_fold_builtin): ...this.  Take the function subcode
2476         and return type as arguments.  Remove the "ignored" argument.
2477         (aarch64_gimple_fold_builtin): Rename to...
2478         (aarch64_general_gimple_fold_builtin): ...this.  Take the function
2479         subcode and gcall as arguments, and return the new function call.
2480         * config/aarch64/aarch64.c (aarch64_init_builtins)
2481         (aarch64_fold_builtin, aarch64_gimple_fold_builtin)
2482         (aarch64_expand_builtin, aarch64_builtin_decl): New functions.
2483         (aarch64_builtin_reciprocal): Call aarch64_general_builtin_rsqrt
2484         instead of aarch64_builtin_rsqrt.
2485         (aarch64_mangle_type): Call aarch64_general_mangle_builtin_type
2486         instead of aarch64_mangle_builtin_type.
2488 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2490         * target.def (check_builtin_call): New target hook.
2491         * doc/tm.texi.in (TARGET_CHECK_BUILTIN_CALL): New @hook.
2492         * doc/tm.texi: Regenerate.
2494 2019-09-27  Richard Sandiford  <richard.sandiford@arm.com>
2496         PR tree-optimization/91909
2497         * tree-vect-loop.c (vect_create_epilog_for_reduction): Take a
2498         reduc_index parameter.  When handling COND_REDUCTION, make sure
2499         that the reduction phi operand is in the correct arm of the
2500         VEC_COND_EXPR.
2501         (vectorizable_reduction): Pass reduc_index to the above.
2503 2019-09-27  Yuliang Wang  <yuliang.wang@arm.com>
2505         * config/aarch64/aarch64-sve2.md (aarch64_sve2_sra<mode>):
2506         New combine pattern.
2508 2019-09-26  Max Filippov  <jcmvbkbc@gmail.com>
2510         * config/xtensa/xtensa.c (hwloop_optimize): Insert zero overhead
2511         loop instruction into new basic block before the loop when basic
2512         block that precedes the loop is empty.
2514 2019-09-26  Jakub Jelinek  <jakub@redhat.com>
2516         * function.c (gimplify_parameters): Use build_clobber function.
2517         * tree-ssa.c (execute_update_addresses_taken): Likewise.
2518         * tree-inline.c (expand_call_inline): Likewise.
2519         * tree-sra.c (clobber_subtree): Likewise.
2520         * tree-ssa-ccp.c (insert_clobber_before_stack_restore): Likewise.
2521         * omp-low.c (lower_rec_simd_input_clauses, lower_rec_input_clauses,
2522         lower_omp_single, lower_depend_clauses, lower_omp_taskreg,
2523         lower_omp_target): Likewise.
2524         * omp-expand.c (expand_omp_for_generic): Likewise.
2525         * omp-offload.c (ompdevlow_adjust_simt_enter): Likewise.
2527 2019-09-26  Will Schmidt <will_schmidt@vnet.ibm.com>
2529         * config/rs6000/rs6000-builtin.def: (LVSL, LVSR, LVEBX, LVEHX,
2530         LVEWX, LVXL, LVXL_V2DF, LVXL_V2DI, LVXL_V4SF, LVXL_V4SI, LVXL_V8HI,
2531         LVXL_V16QI, LVX, LVX_V1TI, LVX_V2DF, LVX_V2DI, LVX_V4SF, LVX_V4SI,
2532         LVX_V8HI, LVX_V16QI, LVLX, LVLXL, LVRX, LVRXL, LXSDX, LXVD2X_V1TI,
2533         LXVD2X_V2DF, LXVD2X_V2DI, LXVDSX, LXVW4X_V4SF, LXVW4X_V4SI,
2534         LXVW4X_V8HI, LXVW4X_V16QI, LD_ELEMREV_V1TI, LD_ELEMREV_V2DF,
2535         LD_ELEMREV_V2DI, LD_ELEMREV_V4SF, LD_ELEMREV_V4SI, LD_ELEMREV_V8HI,
2536         LD_ELEMREV_V16QI): Use the PURE attribute.
2538 2019-09-26  Iain Sandoe  <iain@sandoe.co.uk>
2540         * config/rs6000/darwin.md: Replace the expanders for
2541         load_macho_picbase and reload_macho_picbase with use of '@'
2542         and <mode> in their respective define_insns.
2543         (nonlocal_goto_receiver): Pass Pmode to gen_reload_macho_picbase.
2544         * config/rs6000/rs6000-logue.c (rs6000_emit_prologue): Pass
2545         Pmode to gen_load_macho_picbase.
2546         * config/rs6000/rs6000.md: Likewise.
2548 2019-09-25  Richard Biener  <rguenther@suse.de>
2550         PR tree-optimization/91896
2551         * tree-vect-loop.c (vectorizable_reduction): The single
2552         def-use cycle optimization cannot apply when there's more
2553         than one pattern stmt involved.
2555 2019-09-26  Richard Biener  <rguenther@suse.de>
2557         * tree-vect-loop.c (vect_analyze_loop_operations): Analyze
2558         loop-closed PHIs that are vect_internal_def.
2559         (vect_create_epilog_for_reduction): Exit early for nested cycles.
2560         Simplify.
2561         (vectorizable_lc_phi): New.
2562         * tree-vect-stmts.c (vect_analyze_stmt): Call vectorize_lc_phi.
2563         (vect_transform_stmt): Likewise.
2564         * tree-vectorizer.h (stmt_vec_info_type): Add lc_phi_info_type.
2565         (vectorizable_lc_phi): Declare.
2567 2019-09-26  Richard Biener  <rguenther@suse.de>
2569         * tree-vect-loop.c (vect_analyze_loop_operations): Also call
2570         vectorizable_reduction for vect_double_reduction_def.
2571         (vect_transform_loop): Likewise.
2572         (vect_create_epilog_for_reduction): Move double-reduction
2573         PHI creation and preheader argument setting of PHIs ...
2574         (vectorizable_reduction): ... here.  Also process
2575         vect_double_reduction_def PHIs, creating the vectorized
2576         PHI nodes, remembering the scalar adjustment computed for
2577         the epilogue in STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT.
2578         Remember the original reduction code in STMT_VINFO_REDUC_CODE.
2579         * tree-vectorizer.c (vec_info::new_stmt_vec_info):
2580         Initialize STMT_VINFO_REDUC_CODE.
2581         * tree-vectorizer.h (_stmt_vec_info::reduc_epilogue_adjustment): New.
2582         (_stmt_vec_info::reduc_code): Likewise.
2583         (STMT_VINFO_REDUC_EPILOGUE_ADJUSTMENT): Likewise.
2584         (STMT_VINFO_REDUC_CODE): Likewise.
2586 2019-09-26  Matt Turner  <mattst88@gmail.com>
2588         PR driver/69471
2589         * config/aarch64/aarch64.opt (march=): Add Negative(march=).
2590         (mtune=): Add Negative(mtune=).
2591         (mcpu=): Add Negative(mcpu=).
2592         * config/arm/arm.opt: Likewise.
2594 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2596         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2597         * config/arm/arm_acle.h (__smlald, __smlaldx, __smlsld, __smlsldx):
2598         Define.
2599         * config/arm/arm_acle.h: Define builtins for the above.
2600         * config/arm/iterators.md (SIMD32_DIMODE): New int_iterator.
2601         (simd32_op): Handle the above.
2602         * config/arm/unspecs.md: Define unspecs for the above.
2604 2019-09-26  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2606         * config/arm/arm.md (arm_<simd32_op>): New define_insn.
2607         (arm_<sup>xtb16): Likewise.
2608         (arm_usada8): Likewise.
2609         * config/arm/arm_acle.h (__qadd8, __qsub8, __shadd8, __shsub8,
2610         __uhadd8, __uhsub8, __uqadd8, __uqsub8, __qadd16, __qasx, __qsax,
2611         __qsub16, __shadd16, __shasx, __shsax, __shsub16, __uhadd16, __uhasx,
2612         __uhsax, __uhsub16, __uqadd16, __uqasx, __uqsax, __uqsub16, __sxtab16,
2613         __sxtb16, __uxtab16, __uxtb16): Define.
2614         * config/arm/arm_acle_builtins.def: Define builtins for the above.
2615         * config/arm/unspecs.md: Define unspecs for the above.
2616         * config/arm/iterators.md (SIMD32_NOGE_BINOP): New int_iterator.
2617         (USXTB16): Likewise.
2618         (simd32_op): New int_attribute.
2619         (sup): Handle UNSPEC_SXTB16, UNSPEC_UXTB16.
2620         * doc/sourcebuild.exp (arm_simd32_ok): Document.
2622 2019-09-26  Martin Jambor  <mjambor@suse.cz>
2624         * ipa-sra.c (verify_splitting_accesses): Fix quoting in a call to
2625         internal_error.
2627 2019-09-26  Martin Jambor  <mjambor@suse.cz>
2629         * ipa-sra.c (process_scan_results): Fix continue condition.
2631 2019-09-26  Martin Liska  <mliska@suse.cz>
2633         PR tree-optimization/91885
2634         * tree-vectorizer.c (try_vectorize_loop_1): Add
2635         TODO_update_ssa_only_virtuals similarly to what slp pass does.
2637 2019-09-26  Richard Sandiford  <richard.sandiford@arm.com>
2639         * config/aarch64/aarch64.c (aarch64_rtx_costs): Use
2640         aarch64_plus_immediate rather than aarch64_uimm12_shift
2641         to test for valid PLUS immediates.
2643 2019-09-25  Martin Jambor  <mjambor@suse.cz>
2645         * tree-sra.c (no_accesses_p): Remove.
2646         (no_accesses_representant): Likewise.
2648 2019-09-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
2650         * config/aarch64/arm_neon.h (vaba_s8): Use __ in identifiers
2651         consistenly.
2652         (vaba_s16): Likewise.
2653         (vaba_s32): Likewise.
2654         (vaba_u8): Likewise.
2655         (vaba_u16): Likewise.
2656         (vaba_u32): Likewise.
2657         (vabal_high_s8): Likewise.
2658         (vabal_high_s16): Likewise.
2659         (vabal_high_s32): Likewise.
2660         (vabal_high_u8): Likewise.
2661         (vabal_high_u16): Likewise.
2662         (vabal_high_u32): Likewise.
2663         (vabal_s8): Likewise.
2664         (vabal_s16): Likewise.
2665         (vabal_s32): Likewise.
2666         (vabal_u8): Likewise.
2667         (vabal_u16): Likewise.
2668         (vabal_u32): Likewise.
2669         (vabaq_s8): Likewise.
2670         (vabaq_s16): Likewise.
2671         (vabaq_s32): Likewise.
2672         (vabaq_u8): Likewise.
2673         (vabaq_u16): Likewise.
2674         (vabaq_u32): Likewise.
2675         (vabd_s8): Likewise.
2676         (vabd_s16): Likewise.
2677         (vabd_s32): Likewise.
2678         (vabd_u8): Likewise.
2679         (vabd_u16): Likewise.
2680         (vabd_u32): Likewise.
2681         (vabdl_high_s8): Likewise.
2682         (vabdl_high_s16): Likewise.
2683         (vabdl_high_s32): Likewise.
2684         (vabdl_high_u8): Likewise.
2685         (vabdl_high_u16): Likewise.
2686         (vabdl_high_u32): Likewise.
2687         (vabdl_s8): Likewise.
2688         (vabdl_s16): Likewise.
2689         (vabdl_s32): Likewise.
2690         (vabdl_u8): Likewise.
2691         (vabdl_u16): Likewise.
2692         (vabdl_u32): Likewise.
2693         (vabdq_s8): Likewise.
2694         (vabdq_s16): Likewise.
2695         (vabdq_s32): Likewise.
2696         (vabdq_u8): Likewise.
2697         (vabdq_u16): Likewise.
2698         (vabdq_u32): Likewise.
2699         (vaddlv_s8): Likewise.
2700         (vaddlv_s16): Likewise.
2701         (vaddlv_u8): Likewise.
2702         (vaddlv_u16): Likewise.
2703         (vaddlvq_s8): Likewise.
2704         (vaddlvq_s16): Likewise.
2705         (vaddlvq_s32): Likewise.
2706         (vaddlvq_u8): Likewise.
2707         (vaddlvq_u16): Likewise.
2708         (vaddlvq_u32): Likewise.
2709         (vcvtx_f32_f64): Likewise.
2710         (vcvtx_high_f32_f64): Likewise.
2711         (vcvtxd_f32_f64): Likewise.
2712         (vmla_n_f32): Likewise.
2713         (vmla_n_s16): Likewise.
2714         (vmla_n_s32): Likewise.
2715         (vmla_n_u16): Likewise.
2716         (vmla_n_u32): Likewise.
2717         (vmla_s8): Likewise.
2718         (vmla_s16): Likewise.
2719         (vmla_s32): Likewise.
2720         (vmla_u8): Likewise.
2721         (vmla_u16): Likewise.
2722         (vmla_u32): Likewise.
2723         (vmlal_high_n_s16): Likewise.
2724         (vmlal_high_n_s32): Likewise.
2725         (vmlal_high_n_u16): Likewise.
2726         (vmlal_high_n_u32): Likewise.
2727         (vmlal_high_s8): Likewise.
2728         (vmlal_high_s16): Likewise.
2729         (vmlal_high_s32): Likewise.
2730         (vmlal_high_u8): Likewise.
2731         (vmlal_high_u16): Likewise.
2732         (vmlal_high_u32): Likewise.
2733         (vmlal_n_s16): Likewise.
2734         (vmlal_n_s32): Likewise.
2735         (vmlal_n_u16): Likewise.
2736         (vmlal_n_u32): Likewise.
2737         (vmlal_s8): Likewise.
2738         (vmlal_s16): Likewise.
2739         (vmlal_s32): Likewise.
2740         (vmlal_u8): Likewise.
2741         (vmlal_u16): Likewise.
2742         (vmlal_u32): Likewise.
2743         (vmlaq_n_f32): Likewise.
2744         (vmlaq_n_s16): Likewise.
2745         (vmlaq_n_s32): Likewise.
2746         (vmlaq_n_u16): Likewise.
2747         (vmlaq_n_u32): Likewise.
2748         (vmlaq_s8): Likewise.
2749         (vmlaq_s16): Likewise.
2750         (vmlaq_s32): Likewise.
2751         (vmlaq_u8): Likewise.
2752         (vmlaq_u16): Likewise.
2753         (vmlaq_u32): Likewise.
2754         (vmls_n_f32): Likewise.
2755         (vmls_n_s16): Likewise.
2756         (vmls_n_s32): Likewise.
2757         (vmls_n_u16): Likewise.
2758         (vmls_n_u32): Likewise.
2759         (vmls_s8): Likewise.
2760         (vmls_s16): Likewise.
2761         (vmls_s32): Likewise.
2762         (vmls_u8): Likewise.
2763         (vmls_u16): Likewise.
2764         (vmls_u32): Likewise.
2765         (vmlsl_high_n_s16): Likewise.
2766         (vmlsl_high_n_s32): Likewise.
2767         (vmlsl_high_n_u16): Likewise.
2768         (vmlsl_high_n_u32): Likewise.
2769         (vmlsl_high_s8): Likewise.
2770         (vmlsl_high_s16): Likewise.
2771         (vmlsl_high_s32): Likewise.
2772         (vmlsl_high_u8): Likewise.
2773         (vmlsl_high_u16): Likewise.
2774         (vmlsl_high_u32): Likewise.
2775         (vmlsl_n_s16): Likewise.
2776         (vmlsl_n_s32): Likewise.
2777         (vmlsl_n_u16): Likewise.
2778         (vmlsl_n_u32): Likewise.
2779         (vmlsl_s8): Likewise.
2780         (vmlsl_s16): Likewise.
2781         (vmlsl_s32): Likewise.
2782         (vmlsl_u8): Likewise.
2783         (vmlsl_u16): Likewise.
2784         (vmlsl_u32): Likewise.
2785         (vmlsq_n_f32): Likewise.
2786         (vmlsq_n_s16): Likewise.
2787         (vmlsq_n_s32): Likewise.
2788         (vmlsq_n_u16): Likewise.
2789         (vmlsq_n_u32): Likewise.
2790         (vmlsq_s8): Likewise.
2791         (vmlsq_s16): Likewise.
2792         (vmlsq_s32): Likewise.
2793         (vmlsq_u8): Likewise.
2794         (vmlsq_u16): Likewise.
2795         (vmlsq_u32): Likewise.
2796         (vmovl_high_s8): Likewise.
2797         (vmovl_high_s16): Likewise.
2798         (vmovl_high_s32): Likewise.
2799         (vmovl_high_u8): Likewise.
2800         (vmovl_high_u16): Likewise.
2801         (vmovl_high_u32): Likewise.
2802         (vmovl_s8): Likewise.
2803         (vmovl_s16): Likewise.
2804         (vmovl_s32): Likewise.
2805         (vmovl_u8): Likewise.
2806         (vmovl_u16): Likewise.
2807         (vmovl_u32): Likewise.
2808         (vmovn_high_s16): Likewise.
2809         (vmovn_high_s32): Likewise.
2810         (vmovn_high_s64): Likewise.
2811         (vmovn_high_u16): Likewise.
2812         (vmovn_high_u32): Likewise.
2813         (vmovn_high_u64): Likewise.
2814         (vmovn_s16): Likewise.
2815         (vmovn_s32): Likewise.
2816         (vmovn_s64): Likewise.
2817         (vmovn_u16): Likewise.
2818         (vmovn_u32): Likewise.
2819         (vmovn_u64): Likewise.
2820         (vmull_high_n_s16): Likewise.
2821         (vmull_high_n_s32): Likewise.
2822         (vmull_high_n_u16): Likewise.
2823         (vmull_high_n_u32): Likewise.
2824         (vmull_high_p8): Likewise.
2825         (vmull_high_s8): Likewise.
2826         (vmull_high_s16): Likewise.
2827         (vmull_high_s32): Likewise.
2828         (vmull_high_u8): Likewise.
2829         (vmull_high_u16): Likewise.
2830         (vmull_high_u32): Likewise.
2831         (vmull_n_s16): Likewise.
2832         (vmull_n_s32): Likewise.
2833         (vmull_n_u16): Likewise.
2834         (vmull_n_u32): Likewise.
2835         (vmull_p8): Likewise.
2836         (vmull_s8): Likewise.
2837         (vmull_s16): Likewise.
2838         (vmull_s32): Likewise.
2839         (vmull_u8): Likewise.
2840         (vmull_u16): Likewise.
2841         (vmull_u32): Likewise.
2842         (vpadal_s8): Likewise.
2843         (vpadal_s16): Likewise.
2844         (vpadal_s32): Likewise.
2845         (vpadal_u8): Likewise.
2846         (vpadal_u16): Likewise.
2847         (vpadal_u32): Likewise.
2848         (vpadalq_s8): Likewise.
2849         (vpadalq_s16): Likewise.
2850         (vpadalq_s32): Likewise.
2851         (vpadalq_u8): Likewise.
2852         (vpadalq_u16): Likewise.
2853         (vpadalq_u32): Likewise.
2854         (vpaddl_s8): Likewise.
2855         (vpaddl_s16): Likewise.
2856         (vpaddl_s32): Likewise.
2857         (vpaddl_u8): Likewise.
2858         (vpaddl_u16): Likewise.
2859         (vpaddl_u32): Likewise.
2860         (vpaddlq_s8): Likewise.
2861         (vpaddlq_s16): Likewise.
2862         (vpaddlq_s32): Likewise.
2863         (vpaddlq_u8): Likewise.
2864         (vpaddlq_u16): Likewise.
2865         (vpaddlq_u32): Likewise.
2866         (vpaddq_s8): Likewise.
2867         (vpaddq_s16): Likewise.
2868         (vpaddq_s32): Likewise.
2869         (vpaddq_s64): Likewise.
2870         (vpaddq_u8): Likewise.
2871         (vpaddq_u16): Likewise.
2872         (vpaddq_u32): Likewise.
2873         (vpaddq_u64): Likewise.
2874         (vqdmulh_n_s16): Likewise.
2875         (vqdmulh_n_s32): Likewise.
2876         (vqdmulhq_n_s16): Likewise.
2877         (vqdmulhq_n_s32): Likewise.
2878         (vqmovn_high_s16): Likewise.
2879         (vqmovn_high_s32): Likewise.
2880         (vqmovn_high_s64): Likewise.
2881         (vqmovn_high_u16): Likewise.
2882         (vqmovn_high_u32): Likewise.
2883         (vqmovn_high_u64): Likewise.
2884         (vqmovun_high_s16): Likewise.
2885         (vqmovun_high_s32): Likewise.
2886         (vqmovun_high_s64): Likewise.
2887         (vqrdmulh_n_s16): Likewise.
2888         (vqrdmulh_n_s32): Likewise.
2889         (vqrdmulhq_n_s16): Likewise.
2890         (vqrdmulhq_n_s32): Likewise.
2891         (vrsqrte_u32): Likewise.
2892         (vrsqrteq_u32): Likewise.
2893         (vtst_p8): Likewise.
2894         (vtst_p16): Likewise.
2895         (vtst_p64): Likewise.
2896         (vtstq_p8): Likewise.
2897         (vtstq_p16): Likewise.
2898         (vtstq_p64): Likewise.
2899         (vaddlv_s32): Likewise.
2900         (vaddlv_u32): Likewise.
2901         (vqtbl1_p8): Likewise.
2902         (vqtbl1_s8): Likewise.
2903         (vqtbl1_u8): Likewise.
2904         (vqtbl1q_p8): Likewise.
2905         (vqtbl1q_s8): Likewise.
2906         (vqtbl1q_u8): Likewise.
2907         (vqtbx1_s8): Likewise.
2908         (vqtbx1_u8): Likewise.
2909         (vqtbx1_p8): Likewise.
2910         (vqtbx1q_s8): Likewise.
2911         (vqtbx1q_u8): Likewise.
2912         (vqtbx1q_p8): Likewise.
2913         (vtbl1_s8): Likewise.
2914         (vtbl1_u8): Likewise.
2915         (vtbl1_p8): Likewise.
2916         (vtbl2_s8): Likewise.
2917         (vtbl2_u8): Likewise.
2918         (vtbl2_p8): Likewise.
2919         (vtbl3_s8): Likewise.
2920         (vtbl3_u8): Likewise.
2921         (vtbl3_p8): Likewise.
2922         (vtbl4_s8): Likewise.
2923         (vtbl4_u8): Likewise.
2924         (vtbl4_p8): Likewise.
2925         (vtbx2_s8): Likewise.
2926         (vtbx2_u8): Likewise.
2927         (vtbx2_p8): Likewise.
2928         (vld1_f32): Likewise.
2929         (vld1_f64): Likewise.
2930         (vld1_p8): Likewise.
2931         (vld1_p16): Likewise.
2932         (vld1_p64): Likewise.
2933         (vld1_s8): Likewise.
2934         (vld1_s16): Likewise.
2935         (vld1_s32): Likewise.
2936         (vld1_s64): Likewise.
2937         (vld1_u8): Likewise.
2938         (vld1_u16): Likewise.
2939         (vld1_u32): Likewise.
2940         (vld1_u64): Likewise.
2941         (vld1q_f32): Likewise.
2942         (vld1q_f64): Likewise.
2943         (vld1q_p8): Likewise.
2944         (vld1q_p16): Likewise.
2945         (vld1q_p64): Likewise.
2946         (vld1q_s8): Likewise.
2947         (vld1q_s16): Likewise.
2948         (vld1q_s32): Likewise.
2949         (vld1q_s64): Likewise.
2950         (vld1q_u8): Likewise.
2951         (vld1q_u16): Likewise.
2952         (vld1q_u32): Likewise.
2953         (vld1q_u64): Likewise.
2954         (vpmax_s8): Likewise.
2955         (vpmax_s16): Likewise.
2956         (vpmax_s32): Likewise.
2957         (vpmax_u8): Likewise.
2958         (vpmax_u16): Likewise.
2959         (vpmax_u32): Likewise.
2960         (vpmaxq_s8): Likewise.
2961         (vpmaxq_s16): Likewise.
2962         (vpmaxq_s32): Likewise.
2963         (vpmaxq_u8): Likewise.
2964         (vpmaxq_u16): Likewise.
2965         (vpmaxq_u32): Likewise.
2966         (vpmax_f32): Likewise.
2967         (vpmaxq_f32): Likewise.
2968         (vpmaxq_f64): Likewise.
2969         (vpmaxqd_f64): Likewise.
2970         (vpmaxs_f32): Likewise.
2971         (vpmaxnm_f32): Likewise.
2972         (vpmaxnmq_f32): Likewise.
2973         (vpmaxnmq_f64): Likewise.
2974         (vpmaxnmqd_f64): Likewise.
2975         (vpmaxnms_f32): Likewise.
2976         (vpmin_s8): Likewise.
2977         (vpmin_s16): Likewise.
2978         (vpmin_s32): Likewise.
2979         (vpmin_u8): Likewise.
2980         (vpmin_u16): Likewise.
2981         (vpmin_u32): Likewise.
2982         (vpminq_s8): Likewise.
2983         (vpminq_s16): Likewise.
2984         (vpminq_s32): Likewise.
2985         (vpminq_u8): Likewise.
2986         (vpminq_u16): Likewise.
2987         (vpminq_u32): Likewise.
2988         (vpmin_f32): Likewise.
2989         (vpminq_f32): Likewise.
2990         (vpminq_f64): Likewise.
2991         (vpminqd_f64): Likewise.
2992         (vpmins_f32): Likewise.
2993         (vpminnm_f32): Likewise.
2994         (vpminnmq_f32): Likewise.
2995         (vpminnmq_f64): Likewise.
2996         (vpminnmqd_f64): Likewise.
2997         (vpminnms_f32): Likewise.
2998         (vmla_f32): Likewise.
2999         (vmlaq_f32): Likewise.
3000         (vmlaq_f64): Likewise.
3001         (vmls_f32): Likewise.
3002         (vmlsq_f32): Likewise.
3003         (vmlsq_f64): Likewise.
3004         (vqtbl2_s8): Likewise.
3005         (vqtbl2_u8): Likewise.
3006         (vqtbl2_p8): Likewise.
3007         (vqtbl2q_s8): Likewise.
3008         (vqtbl2q_u8): Likewise.
3009         (vqtbl2q_p8): Likewise.
3010         (vqtbl3_s8): Likewise.
3011         (vqtbl3_u8): Likewise.
3012         (vqtbl3_p8): Likewise.
3013         (vqtbl3q_s8): Likewise.
3014         (vqtbl3q_u8): Likewise.
3015         (vqtbl3q_p8): Likewise.
3016         (vqtbl4_s8): Likewise.
3017         (vqtbl4_u8): Likewise.
3018         (vqtbl4_p8): Likewise.
3019         (vqtbl4q_s8): Likewise.
3020         (vqtbl4q_u8): Likewise.
3021         (vqtbl4q_p8): Likewise.
3022         (vqtbx2_s8): Likewise.
3023         (vqtbx2_u8): Likewise.
3024         (vqtbx2_p8): Likewise.
3025         (vqtbx2q_s8): Likewise.
3026         (vqtbx2q_u8): Likewise.
3027         (vqtbx2q_p8): Likewise.
3028         (vqtbx3_s8): Likewise.
3029         (vqtbx3_u8): Likewise.
3030         (vqtbx3_p8): Likewise.
3031         (vqtbx3q_s8): Likewise.
3032         (vqtbx3q_u8): Likewise.
3033         (vqtbx3q_p8): Likewise.
3034         (vqtbx4_s8): Likewise.
3035         (vqtbx4_u8): Likewise.
3036         (vqtbx4_p8): Likewise.
3037         (vqtbx4q_s8): Likewise.
3038         (vqtbx4q_u8): Likewise.
3039         (vqtbx4q_p8): Likewise.
3040         (vrev16_p8): Likewise.
3041         (vrev16_s8): Likewise.
3042         (vrev16_u8): Likewise.
3043         (vrev16q_p8): Likewise.
3044         (vrev16q_s8): Likewise.
3045         (vrev16q_u8): Likewise.
3046         (vrev32_p8): Likewise.
3047         (vrev32_p16): Likewise.
3048         (vrev32_s8): Likewise.
3049         (vrev32_s16): Likewise.
3050         (vrev32_u8): Likewise.
3051         (vrev32_u16): Likewise.
3052         (vrev32q_p8): Likewise.
3053         (vrev32q_p16): Likewise.
3054         (vrev32q_s8): Likewise.
3055         (vrev32q_s16): Likewise.
3056         (vrev32q_u8): Likewise.
3057         (vrev32q_u16): Likewise.
3058         (vrev64_f32): Likewise.
3059         (vrev64_p8): Likewise.
3060         (vrev64_p16): Likewise.
3061         (vrev64_s8): Likewise.
3062         (vrev64_s16): Likewise.
3063         (vrev64_s32): Likewise.
3064         (vrev64_u8): Likewise.
3065         (vrev64_u16): Likewise.
3066         (vrev64_u32): Likewise.
3067         (vrev64q_f32): Likewise.
3068         (vrev64q_p8): Likewise.
3069         (vrev64q_p16): Likewise.
3070         (vrev64q_s8): Likewise.
3071         (vrev64q_s16): Likewise.
3072         (vrev64q_s32): Likewise.
3073         (vrev64q_u8): Likewise.
3074         (vrev64q_u16): Likewise.
3075         (vrev64q_u32): Likewise.
3076         (vsha1cq_u32): Likewise.
3077         (vsha1mq_u32): Likewise.
3078         (vsha1pq_u32): Likewise.
3079         (vsha1h_u32): Likewise.
3080         (vsha1su0q_u32): Likewise.
3081         (vsha1su1q_u32): Likewise.
3082         (vsha256hq_u32): Likewise.
3083         (vsha256h2q_u32): Likewise.
3084         (vsha256su0q_u32): Likewise.
3085         (vsha256su1q_u32): Likewise.
3086         (vmull_p64): Likewise.
3087         (vmull_high_p64): Likewise.
3088         (vsqrt_f32): Likewise.
3089         (vsqrtq_f32): Likewise.
3090         (vsqrt_f64): Likewise.
3091         (vsqrtq_f64): Likewise.
3092         (vst1_f32): Likewise.
3093         (vst1_f64): Likewise.
3094         (vst1_p8): Likewise.
3095         (vst1_p16): Likewise.
3096         (vst1_p64): Likewise.
3097         (vst1_s8): Likewise.
3098         (vst1_s16): Likewise.
3099         (vst1_s32): Likewise.
3100         (vst1_s64): Likewise.
3101         (vst1_u8): Likewise.
3102         (vst1_u16): Likewise.
3103         (vst1_u32): Likewise.
3104         (vst1_u64): Likewise.
3105         (vst1q_f32): Likewise.
3106         (vst1q_f64): Likewise.
3107         (vst1q_p8): Likewise.
3108         (vst1q_p16): Likewise.
3109         (vst1q_p64): Likewise.
3110         (vst1q_s8): Likewise.
3111         (vst1q_s16): Likewise.
3112         (vst1q_s32): Likewise.
3113         (vst1q_s64): Likewise.
3114         (vst1q_u8): Likewise.
3115         (vst1q_u16): Likewise.
3116         (vst1q_u32): Likewise.
3117         (vst1q_u64): Likewise.
3118         (vst1_s64_x2): Likewise.
3119         (vst1_u64_x2): Likewise.
3120         (vst1_f64_x2): Likewise.
3121         (vst1_s8_x2): Likewise.
3122         (vst1_p8_x2): Likewise.
3123         (vst1_s16_x2): Likewise.
3124         (vst1_p16_x2): Likewise.
3125         (vst1_s32_x2): Likewise.
3126         (vst1_u8_x2): Likewise.
3127         (vst1_u16_x2): Likewise.
3128         (vst1_u32_x2): Likewise.
3129         (vst1_f16_x2): Likewise.
3130         (vst1_f32_x2): Likewise.
3131         (vst1_p64_x2): Likewise.
3132         (vst1q_s8_x2): Likewise.
3133         (vst1q_p8_x2): Likewise.
3134         (vst1q_s16_x2): Likewise.
3135         (vst1q_p16_x2): Likewise.
3136         (vst1q_s32_x2): Likewise.
3137         (vst1q_s64_x2): Likewise.
3138         (vst1q_u8_x2): Likewise.
3139         (vst1q_u16_x2): Likewise.
3140         (vst1q_u32_x2): Likewise.
3141         (vst1q_u64_x2): Likewise.
3142         (vst1q_f16_x2): Likewise.
3143         (vst1q_f32_x2): Likewise.
3144         (vst1q_f64_x2): Likewise.
3145         (vst1q_p64_x2): Likewise.
3146         (vst1_s64_x3): Likewise.
3147         (vst1_u64_x3): Likewise.
3148         (vst1_f64_x3): Likewise.
3149         (vst1_s8_x3): Likewise.
3150         (vst1_p8_x3): Likewise.
3151         (vst1_s16_x3): Likewise.
3152         (vst1_p16_x3): Likewise.
3153         (vst1_s32_x3): Likewise.
3154         (vst1_u8_x3): Likewise.
3155         (vst1_u16_x3): Likewise.
3156         (vst1_u32_x3): Likewise.
3157         (vst1_f16_x3): Likewise.
3158         (vst1_f32_x3): Likewise.
3159         (vst1_p64_x3): Likewise.
3160         (vst1q_s8_x3): Likewise.
3161         (vst1q_p8_x3): Likewise.
3162         (vst1q_s16_x3): Likewise.
3163         (vst1q_p16_x3): Likewise.
3164         (vst1q_s32_x3): Likewise.
3165         (vst1q_s64_x3): Likewise.
3166         (vst1q_u8_x3): Likewise.
3167         (vst1q_u16_x3): Likewise.
3168         (vst1q_u32_x3): Likewise.
3169         (vst1q_u64_x3): Likewise.
3170         (vst1q_f16_x3): Likewise.
3171         (vst1q_f32_x3): Likewise.
3172         (vst1q_f64_x3): Likewise.
3173         (vst1q_p64_x3): Likewise.
3174         (vst2_s64): Likewise.
3175         (vst2_u64): Likewise.
3176         (vst2_f64): Likewise.
3177         (vst2_s8): Likewise.
3178         (vst2_p8): Likewise.
3179         (vst2_s16): Likewise.
3180         (vst2_p16): Likewise.
3181         (vst2_s32): Likewise.
3182         (vst2_u8): Likewise.
3183         (vst2_u16): Likewise.
3184         (vst2_u32): Likewise.
3185         (vst2_f16): Likewise.
3186         (vst2_f32): Likewise.
3187         (vst2_p64): Likewise.
3188         (vst2q_s8): Likewise.
3189         (vst2q_p8): Likewise.
3190         (vst2q_s16): Likewise.
3191         (vst2q_p16): Likewise.
3192         (vst2q_s32): Likewise.
3193         (vst2q_s64): Likewise.
3194         (vst2q_u8): Likewise.
3195         (vst2q_u16): Likewise.
3196         (vst2q_u32): Likewise.
3197         (vst2q_u64): Likewise.
3198         (vst2q_f16): Likewise.
3199         (vst2q_f32): Likewise.
3200         (vst2q_f64): Likewise.
3201         (vst2q_p64): Likewise.
3202         (vst3_s64): Likewise.
3203         (vst3_u64): Likewise.
3204         (vst3_f64): Likewise.
3205         (vst3_s8): Likewise.
3206         (vst3_p8): Likewise.
3207         (vst3_s16): Likewise.
3208         (vst3_p16): Likewise.
3209         (vst3_s32): Likewise.
3210         (vst3_u8): Likewise.
3211         (vst3_u16): Likewise.
3212         (vst3_u32): Likewise.
3213         (vst3_f16): Likewise.
3214         (vst3_f32): Likewise.
3215         (vst3_p64): Likewise.
3216         (vst3q_s8): Likewise.
3217         (vst3q_p8): Likewise.
3218         (vst3q_s16): Likewise.
3219         (vst3q_p16): Likewise.
3220         (vst3q_s32): Likewise.
3221         (vst3q_s64): Likewise.
3222         (vst3q_u8): Likewise.
3223         (vst3q_u16): Likewise.
3224         (vst3q_u32): Likewise.
3225         (vst3q_u64): Likewise.
3226         (vst3q_f16): Likewise.
3227         (vst3q_f32): Likewise.
3228         (vst3q_f64): Likewise.
3229         (vst3q_p64): Likewise.
3230         (vst4_s64): Likewise.
3231         (vst4_u64): Likewise.
3232         (vst4_f64): Likewise.
3233         (vst4_s8): Likewise.
3234         (vst4_p8): Likewise.
3235         (vst4_s16): Likewise.
3236         (vst4_p16): Likewise.
3237         (vst4_s32): Likewise.
3238         (vst4_u8): Likewise.
3239         (vst4_u16): Likewise.
3240         (vst4_u32): Likewise.
3241         (vst4_f16): Likewise.
3242         (vst4_f32): Likewise.
3243         (vst4_p64): Likewise.
3244         (vst4q_s8): Likewise.
3245         (vst4q_p8): Likewise.
3246         (vst4q_s16): Likewise.
3247         (vst4q_p16): Likewise.
3248         (vst4q_s32): Likewise.
3249         (vst4q_s64): Likewise.
3250         (vst4q_u8): Likewise.
3251         (vst4q_u16): Likewise.
3252         (vst4q_u32): Likewise.
3253         (vst4q_u64): Likewise.
3254         (vst4q_f16): Likewise.
3255         (vst4q_f32): Likewise.
3256         (vst4q_f64): Likewise.
3257         (vst4q_p64): Likewise.
3258         (vtbx4_s8): Likewise.
3259         (vtbx4_u8): Likewise.
3260         (vtbx4_p8): Likewise.
3261         (vtrn_f32): Likewise.
3262         (vtrn_p8): Likewise.
3263         (vtrn_p16): Likewise.
3264         (vtrn_s8): Likewise.
3265         (vtrn_s16): Likewise.
3266         (vtrn_s32): Likewise.
3267         (vtrn_u8): Likewise.
3268         (vtrn_u16): Likewise.
3269         (vtrn_u32): Likewise.
3270         (vtrnq_f32): Likewise.
3271         (vtrnq_p8): Likewise.
3272         (vtrnq_p16): Likewise.
3273         (vtrnq_s8): Likewise.
3274         (vtrnq_s16): Likewise.
3275         (vtrnq_s32): Likewise.
3276         (vtrnq_u8): Likewise.
3277         (vtrnq_u16): Likewise.
3278         (vtrnq_u32): Likewise.
3279         (vrsqrte_f16): Likewise.
3280         (vrsqrteq_f16): Likewise.
3281         (vsqrt_f16): Likewise.
3282         (vsqrtq_f16): Likewise.
3283         (vabd_f16): Likewise.
3284         (vabdq_f16): Likewise.
3285         (vpadd_f16): Likewise.
3286         (vpaddq_f16): Likewise.
3287         (vpmax_f16): Likewise.
3288         (vpmaxq_f16): Likewise.
3289         (vpmaxnm_f16): Likewise.
3290         (vpmaxnmq_f16): Likewise.
3291         (vpmin_f16): Likewise.
3292         (vpminq_f16): Likewise.
3293         (vpminnm_f16): Likewise.
3294         (vpminnmq_f16): Likewise.
3295         (vrsqrts_f16): Likewise.
3296         (vrsqrtsq_f16): Likewise.
3298 2019-09-25  Richard Biener  <rguenther@suse.de>
3300         PR tree-optimization/91896
3301         * tree-vect-loop.c (vectorizable_reduction): The single
3302         def-use cycle optimization cannot apply when there's more
3303         than one pattern stmt involved.
3305 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
3307         * config/rs6000/rs6000.md (load_macho_picbase_<mode>): New, using
3308         the 'P' mode iterator, replacing the (removed) SI and DI variants.
3309         (reload_macho_picbase_<mode>): Likewise.
3311 2019-09-24  Iain Sandoe  <iain@sandoe.co.uk>
3313         * config/rs6000/rs6000.md: Move darwin.md include until
3314         after the definition of the mode iterators.
3316 2019-09-23  Martin Sebor  <msebor@redhat.com>
3318         PR tree-optimization/91570
3319         * tree-ssa-strlen.c (get_range_strlen_dynamic): Handle null and
3320         non-constant minlen, maxlen and maxbound.
3322 2019-09-24  Richard Biener  <rguenther@suse.de>
3324         * tree-vectorizer.h (_stmt_vec_info::const_cond_reduc_code):
3325         Rename to...
3326         (_stmt_vec_info::cond_reduc_code): ... this.
3327         (_stmt_vec_info::induc_cond_initial_val): Add.
3328         (STMT_VINFO_VEC_CONST_COND_REDUC_CODE): Rename to...
3329         (STMT_VINFO_VEC_COND_REDUC_CODE): ... this.
3330         (STMT_VINFO_VEC_INDUC_COND_INITIAL_VAL): Add.
3331         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Adjust.
3332         * tree-vect-loop.c (get_initial_def_for_reduction): Pass in
3333         the reduction code.
3334         (vect_create_epilog_for_reduction): Drop special
3335         induction condition reduction params, pass in reduction code
3336         and simplify.
3337         (vectorizable_reduction): Perform condition reduction kind
3338         selection only at analysis time.  Adjust passing on state.
3340 2019-09-24  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3342         * config/aarch64/aarch64.md (mov<mode>): Don't call
3343         aarch64_split_dimode_const_store on volatile MEM.
3345 2019-09-24  Stamatis Markianos-Wright  <stam.markianos-wright@arm.com>
3347         * config/aarch64/aarch64-option-extensions.def (fp16fml):
3348         Update hwcap string for fp16fml.
3350 2019-09-24  Jakub Jelinek  <jakub@redhat.com>
3352         PR middle-end/91866
3353         * match.pd (((T)(A)) + CST -> (T)(A + CST)): Formatting fix.
3354         (((T)(A + CST1)) + CST2 -> (T)(A) + (T)CST1 + CST2): New optimization.
3356 2019-09-24  Martin Liska  <mliska@suse.cz>
3358         * cfgexpand.c (gimple_assign_rhs_to_tree): Use switch statement
3359         instead of if-elseif-elseif-...
3360         * gimple-expr.c (extract_ops_from_tree): Likewise.
3361         * gimple.c (get_gimple_rhs_num_ops): Likewise.
3362         * tree-ssa-forwprop.c (rhs_to_tree): Likewise.
3364 2019-09-24  Martin Jambor  <mjambor@suse.cz>
3366         PR ipa/91831
3367         * ipa-param-manipulation.c (carry_over_param): Make a method of
3368         ipa_param_body_adjustments, remove now unnecessary argument.  Also copy
3369         in case of a context mismatch.
3370         (ipa_param_body_adjustments::common_initialization): Adjust call to
3371         carry_over_param.
3372         * ipa-param-manipulation.h (class ipa_param_body_adjustments): Add
3373         private method carry_over_param.
3375 2019-09-24  Martin Jambor  <mjambor@suse.cz>
3377         PR ipa/91832
3378         * ipa-sra.c (scan_expr_access): Check that offset is non-negative.
3380 2019-09-24  Richard Biener  <rguenther@suse.de>
3382         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize MEM_REF
3383         base.
3385 2019-09-23  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
3387         * config/arm/t-arm (arm-builtins.o): Add dependency on
3388         arm_acle_builtins.def.
3390 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3392         PR target/91823
3393         * config/rs6000/altivec.md (altivec_copysign_v4sf3): Generate
3394         canonical CONST_INTs.  Use gen_rtvec.
3396 2019-09-23  Richard Biener  <rguenther@suse.de>
3398         * tree-vect-loop.c (get_initial_def_for_reduction): Simplify,
3399         avoid adjusting by + 0 or * 1.
3400         (vect_create_epilog_for_reduction): Get reduction code only
3401         when necessary.  Deal with adjustment_def only when necessary.
3403 2019-09-23  Richard Sandiford  <richard.sandiford@arm.com>
3405         * config/aarch64/atomics.md (aarch64_store_exclusive_pair): Fix
3406         memmodel index.
3408 2019-09-23  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
3410         PR ipa/91835
3411         * lto-section-in.c (lto_section_name): Use "ipa_sra" instead of
3412         "ipa-sra".
3414 2019-09-22  Iain Sandoe  <iain@sandoe.co.uk>
3416         * config/rs6000/rs6000.c (machopic_output_stub): Remove dead
3417         code.  Merge code blocks with common conditionals. Use declared
3418         macro instead of a magic number for PIC level.
3420 2019-09-21  Martin Sebor  <msebor@redhat.com>
3422         PR middle-end/91830
3423         * gcc/gimple-ssa-warn-restrict.c (builtin_memref::set_base_and_offset):
3424         Simplify computation of the offset of the referenced subobject.
3426 2019-09-21  Iain Sandoe  <iain@sandoe.co.uk>
3428         * config/darwin.c (machopic_legitimize_pic_address): Check
3429         for lra not reload.
3431 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
3433         * ira-conflicts.c (can_use_same_reg_p): New function.
3434         (process_reg_shuffles): Take an insn parameter.  Ignore cases
3435         in which input operand op_num could seemingly never be allocated
3436         to the same register as the destination.
3437         (add_insn_allocno_copies): Update call to process_reg_shuffles.
3439 2019-09-21  Richard Sandiford  <richard.sandiford@arm.com>
3441         * simplify-rtx.c (neg_const_int): Replace with...
3442         (neg_poly_int_rtx): ...this new function.
3443         (simplify_binary_operation_1): Extend (minus x C) -> (plus X -C)
3444         to all CONST_SCALAR_INTs and to CONST_POLY_INT.
3445         (simplify_plus_minus): Likewise for constant terms here.
3447 2019-09-20  Jonas Pfeil  <jonas.pfeil@uli-ulm.de>
3449         * config/microblaze/microblaze.h (ASM_OUTPUT_SKIP): Use
3450         HOST_WIDE_PRINT_UNSIGNED.
3452 2019-09-20  John David Anglin  <danglin@gcc.gnu.org>
3454         * config/pa/pa.c (pa_trampoline_init): Remove spurious extended
3455         character.
3457 2019-09-20  Maya Rashish  <coypu@sdf.org>
3459         PR target/86811
3460         * config/vax/vax.c (TARGET_HAVE_SPECULATION_SAFE_VALUE):
3461         Define to speculation_safe_value_not_needed.
3463 2019-09-20  Richard Biener  <rguenther@suse.de>
3464         Uros Bizjak  <ubizjak@gmail.com>
3466         PR target/91814
3467         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): Revert
3468         previous change.
3469         (general_scalar_chain::convert_op): Force not suitable memory
3470         operands to a register.
3472 2019-09-20  Richard Biener  <rguenther@suse.de>
3474         PR tree-optimization/91821
3475         * tree-vect-loop.c (check_reduction_path): Check we can compute
3476         reduc_idx.
3477         (vect_is_simple_reduction): Set STMT_VINFO_REDUC_IDX.
3478         * tree-vect-patterns.c (vect_reassociating_reduction_p): Return
3479         operands in canonical order.
3480         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Initialize
3481         STMT_VINFO_REDUC_IDX.
3482         * tree-vectorizer.h (_stmt_vec_info::reduc_idx): New.
3483         (STMT_VINFO_REDUC_IDX): Likewise.
3485 2019-09-20  Eric Botcazou  <ebotcazou@adacore.com>
3487         PR target/91269
3488         * config/sparc/sparc.h (HARD_REGNO_CALLER_SAVE_MODE): Define.
3490 2019-09-20  Richard Biener  <rguenther@suse.de>
3492         PR tree-optimization/91822
3493         * tree-vectorizer.h (vectorizable_condition): Restore for_reduction
3494         parameter.
3495         * tree-vect-loop.c (vectorizable_reduction): Adjust asserts
3496         for reduc_index in nested cycles, adjust vectorizable_condition
3497         calls.
3498         * tree-vect-stmts.c (vectorizable_condition): Restore for_reduction
3499         parameter.
3500         (vect_analyze_stmt): Adjust.
3501         (vect_transform_stmt): Likewise.
3503 2019-09-20  Richard Biener  <rguenther@suse.de>
3505         PR target/91767
3506         * config/i386/i386-features.c (general_scalar_chain::convert_registers):
3507         Ensure there's a sequence point between allocating the new register
3508         and passing a reference to a reg via regno_reg_rtx.
3510 2019-09-20  Martin Jambor  <mjambor@suse.cz>
3512         * coretypes.h (cgraph_edge): Declare.
3513         * ipa-param-manipulation.c: Rewrite.
3514         * ipa-param-manipulation.h: Likewise.
3515         * Makefile.in (GTFILES): Added ipa-param-manipulation.h and ipa-sra.c.
3516         (OBJS): Added ipa-sra.o.
3517         * cgraph.h (ipa_replace_map): Removed fields old_tree, replace_p
3518         and ref_p, added fields param_adjustments and performed_splits.
3519         (struct cgraph_clone_info): Remove ags_to_skip and
3520         combined_args_to_skip, new field param_adjustments.
3521         (cgraph_node::create_clone): Changed parameters to use
3522         ipa_param_adjustments.
3523         (cgraph_node::create_virtual_clone): Likewise.
3524         (cgraph_node::create_virtual_clone_with_body): Likewise.
3525         (tree_function_versioning): Likewise.
3526         (cgraph_build_function_type_skip_args): Removed.
3527         * cgraph.c (cgraph_edge::redirect_call_stmt_to_callee): Convert to
3528         using ipa_param_adjustments.
3529         (clone_of_p): Likewise.
3530         * cgraphclones.c (cgraph_build_function_type_skip_args): Removed.
3531         (build_function_decl_skip_args): Likewise.
3532         (duplicate_thunk_for_node): Adjust parameters using
3533         ipa_param_body_adjustments, copy param_adjustments instead of
3534         args_to_skip.
3535         (cgraph_node::create_clone): Convert to using ipa_param_adjustments.
3536         (cgraph_node::create_virtual_clone): Likewise.
3537         (cgraph_node::create_version_clone_with_body): Likewise.
3538         (cgraph_materialize_clone): Likewise.
3539         (symbol_table::materialize_all_clones): Likewise.
3540         * ipa-fnsummary.c (ipa_fn_summary_t::duplicate): Simplify
3541         ipa_replace_map check.
3542         * ipa-cp.c (get_replacement_map): Do not initialize removed fields.
3543         (initialize_node_lattices): Make aware that some parameters might have
3544         already been removed.
3545         (want_remove_some_param_p): New function.
3546         (create_specialized_node): Convert to using ipa_param_adjustments and
3547         deal with possibly pre-existing adjustments.
3548         * lto-cgraph.c (output_cgraph_opt_summary_p): Likewise.
3549         (output_node_opt_summary): Do not stream removed fields.  Stream
3550         parameter adjustments instead of argumetns to skip.
3551         (input_node_opt_summary): Likewise.
3552         (input_node_opt_summary): Likewise.
3553         * lto-section-in.c (lto_section_name): Added ipa-sra section.
3554         * lto-streamer.h (lto_section_type): Likewise.
3555         * tree-inline.h (copy_body_data): New fields killed_new_ssa_names and
3556         param_body_adjs.
3557         (copy_decl_to_var): Declare.
3558         * tree-inline.c (update_clone_info): Do not remap old_tree.
3559         (remap_gimple_stmt): Use ipa_param_body_adjustments to modify gimple
3560         statements, walk all extra generated statements and remap their
3561         operands.
3562         (redirect_all_calls): Add killed SSA names to a hash set.
3563         (remap_ssa_name): Do not remap killed SSA names.
3564         (copy_arguments_for_versioning): Renames to copy_arguments_nochange,
3565         half of functionality moved to ipa_param_body_adjustments.
3566         (copy_decl_to_var): Make exported.
3567         (copy_body): Destroy killed_new_ssa_names hash set.
3568         (expand_call_inline): Remap performed splits.
3569         (update_clone_info): Likewise.
3570         (tree_function_versioning): Simplify tree_map processing.  Updated to
3571         accept ipa_param_adjustments and use ipa_param_body_adjustments.
3572         * omp-simd-clone.c (simd_clone_vector_of_formal_parm_types): Adjust
3573         for the new interface.
3574         (simd_clone_clauses_extract): Likewise, make args an auto_vec.
3575         (simd_clone_compute_base_data_type): Likewise.
3576         (simd_clone_init_simd_arrays): Adjust for the new interface.
3577         (simd_clone_adjust_argument_types): Likewise.
3578         (struct modify_stmt_info): Likewise.
3579         (ipa_simd_modify_stmt_ops): Likewise.
3580         (ipa_simd_modify_function_body): Likewise.
3581         (simd_clone_adjust): Likewise.
3582         * tree-sra.c: Removed IPA-SRA.  Include tree-sra.h.
3583         (type_internals_preclude_sra_p): Make public.
3584         * tree-sra.h: New file.
3585         * ipa-inline-transform.c (save_inline_function_body): Update to
3586         refelct new tree_function_versioning signature.
3587         * ipa-prop.c (adjust_agg_replacement_values): Use a helper from
3588         ipa_param_adjustments to get current parameter indices.
3589         (ipcp_modif_dom_walker::before_dom_children): Likewise.
3590         (ipcp_update_bits): Likewise.
3591         (ipcp_update_vr): Likewise.
3592         * ipa-split.c (split_function): Convert to using ipa_param_adjustments.
3593         * ipa-sra.c: New file.
3594         * multiple_target.c (create_target_clone): Update to reflet new type
3595         of create_version_clone_with_body.
3596         * trans-mem.c (ipa_tm_create_version): Update to reflect new type of
3597         tree_function_versioning.
3598         (modify_function): Update to reflect new type of
3599         tree_function_versioning.
3600         * params.def (PARAM_IPA_SRA_MAX_REPLACEMENTS): New.
3601         * passes.def: Remove old IPA-SRA and add new one.
3602         * tree-pass.h (make_pass_early_ipa_sra): Remove declaration.
3603         (make_pass_ipa_sra): Declare.
3604         * dbgcnt.def: Remove eipa_sra.  Added ipa_sra_params and
3605         ipa_sra_retvalues.
3606         * doc/invoke.texi (ipa-sra-max-replacements): New.
3608 2019-09-19  Martin Sebor  <msebor@redhat.com>
3610         PR middle-end/91631
3611         * builtins.c (component_size): Correct trailing array computation,
3612         rename to component_ref_size and move...
3613         (compute_objsize): Adjust.
3614         * gimple-ssa-warn-restrict.c (builtin_memref::refsize): New member.
3615         (builtin_access::strict): Do not consider memmove.
3616         (builtin_access::write_off): New function.
3617         (builtin_memref::builtin_memref): Initialize refsize.
3618         (builtin_memref::set_base_and_offset): Adjust refoff and compute
3619         refsize.
3620         (builtin_memref::offset_out_of_bounds): Use ooboff input values.
3621         Handle refsize.
3622         (builtin_access::builtin_access): Initialize dstoff to destination
3623         refeence offset here instead of in maybe_diag_overlap.  Adjust
3624         referencess even to unrelated objects.  Adjust sizrange of bounded
3625         string functions to reflect bound.  For strcat, adjust destination
3626         sizrange by that of source.
3627         (builtin_access::strcat_overlap):  Adjust offsets and sizes
3628         to reflect the increase in destination sizrange above.
3629         (builtin_access::overlap): Do not set dstoff here but instead
3630         in builtin_access::builtin_access.
3631         (check_bounds_or_overlap): Use builtin_access::write_off.
3632         (maybe_diag_access_bounds): Add argument.  Add informational notes.
3633         (dump_builtin_memref, dump_builtin_access): New functions.
3634         * tree.c (component_ref_size): ...to here.
3635         * tree.h (component_ref_size): Declare.
3636         * tree-ssa-strlen (handle_builtin_strcat): Include the terminating
3637         nul in the size of the source string.
3639 2019-09-19  Lewis Hyatt  <lhyatt@gmail.com>
3641         PR c/67224
3642         * doc/cpp.texi: Document support for extended characters in
3643         identifiers.
3644         * doc/cppopts.texi: Likewise.
3646 2019-09-19  Richard Biener  <rguenther@suse.de>
3648         * tree-vect-loop.c (vect_is_slp_reduction): Remove.
3649         (check_reduction_path): New overload having the path as result.
3650         (vect_is_simple_reduction): From the detected reduction
3651         path build a SLP reduction chain if possible.
3653 2019-09-19  Richard Biener  <rguenther@suse.de>
3655         PR target/91814
3656         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src):
3657         Force operand to a register if it isn't nonimmediate_operand.
3659 2019-09-19  Wilco Dijkstra  <wdijkstr@arm.com>
3661         * config/arm/arm.md (<logical_op>di3): Use <optab> and <CODE>.
3662         * config/arm/iterators.md (optab): Add and, ior, xor entries.
3663         (logical_op): Remove code attribute.
3664         (logical_OP): Likewise.
3666 2019-09-19  Martin Liska  <mliska@suse.cz>
3668         * ipa-icf.c (sort_congruence_class_groups_by_decl_uid):
3669         Use proper casting.
3671 2019-09-19  Richard Henderson  <richard.henderson@linaro.org>
3673         * config/aarch64/aarch64.c (aarch64_print_operand): Allow integer
3674         registers with %R.
3676         * config/aarch64/aarch64.c (aarch64_gen_compare_reg): Add support
3677         for NE comparison of TImode values.
3678         (aarch64_emit_load_exclusive): Add support for TImode.
3679         (aarch64_emit_store_exclusive): Likewise.
3680         (aarch64_split_compare_and_swap): Disable strong_zero_p for TImode.
3681         * config/aarch64/atomics.md (@atomic_compare_and_swap<ALLI_TI>):
3682         Change iterator from ALLI to ALLI_TI.
3683         (@atomic_compare_and_swap<JUST_TI>): New.
3684         (@atomic_compare_and_swap<JUST_TI>_lse): New.
3685         (aarch64_load_exclusive_pair): New.
3686         (aarch64_store_exclusive_pair): New.
3687         * config/aarch64/iterators.md (JUST_TI): New.
3689         * config/aarch64/aarch64 (aarch64_split_compare_and_swap): Disable
3690         strong_zero_p for aarch64_track_speculation; unify some code paths;
3691         use aarch64_gen_compare_reg instead of open-coding.
3693         * config/aarch64/aarch64.opt (-moutline-atomics): New.
3694         * config/aarch64/aarch64.c (aarch64_atomic_ool_func): New.
3695         (aarch64_ool_cas_names, aarch64_ool_swp_names): New.
3696         (aarch64_ool_ldadd_names, aarch64_ool_ldset_names): New.
3697         (aarch64_ool_ldclr_names, aarch64_ool_ldeor_names): New.
3698         (aarch64_expand_compare_and_swap): Honor TARGET_OUTLINE_ATOMICS.
3699         * config/aarch64/atomics.md (atomic_exchange<ALLI>): Likewise.
3700         (atomic_<atomic_op><ALLI>): Likewise.
3701         (atomic_fetch_<atomic_op><ALLI>): Likewise.
3702         (atomic_<atomic_op>_fetch<ALLI>): Likewise.
3703         * doc/invoke.texi: Document -moutline-atomics.
3705 2019-09-19  Feng Xue  <fxue@os.amperecomputing.com>
3707         * ipa-fnsummary.c (set_cond_stmt_execution_predicate): Do not compute
3708         trivial predicate for condition branch.
3709         (set_switch_stmt_execution_predicate): Do not compute trivial predicate
3710         for switch case.
3711         (compute_bb_predicates): Update predicate based on post-dominating
3712         relationship.
3713         (analyze_function_body): Calculate post-dominating information.
3715 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
3717         * tree-vectorizer.h (vectorizable_condition): Take an int
3718         reduction index instead of a boolean flag.
3719         * tree-vect-stmts.c (vectorizable_condition): Likewise.
3720         Swap the "then" and "else" values for EXTRACT_LAST_REDUCTION
3721         reductions if the reduction accumulator is the "then" rather
3722         than the "else" value.
3723         (vect_analyze_stmt): Update call accordingly.
3724         (vect_transform_stmt): Likewise.
3725         * tree-vect-loop.c (vectorizable_reduction): Likewise,
3726         asserting that the index is > 0.
3728 2019-09-19  Martin Liska  <mliska@suse.cz>
3730         * ipa-icf.c (sort_sem_items_by_decl_uid): Simplify comparator.
3731         (sort_congruence_classes_by_decl_uid): Likewise.
3732         (sort_congruence_class_groups_by_decl_uid): Use std::pair for
3733         easier sorting.
3734         (sem_item_optimizer::merge_classes): Likewise.
3736 2019-09-19  Richard Biener  <rguenther@suse.de>
3738         PR tree-optimization/91812
3739         * tree-ssa-phiprop.c (propagate_with_phi): Do not replace
3740         volatile loads.
3742 2019-09-19  Richard Sandiford  <richard.sandiford@arm.com>
3744         * defaults.h (TARGET_UNIT): New macro.
3745         (target_unit): New type.
3746         * rtl.h (native_encode_rtx, native_decode_rtx)
3747         (native_decode_vector_rtx, subreg_size_lsb): Declare.
3748         (subreg_lsb_1): Turn into an inline wrapper around subreg_size_lsb.
3749         * rtlanal.c (subreg_lsb_1): Delete.
3750         (subreg_size_lsb): New function.
3751         * simplify-rtx.c: Include rtx-vector-builder.h
3752         (simplify_immed_subreg): Delete.
3753         (native_encode_rtx, native_decode_vector_rtx, native_decode_rtx)
3754         (simplify_const_vector_byte_offset, simplify_const_vector_subreg): New
3755         functions.
3756         (simplify_subreg): Use them.
3757         (test_vector_subregs_modes, test_vector_subregs_repeating)
3758         (test_vector_subregs_fore_back, test_vector_subregs_stepped)
3759         (test_vector_subregs): New functions.
3760         (test_vector_ops): Call test_vector_subregs for integer vector
3761         modes with at least 2 elements.
3763 2019-09-19  Richard Biener  <rguenther@suse.de>
3765         * tree-parloops.c (parloops_is_slp_reduction): Do not set
3766         LOOP_VINFO_OPERANDS_SWAPPED.
3767         (parloops_is_simple_reduction): Likewise.
3768         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Do not
3769         initialize operands_swapped.
3770         (_loop_vec_info::~_loop_vec_info): Do not re-canonicalize stmts.
3771         (vect_is_slp_reduction): Do not swap operands.
3772         * tree-vectorizer.h (_loop_vec_info::operands_swapped): Remove.
3773         (LOOP_VINFO_OPERANDS_SWAPPED): Likewise.
3775 2019-09-19  Hongtao Liu <hongtao.liu@intel.com>
3777         PR target/87007
3778         * config/i386.md (*floatuns<SWI48:mode><MODEF:mode>2_avx512):
3779         Add avx_partial_xmm_update.
3781 2019-09-18  Jim Wilson  <jimw@sifive.com>
3783         PR target/91683
3784         * config/riscv/riscv-protos.h (riscv_split_symbol): New bool parameter.
3785         (riscv_move_integer): Likewise.
3786         * config/riscv/riscv.c (riscv_split_integer): Pass FALSE for new
3787         riscv_move_integer arg.
3788         (riscv_legitimize_move): Likewise.
3789         (riscv_force_temporary): New parameter in_splitter.  Don't call
3790         force_reg if true.
3791         (riscv_unspec_offset_high): Pass FALSE for new riscv_force_temporary
3792         arg.
3793         (riscv_add_offset): Likewise.
3794         (riscv_split_symbol): New parameter in_splitter.  Pass to
3795         riscv_force_temporary.
3796         (riscv_legitimize_address): Pass FALSE for new riscv_split_symbol
3797         arg.
3798         (riscv_move_integer): New parameter in_splitter.  New local
3799         can_create_psuedo.  Don't call riscv_split_integer or force_reg when
3800         in_splitter TRUE.
3801         (riscv_legitimize_const_move): Pass FALSE for new riscv_move_integer,
3802         riscv_split_symbol, and riscv_force_temporary args.
3803         * config/riscv/riscv.md (low<mode>+1): Pass TRUE for new
3804         riscv_move_integer arg.
3805         (low<mode>+2): Pass TRUE for new riscv_split_symbol arg.
3807 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3809         PR target/90878
3810         * config/i386/x86-tune-costs.h (skylake_cost): Restore SImode
3811         hard register store cost to 6.
3813 2019-09-18  H.J. Lu  <hongjiu.lu@intel.com>
3815         PR target/91446
3816         * config/i386/x86-tune-costs.h (skylake_cost): Increase SImode
3817         pseudo register store cost from 3 to 6 to make it the same as
3818         QImode and HImode.
3820 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3822         PR target/91738
3823         * config/arm/arm.md (<logical_op>di3): Expand explicitly.
3824         (one_cmpldi2): Likewise.
3825         * config/arm/arm.c (const_ok_for_dimode_op): Return true if one
3826         of the constant parts is simple.
3827         * config/arm/iterators.md (LOGICAL): Add new code iterator.
3828         (logical_op): Add new code attribute.
3829         (logical_OP): Likewise.
3830         * config/arm/predicates.md (arm_anddi_operand): Add predicate.
3831         (arm_iordi_operand): Add predicate.
3832         (arm_xordi_operand): Add predicate.
3834 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3836         * config/arm/arm.md (maddsidi4): Remove expander.
3837         (mulsidi3adddi): Remove pattern.
3838         (mulsidi3adddi_v6): Likewise.
3839         (mulsidi3_nov6): Likewise.
3840         (mulsidi3_v6): Likewise.
3841         (umulsidi3): Remove expander.
3842         (umulsidi3_nov6): Remove pattern.
3843         (umulsidi3_v6): Likewise.
3844         (umulsidi3adddi): Likewise.
3845         (umulsidi3adddi_v6): Likewise.
3846         (<Us>mulsidi3): Add combined expander.
3847         (<Us>maddsidi4): Likewise.
3848         (<US>mull): Add combined umull and smull pattern.
3849         (<US>mlal): Likewise.
3850         * config/arm/iterators.md (Us): Add new iterator.
3852 2019-09-18  Richard Biener  <rguenther@suse.de>
3854         * tree-vect-loop.c (vect_is_simple_reduction): Remove operand
3855         swapping.
3856         (vectorize_fold_left_reduction): Remove assert.
3857         (vectorizable_reduction): Also expect COND_EXPR non-reduction
3858         operand in position 2.  Remove assert.
3860 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3862         * config/arm/arm.md (smulsi3_highpart): Use <US> and <SE> iterators.
3863         (smulsi3_highpart_nov6): Remove pattern.
3864         (smulsi3_highpart_v6): Likewise.
3865         (umulsi3_highpart): Likewise.
3866         (umulsi3_highpart_nov6): Likewise.
3867         (umulsi3_highpart_v6): Likewise.
3868         (<US>mull_high): Add new combined multiply pattern.
3870 2019-09-18  Wilco Dijkstra  <wdijkstr@arm.com>
3872         * config/arm/arm.md (arm_mulsi3): Remove pattern.
3873         (arm_mulsi3_v6): Likewise.
3874         (mulsi3addsi_v6): Likewise.
3875         (mulsi3subsi): Likewise.
3876         (mul): Add new multiply pattern.
3877         (mla): Likewise.
3878         (mls): Likewise.
3880 2019-09-18  Richard Biener  <rguenther@suse.de>
3882         * tree-parloops.c (report_ploop_op): Copy from report_vect_op.
3883         (parloops_valid_reduction_input_p): Copy from
3884         valid_reduction_input_p.
3885         (parloops_is_slp_reduction): Copy from vect_is_slp_reduction.
3886         (parloops_needs_fold_left_reduction_p): Copy from
3887         needs_fold_left_reduction_p.
3888         (parloops_is_simple_reduction): Copy from
3889         vect_is_simple_reduction.
3890         (parloops_force_simple_reduction): Copy from
3891         vect_force_simple_reduction.
3892         (gather_scalar_reductions): Adjust.
3893         * tree-vect-loop.c (vect_force_simple_reduction): Make static.
3894         * tree-vectorizer.h (vect_force_simple_reduction): Remove.
3896 2019-09-18  Richard Biener  <rguenther@suse.de>
3898         * tree-vectorizer.h (get_initial_def_for_reduction): Remove.
3899         * tree-vect-loop.c (get_initial_def_for_reduction): Make
3900         static.
3901         (vect_create_epilog_for_reduction): Remove dead code.
3903 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3905         * varasm.c (assemble_real): Generate canonical const_ints.
3907 2019-09-18  Richard Biener  <rguenther@suse.de>
3909         PR lto/91763
3910         * lto-streamer-in.c (input_eh_regions): Move EH init to
3911         lto_materialize_function.
3912         * tree-streamer-in.c (lto_input_ts_function_decl_tree_pointers):
3913         Likewise.
3915 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3917         * tree-ssa-ccp.c (get_value_for_expr): Check whether CONSTANTs
3918         are INTEGER_CSTs.
3920 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3922         * gimplify.c (gimplify_decl_expr): Use poly_int_tree_p instead
3923         of checking specifically for INTEGER_CST.
3925 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3927         * stor-layout.c (compute_record_mode): Operate on poly_uint64
3928         sizes instead of uhwi sizes.
3930 2019-09-18  Richard Sandiford  <richard.sandiford@arm.com>
3932         * dwarf2out.c (loc_list_from_tree_1): Handle POLY_INT_CST.
3933         (add_const_value_attribute): Handle CONST_POLY_INT.
3935 2019-09-18  Martin Liska  <mliska@suse.cz>
3937         * dbgcnt.def (store_merging): New counter.
3938         * gimple-ssa-store-merging.c (imm_store_chain_info::output_merged_stores):
3939         Use it in store merging.
3941 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3943         * config/aarch64/aarch64.c (aarch64_sched_variable_issue): New
3944         function.
3945         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3946         * config/arm/arm.c (arm_sched_variable_issue): New function.
3947         (TARGET_SCHED_VARIABLE_ISSUE): New macro.
3949 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3951         * config/arm/types.md (no_reservation): New reservation.
3952         * config/aarch64/falkor.md (falkor_other_0_nothing): Don't handle
3953         no_insn here.
3954         * config/aarch64/saphira.md (saphira_other_0_nothing): Likewise.
3955         * config/aarch64/thunderx2t99.md (thunderx2t99_nothing): Likewise.
3956         * config/aarch64/tsv110.md (tsv110_alu): Likewise.
3957         * config/arm/arm1020e.md (1020alu_op): Likewise.
3958         * config/arm/arm1026ejs.md (alu_op): Likewise.
3959         * config/arm/arm1136jfs.md (11_alu_op): Likewise.
3960         * config/arm/arm926ejs.md (9_alu_op): Likewise.
3961         * config/arm/cortex-a15.md (cortex_a15_alu): Likewise.
3962         * config/arm/cortex-a17.md (cortex_a17_alu): Likewise.
3963         * config/arm/cortex-a5.md (cortex_a5_alu): Likewise.
3964         * config/arm/cortex-a53.md (cortex_a53_alu): Likewise.
3965         * config/arm/cortex-a57.md (cortex_a57_alu): Likewise.
3966         * config/arm/cortex-a7.md (cortex_a7_alu_shift): Likewise.
3967         * config/arm/cortex-a8.md (cortex_a8_alu): Likewise.
3968         * config/arm/cortex-a9.md (cortex_a9_dp): Likewise.
3969         * config/arm/cortex-m4.md (cortex_m4_alu): Likewise.
3970         * config/arm/cortex-m7.md (cortex_m7_alu_simple): Likewise.
3971         * config/arm/cortex-r4.md (cortex_r4_alu_shift_reg): Likewise.
3972         * config/arm/fa526.md (526_alu_op): Likewise.
3973         * config/arm/fa606te.md (606te_alu_op): Likewise.
3974         * config/arm/fa626te.md (626te_alu_op): Likewise.
3975         * config/arm/fa726te.md (726te_alu_op): Likewise.
3976         * config/arm/xgene1.md (xgene1_nop): Likewise.
3978 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3980         * config/arm/thumb1.md (*thumb1_tablejump): Change type from
3981         "no_insn" to "branch".
3983 2019-09-17  Richard Sandiford  <richard.sandiford@arm.com>
3985         * array-traits.h (array_traits<T[N]>::size): Remove parameter name.
3987 2019-09-17  Richard Biener  <rguenther@suse.de>
3989         PR debug/91772
3990         * dwarf2out.c (dwarf2out_late_global_decl): If early dwarf
3991         was missing generate locations only once.
3993 2019-09-17  Feng Xue  <fxue@os.amperecomputing.com>
3995         PR ipa/91089
3996         * doc/invoke.texi (ipa-max-switch-predicate-bounds): Document new
3997         option.
3998         * params.def (PARAM_IPA_MAX_SWITCH_PREDICATE_BOUNDS): New.
3999         * ipa-fnsummary.c (set_switch_stmt_execution_predicate): Add predicate
4000         for switch default case using range analysis information.
4002 2019-09-17  Christophe Lyon  <christophe.lyon@linaro.org>
4004         PR target/91749
4005         * config/arm/arm.c (arm_valid_target_attribute_rec): Make sure the
4006         mode attributed is supported by FDPIC.
4008 2019-09-17  Richard Biener  <rguenther@suse.de>
4010         PR tree-optimization/91790
4011         * tree-vect-stmts.c (vectorizable_load): For BB vectorization
4012         use the correct DR for setting up realignment.
4014 2019-09-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4016         PR target/91719
4017         * config/i386/i386.h (TARGET_USE_XCHG_FOR_ATOMIC_STORE): New macro.
4018         * config/i386/x86-tune.def (X86_TUNE_USE_XCHG_FOR_ATOMIC_STORE): New.
4019         * config/i386/sync.md (atomic_store<mode>): emit XCHG for
4020         TARGET_USE_XCHG_FOR_ATOMIC_STORE.
4022 2019-09-16  Jason Merrill  <jason@redhat.com>
4024         * Makefile.in (build/genmatch.o): Depend on $(CPPLIB_H).
4026 2019-09-16  Martin Liska  <mliska@suse.cz>
4028         * gimple-fold.c (or_comparisons_1): Remove rules moved
4029         to ...
4030         * match.pd: ... here.
4032 2019-09-16  Martin Liska  <mliska@suse.cz>
4034         * gimple-fold.c (or_comparisons_1): Remove rules
4035         moved to ...
4036         * match.pd: ... here.
4038 2019-09-16  Martin Liska  <mliska@suse.cz>
4040         * genmatch.c (dt_node::append_simplify): Do not print
4041         warning when we have duplicate patterns belonging
4042         to a same simplify rule.
4043         * gimple-fold.c (and_comparisons_1): Remove matching moved to match.pd.
4044         (maybe_fold_comparisons_from_match_pd): Handle
4045         tcc_comparison as a results.
4046         * match.pd: Handle (X == CST1) && (X OP2 CST2) conditions.
4048 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
4049             Qi Feng  <ffengqi@linux.ibm.com>
4051         PR middle-end/88784
4052         * match.pd (x >  y  &&  x != XXX_MIN): Optimize into 'x > y'.
4053         (x >  y  &&  x == XXX_MIN): Optimize into 'false'.
4054         (x <= y  &&  x == XXX_MIN): Optimize into 'x == XXX_MIN'.
4055         (x <  y  &&  x != XXX_MAX): Optimize into 'x < y'.
4056         (x <  y  &&  x == XXX_MAX): Optimize into 'false'.
4057         (x >= y  &&  x == XXX_MAX): Optimize into 'x == XXX_MAX'.
4058         (x >  y  ||  x != XXX_MIN): Optimize into 'x != XXX_MIN'.
4059         (x <= y  ||  x != XXX_MIN): Optimize into 'true'.
4060         (x <= y  ||  x == XXX_MIN): Optimize into 'x <= y'.
4061         (x <  y  ||  x != XXX_MAX): Optimize into 'x != XXX_MAX'.
4062         (x >= y  ||  x != XXX_MAX): Optimize into 'true'.
4063         (x >= y  ||  x == XXX_MAX): Optimize into 'x >= y'.
4065 2019-09-16  Li Jia He  <helijia@linux.ibm.com>
4066             Martin Liska  <mliska@suse.cz>
4068         * gimple-fold.c (and_comparisons_1): Add type as first
4069         argument.
4070         (and_var_with_comparison): Likewise.
4071         (and_var_with_comparison_1): Likewise.
4072         (or_comparisons_1): Likewise.
4073         (or_var_with_comparison): Likewise.
4074         (or_var_with_comparison_1): Likewise.
4075         (maybe_fold_and_comparisons): Call maybe_fold_comparisons_from_match_pd.
4076         (maybe_fold_or_comparisons): Likewise.
4077         (maybe_fold_comparisons_from_match_pd): New.
4078         * gimple-fold.h (maybe_fold_and_comparisons): Add type argument.
4079         (maybe_fold_or_comparisons): Likewise.
4080         * gimple.c (gimple_size): Make it public and add num_ops argument.
4081         (gimple_init): New function.
4082         (gimple_alloc): Call gimple_init.
4083         * gimple.h (gimple_size): New.
4084         (gimple_init): Likewise.
4085         * tree-if-conv.c (fold_or_predicates): Pass type.
4086         * tree-ssa-ifcombine.c (ifcombine_ifandif): Likewise.
4087         * tree-ssa-reassoc.c (eliminate_redundant_comparison): Likewise.
4088         (optimize_vec_cond_expr): Likewise.
4089         (ovce_extract_ops): Return type of conditional expression.
4090         * tree-ssanames.c (init_ssa_name_imm_use): New.
4091         (make_ssa_name_fn): Use init_ssa_name_imm_use.
4092         * tree-ssanames.h (init_ssa_name_imm_use): New.
4094 2019-09-16  Richard Biener  <rguenther@suse.de>
4096         PR tree-optimization/91756
4097         PR tree-optimization/87132
4098         * tree-ssa-alias.h (enum translate_flags): New.
4099         (get_continuation_for_phi): Use it instead of simple bool flag.
4100         (walk_non_aliased_vuses): Likewise.
4101         * tree-ssa-alias.c (maybe_skip_until): Adjust.
4102         (get_continuation_for_phi): When looking across backedges only
4103         disallow valueization.
4104         (walk_non_aliased_vuses): Adjust.
4105         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid valueization
4106         if requested.
4108 2019-09-14  Kewen Lin  <linkw@gcc.gnu.org>
4110         PR middle-end/80791
4111         * config/rs6000/rs6000.c (TARGET_HAVE_COUNT_REG_DECR_P): New macro.
4112         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4113         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4114         * target.def (have_count_reg_decr_p): New hook.
4115         (doloop_cost_for_generic): Likewise.
4116         (doloop_cost_for_address): Likewise.
4117         * doc/tm.texi.in (TARGET_HAVE_COUNT_REG_DECR_P): Likewise.
4118         (TARGET_DOLOOP_COST_FOR_GENERIC): Likewise.
4119         (TARGET_DOLOOP_COST_FOR_ADDRESS): Likewise.
4120         * doc/tm.texi: Regenerate.
4121         * tree-ssa-loop-ivopts.c (comp_cost::operator+=): Consider infinite cost
4122         addend.
4123         (record_group): Init doloop_p.
4124         (add_candidate_1): Add optional argument doloop, change the handlings
4125         accordingly.
4126         (add_candidate): Likewise.
4127         (generic_predict_doloop_p): Update attribute.
4128         (force_expr_to_var_cost): Add costing for expressions COND_EXPR/LT_EXPR/
4129         LE_EXPR/GT_EXPR/GE_EXPR/EQ_EXPR/NE_EXPR/UNORDERED_EXPR/ORDERED_EXPR/
4130         UNLT_EXPR/UNLE_EXPR/UNGT_EXPR/UNGE_EXPR/UNEQ_EXPR/LTGT_EXPR/MAX_EXPR/
4131         MIN_EXPR.
4132         (get_computation_cost): Update for doloop IV cand extra cost.
4133         (determine_group_iv_cost_cond): Update for doloop IV cand.
4134         (determine_iv_cost): Likewise.
4135         (ivopts_estimate_reg_pressure): Likewise.
4136         (may_eliminate_iv): Update handlings for doloop IV cand.
4137         (add_iv_candidate_for_doloop): New function.
4138         (find_iv_candidates): Call function add_iv_candidate_for_doloop.
4139         (iv_ca_set_no_cp): Update for doloop IV cand.
4140         (iv_ca_set_cp): Likewise.
4141         (iv_ca_dump): Dump register cost.
4142         (find_doloop_use): New function.
4143         (analyze_and_mark_doloop_use): Likewise.
4144         (tree_ssa_iv_optimize_loop): Call function analyze_and_mark_doloop_use.
4146 2019-09-13  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4148         PR middle-end/91708
4149         * cse.c (cse_insn): Do not replace anything with a
4150         MEM.
4152 2019-09-13  Ian Lance Taylor  <iant@golang.org>
4154         * doc/invoke.texi (Optimize Options): Fix typo.
4156 2019-09-12  UroÅ¡ Bizjak  <ubizjak@gmail.com>
4158         PR tree-optimization/89386
4159         * config/i386/sse.md (smulhrs<mode>3): New expander.
4160         (smulhrsv4hi3): Ditto.
4162 2019-09-12  Richard Biener  <rguenther@suse.de>
4164         PR tree-optimization/91750
4165         * tree-vect-loop.c (vectorizable_induction): Compute IV increments
4166         in the type of the evolution.
4168 2019-09-12  Yuliang Wang  <yuliang.wang@arm.com>
4170         PR tree-optimization/89386
4171         * config/aarch64/aarch64-sve2.md (<su>mull<bt><Vwide>)
4172         (<r>shrnb<mode>, <r>shrnt<mode>): New SVE2 patterns.
4173         (<su>mulh<r>s<mode>3): New pattern for MULHRS.
4174         * config/aarch64/iterators.md (UNSPEC_SMULLB, UNSPEC_SMULLT)
4175         (UNSPEC_UMULLB, UNSPEC_UMULLT, UNSPEC_SHRNB, UNSPEC_SHRNT)
4176         (UNSPEC_RSHRNB, UNSPEC_RSHRNT, UNSPEC_SMULHS, UNSPEC_SMULHRS)
4177         UNSPEC_UMULHS, UNSPEC_UMULHRS): New unspecs.
4178         (MULLBT, SHRNB, SHRNT, MULHRS): New int iterators.
4179         (su, r): Handle the unspecs above.
4180         (bt): New int attribute.
4181         * internal-fn.def (IFN_MULHS, IFN_MULHRS): New internal functions.
4182         * internal-fn.c (first_commutative_argument): Commutativity info for
4183         above.
4184         * optabs.def (smulhs_optab, smulhrs_optab, umulhs_optab)
4185         (umulhrs_optab): New optabs.
4186         * doc/md.texi (smulhs$var{m3}, umulhs$var{m3})
4187         (smulhrs$var{m3}, umulhrs$var{m3}): Documentation for the above.
4188         * tree-vect-patterns.c (vect_recog_mulhs_pattern): New pattern
4189         function.
4190         (vect_vect_recog_func_ptrs): Add it.
4192 2019-09-11  Michael Meissner  <meissner@linux.ibm.com>
4194         * config/rs6000/predicates.md (non_add_cint_operand): Simplify the
4195         code.
4197 2019-09-11  Nathan Sidwell  <nathan@acm.org>
4199         * tree.h (MARK_TS_TYPE_NON_COMMON): New.
4200         * tree.c (tree_node_structure_for_code): Reformat and alphabetize.
4202 2019-09-11  Richard Biener  <rguenther@suse.de>
4204         * lto-opts.c (lto_write_options): Stream -g when debug is enabled.
4205         * lto-wrapper.c (merge_and_complain): Pick up -g.
4206         (append_compiler_options): Likewise.
4207         (run_gcc): Re-instantiate handling -g0 at link-time.
4208         * doc/invoke.texi (flto): Document debug info generation.
4210 2019-09-11  Richard Biener  <rguenther@suse.de>
4212         PR tree-optimization/90387
4213         * vr-values.c (vr_values::extract_range_basic): After inlining
4214         simplify non-constant __builtin_constant_p to false.
4216 2019-09-11  Eric Botcazou  <ebotcazou@adacore.com>
4218         PR rtl-optimization/89795
4219         * rtlanal.c (nonzero_bits1) <SUBREG>: Do not propagate results from
4220         inner REGs to paradoxical SUBREGs if WORD_REGISTER_OPERATIONS is set.
4222 2019-09-11  Jakub Jelinek  <jakub@redhat.com>
4224         PR tree-optimization/91723
4225         * tree-vect-stmts.c (vectorizable_call): Use types_compatible_p check
4226         instead of pointer equality when checking if argument vectypes are
4227         the same.
4229         PR middle-end/91725
4230         * match.pd ((A / (1 << B)) -> (A >> B)): Call tree_nonzero_bits instead
4231         of get_nonzero_bits, only call it for integral types.
4233 2019-09-11  Richard Biener  <rguenther@suse.de>
4235         Revert
4236         2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
4238         * match.pd: Add flag_unsafe_math_optimizations check
4239         before deciding on the widest type in a binary math operation.
4241 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4243         * doc/tm.texi.in: Document that exactly one of CALL_USED_REGISTERS
4244         and CALL_REALLY_USED_REGISTERS must be defined, and that
4245         CALL_REALLY_USED_REGISTERS is preferred.
4246         * doc/tm.texi: Regenerate.
4247         * hard-reg-set.h (target_hard_regs::x_call_really_used_regs): Delete.
4248         (call_really_used_regs): Likewise.
4249         * reginfo.c: Raise an #error if both CALL_USED_REGISTERS and
4250         CALL_REALLY_USED_REGISTERS are defined.
4251         (initial_call_used_regs): Use CALL_REALLY_USED_REGISTERS as the
4252         initial value if defined.
4253         (initial_call_really_used_regs): Delete.
4254         (saved_call_really_used_regs): Likewise.
4255         (CALL_REALLY_USED_REGNO_P): Likewise.
4256         (init_reg_sets): Remove handling of call_really_used_regs.
4257         (save_register_info, restore_register_info, globalize_reg): Likewise.
4258         (init_reg_sets_1): Likewise.  Use call_used_regs instead of
4259         CALL_REALLY_USED_REGNO_P.  Don't set call_used_regs for registers
4260         outside operand_reg_set.
4261         (fix_register): Don't change call_used_regs if
4262         CALL_REALLY_USED_REGISTERS is defined.
4263         * config/csky/csky.h (CALL_USED_REGISTERS): Delete.
4264         * config/csky/csky.c (get_csky_live_regs): Use call_used_regs
4265         instead of call_really_used_regs.
4266         (csky_conditional_register_usage): Remove the old handling of
4267         call_used_regs and change the handling of call_really_used_regs
4268         to use call_used_regs instead.
4269         * config/ia64/ia64.h (CALL_USED_REGISTERS): Delete.
4270         * config/ia64/ia64.c (fix_range): Don't set call_used_regs when
4271         making a register fixed.
4272         * config/m32r/m32r.h (CALL_USED_REGISTERS): Delete.
4273         * config/m32r/m32r.c (MUST_SAVE_REGISTER): Use call_used_regs
4274         instead of call_really_used_regs.
4275         (m32r_conditional_register_usage): Don't set call_used_regs when
4276         making a register fixed.
4277         * config/mips/mips.h (CALL_USED_REGISTERS): Delete.
4278         * config/mips/mips.c (mips_global_pointer): Use call_used_regs
4279         instead of call_really_used_regs.
4280         (mips_interrupt_extra_call_saved_reg_p): Likewise.
4281         (mips_cfun_call_saved_reg_p): Likewise.
4282         (mips_swap_registers): Remove the old handling of call_used_regs
4283         and change the handling of call_really_used_regs to use call_used_regs
4284         instead.
4285         (mips_conditional_register_usage): Likewise.
4286         * config/mn10300/mn10300.h (CALL_USED_REGISTERS): Delete.
4287         * config/mn10300/mn10300.c (fp_regs_to_save): Use call_used_regs
4288         instead of call_really_used_regs.
4289         (mn10300_get_live_callee_saved_regs): Likewise.
4290         (mn10300_expand_prologue, mn10300_expand_epilogue): Likewise.
4291         (mn10300_conditional_register_usage): Don't set call_used_regs when
4292         making a register fixed.
4293         * config/rs6000/rs6000.h (CALL_USED_REGISTERS): Delete.
4294         * config/rs6000/rs6000.c (rs6000_conditional_register_usage):
4295         Remove the old handling of call_used_regs and change the handling
4296         of call_really_used_regs to use call_used_regs instead.
4297         * config/s390/s390.h (CALL_USED_REGISTERS): Delete.
4298         * config/s390/s390.c (s390_regs_ever_clobbered): Use call_used_regs
4299         instead of call_really_used_regs.
4300         (s390_register_info_gprtofpr, s390_register_info): Likewise.
4301         (s390_hard_regno_rename_ok, s390_hard_regno_scratch_ok): Likewise.
4302         (s390_emit_prologue, s300_set_up_by_prologue): Likewise.
4303         (s390_can_use_return_insn, s390_optimize_prologue): Likewise.
4304         (s390_conditional_register_usage): Remove the old handling of
4305         call_used_regs and change the handling of call_really_used_regs
4306         to use call_used_regs instead.
4307         * config/sh/sh.h (CALL_USED_REGISTERS): Delete.
4308         * config/sh/sh.c (output_stack_adjust, calc_live_regs): Likewise.
4309         (sh_fix_range, reg_unused_after): Likewise.
4310         (sh_conditional_register_usage): Remove the old handling of
4311         call_used_regs and change the handling of call_really_used_regs
4312         to use call_used_regs instead.
4313         * config/sparc/sparc.h (CALL_USED_REGISTERS): Delete.
4314         * config/sparc/sparc.c (sparc_conditional_register_usage): Don't set
4315         call_used_regs when making a register fixed.
4316         * config/tilegx/tilegx.h (CALL_USED_REGISTERS): Delete.
4317         * config/tilegx/tilegx.c (tilegx_conditional_register_usage): Don't set
4318         call_used_regs when making a register fixed.
4319         * config/tilepro/tilepro.h (CALL_USED_REGISTERS): Delete.
4320         * config/tilepro/tilepro.c (tilepro_conditional_register_usage): Don't
4321         set call_used_regs when making a register fixed.
4322         * config/visium/visium.h (CALL_USED_REGISTERS): Delete.
4323         * config/visium/visium.c (visium_conditional_register_usage): Remove
4324         the old handling of call_used_regs and change the handling of
4325         call_really_used_regs to use call_used_regs instead.
4327 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4329         * hard-reg-set.h (call_used_regs): Only define if IN_TARGET_CODE.
4330         (call_used_or_fixed_reg_p): Expand definition of call_used_regs.
4331         * reginfo.c (call_used_regs): New macro.
4333 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4335         * config/alpha/alpha.c (alpha_compute_frame_layout): Remove redundant
4336         fixed_regs test.
4337         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4338         (bpf_expand_epilogue): Likewise.
4339         * config/c6x/c6x.c (c6x_save_reg): Likewise.
4340         * config/ft32/ft32.c (ft32_expand_prologue): Likewise.
4341         (ft32_expand_epilogue): Likewise.
4342         * config/i386/i386.c (ix86_save_reg): Likewise.
4343         * config/moxie/moxie.c (moxie_expand_prologue): Likewise.
4344         (moxie_expand_epilogue): Likewise.
4345         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4346         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4347         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4349 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4351         * hard-reg-set.h (call_used_or_fixed_reg_p): New macro.
4352         * cfgloopanal.c (init_set_costs): Use call_used_or_fixed_reg_p
4353         instead of testing call_used_regs directly.
4354         * config/aarch64/aarch64.c (aarch64_layout_frame): Likewise.
4355         (aarch64_components_for_bb): Likewise.
4356         * config/alpha/alpha.c (alpha_compute_frame_layout): Likewise.
4357         * config/arc/arc.c (arc_must_save_register): Likewise.
4358         (arc_epilogue_uses): Likewise.
4359         * config/arm/arm.c (arm_option_override, use_return_insn): Likewise.
4360         (legitimize_pic_address, callee_saved_reg_p): Likewise.
4361         (arm_compute_save_reg0_reg12_mask): Likewise.
4362         (arm_compute_save_core_reg_mask): Likewise.
4363         (arm_get_vfp_saved_size, arm_compute_frame_layout): Likewise.
4364         (arm_save_coproc_regs, thumb1_extra_regs_pushed): Likewise.
4365         (cmse_nonsecure_entry_clear_before_return): Likewise.
4366         (thumb1_expand_epilogue, arm_expand_epilogue_apcs_frame): Likewise.
4367         (arm_expand_epilogue): Likewise.
4368         * config/avr/avr.c (avr_regs_to_save, sequent_regs_live): Likewise.
4369         (avr_function_arg_advance, avr_find_unused_d_reg): Likewise.
4370         (_reg_unused_after): Likewise.
4371         * config/bfin/bfin.c (must_save_p, expand_prologue_reg_save): Likewise.
4372         (expand_epilogue_reg_restore, n_regs_saved_by_prologue): Likewise.
4373         (add_to_reg, hwloop_optimize): Likewise.
4374         * config/bpf/bpf.c (bpf_compute_frame_layout, bpf_expand_prologue)
4375         (bpf_expand_epilogue): Likewise.
4376         * config/c6x/c6x.c (c6x_save_reg, c6x_regno_reg_class): Likewise.
4377         * config/cr16/cr16.c (cr16_compute_save_regs): Likewise.
4378         * config/cris/cris.c (cris_reg_saved_in_regsave_area): Likewise.
4379         * config/epiphany/epiphany.c (epiphany_init_reg_tables): Likewise.
4380         (epiphany_compute_function_type, MUST_SAVE_REGISTER): Likewise.
4381         (epiphany_output_mi_thunk, epiphany_start_function): Likewise.
4382         * config/fr30/fr30.c (fr30_num_arg_regs): Likewise.
4383         * config/frv/frv.c (frv_stack_info): Likewise.
4384         * config/ft32/ft32.c (ft32_compute_frame): Likewise.
4385         (ft32_expand_prologue, ft32_expand_epilogue): Likewise.
4386         * config/gcn/gcn.c (gcn_compute_frame_offsets): Likewise.
4387         (move_callee_saved_registers): Likewise.
4388         * config/h8300/h8300.c (byte_reg): Likewise.
4389         * config/i386/i386-options.c (ix86_set_current_function): Likewise.
4390         * config/i386/i386.c (ix86_save_reg, ix86_expand_prologue): Likewise.
4391         (ix86_expand_epilogue, x86_order_regs_for_local_alloc): Likewise.
4392         * config/i386/predicates.md (sibcall_memory_operand): Likewise.
4393         * config/ia64/ia64.c (emit_safe_across_calls, find_gr_spill): Likewise.
4394         (next_scratch_gr_reg, ia64_compute_frame_size): Likewise.
4395         * config/iq2000/iq2000.h (MUST_SAVE_REGISTER): Likewise.
4396         * config/lm32/lm32.c (lm32_compute_frame_size): Likewise.
4397         * config/m32c/m32c.c (need_to_save): Likewise.
4398         * config/m68k/m68k.c (m68k_save_reg): Likewise.
4399         * config/mcore/mcore.c (calc_live_regs): Likewise.
4400         * config/microblaze/microblaze.c (microblaze_must_save_register):
4401         Likewise.
4402         * config/mmix/mmix.c (mmix_local_regno): Likewise.
4403         (mmix_initial_elimination_offset, mmix_reorg): Likewise.
4404         (mmix_use_simple_return, mmix_expand_prologue): Likewise.
4405         (mmix_expand_epilogue): Likewise.
4406         * config/moxie/moxie.c (moxie_compute_frame): Likewise.
4407         (moxie_expand_prologue, moxie_expand_epilogue): Likewise.
4408         * config/msp430/msp430.c (msp430_preserve_reg_p): Likewise.
4409         * config/nds32/nds32.h (nds32_16bit_address_type): Likewise.
4410         (NDS32_REQUIRED_CALLEE_SAVED_P): Likewise.
4411         * config/nios2/nios2.c (prologue_saved_reg_p): Likewise.
4412         * config/or1k/or1k.c (callee_saved_regno_p): Likewise.
4413         * config/pa/pa.c (pa_expand_prologue, pa_expand_epilogue): Likewise.
4414         * config/pdp11/pdp11.c (pdp11_saved_regno): Likewise.
4415         * config/pru/pru.c (prologue_saved_reg_p): Likewise.
4416         * config/riscv/riscv.c (riscv_save_reg_p): Likewise.
4417         (riscv_epilogue_uses, riscv_hard_regno_mode_ok): Likewise.
4418         * config/rl78/rl78.c (need_to_save): Likewise.
4419         * config/rs6000/rs6000-logue.c (save_reg_p): Likewise.
4420         (rs6000_stack_info, generate_set_vrsave): Likewise.
4421         (rs6000_emit_prologue, rs6000_emit_epilogue): Likewise.
4422         * config/rs6000/rs6000.c (rs6000_debug_reg_print): Likewise.
4423         * config/rx/rx.c (rx_get_stack_layout): Likewise.
4424         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
4425         * config/sh/sh.c (calc_live_regs, sh_output_mi_thunk): Likewise.
4426         * config/sparc/sparc.c (save_global_or_fp_reg_p): Likewise.
4427         (save_local_or_in_reg_p): Likewise.
4428         * config/stormy16/stormy16.c (REG_NEEDS_SAVE): Likewise.
4429         (xstormy16_epilogue_uses): Likewise.
4430         * config/tilegx/tilegx.c (need_to_save_reg): Likewise.
4431         * config/tilepro/tilepro.c (need_to_save_reg): Likewise.
4432         * config/v850/v850.c (compute_register_save_size): Likewise.
4433         * config/vax/vax.c (vax_expand_prologue): Likewise.
4434         * config/visium/visium.c (visium_save_reg_p): Likewise.
4435         * config/xtensa/xtensa.c (xtensa_call_save_reg): Likewise.
4436         * cselib.c (cselib_process_insn): Likewise.
4437         * df-scan.c (df_get_entry_block_def_set): Likewise.
4438         * function.c (aggregate_value_p): Likewise.
4439         * haifa-sched.c (alloc_global_sched_pressure_data): Likewise.
4440         * ira-lives.c (process_bb_node_lives): Likewise.
4441         * ira.c (do_reload): Likewise.
4442         * lra-lives.c (process_bb_lives): Likewise.
4443         * lra-remat.c (lra_remat): Likewise.
4444         * lra.c (lra): Likewise.
4445         * postreload.c (reload_combine_recognize_pattern): Likewise.
4446         (reload_cse_move2add): Likewise.
4447         * recog.c (peep2_find_free_register): Likewise.
4448         * regrename.c (check_new_reg_p): Likewise.
4449         * reload.c (find_equiv_reg): Likewise.
4450         * reload1.c (reload, find_reg): Likewise.
4451         * sel-sched.c (init_hard_regs_data): Likewise.
4453 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4455         * config/frv/frv.c (frv_ifcvt_modify_tests): Use
4456         regs_invalidated_by_call & ~fixed_reg_set instead of
4457         call_used_or_fixed_regs & ~fixed_reg_set.
4458         * config/sh/sh.c (output_stack_adjust): Likewise.
4460 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4462         * hard-reg-set.h (target_hard_regs::x_call_used_reg_set): Delete.
4463         (call_used_reg_set): Delete.
4464         (call_used_or_fixed_regs): New macro.
4465         * reginfo.c (init_reg_sets_1, globalize_reg): Remove initialization
4466         of call_used_reg_set.
4467         * caller-save.c (setup_save_areas): Use call_used_or_fixed_regs
4468         instead of call_used_regs.
4469         (save_call_clobbered_regs): Likewise.
4470         * cfgcleanup.c (old_insns_match_p): Likewise.
4471         * config/c6x/c6x.c (c6x_call_saved_register_used): Likewise.
4472         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4473         Likewise.
4474         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4475         * config/sh/sh.c (output_stack_adjust): Likewise.
4476         * final.c (collect_fn_hard_reg_usage): Likewise.
4477         * ira-build.c (ira_build): Likewise.
4478         * ira-color.c (calculate_saved_nregs): Likewise.
4479         (allocno_reload_assign, calculate_spill_cost): Likewise.
4480         * ira-conflicts.c (ira_build_conflicts): Likewise.
4481         * ira-costs.c (ira_tune_allocno_costs): Likewise.
4482         * ira-lives.c (process_bb_node_lives): Likewise.
4483         * ira.c (setup_reg_renumber): Likewise.
4484         * lra-assigns.c (find_hard_regno_for_1, lra_assign): Likewise.
4485         * lra-constraints.c (need_for_call_save_p): Likewise.
4486         (need_for_split_p, inherit_in_ebb): Likewise.
4487         * lra-lives.c (process_bb_lives): Likewise.
4488         * lra-remat.c (call_used_input_regno_present_p): Likewise.
4489         * postreload.c (reload_combine): Likewise.
4490         * regrename.c (find_rename_reg): Likewise.
4491         * reload1.c (reload_as_needed): Likewise.
4492         * rtlanal.c (find_all_hard_reg_sets): Likewise.
4493         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4494         * shrink-wrap.c (requires_stack_frame_p): Likewise.
4496 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4498         * hard-reg-set.h (target_hard_regs::x_no_caller_save_reg_set): Delete.
4499         (no_caller_save_reg_set): Delete.
4500         * caller-save.c (init_caller_save): Don't initialize it.
4501         * ira-conflicts.c (ira_build_conflicts): Calculate
4502         no_caller_save_reg_set locally from call_used_reg_set and savable_regs.
4504 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4506         * hard-reg-set.h (target_hard_regs::x_call_fixed_reg_set): Delete.
4507         (target_hard_regs::x_savable_regs): New field.
4508         (call_fixed_reg_set): Delete.
4509         (savable_regs): New macro,
4510         * reginfo.c (globalize_reg): Don't set call_fixed_reg_set.
4511         (init_reg_sets_1): Likewise.  Initialize savable_regs.
4512         * caller-save.c (init_caller_save): Invoke HARD_REGNO_CALLER_SAVE_MODE
4513         for all registers.  Set savable_regs instead of call_fixed_reg_set.
4514         (setup_save_areas, save_call_clobbered_regs): Replace uses of
4515         ~call_fixed_reg_set with ~fixed_reg_set & savable_regs.
4516         * config/sh/sh.c (output_stack_adjust): Likewise.
4518 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4520         * config/c6x/c6x-protos.h (c6x_set_return_address): Declare.
4521         * config/c6x/c6x.h (REGNO_REG_CLASS): Move implementation to
4522         * config/c6x/c6x.c (c6x_regno_reg_class): ...this new function.
4524 2019-09-10  Richard Sandiford  <richard.sandiford@arm.com>
4526         * rtl.h (get_call_rtx_from): Take a const rtx_insn * instead of an rtx.
4527         * rtlanal.c (get_call_rtx_from): Likewise.
4528         * dwarf2out.c (dwarf2out_var_location): Pass the insn rather
4529         than the pattern to get_call_rtx_from.
4530         * config/i386/i386-expand.h (ix86_notrack_prefixed_insn_p): Take
4531         an rtx_insn * instead of an rtx.
4532         * config/i386/i386-expand.c (ix86_notrack_prefixed_insn_p): Likewise.
4534 2019-09-10  Martin Liska  <mliska@suse.cz>
4536         * common.opt: Use newly added WarnRemoved.
4537         * config/aarch64/aarch64.opt: Likewise.
4538         * config/arm/arm.opt: Likewise.
4539         * config/i386/i386.opt: Likewise.
4540         * config/ia64/ia64.opt: Likewise.
4541         * config/rs6000/rs6000.opt: Likewise.
4542         * doc/options.texi: Document WarnRemoved properly.
4543         * dwarf2out.c (gen_producer_string): Handle renamed
4544         OPT_SPECIAL_warn_removed.
4545         * lto-opts.c (lto_write_options): Likewise.
4546         * lto-wrapper.c (merge_and_complain): Likewise.
4547         * opts-common.c (decode_cmdline_option): Likewise.
4548         (prune_options): Likewise.
4549         (read_cmdline_option): Likewise.
4550         (control_warning_option): Likewise.
4551         * opts.c (print_filtered_help): Likewise.
4552         * optc-gen.awk: Parse for WarnRemoved and make usage
4553         of Deprecated an error.
4554         * opth-gen.awk: Generate new OPT_SPECIAL_warn_removed.
4556 2019-09-10  Arnaud Charlet  <charlet@adacore.com>
4558         * doc/install.texi: Fix syntax for html generation.
4560 2019-09-10  Jakub Jelinek  <jakub@redhat.com>
4562         PR middle-end/91680
4563         * match.pd ((A / (1 << B)) -> (A >> B)): Allow widening cast from
4564         the shift type to type.
4566 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4568         * config/arm/arm.md (stack_protect_combined_set_insn): Handle
4569         FDPIC mode.
4570         (stack_protect_combined_test_insn): Likewise.
4572 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4573             Mickaël Guêné <mickael.guene@st.com>
4575         * config/arm/arm.c (arm_load_tp): Add FDPIC support.
4576         * config/arm/arm.md (FDPIC_REGNUM): New constant.
4577         (load_tp_soft_fdpic): New pattern.
4578         (load_tp_soft): Disable in FDPIC mode.
4580 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4581             Mickaël Guêné <mickael.guene@st.com>
4583         * config/arm/arm.c (tls_reloc): Add TLS_GD32_FDPIC,
4584         TLS_LDM32_FDPIC and TLS_IE32_FDPIC.
4585         (arm_call_tls_get_addr): Add FDPIC support.
4586         (legitimize_tls_address): Likewise.
4587         (arm_emit_tls_decoration): Likewise.
4589 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4590             Mickaël Guêné <mickael.guene@st.com>
4592         * config/arm/arm.c (arm_asm_trampoline_template): Add FDPIC
4593         support.
4594         (arm_trampoline_init): Likewise.
4595         (arm_trampoline_adjust_address): Likewise.
4596         * config/arm/arm.h (TRAMPOLINE_SIZE): Likewise.
4598 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4599             Mickaël Guêné <mickael.guene@st.com>
4601         * config/arm/arm.c (arm_fdpic_local_funcdesc_p): New function.
4602         (legitimize_pic_address): Enforce binding rules on function
4603         pointers in FDPIC mode.
4604         (arm_assemble_integer): Likewise.
4606 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4607             Mickaël Guêné <mickael.guene@st.com>
4609         * config/arm/arm.h (PIC_REGISTER_MAY_NEED_SAVING): New helper.
4610         * config/arm/arm.c (arm_compute_save_reg0_reg12_mask): Handle
4611         FDPIC.
4613 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4614             Mickaël Guêné <mickael.guene@st.com>
4616         * ginclude/unwind-arm-common.h (unwinder_cache): Add reserved5
4617         field.
4619 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4620             Mickaël Guêné <mickael.guene@st.com>
4622         * config/arm/arm-c.c (__FDPIC__): Define new pre-processor macro
4623         in FDPIC mode.
4624         * config/arm/arm-protos.h (arm_load_function_descriptor): Declare
4625         new function.
4626         * config/arm/arm.c (arm_option_override): Define pic register to
4627         FDPIC_REGNUM.
4628         (arm_function_ok_for_sibcall): Disable sibcall optimization if we
4629         have no decl or go through PLT.
4630         (calculate_pic_address_constant): New function.
4631         (legitimize_pic_address): Call calculate_pic_address_constant.
4632         (arm_load_pic_register): Handle TARGET_FDPIC.
4633         (arm_is_segment_info_known): New function.
4634         (arm_pic_static_addr): Add support for FDPIC.
4635         (arm_load_function_descriptor): New function.
4636         (arm_emit_call_insn): Add support for FDPIC.
4637         (arm_assemble_integer): Add support for FDPIC.
4638         * config/arm/arm.h (PIC_OFFSET_TABLE_REG_CALL_CLOBBERED):
4639         Define. (FDPIC_REGNUM): New define.
4640         * config/arm/arm.md (call): Add support for FDPIC.
4641         (call_value): Likewise.
4642         (restore_pic_register_after_call): New pattern.
4643         (untyped_call): Disable if FDPIC.
4644         (untyped_return): Likewise.
4645         * config/arm/unspecs.md (UNSPEC_PIC_RESTORE): New.
4647 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4648             Mickaël Guêné <mickael.guene@st.com>
4650         * config.gcc: Handle arm*-*-uclinuxfdpiceabi.
4651         * config/arm/bpabi.h (TARGET_FDPIC_ASM_SPEC): New.
4652         (SUBTARGET_EXTRA_ASM_SPEC): Use TARGET_FDPIC_ASM_SPEC.
4653         * config/arm/linux-eabi.h (FDPIC_CC1_SPEC): New.
4654         (CC1_SPEC): Use FDPIC_CC1_SPEC.
4655         (MUSL_DYNAMIC_LINKER): Add -fdpic suffix when needed.
4656         * config/arm/uclinuxfdpiceabi.h: New file.
4658 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4660         * config.gcc: Handle *-*-uclinuxfdpiceabi.
4662 2019-09-10  Christophe Lyon  <christophe.lyon@st.com>
4663             Mickaël Guêné  <mickael.guene@st.com>
4665         * config/arm/arm.opt: Add -mfdpic option.
4666         * doc/invoke.texi: Add documentation for -mfdpic.
4668 2019-09-09  Bernd Edlinger  <bernd.edlinger@hotmail.de>
4670         * expmed.c (extract_bit_field): Update function comment
4671         regarding alt_rtl.
4672         * expr.c (expand_expr_real): Update function comment
4673         regarding alt_rtl.
4674         (expand_misaligned_mem_ref): New helper function.
4675         (expand_expr_real_2): Use expand_misaligned_mem_ref.
4676         Remove duplicate assignment to "base" at case MEM_REF.
4677         Remove a shadowed variable "unsignedp" at case VCE. 
4679 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4681         * regset.h (regs_invalidated_by_call_regset): Delete.
4682         (fixed_reg_set_regset): Likewise.
4683         * reginfo.c (regs_invalidated_by_call_regset): Likewise.
4684         (fixed_reg_set_regset, persistent_obstack): Likewise.
4685         (init_reg_sets_1, globalize_reg): Update accordingly.
4686         * df.h (df_print_regset, df_print_word_regset): Take a const_bitmap
4687         instead of a bitmap.
4688         * df-core.c (df_print_regset, df_print_word_regset): Likewise.
4689         * df-problems.c (df_rd_local_compute): Use regs_invalidated_by_call
4690         instead of regs_invalidated_by_call_regset.
4691         (df_lr_confluence_n, df_md_confluence_n): Likewise.
4692         * df-scan.c (df_scan_start_dump): Likewise.
4693         * dse.c (copy_fixed_regs): Likewise.
4694         * config/sh/sh.c (sh_find_equiv_gbr_addr): Likewise.
4696 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4698         * array-traits.h: New file.
4699         * coretypes.h (array_traits, bitmap_view): New types.
4700         * bitmap.h: Include "array-traits.h"
4701         (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4702         (base_bitmap_view, bitmap_view): New classes.
4703         * bitmap.c (bitmap_bit_p): Take a const_bitmap instead of a bitmap.
4704         * hard-reg-set.h: Include array-traits.h.
4705         (array_traits<HARD_REG_SET>): New struct.
4706         * regset.h (IOR_REG_SET_HRS): New macro.
4707         * loop-iv.c (simplify_using_initial_values): Use IOR_REG_SET_HRS
4708         rather than iterating over each hard register.
4709         * sched-deps.c (sched_analyze_insn): Likewise.
4710         * sel-sched-ir.c (setup_id_implicit_regs): Likewise.
4712 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4714         * ira-int.h (ior_hard_reg_conflicts): Take a const_hard_reg_set
4715         instead of a HARD_REG_SET *.
4716         * ira-build.c (ior_hard_reg_conflicts): Likewise.
4717         (ira_build): Update call accordingly.
4718         * ira-emit.c (add_range_and_copies_from_move_list): Likewise.
4720 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4722         * hard-reg-set.h (HARD_REG_SET::operator==): New function.
4723         (HARD_REG_SET::operator!=): Likewise.
4724         (hard_reg_set_equal_p): Delete.
4725         * cfgcleanup.c (old_insns_match_p): Use == instead of
4726         hard_reg_set_equal_p and != instead of !hard_reg_set_equal_p.
4727         * ira-color.c (allocno_hard_regs_hasher::equal): Likewise.
4728         (add_allocno_hard_regs_to_forest): Likewise.
4729         (setup_allocno_available_regs_num): Likewise.
4730         * ira.c (setup_pressure_classes): Likewise.
4731         (setup_allocno_and_important_classes): Likewise.
4732         (setup_reg_class_relations): Likewise.
4733         * lra-lives.c (process_bb_lives): Likewise.
4734         * reg-stack.c (change_stack, convert_regs_1): Likewise.
4736 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4738         * hard-reg-set.h (IOR_COMPL_HARD_REG_SET): Delete.
4739         * config/aarch64/cortex-a57-fma-steering.c (rename_single_chain):
4740         Use "|~" instead of IOR_COMPL_HARD_REG_SET.
4741         * config/aarch64/falkor-tag-collision-avoidance.c (init_unavailable):
4742         Likewise.
4743         * ira-build.c (ira_create_object, ira_set_allocno_class): Likewise.
4744         * ira.c (setup_reg_renumber): Likewise.
4745         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4746         * regrename.c (regrename_find_superclass): Likewise.
4747         * reload1.c (find_reg): Likewise.
4749 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4751         * hard-reg-set.h (AND_COMPL_HARD_REG_SET): Delete.
4752         * caller-save.c (setup_save_areas): Use "&~" instead of
4753         AND_COMPL_HARD_REG_SET.
4754         (save_call_clobbered_regs): Likewise.
4755         * config/epiphany/epiphany.c (epiphany_conditional_register_usage):
4756         Likewise.
4757         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4758         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4759         * config/i386/i386.c (ix86_conditional_register_usage): Likewise.
4760         * config/mips/mips.c (mips_class_max_nregs): Likewise.
4761         (mips_conditional_register_usage): Likewise.
4762         * config/sh/sh.c (output_stack_adjust): Likewise.
4763         * ira-color.c (form_allocno_hard_regs_nodes_forest): Likewise.
4764         (setup_profitable_hard_regs): Likewise.
4765         (get_conflict_and_start_profitable_regs): Likewise.
4766         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4767         (ira_build_conflicts): Likewise.
4768         * ira-costs.c (restrict_cost_classes): Likewise.
4769         (setup_regno_cost_classes_by_aclass): Likewise.
4770         * ira-lives.c (process_bb_node_lives): Likewise.
4771         * ira.c (setup_class_hard_regs, setup_reg_subclasses): Likewise.
4772         (setup_class_subset_and_memory_move_costs, setup_pressure_classes)
4773         (setup_allocno_and_important_classes, setup_class_translate_array)
4774         (setup_reg_class_relations, setup_prohibited_class_mode_regs):
4775         Likewise.
4776         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4777         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4778         (process_alt_operands, inherit_in_ebb): Likewise.
4779         * lra-eliminations.c (update_reg_eliminate): Likewise.
4780         * lra-lives.c (process_bb_lives): Likewise.
4781         * reload1.c (update_eliminables_and_spill, reload_as_needed): Likewise.
4782         * resource.c (find_dead_or_set_registers): Likewise.
4783         (mark_target_live_regs): Likewise.
4784         * sched-deps.c (get_implicit_reg_pending_clobbers): Likewise.
4785         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4786         (implicit_clobber_conflict_p): Likewise.
4787         * shrink-wrap.c (requires_stack_frame_p): Likewise.
4788         (try_shrink_wrapping): Likewise.
4790 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4792         * hard-reg-set.h (HARD_REG_SET::operator|): New function.
4793         (HARD_REG_SET::operator|=): Likewise.
4794         (IOR_HARD_REG_SET): Delete.
4795         * config/gcn/gcn.c (gcn_md_reorg): Use "|" instead of
4796         IOR_HARD_REG_SET.
4797         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4798         * config/s390/s390.c (s390_adjust_loop_scan_osc): Likewise.
4799         * final.c (collect_fn_hard_reg_usage): Likewise.
4800         * hw-doloop.c (scan_loop, optimize_loop): Likewise.
4801         * ira-build.c (merge_hard_reg_conflicts): Likewise.
4802         (ior_hard_reg_conflicts, create_cap_allocno, propagate_allocno_info)
4803         (propagate_some_info_from_allocno): Likewise.
4804         (copy_info_to_removed_store_destinations): Likewise.
4805         * ira-color.c (add_allocno_hard_regs_to_forest, assign_hard_reg)
4806         (allocno_reload_assign, ira_reassign_pseudos): Likewise.
4807         (fast_allocation): Likewise.
4808         * ira-conflicts.c (ira_build_conflicts): Likewise.
4809         * ira-lives.c (make_object_dead, process_single_reg_class_operands)
4810         (process_bb_node_lives): Likewise.
4811         * ira.c (setup_pressure_classes, setup_reg_class_relations): Likewise.
4812         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4813         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4814         * lra-constraints.c (process_alt_operands, inherit_in_ebb): Likewise.
4815         * lra-eliminations.c (spill_pseudos, update_reg_eliminate): Likewise.
4816         * lra-lives.c (mark_pseudo_dead, check_pseudos_live_through_calls)
4817         (process_bb_lives): Likewise.
4818         * lra-spills.c (assign_spill_hard_regs): Likewise.
4819         * postreload.c (reload_combine): Likewise.
4820         * reginfo.c (init_reg_sets_1): Likewise.
4821         * regrename.c (merge_overlapping_regs, find_rename_reg)
4822         (merge_chains): Likewise.
4823         * reload1.c (maybe_fix_stack_asms, order_regs_for_reload, find_reg)
4824         (find_reload_regs, finish_spills, choose_reload_regs_init)
4825         (emit_reload_insns): Likewise.
4826         * reorg.c (redundant_insn): Likewise.
4827         * resource.c (find_dead_or_set_registers, mark_set_resources)
4828         (mark_target_live_regs): Likewise.
4829         * rtlanal.c (find_all_hard_reg_sets): Likewise.
4830         * sched-deps.c (sched_analyze_insn): Likewise.
4831         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4832         (find_best_reg_for_expr): Likewise.
4833         * shrink-wrap.c (try_shrink_wrapping): Likewise.
4835 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4837         * hard-reg-set.h (HARD_REG_SET::operator&): New function.
4838         (HARD_REG_SET::operator&): Likewise.
4839         (AND_HARD_REG_SET): Delete.
4840         * caller-save.c (setup_save_areas): Use "&" instead of
4841         AND_HARD_REG_SET.
4842         (save_call_clobbered_regs): Likewise.
4843         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4844         * config/m32c/m32c.c (reduce_class): Likewise.
4845         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4846         * final.c (get_call_reg_set_usage): Likewise.
4847         * ira-color.c (add_allocno_hard_regs_to_forest): Likewise.
4848         (setup_left_conflict_sizes_p): Likewise.
4849         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4850         (ira_build_conflicts): Likewise.
4851         * ira-costs.c (restrict_cost_classes): Likewise.
4852         * ira.c (setup_stack_reg_pressure_class, setup_class_translate_array)
4853         (setup_reg_class_relations): Likewise.
4854         * reginfo.c (init_reg_sets_1, record_subregs_of_mode): Likewise.
4855         * reload1.c (maybe_fix_stack_asms, finish_spills): Likewise.
4856         * resource.c (find_dead_or_set_registers): Likewise.
4857         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4859 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4861         * hard-reg-set.h (HARD_REG_SET::operator~): New function.
4862         (COMPL_HARD_REG_SET): Delete.
4863         * config/c6x/c6x.c (c6x_call_saved_register_used): Use ~ instead
4864         of COMPL_HARD_REG_SET.
4865         (try_rename_operands): Likewise.
4866         * config/sh/sh.c (push_regs): Likewise.
4867         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4868         * lra-constraints.c (contains_reg_p): Likewise.
4869         * reload1.c (finish_spills, choose_reload_regs_init): Likewise.
4871 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4873         * hard-reg-set.h (COPY_HARD_REG_SET): Delete.
4874         * caller-save.c (save_call_clobbered_regs): Use assignment instead
4875         of COPY_HARD_REG_SET.
4876         * config/epiphany/epiphany.c (epiphany_compute_frame_size): Likewise.
4877         (epiphany_conditional_register_usage): Likewise.
4878         * config/frv/frv.c (frv_ifcvt_modify_tests): Likewise.
4879         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4880         * config/ia64/ia64.c (ia64_compute_frame_size): Likewise.
4881         * config/m32c/m32c.c (m32c_register_move_cost): Likewise.
4882         * config/m68k/m68k.c (m68k_conditional_register_usage): Likewise.
4883         * config/mips/mips.c (mips_class_max_nregs): Likewise.
4884         * config/pdp11/pdp11.c (pdp11_conditional_register_usage): Likewise.
4885         * config/rs6000/rs6000.c (rs6000_register_move_cost): Likewise.
4886         * config/sh/sh.c (output_stack_adjust): Likewise.
4887         * final.c (collect_fn_hard_reg_usage): Likewise.
4888         (get_call_reg_set_usage): Likewise.
4889         * ira-build.c (ira_create_object, remove_low_level_allocnos)
4890         (ira_flattening): Likewise.
4891         * ira-color.c (add_allocno_hard_regs, add_allocno_hard_regs_to_forest)
4892         (setup_left_conflict_sizes_p, setup_profitable_hard_regs)
4893         (get_conflict_and_start_profitable_regs, allocno_reload_assign)
4894         (ira_reassign_pseudos): Likewise.
4895         * ira-conflicts.c (print_allocno_conflicts): Likewise.
4896         (ira_build_conflicts): Likewise.
4897         * ira-costs.c (restrict_cost_classes): Likewise.
4898         (setup_regno_cost_classes_by_aclass): Likewise.
4899         * ira.c (setup_class_hard_regs, setup_alloc_regs): Likewise.
4900         (setup_reg_subclasses, setup_class_subset_and_memory_move_costs)
4901         (setup_stack_reg_pressure_class, setup_pressure_classes)
4902         (setup_allocno_and_important_classes, setup_class_translate_array)
4903         (setup_reg_class_relations, setup_prohibited_class_mode_regs)
4904         (ira_setup_eliminable_regset): Likewise.
4905         * lra-assigns.c (find_hard_regno_for_1): Likewise.
4906         (setup_live_pseudos_and_spill_after_risky_transforms): Likewise.
4907         * lra-constraints.c (prohibited_class_reg_set_mode_p): Likewise.
4908         (process_alt_operands, inherit_in_ebb): Likewise.
4909         * lra-lives.c (process_bb_lives): Likewise.
4910         * lra-spills.c (assign_spill_hard_regs): Likewise.
4911         * lra.c (lra): Likewise.
4912         * mode-switching.c (new_seginfo): Likewise.
4913         * postreload.c (reload_combine): Likewise.
4914         * reg-stack.c (straighten_stack): Likewise.
4915         * reginfo.c (save_register_info, restore_register_info): Likewise.
4916         (init_reg_sets_1, record_subregs_of_mode): Likewise
4917         * regrename.c (create_new_chain, rename_chains): Likewise.
4918         * reload1.c (order_regs_for_reload, find_reg): Likewise.
4919         (find_reload_regs): Likewise.
4920         * resource.c (find_dead_or_set_registers): Likewise.
4921         (mark_target_live_regs): Likewise.
4922         * sel-sched.c (mark_unavailable_hard_regs): Likewise.
4924 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
4926         * rtl.h (CALL_INSN_FUNCTION_USAGE): Document what SETs mean.
4927         (note_pattern_stores): Declare.
4928         (note_stores): Take an rtx_insn *.
4929         * rtlanal.c (set_of): Use note_pattern_stores instead of note_stores.
4930         (find_all_hard_reg_sets): Pass the insn rather than its pattern to
4931         note_stores.  Remove explicit handling of CALL_INSN_FUNCTION_USAGE.
4932         (note_stores): Take an rtx_insn * as argument and process
4933         CALL_INSN_FUNCTION_USAGE.  Rename old function to...
4934         (note_pattern_stores): ...this.
4935         (find_first_parameter_load): Pass the insn rather than
4936         its pattern to note_stores.
4937         * alias.c (memory_modified_in_insn_p, init_alias_analysis): Likewise.
4938         * caller-save.c (setup_save_areas, save_call_clobbered_regs)
4939         (insert_one_insn): Likewise.
4940         * combine.c (combine_instructions): Likewise.
4941         (likely_spilled_retval_p): Likewise.
4942         (try_combine): Use note_pattern_stores instead of note_stores.
4943         (record_dead_and_set_regs): Pass the insn rather than its pattern
4944         to note_stores.
4945         (reg_dead_at_p): Likewise.
4946         * config/bfin/bfin.c (workaround_speculation): Likewise.
4947         * config/c6x/c6x.c (maybe_clobber_cond): Likewise.  Take an rtx_insn *
4948         rather than an rtx.
4949         * config/frv/frv.c (frv_registers_update): Use note_pattern_stores
4950         instead of note_stores.
4951         (frv_optimize_membar_local): Pass the insn rather than its pattern
4952         to note_stores.
4953         * config/gcn/gcn.c (gcn_md_reorg): Likewise.
4954         * config/i386/i386.c (ix86_avx_u128_mode_after): Likewise.
4955         * config/mips/mips.c (vr4130_true_reg_dependence_p): Likewise.
4956         (r10k_needs_protection_p, mips_sim_issue_insn): Likewise.
4957         (mips_reorg_process_insns): Likewise.
4958         * config/s390/s390.c (s390_regs_ever_clobbered): Likewise.
4959         * config/sh/sh.c (flow_dependent_p): Likewise.  Take rtx_insn *s
4960         rather than rtxes.
4961         * cse.c (delete_trivially_dead_insns): Pass the insn rather than
4962         its pattern to note_stores.
4963         * cselib.c (cselib_record_sets): Use note_pattern_stores instead
4964         of note_stores.
4965         * dce.c (mark_nonreg_stores): Remove the "body" parameter and pass
4966         the insn to note_stores.
4967         (prescan_insns_for_dce): Update call accordingly.
4968         * ddg.c (mem_write_insn_p): Pass the insn rather than its pattern
4969         to note_stores.
4970         * df-problems.c (can_move_insns_across): Likewise.
4971         * dse.c (emit_inc_dec_insn_before, replace_read): Likewise.
4972         * function.c (assign_parm_setup_reg): Likewise.
4973         * gcse-common.c (record_last_mem_set_info_common): Likewise.
4974         * gcse.c (load_killed_in_block_p, compute_hash_table_work): Likewise.
4975         (single_set_gcse): Likewise.
4976         * ira.c (validate_equiv_mem): Likewise.
4977         (update_equiv_regs): Use note_pattern_stores rather than note_stores
4978         for no_equiv.
4979         * loop-doloop.c (doloop_optimize): Pass the insn rather than its
4980         pattern to note_stores.
4981         * loop-invariant.c (calculate_loop_reg_pressure): Likewise.
4982         * loop-iv.c (simplify_using_initial_values): Likewise.
4983         * mode-switching.c (optimize_mode_switching): Likewise.
4984         * optabs.c (emit_libcall_block_1): Likewise.
4985         (expand_atomic_compare_and_swap): Likewise.
4986         * postreload-gcse.c (load_killed_in_block_p): Likewise.
4987         (record_opr_changes): Likewise.  Remove explicit handling of
4988         CALL_INSN_FUNCTION_USAGE.
4989         * postreload.c (reload_combine, reload_cse_move2add): Likewise.
4990         * regcprop.c (kill_clobbered_values): Likewise.
4991         (copyprop_hardreg_forward_1): Pass the insn rather than its pattern
4992         to note_stores.
4993         * regrename.c (build_def_use): Likewise.
4994         * reload1.c (reload):  Use note_pattern_stores instead of note_stores
4995         for mark_not_eliminable.
4996         (reload_as_needed): Pass the insn rather than its pattern
4997         to note_stores.
4998         (emit_output_reload_insns): Likewise.
4999         * resource.c (mark_target_live_regs): Likewise.
5000         * sched-deps.c (init_insn_reg_pressure_info): Likewise.
5001         * sched-rgn.c (sets_likely_spilled): Use note_pattern_stores
5002         instead of note_stores.
5003         * shrink-wrap.c (try_shrink_wrapping): Pass the insn rather than
5004         its pattern to note_stores.
5005         * stack-ptr-mod.c (pass_stack_ptr_mod::execute): Likewise.
5006         * var-tracking.c (adjust_insn, add_with_sets): Likewise.
5008 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
5010         * hard-reg-set.h (HARD_REG_SET): Define using a typedef rather
5011         than a #define.  Use a structure rather than an array as the
5012         fallback definition.  Remove special cases for low array sizes.
5013         (const_hard_reg_set): New typedef.
5014         (hard_reg_set_subset_p): Use it instead of "const HARD_REG_SET".
5015         (hard_reg_set_equal_p, hard_reg_set_intersect_p): Likewise.
5016         (hard_reg_set_empty_p): Likewise.
5017         (SET_HARD_REG_BIT): Use a function rather than a macro to
5018         handle the case in which HARD_REG_SET is a structure.
5019         (CLEAR_HARD_REG_BIT, TEST_HARD_REG_BIT, CLEAR_HARD_REG_SET)
5020         (SET_HARD_REG_SET, COPY_HARD_REG_SET, COMPL_HARD_REG_SET)
5021         (AND_HARD_REG_SET, AND_COMPL_HARD_REG_SET, IOR_HARD_REG_SET)
5022         (IOR_COMPL_HARD_REG_SET): Likewise.
5023         (hard_reg_set_iterator::pset): Constify the pointer target.
5024         (hard_reg_set_iter_init): Take a const_hard_reg_set instead
5025         of a "const HARD_REG_SET".  Update the handling of non-integer
5026         HARD_REG_SETs.
5027         * recog.h: Test HARD_CONST instead of CLEAR_HARD_REG_SET.
5028         * reload.h: Likewise.
5029         * rtl.h (choose_hard_reg_mode): Remove unnecessary line break.
5030         * regs.h (in_hard_reg_set_p): Take a const_hard_reg_set instead
5031         of a "const HARD_REG_SET".
5032         (overlaps_hard_reg_set_p, range_overlaps_hard_reg_set_p): Likewise.
5033         (range_in_hard_reg_set_p): Likewise.
5034         * ira-costs.c (restrict_cost_classes): Likewise.
5035         * shrink-wrap.c (move_insn_for_shrink_wrap): Likewise.
5036         * config/epiphany/resolve-sw-modes.c (pass_resolve_sw_modes::execute):
5037         Pass a NO_REGS HARD_REG_SET rather than NULL to emit_set_fp_mode.
5038         * config/ia64/ia64.c (rws_insn): In the CHECKING_P version,
5039         use unsigned HOST_WIDEST_FAST_INT rather than HARD_REG_ELT_TYPE.
5040         (rws_insn_set, rws_insn_test): In the CHECKING_P version,
5041         take an unsigned int and open-code the HARD_REG_SET operations.
5043 2019-09-09  Richard Sandiford  <richard.sandiford@arm.com>
5045         * Makefile.in (OBJS): Remove bt-load.o.
5046         * doc/invoke.texi (fbranch-target-load-optimize): Delete.
5047         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5048         * common.opt (fbranch-target-load-optimize): Mark as Ignore and
5049         document that the option no longer does anything.
5050         (fbranch-target-load-optimize2, fbtr-bb-exclusive): Likewise.
5051         * target.def (branch_target_register_class): Delete.
5052         (branch_target_register_callee_saved): Likewise.
5053         * doc/tm.texi.in (TARGET_BRANCH_TARGET_REGISTER_CLASS): Likewise.
5054         (TARGET_BRANCH_TARGET_REGISTER_CALLEE_SAVED): Likewise.
5055         * doc/tm.texi: Regenerate.
5056         * tree-pass.h (make_pass_branch_target_load_optimize1): Delete.
5057         (make_pass_branch_target_load_optimize2): Likewise.
5058         * passes.def (pass_branch_target_load_optimize1): Likewise.
5059         (pass_branch_target_load_optimize2): Likewise.
5060         * targhooks.h (default_branch_target_register_class): Likewise.
5061         * targhooks.c (default_branch_target_register_class): Likewise.
5062         * opt-suggestions.c (test_completion_valid_options): Remove
5063         -fbtr-bb-exclusive from the list of test options.
5064         * bt-load.c: Remove.
5066 2019-09-09  Barnaby Wilks  <barnaby.wilks@arm.com>
5068         * match.pd: Add flag_unsafe_math_optimizations check
5069         before deciding on the widest type in a binary math operation.
5071 2019-09-09  Martin Liska  <mliska@suse.cz>
5073         * config/i386/i386.opt: Update comment of removed
5074         options that are preserved only for backward
5075         compatibility.
5077 2019-09-09  Jakub Jelinek  <jakub@redhat.com>
5079         PR target/87853
5080         * config/i386/emmintrin.h (_mm_cmpeq_epi8): Use casts to __v16qi
5081         instead of __v16qs.
5083         PR target/91704
5084         * config/i386/avxintrin.h (__v32qs): New typedef.
5085         * config/i386/avx2intrin.h (_mm256_cmpgt_epi8): Use casts to __v32qs
5086         instead of __v32qi.
5088 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
5090         * doc/invoke.texi (Option Summary): Cover eBPF.
5091         (eBPF Options): New section.
5092         * doc/extend.texi (BPF Built-in Functions): Likewise.
5093         (BPF Kernel Helpers): Likewise.
5095 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
5097         * config.gcc: Support for bpf-*-* targets.
5098         * common/config/bpf/bpf-common.c: New file.
5099         * config/bpf/t-bpf: Likewise.
5100         * config/bpf/predicates.md: Likewise.
5101         * config/bpf/constraints.md: Likewise.
5102         * config/bpf/bpf.opt: Likewise.
5103         * config/bpf/bpf.md: Likewise.
5104         * config/bpf/bpf.h: Likewise.
5105         * config/bpf/bpf.c: Likewise.
5106         * config/bpf/bpf-protos.h: Likewise.
5107         * config/bpf/bpf-opts.h: Likewise.
5108         * config/bpf/bpf-helpers.h: Likewise.
5109         * config/bpf/bpf-helpers.def: Likewise.
5111 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
5113         * doc/sourcebuild.texi (Effective-Target Keywords): Document
5114         indirect_calls.
5116 2019-09-09  Jose E. Marchesi  <jose.marchesi@oracle.com>
5118         * opt-functions.awk (integer_range_info): Make sure values are in
5119         numeric context before operating with them.
5121 2019-09-08  Segher Boessenkool  <segher@kernel.crashing.org>
5123         * genemit.c (gen_split): Print the filename and line number where the
5124         splitter (or peephole2) was defined, to the dump file.
5126 2019-09-07  Jakub Jelinek  <jakub@redhat.com>
5128         PR tree-optimization/91665
5129         * tree-vect-loop.c (vectorizable_reduction): Punt if base has type
5130         incompatible with the type of PHI result.
5132 2019-09-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5134         PR target/91684
5135         * config/arm/arm.c (arm_block_set_aligned_non_vect): Use
5136         gen_unaligned_storedi for 4-byte aligned addresses.
5138 2019-09-06  Jim Wilson  <jimw@sifive.com>
5140         * config/riscv/riscv.c (riscv_option_override): Revert 2019-08-30
5141         change.
5143 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
5145         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_MV_CR_OV.
5147 2019-09-06  Segher Boessenkool  <segher@kernel.crashing.org>
5149         * config/rs6000/rs6000.c (rs6000_rtx_costs) <case UNSPEC>: Delete.
5150         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_FRSP.
5152 2019-09-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5154         PR target/91654
5155         * config/i386/x86-tune-costs.h (skylake_cost): Raise the
5156         cost of SSE->integer and integer->SSE moves from 2 to 6.
5157         (core_cost): Ditto.
5159 2019-09-06  Jakub Jelinek  <jakub@redhat.com>
5161         * function.c (assign_parm_find_data_types): Use RECORD_OR_UNION_TYPE_P
5162         before testing TYPE_TRANSPARENT_AGGR.
5163         * calls.c (initialize_argument_information, load_register_parameters):
5164         Likewise.
5166 2019-09-06  Richard Earnshaw  <rearnsha@arm.com>
5168         * config/arm/arm.md (cmp_and): Add short-it variant for thumb2 with
5169         high regs.
5170         (cmp_ior): Likewise.
5172 2019-09-06  Martin Liska  <mliska@suse.cz>
5174         * doc/match-and-simplify.texi: Separate tuples with ;.
5176 2019-09-06  Martin Liska  <mliska@suse.cz>
5178         PR c++/91125
5179         * Makefile.in: Remove tlink.o.
5180         * collect2.c (do_link): New function isolated
5181         from do_tlink.
5182         (main): Use.
5183         * collect2.h (do_tlink): Remove declaration of do_tlink.
5184         * doc/extend.texi: Remove documentation of -frepo.
5185         * doc/invoke.texi: Likewise.
5186         * doc/sourcebuild.texi: Remove cleanup-repo-files.
5187         * tlink.c: Remove.
5189 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
5190             Jim Wilson  <jimw@sifive.com>
5192         PR target/91635
5193         * config/riscv/riscv.md (zero_extendsidi2, zero_extendhi<GPR:mode>2,
5194         extend<SHORT:mode><SUPERQI:mode>2): Don't split if
5195         paradoxical_subreg_p (operands[0]).
5196         (*lshrsi3_zero_extend_3+1, *lshrsi3_zero_extend_3+2): Add clobber and
5197         use as intermediate value.
5199 2019-09-05  Andrew Stubbs  <ams@codesourcery.com>
5201         * config/gcn/gcn.md (*movti_insn): Set delayeduse for global_store.
5202         (sync_compare_and_swap<mode>_insn): Likewise.
5204 2019-09-05  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5206         PR middle-end/91615
5207         * expr.c (expand_expr_real_1): Handle misaligned TARGET_MEM_REF
5208         without movmisalign optab.
5210 2019-09-05  Jakub Jelinek  <jakub@redhat.com>
5212         PR middle-end/91001
5213         PR middle-end/91105
5214         PR middle-end/91106
5215         * calls.c (load_register_parameters): For TYPE_TRANSPARENT_AGGR
5216         types, use type of their first field instead of type of
5217         args[i].tree_value.
5219 2019-09-05  Richard Biener  <rguenther@suse.de>
5221         PR rtl-optimization/91656
5222         * postreload-gcse.c (record_last_mem_set_info): Revert addition
5223         of early out.
5225 2019-09-05  Richard Biener  <rguenther@suse.de>
5227         PR middle-end/90501
5228         * tree-inline.c (declare_return_variable): Mark the return
5229         slot as addressable after building an address of it.
5231 2019-09-05  Arnaud Charlet  <charlet@adacore.com>
5233         * doc/install.texi: Update and clarify requirements to build GNAT.
5235 2019-09-05  Richard Sandiford  <richard.sandiford@arm.com>
5237         PR middle-end/91577
5238         * cfgexpand.c (discover_nonconstant_array_refs): Force the source
5239         of an IFN_LOAD_LANES call and the destination of an IFN_STORE_LANES
5240         call to be in memory.
5241         (pass_expand::execute): Call discover_nonconstant_array_refs before
5242         setting currently_expanding_to_rtl.
5244 2019-09-04  Caroline Tice  <cmtice@google.com>
5246         * opts.c (finish_options): Disallow -fvtable-verify and -flto to be
5247         specified together.
5249 2019-09-04  Marek Polacek  <polacek@redhat.com>
5251         * doc/invoke.texi: Remove -fdeduce-init-list documentation.
5253 2019-09-04  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5255         PR target/32413
5256         * config/i386/i386.c (inline_secondary_memory_needed): Return true
5257         for QI and HImode moves between SSE and general registers.
5259 2019-09-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
5261         PR c/78736
5262         * doc/invoke.texi: Document -Wenum-conversion.
5264 2019-09-04  Richard Biener  <rguenther@suse.de>
5266         PR rtl-optimization/36262
5267         * postreload-gcse.c: Include intl.h and gcse.h.
5268         (insert_expr_in_table): Insert at the head of cur_expr->avail_occr
5269         to avoid linear list walk.
5270         (record_last_mem_set_info): Gate off if not computing transparentness.
5271         (get_bb_avail_insn): If transparentness isn't computed give up
5272         early.
5273         (gcse_after_reload_main): Skip compute_transp and extended PRE
5274         if gcse_or_cprop_is_too_expensive says so.
5276 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5278         * config/msp430/msp430.c (msp430_init_sections): Remove handling of the
5279         noinit section.
5280         (msp430_select_section): Handle decls with the "noinit" attribute with
5281         default_elf_select_section.
5282         Handle SECCAT_RODATA_MERGE_* section types with
5283         default_elf_select_section.
5284         Add comments about handling of unsupported section types.
5285         (msp430_section_type_flags): Remove handling of the noinit section.
5287 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5289         * config/msp430/msp430.c (msp430_attr): Remove warnings about
5290         conflicting msp430-specific attributes.
5291         (msp430_section_attr): Likewise.
5292         Add warnings about conflicts with generic "noinit" and "section"
5293         attributes.
5294         Fix grammar in -mlarge error message.
5295         (msp430_data_attr): Rename to msp430_persist_attr.
5296         Add warnings about conflicts with generic "noinit" and "section"
5297         attributes.
5298         Add warning for when variable is not initialized.
5299         Chain conditionals which prevent the attribute being added.
5300         (ATTR_EXCL): New helper.
5301         (attr_reent_exclusions): New exclusion table.
5302         (attr_naked_exclusions): Likewise.
5303         (attr_crit_exclusions): Likewise.
5304         (attr_lower_exclusions): Likewise.
5305         (attr_upper_exclusions): Likewise.
5306         (attr_either_exclusions): Likewise.
5307         (attr_persist_exclusions): Likewise.
5308         (msp430_attribute_table): Update with exclusion rules.
5309         (msp430_output_aligned_decl_common): Don't output common symbol if decl
5310         has a section.
5312 2019-09-03  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
5314         * config/msp430/msp430.c (TARGET_HANDLE_GENERIC_ATTRIBUTE): Define.
5315         (msp430_handle_generic_attribute): New function.
5316         * doc/tm.texi: Regenerate.
5317         * doc/tm.texi.in: Add TARGET_HANDLE_GENERIC_ATTRIBUTE.
5318         * hooks.c (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5319         * hooks.h (hook_tree_treeptr_tree_tree_int_boolptr_null): New.
5320         * target.def: Define new hook TARGET_HANDLE_GENERIC_ATTRIBUTE.
5322 2019-09-03  Kamlesh Kumar  <kamleshbhalui@gmail.com>
5324         PR tree-optimization/91504
5325         * match.pd: Add ((~a & b) ^a) --> (a | b).
5327 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
5329         PR target/91604
5330         * config/i386/i386-expand.c (split_double_mode): If there is more than
5331         one MEM operand and they are rtx_equal_p, reuse lo_half/hi_half from
5332         already split matching MEM operand instead of calling adjust_address
5333         again.
5335 2019-09-03  Ulrich Weigand  <uweigand@de.ibm.com>
5337         * config.gcc: Obsolete spu target.  Remove references to spu.
5338         * configure.ac: Remove references to spu.
5339         * configure: Regenerate.
5340         * config/spu/: Remove directory.
5341         * common/config/spu/: Remove directory.
5343         * doc/extend.texi: Remove references to spu.
5344         * doc/invoke.texi: Likewise.
5345         * doc/md.texi: Likewise.
5346         * doc/sourcebuild.texi: Likewise.
5348 2019-09-03  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5350         PR middle-end/91603
5351         PR middle-end/91612
5352         PR middle-end/91613
5353         * expr.c (expand_expr_real_1): Handle unaligned decl_rtl
5354         and SSA_NAME referring to CONSTANT_P correctly.
5356 2019-09-03  Richard Biener  <rguenther@suse.de>
5358         * tree-ssa-sccvn.h (vn_nary_op_lookup): Remove.
5359         (vn_nary_op_insert): Likewise.
5360         * tree-ssa-sccvn.c (init_vn_nary_op_from_op): Remove.
5361         (vn_nary_op_lookup): Likewise.
5362         (vn_nary_op_insert): Likewise.
5364 2019-09-03  Ilya Leoshkevich  <iii@linux.ibm.com>
5366         * config/s390/s390.c (s390_canonicalize_comparison): Use XEXP
5367         (*op0, 1) instead of XEXP (*op1, 0).
5369 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5371         * config/aarch64/aarch64.md (UNSPEC_FJCVTZS): Define.
5372         (aarch64_fjcvtzs): New define_insn.
5373         * config/aarch64/aarch64.h (TARGET_JSCVT): Define.
5374         * config/aarch64/aarch64-builtins.c (aarch64_builtins):
5375         Add AARCH64_JSCVT.
5376         (aarch64_init_builtins): Initialize __builtin_aarch64_jcvtzs.
5377         (aarch64_expand_builtin): Handle AARCH64_JSCVT.
5378         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5379         __ARM_FEATURE_JCVT where appropriate.
5380         * config/aarch64/arm_acle.h (__jcvt): Define.
5382 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5384         * config/aarch64/aarch64.md ("unspec"): Add UNSPEC_FRINT32Z,
5385         UNSPEC_FRINT32X, UNSPEC_FRINT64Z, UNSPEC_FRINT64X.
5386         (aarch64_<frintnzs_op><mode>): New define_insn.
5387         * config/aarch64/aarch64.h (TARGET_FRINT): Define.
5388         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
5389         __ARM_FEATURE_FRINT when appropriate.
5390         * config/aarch64/aarch64-simd-builtins.def: Add builtins for frint32z,
5391         frint32x, frint64z, frint64x.
5392         * config/aarch64/arm_acle.h (__rint32zf, __rint32z, __rint64zf,
5393         __rint64z, __rint32xf, __rint32x, __rint64xf, __rint64x): Define.
5394         * config/aarch64/arm_neon.h (vrnd32z_f32, vrnd32zq_f32, vrnd32z_f64,
5395         vrnd32zq_f64, vrnd32x_f32, vrnd32xq_f32, vrnd32x_f64, vrnd32xq_f64,
5396         vrnd64z_f32, vrnd64zq_f32, vrnd64z_f64, vrnd64zq_f64, vrnd64x_f32,
5397         vrnd64xq_f32, vrnd64x_f64, vrnd64xq_f64): Define.
5398         * config/aarch64/iterators.md (VSFDF): Define.
5399         (FRINTNZX): Likewise.
5400         (frintnzs_op): Likewise.
5402 2019-09-03  Dennis Zhang  <dennis.zhang@arm.com>
5404         * config/aarch64/aarch64-cores.def (AARCH64_CORE): New entries
5405         for Cortex-A77, Cortex-A76AE, Cortex-A65, Cortex-A65AE, and
5406         Cortex-A34.
5407         * config/aarch64/aarch64-tune.md: Regenerated.
5408         * doc/invoke.texi: Document the new processors.
5410 2019-09-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
5412         * config/aarch64/aarch64-option-extensions.def (sb): Add feature
5413         string.
5414         (ssbs): Likewise.
5415         (sve2): Likewise.
5416         (sve2-sm4): Likewise.
5417         (sveaes): Likewise.
5418         (svesha3): Likewise.
5419         (svebitperm): Likewise.
5421 2019-09-03  Jakub Jelinek  <jakub@redhat.com>
5422             Richard Biener  <rguenther@suse.de>
5424         PR tree-optimization/91597
5425         * tree-vrp.c (extract_range_from_binary_expr): Remove unsafe
5426         BIT_AND_EXPR optimization for pointers, even if both operand
5427         ranges don't include NULL, the result can be NULL.
5429 2019-09-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5431         PR middle-end/91605
5432         * expr.c (addr_expr_of_non_mem_decl_p_1): Refactor into...
5433         (non_mem_decl_p): ...this.
5434         (mem_ref_refers_to_non_mem_p): Handle DECL_P as well as MEM_REF.
5435         (expand_assignment): Call mem_ref_referes_to_non_mem_p
5436         unconditionally as before.
5438 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
5440         PR target/91323
5441         * doc/generic.texi (LTGT_EXPR): Merge with other comparison operators.
5442         * rtl.def (LTGT): Likewise.  Add note about floating-point exceptions.
5443         * tree.def (LTGT_EXPR): Likewise.
5444         * config/sparc/sparc.c (select_cc_mode): Return CCFPEmode for LTGT.
5446 2019-09-02  Jakub Jelinek  <jakub@redhat.com>
5448         PR go/91617
5449         * fold-const.c (range_check_type): For enumeral and boolean
5450         type, pass 1 to type_for_size langhook instead of
5451         TYPE_UNSIGNED (etype).  Return unsigned_type_for result whenever
5452         etype isn't TYPE_UNSIGNED INTEGER_TYPE.
5453         (build_range_check): Don't call unsigned_type_for for pointer types.
5454         * match.pd (X / C1 op C2): Don't call unsigned_type_for on
5455         range_check_type result.
5457 2019-09-02  Eric Botcazou  <ebotcazou@adacore.com>
5459         * gimple-ssa-strength-reduction.c (valid_mem_ref_cand_p): New function.
5460         (replace_ref): Do not replace a chain of only two candidates which are
5461         valid memory references.
5463 2019-09-02  Martin Liska  <mliska@suse.cz>
5465         * tree-switch-conversion.c (jump_table_cluster::find_jump_tables):
5466         Bail out when we'll end up with the same number of clusters as
5467         at the beginning.
5468         (bit_test_cluster::find_bit_tests): Likewise for bit tests.
5469         (jump_table_cluster::can_be_handled): Remove the guard
5470         as it's already handled in ::is_enabled.  Allocate output
5471         after early bail out.
5473 2019-09-02  Martin Liska  <mliska@suse.cz>
5475         PR gcov-profile/91601
5476         * gcov.c (path_contains_zero_cycle_arc): Rename to ...
5477         (path_contains_zero_or_negative_cycle_arc): ... this and handle
5478         also negative edges.
5479         (circuit): Handle also negative edges as they can happen
5480         in some situations.
5482 2019-09-01  Eric Botcazou  <ebotcazou@adacore.com>
5484         PR target/91472
5485         * config/sparc/sparc.c (sparc_cannot_force_const_mem): Return true
5486         during LRA/reload in PIC mode if the PIC register hasn't been used yet.
5487         (sparc_pic_register_p): Test reload_in_progress for consistency's sake.
5489 2019-09-01  Jakub Jelinek  <jakub@redhat.com>
5491         PR middle-end/91623
5492         * optabs.c (expand_vec_cond_expr): If op0 is a VECTOR_CST and only
5493         EQ_EXPR/NE_EXPR is supported, verify that op0 only contains
5494         zeros or negative elements and use NE_EXPR instead of LT_EXPR against
5495         zero vector.
5497         PR lto/91572
5498         * tree.c (find_decls_types_in_node): Also walk TREE_PURPOSE of
5499         GIMPLE_ASM TREE_LIST operands.
5501 2019-08-31  Gerald Pfeifer  <gerald@pfeifer.com>
5503         * doc/generic.texi (Unary and Binary Expressions): Mark up
5504         an instance of TYPE_MIN.
5506 2019-08-31  Stafford Horne  <shorne@gmail.com>
5508         * config/or1k/constraints.md (t): New constraint.
5509         * config/or1k/or1k.h (GOT_REGS): New register class.
5510         * config/or1k/or1k.md (set_got_tmp, set_got): Use t contraint.
5512 2019-08-30  Jim Wilson  <jimw@sifive.com>
5514         * config/riscv/riscv.c (riscv_option_override): If -msave-restore
5515         and -fpic and -mplt then disable -msave-restore and warn.
5517 2019-08-30  Martin Sebor  <msebor@redhat.com>
5519         PR middle-end/91599
5520         * tree-ssa-strlen.c (handle_store): Use a fallback location if
5521         the statement doesn't have one.
5522         * gimple-pretty-print.c (percent_G_format): Same.
5524         PR middle-end/91584
5525         * tree-vrp.c (vrp_prop::check_mem_ref): Normalize type domain bounds
5526         before using them to validate MEM_REF offset.
5528 2019-08-30  Marek Polacek  <polacek@redhat.com>
5530         * doc/invoke.texi (-Wvolatile): Use @code for volatile.
5532 2019-08-30  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5534         * config/arm/arm.md (unaligned_loaddi,
5535         unaligned_storedi): New unspec insn patterns.
5536         * config/arm/neon.md (unaligned_storev8qi): Likewise.
5537         * config/arm/arm.c (gen_cpymem_ldrd_strd): Use unaligned_loaddi
5538         and unaligned_storedi for 4-byte aligned memory.
5539         (arm_block_set_aligned_vect): Use unaligned_storev8qi for
5540         4-byte aligned memory.
5542 2019-08-30  Martin Jambor  <mjambor@suse.cz>
5544         tree-optimization/91579
5545         * tree-tailcall.c (tailr_arg_needs_copy): New variable.
5546         (find_tail_calls): Allocate tailr_arg_needs_copy and set its bits as
5547         appropriate.
5548         (arg_needs_copy_p): Removed.
5549         (eliminate_tail_call): Test tailr_arg_needs_copy instead of calling
5550         arg_needs_copy_p.
5551         (tree_optimize_tail_calls_1): Likewise.  Free tailr_arg_needs_copy.
5553 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5555         * config/i386/i386-features.c
5556         (general_scalar_chain::compute_convert_gain):
5557         Correct cost for double-word shifts.
5558         (general_scalar_to_vector_candidate_p): Reject count operands
5559         greater or equal to mode bitsize.
5561 2019-08-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5563         * config/i386/i386.c (inline_secondary_memory_needed): Return true
5564         for moves between SSE and non-general registers and between
5565         mask and non-general registers.
5566         (ix86_register_move_cost): Remove stalled comment.
5568 2019-08-29  Richard Biener  <rguenther@suse.de>
5570         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5571         Guard debug work with MAY_HAVE_DEBUG_BIND_INSNS.
5573 2019-08-29  Richard Biener  <rguenther@suse.de>
5575         PR bootstrap/91580
5576         * config/i386/i386-features.c (general_scalar_chain::convert_insn):
5577         Do not emit scalar copies for debug-insns, instead replace
5578         their uses with the reg copy used in the chain or reset them
5579         if there is a reaching definition outside of the chain as well.
5581 2019-08-29  Jakub Jelinek  <jakub@redhat.com>
5583         PR target/91560
5584         * config/i386/i386-expand.c (expand_vec_perm_movs,
5585         expand_vec_perm_blend, expand_vec_perm_vpermil,
5586         expand_vec_perm_pshufb, expand_vec_perm_1,
5587         expand_vec_perm_pshuflw_pshufhw, expand_vec_perm_palignr,
5588         expand_vec_perm_interleave2, expand_vec_perm_vpermq_perm_1,
5589         expand_vec_perm_vperm2f128, expand_vec_perm_interleave3,
5590         expand_vec_perm_vperm2f128_vblend, expand_vec_perm_2vperm2f128_vshuf,
5591         expand_vec_perm_even_odd, expand_vec_perm_broadcast): Adjust function
5592         comments - replace ix86_expand_vec_perm_builtin_1 with
5593         ix86_expand_vec_perm_const_1.
5594         (expand_vec_perm2_vperm2f128_vblend): New function.
5595         (ix86_expand_vec_perm_const_1): New forward declaration.  Call
5596         expand_vec_perm2_vperm2f128_vblend as last resort.
5597         (canonicalize_perm): Formatting fix.
5599         PR tree-optimization/91351
5600         * tree-cfg.c (generate_range_test): Use range_check_type instead of
5601         unsigned_type_for.
5602         * tree-cfgcleanup.c (convert_single_case_switch): Punt if
5603         range_check_type returns NULL.
5604         * tree-switch-conversion.c (switch_conversion::build_one_array):
5605         Use range_check_type instead of unsigned_type_for, don't perform
5606         linear opt if it returns NULL.
5607         (bit_test_cluster::find_bit_tests): Formatting fix.
5608         (bit_test_cluster::emit): Use range_check_type instead of
5609         unsigned_type_for.
5610         (switch_decision_tree::try_switch_expansion): Punt if range_check_type
5611         returns NULL.
5613 2019-08-29  Richard Biener  <rguenther@suse.de>
5615         PR tree-optimization/91568
5616         * tree-vectorizer.h (_slp_tree::max_nunits): Add.
5617         (vect_update_max_nunits): Add overload for poly_uint64.
5618         * tree-vect-slp.c (vect_create_new_slp_node): Initialize it.
5619         (vect_build_slp_tree): Record max_nunits into the subtree
5620         and merge it upwards.
5621         (vect_print_slp_tree): Print max_nunits.
5623 2019-08-28  Marek Polacek  <polacek@redhat.com>
5625         Implement P1152R4: Deprecating some uses of volatile.
5626         PR c++/91361
5627         * doc/invoke.texi: Document -Wvolatile.
5629 2019-08-28  Marek Polacek  <polacek@redhat.com>
5631         PR c++/91360 - Implement C++20 P1143R2: constinit.
5632         * doc/invoke.texi: Document -Wc++20-compat.
5634 2019-08-28  Martin Sebor  <msebor@redhat.com>
5636         PR tree-optimization/91457
5637         * builtins.c (component_size): New function.
5638         (compute_objsize): Add argument. Handle ARRAY_REF and COMPONENT_REF.
5639         * builtins.h (compute_objsize): Add argument.
5640         * tree-ssa-strlen.c (handle_store): Handle no-warning bit.
5641         * tree-vrp.c (vrp_prop::check_array_ref): Return warning result.
5642         (vrp_prop::check_mem_ref): Same.
5643         (vrp_prop::search_for_addr_array): Set no-warning bit.
5644         (check_array_bounds): Same.
5646 2019-08-28  Martin Sebor  <msebor@redhat.com>
5648         PR driver/80545
5649         * opts-common.c (option_enabled): Correct checking for language
5650         options.
5652 2019-08-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5654         * config/i386/i386.c (ix86_register_move_cost): Do not
5655         limit the cost of moves to/from XMM register to minimum 8.
5657 2019-08-28  Martin Jambor  <mjambor@suse.cz>
5659         PR ipa/91468
5660         * ipa-cp.c (merge_agg_lats_step): Removed redundant test, made a
5661         checking assert a normal assert to test it really is redundant.
5662         * ipa-prop.c (compute_complex_assign_jump_func): Removed
5663         redundant test.
5664         (update_jump_functions_after_inlining): Removed combining unary
5665         arithmetic operations with an ancestor jump function.
5666         (ipcp_modif_dom_walker::before_dom_children): Fix wrong use of rhs
5667         instead of t.
5669 2019-08-28  Richard Biener  <rguenther@suse.de>
5671         * config/i386/i386-features.c (convert_scalars_to_vector): Do not
5672         add the MD problem.
5674 2019-08-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
5675             Richard Biener  <rguenther@suse.de>
5677         * expr.c (expand_assignment): Handle misaligned DECLs.
5678         (expand_expr_real_1): Handle FUNCTION_DECL as unaligned.
5679         * function.c (assign_parm_adjust_stack_rtl): Check movmisalign optab
5680         too.
5681         (assign_parm_setup_stack): Allocate properly aligned stack slots.
5682         * varasm.c (build_constant_desc): Align constants of misaligned types.
5683         * config/arm/predicates.md (aligned_operand): New predicate.
5684         * config/arm/arm.md (movdi, movsi, movhi, movhf, movsf, movdf): Use
5685         aligned_operand to check restrictions on memory addresses.
5686         * config/arm/neon.md (movti, mov<VSTRUCT>, mov<VH>): Likewise.
5687         * config/arm/vec-common.md (mov<VALL>): Likewise.
5689 2019-08-28  Jakub Jelinek  <jakub@redhat.com>
5691         PR libgomp/91530
5692         * config/i386/sse.md (vec_shl_<mode>, vec_shr_<mode>): Use
5693         V_128 iterator instead of VI_128.
5695 2019-08-28  Martin Liska  <mliska@suse.cz>
5697         PR tree-optimization/90970
5698         * builtins.c (check_access): Remove assignment to maxread
5699         as it hasn't been used since when it was introduced in r255755.
5701 2019-08-27  Martin Sebor  <msebor@redhat.com>
5703         PR tree-optimization/91567
5704         * gimple-ssa-sprintf.c (get_string_length): Handle more forms of lengths
5705         of unknown strings.
5706         * vr-values.c (vr_values::extract_range_basic): Set strlen upper bound
5707         to PTRDIFF_MAX - 2.
5709 2019-08-27  Jeff Law  <law@redhat.com>
5711         * tree-ssa-strlen.c (printf_strlen_execute): Initialize
5712         the loop optimizer and SCEV before sizing ssa_ver_to_stridx.
5714 2019-08-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5716         PR target/91528
5717         * config/i386/i386-features.c (convert_scalars_to_vector):
5718         Update crtl->stack_realign_needed, crtl->stack_realign_tried and
5719         crtl->stack_realign_processed.  Update crtl->drap_reg by calling
5720         targetm.calls.get_drap_rtx.  If drap_rtx is non-null then
5721         Update crtl->args.internal_arg_pointer and call fixup_tail_calls.
5723 2019-08-27  Richard Biener  <rguenther@suse.de>
5725         * config/i386/i386-features.h
5726         (general_scalar_chain::~general_scalar_chain): Add.
5727         (general_scalar_chain::insns_conv): New bitmap.
5728         (general_scalar_chain::n_sse_to_integer): New.
5729         (general_scalar_chain::n_integer_to_sse): Likewise.
5730         (general_scalar_chain::make_vector_copies): Adjust signature.
5731         * config/i386/i386-features.c
5732         (general_scalar_chain::general_scalar_chain): Outline,
5733         initialize new members.
5734         (general_scalar_chain::~general_scalar_chain): New.
5735         (general_scalar_chain::mark_dual_mode_def): Record insns
5736         we need to insert conversions at and count them.
5737         (general_scalar_chain::compute_convert_gain): Account
5738         for conversion instructions at chain boundary.
5739         (general_scalar_chain::make_vector_copies): Generate a single
5740         copy for a def by a specific insn.
5741         (general_scalar_chain::convert_registers): First populate
5742         defs_map, then make copies at out-of chain insns.
5744 2019-08-27  Richard Earnshaw  <rearnsha@arm.com>
5746         * config/arm/arm.md (stack_protect_set_insn): Add security-related
5747         comment.
5748         * config/aarch64/aarch64.md (stack_protect_set_<mode>): Likewise.
5750 2019-08-27  Martin Liska  <mliska@suse.cz>
5752         * cgraph.c (cgraph_node::remove): Remove dead assignment before
5753         loop.
5754         * config/i386/i386-features.c (scalar_chain::emit_conversion_insns):
5755         Enclose in anonymous namespace.
5756         * config/i386/x86-tune-costs.h (struct processor_costs): Wrap
5757         hard_register initialization in braces.
5758         * tree-vrp.h (value_range_base::supports_type_p): Return false
5759         for function with boolean return type.
5761 2019-08-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
5763         * config/i386/i386.c (emit_i387_cw_initialization)
5764         <case I387_CW_ROUNDEVEN>: Fix masking operand value.
5766 2019-08-26  Martin Sebor  <msebor@redhat.com>
5768         PR c++/83431
5769         * gimple-ssa-sprintf.c (pass_data_sprintf_length): Remove object.
5770         (sprintf_dom_walker): Remove class.
5771         (get_int_range): Make argument const.
5772         (directive::fmtfunc, directive::set_precision): Same.
5773         (format_none): Same.
5774         (build_intmax_type_nodes): Same.
5775         (adjust_range_for_overflow): Same.
5776         (format_floating): Same.
5777         (format_character): Same.
5778         (format_string): Same.
5779         (format_plain): Same.
5780         (get_int_range): Cast away constness.
5781         (format_integer): Same.
5782         (get_string_length): Call get_range_strlen_dynamic.  Handle
5783         null lendata.maxbound.
5784         (should_warn_p): Adjust argument scope qualifier.
5785         (maybe_warn): Same.
5786         (format_directive): Same.
5787         (parse_directive): Same.
5788         (is_call_safe): Same.
5789         (try_substitute_return_value): Same.
5790         (sprintf_dom_walker::handle_printf_call): Rename...
5791         (handle_printf_call): ...to this.  Initialize target to host charmap
5792         here instead of in pass_sprintf_length::execute.
5793         (struct call_info): Make global.
5794         (sprintf_dom_walker::compute_format_length): Make global.
5795         (sprintf_dom_walker::handle_gimple_call): Same.
5796         * passes.def (pass_sprintf_length): Replace with pass_strlen.
5797         * print-rtl.c (print_pattern): Reduce the number of spaces to
5798         avoid -Wformat-truncation.
5799         * tree-pass.h (make_pass_warn_printf): New function.
5800         * tree-ssa-strlen.c (strlen_optimize): New variable.
5801         (get_string_length): Add comments.
5802         (get_range_strlen_dynamic): New function.
5803         (check_and_optimize_call): New function.
5804         (handle_integral_assign): New function.
5805         (strlen_check_and_optimize_stmt): Factor code out into
5806         strlen_check_and_optimize_call and handle_integral_assign.
5807         (strlen_dom_walker::evrp): New member.
5808         (strlen_dom_walker::before_dom_children): Use evrp member.
5809         (strlen_dom_walker::after_dom_children): Use evrp member.
5810         (printf_strlen_execute): New function.
5811         (pass_strlen::gate): Update to handle printf calls.
5812         (dump_strlen_info): New function.
5813         (pass_data_warn_printf): New variable.
5814         (pass_warn_printf): New class.
5815         * tree-ssa-strlen.h (get_range_strlen_dynamic): Declare.
5816         (handle_printf_call): Same.
5817         * tree-vrp.c (value_range_base::type): Adjust assertion.
5818         * vr-values.c (vr_values::update_value_range): Use type of the first
5819         argument rather than the second.
5821 2019-08-26  Richard Biener  <rguenther@suse.de>
5823         * config/i386/i386-features.c (general_remove_non_convertible_regs):
5824         Remove.
5825         (convert_scalars_to_vector): Do not call it.
5827 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
5828             Uros Bizjak  <ubizjak@gmail.com>
5830         * builtins.c (mathfn_built_in_2): Change CASE_MATHFN to
5831         CASE_MATHFN_FLOATN for roundeven.
5832         * config/i386/i386.c (ix86_i387_mode_needed): Add case
5833         I387_ROUNDEVEN.
5834         (ix86_mode_needed): Likewise.
5835         (ix86_mode_after): Likewise.
5836         (ix86_mode_entry): Likewise.
5837         (ix86_mode_exit): Likewise.
5838         (ix86_emit_mode_set): Likewise.
5839         (emit_i387_cw_initialization): Add case I387_CW_ROUNDEVEN.
5840         * config/i386/i386.h (ix86_stack_slot): Add SLOT_CW_ROUNDEVEN.
5841         (ix86_entity): Add I387_ROUNDEVEN.
5842         (NUM_MODES_FOR_MODE_SWITCHING): Add I387_CW_ANY.
5843         * config/i386/i386.md: Define UNSPEC_FRNDINT_ROUNDEVEN.
5844         (define_int_iterator): Likewise.
5845         (define_int_attr): Likewise for rounding_insn, rounding and ROUNDING.
5846         (define_constant): Define ROUND_ROUNDEVEN mode.
5847         (define_attr): Add roundeven mode for i387_cw.
5848         (<rouding_insn><mode>2): Add condition for ROUND_ROUNDEVEN.
5849         * internal-fn.def (ROUNDEVEN): New builtin function.
5850         * optabs.def (roundeven_optab): New optab.
5852 2019-08-26  Tejas Joshi  <tejasjoshi9673@gmail.com>
5854         * builtins.c (mathfn_built_in_2): Added CASE_MATHFN_FLOATN
5855         for ROUNDEVEN.
5856         * builtins.def: Added function definitions for roundeven function
5857         variants.
5858         * fold-const-call.c (fold_const_call_ss): Added case for roundeven
5859         function call.  Adjust condition for floor, ceil, trunc and round.
5860         * fold-const.c (negate_mathfn_p): Added case for roundeven function.
5861         (tree_call_nonnegative_warnv_p): Added case for roundeven function.
5862         (integer_valued_real_call_p): Added case for roundeven function.
5863         * real.c (is_even): New function. Returns true if real number is even,
5864         otherwise returns false.
5865         (is_halfway_below): New function. Returns true if real number is
5866         halfway between two integers, else return false.
5867         (real_roundeven): New function. Round real number to nearest integer,
5868         rounding halfway cases towards even.
5869         * real.h (real_value): Added descriptive comments.  Added function
5870         declaration for roundeven function.
5871         * doc/extend.texi (Other Builtins): List roundeven variants among
5872         functions which can be handled as builtins.
5874 2019-08-26  Richard Biener  <rguenther@suse.de>
5876         PR target/91522
5877         PR target/91527
5878         * config/i386/i386-features.h (general_scalar_chain::defs_map):
5879         New member.
5880         (general_scalar_chain::replace_with_subreg): Remove.
5881         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5882         (general_scalar_chain::convert_reg): Adjust signature.
5883         * config/i386/i386-features.c (scalar_chain::add_insn): Do not
5884         iterate over all defs of a reg.
5885         (general_scalar_chain::replace_with_subreg): Remove.
5886         (general_scalar_chain::replace_with_subreg_in_insn): Likewise.
5887         (general_scalar_chain::make_vector_copies): Populate defs_map,
5888         place copy only after defs that are used as vectors in the chain.
5889         (general_scalar_chain::convert_reg): Emit a copy for a specific
5890         def in a specific instruction.
5891         (general_scalar_chain::convert_op): All reg uses are converted here.
5892         (general_scalar_chain::convert_insn): Emit copies for scalar
5893         uses of defs here.  Replace uses with the copies we created.
5894         Replace and convert the def.  Adjust REG_DEAD notes, remove
5895         REG_EQUIV/EQUAL notes.
5896         (general_scalar_chain::convert_registers): Only handle copies
5897         into the chain here.
5899 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
5901         * match.pd: Add (T)(A) + CST -> (T)(A + CST).
5903 2019-08-26  Robin Dapp  <rdapp@linux.ibm.com>
5905         * gimple-loop-versioning.cc (loop_versioning::record_address_fragment):
5906         Add nop_convert case.
5907         * tree-ssa-propagate.c (substitute_and_fold_dom_walker::before_dom_children):
5908         Fold all statements if requested.
5909         * tree-ssa-propagate.h (class substitute_and_fold_engine):
5910         Allow to fold all statements.
5911         * tree-vrp.c (class vrp_folder):
5912         Let substitute_and_fold_engine fold all statements.
5914 2019-08-26  Richard Biener  <rguenther@suse.de>
5916         PR tree-optimization/91526
5917         * passes.def: Note that after late FRE we do TODO_update_address_taken.
5918         * tree-ssa-sccvn.c (pass_fre::execute): In late mode schedule
5919         TODO_update_address_taken.
5921 2019-08-26  Gerald Pfeifer  <gerald@pfeifer.com>
5923         * config/i386/gmm_malloc.h: Only use <errno.h> and errno if
5924         __STDC_HOSTED__.
5926 2019-08-23  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
5928         * config/mips/mips.md (mips_get_fcsr, *mips_get_fcsr): Use SI
5929         machine mode for unspec_volatile operand.
5931 2019-08-23  Wilco Dijkstra  <wdijkstr@arm.com>
5933         * gcc/doc/invoke.texi (mneon-for-64bits): Deprecate option.
5934         * gcc/config/arm/arm.opt (mneon-for-64bits): Deprecate option.
5935         * gcc/config/arm/arm.h (TARGET_PREFER_NEON_64BITS): Remove.
5936         (prefer_neon_for_64bits): Remove.
5937         * gcc/config/arm/arm.c (prefer_neon_for_64bits): Remove.
5938         (tune_params): Remove PREF_NEON_64_FALSE uses.
5939         (arm_option_override): Remove prefer_neon selection code.
5940         (arm_print_tune_info): Remove prefer_neon_for_64bits.
5941         * gcc/config/arm/arm-protos.h (tune_params): Remove
5942         prefer_neon_for_64bits.
5943         (prefer_neon_for_64bits): Remove.
5945 2019-08-23  Iain Sandoe  <iain@sandoe.co.uk>
5947         PR pch/61250
5948         * ggc-page.c (ggc_pch_read): Read the ggc_pch_ondisk structure
5949         and issue any diagnostics needed before collecting the pre-PCH
5950         state.
5952 2019-08-23  Jakub Jelinek  <jakub@redhat.com>
5954         PR middle-end/91283
5955         * common.opt (fexcess-precision=): Add Optimization flag.  Use
5956         flag_excess_precision variable instead of
5957         flag_excess_precision_cmdline.
5958         * flags.h (class target_flag_state): Remove x_flag_excess_precision
5959         member.
5960         (flag_excess_precision): Don't define.
5961         * langhooks.c (lhd_post_options): Set flag_excess_precision instead of
5962         flag_excess_precision_cmdline.  Remove comment.
5963         * opts.c (set_fast_math_flags): Use frontend_set_flag_excess_precision
5964         and x_flag_excess_precision instead of
5965         frontend_set_flag_excess_precision_cmdline and
5966         x_flag_excess_precision_cmdline.
5967         (fast_math_flags_set_p): Use x_flag_excess_precision instead of
5968         x_flag_excess_precision_cmdline.
5969         * toplev.c (init_excess_precision): Remove.
5970         (lang_dependent_init_target): Don't call it.
5972 2019-08-23  Martin Liska  <mliska@suse.cz>
5974         * lto-wrapper.c (run_gcc): When setting jobserver
5975         set also parallel to 1.  This was done so before r273908.
5977 2019-08-23  Dennis Zhang  <dennis.zhang@arm.com>
5979         * config/arm/arm-cpus.in (cortex-m35p): New entry.
5980         (cortex-a76ae): Likewise.
5981         (cortex-a77): Likewise
5982         * config/arm/arm-tables.opt: Regenerate.
5983         * config/arm/arm-tune.md: Likewise.
5984         * doc/invoke.texi (ARM Options): Document cortex-m35p, cortx-a76ae,
5985         cortex-a77 CPU options.
5987 2019-08-23  Martin Liska  <mliska@suse.cz>
5989         * profile.c (instrument_values): Do not set
5990         0 as last argument.
5991         * tree-profile.c (gimple_gen_interval_profiler): Remove
5992         last argument.
5993         (gimple_gen_pow2_profiler): Likewise.
5994         (gimple_gen_topn_values_profiler): Likewise.
5995         (gimple_gen_ic_profiler): Likewise.
5996         (gimple_gen_time_profiler): Likewise.
5997         (gimple_gen_average_profiler): Likewise.
5998         (gimple_gen_ior_profiler): Likewise.
5999         * value-prof.c (dump_histogram_value): Use default
6000         in switch statement instead of HIST_TYPE_MAX.
6001         (stream_in_histogram_value): Likewise.
6002         (gimple_duplicate_stmt_histograms): Do not
6003         use NULL for implicitly set arguments.
6004         (gimple_divmod_values_to_profile): Do not use
6005         reserve+quick_push.
6006         (gimple_indirect_call_to_profile): Likewise.
6007         (gimple_find_values_to_profile): Use implicit
6008         function call arguments.
6009         * value-prof.h (gimple_alloc_histogram_value):
6010         Set default values.
6011         (gimple_gen_interval_profiler): Remove last argument.
6012         (gimple_gen_pow2_profiler): Likewise.
6013         (gimple_gen_topn_values_profiler): Likewise.
6014         (gimple_gen_ic_profiler): Likewise.
6015         (gimple_gen_time_profiler): Likewise.
6016         (gimple_gen_average_profiler): Likewise.
6017         (gimple_gen_ior_profiler): Likewise.
6019 2019-08-22  Martin Sebor  <msebor@redhat.com>
6021         PR middle-end/91490
6022         * builtins.c (c_strlen): Rename argument and introduce new local.
6023         Set no-warning bit on original argument.
6024         * expr.c (string_constant): Pass argument type to fold_ctor_reference.
6025         Fold empty and zero constructors into empty strings.
6026         * gimple-fold.c (fold_nonarray_ctor_reference): Return a STRING_CST
6027         for missing initializers.
6028         * tree.c (build_string_literal): Handle optional argument.
6029         * tree.h (build_string_literal): Add defaulted argument.
6030         * gimple-ssa-warn-restrict.c (maybe_diag_access_bounds): Check
6031         no-warning bit on original expression.
6033 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
6035         PR target/91481
6036         * config/rs6000/rs6000.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6037         and UNSPEC_DARN_RAW.
6038         (unspecv): New enumerator values UNSPECV_DARN, UNSPECV_DARN_32, and
6039         UNSPECV_DARN_RAW.
6040         (darn_32): Use an unspec_volatile, and UNSPECV_DARN_32.
6041         (darn_raw): Use an unspec_volatile, and UNSPECV_DARN_RAW.
6042         (darn): Use an unspec_volatile, and UNSPECV_DARN.
6044 2019-08-22  Segher Boessenkool  <segher@kernel.crashing.org>
6046         * config/rs6000/altivec.md (unspec): Delete UNSPEC_DARN, UNSPEC_DARN_32,
6047         UNSPEC_DARN_RAW, UNSPEC_CMPRB, UNSPEC_CMPRB2, UNSPEC_CMPEQB; move to...
6048         * config/rs6000/rs6000.md (unspec): ... here.
6049         * config/rs6000/altivec.md (darn_32, darn_raw, darn, cmprb,
6050         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6051         cmpeqb, *cmpeqb_internal): Delete, move to...
6052         * config/rs6000/rs6000.md (darn_32, darn_raw, darn, cmprb,
6053         *cmprb_internal, setb_signed, setb_unsigned, cmprb2, *cmprb2_internal,
6054         cmpeqb, *cmpeqb_internal): ... here.
6056 2019-08-22  Kyrylo Tkachov <kyrylo.tkachov@arm.com>
6058         * config/arm/arm_acle.h: Use arch=armv8-a+crc+simd pragma for CRC32
6059         intrinsics if __ARM_FP.
6060         Use __ARM_FEATURE_CRC32 ifdef guard.
6062 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
6064         * config/arm/arm.md (neon_for_64bits): Remove.
6065         (avoid_neon_for_64bits): Remove.
6066         (arm_adddi3): Always split early.
6067         (arm_subdi3): Always split early.
6068         (negdi2): Remove Neon expansion.
6069         (split zero_extend): Split before reload.
6070         (split sign_extend): Split before reload.
6072 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
6074         * config/arm/iterators.md (qhs_extenddi_cstr): Update.
6075         (qhs_extenddi_cstr): Likewise.
6076         * config/arm/arm.md (ashldi3): Always expand early.
6077         (ashlsi3): Likewise.
6078         (ashrsi3): Likewise.
6079         (zero_extend<mode>di2): Remove Neon variants.
6080         (extend<mode>di2): Likewise.
6081         * config/arm/neon.md (ashldi3_neon_noclobber): Remove.
6082         (signed_shift_di3_neon): Likewise.
6083         (unsigned_shift_di3_neon): Likewise.
6084         (ashrdi3_neon_imm_noclobber): Likewise.
6085         (lshrdi3_neon_imm_noclobber): Likewise.
6086         (<shift>di3_neon): Likewise.
6087         (split extend): Remove DI extend split patterns.
6089 2019-08-22  Wilco Dijkstra  <wdijkstr@arm.com>
6091         * config/arm/arm.md (split and/eor/ior): Remove Neon check.
6092         (split not): Add DImode not splitter.
6093         (anddi3): Remove pattern.
6094         (anddi3_insn): Likewise.
6095         (anddi_zesidi_di): Likewise.
6096         (anddi_sesdi_di): Likewise.
6097         (anddi_notdi_di): Likewise.
6098         (anddi_notzesidi_di): Likewise.
6099         (anddi_notsesidi_di): Likewise.
6100         (iordi3): Likewise.
6101         (iordi3_insn): Likewise.
6102         (iordi_zesidi_di): Likewise.
6103         (iordi_sesidi_di): Likewise.
6104         (xordi3): Likewise.
6105         (xordi3_insn): Likewise.
6106         (xordi_sesidi_di): Likewise.
6107         (xordi_zesidi_di): Likewise.
6108         (one_cmpldi2): Likewise.
6109         (one_cmpldi2_insn): Likewise.
6110         * config/arm/constraints.md: Remove De, Df, Dg constraints.
6111         * config/arm/iwmmxt.md (iwmmxt_iordi3): Remove general register
6112         alternative.
6113         (iwmmxt_xordi3): Likewise.
6114         (iwmmxt_anddi3): Likewise.
6115         * config/arm/neon.md (orndi3_neon): Remove pattern.
6116         (anddi_notdi_di): Likewise.
6117         * config/arm/predicates.md (arm_anddi_operand_neon): Remove.
6118         (arm_iordi_operand_neon): Likewise.
6119         (arm_xordi_operand_neon): Likewise.
6120         * config/arm/thumb2.md(iordi_notdi_di): Remove pattern.
6121         (iordi_notzesidi_di): Likewise.
6122         (iordi_notdi_zesidi): Likewise.
6123         (iordi_notsesidi_di): Likewise.
6125 2019-08-22  Richard Earnshaw  <rearnsha@arm.com>
6127         * config/arm/arm.md (iorsi3_compare0): Add alternative for 16-bit thumb
6128         insn.
6129         (iorsi3_compare0_scratch): Likewise.
6131 2019-08-22  Sylvia Taylor  <sylvia.taylor@arm.com>
6133         * config/aarch64/aarch64-simd-builtins.def:
6134         (ld1x4): New.
6135         (st1x4): Likewise.
6136         * config/aarch64/aarch64-simd.md:
6137         (aarch64_ld1x4<VALLDIF:mode>): New pattern.
6138         (aarch64_st1x4<VALLDIF:mode>): Likewise.
6139         (aarch64_ld1_x4_<mode>): Likewise.
6140         (aarch64_st1_x4_<mode>): Likewise.
6141         * config/aarch64/arm_neon.h:
6142         (vld1_s8_x4): New function.
6143         (vld1q_s8_x4): Likewise.
6144         (vld1_s16_x4): Likewise.
6145         (vld1q_s16_x4): Likewise.
6146         (vld1_s32_x4): Likewise.
6147         (vld1q_s32_x4): Likewise.
6148         (vld1_u8_x4): Likewise.
6149         (vld1q_u8_x4): Likewise.
6150         (vld1_u16_x4): Likewise.
6151         (vld1q_u16_x4): Likewise.
6152         (vld1_u32_x4): Likewise.
6153         (vld1q_u32_x4): Likewise.
6154         (vld1_f16_x4): Likewise.
6155         (vld1q_f16_x4): Likewise.
6156         (vld1_f32_x4): Likewise.
6157         (vld1q_f32_x4): Likewise.
6158         (vld1_p8_x4): Likewise.
6159         (vld1q_p8_x4): Likewise.
6160         (vld1_p16_x4): Likewise.
6161         (vld1q_p16_x4): Likewise.
6162         (vld1_s64_x4): Likewise.
6163         (vld1_u64_x4): Likewise.
6164         (vld1_p64_x4): Likewise.
6165         (vld1q_s64_x4): Likewise.
6166         (vld1q_u64_x4): Likewise.
6167         (vld1q_p64_x4): Likewise.
6168         (vld1_f64_x4): Likewise.
6169         (vld1q_f64_x4): Likewise.
6170         (vst1_s8_x4): Likewise.
6171         (vst1q_s8_x4): Likewise.
6172         (vst1_s16_x4): Likewise.
6173         (vst1q_s16_x4): Likewise.
6174         (vst1_s32_x4): Likewise.
6175         (vst1q_s32_x4): Likewise.
6176         (vst1_u8_x4): Likewise.
6177         (vst1q_u8_x4): Likewise.
6178         (vst1_u16_x4): Likewise.
6179         (vst1q_u16_x4): Likewise.
6180         (vst1_u32_x4): Likewise.
6181         (vst1q_u32_x4): Likewise.
6182         (vst1_f16_x4): Likewise.
6183         (vst1q_f16_x4): Likewise.
6184         (vst1_f32_x4): Likewise.
6185         (vst1q_f32_x4): Likewise.
6186         (vst1_p8_x4): Likewise.
6187         (vst1q_p8_x4): Likewise.
6188         (vst1_p16_x4): Likewise.
6189         (vst1q_p16_x4): Likewise.
6190         (vst1_s64_x4): Likewise.
6191         (vst1_u64_x4): Likewise.
6192         (vst1_p64_x4): Likewise.
6193         (vst1q_s64_x4): Likewise.
6194         (vst1q_u64_x4): Likewise.
6195         (vst1q_p64_x4): Likewise.
6196         (vst1_f64_x4): Likewise.
6197         (vst1q_f64_x4): Likewise.
6199 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6201         * config/aarch64/aarch64-sve.md (vcond_mask): Add "@".
6203 2019-08-22  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6204             Richard Sandiford  <richard.sandiford@arm.com>
6206         PR target/88839
6207         * config/aarch64/aarch64.c (aarch64_evpc_sel): New function.
6208         (aarch64_expand_vec_perm_const_1): Call aarch64_evpc_sel.
6210 2019-08-21  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
6212         PR target/90724
6213         * config/aarch64/aarch64.c (aarch64_gen_compare_reg_maybe_ze): Force y
6214         in reg if it fails aarch64_plus_operand predicate.
6216 2019-08-21  Richard Biener  <rguenther@suse.de>
6218         PR tree-optimization/91482
6219         * tree-ssa-ccp.c (ccp_folder::fold_stmt): Remove useless
6220         BUILT_IN_ASSUME_ALIGNED calls.
6222 2019-08-21  Richard Biener  <rguenther@suse.de>
6224         PR target/91498
6225         PR target/91503
6226         * config/i386/i386-features.c
6227         (general_scalar_chain::make_vector_copies): Copy stack temporary
6228         rtx when using it multiple times.
6229         (general_scalar_chain::convert_reg): Likewise.
6231 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6233         * function.c (assign_parm_find_stack_rtl): Use known_eq instead of ==.
6235 2019-08-20  Matthew Beliveau  <mbelivea@redhat.com>
6237         * tree-ssa-dse.c (dse_optimize_redundant_stores): Improved check to
6238         catch more redundant zero initialization cases.
6239         (dse_dom_walker::dse_optimize_stmt): Likewise.
6241 2019-08-20  Richard Biener  <rguenther@suse.de>
6243         PR lto/91307
6244         * ipa.c (cgraph_build_static_cdtor_1): Use names not recognizable
6245         by collect2 when targetm.have_ctors_dtors which avoids dragging
6246         in temporary filenames from LTO input objects.
6248 2019-08-20  Richard Biener  <rguenther@suse.de>
6250         PR tree-optimization/37242
6251         * tree-ssa-sccvn.c (visit_nary_op): Also CSE (T)(a + b)
6252         to (T)a + (T)b if we know that a + b does not overflow.
6254 2019-08-20  Eric Botcazou  <ebotcazou@adacore.com>
6256         PR rtl-optimization/91347
6257         * dse.c (scan_insn): Call add_wild_read for non-const/memset tail calls
6258         before reload if HARD_FRAME_POINTER_IS_ARG_POINTER.
6260 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6262         * calls.h (function_arg_info): Add a pass_by_reference field,
6263         defaulting to false.
6264         * calls.c (apply_pass_by_reference_rules): Set pass_by_reference
6265         when applying pass-by-reference semantics.
6266         (initialize_argument_information): Likewise.
6267         (emit_library_call_value_1): Likewise.
6268         * function.c (assign_parm_data_one): Remove passed_pointer field.
6269         (assign_parm_find_data_types): Don't set it.
6270         (assign_parm_find_stack_rtl, assign_parm_adjust_stack_rtl)
6271         (assign_parm_setup_reg, assign_parms, gimplify_parameters): Use
6272         arg.pass_by_reference instead of passed_pointer.
6274 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6276         * calls.c (emit_library_call_value_1): Merge arg and orig_arg
6277         into a single function_arg_info, updating its fields when we
6278         apply pass-by-reference and promotion semantics.  Use the
6279         function_arg_info to track the mode rather than keeping it in
6280         a separate local variable.
6281         (initialize_argument_information): Likewise.  Base the final
6282         arg_to_skip on this new function_arg_info rather than creating
6283         a new one from scratch.
6285 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6287         * function.c (assign_parm_data_one): Replace passed_type,
6288         promoted_mode and named_arg with a function_arg_info field.
6289         (assign_parm_find_data_types): Remove local variables and
6290         assign directly to "data".  Make data->passed_mode shadow
6291         data->arg.mode until promotion, then assign the promoted
6292         mode to data->arg.mode.
6293         (assign_parms_setup_varargs, assign_parm_find_entry_rtl)
6294         (assign_parm_find_stack_rtl, assign_parm_adjust_entry_rtl)
6295         (assign_parm_remove_parallels, assign_parm_setup_block_p)
6296         (assign_parm_setup_block, assign_parm_setup_reg)
6297         (assign_parm_setup_stack, assign_parms, gimplify_parameters): Use
6298         arg.mode instead of promoted_mode, arg.type instead of passed_type
6299         and arg.named instead of named_arg.  Use data->arg for
6300         function_arg_info structures that had the field values passed_type,
6301         promoted_mode and named_arg.  Base other function_arg_infos on
6302         data->arg, changing the necessary properties.
6304 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6306         * calls.h (apply_pass_by_reference_rules): Declare.
6307         * calls.c (apply_pass_by_reference_rules): New function.
6308         * config/c6x/c6x.c (c6x_call_saved_register_used): Use it.
6309         * config/rs6000/rs6000-call.c (rs6000_parm_needs_stack): Likewise.
6310         * config/s390/s390.c (s390_call_saved_register_used): Likewise.
6311         * function.c (assign_parm_find_data_types): Likewise.
6312         * var-tracking.c (prepare_call_arguments): Likewise.
6314 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6316         * target.def (must_pass_in_stack): Take a function_arg_info instead
6317         of a mode and a type.
6318         * doc/tm.texi: Regenerate.
6319         * calls.h (must_pass_in_stack_var_size): Take a function_arg_info
6320         instead of a mode and a type.
6321         (must_pass_in_stack_var_size_or_pad): Likewise.
6322         * calls.c (must_pass_in_stack_var_size): Likewise.
6323         (must_pass_in_stack_var_size_or_pad): Likewise.
6324         (initialize_argument_information): Update call to
6325         targetm.calls.must_pass_in_stack.
6326         (must_pass_va_arg_on_stack): Likewise.
6327         * function.c (assign_parm_find_entry_rtl): Likewise.
6328         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Likewise.
6329         * config/alpha/alpha.c (alpha_function_arg): Likewise.
6330         (alpha_function_arg_advance): Likewise.
6331         * config/cr16/cr16.c (cr16_function_arg): Likewise.
6332         (cr16_function_arg_advance): Likewise.
6333         * config/cris/cris.c (cris_pass_by_reference): Likewise.
6334         (cris_arg_partial_bytes): Likewise.
6335         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6336         * config/lm32/lm32.c (lm32_function_arg): Likewise.
6337         * config/mcore/mcore.c (mcore_num_arg_regs): Likewise.
6338         (mcore_function_arg, mcore_arg_partial_bytes): Likewise.
6339         * config/mips/mips.c (mips_pass_by_reference): Likewise.
6340         * config/mmix/mmix.c (mmix_function_arg_advance): Likewise.
6341         (mmix_function_arg_1, mmix_pass_by_reference): Likewise.
6342         * config/sh/sh.c (sh_pass_by_reference): Likewise.
6343         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6344         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Likewise.
6345         * config/arm/arm.c (arm_must_pass_in_stack): Take a function_arg_info
6346         instead of a mode and a type.
6347         * config/fr30/fr30.c (fr30_must_pass_in_stack): Likewise.
6348         (fr30_num_arg_regs): Likewise.
6349         (fr30_setup_incoming_varargs): Update calls accordingly.
6350         (fr30_arg_partial_bytes, fr30_function_arg): Likewise.
6351         (fr30_function_arg_advance): Likewise.
6352         * config/frv/frv.c (frv_must_pass_in_stack): Take a function_arg_info
6353         instead of a mode and a type.
6354         * config/gcn/gcn.c (num_arg_regs): Likewise.
6355         (gcn_function_arg, gcn_function_arg_advance): Update calls to
6356         num_arg_regs and targetm.calls.must_pass_in_stack.
6357         (gcn_arg_partial_bytes): Likewise.
6358         * config/i386/i386.c (ix86_must_pass_in_stack): Take a
6359         function_arg_info instead of a mode and a type.
6360         (classify_argument): Update call accordingly.
6361         * config/nds32/nds32.c (nds32_must_pass_in_stack): Take a
6362         function_arg_info instead of a mode and a type.
6363         * config/rs6000/rs6000-internal.h (rs6000_must_pass_in_stack):
6364         Likewise.
6365         * config/rs6000/rs6000-call.c (rs6000_must_pass_in_stack): Likewise.
6366         (rs6000_parm_needs_stack): Update call accordingly.
6367         (setup_incoming_varargs): Likewise.
6369 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6371         * target.def (callee_copies): Take a function_arg_info instead
6372         of a mode, type and named flag.
6373         * doc/tm.texi: Regenerate.
6374         * targhooks.h (hook_callee_copies_named): Take a function_arg_info
6375         instead of a mode, type and named flag.
6376         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6377         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6378         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6379         * targhooks.c (hook_callee_copies_named): Take a function_arg_info
6380         instead of a mode, type and named flag.
6381         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false): Delete.
6382         (hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true): Likewise.
6383         (hook_bool_CUMULATIVE_ARGS_arg_info_true): New function.
6384         * calls.h (reference_callee_copied): Take a function_arg_info
6385         instead of a mode, type and named flag.
6386         * calls.c (reference_callee_copied): Likewise.
6387         (initialize_argument_information): Update call accordingly.
6388         (emit_library_call_value_1): Likewise.
6389         * function.c (gimplify_parameters): Likewise.
6390         * config/aarch64/aarch64.c (TARGET_CALLEE_COPIES): Define to
6391         hook_bool_CUMULATIVE_ARGS_arg_info_false instead of
6392         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_false.
6393         * config/c6x/c6x.c (c6x_callee_copies): Delete.
6394         (TARGET_CALLEE_COPIES): Define to
6395         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6396         * config/epiphany/epiphany.c (TARGET_CALLEE_COPIES): Define to
6397         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6398         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6399         * config/mips/mips.c (mips_callee_copies): Take a function_arg_info
6400         instead of a mode, type and named flag.
6401         * config/mmix/mmix.c (TARGET_CALLEE_COPIES): Define to
6402         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6403         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6404         * config/mn10300/mn10300.c (TARGET_CALLEE_COPIES): Likewise.
6405         * config/msp430/msp430.c (msp430_callee_copies): Delete.
6406         (TARGET_CALLEE_COPIES): Define to
6407         hook_bool_CUMULATIVE_ARGS_arg_info_true instead.
6408         * config/pa/pa.c (pa_callee_copies): Take a function_arg_info
6409         instead of a mode, type and named flag.
6410         * config/sh/sh.c (sh_callee_copies): Likewise.
6411         * config/v850/v850.c (TARGET_CALLEE_COPIES): Define to
6412         hook_bool_CUMULATIVE_ARGS_arg_info_true instead of
6413         hook_bool_CUMULATIVE_ARGS_mode_tree_bool_true.
6415 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6417         * target.def (function_arg_advance): Take a function_arg_info instead
6418         of a mode, type and named flag.
6419         * doc/tm.texi: Regenerate.
6420         * targhooks.h (default_function_arg_advance): Take a function_arg_info
6421         instead of a mode, type and named flag.
6422         * targhooks.c (default_function_arg_advance): Likewise.
6423         * calls.c (initialize_argument_information): Update call to
6424         targetm.calls.function_arg_advance.
6425         (emit_library_call_value_1): Likewise.
6426         * dse.c (get_call_args): Likewise.
6427         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6428         * function.c (assign_parms, gimplify_parameters): Likewise.
6429         * var-tracking.c (prepare_call_arguments): Likewise.
6430         * config/aarch64/aarch64.c (aarch64_function_arg_advance): Take a
6431         function_arg_info instead of a mode, type and named flag.
6432         (aarch64_setup_incoming_varargs): Update call accordingly.
6433         * config/alpha/alpha.c (alpha_function_arg_advance): Take a
6434         function_arg_info instead of a mode, type and named flag.
6435         (alpha_setup_incoming_varargs): Update call accordingly.
6436         * config/arc/arc.c (arc_function_arg_advance): Take a
6437         function_arg_info instead of a mode, type and named flag.
6438         (arc_setup_incoming_varargs): Update call accordingly.
6439         * config/arm/arm.c (arm_function_arg_advance): Take a
6440         function_arg_info instead of a mode, type and named flag.
6441         (cmse_func_args_or_return_in_stack): Update call accordingly.
6442         (arm_function_ok_for_sibcall): Likewise.
6443         (cmse_nonsecure_call_clear_caller_saved): Likewise.
6444         * config/avr/avr.c (avr_function_arg_advance): Take a
6445         function_arg_info instead of a mode, type and named flag.
6446         * config/bfin/bfin.c (bfin_function_arg_advance): Likewise.
6447         * config/c6x/c6x.c (c6x_function_arg_advance): Likewise.
6448         (c6x_call_saved_register_used): Update call accordingly.
6449         * config/cr16/cr16.c (cr16_function_arg_advance): Take a
6450         function_arg_info instead of a mode, type and named flag.
6451         * config/cris/cris.c (cris_function_arg_advance): Likewise.
6452         * config/csky/csky.c (csky_function_arg_advance): Likewise.
6453         (csky_setup_incoming_varargs): Update call accordingly.
6454         * config/epiphany/epiphany.c (epiphany_function_arg_advance): Take a
6455         function_arg_info instead of a mode, type and named flag.
6456         * config/fr30/fr30.c (fr30_function_arg_advance): Likewise.
6457         * config/frv/frv.c (frv_function_arg_advance): Likewise.
6458         * config/ft32/ft32.c (ft32_function_arg_advance): Likewise.
6459         * config/gcn/gcn.c (gcn_function_arg_advance): Likewise.
6460         * config/h8300/h8300.c (h8300_function_arg_advance): Likewise.
6461         * config/i386/i386.c (ix86_function_arg_advance): Likewise.
6462         (ix86_setup_incoming_varargs): Update call accordingly.
6463         * config/ia64/ia64.c (ia64_function_arg_advance): Take a
6464         function_arg_info instead of a mode, type and named flag.
6465         (ia64_setup_incoming_varargs): Update call accordingly.
6466         * config/iq2000/iq2000.c (iq2000_function_arg_advance): Take a
6467         function_arg_info instead of a mode, type and named flag.
6468         (iq2000_expand_prologue): Update call accordingly.
6469         * config/lm32/lm32.c (lm32_function_arg_advance): Take a
6470         function_arg_info instead of a mode, type and named flag.
6471         * config/m32c/m32c.c (m32c_function_arg_advance): Likewise.
6472         * config/m32r/m32r.c (m32r_function_arg_advance): Likewise.
6473         * config/m68k/m68k.c (m68k_function_arg_advance): Likewise.
6474         * config/mcore/mcore.c (mcore_function_arg_advance): Likewise.
6475         * config/microblaze/microblaze.c (microblaze_function_arg_advance):
6476         Likewise.
6477         (microblaze_expand_prologue): Update call accordingly.
6478         * config/mips/mips.c (mips_function_arg_advance): Take a
6479         function_arg_info instead of a mode, type and named flag.
6480         (mips_setup_incoming_varargs): Update call accordingly.
6481         (mips_output_args_xfer): Likewise.
6482         * config/mmix/mmix.c (mmix_function_arg_advance): Take a
6483         function_arg_info instead of a mode, type and named flag.
6484         * config/mn10300/mn10300.c (mn10300_function_arg_advance): Likewise.
6485         * config/moxie/moxie.c (moxie_function_arg_advance): Likewise.
6486         * config/msp430/msp430.c (msp430_function_arg_advance): Likewise.
6487         * config/nds32/nds32.c (nds32_function_arg_advance): Likewise.
6488         * config/nios2/nios2.c (nios2_function_arg_advance): Likewise.
6489         (nios2_setup_incoming_varargs): Update call accordingly.
6490         * config/nvptx/nvptx.c (nvptx_function_arg_advance): Take a
6491         function_arg_info instead of a mode, type and named flag.
6492         * config/or1k/or1k.c (or1k_function_arg_advance): Likewise.
6493         * config/pa/pa.c (pa_function_arg_advance): Likewise.
6494         * config/pdp11/pdp11.c (pdp11_function_arg_advance): Likewise.
6495         * config/pru/pru.c (pru_function_arg_advance): Likewise.
6496         * config/riscv/riscv.c (riscv_function_arg_advance): Likewise.
6497         (riscv_setup_incoming_varargs): Update call accordingly.
6498         * config/rl78/rl78.c (rl78_function_arg_advance): Take a
6499         function_arg_info instead of a mode, type and named flag.
6500         * config/rs6000/rs6000-internal.h (rs6000_function_arg_advance):
6501         Likewise.
6502         * config/rs6000/rs6000-call.c (rs6000_function_arg_advance): Likewise.
6503         (rs6000_parm_needs_stack): Update call accordingly.
6504         * config/rx/rx.c (rx_function_arg_advance): Take a function_arg_info
6505         instead of a mode, type and named flag.
6506         * config/s390/s390.c (s390_function_arg_advance): Likewise.
6507         (s390_call_saved_register_used): Update call accordingly.
6508         * config/sh/sh.c (sh_function_arg_advance): Take a function_arg_info
6509         instead of a mode, type and named flag.
6510         (sh_output_mi_thunk): Update call accordingly.
6511         * config/sparc/sparc.c (sparc_function_arg_advance): Take a
6512         function_arg_info instead of a mode, type and named flag.
6513         * config/spu/spu.c (spu_function_arg_advance): Likewise.
6514         (spu_setup_incoming_varargs): Update call accordingly.
6515         * config/stormy16/stormy16.c (xstormy16_function_arg_advance): Take a
6516         function_arg_info instead of a mode, type and named flag.
6517         * config/tilegx/tilegx.c (tilegx_function_arg_advance): Likewise.
6518         (tilegx_setup_incoming_varargs): Update call accordingly.
6519         * config/tilepro/tilepro.c (tilepro_function_arg_advance): Take a
6520         function_arg_info instead of a mode, type and named flag.
6521         (tilegx_setup_incoming_varargs): Update call accordingly.
6522         * config/v850/v850.c (v850_function_arg_advance): Take a
6523         function_arg_info instead of a mode, type and named flag.
6524         * config/vax/vax.c (vax_function_arg_advance): Likewise.
6525         * config/visium/visium.c (visium_function_arg_advance): Likewise.
6526         (visium_setup_incoming_varargs): Update call accordingly.
6527         * config/xtensa/xtensa.c (xtensa_function_arg_advance): Take a
6528         function_arg_info instead of a mode, type and named flag.
6530 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6532         * target.def (function_arg, function_incoming_arg): Take a
6533         function_arg_info instead of a mode, tree and named flag.
6534         * doc/tm.texi: Regenerate.
6535         * targhooks.h (default_function_arg): Take a function_arg_info
6536         instead of a mode, tree and named flag.
6537         (default_function_incoming_arg): Likewise.
6538         * targhooks.c (default_function_arg): Likewise.
6539         (default_function_incoming_arg): Likewise.
6540         * calls.h (function_arg_info::end_marker_p): New function.
6541         (function_arg_info::end_marker): Likewise.
6542         * calls.c (prepare_call_address, initialize_argument_information)
6543         (expand_call, emit_library_call_value_1): Update calls to
6544         targetm.calls.function_arg and targetm.calls.function_incoming_arg.
6545         * dse.c: Include calls.h.
6546         (get_call_args): Update call to targetm.calls.function_arg.
6547         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6548         * var-tracking.c (prepare_call_arguments): Likewise.
6549         * function.c (assign_parm_find_entry_rtl): Update call to
6550         targetm.calls.function_incoming_arg.
6551         * config/aarch64/aarch64.c (aarch64_function_arg): Take a
6552         function_arg_info instead of a mode, tree and named flag.
6553         * config/alpha/alpha.c (alpha_function_arg): Likewise.
6554         * config/arc/arc.c (arc_function_arg): Likewise.
6555         * config/arm/arm.c (arm_function_arg): Likewise.
6556         (cmse_func_args_or_return_in_stack): Update call accordingly.
6557         (arm_function_ok_for_sibcall): Likewise.
6558         (cmse_nonsecure_call_clear_caller_saved): Likewise.
6559         * config/avr/avr.c (avr_function_arg): Take a function_arg_info
6560         instead of a mode, tree and named flag.
6561         * config/bfin/bfin.c (bfin_function_arg): Likewise.
6562         * config/c6x/c6x.c (c6x_function_arg): Likewise.
6563         (c6x_call_saved_register_used): Update call accordingly.
6564         * config/cr16/cr16.c (cr16_function_arg): Take a function_arg_info
6565         instead of a mode, tree and named flag.
6566         * config/cris/cris.c (cris_function_arg, cris_function_incoming_arg)
6567         (cris_function_arg_1): Likewise.
6568         * config/csky/csky.c (csky_function_arg): Likewise.
6569         * config/epiphany/epiphany.c (epiphany_function_arg): Likewise.
6570         * config/fr30/fr30.c (fr30_function_arg): Likewise.
6571         * config/frv/frv.c (frv_function_arg, frv_function_incoming_arg)
6572         (frv_function_arg_1): Likewise.
6573         * config/ft32/ft32.c (ft32_function_arg): Likewise.
6574         * config/gcn/gcn.c (gcn_function_arg): Likewise.
6575         * config/h8300/h8300.c (h8300_function_arg): Likewise.
6576         * config/i386/i386.c (ix86_function_arg): Likewise.
6577         * config/ia64/ia64.c (ia64_function_arg, ia64_function_incoming_arg)
6578         (ia64_function_arg_1): Likewise.
6579         * config/iq2000/iq2000.c (iq2000_function_arg): Likewise.
6580         (iq2000_expand_prologue, iq2000_pass_by_reference): Update call
6581         accordingly.
6582         * config/lm32/lm32.c (lm32_function_arg): Take a function_arg_info
6583         instead of a mode, tree and named flag.
6584         * config/m32c/m32c.c (m32c_function_arg): Likewise.
6585         * config/m32r/m32r.c (m32r_function_arg): Likewise.
6586         * config/m68k/m68k.c (m68k_function_arg): Likewise.
6587         * config/mcore/mcore.c (mcore_function_arg): Likewise.
6588         * config/microblaze/microblaze.c (microblaze_function_arg): Likewise.
6589         (microblaze_expand_prologue): Update call accordingly.
6590         * config/mips/mips.c (mips_function_arg): Take a function_arg_info
6591         instead of a mode, tree and named flag.
6592         * config/mmix/mmix.c (mmix_function_incoming_arg, mmix_function_arg)
6593         (mmix_function_arg_1): Likewise.
6594         * config/mn10300/mn10300.c (mn10300_function_arg): Likewise.
6595         * config/moxie/moxie.c (moxie_function_arg): Likewise.
6596         * config/msp430/msp430.c (msp430_function_arg): Likewise.
6597         * config/nds32/nds32.c (nds32_function_arg): Likewise.
6598         * config/nios2/nios2.c (nios2_function_arg): Likewise.
6599         * config/nvptx/nvptx.c (nvptx_function_arg): Likewise.
6600         (nvptx_function_incoming_arg): Likewise.
6601         * config/or1k/or1k.c (or1k_function_arg): Likewise.
6602         * config/pa/pa.c (pa_function_arg): Likewise.
6603         * config/pdp11/pdp11.c (pdp11_function_arg): Likewise.
6604         * config/pru/pru.c (pru_function_arg): Likewise.
6605         * config/riscv/riscv.c (riscv_function_arg): Likewise.
6606         * config/rl78/rl78.c (rl78_function_arg): Likewise.
6607         * config/rs6000/rs6000-internal.h (rs6000_function_arg): Likewise.
6608         * config/rs6000/rs6000-call.c (rs6000_function_arg): Likewise.
6609         (rs6000_parm_needs_stack): Update call accordingly.
6610         * config/rx/rx.c (rx_function_arg): Take a function_arg_info
6611         instead of a mode, tree and named flag.
6612         * config/s390/s390.c (s390_function_arg): Likewise.
6613         (s390_call_saved_register_used): Update call accordingly.
6614         * config/sh/sh.c (sh_function_arg): Take a function_arg_info
6615         instead of a mode, tree and named flag.
6616         (sh_output_mi_thunk): Update call accordingly.
6617         * config/sparc/sparc.c (sparc_function_arg_1, sparc_function_arg)
6618         (sparc_function_incoming_arg): Take a function_arg_info instead of
6619         a mode, tree and named flag.
6620         * config/spu/spu.c (spu_function_arg): Likewise.
6621         * config/stormy16/stormy16.c (xstormy16_function_arg): Likewise.
6622         * config/tilegx/tilegx.c (tilegx_function_arg): Likewise.
6623         * config/tilepro/tilepro.c (tilepro_function_arg): Likewise.
6624         * config/v850/v850.c (v850_function_arg): Likewise.
6625         * config/vax/vax.c (vax_function_arg): Likewise.
6626         * config/visium/visium.c (visium_function_arg): Likewise.
6627         * config/xtensa/xtensa.c (xtensa_function_arg_1, xtensa_function_arg)
6628         (xtensa_function_incoming_arg): Likewise.
6630 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6632         * target.def (setup_incoming_varargs): Take a function_arg_info
6633         instead of a mode and tree.
6634         * doc/tm.texi: Regenerate.
6635         * targhooks.h (default_setup_incoming_varargs): Take a
6636         function_arg_info instead of a mode and tree.
6637         * targhooks.c (default_setup_incoming_varargs): Likewise.
6638         * config/aarch64/aarch64.c (aarch64_setup_incoming_varargs): Likewise.
6639         * config/alpha/alpha.c (alpha_setup_incoming_varargs): Likewise.
6640         * config/arc/arc.c (arc_setup_incoming_varargs): Likewise.
6641         * config/arm/arm.c (arm_setup_incoming_varargs): Likewise.
6642         * config/bfin/bfin.c (setup_incoming_varargs): Likewise.
6643         * config/cris/cris.c (cris_setup_incoming_varargs): Likewise.
6644         * config/csky/csky.c (csky_setup_incoming_varargs): Likewise.
6645         * config/epiphany/epiphany.c (epiphany_setup_incoming_varargs):
6646         Likewise.
6647         * config/fr30/fr30.c (fr30_setup_incoming_varargs): Likewise.
6648         * config/frv/frv.c (frv_setup_incoming_varargs): Likewise.
6649         * config/ft32/ft32.c (ft32_setup_incoming_varargs): Likewise.
6650         * config/i386/i386.c (ix86_setup_incoming_varargs): Likewise.
6651         * config/ia64/ia64.c (ia64_setup_incoming_varargs): Likewise.
6652         * config/iq2000/iq2000.c (iq2000_setup_incoming_varargs): Likewise.
6653         * config/lm32/lm32.c (lm32_setup_incoming_varargs): Likewise.
6654         * config/m32r/m32r.c (m32r_setup_incoming_varargs): Likewise.
6655         * config/mcore/mcore.c (mcore_setup_incoming_varargs): Likewise.
6656         * config/mips/mips.c (mips_setup_incoming_varargs): Likewise.
6657         * config/mmix/mmix.c (mmix_setup_incoming_varargs): Likewise.
6658         * config/moxie/moxie.c (moxie_setup_incoming_varargs): Likewise.
6659         * config/nds32/nds32.c (nds32_setup_incoming_varargs): Likewise.
6660         * config/nios2/nios2.c (nios2_setup_incoming_varargs): Likewise.
6661         * config/riscv/riscv.c (riscv_setup_incoming_varargs): Likewise.
6662         * config/rs6000/rs6000-internal.h (setup_incoming_varargs): Likewise.
6663         * config/rs6000/rs6000-call.c (setup_incoming_varargs): Likewise.
6664         * config/sh/sh.c (sh_setup_incoming_varargs): Likewise.
6665         * config/spu/spu.c (spu_setup_incoming_varargs): Likewise.
6666         * config/tilegx/tilegx.c (tilegx_setup_incoming_varargs): Likewise.
6667         * config/tilepro/tilepro.c (tilepro_setup_incoming_varargs): Likewise.
6668         * config/visium/visium.c (visium_setup_incoming_varargs): Likewise.
6669         * function.c (assign_parms_setup_varargs): Update call to
6670         targetm.calls.setup_incoming_varargs.
6672 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6674         * target.def (pass_by_reference): Take a function_arg_info instead
6675         of a mode, type and named flag.
6676         * doc/tm.texi: Regenerate.
6677         * targhooks.h (hook_pass_by_reference_must_pass_in_stack): Update
6678         accordingly.
6679         (hook_bool_CUMULATIVE_ARGS_arg_info_false): Declare.
6680         * targhooks.c (hook_pass_by_reference_must_pass_in_stack): Take a
6681         function_arg_info instead of a mode, type and named flag.
6682         (hook_bool_CUMULATIVE_ARGS_arg_info_false): New function.
6683         * calls.h (pass_by_reference): Take a function_arg_info instead of a
6684         mode, type and named flag.
6685         * calls.c (pass_by_reference): Likewise.
6686         (pass_va_arg_by_reference): Update call accordingly.
6687         (initialize_argument_information): Likewise.
6688         (emit_library_call_value_1): Likewise.
6689         * function.c (assign_parm_find_data_types): Likewise.
6690         * var-tracking.c (prepare_call_arguments): Likewise.
6691         * stor-layout.c: Include calls.h.
6692         (compute_record_mode): Update call to targetm.calls.pass_by_reference.
6693         * config/aarch64/aarch64.c (aarch64_pass_by_reference): Take a
6694         function_arg_info instead of a mode, type and named flag.
6695         * config/alpha/alpha.c (alpha_pass_by_reference): Likewise.
6696         * config/arc/arc.c (arc_pass_by_reference): Likewise.
6697         * config/arm/arm.c (arm_pass_by_reference): Likewise.
6698         * config/bfin/bfin.c (bfin_pass_by_reference): Likewise.
6699         * config/c6x/c6x.c (c6x_pass_by_reference): Likewise.
6700         (c6x_call_saved_register_used): Update call to pass_by_reference.
6701         * config/cris/cris.c (cris_pass_by_reference): Take a
6702         function_arg_info instead of a mode, type and named flag.
6703         * config/epiphany/epiphany.c (epiphany_pass_by_reference): Take a
6704         function_arg_info instead of a mode, type and named flag.
6705         (epiphany_arg_partial_bytes): Update call accordingly.
6706         * config/ft32/ft32.c (ft32_pass_by_reference): Take a
6707         function_arg_info instead of a mode, type and named flag.
6708         (ft32_arg_partial_bytes): Update call accordingly.
6709         * config/i386/i386.c (ix86_pass_by_reference): Take a
6710         function_arg_info instead of a mode, type and named flag.
6711         * config/iq2000/iq2000.c (iq2000_pass_by_reference): Likewise.
6712         * config/m32c/m32c.c (m32c_pass_by_reference): Likewise.
6713         * config/m32r/m32r.c (m32r_pass_by_reference): Likewise.
6714         (m32r_return_in_memory): Update call accordingly.
6715         * config/mips/mips.c (mips_pass_by_reference): Take a
6716         function_arg_info instead of a mode, type and named flag.
6717         * config/mmix/mmix.c (mmix_pass_by_reference): Likewise.
6718         * config/mn10300/mn10300.c (mn10300_pass_by_reference): Likewise.
6719         * config/moxie/moxie.c (moxie_pass_by_reference): Likewise.
6720         (moxie_arg_partial_bytes): Update call accordingly.
6721         * config/msp430/msp430.c (msp430_pass_by_reference): Take a
6722         function_arg_info instead of a mode, type and named flag.
6723         * config/nvptx/nvptx.c (nvptx_pass_by_reference): Likewise.
6724         * config/or1k/or1k.c (or1k_pass_by_reference): Likewise.
6725         * config/pa/pa.c (pa_pass_by_reference): Likewise.
6726         * config/riscv/riscv.c (riscv_pass_by_reference): Likewise.
6727         (riscv_return_in_memory): Update call accordingly.
6728         * config/rs6000/rs6000-internal.h (rs6000_pass_by_reference): Take a
6729         function_arg_info instead of a mode, type and named flag.
6730         * config/rs6000/rs6000-call.c (rs6000_pass_by_reference): Likewise.
6731         (rs6000_parm_needs_stack): Update call to pass_by_reference.
6732         * config/s390/s390.c (s390_pass_by_reference): Take a
6733         function_arg_info instead of a mode, type and named flag.
6734         (s390_call_saved_register_used): Update call accordingly.
6735         * config/sh/sh.c (sh_pass_by_reference): Take a function_arg_info
6736         instead of a mode, type and named flag.
6737         * config/sparc/sparc.c (sparc_pass_by_reference): Likewise.
6738         * config/spu/spu.c (spu_pass_by_reference): Likewise.
6739         * config/tilegx/tilegx.c (tilegx_pass_by_reference): Likewise.
6740         * config/tilepro/tilepro.c (tilepro_pass_by_reference): Likewise.
6741         * config/v850/v850.c (v850_pass_by_reference): Likewise.
6742         * config/visium/visium.c (visium_pass_by_reference): Likewise.
6744 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6746         * target.def (arg_partial_bytes): Take a function_arg_info instead
6747         of a mode, type and named flag.
6748         * doc/tm.texi: Regenerate.
6749         * target.h (function_arg_info): Declare.
6750         * calls.h (function_arg_info): New class.
6751         * targhooks.h (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6752         (hook_int_CUMULATIVE_ARGS_arg_info_0): Declare.
6753         * targhooks.c (hook_int_CUMULATIVE_ARGS_mode_tree_bool_0): Delete.
6754         (hook_int_CUMULATIVE_ARGS_arg_info_0): New function.
6755         * calls.c (initialize_argument_information): Update call to
6756         targetm.calls.partial_bytes.
6757         (emit_library_call_value_1): Likewise.
6758         * expr.c (block_move_libcall_safe_for_call_parm): Likewise.
6759         * function.c (assign_parm_find_entry_rtl): Likewise.
6760         * config/alpha/alpha.c (alpha_arg_partial_bytes): Take a
6761         function_arg_info instead of a mode, type and named flag.
6762         * config/arc/arc.c (arc_arg_partial_bytes): Likewise.
6763         * config/arm/arm.c (arm_arg_partial_bytes): Likewise.
6764         (cmse_func_args_or_return_in_stack): Update accordingly.
6765         * config/bfin/bfin.c (bfin_arg_partial_bytes): Take a
6766         function_arg_info instead of a mode, type and named flag.
6767         * config/cris/cris.c (cris_arg_partial_bytes): Likewise.
6768         * config/csky/csky.c (csky_arg_partial_bytes): Likewise.
6769         * config/epiphany/epiphany.c (epiphany_arg_partial_bytes): Likewise.
6770         * config/fr30/fr30.c: Include calls.h.
6771         (fr30_arg_partial_bytes): Take a function_arg_info instead of a mode,
6772         type and named flag.
6773         * config/frv/frv.c: Include calls.h.
6774         (frv_arg_partial_bytes): Take a function_arg_info instead of a mode,
6775         type and named flag.
6776         * config/ft32/ft32.c (ft32_arg_partial_bytes): Likewise.
6777         * config/gcn/gcn.c (gcn_arg_partial_bytes): Likewise.
6778         * config/ia64/ia64.c (ia64_arg_partial_bytes): Likewise.
6779         * config/iq2000/iq2000.c (iq2000_arg_partial_bytes): Likewise.
6780         * config/m32r/m32r.c (m32r_arg_partial_bytes): Likewise.
6781         * config/mcore/mcore.c (mcore_arg_partial_bytes): Likewise.
6782         * config/microblaze/microblaze.c (function_arg_partial_bytes):
6783         Likewise.
6784         * config/mips/mips.c (mips_arg_partial_bytes): Likewise.
6785         * config/mn10300/mn10300.c (mn10300_arg_partial_bytes): Likewise.
6786         * config/moxie/moxie.c (moxie_arg_partial_bytes): Likewise.
6787         * config/msp430/msp430.c (msp430_arg_partial_bytes): Likewise.
6788         * config/nds32/nds32.c (nds32_arg_partial_bytes): Likewise.
6789         * config/nios2/nios2.c (nios2_arg_partial_bytes): Likewise.
6790         * config/pa/pa.c (pa_arg_partial_bytes): Likewise.
6791         * config/pru/pru.c (pru_arg_partial_bytes): Likewise.
6792         * config/riscv/riscv.c (riscv_arg_partial_bytes): Likewise.
6793         * config/rs6000/rs6000-internal.h (rs6000_arg_partial_bytes): Likewise.
6794         * config/rs6000/rs6000-call.c (rs6000_arg_partial_bytes): Likewise.
6795         (rs6000_parm_needs_stack): Update call accordingly.
6796         * config/sh/sh.c (sh_arg_partial_bytes): Take a
6797         function_arg_info instead of a mode, type and named flag.
6798         * config/sparc/sparc.c (sparc_arg_partial_bytes): Likewise.
6799         * config/v850/v850.c (v850_arg_partial_bytes): Likewise.
6801 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6803         * calls.h (must_pass_va_arg_in_stack): Declare.
6804         * calls.c (must_pass_va_arg_in_stack): New function.
6805         * config/alpha/alpha.c (alpha_gimplify_va_arg_1): Use it.
6806         * config/sh/sh.c (sh_gimplify_va_arg_expr): Likewise.
6807         * config/stormy16/stormy16.c (xstormy16_gimplify_va_arg_expr):
6808         Likewise.
6809         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6811 2019-08-20  Richard Sandiford  <richard.sandiford@arm.com>
6813         * calls.h (pass_va_arg_by_reference): Declare.
6814         * calls.c (pass_va_arg_by_reference): New function.
6815         * config/aarch64/aarch64.c (aarch64_gimplify_va_arg_expr): Use it.
6816         * config/alpha/alpha.c (alpha_gimplify_va_arg): Likewise.
6817         * config/gcn/gcn.c (gcn_gimplify_va_arg_expr): Likewise.
6818         * config/i386/i386.c (ix86_gimplify_va_arg): Likewise.
6819         * config/ia64/ia64.c (ia64_gimplify_va_arg): Likewise.
6820         * config/mips/mips.c (mips_std_gimplify_va_arg_expr): Likewise.
6821         (mips_gimplify_va_arg_expr): Likewise.
6822         * config/msp430/msp430.c (msp430_gimplify_va_arg_expr): Likewise.
6823         * config/pa/pa.c (hppa_gimplify_va_arg_expr): Likewise.
6824         * config/rs6000/rs6000-call.c (rs6000_gimplify_va_arg): Likewise.
6825         * config/s390/s390.c (s390_gimplify_va_arg): Likewise.
6826         * config/sparc/sparc.c (sparc_gimplify_va_arg): Likewise.
6827         * config/spu/spu.c (spu_gimplify_va_arg_expr): Likewise.
6828         * config/tilegx/tilegx.c (tilegx_gimplify_va_arg_expr): Likewise.
6829         * config/tilepro/tilepro.c (tilepro_gimplify_va_arg_expr): Likewise.
6830         * config/visium/visium.c (visium_gimplify_va_arg): Likewise.
6831         * config/xtensa/xtensa.c (xtensa_gimplify_va_arg_expr): Likewise.
6832         * targhooks.c (std_gimplify_va_arg_expr): Likewise.
6834 2019-08-20  Richard Biener  <rguenther@suse.de>
6836         PR target/91498
6837         * config/i386/i386-features.c (general_scalar_chain::convert_op):
6838         Use (vec_merge (vec_duplicate..)) style vector from scalar move.
6839         (convert_scalars_to_vector): Add timode_p parameter and use it
6840         to guard TImode-only operation.
6841         (pass_stv::gate): Adjust so STV runs twice for TARGET_64BIT.
6842         (pass_stv::execute): Pass down timode_p.
6844 2019-08-20  Lili Cui  <lili.cui@intel.com>
6846         * common/config/i386/i386-common.c
6847         (processor_names): Add tigerlake and cooperlake.
6848         (processor_alias_table): Add tigerlake and cooperlake.
6849         * config.gcc: Add -march=tigerlake and cooperlake.
6850         * config/i386/driver-i386.c
6851         (host_detect_local_cpu): Detect tigerlake and cooperlake.
6852         Add "has_avx" to classify processor.
6853         * config/i386/i386-builtins.c (processor_model) :
6854         Add M_INTEL_COREI7_TIGERLAKE and M_INTEL_COREI7_COOPERLAKE.
6855         (arch_names_table): Add tigerlake and cooperlake.
6856         (get_builtin_code_for_version) : Handle PROCESSOR_TIGERLAKE
6857         and PROCESSOR_COOPERLAKE.
6858         * config/i386/i386-c.c
6859         (ix86_target_macros_internal): Handle tigerlake and cooperlake.
6860         * config/i386/i386-options.c
6861         (m_TIGERLAKE)  : Define.
6862         (m_COOPERLAKE) : Ditto.
6863         (m_CORE_AVX512): Ditto.
6864         (processor_cost_table): Add cascadelake.
6865         (ix86_option_override_internal): Hadle PTA_MOVDIRI, PTA_MOVDIR64B.
6866         * config/i386/i386.h
6867         (ix86_size_cost) : Define TARGET_TIGERLAKE and TARGET_COOPERLAKE.
6868         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6869         (PTA_MOVDIRI): Ditto.
6870         (PTA_MOVDIR64B): Ditto.
6871         (PTA_COOPERLAKE) : Ditto.
6872         (PTA_TIGERLAKE)  : Ditto.
6873         (processor_type) : Add PROCESSOR_TIGERLAKE and PROCESSOR_COOPERLAKE.
6874         * doc/extend.texi: Add tigerlake and cooperlake.
6875         * doc/invoke.texi: Add tigerlake and cooperlake.
6877 2019-08-20  Gerald Pfeifer  <gerald@pfeifer.com>
6879         * doc/install.texi (Specific, alpha): Remove note to use
6880         binutils 2.11.2 or later.
6882 2019-08-20  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6884         PR middle-end/89544
6885         * function.c (assign_parm_find_stack_rtl): Use larger alignment
6886         when possible.
6888 2019-08-19  Joel Hutton  <Joel.Hutton@arm.com>
6890         * config/aarch64/aarch64-protos.h (aarch64_fpconst_pow2_recip): New prototype
6891         * config/aarch64/aarch64.c (aarch64_fpconst_pow2_recip): New function
6892         * config/aarch64/aarch64.md (*aarch64_<su_optab>cvtf<fcvt_target><GPF:mode>2_mult): New pattern
6893         (*aarch64_<su_optab>cvtf<fcvt_iesize><GPF:mode>2_mult): New pattern
6894         * config/aarch64/constraints.md (Dt): New constraint
6895         * config/aarch64/predicates.md (aarch64_fpconst_pow2_recip): New predicate
6897 2019-08-19  Richard Biener  <rguenther@suse.de>
6899         PR tree-optimization/91403
6900         * tree-scalar-evolution.c (follow_ssa_edge_binary): Inline
6901         cases we can handle with tail-recursion...
6902         (follow_ssa_edge_expr): ... here.  Do so.
6904 2019-08-19  Kito Cheng  <kito.cheng@sifive.com>
6906         PR target/91441
6907         * toplev.c (process_options): Check TARGET_ASAN_SHADOW_OFFSET is
6908         implemented for -fsanitize=kernel-address, and merge check logic
6909         with -fsanitize=address.
6911 2019-08-18  Iain Sandoe  <iain@sandoe.co.uk>
6913         * config/rs6000/darwin.h (TARGET_OS_CPP_BUILTINS): Add asserts
6914         for cpu and machine.  Factor 64/32b builtins.
6916 2019-08-18  Gerald Pfeifer  <gerald@pfeifer.com>
6918         * doc/install.texi (Specific, bfin): blackfin.uclinux.org is
6919         gone, point to sourceforge.net.
6921 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
6922         
6923         * doc/ux.texi (User Experience Guidelines): Update reference.
6925 2019-08-17  Gerald Pfeifer  <gerald@pfeifer.com>
6926         
6927         * doc/include/gpl_v3.texi (Copying): Adjust the link to "Why
6928         not LGPL".
6930 2019-08-16  Eric Botcazou  <ebotcazou@adacore.com>
6932         * tree-sra.c (build_reconstructed_reference): Return NULL_TREE instead
6933         of NULL.  Add guard for broken VIEW_CONVERT_EXPRs.
6935 2019-08-16  Martin Sebor  <msebor@redhat.com>
6937         * tree.def (TYPE_SIZE): Clarify.
6938         * tree.h (TYPE_SIZE, TYPE_SIZE_UNIT, DECL_SIZE): Add comments.
6940 2019-08-16  Bernd Edlinger  <bernd.edlinger@hotmail.de>
6942         PR tree-optimization/91109
6943         * lra-int.h (lra_need_for_scratch_reg_p): Declare.
6944         * lra.c (lra): Use lra_need_for_scratch_reg_p.
6945         * lra-spills.c (lra_need_for_scratch_reg_p): New function.
6947 2019-08-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
6949         * config/i386/mmx.md (mmxdoublemode): New mode attribute.
6950         (mmx_uavg<mode>3): Macroize expaner from mmx_uavgv8qi3 and
6951         mmx_uavgv4hi3 using MMXMODE12 mode iterator.
6952         (uavg<mode>3_ceil): New expander.
6953         * config/i386/sse.md (uavg<mode>3_ceil): Use ssedoublemode
6954         mode iterator when creating CONST1_RTX.
6955         (<sse2_avx2>_uavg<mode>3<mask_name>): Ditto.
6956         (*<sse2_avx2>_uavg<mode>3<mask_name>): Use ssedoublemode
6957         mode iterator for const1_operand predicate.
6959 2019-08-16  Richard Biener  <rguenther@suse.de>
6961         * tree-scalar-evolution.c (follow_ssa_edge_expr): Declare.
6962         (follow_ssa_edge_binary): Call follow_ssa_edge_expr instead of
6963         follow_ssa_edge.
6964         (follow_ssa_edge_in_condition_phi_branch): Likewise.
6965         (analyze_evolution_in_loop): Likewise.
6966         (follow_ssa_edge, follow_ssa_edge_in_rhs): Inline into ...
6967         (follow_ssa_edge_expr): ... here.  Refactor code.
6969 2019-08-16  Richard Biener  <rguenther@suse.de>
6971         PR target/91469
6972         * config/i386/i386-features.c
6973         (general_scalar_chain::replace_with_subreg): Stop at memory operands.
6975 2019-08-16  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
6977         PR other/91255
6978         * gensupport.c (has_subst_attribute): Error out on set_attr_alternative
6979         only if subst_name matches curr_attr string.
6981 2019-08-16  Richard Biener  <rguenther@suse.de>
6983         * tree-ssa-forwprop.c (simplify_builtin_call): Do not remove
6984         stmt at gsi_p, instead replace it with a NOP removed later.
6985         (pass_forwprop::execute): Fully propagate lattice, DCE stmts
6986         that became dead because of that.
6988 2019-08-16  Aldy Hernandez  <aldyh@redhat.com>
6990         * gimple-ssa-evrp-analyze.c (record_ranges_from_phis): Skip PHIs
6991         for which we can't represent a range.
6992         * ipa-cp.c (ipcp_vr_lattice::set_to_bottom): Pass type to
6993         set_varying.
6994         * tree-ssa-threadedge.c (record_temporary_equivalences_from_phis):
6995         Set VR_UNDEFINED if type is not supported.
6996         * tree-ssanames.c (get_range_info): Pass type to set_varying.
6997         * tree-vrp.c (value_range_base::check): Assert that a varying has
6998         min/max set.
6999         (value_range_base::equal_p): Early bail for undefines.
7000         (value_range_base::set_varying): Accept a type.
7001         (value_range::set_varying): Same.
7002         (value_range_base::type): VARYING can have a type, while UNDEFINE
7003         is typeless.
7004         (value_range_base::dump): Print type for VARYING nodes.
7005         (value_range_base::set): Add type to VARYING.
7006         (extract_range_from_multiplicative_op): Pass type to set_varying.
7007         (extract_range_from_binary_expr): Same.
7008         (value_range_base::intersect_helper): Same.
7009         (value_range_base::union_helper): Same.
7010         (value_range_base::normalize_symbolics): Same.
7011         (determine_value_range_1): Same.
7012         * tree-vrp.h (class value_range_base): Add type to set_varying.
7013         Add prototype for dump(void).
7014         Add prototype for supports_type_p.
7015         (class value_range): Add type to set_varying.
7016         Add prototype for dump(void).
7017         * vr-values.c (set_value_range_to_truthvalue): Pass type to
7018         set_varying.
7019         (vr_values::get_lattice_entry): Set varying even if propagation
7020         finished.
7021         Pass type to set_varying.
7022         (vr_values::get_value_range): Remove vr_const_varying.
7023         Reallocate the lattice if needed.
7024         (vr_values::update_value_range): Pass type to set_varying.
7025         (vr_values::extract_range_for_var_from_comparison_expr): Same.
7026         (vr_values::extract_range_from_binary_expr): Same.
7027         (vr_values::extract_range_from_unary_expr): Same.
7028         (vr_values::extract_range_from_cond_expr): Same.
7029         (vr_values::check_for_binary_op_overflow): Same.
7030         (vr_values::extract_range_basic): Same.
7031         (vr_values::extract_range_from_assignment): Same.
7032         (vr_values::vr_values): Increase size of num_vr_values.
7033         (vr_values::extract_range_from_phi_node): Pass type to
7034         set_varying.
7036 2019-08-15  H.J. Lu  <hongjiu.lu@intel.com>
7038         PR target/90878
7039         * config/i386/i386.c (inline_memory_move_cost): Use hard_register
7040         for costs of hard register moves.
7041         (ix86_register_move_cost): Likewise.
7042         * config/i386/i386.h (processor_costs): Move costs of hard
7043         register moves to hard_register.  Add int_load, int_store,
7044         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7045         sse_load, sse_store, sse_unaligned_load and sse_unaligned_store
7046         for costs of RTL expressions.
7047         * config/i386/x86-tune-costs.h: Move costs of hard register
7048         moves to hard_register.  Duplicate int_load, int_store,
7049         xmm_move, ymm_move, zmm_move, sse_to_integer, integer_to_sse,
7050         sse_load, sse_store for costs of RTL expressions.
7052 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7054         * target.def (setup_incoming_vararg_bounds): Remove.
7055         * doc/tm.texi.in (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Remove.
7056         * doc/tm.texi: Regenerate.
7057         * targhooks.c (default_setup_incoming_vararg_bounds): Delete.
7058         * targhooks.h (default_setup_incoming_vararg_bounds): Likewise.
7059         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
7060         (TARGET_SETUP_INCOMING_VARARG_BOUNDS): Likewise.
7062 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7064         MSP430: Fix lines over 80 characters long in
7065         config/msp430/*.{c,h} files
7067         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix format
7068         specifier in string.
7069         (msp430_select_hwmult_lib): Split line more than 80 characters long.
7070         * config/msp430/msp430-devices.c (msp430_extract_mcu_data): Remove
7071         redundant old comment.
7072         * config/msp430/msp430-protos.h (msp430_output_aligned_decl_common):
7073         Split line more than 80 characters long.
7074         * config/msp430/msp430.c (msp430_option_override): Likewise.
7075         (msp430_return_in_memory): Likewise.
7076         (msp430_gimplify_va_arg_expr): Likewise.
7077         (TARGET_ADDR_SPACE_LEGITIMATE_ADDRESS_P): Likewise.
7078         (msp430_legitimate_constant): Likewise.
7079         (TARGET_ALLOCATE_STACK_SLOTS_FOR_ARGS): Likewise.
7080         (msp430_attr): Likewise.
7081         (msp430_data_attr): Likewise.
7082         (msp430_start_function): Likewise.
7083         (gen_prefix): Likewise.
7084         (msp430_init_sections): Likewise.
7085         (msp430_select_section): Likewise.
7086         (msp430_function_section): Likewise.
7087         (msp430_unique_section): Likewise.
7088         (msp430_output_aligned_decl_common): Likewise.
7089         (msp430_do_not_relax_short_jumps): Likewise.
7090         (msp430_init_builtins): Likewise.
7091         (msp430_expand_delay_cycles): Likewise.
7092         (msp430_expand_prologue): Likewise.
7093         (msp430_expand_epilogue): Likewise.
7094         (msp430_expand_helper): Likewise.
7095         (msp430_split_movsi): Likewise.
7096         (msp430_print_operand): Likewise.
7097         (msp430_return_addr_rtx): Likewise.
7098         (msp430x_extendhisi): Likewise.
7099         * config/msp430/msp430.h (STARTFILE_SPEC): Likewise.
7100         (ASM_SPEC): Likewise.
7101         Remove very obvious comments.
7102         (LIB_SPEC): Split line more than 80 characters long.
7103         (EH_RETURN_HANDLER_RTX): Likewise.
7104         (HARD_REGNO_CALLER_SAVE_MODE): Likewise.
7106 2019-08-15  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
7108         MSP430: Fix whitespace errors and incorrect indentation in
7109         config/msp430/*.{c,h} files
7111         * config/msp430/driver-msp430.c (msp430_select_cpu): Fix indentation.
7112         (msp430_select_hwmult_lib): Likewise.
7113         * config/msp430/msp430-devices.c (parse_devices_csv_1): Likewise.
7114         (msp430_extract_mcu_data): Likewise.
7115         (struct t_msp430_mcu_data): Likewise.
7116         * config/msp430/msp430.c (struct machine_function): Remove whitespace
7117         before left square bracket.
7118         (msp430_option_override): Fix indentation.
7119         (msp430_hard_regno_nregs_with_padding): Likewise.
7120         (msp430_initial_elimination_offset): Likewise.
7121         (msp430_special_register_convention_p): Remove whitespace before left
7122         square bracket and after exclamation mark.
7123         (msp430_evaluate_arg): Likewise.
7124         (msp430_callee_copies): Fix indentation.
7125         (msp430_gimplify_va_arg_expr): Likewise.
7126         (msp430_function_arg_advance): Remove whitespace before left square
7127         bracket.
7128         (reg_ok_for_addr): Likewise.
7129         (msp430_preserve_reg_p): Likewise.
7130         (msp430_compute_frame_info): Likewise.
7131         (msp430_asm_output_addr_const_extra): Add space between function name
7132         and open parenthesis.
7133         (has_section_name): Fix indentation.
7134         (msp430_attr): Remove trailing whitespace.
7135         (msp430_section_attr): Likewise.
7136         (msp430_data_attr): Likewise.
7137         (struct msp430_attribute_table): Fix comment and whitespace.
7138         (msp430_start_function): Remove whitespace before left square bracket.
7139         Add space between function name and open parenthesis.
7140         (msp430_select_section): Remove trailing whitespace.
7141         (msp430_section_type_flags): Remove trailing whitespace.
7142         (msp430_unique_section): Remove space before closing parenthesis.
7143         (msp430_output_aligned_decl_common): Change 8 spaces to a tab.
7144         (msp430_builtins): Remove whitespace before left square bracket.
7145         (msp430_init_builtins): Fix indentation.
7146         (msp430_expand_prologue): Remove whitespace before left square bracket.
7147         Remove space before closing parenthesis.
7148         (msp430_expand_epilogue): Remove whitespace before left square bracket.
7149         (msp430_split_movsi): Remove space before closing parenthesis.
7150         (helper_function_name_mappings): Fix indentation.
7151         (msp430_use_f5_series_hwmult): Fix whitespace.
7152         (use_32bit_hwmult): Likewise.
7153         (msp430_no_hwmult): Likewise.
7154         (msp430_output_labelref): Remove whitespace before left square bracket.
7155         (msp430_print_operand_raw): Likewise.
7156         (msp430_print_operand_addr): Likewise.
7157         (msp430_print_operand): Add two spaces after '.' in comment.
7158         Fix trailing whitespace.
7159         (msp430x_extendhisi): Fix indentation.
7160         * config/msp430/msp430.h (TARGET_CPU_CPP_BUILTINS): Change 8 spaces to
7161         tab.
7162         (PC_REGNUM): Likewise.
7163         (STACK_POINTER_REGNUM): Likewise.
7164         (CC_REGNUM): Likewise.
7166 2019-08-15  Richard Biener  <rguenther@suse.de>
7168         PR target/91454
7169         * config/i386/i386-features.c (gen_gpr_to_xmm_move_src): New
7170         helper.
7171         (general_scalar_chain::make_vector_copies): Use it.
7173 2019-08-15  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7175         * function.c (assign_parm_setup_reg): Handle misaligned stack arguments.
7177 2019-08-15  Martin Liska  <mliska@suse.cz>
7179         * tree-ssa-dce.c (propagate_necessity): We can't reach now
7180         operators with no arguments.
7181         (eliminate_unnecessary_stmts): Likewise here.
7183 2019-08-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7185         * config/i386/i386-features.c (general_scalar_chain::convert_insn)
7186         <case COMPARE>: Revert 2019-08-14 change.
7187         (convertible_comparison_p): Revert 2019-08-14 change.  Return false
7188         for (TARGET_64BIT || mode != DImode).
7190 2019-08-15  Aldy Hernandez  <aldyh@redhat.com>
7192         * tree-vrp.c (value_range_base::set): Merge in code from
7193         value_range_base::set_and_canonicalize.
7194         Enforce canonicalization at set time.
7195         Normalize [MIN, MAX] into VARYING and ~[MIN, MAX] into UNDEFINED.
7196         (value_range_base::set_undefined): Inline call to set().
7197         (value_range_base::set_varying): Same.
7198         (value_range_base::singleton_p): Handle VR_ANTI_RANGEs.
7199         (vrp_val_max): New argument handle_pointers.
7200         (vrp_val_min): Same.
7201         (ranges_from_anti_range): Same.
7202         (extract_range_into_wide_ints): Use tree argument instead of sign
7203         and precision.
7204         (extract_range_from_multiplicative_op): Take in tree type instead
7205         of precision and sign.  Adapt function for canonicalized ranges.
7206         (extract_range_from_binary_expr): Pass type to
7207         extract_range_from_multiplicative_op.
7208         Adapt for canonicalized ranges.
7209         (extract_range_from_unary_expr): Same.
7210         (value_range_base::intersect_helper): Adjust for canonicalized
7211         ranges.
7212         (value_range_base::union_helper): Same.
7213         (value_range_base::normalize_symbolics): New.
7214         * tree-vrp.h (class value_range_base): Remove
7215         set_and_canonicalize.
7216         New prototype for normalize_symbolics.
7217         (class value_range): Remove set_and_canonicalize.
7218         (vrp_val_min): Adjust prototype.
7219         (vrp_val_max): Same.
7220         * vr-values.c
7221         (vr_values::extract_range_for_var_from_comparison_expr):  Call set
7222         instead of set_and_canonicalize.
7224 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7226         PR middle-end/91444
7227         * tree-vect-stmts.c (vectorizable_call): Check that the function
7228         is a BUILT_IN_MD function before passing it to
7229         targetm.vectorize.builtin_md_vectorized_function.
7231 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7233         * config/aarch64/aarch64-protos.h (aarch64_sve_mode_p): Declare.
7234         * config/aarch64/aarch64.c (aarch64_sve_mode_p): New function.
7235         (aarch64_select_early_remat_modes): Use it.
7237 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7239         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Return
7240         16 for SVE predicates even if they are fixed-length.
7242 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7244         * config/aarch64/aarch64-sve.md (and<PRED_ALL:mode>3): Make the
7245         operand order match the MOV /Z alias.
7247 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7249         * config/aarch64/aarch64.c (aarch64_output_sve_cnt_immediate): Take
7250         the vector pattern as an aarch64_svpattern argument.  Update the
7251         overloaded caller accordingly.
7252         (aarch64_output_sve_scalar_inc_dec): Update call accordingly.
7253         (aarch64_output_sve_vector_inc_dec): Likewise.
7255 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7257         * config/aarch64/aarch64.c (aarch64_add_offset): In the fallback
7258         multiplication case, try to compute VG * (lowest set bit) directly
7259         rather than always basing the multiplication on VG.  Use
7260         expand_mult for the multiplication if we can.
7262 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7264         * config/aarch64/aarch64-protos.h
7265         (aarch64_sve_scalar_inc_dec_immediate_p): Declare.
7266         (aarch64_sve_inc_dec_immediate_p): Rename to...
7267         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7268         (aarch64_output_sve_addvl_addpl): Take a single rtx argument.
7269         (aarch64_output_sve_scalar_inc_dec): Declare.
7270         (aarch64_output_sve_inc_dec_immediate): Rename to...
7271         (aarch64_output_sve_vector_inc_dec): ...this.
7272         * config/aarch64/aarch64.c (aarch64_sve_scalar_inc_dec_immediate_p)
7273         (aarch64_output_sve_scalar_inc_dec): New functions.
7274         (aarch64_output_sve_addvl_addpl): Remove the base and offset
7275         arguments.  Only handle true ADDVL and ADDPL instructions;
7276         don't emit an INC or DEC.
7277         (aarch64_sve_inc_dec_immediate_p): Rename to...
7278         (aarch64_sve_vector_inc_dec_immediate_p): ...this.
7279         (aarch64_output_sve_inc_dec_immediate): Rename to...
7280         (aarch64_output_sve_vector_inc_dec): ...this.  Update call to
7281         aarch64_sve_vector_inc_dec_immediate_p.
7282         * config/aarch64/predicates.md (aarch64_sve_scalar_inc_dec_immediate)
7283         (aarch64_sve_plus_immediate): New predicates.
7284         (aarch64_pluslong_operand): Accept aarch64_sve_plus_immediate
7285         rather than aarch64_sve_addvl_addpl_immediate.
7286         (aarch64_sve_inc_dec_immediate): Rename to...
7287         (aarch64_sve_vector_inc_dec_immediate): ...this.  Update call to
7288         aarch64_sve_vector_inc_dec_immediate_p.
7289         (aarch64_sve_add_operand): Update accordingly.
7290         * config/aarch64/constraints.md (Uai): New constraint.
7291         (vsi): Update call to aarch64_sve_vector_inc_dec_immediate_p.
7292         * config/aarch64/aarch64.md (add<GPI:mode>3): Don't force the second
7293         operand into a register if it satisfies aarch64_sve_plus_immediate.
7294         (*add<GPI:mode>3_aarch64, *add<GPI:mode>3_poly_1): Add an alternative
7295         for Uai.  Update calls to aarch64_output_sve_addvl_addpl.
7296         * config/aarch64/aarch64-sve.md (add<mode>3): Call
7297         aarch64_output_sve_vector_inc_dec instead of
7298         aarch64_output_sve_inc_dec_immediate.
7300 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7302         * config/aarch64/iterators.md (UNSPEC_REVB, UNSPEC_REVH)
7303         (UNSPEC_REVW): New constants.
7304         (elem_bits): New mode attribute.
7305         (SVE_INT_UNARY): New int iterator.
7306         (optab): Handle UNSPEC_REV[BHW].
7307         (sve_int_op): New int attribute.
7308         (min_elem_bits): Handle VNx16QI and the predicate modes.
7309         * config/aarch64/aarch64-sve.md (*aarch64_sve_rev64<mode>)
7310         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Delete.
7311         (@aarch64_pred_<SVE_INT_UNARY:optab><SVE_I:mode>): New pattern.
7312         * config/aarch64/aarch64.c (aarch64_sve_data_mode): New function.
7313         (aarch64_sve_int_mode, aarch64_sve_rev_unspec): Likewise.
7314         (aarch64_split_sve_subreg_move): Use UNSPEC_REV[BHW] instead of
7315         unspecs based on the total width of the reversed data.
7316         (aarch64_evpc_rev_local): Likewise (for SVE only).  Use a
7317         reinterpret followed by a subreg on big-endian targets.
7319 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7320             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7322         * config/aarch64/aarch64-sve.md
7323         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Add /z
7324         alternatives in which one of the inputs is in the same register
7325         as the output.
7327 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7329         * config/aarch64/aarch64-sve.md (*vec_extract<mode><Vel>_ext)
7330         (*aarch64_sve_ext<mode>): Add MOVPRFX alternatives.
7332 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7334         * config/aarch64/aarch64-sve.md (*sub<SVE_F:mode>3): Remove immediate
7335         FADD and FSUB alternatives.  Add a MOVPRFX alternative for FSUBR.
7337 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7338             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7340         * config/aarch64/aarch64-sve.md (add<SVE_I:mode>3, sub<SVE_I:mode>3)
7341         (<LOGICAL:optab><SVE_I:mode>3, *add<SVE_F:mode>3, *mul<SVE_F:mode>3)
7342         (*fabd<SVE_F:mode>3): Add more MOVPRFX alternatives.
7344 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7345             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7347         * config/aarch64/aarch64-sve.md (*v<ASHIFT:optab><SVE_I:mode>3):
7348         Add an alternative that uses reversed shifts.
7350 2019-08-15  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
7352         * config/aarch64/aarch64-cores.def (cortex-a76): Use neoversen1 tuning
7353         struct.
7355 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7357         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Add
7358         a commutativity marker.
7360 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7361             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7363         * config/aarch64/aarch64-protos.h (aarch64_prepare_sve_int_fma)
7364         (aarch64_prepare_sve_cond_int_fma): Declare.
7365         * config/aarch64/aarch64.c (aarch64_convert_mult_to_shift)
7366         (aarch64_prepare_sve_int_fma): New functions.
7367         (aarch64_prepare_sve_cond_int_fma): Likewise.
7368         * config/aarch64/aarch64-sve.md
7369         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Add a "@" marker.
7370         (fma<SVE_I:mode>4, cond_fma<SVE_I:mode>, *cond_fma<SVE_I:mode>_2)
7371         (*cond_fma<SVE_I:mode>_4, *cond_fma<SVE_I:mode>_any, fnma<SVE_I:mode>4)
7372         (cond_fnma<SVE_I:mode>, *cond_fnma<SVE_I:mode>_2)
7373         (*cond_fnma<SVE_I:mode>_4, *cond_fnma<SVE_I:mode>_any): New patterns.
7374         (*madd<mode>): Rename to...
7375         (*fma<mode>4): ...this.
7376         (*msub<mode>): Rename to...
7377         (*fnma<mode>4): ...this.
7379 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7380             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7382         * config/aarch64/aarch64.c (aarch64_print_vector_float_operand):
7383         Print 2.0 naturally.
7384         (aarch64_sve_float_mul_immediate_p): Return true for 2.0.
7385         * config/aarch64/predicates.md
7386         (aarch64_sve_float_negated_arith_immediate): New predicate,
7387         renamed from aarch64_sve_float_arith_with_sub_immediate.
7388         (aarch64_sve_float_arith_with_sub_immediate): Test for both
7389         positive and negative constants.
7390         (aarch64_sve_float_arith_with_sub_operand): Redefine as a register
7391         or an aarch64_sve_float_arith_with_sub_immediate.
7392         * config/aarch64/constraints.md (vsN): Use
7393         aarch64_sve_float_negated_arith_immediate.
7394         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_I1): New int
7395         iterator.
7396         (sve_pred_fp_rhs2_immediate): New int attribute.
7397         * config/aarch64/aarch64-sve.md
7398         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>): Use
7399         sve_pred_fp_rhs1_operand and sve_pred_fp_rhs2_operand.
7400         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_2_const)
7401         (*cond_<SVE_COND_FP_BINARY_I1:optab><SVE_F:mode>_any_const)
7402         (*cond_add<SVE_F:mode>_2_const, *cond_add<SVE_F:mode>_any_const)
7403         (*cond_sub<mode>_3_const, *cond_sub<mode>_any_const): New patterns.
7405 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7406             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7408         * config/aarch64/aarch64-sve.md (*aarch64_cond_abd<SVE_F:mode>_2)
7409         (*aarch64_cond_abd<SVE_F:mode>_3)
7410         (*aarch64_cond_abd<SVE_F:mode>_any): New patterns.
7412 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7413             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7415         * config/aarch64/aarch64-sve.md (*aarch64_cond_<su>abd<mode>_2)
7416         (*aarch64_cond_<su>abd<mode>_any): New patterns.
7418 2019-08-15  Richard Sandiford  <richard.sandiford@arm.com>
7419             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
7421         * internal-fn.def (IFN_COND_SHL, IFN_COND_SHR): New internal functions.
7422         * internal-fn.c (FOR_EACH_CODE_MAPPING): Handle shifts.
7423         * match.pd (UNCOND_BINARY, COND_BINARY): Likewise.
7424         * optabs.def (cond_ashl_optab, cond_ashr_optab, cond_lshr_optab): New
7425         optabs.
7426         * optabs.h (create_convert_operand_from): Expand comment.
7427         * optabs.c (maybe_legitimize_operand): Allow implicit broadcasts
7428         when mapping scalar rtxes to vector operands.
7429         * config/aarch64/iterators.md (SVE_INT_BINARY): Add ashift,
7430         ashiftrt and lshiftrt.
7431         (sve_int_op, sve_int_op_rev, sve_pred_int_rhs2_operand): Handle them.
7432         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_2_const)
7433         (*cond_<optab><mode>_any_const): New patterns.
7435 2019-08-15  Martin Liska  <mliska@suse.cz>
7437         PR ipa/91438
7438         * cgraph.c (cgraph_node::remove): When setting
7439         n->origin = NULL for all nested functions, reset
7440         also next_nested.
7442 2019-08-15  Martin Liska  <mliska@suse.cz>
7444         * cgraph.c (cgraph_node::verify_node): Verify origin, nested
7445         and next_nested.
7447 2019-08-15  Martin Liska  <mliska@suse.cz>
7449         PR ipa/91404
7450         * passes.c (order): Remove.
7451         (uid_hash_t): Likewise).
7452         (remove_cgraph_node_from_order): Remove from set
7453         of pointers (cgraph_node *).
7454         (insert_cgraph_node_to_order): New.
7455         (duplicate_cgraph_node_to_order): New.
7456         (do_per_function_toporder): Register all 3 cgraph hooks.
7457         Skip removed_nodes now as we know about all of them.
7459 2019-08-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
7461         * config/i386/i386-expand.c (ix86_expand_vector_init_one_nonzero)
7462         <case E_V8QImode>: Use vector_set path for
7463         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7464         (ix86_expand_vector_init_one_var) <case E_V8QImode>:
7465         Do not widen for TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
7467 2019-08-14  Bernd Edlinger  <bernd.edlinger@hotmail.de>
7469         * builtins.c (expand_builtin_init_descriptor): Set memory alignment.
7471 2019-08-14  Martin Sebor  <msebor@redhat.com>
7473         PR tree-optimization/91294
7474         * tree-ssa-strlen.c (handle_store): Avoid treating lower bound of
7475         source length as exact.
7477 2019-08-14  Christophe Lyon  <christophe.lyon@linaro.org>
7479         * doc/extend.texi: Add "noinit" attribute documentation.
7480         * doc/sourcebuild.texi: Add noinit effective target documentation.
7481         * varasm.c (default_section_type_flags): Add support for "noinit"
7482         section.
7483         (default_elf_select_section): Add support for "noinit" attribute.
7484         * config/msp430/msp430.c (msp430_attribute_table): Remove
7485         "noinit" entry.
7487 2019-08-14  Richard Biener  <rguenther@suse.de>
7488             UroÅ¡ Bizjak  <ubizjak@gmail.com>
7490         PR target/91154
7491         * config/i386/i386-features.h (scalar_chain::scalar_chain): Add
7492         mode arguments.
7493         (scalar_chain::smode): New member.
7494         (scalar_chain::vmode): Likewise.
7495         (dimode_scalar_chain): Rename to...
7496         (general_scalar_chain): ... this.
7497         (general_scalar_chain::general_scalar_chain): Take mode arguments.
7498         (timode_scalar_chain::timode_scalar_chain): Initialize scalar_chain
7499         base with TImode and V1TImode.
7500         * config/i386/i386-features.c (scalar_chain::scalar_chain): Adjust.
7501         (general_scalar_chain::vector_const_cost): Adjust for SImode
7502         chains.
7503         (general_scalar_chain::compute_convert_gain): Likewise.  Add
7504         {S,U}{MIN,MAX} support.
7505         (general_scalar_chain::replace_with_subreg): Use vmode/smode.
7506         (general_scalar_chain::make_vector_copies): Likewise.  Handle
7507         non-DImode chains appropriately.
7508         (general_scalar_chain::convert_reg): Likewise.
7509         (general_scalar_chain::convert_op): Likewise.
7510         (general_scalar_chain::convert_insn): Likewise.  Add
7511         fatal_insn_not_found if the result is not recognized.
7512         (convertible_comparison_p): Pass in the scalar mode and use that.
7513         (general_scalar_to_vector_candidate_p): Likewise.  Rename from
7514         dimode_scalar_to_vector_candidate_p.  Add {S,U}{MIN,MAX} support.
7515         (scalar_to_vector_candidate_p): Remove by inlining into single
7516         caller.
7517         (general_remove_non_convertible_regs): Rename from
7518         dimode_remove_non_convertible_regs.
7519         (remove_non_convertible_regs): Remove by inlining into single caller.
7520         (convert_scalars_to_vector): Handle SImode and DImode chains
7521         in addition to TImode chains.
7522         * config/i386/i386.md (<maxmin><MAXMIN_IMODE>3): New expander.
7523         (*<maxmin><MAXMIN_IMODE>3_1): New insn-and-split.
7524         (*<maxmin>di3_doubleword): Likewise.
7526 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7527             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7529         * config/aarch64/aarch64-sve.md (*cond_bic<mode>_2)
7530         (*cond_bic<mode>_any): New patterns.
7532 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7534         * config/aarch64/aarch64.c (aarch64_print_operand): Allow %e to
7535         take the equivalent mask, as well as a bit count.
7536         * config/aarch64/predicates.md (aarch64_sve_uxtb_immediate)
7537         (aarch64_sve_uxth_immediate, aarch64_sve_uxt_immediate)
7538         (aarch64_sve_pred_and_operand): New predicates.
7539         * config/aarch64/iterators.md (sve_pred_int_rhs2_operand): New
7540         code attribute.
7541         * config/aarch64/aarch64-sve.md
7542         (cond_<SVE_INT_BINARY:optab><SVE_I:mode>): Use it.
7543         (*cond_uxt<mode>_2, *cond_uxt<mode>_any): New patterns.
7545 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7547         * config/aarch64/aarch64-sve.md
7548         (*cond_<SVE_COND_FCVTI:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7549         (*cond_<SVE_COND_ICVTF:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>):
7550         New patterns.
7552 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7553             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7555         * config/aarch64/aarch64-sve.md
7556         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_2): New pattern.
7557         (*cond_<SVE_COND_FP_UNARY:optab><SVE_F:mode>_any): Likewise.
7559 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7560             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7562         * config/aarch64/aarch64-sve.md
7563         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_2): New pattern.
7564         (*cond_<SVE_INT_UNARY:optab><SVE_I:mode>_any): Likewise.
7566 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7568         * config/aarch64/iterators.md (SVE_COND_FP_ABS_CMP): New iterator.
7569         * config/aarch64/aarch64-sve.md (*aarch64_pred_fac<cmp_op><mode>):
7570         New pattern.
7572 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7573             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7575         * config/aarch64/aarch64-sve.md (*aarch64_sel_dup<mode>): New pattern.
7577 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7578             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7580         * config/aarch64/aarch64.c (aarch64_bit_representation): New function.
7581         (aarch64_print_vector_float_operand): Also handle 8-bit floats.
7582         (aarch64_print_operand): Add support for %I.
7583         (aarch64_sve_dup_immediate_p): Handle scalars as well as vectors.
7584         Bitcast floating-point constants to the corresponding integer constant.
7585         (aarch64_float_const_representable_p): Handle vectors as well
7586         as scalars.
7587         (aarch64_expand_sve_vcond): Make sure that the operands are valid
7588         for the new vcond_mask_<mode><vpred> expander.
7589         * config/aarch64/predicates.md (aarch64_sve_dup_immediate): Also
7590         test aarch64_float_const_representable_p.
7591         (aarch64_sve_reg_or_dup_imm): New predicate.
7592         * config/aarch64/aarch64-sve.md (vec_extract<vpred><Vel>): Use
7593         gen_vcond_mask_<mode><vpred> instead of
7594         gen_aarch64_sve_dup<mode>_const.
7595         (vcond_mask_<mode><vpred>): Turn into a define_expand that
7596         accepts aarch64_sve_reg_or_dup_imm and aarch64_simd_reg_or_zero
7597         for operands 1 and 2 respectively.  Force operand 2 into a
7598         register if operand 1 is a register.  Fold old define_insn...
7599         (aarch64_sve_dup<mode>_const): ...and this define_insn...
7600         (*vcond_mask_<mode><vpred>): ...into this new pattern.  Handle
7601         floating-point constants that can be moved as integers.  Add
7602         alternatives for MOV /M and FMOV /M.
7603         (vcond<mode><v_int_equiv>, vcondu<mode><v_int_equiv>)
7604         (vcond<mode><v_fp_equiv>): Accept nonmemory_operand for operands
7605         1 and 2 respectively.
7606         * config/aarch64/constraints.md (Ufc): Handle vectors as well
7607         as scalars.
7608         (vss): New constraint.
7610 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7612         * config/aarch64/predicates.md (aarch64_sve_float_maxmin_immediate)
7613         (aarch64_sve_float_maxmin_operand): New predicates.
7614         * config/aarch64/constraints.md (vsB): New constraint.
7615         (vsM): Fix typo.
7616         * config/aarch64/iterators.md (sve_pred_fp_rhs2_operand): Use
7617         aarch64_sve_float_maxmin_operand for UNSPEC_COND_FMAXNM and
7618         UNSPEC_COND_FMINNM.
7619         * config/aarch64/aarch64-sve.md (<maxmin_uns><SVE_F:mode>3):
7620         Use aarch64_sve_float_maxmin_operand for operand 2.
7621         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Likewise.
7622         Add alternatives for the constant forms.
7624 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7626         * config/aarch64/constraints.md (vsb): New constraint.
7627         (vsm): Generalize description.
7628         * config/aarch64/iterators.md (SVE_INT_BINARY_IMM): New code
7629         iterator.
7630         (sve_imm_con): Handle smax, smin, umax and umin.
7631         (sve_imm_prefix): New code attribute.
7632         * config/aarch64/predicates.md (aarch64_sve_vsb_immediate)
7633         (aarch64_sve_vsb_operand): New predicates.
7634         (aarch64_sve_mul_immediate): Rename to...
7635         (aarch64_sve_vsm_immediate): ...this.
7636         (aarch64_sve_mul_operand): Rename to...
7637         (aarch64_sve_vsm_operand): ...this.
7638         * config/aarch64/aarch64-sve.md (mul<mode>3): Generalize to...
7639         (<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...this.
7640         (*mul<mode>3, *post_ra_mul<mode>3): Generalize to...
7641         (*<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3)
7642         (*post_ra_<SVE_INT_BINARY_IMM:optab><SVE_I:mode>3): ...these and
7643         add movprfx support for the immediate alternatives.
7644         (<su><maxmin><mode>3, *<su><maxmin><mode>3): Delete in favor
7645         of the above.
7646         (*<SVE_INT_BINARY_SD:optab><SVE_SDI:mode>3): Fix incorrect predicate
7647         for operand 3.
7649 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7651         * config/aarch64/predicates.md (aarch64_simd_imm_one): New predicate.
7652         * config/aarch64/aarch64-sve.md (*cnot<mode>): New pattern.
7653         (*cond_cnot<mode>_2, *cond_cnot<mode>_any): Likewise.
7655 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7657         * config/aarch64/iterators.md (SVE_INT_UNARY): Add clrsb and clz.
7658         (optab, sve_int_op): Handle them.
7659         * config/aarch64/aarch64-sve.md: Expand comment.
7661 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7663         * config/aarch64/predicates.md (const_1_to_3_operand): New predicate.
7664         * config/aarch64/aarch64-sve.md (*aarch64_adr_uxtw)
7665         (*aarch64_adr<mode>_shift, *aarch64_adr_shift_uxtw): New patterns.
7667 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7669         * config/aarch64/aarch64.c (aarch64_expand_sve_const_pred_eor)
7670         (aarch64_expand_sve_const_pred_trn): New functions.
7671         (aarch64_expand_sve_const_pred_1): Add a recurse_p parameter and
7672         use the above functions when the parameter is true.
7673         (aarch64_expand_sve_const_pred): Update call accordingly.
7674         * config/aarch64/aarch64-sve.md (*aarch64_sve_<perm_insn><mode>):
7675         Rename to...
7676         (@aarch64_sve_<perm_insn><mode>): ...this.
7678 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7680         * config/aarch64/aarch64-protos.h (aarch64_sve_same_pred_for_ptest_p):
7681         Declare.
7682         * config/aarch64/aarch64.c (aarch64_sve_same_pred_for_ptest_p)
7683         (aarch64_sve_emit_int_cmp): New functions.
7684         (aarch64_convert_sve_data_to_pred): Use aarch64_sve_emit_int_cmp.
7685         (aarch64_sve_cmp_operand_p, aarch64_emit_sve_ptrue_op_cc): Delete.
7686         (aarch64_expand_sve_vec_cmp_int): Use aarch64_sve_emit_int_cmp.
7687         * config/aarch64/aarch64.md (UNSPEC_MERGE_PTRUE): Delete.
7688         (UNSPEC_PRED_Z): New unspec.
7689         (set_clobber_cc_nzc): Delete.
7690         * config/aarch64/aarch64-sve.md: Add a block comment about
7691         UNSPEC_PRED_Z.
7692         (*cmp<SVE_INT_CMP:cmp_op><mode>): Rename to...
7693         (@aarch64_pred_cmp<SVE_INT_CMP:cmp_op><mode>): ...this, replacing
7694         the old pattern with that name.  Use UNSPEC_PRED_Z instead of
7695         UNSPEC_MERGE_PTRUE.
7696         (*cmp<SVE_INT_CMP:cmp_op><mode>_cc): Use UNSPEC_PRED_Z instead of
7697         UNSPEC_MERGE_PTRUE.  Use aarch64_sve_same_pred_for_ptest_p to
7698         check for compatible predicates.
7699         (*cmp<cmp_op><SVE_INT_CMP:mode>_ptest): Likewise.
7700         (*cmp<cmp_op><mode>_and): Match a known-ptrue UNSPEC_PRED_Z instead
7701         of UNSPEC_MERGE_PTRUE.  Split into the new form of predicated
7702         comparisons above.
7704 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7706         * config/aarch64/aarch64.md (UNSPEC_PRED_X): New unspec.
7707         * config/aarch64/aarch64-sve.md: Add a section describing it.
7708         (@aarch64_pred_mov<mode>, @aarch64_pred_mov<mode>)
7709         (<SVE_INT_UNARY:optab><mode>2, *<SVE_INT_UNARY:optab><mode>2)
7710         (aarch64_<su>abd<mode>_3, mul<SVE_I:mode>3, *mul<SVE_I:mode>3)
7711         (<su>mul<mode>3_highpart, *<su>mul<mode>3_highpart)
7712         (<SVE_INT_BINARY:optab><mode>3, *<SVE_INT_BINARY:optab><mode>3)
7713         (*bic<mode>3, v<ASHIFT:optab><mode>3, *v<ASHIFT:optab><mode>3)
7714         (<su><maxmin><mode>3, *<su><maxmin><mode>3, *madd<SVE_I:mode>)
7715         (*msub<SVE_I:mode>3, *aarch64_sve_rev64<mode>)
7716         (*aarch64_sve_rev32<mode>, *aarch64_sve_rev16vnx16qi): Use
7717         UNSPEC_PRED_X instead of UNSPEC_MERGE_PTRUE.
7718         * config/aarch64/aarch64-sve2.md (<u>avg<mode>3_floor)
7719         (<u>avg<mode>3_ceil, *<sur>h<addsub><mode>): Likewise.
7720         * config/aarch64/aarch64.c (aarch64_split_sve_subreg_move)
7721         (aarch64_evpc_rev_local): Update accordingly.
7723 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7725         * config/aarch64/iterators.md (VNx4SI_ONLY, VNx2DF_ONLY): New mode
7726         iterators.
7727         (SVE_BHSI, SVE_SDI): Tweak comment.
7728         (SVE_HSDI): Likewise.  Fix definition.
7729         (SVE_SDF): New mode iterator.
7730         (elem_bits): New mode attribute.
7731         (SVE_COND_FCVT): New int iterator.
7732         * config/aarch64/aarch64-sve.md
7733         (*<SVE_COND_ICVTF:optab>v16hsf<SVE_HSDI:mode>2)
7734         (*<SVE_COND_ICVTF:optab>vnx4sf<SVE_SDI:mode>2)
7735         (*<SVE_COND_ICVTF:optab>vnx2df<SVE_SDI:mode>2): Merge into...
7736         (*aarch64_sve_<SVE_COND_ICVTF:optab>_nontrunc<SVE_F:mode><SVE_HSDI:mode>)
7737         (*aarch64_sve_<SVE_COND_ICVTF:optab>_trunc<VNx2DF_ONLY:mode><VNx4SI_ONLY:mode>):
7738         ...these new patterns.
7739         (*<SVE_COND_FCVTI:optab><SVE_HSDI:mode>vnx8hf2)
7740         (*<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx4sf2)
7741         (aarch64_sve_<SVE_COND_FCVTI:optab><SVE_SDI:mode>vnx2df2):
7742         Merge into...
7743         (*aarch64_sve_<SVE_COND_FCVTI:optab>_nonextend<SVE_HSDI:mode><SVE_F:mode>)
7744         (aarch64_sve_<SVE_COND_FCVTI:optab>_extend<VNx4SI_ONLY:mode><VNx2DF_ONLY:mode>):
7745         ...these new patterns.
7746         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Update accordingly.
7747         (*trunc<Vwide><SVE_SDF:mode>2): Replace with...
7748         (*aarch64_sve_<SVE_COND_FCVT:optab>_trunc<SVE_SDF:mode><SVE_HSF:mode>):
7749         ...this new pattern.
7750         (aarch64_sve_extend<SVE_HSDF:mode><Vwide>2): Replace with...
7751         (aarch64_sve_<SVE_COND_FCVT:optab>_nontrunc<SVE_HSF:mode><SVE_SDF:mode>):
7752         ...this new pattern.
7753         (vec_unpacks_<perm_hilo>_<mode>): Update accordingly.
7755 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7757         * config/aarch64/aarch64.md (UNSPEC_FLOAT_CONVERT): Delete.
7758         * config/aarch64/iterators.md (UNSPEC_COND_FCVT, UNSPEC_COND_FCVTZS)
7759         (UNSPEC_COND_FCVTZU, UNSPEC_COND_SCVTF, UNSPEC_COND_UCVTF): New
7760         unspecs.
7761         (optab, su): Handle them.
7762         (SVE_COND_FCVTI, SVE_COND_ICVTF): New int iterators.
7763         * config/aarch64/aarch64-sve.md
7764         (<fix_trunc_optab><SVE_F:mode><v_int_equiv>2): Replace with...
7765         (<SVE_COND_FCVTI:optab><SVE_F:mode><v_int_equiv>2): ...this.
7766         (*<fix_trunc_optab>v16hsf<:SVE_HSDImode>2): Replace with...
7767         (*<SVE_COND_FCVTI:optab>v16hsf<SVE_F:mode>2): ...this.
7768         (*<fix_trunc_optab>vnx4sf<SVE_SDI:mode>2): Replace with...
7769         (*<SVE_COND_FCVTI:optab>vnx4sf<SVE_SDI:mode>2): ...this.
7770         (*<fix_trunc_optab>vnx2df<SVE_SDI:mode>2): Replace with...
7771         (*<SVE_COND_FCVTI:optab>vnx2df<SVE_SDI:mode>2): ...this.
7772         (vec_pack_<su>fix_trunc_vnx2df): Use SVE_COND_FCVTI instead of
7773         FIXUORS.
7774         (<FLOATUORS:optab><v_int_equiv><SVE_F:mode>2): Replace with...
7775         (<SVE_COND_ICVTF:optab><v_int_equiv><SVE_F:mode>2): ...this.
7776         (*<FLOATUORS:optab><SVE_HSDI:mode>vnx8hf2): Replace with...
7777         (*<SVE_COND_ICVTF:optab><SVE_HSDI:mode>vnx8hf2): ...this.
7778         (*<FLOATUORS:optab><SVE_SDI:mode>vnx4sf2): Replace with...
7779         (*<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx4sf2): ...this.
7780         (aarch64_sve_<FLOATUORS:optab><SVE_SDI:mode>vnx2df2): Replace with...
7781         (aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2): ...this.
7782         (vec_unpack<su_optab>_float_<perm_hilo>_vnx4si): Pass a GP strictness
7783         operand to aarch64_sve_<SVE_COND_ICVTF:optab><SVE_SDI:mode>vnx2df2.
7784         (vec_pack_trunc_<SVE_HSF:Vwide>, *trunc<Vwide><SVE_HSF:mode>2)
7785         (aarch64_sve_extend<mode><Vwide>2): Use UNSPEC_COND_FCVT instead
7786         of UNSPEC_FLOAT_CONVERT.
7787         (vec_unpacks_<perm_hilo>_<mode>): Pass a GP strictness operand to
7788         aarch64_sve_extend<mode><Vwide>2.
7790 2019-08-14  Richard Biener  <rguenther@suse.de>
7792         PR target/91154
7793         * config/i386/i386-features.c
7794         (dimode_scalar_chain::compute_convert_gain): Compute and dump
7795         individual instruction gain.  Fix reg-reg copy GRP cost.  Use
7796         ix86_cost->sse_op for vector instruction costs.
7798 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7800         * config/aarch64/iterators.md (UNSPEC_COND_FCMUO): New unspec.
7801         (cmp_op): Handle it.
7802         (SVE_COND_FP_CMP): Rename to...
7803         (SVE_COND_FP_CMP_I0): ...this.
7804         (SVE_FP_CMP): Remove.
7805         * config/aarch64/aarch64-sve.md
7806         (*fcm<SVE_FP_CMP:cmp_op><SVE_F:mode>): Replace with...
7807         (*fcm<SVE_COND_FP_CMP_I0:cmp_op><SVE_F:mode>): ...this new pattern,
7808         using unspecs to represent the comparison.
7809         (*fcmuo<SVE_F:mode>): Use UNSPEC_COND_FCMUO.
7810         (*fcm<cmp_op><mode>_and_combine, *fcmuo<mode>_and_combine): Update
7811         accordingly.
7812         * config/aarch64/aarch64.c (aarch64_emit_sve_ptrue_op): Delete.
7813         (aarch64_unspec_cond_code): Move after integer code.  Handle
7814         UNORDERED.
7815         (aarch64_emit_sve_predicated_cond): Replace with...
7816         (aarch64_emit_sve_fp_cond): ...this new function.
7817         (aarch64_emit_sve_or_conds): Replace with...
7818         (aarch64_emit_sve_or_fp_conds): ...this new function.
7819         (aarch64_emit_sve_inverted_cond): Replace with...
7820         (aarch64_emit_sve_invert_fp_cond): ...this new function.
7821         (aarch64_expand_sve_vec_cmp_float): Update accordingly.
7823 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7825         * config/aarch64/iterators.md (SVE_HSD): New mode iterator.
7826         (V_FP_EQUIV, v_fp_equiv): Handle VNx8HI and VNx8HF.
7827         * config/aarch64/aarch64-sve.md (vcond<mode><v_fp_equiv>): Use
7828         SVE_HSD instead of SVE_SD.
7830 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7831             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7833         * config/aarch64/iterators.md (SVE_COND_FP_BINARY_REG): New int
7834         iterator.
7835         (sve_pred_fp_rhs1_operand, sve_pred_fp_rhs1_operand): New int
7836         attributes.
7837         * config/aarch64/aarch64-sve.md (add<SVE_F:mode>3, sub<SVE_F:mode>3)
7838         (mul<SVE_F:mode>3, div<SVE_F:mode>3)
7839         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): Merge into...
7840         (<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this new expander.
7841         (*div<SVE_F:mode>3): Generalize to...
7842         (*<SVE_COND_FP_BINARY:optab><SVE_F:mode>3): ...this.
7844 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7845             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7847         * config/aarch64/aarch64.md (SVE_RELAXED_GP, SVE_STRICT_GP): New
7848         constants.
7849         * config/aarch64/predicates.md (aarch64_sve_gp_strictness): New
7850         predicate.
7851         * config/aarch64/aarch64-protos.h (aarch64_sve_pred_dominates_p):
7852         Declare.
7853         * config/aarch64/aarch64.c (aarch64_sve_pred_dominates_p): New
7854         function.
7855         * config/aarch64/aarch64-sve.md: Add a block comment about the
7856         handling of predicated FP operations.
7857         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2, add<SVE_F:mode>3)
7858         (sub<SVE_F:mode>3, mul<SVE_F:mode>3, div<SVE_F:mode>3)
7859         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7860         (<SVE_COND_FP_MAXMIN_PUBLIC:maxmin_uns><SVE_F:mode>3)
7861         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): Add an SVE_RELAXED_GP
7862         operand.
7863         (cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>)
7864         (cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>): Add an SVE_STRICT_GP
7865         operand.
7866         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2)
7867         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_2)
7868         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_3)
7869         (*cond_<SVE_COND_FP_BINARY:optab><SVE_F:mode>_any)
7870         (*fabd<SVE_F:mode>3, *div<SVE_F:mode>3)
7871         (*<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3)
7872         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
7873         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_2)
7874         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_4)
7875         (*cond_<SVE_COND_FP_TERNARY:optab><SVE_F:mode>_any): Match the
7876         strictness operands.  Use aarch64_sve_pred_dominates_p to check
7877         whether the predicate on the conditional operation is suitable
7878         for merging.  Split patterns into the canonical equal-predicate form.
7879         (*add<SVE_F:mode>3, *sub<SVE_F:mode>3, *mul<SVE_F:mode>3): Likewise.
7880         Restrict the unpredicated alternatives to SVE_RELAXED_GP.
7882 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7883             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7885         * config/aarch64/aarch64-sve.md (add<mode>3, *add<mode>3)
7886         (sub<mode>3, *sub<mode>3, *fabd<mode>3, mul<mode>3, *mul<mode>3)
7887         (div<mode>3, *div<mode>3): Use SVE_COND_FP_* unspecs instead of
7888         rtx codes.
7889         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_3)
7890         (*cond_<optab><mode>_any): Add the predicate to the SVE_COND_FP_*
7891         unspecs.
7893 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7894             Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
7896         * config/aarch64/aarch64-sve.md (bic<mode>3): Rename to...
7897         (*bic<SVE_I:mode>3): ...this.  Match the form that an SVE inverse
7898         actually has, rather than relying on REG_EQUAL notes.
7899         Make the insn operand order match the SVE operand order.
7900         (*<nlogical><PRED_ALL:mode>3): Make the insn operand order match
7901         the SVE operand order.
7903 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7905         * config/aarch64/aarch64.c (aarch64_target_reg): New function.
7906         (aarch64_emit_set_immediate): Likewise.
7907         (aarch64_ptrue_reg): Build a VNx16BI constant and then bitcast it.
7908         (aarch64_pfalse_reg): Likewise.
7909         (aarch64_convert_sve_data_to_pred): New function.
7910         (aarch64_sve_move_pred_via_while): Take an optional target register
7911         and the required register mode.
7912         (aarch64_expand_sve_const_pred_1): New function.
7913         (aarch64_expand_sve_const_pred): Likewise.
7914         (aarch64_expand_mov_immediate): Build an all-true predicate
7915         if the significant bits of the immediate are all true.  Use
7916         aarch64_expand_sve_const_pred for all compile-time predicate constants.
7917         (aarch64_mov_operand_p): Force predicate constants to be VNx16BI
7918         before register allocation.
7919         * config/aarch64/aarch64-sve.md (*vec_duplicate<mode>_reg): Use
7920         a VNx16BI PTRUE when splitting the memory alternative.
7921         (vec_duplicate<mode>): Update accordingly.
7922         (*pred_cmp<cmp_op><mode>): Rename to...
7923         (@aarch64_pred_cmp<cmp_op><mode>): ...this.
7925 2019-08-14  Richard Sandiford  <richard.sandiford@arm.com>
7927         * config/aarch64/aarch64-protos.h (aarch64_ptrue_all): Declare.
7928         * config/aarch64/aarch64.c (aarch64_ptrue_all): New function.
7929         * config/aarch64/aarch64.md (UNSPEC_PTEST_PTRUE): Delete.
7930         (UNSPEC_PTEST): New unspec.
7931         (SVE_MAYBE_NOT_PTRUE, SVE_KNOWN_PTRUE): New constants.
7932         * config/aarch64/iterators.md (data_bytes): New mode attribute.
7933         * config/aarch64/predicates.md (aarch64_sve_ptrue_flag): New predicate.
7934         * config/aarch64/aarch64-sve.md: Add a new section describing the
7935         handling of UNSPEC_PTEST.
7936         (pred_<LOGICAL:optab><PRED_ALL:mode>3): Rename to...
7937         (@aarch64_pred_<LOGICAL:optab><PRED_ALL:mode>_z): ...this.
7938         (ptest_ptrue<mode>): Replace with...
7939         (aarch64_ptest<mode>): ...this new pattern.
7940         (cbranch<mode>4): Update after above changes.
7941         (*<LOGICAL:optab><PRED_ALL:mode>3_cc): Use UNSPEC_PTEST instead of
7942         UNSPEC_PTEST_PTRUE.
7943         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_cc): Likewise.
7944         (*cmp<SVE_INT_CMP:cmp_op><SVE_I:mode>_ptest): Likewise.
7945         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): Likewise.
7947 2019-08-14  Xiong Hu Luo  <luoxhu@linux.ibm.com>
7949         PR lto/91287
7950         * builtins.c (builtin_with_linkage_p): New function.
7951         * builtins.h (builtin_with_linkage_p): New function.
7952         * symtab.c (write_symbol): Remove redundant assert.
7953         * lto-streamer-out.c (symtab_node::output_to_lto_symbol_table_p):
7954         Remove FIXME and use builtin_with_linkage_p.
7956 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
7958         PR middle-end/91421
7959         * tree-core.h (function_decl::function_code): Change type to
7960         unsigned int.
7961         * tree.h (DECL_FUNCTION_CODE): Rename old definition to...
7962         (DECL_UNCHECKED_FUNCTION_CODE): ...this.
7963         (DECL_BUILT_IN_CLASS): Make an rvalue macro only.
7964         (DECL_FUNCTION_CODE): New function.  Assert that the built-in class
7965         is BUILT_IN_NORMAL.
7966         (DECL_MD_FUNCTION_CODE, DECL_FE_FUNCTION_CODE): New functions.
7967         (set_decl_built_in_function, copy_decl_built_in_function): Likewise.
7968         (fndecl_built_in_p): Change the type of the "name" argument to
7969         unsigned int.
7970         * builtins.c (expand_builtin): Move DECL_FUNCTION_CODE use
7971         after check for DECL_BUILT_IN_CLASS.
7972         * cgraphclones.c (build_function_decl_skip_args): Use
7973         set_decl_built_in_function.
7974         * ipa-param-manipulation.c (ipa_modify_formal_parameters): Likewise.
7975         * ipa-split.c (split_function): Likewise.
7976         * langhooks.c (add_builtin_function_common): Likewise.
7977         * omp-simd-clone.c (simd_clone_create): Likewise.
7978         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
7979         * config/darwin.c (darwin_init_cfstring_builtins): Likewise.
7980         (darwin_fold_builtin): Use DECL_MD_FUNCTION_CODE instead of
7981         DECL_FUNCTION_CODE.
7982         * fold-const.c (operand_equal_p): Compare DECL_UNCHECKED_FUNCTION_CODE
7983         instead of DECL_FUNCTION_CODE.
7984         * lto-streamer-out.c (hash_tree): Use DECL_UNCHECKED_FUNCTION_CODE
7985         instead of DECL_FUNCTION_CODE.
7986         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
7987         * print-tree.c (print_node): Use DECL_MD_FUNCTION_CODE when
7988         printing DECL_BUILT_IN_MD.  Handle DECL_BUILT_IN_FRONTEND.
7989         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin)
7990         (aarch64_fold_builtin, aarch64_gimple_fold_builtin): Use
7991         DECL_MD_FUNCTION_CODE instead of DECL_FUNCTION_CODE.
7992         * config/aarch64/aarch64.c (aarch64_builtin_reciprocal): Likewise.
7993         * config/alpha/alpha.c (alpha_expand_builtin, alpha_fold_builtin):
7994         (alpha_gimple_fold_builtin): Likewise.
7995         * config/arc/arc.c (arc_expand_builtin): Likewise.
7996         * config/arm/arm-builtins.c (arm_expand_builtin): Likewise.
7997         * config/avr/avr-c.c (avr_resolve_overloaded_builtin): Likewise.
7998         * config/avr/avr.c (avr_expand_builtin, avr_fold_builtin): Likewise.
7999         * config/bfin/bfin.c (bfin_expand_builtin): Likewise.
8000         * config/c6x/c6x.c (c6x_expand_builtin): Likewise.
8001         * config/frv/frv.c (frv_expand_builtin): Likewise.
8002         * config/gcn/gcn.c (gcn_expand_builtin_1): Likewise.
8003         (gcn_expand_builtin): Likewise.
8004         * config/i386/i386-builtins.c (ix86_builtin_reciprocal): Likewise.
8005         (fold_builtin_cpu): Likewise.
8006         * config/i386/i386-expand.c (ix86_expand_builtin): Likewise.
8007         * config/i386/i386.c (ix86_fold_builtin): Likewise.
8008         (ix86_gimple_fold_builtin): Likewise.
8009         * config/ia64/ia64.c (ia64_fold_builtin): Likewise.
8010         (ia64_expand_builtin): Likewise.
8011         * config/iq2000/iq2000.c (iq2000_expand_builtin): Likewise.
8012         * config/mips/mips.c (mips_expand_builtin): Likewise.
8013         * config/msp430/msp430.c (msp430_expand_builtin): Likewise.
8014         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
8015         * config/nios2/nios2.c (nios2_expand_builtin): Likewise.
8016         * config/nvptx/nvptx.c (nvptx_expand_builtin): Likewise.
8017         * config/pa/pa.c (pa_expand_builtin): Likewise.
8018         * config/pru/pru.c (pru_expand_builtin): Likewise.
8019         * config/riscv/riscv-builtins.c (riscv_expand_builtin): Likewise.
8020         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
8021         Likewise.
8022         * config/rs6000/rs6000-call.c (htm_expand_builtin): Likewise.
8023         (altivec_expand_dst_builtin, altivec_expand_builtin): Likewise.
8024         (rs6000_gimple_fold_builtin, rs6000_expand_builtin): Likewise.
8025         * config/rs6000/rs6000.c (rs6000_builtin_md_vectorized_function)
8026         (rs6000_builtin_reciprocal): Likewise.
8027         * config/rx/rx.c (rx_expand_builtin): Likewise.
8028         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
8029         * config/s390/s390.c (s390_expand_builtin): Likewise.
8030         * config/sh/sh.c (sh_expand_builtin): Likewise.
8031         * config/sparc/sparc.c (sparc_expand_builtin): Likewise.
8032         (sparc_fold_builtin): Likewise.
8033         * config/spu/spu-c.c (spu_resolve_overloaded_builtin): Likewise.
8034         * config/spu/spu.c (spu_expand_builtin): Likewise.
8035         * config/stormy16/stormy16.c (xstormy16_expand_builtin): Likewise.
8036         * config/tilegx/tilegx.c (tilegx_expand_builtin): Likewise.
8037         * config/tilepro/tilepro.c (tilepro_expand_builtin): Likewise.
8038         * config/xtensa/xtensa.c (xtensa_fold_builtin): Likewise.
8039         (xtensa_expand_builtin): Likewise.
8041 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8043         PR middle-end/91421
8044         * attribs.c (decl_attributes): Check the DECL_BUILT_IN_CLASS
8045         before the DECL_FUNCTION_CODE.
8046         * calls.c (maybe_warn_alloc_args_overflow): Use fndecl_built_in_p
8047         to check for a BUILT_IN_ALLOCA call.
8048         * ipa-cp.c (ipa_get_indirect_edge_target_1): Likewise for
8049         BUILT_IN_UNREACHABLE.  Don't check for a FUNCTION_TYPE.
8050         * ipa-devirt.c (possible_polymorphic_call_target_p): Likewise.
8051         * ipa-prop.c (try_make_edge_direct_virtual_call): Likewise.
8052         * gimple-ssa-isolate-paths.c (is_addr_local): Check specifically
8053         for BUILT_IN_NORMAL functions.
8054         * trans-mem.c (expand_block_edges): Use gimple_call_builtin_p to
8055         test for BUILT_IN_TM_ABORT.
8056         * tree-ssa-ccp.c (optimize_stack_restore): Use fndecl_built_in_p
8057         to check for a BUILT_IN_STACK_RESTORE call.
8058         (optimize_stdarg_builtin): Remove redundant check for GIMPLE_CALL.
8059         * tree-ssa-threadedge.c
8060         (record_temporary_equivalences_from_stmts_at_dest): Check for a
8061         BUILT_IN_NORMAL decl before checking its DECL_FUNCTION_CODE.
8062         * tree-vect-patterns.c (vect_recog_pow_pattern): Use a positive
8063         test for a BUILT_IN_NORMAL call instead of a negative test for
8064         an internal function call.
8066 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8068         * tree.h (build_vector_a_then_b): Declare.
8069         * tree.c (build_vector_a_then_b): New function.
8070         * fold-const-call.c (fold_while_ult): Likewise.
8071         (fold_const_call): Use it to handle IFN_WHILE_ULT.
8072         * config/aarch64/aarch64-protos.h (AARCH64_FOR_SVPATTERN): New macro.
8073         (aarch64_svpattern): New enum.
8074         * config/aarch64/aarch64-sve.md (mov<PRED_ALL:mode>): Pass
8075         constants through aarch64_expand_mov_immediate.
8076         (*aarch64_sve_mov<PRED_ALL:mode>): Use aarch64_mov_operand rather
8077         than general_operand as the predicate for operand 1.
8078         (while_ult<GPI:mode><PRED_ALL:mode>): Add a '@' marker.
8079         * config/aarch64/aarch64.c (simd_immediate_info::PTRUE): New
8080         insn_type.
8081         (simd_immediate_info::simd_immediate_info): New overload that
8082         takes a scalar_int_mode and an svpattern.
8083         (simd_immediate_info::u): Add a "pattern" field.
8084         (svpattern_token): New function.
8085         (aarch64_get_sve_pred_bits, aarch64_widest_sve_pred_elt_size)
8086         (aarch64_partial_ptrue_length, aarch64_svpattern_for_vl)
8087         (aarch64_sve_move_pred_via_while): New functions.
8088         (aarch64_expand_mov_immediate): Try using
8089         aarch64_sve_move_pred_via_while for predicates that contain N ones
8090         followed by M zeros but that do not correspond to a VLnnn pattern.
8091         (aarch64_sve_pred_valid_immediate): New function.
8092         (aarch64_simd_valid_immediate): Use it instead of dealing directly
8093         with PTRUE and PFALSE.
8094         (aarch64_output_sve_mov_immediate): Handle new simd_immediate_info
8095         forms.
8097 2019-08-13 Iain Sandoe <iain@sandoe.co.uk>
8099         * config/darwin.c (machopic_indirect_call_target): Rename symbol stub
8100         flag.
8101         (darwin_override_options): Likewise.
8102         * config/darwin.h: Likewise.
8103         * config/darwin.opt: Likewise.
8104         * config/i386/i386.c (output_pic_addr_const): Likewise.
8105         * config/rs6000/darwin.h: Likewise.
8106         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Likewise.
8107         * config/i386/darwin.h (TARGET_MACHO_PICSYM_STUBS): Rename to ...
8108         ... this TARGET_MACHO_SYMBOL_STUBS.
8109         (FUNCTION_PROFILER):Likewise.
8110         * config/i386/i386.h: Likewise.
8112 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8114         * config/i386/i386-expand.c (ix86_expand_vector_extract)
8115         <case E_V2SImode>: Use vec_extr path for
8116         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8117         <case E_V8QImode>: Ditto.
8118         * config/i386/mmx.md (*mmx_pextrw_zext): Rename from mmx_pextrw.
8119         Use SWI48 mode iterator.  Use %k to output operand 0.
8120         (*mmx_pextrw): New insn pattern.
8121         (*mmx_pextrb): Ditto.
8122         (*mmx_pextrb_zext): Ditto.
8124 2019-08-13  Jonathan Wakely  <jwakely@redhat.com>
8126         * target.def (libc_has_function, libc_has_fast_function): Improve
8127         documentation strings.
8128         * doc/tm.texi: Regenerate.
8130 2019-08-13  Caroline Tice  <cmtice@google.com>
8132         PR other/91396
8133         * config/gnu-user.h (GNU_USER_TARGET_ENDFILE_SPEC): Only add the
8134         vtv_end.o or vtv_end_preinit.o files if !static.
8136 2019-08-13  Olivier Hainque  <hainque@adacore.com>
8138         * rtl.h (tablejump_casesi_pattern): Move declaration to proper spot.
8140 2019-08-13  Olivier Hainque  <hainque@adacore.com>
8142         * rtlanal.c (tablejump_casesi_pattern): New function, to
8143         determine if a tablejump insn is a casesi dispatcher. Extracted
8144         from patch_jump_insn.
8145         * rtl.h (tablejump_casesi_pattern): Declare.
8146         * cfgrtl.c (patch_jump_insn): Use it.
8147         * dwarf2cfi.c (create_trace_edges): Use it.
8149 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
8151         PR target/81800
8152         * gcc/config/aarch64/aarch64.md (lrint): Disable lrint pattern if GPF
8153         operand is larger than a long int.
8155 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8157         * machmode.h (opt_mode::else_mode): New function.
8158         (opt_mode::else_blk): Use it.
8159         * config/aarch64/aarch64-protos.h (aarch64_vq_mode): Declare.
8160         (aarch64_full_sve_mode, aarch64_sve_ld1rq_operand_p): Likewise.
8161         (aarch64_gen_stepped_int_parallel): Likewise.
8162         (aarch64_stepped_int_parallel_p): Likewise.
8163         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8164         argument.
8165         * config/aarch64/aarch64.c
8166         (aarch64_expand_sve_widened_duplicate): Delete.
8167         (aarch64_expand_sve_dupq, aarch64_expand_sve_ld1rq): New functions.
8168         (aarch64_expand_sve_const_vector): Rewrite to handle more cases.
8169         (aarch64_expand_mov_immediate): Remove the optional gen_vec_duplicate
8170         argument.  Use early returns in the !CONST_INT_P handling.
8171         Pass all SVE data vectors to aarch64_expand_sve_const_vector rather
8172         than handling some inline.
8173         (aarch64_full_sve_mode, aarch64_vq_mode): New functions, split out
8174         from...
8175         (aarch64_simd_container_mode): ...here.
8176         (aarch64_gen_stepped_int_parallel, aarch64_stepped_int_parallel_p)
8177         (aarch64_sve_ld1rq_operand_p): New functions.
8178         * config/aarch64/predicates.md (descending_int_parallel)
8179         (aarch64_sve_ld1rq_operand): New predicates.
8180         * config/aarch64/constraints.md (UtQ): New constraint.
8181         * config/aarch64/aarch64.md (UNSPEC_REINTERPRET): New unspec.
8182         * config/aarch64/aarch64-sve.md (mov<SVE_ALL:mode>): Remove the
8183         gen_vec_duplicate from call to aarch64_expand_mov_immediate.
8184         (@aarch64_sve_reinterpret<mode>): New expander.
8185         (*aarch64_sve_reinterpret<mode>): New pattern.
8186         (@aarch64_vec_duplicate_vq<mode>_le): New pattern.
8187         (@aarch64_vec_duplicate_vq<mode>_be): Likewise.
8188         (*sve_ld1rq<Vesize>): Replace with...
8189         (@aarch64_sve_ld1rq<mode>): ...this new pattern.
8191 2019-08-13  Wilco Dijkstra  <wdijkstr@arm.com>
8193         * config/aarch64/aarch64.c (generic_tunings): Set function alignment to
8194         16:12.
8196 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8198         * config/msp430/driver-msp430.c (msp430_set_driver_var): New.
8199         * config/msp430/msp430-devices.c (canonicalize_path_dirsep): New.
8200         (msp430_check_path_for_devices): New.
8201         (parse_devices_csv_1): New.
8202         (parse_devices_csv): New.
8203         (msp430_extract_mcu_data): Try to find devices.csv and search for the
8204         MCU data in devices.csv before using the hard-coded data.
8205         Warn if devices.csv isn't found and the MCU wasn't found in the
8206         hard-coded data either.
8207         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Call
8208         msp430_set_driver_var for -mno-warn-devices-csv and -mdevices-csv-loc.
8209         Search for devices.csv on -I and -L paths.
8210         (EXTRA_SPEC_FUNCTIONS): Add msp430_check_path_for_devices and
8211         msp430_set_driver_var.
8212         * config/msp430/msp430.opt: Add -mwarn-devices-csv and
8213         -mdevices-csv-loc=.
8214         * doc/invoke.texi (-mmcu): Document that -I and -L paths are
8215         searched for devices.csv.
8216         (mwarn-devices-csv): Document option.
8218 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8220         * config/aarch64/aarch64-protos.h (aarch64_output_ptrue): Delete.
8221         * config/aarch64/aarch64-sve.md (*aarch64_sve_mov<PRED_ALL:mode>):
8222         Use a single Dn alternative instead of separate Dz and Dm
8223         alternatives.  Use aarch64_output_sve_move_immediate.
8224         * config/aarch64/aarch64.c (aarch64_sve_element_int_mode): New
8225         function.
8226         (aarch64_simd_valid_immediate): Fill in the simd_immediate_info
8227         for predicates too.
8228         (aarch64_output_sve_mov_immediate): Handle predicate modes.
8229         (aarch64_output_ptrue): Delete.
8231 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8233         * config/aarch64/aarch64.c (simd_immediate_info::insn_type): Add
8234         INDEX.
8235         (simd_immediate_info::value, simd_immediate_info::step)
8236         (simd_immediate_info::modifier, simd_immediate_info::shift): Replace
8237         with...
8238         (simd_immediate_info::u): ...this new union.
8239         (simd_immediate_info::simd_immediate_info): Update accordingly.
8240         (aarch64_output_simd_mov_immediate): Likewise.
8241         (aarch64_output_sve_mov_immediate): Likewise.
8243 2019-08-13  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
8245         * config.gcc (msp430*-*-*): Add msp430-devices.o to extra_objs and
8246         extra_gcc_objs.
8247         * config/msp430/driver-msp430.c: Remove msp430_mcu_data.
8248         (msp430_select_cpu): New spec function.
8249         (msp430_select_hwmult_lib): Use msp430_extract_mcu_data to extract
8250         MCU data.
8251         * config/msp430/msp430-devices.c: New file.
8252         * config/msp430/msp430-devices.h: New file.
8253         * config/msp430/msp430.c: Remove msp430_mcu_data.
8254         (msp430_option_override): Use msp430_extract_mcu_data to extract
8255         MCU data.
8256         (msp430_use_f5_series_hwmult): Likewise.
8257         (use_32bit_hwmult): Likewise.
8258         (msp430_no_hwmult): Likewise.
8259         * config/msp430/msp430.h (ASM_SPEC): Don't pass -mmcu to the
8260         assembler.
8261         (DRIVER_SELF_SPECS): Call msp430_select_cpu if -mmcu is used without
8262         and -mcpu option.
8263         (EXTRA_SPEC_FUNCTIONS): Add msp430_select_cpu.
8264         * config/msp430/t-msp430: Add rule to build msp430-devices.o.
8265         Remove hard-coded MCU multilib data.
8267 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8269         * config/aarch64/aarch64.c (aarch64_classify_vector_mode): Switch
8270         based on the mode instead of testing properties of it.
8272 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8274         * doc/md.texi: Document the x and y constraints for AArch64.
8275         * config/aarch64/aarch64.h (FP_LO8_REGNUM_P): New macro.
8276         (FP_LO8_REGS): New reg_class.
8277         (REG_CLASS_NAMES, REG_CLASS_CONTENTS): Add an entry for FP_LO8_REGS.
8278         * config/aarch64/aarch64.c (aarch64_hard_regno_nregs)
8279         (aarch64_regno_regclass, aarch64_class_max_nregs): Handle FP_LO8_REGS.
8280         * config/aarch64/predicates.md (aarch64_simd_register): Use
8281         FP_REGNUM_P instead of checking the classes manually.
8282         * config/aarch64/constraints.md (y): New constraint.
8284 2019-08-13  Richard Sandiford  <richard.sandiford@arm.com>
8286         * config/aarch64/iterators.md (perm_insn): Include the "1"/"2" suffix.
8287         (perm_hilo): Remove UNSPEC_ZIP*, UNSEPC_TRN* and UNSPEC_UZP*.
8288         * config/aarch64/aarch64-simd.md
8289         (aarch64_<PERMUTE:perm_insn><PERMUTE:perm_hilo><mode>): Rename to..
8290         (aarch64_<PERMUTE:perm_insn><mode>): ...this and remove perm_hilo
8291         from the asm template.
8292         * config/aarch64/aarch64-sve.md
8293         (aarch64_<perm_insn><perm_hilo><PRED_ALL:mode>): Rename to..
8294         (aarch64_<perm_insn><PRED_ALL:mode>): ...this and remove perm_hilo
8295         from the asm template.
8296         (aarch64_<perm_insn><perm_hilo><SVE_ALL:mode>): Rename to..
8297         (aarch64_<perm_insn><SVE_ALL:mode>): ...this and remove perm_hilo
8298         from the asm template.
8299         * config/aarch64/aarch64-simd-builtins.def: Update comment.
8301 2019-08-13  Martin Liska  <mliska@suse.cz>
8303         * value-prof.c (gimple_ic_transform): Add new line.
8304         Print details with MSG_NOTE.
8306 2019-08-13  Martin Liska  <mliska@suse.cz>
8308         * doc/invoke.texi: Document automatic detection of jobserver.
8309         * lto-wrapper.c (run_gcc): Detect jobserver always.
8311 2019-08-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8313         * config/i386/i386-expand.c (ix86_expand_vector_set)
8314         <case E_V2SImode>: Use vec_merge path for
8315         TARGET_MMX_WITH_SSE && TARGET_SSE4_1.
8316         <case E_V8QImode>: Ditto.
8317         * config/i386/mmx.md (*mmx_pinsrd): New insn pattern.
8318         (*mmx_pinsrb): Ditto.
8320 2019-08-12  Jakub Jelinek  <jakub@redhat.com>
8322         PR target/83250
8323         PR target/91340
8324         * config/i386/avxintrin.h (_mm256_zextpd128_pd256,
8325         _mm256_zextps128_ps256, _mm256_zextsi128_si256): New intrinsics.
8326         * config/i386/avx512fintrin.h (_mm512_zextpd128_pd512,
8327         _mm512_zextps128_ps512, _mm512_zextsi128_si512, _mm512_zextpd256_pd512,
8328         _mm512_zextps256_ps512, _mm512_zextsi256_si512): Likewise.
8330 2019-08-12  Richard Biener  <rguenther@suse.de>
8332         PR lto/91375
8333         * tree.c (free_lang_data_in_type): Do not free TYPE_BINFO dependent on
8334         flag_devirtualize.
8336 2019-08-12  Richard Biener  <rguenther@suse.de>
8338         PR driver/91130
8339         * lto-wrapper.c (get_options_from_collect_gcc_options): Remove
8340         lang_mask option, always use CL_DRIVER.
8341         (get_options_from_collect_gcc_options): Adjust.
8342         (find_and_merge_options): Likewise.
8343         (run_gcc): Likewise.
8345 2019-08-12  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
8347         * ipa-predicate.c (add_condition): Restore inverted test.
8349 2019-08-10  Jakub Jelinek  <jakub@redhat.com>
8351         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_DEVICE_TYPE.
8352         (enum omp_clause_device_type_kind): New enum.
8353         (struct tree_omp_clause): Add subcode.device_type_kind.
8354         * tree.h (OMP_CLAUSE_DEVICE_TYPE_KIND): Define.
8355         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8356         for device_type clause.
8357         (walk_tree_1): Handle OMP_CLAUSE_DEVICE_TYPE.
8358         * tree-pretty-print.c (dump_omp_clause): Likewise.
8360         PR target/91408
8361         * config/i386/mmx.md (usadv8qi): Use register_operand instead of
8362         vector_operand.
8364 2019-08-09  Vladimir Makarov  <vmakarov@redhat.com>
8366         * reload1.c (finish_spills): Do not check ira_conflicts_p when
8367         handling spilled pseudos.
8369 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
8371         PR target/91386
8372         * config/aarch64/aarch64.c (aarch64_gen_adjusted_ldpstp): Use copy_rtx
8373         to preserve the contents of the original insns.
8375 2019-08-09  Richard Earnshaw  <rearnsha@arm.com>
8377         * config/arm/arm.md (addsi3_compare_op1): Add 16-bit thumb-2 variants.
8378         (addsi3_compare_op2): Likewise.
8380 2019-08-09  Martin Liska  <mliska@suse.cz>
8382         * alias.c (alias_ptr_types_compatible_p): Strengten
8383         type comparison in LTO mode.
8385 2019-08-09  Richard Sandiford  <richard.sandiford@arm.com>
8387         PR middle-end/90313
8388         * tree-tailcall.c (find_tail_calls): Reject calls that might
8389         read from an escaped RESULT_DECL.
8391 2019-08-09  Martin Liska  <mliska@suse.cz>
8393         * doc/invoke.texi: Document the option value.
8394         * lto-wrapper.c (run_gcc): Set auto_parallel
8395         only with -flto=auto.
8397 2019-08-09  Martin Liska  <mliska@suse.cz>
8399         * opts.c (common_handle_option): Error for an invalid argument
8400         to -flto=.
8402 2019-08-09  Martin Liska  <mliska@suse.cz>
8404         * ipa-icf.c (sem_function::merge): Define AUTO_DUMP_SCOPE and
8405         use dump_printf to report optimization.
8406         (sem_variable::merge): Likwise.
8407         (sem_item_optimizer::merge_classes): Use dump_printf to report
8408         ICF hits.
8410 2019-08-09  Martin Liska  <mliska@suse.cz>
8412         * value-prof.c (gimple_divmod_fixed_value_transform):
8413         Use dump_printf_loc.
8414         (gimple_mod_pow2_value_transform): Likewise.
8415         (gimple_mod_subtract_transform): Likewise.
8416         (init_node_map): Likewise.
8417         (gimple_ic_transform): Likewise.
8418         (gimple_stringops_transform): Likewise.
8420 2019-08-08  Mihailo Stojanovic  <mistojanovic@wavecomp.com>
8422         * doc/extend.texi: Add const qualifier to ld intrinsics.
8424 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8426         * config/rs6000/dfp.md (D64_D128): Rename to ...
8427         (DDTD): ... this, throughout.
8428         (dfp_suffix): Rename to ...
8429         (q): ... this, throughout.
8431 2019-08-08  Segher Boessenkool  <segher@kernel.crashing.org>
8433         * config/rs6000/dfp.md (D64_D128): Move earlier in the file.
8434         (dfp_suffix): Ditto.
8435         (adddd3, addtd3): Merge to ...
8436         (add<mode>3 for D64_D128): ... this.
8437         (subdd3, subtd3): Merge to ...
8438         (sub<mode>3 for D64_D128): ... this.
8439         (muldd3, multd3): Merge to ...
8440         (mul<mode>3 for D64_D128): ... this.
8441         (divdd3, divtd3): Merge to ...
8442         (div<mode>3 for D64_D128): ... this.
8443         (*cmpdd_internal1, *cmptd_internal1): Merge to ...
8444         (*cmp<mode>_internal1 for D64_D128): ... this.
8445         (ftruncdd2, ftrunctd2): Merge to ...
8446         (ftrunc<mode>2 for D64_D128): ... this.
8447         (fixdddi2, fixtddi2): Merge to ...
8448         (fix<mode>di2 for D64_D128): ... this.
8450 2019-08-08  Jim Wilson  <jimw@sifive.com>
8452         PR target/91229
8453         * config/riscv/riscv.c (riscv_flatten_aggregate_field): New arg
8454         ignore_zero_width_bit_field_p.  Skip zero size bitfields when true.
8455         Pass into recursive call.
8456         (riscv_flatten_aggregate_argument): New arg.  Pass to
8457         riscv_flatten_aggregate_field.
8458         (riscv_pass_aggregate_in_fpr_pair_p): New local warned.  Call
8459         riscv_flatten_aggregate_argument twice, with false and true as last
8460         arg.  Process result twice.  Compare results and warn if different.
8461         (riscv_pass_aggregate_in_fpr_and_gpr_p): Likewise.
8463 2019-08-08  Martin Liska  <mliska@suse.cz>
8465         PR bootstrap/91352
8466         * gcc.c (driver::detect_jobserver): Use is_valid_fd.
8467         * lto-wrapper.c (jobserver_active_p): Likewise.
8469 2019-08-08  Martin Liska  <mliska@suse.cz>
8471         * cgraphclones.c (set_new_clone_decl_and_node_flags): Drop
8472         IS_OPERATOR_NEW and IS_OPERATOR_DELETE.
8473         (create_version_clone_with_body): Likewise.
8475 2019-08-08  Jakub Jelinek  <jakub@redhat.com>
8477         * gimplify.c (omp_add_variable): Use GOVD_PRIVATE | GOVD_EXPLICIT
8478         for VLA helper variables on target data even if not GOVD_FIRSTPRIVATE.
8479         (gimplify_scan_omp_clauses): For OMP_CLAUSE_USE_DEVICE_* use just
8480         GOVD_EXPLICIT flags.
8481         (gimplify_omp_workshare): For OMP_TARGET_DATA move all
8482         OMP_CLAUSE_USE_DEVICE_* clauses to the end of clauses chain.
8483         * omp-low.c (scan_sharing_clauses): For OMP_CLAUSE_USE_DEVICE_*
8484         call install_var_field with mask 11 instead of 3.
8485         (lower_omp_target): For OMP_CLAUSE_USE_DEVICE_* use pass
8486         (splay_tree_key) &DECL_UID (var) to build_sender_ref instead of var.
8488 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8490         * config/aarch64/constraints.md (Z): Handle floating-point zeros too.
8491         * config/aarch64/predicates.md (aarch64_reg_or_zero): Likewise.
8493 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8495         * config/aarch64/aarch64-sve.md (vec_shl_insert_<mode>): Add
8496         MOVPRFX alternatives.  Make the GPR alternatives more expensive
8497         than the FPR ones.
8499 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8501         * config/aarch64/aarch64-sve.md (fold_extract_last_<mode>):
8502         Disparage the GPR alternative relative to the FPR one.
8503         Fix handling of 8-bit and 16-bit FPR values.
8505 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8507         * config/aarch64/iterators.md (BITWISEV): Delete.
8508         (SVE_INT_REDUCTION, SVE_FP_REDUCTION): New int iterators.
8509         (optab): Handle UNSPEC_UMAXV, UNSPEC_UMINV, UNSPEC_SMAXV,
8510         UNSPEC_SMINV, UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8511         UNSPEC_FMINNMV, UNSPEC_FMINV.
8512         (bit_reduc_op): Delete.
8513         (sve_int_op): New int attribute.
8514         (sve_fp_op): Handle UNSPEC_FADDV, UNSPEC_FMAXNMV, UNSPEC_FMAXV,
8515         UNSPEC_FMINNMV, UNSPEC_FMINV.
8516         * config/aarch64/aarch64-sve.md
8517         (reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8518         (*reduc_<MAXMINV:maxmin_uns>_scal_<SVE_I:mode>)
8519         (reduc_<BITWISEV:optab>_scal_<SVE_I:mode>)
8520         (*reduc_<BITWISEV:optab>_scal_<SVE_I:mode>): Merge into...
8521         (reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>)
8522         (*reduc_<SVE_INT_REDUCTION:optab>_scal_<SVE_I:mode>): ...these
8523         new patterns.
8524         (reduc_plus_scal_<SVE_F:mode>, *reduc_plus_scal_<SVE_I:mode>)
8525         (reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>)
8526         (*reduc_<FMAXMINV:optab>_scal_<SVE_F:mode>): Merge into...
8527         (reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>)
8528         (*reduc_<SVE_FP_REDUCTION:optab>_scal_<SVE_F:mode>): ...these
8529         new patterns.
8531 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8533         * config/aarch64/aarch64-sve.md (fma<mode>4, *fma<mode>4)
8534         (fnma<mode>4, *fnma<mode>4, fnms<mode>4, *fnms<mode>4)
8535         (fms<mode>4, *fms<mode>4): Replace with...
8536         (<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4)
8537         (*<SVE_COND_FP_TERNARY:optab><SVE_F:mode>4): ...these new patterns.
8538         Use unspecs instead of rtx codes.
8539         (cond_<optab><mode>, *cond_<optab><mode>_2, *cond_<optab><mode>_4)
8540         (*cond_<optab><mode>_any): Add the predicate to SVE_COND_FP_TERNARY.
8542 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8544         * config/aarch64/iterators.md (SVE_COND_FP_MAXMIN_PUBLIC): New
8545         int iterator.
8546         (maxmin_uns_op): Handle UNSPEC_COND_FMAXNM and UNSPEC_COND_FMINNM.
8547         * config/aarch64/aarch64-sve.md
8548         (<FMAXMIN:su><FMAXMIN:maxmin><SVE_F:mode>3): Rename to...
8549         (<SVE_COND_FP_MAXMIN_PUBLIC:optab><SVE_F:mode>3): ...this and
8550         use a single unspec for the rhs.
8551         (*<su><maxmin><mode>3): Delete.
8552         (<maxmin_uns><SVE_F:mode>3): Use a single unspec for the rhs.
8554 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8556         * config/aarch64/iterators.md (UNSPEC_COND_FABS, UNSPEC_COND_FNEG)
8557         (UNSPEC_COND_FRINTA, UNSPEC_COND_FRINTI, UNSPEC_COND_FRINTM)
8558         (UNSPEC_COND_FRINTN, UNSPEC_COND_FRINTP, UNSPEC_COND_FRINTX)
8559         (UNSPEC_COND_FRINTZ, UNSPEC_COND_FSQRT): New unspecs.
8560         (optab, sve_fp_op): Handle them.
8561         (SVE_FP_UNARY): Delete.
8562         (optab): Remove sqrt entry.
8563         (sve_fp_op): Remove neg, abs and sqrt entries.
8564         (SVE_COND_FP_UNARY): New int iterator.
8565         * config/aarch64/aarch64-sve.md (<frint_pattern><mode>2)
8566         (*<frint_pattern><mode>2): Delete.
8567         (<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8568         (<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8569         (*<SVE_FP_UNARY:optab><SVE_F:mode>2): Replace with...
8570         (*<SVE_COND_FP_UNARY:optab><SVE_F:mode>2): ...this.
8572 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8574         * config/aarch64/aarch64-sve.md (*pred_fold_left_plus_<mode>): Delete.
8576 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8578         * config/aarch64/iterators.md (UNSPEC_COND_ADD): Rename to...
8579         (UNSPEC_COND_FADD): ...this.
8580         (UNSPEC_COND_SUB): Rename to...
8581         (UNSPEC_COND_FSUB): ...this.
8582         (UNSPEC_COND_MUL): Rename to...
8583         (UNSPEC_COND_FMUL): ...this.
8584         (UNSPEC_COND_DIV): Rename to...
8585         (UNSPEC_COND_FDIV): ...this.
8586         (UNSPEC_COND_MAX): Rename to...
8587         (UNSPEC_COND_FMAXNM): ...this.
8588         (UNSPEC_COND_MIN): Rename to...
8589         (UNSPEC_COND_FMINNM): ...this.
8590         (UNSPEC_COND_LT): Rename to...
8591         (UNSPEC_COND_FCMLT): ...this.
8592         (UNSPEC_COND_LE): Rename to...
8593         (UNSPEC_COND_FCMLE): ...this.
8594         (UNSPEC_COND_EQ): Rename to...
8595         (UNSPEC_COND_FCMEQ): ...this.
8596         (UNSPEC_COND_NE): Rename to...
8597         (UNSPEC_COND_FCMNE): ...this.
8598         (UNSPEC_COND_GE): Rename to...
8599         (UNSPEC_COND_FCMGE): ...this.
8600         (UNSPEC_COND_GT): Rename to...
8601         (UNSPEC_COND_FCMGT): ...this.
8602         (SVE_COND_FP_BINARY, SVE_COND_FP_CMP, optab, cmp_op, sve_fp_op)
8603         (sve_fp_op_rev): Update accordingly.
8604         * config/aarch64/aarch64.c (aarch64_unspec_cond_code): Likewise.
8606 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8608         * config/aarch64/aarch64-sve.md: Reorganize contents and add
8609         banner comments.
8610         * config/aarch64/check-sve-md.awk: New file.
8611         * config/aarch64/t-aarch64 (s-check-sve-md): New rule.
8612         (insn-conditions.md): Depend on it.
8614 2019-08-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8616         PR target/91385
8617         * config/i386/sse.md (*negsi2_1_zext): Simplify insn pattern.
8618         (*negsi2_cmpz_zext): Ditto.
8620 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8622         * config/aarch64/iterators.md (commutative): Remove.
8624 2019-08-07  Richard Earnshaw  <rearnsha@arm.com>
8626         PR driver/91130
8627         * lto-wrapper.c (find_and_merge_options): Use CL_DRIVER when
8628         processing COLLECT_GCC_OPTIONS.
8629         (run_gcc): Likewise.
8631 2019-08-07  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8633         PR tree-optimization/91109
8634         * lra-remat.c (update_scratch_ops): Remove assignment of the
8635         hard register.
8637 2019-08-07  Richard Sandiford  <richard.sandiford@arm.com>
8639         * data-streamer.h (streamer_write_poly_uint64): Declare.
8640         (streamer_read_poly_uint64): Likewise.
8641         * data-streamer-in.c (streamer_read_poly_uint64): New function.
8642         * data-streamer-out.c (streamer_write_poly_uint64): Likewise.
8643         * ipa-predicate.h (condition::size): Turn into a poly_int64.
8644         (add_condition): Take a poly_int64 size.
8645         * ipa-predicate.c (add_condition): Likewise.
8646         * ipa-prop.h (ipa_load_from_parm_agg): Take a poly_int64 size pointer.
8647         * ipa-prop.c (ipa_load_from_parm_agg): Likewise.
8648         (ipcp_modif_dom_walker::before_dom_children): Update accordingly.
8649         * ipa-fnsummary.c (evaluate_conditions_for_known_args): Handle
8650         condition::size as a poly_int64.
8651         (unmodified_parm_1): Take a poly_int64 size pointer.
8652         (unmodified_parm): Likewise.
8653         (unmodified_parm_or_parm_agg_item): Likewise.
8654         (set_cond_stmt_execution_predicate): Update accordingly.
8655         (set_switch_stmt_execution_predicate): Likewise.
8656         (will_be_nonconstant_expr_predicate): Likewise.
8657         (will_be_nonconstant_predicate): Likewise.
8658         (inline_read_section): Stream condition::size as a poly_int.
8659         (ipa_fn_summary_write): Likewise.
8661 2019-08-07  Martin Liska  <mliska@suse.cz>
8663         * fold-const.c (twoval_comparison_p): Replace int
8664         with bool as a return type.
8665         (simple_operand_p): Likewise.
8666         (operand_equal_p): Replace int with bool as a return type.
8667         * fold-const.h (operand_equal_p): Likewise.
8669 2019-08-07  Jakub Jelinek  <jakub@redhat.com>
8671         * tree-core.h (enum omp_clause_code): Adjust OMP_CLAUSE_USE_DEVICE_PTR
8672         OpenMP description.  Add OMP_CLAUSE_USE_DEVICE_ADDR clause.
8673         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries
8674         for OMP_CLAUSE_USE_DEVICE_ADDR clause.
8675         (walk_tree_1): Handle OMP_CLAUSE_USE_DEVICE_ADDR.
8676         * tree-pretty-print.c (dump_omp_clause): Likewise.
8677         * tree-nested.c (convert_nonlocal_omp_clauses,
8678         convert_local_omp_clauses): Likewise.
8679         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
8680         Likewise.
8681         * omp-low.c (scan_sharing_clauses, lower_omp_target): Likewise.
8682         Treat OMP_CLAUSE_USE_DEVICE_ADDR like OMP_CLAUSE_USE_DEVICE_PTR
8683         clause with array or reference to array types, no matter what type
8684         except for reference it has.
8686 2019-08-07  Kewen Lin  <linkw@gcc.gnu.org>
8688         * config/rs6000/vector.md (vrotr<mode>3): New define_expand.
8690 2019-08-07  Kito Cheng  <kito.cheng@sifive.com>
8692         * config/riscv/multilib-generator: (canonical_order): Add 'g'.
8693         (arch_canonicalize): Support rv32g and rv64g and fix error
8694         handling.
8696 2019-08-06  Martin Liska  <mliska@suse.cz>
8698         * cgraph.c (cgraph_node::dump): Dump DECL_IS_OPERATOR_NEW_P
8699         and DECL_IS_OPERATOR_DELETE_P.
8701 2019-08-06  Jakub Jelinek  <jakub@redhat.com>
8703         * tree.h (OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV): Rename to ...
8704         (OMP_CLAUSE_LASTPRIVATE_LOOP_IV): ... this.  Adjust comment.
8705         * gimplify.c (gimple_add_tmp_var): In SIMD contexts, turn addressable
8706         new vars into GOVD_PRIVATE rather than GOVD_LOCAL.
8707         (gimplify_omp_for): Don't do C++ random access iterator clause
8708         adjustments on combined constructs from OMP_LOOP.  For OMP_LOOP,
8709         don't predetermine the artificial iterator in case of C++ random
8710         access iterators as lastprivate, but private.  For OMP_LOOP, force
8711         bind expr around simd body and force for_pre_body before the
8712         construct.  Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV instead of
8713         OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV.
8714         (gimplify_omp_loop): Add firstprivate clauses on OMP_PARALLEL for
8715         diff var of C++ random access iterators.  Handle
8716         OMP_CLAUSE_FIRSTPRIVATE.  For OMP_CLAUSE_LASTPRIVATE_LOOP_IV, if
8717         not outermost also add OMP_CLAUSE_FIRSTPRIVATE, and in both cases
8718         clear OMP_CLAUSE_LASTPRIVATE_LOOP_IV on the lastprivate clause
8719         on the OMP_FOR and OMP_DISTRIBUTE constructs if any.
8720         * omp-low.c (lower_rec_input_clauses): For
8721         OMP_CLAUSE_LASTPRIVATE_LOOP_IV on simd copy construct the private
8722         variables instead of default constructing them.
8723         (lower_lastprivate_clauses): Use OMP_CLAUSE_LASTPRIVATE_LOOP_IV
8724         instead of OMP_CLAUSE_LASTPRIVATE_TASKLOOP_IV and move the
8725         is_taskloop_ctx check from the assert to the guarding condition.
8727 2019-08-06  Kito Cheng  <kito.cheng@sifive.com>
8729         * config/riscv/multilib-generator: (canonical_order): New.
8730         (arch_canonicalize): Dito.
8731         Apply arch_canonicalize for alts.
8733 2019-08-05  Martin Sebor  <msebor@redhat.com>
8735         * doc/extend.texi (Common Variable Attributes): Document alias
8736         attribute.
8738 2019-08-05  Marek Polacek  <polacek@redhat.com>
8740         PR c++/91338 - Implement P1161R3: Deprecate a[b,c].
8741         * doc/invoke.texi: Document -Wcomma-subscript.
8743 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8745         * tree-core.h (tree_function_decl): Make function_code an
8746         independent field.  Group the remaining bitfields into bytes
8747         and move decl_type so that it contines to be at a byte boundary.
8748         Leave 12 bits for future expansion.
8750 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8752         * gimple-fold.c (gimple_fold_mask_load_store_mem_ref)
8753         (gimple_fold_mask_load, gimple_fold_mask_store): New functions.
8754         (gimple_fold_call): Use them to fold IFN_MASK_LOAD and
8755         IFN_MASK_STORE.
8757 2019-08-05  Richard Sandiford  <richard.sandiford@arm.com>
8759         * gimple.h (gimple_move_vops): Declare.
8760         * gimple.c (gimple_move_vops): New function
8761         * gimple-fold.c (replace_call_with_call_and_fold)
8762         (gimple_fold_builtin_memory_op, gimple_fold_builtin_memset)
8763         (gimple_fold_builtin_stpcpy, fold_builtin_atomic_compare_exchange)
8764         (gimple_fold_call): Use it.
8765         * ipa-param-manipulation.c (ipa_modify_call_arguments): Likewise.
8766         * tree-call-cdce.c (use_internal_fn): Likewise.
8767         * tree-if-conv.c (predicate_load_or_store): Likewise.
8768         * tree-ssa-ccp.c (optimize_atomic_bit_test_and): Likewise.
8769         * tree-ssa-math-opts.c (pass_cse_reciprocals::execute): Likewise.
8770         * tree-ssa-propagate.c (finish_update_gimple_call): Likewise.
8771         (update_call_from_tree): Likewise.
8772         * tree-vect-stmts.c (vectorizable_load): Likewise.
8773         * tree-vectorizer.c (adjust_simduid_builtins): Likewise.
8775 2019-08-05  Martin Liska  <mliska@suse.cz>
8777         PR c++/91334
8778         * tree-ssa-dce.c (propagate_necessity): Handle new operators
8779         with not arguments.
8780         (eliminate_unnecessary_stmts): Likewise.
8782 2019-08-05  Richard Biener  <rguenther@suse.de>
8784         PR middle-end/91169
8785         * fold-const.c (get_array_ctor_element_at_index): Create
8786         offset_ints according to the sign of the index type and treat
8787         that as signed if it is obviously so.
8789 2019-08-05  Jakub Jelinek  <jakub@redhat.com>
8791         PR target/91341
8792         * config/i386/avxintrin.h (_mm256_loadu2_m128, _mm256_storeu2_m128,
8793         _mm256_loadu2_m128d, _mm256_storeu2_m128d, _mm256_loadu2_m128i,
8794         _mm256_storeu2_m128i): New function.
8796 2019-08-05  Kito Cheng  <kito.cheng@sifive.com>
8798         * config/riscv/riscv.c (riscv_promote_function_mode): New.
8799         (TARGET_PROMOTE_FUNCTION_MODE): Use riscv_promote_function_mode.
8801 2019-08-05  Alan Modra  <amodra@gmail.com>
8803         PR target/91349
8804         * config/rs6000/freebsd64.h (CPLUSPLUS_CPP_SPEC),
8805         (LINK_GCC_C_SEQUENCE_SPEC): Undef.
8807 2019-08-04  Gerald Pfeifer  <gerald@pfeifer.com>
8809         * doc/install.texi (Prerequisites): Remove reference to Tcl 8.6
8810         bug that was fixed in Tcl 8.6.1.
8812 2019-08-02  Michael Meissner  <meissner@linux.ibm.com>
8814         * config/rs6000/future.md: New file.
8815         * config/rs6000/rs6000.md: Include future.md.
8816         * config/rs6000/t-rs6000 (MD_INCLUDES): Add future.md.
8818 2019-08-02  Bernd Edlinger  <bernd.edlinger@hotmail.de>
8820         * function.c (assign_parm_adjust_stack_rtl): Revise STRICT_ALIGNMENT
8821         check to use targetm.slow_unaligned_access instead.
8823         * function.c (assign_param_data_one): Remove unused data members.
8825 2019-08-02  Steve Ellcey  <sellcey@marvell.com>
8827         * omp-simd-clone.c (simd_clone_adjust_return_type): Remove call to
8828         build_distinct_type_copy.
8829         (simd_clone_adjust_argument_types): Ditto.
8830         (simd_clone_adjust): Call build_distinct_type_copy here.
8831         (expand_simd_clones): Ditto.
8833 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8835         PR target/91201
8836         * config/i386/sse.md (*vec_extractv16qi_zext): New insn pattern.
8838 2019-08-02  Alexander Monakov  <amonakov@ispras.ru>
8840         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Simplify casts
8841         from 'const void *'.
8842         (sort_locs_in_loop_postorder_cmp): Likewise.
8844 2019-08-02  Eric Botcazou  <ebotcazou@adacore.com>
8846         * doc/invoke.texi (hot-bb-count-fraction): Rework description.
8847         (hot-bb-count-ws-permille): Likewise.
8848         (hot-bb-frequency-fraction): Likewise.
8849         (unlikely-bb-count-fraction): Likewise.
8850         * params.def (hot-bb-count-fraction): Rework description.
8851         (hot-bb-count-ws-permille): Likewise.
8852         (hot-bb-frequency-fraction): Likewise.
8853         (unlikely-bb-count-fraction): Likewise.  Remove min and max values.
8854         * predict.c (get_hot_bb_threshold): Deal with 0 HOT_BB_COUNT_FRACTION.
8856 2019-08-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8858         PR target/91323
8859         * config/i386/i386-expand.c (ix86_unordered_fp_compare) <case LTGT>:
8860         Return false.
8862 2019-08-02  Richard Biener  <rguenther@suse.de>
8864         * vec.h (vec::sort): Add gcc_qsort_r support.
8865         (vec::bsearch): Add an overload with gcc_qsort_r style callbacks.
8866         * tree-ssa-loop-im.c (sort_bbs_in_loop_postorder_cmp): Adjust
8867         to gcc_qsort_r style callback.
8868         (sort_locs_in_loop_postorder_cmp): Likewise.
8869         (analyze_memory_references): Use gcc_sort_r interfaces.
8870         (find_ref_loc_in_loop_cmp): Use new bsearch overload.
8872 2019-08-02  Martin Liska  <mliska@suse.cz>
8874         PR lto/91313
8875         * gcc.c (driver::maybe_run_linker): Call detect_jobserver
8876         to detect working job server.
8877         (driver::detect_jobserver): Test whether jobserver
8878         is active from GCC driver. That will prevent situation where
8879         GCC is invoked from a LD plugin and the linker already uses
8880         file descriptors suggested by make.  That leads to a wrong
8881         detection.
8882         * gcc.h (driver): Add detect_jobserver.
8883         * lto-wrapper.c (jobserver_active_p): Simplify sscanf by
8884         not scanning for --jobserver-auth prefix.
8886 2019-08-02  Jakub Jelinek  <jakub@redhat.com>
8888         PR tree-optimization/91201
8889         * config/i386/i386-expand.c (ix86_expand_vector_extract): For elt == 0
8890         V16QImode extraction without sse4.1 try to use V4SImode lowpart
8891         extraction.
8893 2019-08-01  Martin Sebor  <msebor@redhat.com>
8895         PR c++/90947
8896         * tree.c (type_initializer_zero_p): Define.
8897         * tree.h (type_initializer_zero_p): New function.
8899 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
8901         * cfgrtl.c (relink_block_chain): Add line returns in dump file.
8903 2019-08-01  Eric Botcazou  <ebotcazou@adacore.com>
8905         * cgraph.h (cgraph_edge::maybe_hot_p): Tweak comment.
8906         * cgraph.c (cgraph_edge::maybe_hot_p): Likewise.  Remove useless test.
8907         * predict.c (maybe_hot_count_p): Likewise.
8908         (maybe_hot_bb_p): Tweak comment.
8909         (maybe_hot_edge_p): Likewise.
8910         (probably_never_executed): Likewise.  Minor tweak.
8911         (probably_never_executed_bb_p): Likewise.
8912         (unlikely_executed_edge_p): Likewise.
8913         (probably_never_executed_edge_p): Likewise.
8914         (optimize_function_for_size_p): Likewise.
8915         (optimize_function_for_speed_p): Likewise.
8916         (function_optimization_type): Likewise.
8917         (optimize_bb_for_size_p): Likewise.
8918         (optimize_bb_for_speed_p): Likewise.
8919         (bb_optimization_type): Likewise.
8920         (optimize_edge_for_size_p): Likewise.
8921         (optimize_edge_for_speed_p): Likewise.
8922         (optimize_insn_for_size_p): Likewise.
8923         (optimize_insn_for_speed_p): Likewise.
8924         (optimize_loop_for_size_p): Likewise.
8925         (optimize_loop_for_speed_p): Likewise.
8926         (optimize_loop_nest_for_speed_p): Likewise.
8927         (optimize_loop_nest_for_size_p): Likewise.
8928         (predictable_edge_p): Likewise.
8929         (handle_missing_profiles): Minor tweak.
8931 2019-08-01  Michael Meissner  <meissner@linux.ibm.com>
8933         * config/rs6000/predicates.md (pcrel_external_address): Update
8934         comment.
8936 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8938         PR target/85693
8939         * config/i386/mmx.md (usadv8qi): New expander.
8941 2019-08-01  Matthew Beliveau  <mbelivea@redhat.com>
8943         PR c++/90590
8944         * c-warn.c (c_do_switch_warnings): Suppress warning for enumerators
8945         with reserved names that are in a system header.
8947 2019-08-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
8949         * config/i386/mmx.md (vec_extractv2si_0): Add (r,x) alternative.
8950         (*vec_extractv2si_0_zext_sse4): New insn pattern.
8951         (*vec_extractv2si_0_zext): Ditto.
8952         (*vec_extractv2si_1): Add (rm,x) alternative.
8953         (*vec_extractv2si_1_zext): New insn pattern.
8954         (*vec_extractv2si_zext_mem): Add "TARGET_MMX || TARGET_MMX_WITH_SSE"
8955         insn constraint.
8957 2019-08-01  Richard Biener  <rguenther@suse.de>
8959         * domwalk.c (bb_postorder): Remove static variable.
8960         (cmp_bb_postorder): Adjust.
8961         (sort_bbs_postorder): Adjust and use gcc_sort_r.
8962         (dom_walker::walk): Adjust.
8964 2019-08-01  Alexander Monakov  <amonakov@ispras.ru>
8966         * sort.cc (sort_r_ctx): New struct.
8967         (reorder23): Make templated on context type.
8968         (reorder45): Ditto.
8969         (cmp1): Ditto.  Adjust signature.
8970         (netsort): Ditto.
8971         (mergesort): Ditto.
8972         [CHECKING_P] (cmp2to3): New static function.  Use it...
8973         (gcc_qsort) [CHECKING_P]: ...here.
8974         (gcc_sort_r): New function.
8975         * system.h (sort_r_cmp_fn): New function typedef.
8976         (qsort_chk): Adjust signature.
8977         (gcc_sort_r): Declare.
8978         * vec.c (qsort_chk_error): Adjust.
8979         (qsort_chk): Adjust.
8981 2019-08-01  Richard Biener  <rguenther@suse.de>
8983         * tree-ssa-pre.c (has_abnormal_preds): Remove global var.
8984         (compute_antic): Localize it here.
8986 2019-07-31  Maxim Blinov  <maxim.blinov@embecosm.com>
8988         * common/config/riscv/riscv-common.c: Check -march string ends
8989         with null.
8991 2019-07-31  Alexander Monakov  <amonakov@ispras.ru>
8993         * ipa-devirt.c (type_warning_cmp): Make static.
8994         (decl_warning_cmp): Ditto.
8996 2019-07-31  Peter Bergner  <bergner@linux.ibm.com>
8998         PR target/91050
8999         * config/rs6000/rs6000.opt (mdejagnu-cpu=): Delete option.
9000         * config/rs6000/rs6000.c (rs6000_option_override_internal): Remove
9001         use of deleted rs6000_dejagnu_cpu_index variable.
9002         * config/rs6000/rs6000.h (DRIVER_SELF_SPECS): Define.
9003         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9004         * config/darwin.h (DRIVER_SELF_SPECS): Rename from this ...
9005         (SUBTARGET_DRIVER_SELF_SPECS): ...to this.
9006         * config/i386/i386.h (DRIVER_SELF_SPECS): Define.
9007         (SUBTARGET_DRIVER_SELF_SPECS): Likewise.
9009 2019-07-31  Richard Biener  <rguenther@suse.de>
9011         PR tree-optimization/91280
9012         * tree-ssa-structalias.c (get_constraint_for_component_ref):
9013         Decompose MEM_REF manually for offset handling.
9015 2019-07-31  Richard Biener  <rguenther@suse.de>
9017         PR tree-optimization/91293
9018         * tree-vect-slp.c (vect_build_slp_tree_2): Do not swap operands
9019         of reduction stmts.
9021 2019-07-31  Matt Thomas  <matt@3am-software.com>
9022             Nick Hudson  <nick@nthcliff.demon.co.uk>
9023             Matthew Green  <mrg@eterna.com.au>
9024             Maya Rashish  <coypu@sdf.org>
9026         * config.gcc (hppa*-*-netbsd*): New target.
9027         * config/pa/pa-netbsd.h: New file.
9028         * config/pa/pa32-netbsd.h: New file.
9030 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9032         PR tree-optimization/91201
9033         * config/i386/mmx.md (reduc_plus_scal_v8qi): New expander.
9035 2019-07-31  Andrew Stubbs  <ams@codesourcery.com>
9037         * config/gcn/gcn-valu.md
9038         (scatter<mode>_insn_1offset<exec_scatter>): Remove s_waitcnt.
9039         (scatter<mode>_insn_1offset_ds<exec_scatter>): Likewise.
9040         (scatter<mode>_insn_2offsets<exec_scatter>): Likewise.
9041         * config/gcn/gcn.c (gcn_md_reorg): Add delayeduse and reads to
9042         struct ilist. Add nops for delayeduse insns.
9043         * config/gcn/gcn.md (delayeduse): New attribute.
9044         (*movbi): Remove s_waitcnt from stores.
9045         (*mov<mode>_insn): Likewise.
9046         (*movti_insn): Likewise. Add delayeduse attribute.
9047         (sync_compare_and_swap<mode>_insn): Add delayeduse attribute.
9048         (atomic_store<mode>): Remove or adjust s_waitcnt.
9050 2019-07-31  Richard Biener  <rguenther@suse.de>
9052         * vr-values.h (vr_values::swap_vr_value): New.
9053         (vr_values::free_value_range): likewise.
9054         * vr-values.c (vr_values::swap_vr_value): Implement.
9055         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::pop_value_range):
9056         Do not return a range or take a var.
9057         (evrp_range_analyzer::stack): Change back to recording a non-const
9058         value_range *.
9059         * gimple-ssa-evrp-analyze.c
9060         (evrp_range_analyzer::record_ranges_from_stmt): Free unused
9061         value-range.
9062         (evrp_range_analyzer::pop_to_marker): Adjust.
9063         (evrp_range_analyzer::push_value_range): Use new swap_vr_value.
9064         (evrp_range_analyzer::pop_value_range): Likewise.  Free the
9065         no longer needed value-range.
9067 2019-07-31  Martin Liska  <mliska@suse.cz>
9069         * tree-ssa-dce.c (propagate_necessity): Delete operator can
9070         have size and (or) alignment as 2nd and later arguments.
9071         Mark all of them as necessary.
9073 2019-07-31  Richard Biener  <rguenther@suse.de>
9075         PR tree-optimization/91178
9076         * tree-ssa-sccvn.c (vn_reference_maybe_forwprop_address):
9077         Use tail-recursion.
9079 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9081         PR tree-optimization/91201
9082         * config/i386/sse.md (reduc_plus_scal_v16qi): New expander.
9083         (REDUC_PLUS_MODE): Add V32QImode for TARGET_AVX and V64QImode for
9084         TARGET_AVX512F.
9085         (reduc_plus_scal_<mode>): Improve formatting by introducing
9086         a temporary.
9088 2019-07-31  Sudakshina Das  <sudi.das@arm.com>
9090         * config/aarch64/aarch64-builtins.c (enum aarch64_builtins): Add
9091         AARCH64_TME_BUILTIN_TSTART, AARCH64_TME_BUILTIN_TCOMMIT,
9092         AARCH64_TME_BUILTIN_TTEST and AARCH64_TME_BUILTIN_TCANCEL.
9093         (aarch64_init_tme_builtins): New.
9094         (aarch64_init_builtins): Call aarch64_init_tme_builtins.
9095         (aarch64_expand_builtin_tme): New.
9096         (aarch64_expand_builtin): Handle TME builtins.
9097         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins): Define
9098         __ARM_FEATURE_TME when enabled.
9099         * config/aarch64/aarch64-option-extensions.def: Add "tme".
9100         * config/aarch64/aarch64.h (AARCH64_FL_TME, AARCH64_ISA_TME): New.
9101         (TARGET_TME): New.
9102         * config/aarch64/aarch64.md (define_c_enum "unspec"): Add UNSPEC_TTEST.
9103         (define_c_enum "unspecv"): Add UNSPECV_TSTART, UNSPECV_TCOMMIT and
9104         UNSPECV_TCANCEL.
9105         (tstart, ttest, tcommit, tcancel): New instructions.
9106         * config/aarch64/arm_acle.h (__tstart, __tcommit): New.
9107         (__tcancel, __ttest): New.
9108         (_TMFAILURE_REASON, _TMFAILURE_RTRY, _TMFAILURE_CNCL): New macro.
9109         (_TMFAILURE_MEM, _TMFAILURE_IMP, _TMFAILURE_ERR): Likewise.
9110         (_TMFAILURE_SIZE, _TMFAILURE_NEST, _TMFAILURE_DBG): Likewise.
9111         (_TMFAILURE_INT, _TMFAILURE_TRIVIAL): Likewise.
9112         * config/arm/types.md: Add new tme type attr.
9113         * doc/invoke.texi: Document "tme".
9115 2019-07-31  Joel Hutton  <Joel.Hutton@arm.com>
9117         * config/arm/arm_cmse.h (cmse_nonsecure_caller): Add
9118         warn_unused_result attribute.
9119         (cmse_check_address_range): Add warn_unused_result attribute.
9121 2019-07-31  Richard Biener  <rguenther@suse.de>
9123         PR tree-optimization/91257
9124         * tree-vrp.c (union_ranges): Unify equality and less tests
9125         by using compare_values.  Re-order cheap tests first.
9127 2019-07-31  Jakub Jelinek  <jakub@redhat.com>
9129         PR middle-end/91301
9130         * gimplify.c (gimplify_omp_for): If for class iterator on
9131         distribute parallel for there is no data sharing clause
9132         on inner_for_stmt, look for private clause on combined
9133         parallel too and if found, move it to inner_for_stmt.
9135 2019-07-31  Richard Sandiford  <richard.sandiford@arm.com>
9137         * lra-int.h (lra_operand_data): Remove early_clobber field.
9138         (lra_insn_reg): Likewise.
9139         * lra.c (debug_operand_data): Update accordingly.
9140         (setup_operand_alternative): Likewise.
9141         (new_insn_reg): Likewise.  Remove early_clobber parameter.
9142         (collect_non_operand_hard_regs): Update call accordingly.
9143         Don't assign to lra_insn_reg::early_clobber.
9144         (add_regs_to_insn_regno_info): Remove early_clobber parameter
9145         and update calls to new_insn_reg.
9146         (lra_update_insn_regno_info): Update calls accordingly.
9147         * lra-constraints.c (update_and_check_small_class_inputs): Take the
9148         alternative number as a parameter and test whether the operand
9149         is earlyclobbered in that particular alternative.
9150         (process_alt_operands): Update call accordingly.  Use per-alternative
9151         checks for earyclobber here too.
9152         * lra-lives.c (reg_early_clobber_p): Check early_clobber_alts
9153         against zero for IRA_UNKNOWN_ALT.
9155 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9157         * config/alpha/alpha.c (alpha_option_override): Quote a C type.
9159 2019-07-30  Wilco Dijkstra  <wdijkstr@arm.com>
9161         * config/arm/thumb2.md (thumb2_movsi_insn): Adjust literal offset.
9162         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9164 2019-07-30  Martin Liska  <mliska@suse.cz>
9166         PR ipa/89330
9167         * cgraph.c (cgraph_edge::make_direct): Use
9168         edge->indirect_unknown_callee as edge->resolve_speculation can
9169         deallocate edge which is this pointer.
9171 2019-07-30  Richard Biener  <rguenther@suse.de>
9173         PR tree-optimization/91257
9174         * bitmap.c (bitmap_ior_and_compl_into): Open-code.
9176 2019-07-30  Martin Liska  <mliska@suse.cz>
9178         * doc/invoke.texi: Document new behavior.
9179         * lto-wrapper.c (cpuset_popcount): New function
9180         is a copy of libgomp/config/linux/proc.c.
9181         (init_num_threads): Likewise.
9182         (run_gcc): Automatically detect core count for -flto.
9183         (jobserver_active_p): New function.
9185 2019-07-30  Richard Biener  <rguenther@suse.de>
9187         PR tree-optimization/91257
9188         * bitmap.h (bitmap_ior_into_and_free): Declare.
9189         * bitmap.c (bitmap_list_unlink_element): Add defaulted param
9190         whether to add the unliked element to the freelist.
9191         (bitmap_list_insert_element_after): Add defaulted param for
9192         an already allocated element.
9193         (bitmap_ior_into_and_free): New function.
9194         * tree-ssa-structalias.c (condense_visit): Reduce the
9195         ponts-to and edge bitmaps of the SCC members in a
9196         logarithmic fashion rather than all to one.
9198 2019-07-30  Richard Sandiford  <richard.sandiford@arm.com>
9200         * tree-ssa-math-opts.c (convert_mult_to_fma): Add a mul_cond
9201         parameter.  When nonnull, make sure that the addition or subtraction
9202         has the same condition.
9203         (math_opts_dom_walker::after_dom_children): Try convert_mult_to_fma
9204         for CFN_COND_MUL too.
9206 2019-07-30  Richard Biener  <rguenther@suse.de>
9208         PR tree-optimization/91291
9209         * tree-ssa-sccvn.c (rpo_elim::eliminate_push_avail): Ignore
9210         constant values.
9212 2019-07-30  Jakub Jelinek  <jakub@redhat.com>
9214         PR middle-end/91216
9215         * omp-low.c (global_nonaddressable_vars): New variable.
9216         (use_pointer_for_field): For global decls, if they are non-addressable,
9217         remember it in the global_nonaddressable_vars bitmap, if they are
9218         addressable and in the global_nonaddressable_vars bitmap, ignore their
9219         TREE_ADDRESSABLE bit.
9220         (omp_copy_decl_2): Clear TREE_ADDRESSABLE also on private copies of
9221         vars in global_nonaddressable_vars bitmap.
9222         (execute_lower_omp): Free global_nonaddressable_vars bitmap.
9224         PR target/91150
9225         * config/i386/i386-expand.c (expand_vec_perm_blend): Change mask type
9226         from unsigned to unsigned HOST_WIDE_INT.  For E_V64QImode cast
9227         comparison to unsigned HOST_WIDE_INT before shifting it left.
9229 2019-07-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
9231         * config/i386/i386.md (movstrict<mode>): Use register_operand
9232         predicate for operand 0.  Add expander condition.  Assert that
9233         operand 0 is a SUBREG RTX.
9234         (*movstrict<mode>_1): Use register_operand predicate for operand 0.
9235         Update operand constraints and insn condition.
9236         (zero_extend<mode>si2_and): Do not call gen_movstrict<mode>.
9237         (zero_extendqihi2_and): Do not call gen_movstrictqi.
9238         (*setcc_qi_slp): Use register_operand predicate for operand 0.
9239         Update operand 0 constraints.
9240         (setcc_qi_slp splitters): Use register_operand predicate for operand 0.
9242 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9244         * config/msp430/msp430.h (DRIVER_SELF_SPECS): Define and emit errors
9245         when -m{code,data}-region are used without -mlarge.
9246         * config/msp430/msp430.c (msp430_option_override): Error when a
9247         non-default code or data region is used without -mlarge.
9248         (msp430_section_attr): Emit a warning and do not add upper/lower/either
9249         attributes when they are used without -mlarge.
9251 2019-07-29  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9253         PR target/70320
9254         * config/msp430/msp430.h: Define ADDITIONAL_REGISTER_NAMES.
9256 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9258         PR middle-end/91242
9259         * wide-int.h (generic_wide_int::sext_elt): New function.
9260         * inchash.h (hash::add_wide_int): Use it instead of elt.
9262 2019-07-29  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9264         * config/arm/arm-builtins.c (acle_builtin_data): Expand VAR1 to
9265         CODE_FOR_arm_##.
9266         * config/arm/arm.md (<crc_variant>): Rename to...
9267         (arm_<crc_variant>): ... This.
9268         (<cdp>): Rename to...
9269         (arm_<cdp>): ... This.
9270         (<ldc>): Rename to...
9271         (arm_<ldc>): ... This.
9272         (<stc>): Rename to...
9273         (arm_<stc>): ... This.
9274         (<mcr>): Rename to...
9275         (arm_<mcr>): ... This.
9276         (<mrc>): Rename to...
9277         (arm_<mrc>): ... This.
9278         (<mcrr>): Rename to...
9279         (arm_<mcrr>): ... This.
9280         (<mrrc>): Rename to...
9281         (arm_<mrrc>): ... This.
9283 2019-07-29  Richard Biener  <rguenther@suse.de>
9285         PR tree-optimization/91257
9286         * tree-ssa-sccvn.h (struct vn_avail): New.
9287         (struct vn_ssa_aux): Add avail member.
9288         * tree-ssa-sccvn.c (class rpo_elim): Remove m_rpo_avail
9289         member, add m_avail_freelist one.
9290         (rpo_elim::~rpo_elim): Remove.
9291         (rpo_elim::eliminate_avail): Adjust to new avail tracking
9292         data structure.
9293         (rpo_elim::eliminate_push_avail): Likewise.
9294         (do_unwind): Likewise.
9295         (do_rpo_vn): Likewise.
9297 2019-07-29  Richard Biener  <rguenther@suse.de>
9299         PR tree-optimization/91257
9300         * tree-vrp.c (operand_less_p): Avoid dispatching to fold for
9301         most cases, instead call compare_values which handles the
9302         symbolic ranges we handle specially.
9303         (compare_values_warnv): Do not call operand_less_p but open-code
9304         the effective fold calls.  Avoid converting so much.
9306 2019-07-29  Martin Liska  <mliska@suse.cz>
9308         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Do not
9309         remove LHS of operator new call.  It's handled latter.
9311 2019-07-29  Richard Biener  <rguenther@suse.de>
9313         PR tree-optimization/91267
9314         * vr-values.c (vr_values::update_value_range): Add early return
9315         for effectively VARYING lattice entry.
9317 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9319         PR debug/86638
9320         * tree-ssa-dce.c (keep_all_vdefs_p): New function.
9321         (mark_stmt_if_obviously_necessary): Mark all stmts with vdefs as
9322         necessary if keep_all_vdefs_p is true.
9323         (mark_aliased_reaching_defs_necessary): Add a gcc_checking_assert
9324         that keep_all_vdefs_p is false.
9325         (mark_all_reaching_defs_necessary): Likewise.
9326         (propagate_necessity): Skip the vuse scan if keep_all_vdefs_p is true.
9328 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9330         * common.opt (Og): Change the initial value of flag_dse to 0.
9331         * opts.c (default_options_table): Move OPT_ftree_dse from
9332         OPT_LEVELS_1_PLUS to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Also add
9333         OPT_fdse to OPT_LEVELS_1_PLUS_NOT_DEBUG.  Put the OPT_ftree_pta
9334         entry before the OPT_ftree_sra entry.
9335         * doc/invoke.texi (Og): Add -fdse and -ftree-dse to the list
9336         of flags disabled by Og.
9338 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9340         * tree-cfg.c (execute_fixup_cfg): Don't delete stores to write-only
9341         variables for -Og.
9343 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9345         * doc/sourcebuild.texi (check-function-bodies): Document.
9347 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9349         * simplify-rtx.c (simplify_const_unary_operation): Fold a
9350         VEC_DUPLICATE of a fixed-length vector even if the result
9351         is variable-length.  Likewise fold a duplicate of a
9352         variable-length vector if the variable-length vector is
9353         itself a duplicate of a fixed-length sequence.
9354         (test_vector_ops_duplicate): Test more cases.
9356 2019-07-29  Richard Sandiford  <richard.sandiford@arm.com>
9358         * vector-builder.h (vector_builder): Add a shape template parameter.
9359         (vector_builder::new_unary_operation): New function, generalizing
9360         the old tree_vector_builder function.
9361         (vector_builder::new_binary_operation): Likewise.
9362         (vector_builder::binary_encoded_nelts): Likewise.
9363         * int-vector-builder.h (int_vector_builder): Update template
9364         parameters to vector_builder.
9365         (int_vector_builder::shape_nelts): New function.
9366         * rtx-vector-builder.h (rtx_vector_builder): Update template
9367         parameters to vector_builder.
9368         (rtx_vector_builder::shape_nelts): New function.
9369         (rtx_vector_builder::nelts_of): Likewise.
9370         (rtx_vector_builder::npatterns_of): Likewise.
9371         (rtx_vector_builder::nelts_per_pattern_of): Likewise.
9372         * tree-vector-builder.h (tree_vector_builder): Update template
9373         parameters to vector_builder.
9374         (tree_vector_builder::shape_nelts): New function.
9375         (tree_vector_builder::nelts_of): Likewise.
9376         (tree_vector_builder::npatterns_of): Likewise.
9377         (tree_vector_builder::nelts_per_pattern_of): Likewise.
9378         * tree-vector-builder.c (tree_vector_builder::new_unary_operation)
9379         (tree_vector_builder::new_binary_operation): Delete.
9380         (tree_vector_builder::binary_encoded_nelts): Likewise.
9381         * simplify-rtx.c: Include rtx-vector-builder.h.
9382         (distributes_over_addition_p): New function.
9383         (simplify_const_unary_operation)
9384         (simplify_const_binary_operation): Generalize handling of vector
9385         constants to include variable-length vectors.
9386         (test_vector_ops_series): Add more tests.
9388 2019-07-28  Jan Hubicka  <hubicka@ucw.cz>
9390         PR lto/91222
9391         * ipa-devirt.c (warn_types_mismatch): Compare indentifiers
9392         than INDENTIFIER_POINTER.
9394 2019-07-28  Martin Liska  <mliska@suse.cz>
9396         PR ipa/89330
9397         * cgraph.c (symbol_table::create_edge): Always allocate
9398         a cgraph_edge.
9399         (symbol_table::free_edge): Store summary_id to
9400         edge_released_summary_ids if != -1;
9401         * cgraph.h (NEXT_FREE_NODE): Remove.
9402         (SET_NEXT_FREE_NODE): Likewise.
9403         (NEXT_FREE_EDGE): Likewise.
9404         (symbol_table::release_symbol): Store summary_id to
9405         cgraph_released_summary_ids if != -1;
9406         (symbol_table::allocate_cgraph_symbol): Always allocate
9407         a cgraph_node.
9409 2019-07-28  Alan Modra  <amodra@gmail.com>
9411         * config/rs6000/rs6000-call.c (rs6000_output_mi_thunk): Use
9412         gen_sibcall.
9414 2019-07-28  Alan Modra  <amodra@gmail.com>
9416         PR target/91135
9417         * config/rs6000/linux.h (GNU_USER_TARGET_D_OS_VERSIONS): Don't
9418         define.
9419         * config/rs6000/linux64.h (TARGET_OS_CPP_BUILTINS): Invoke
9420         GNU_USER_TARGET_OS_CPP_BUILTINS for aixdesc abi.
9421         (GNU_USER_TARGET_D_OS_VERSIONS): Don't define.
9423 2019-07-28  Alan Modra  <amodra@gmail.com>
9425         PR target/91050
9426         * config/rs6000/sysv4.h (ASM_DEFAULT_SPEC): Modify if -m64.
9427         * config/rs6000/default64.h (ASM_DEFAULT_SPEC): Define.
9428         * config/rs6000/freebsd64.h (ASM_DEFAULT_SPEC): Don't define.
9429         * config/rs6000/linux64.h (ASM_DEFAULT_SPEC): Likewise.
9430         * config/rs6000/rtems.h (ASM_DEFAULT_SPEC): Likewise.
9431         * config/rs6000/rs6000.h (ASM_DEFAULT_EXTRA): Define and use
9432         in asm_default spec.
9433         * config/rs6000/eabialtivec.h (ASM_DEFAULT_EXTRA): Redefine.
9434         * config/rs6000/linuxaltivec.h (ASM_DEFAULT_EXTRA): Redefine.
9436 2019-07-28  Gerald Pfeifer  <gerald@pfeifer.com>
9438         * doc/include/gpl_v3.texi (Copying): Use https for www.gnu.org.
9440 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
9442         PR target/89517
9443         * config.gcc: Relax parsing of AARCH64_OPT_EXTENSION.
9444         * config/aarch64/aarch64-option-extensions.def: Add new comments
9445         and restore easier to read options.
9447 2019-07-26  Tamar Christina  <tamar.christina@arm.com>
9449         * convert.c (convert_to_real_1): Move part of conversion code...
9450         * match.pd: ...To here.
9452 2019-07-26  Martin Jambor  <mjambor@suse.cz>
9454         PR ipa/89330
9455         * ipa-inline-transform.c (check_speculations_1): New function.
9456         (push_all_edges_in_set_to_vec): Likewise.
9457         (check_speculations): Use check_speculations_1, new parameter
9458         new_edges.
9459         (inline_call): Pass new_edges to check_speculations.
9460         * ipa-inline.c (add_new_edges_to_heap): Assert edge_callee is not
9461         NULL.
9462         (speculation_useful_p): Early return true if edge is inlined, remove
9463         later checks for inline_failed.
9465 2019-07-25  Vladimir Makarov  <vmakarov@redhat.com>
9467         PR rtl-optimization/91223
9468         * lra-constraints.c (process_alt_operands): Fail for unsuccessful
9469         matching with INOUT operand.
9471 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9473         * stmt.c (expand_case): Try to narrow the index type if it's larger
9474         than a word.  Tidy up.
9476 2019-07-25  Eric Botcazou  <ebotcazou@adacore.com>
9478         * cif-code.def (NEVER_CALL): New code.
9479         * ipa-inline.c (want_inline_small_function_p): Fix formatting issues.
9480         Set the failure to CIF_NEVER_CALL if the IPA count is zero.
9482 2019-07-25  Wilco Dijkstra  <wdijkstr@arm.com>
9484         * config/arm/thumb2.md (thumb2_movsi_insn): Fix load/store low reg.
9485         * config/arm/vfp.md (thumb2_movsi_vfp): Likewise.
9487 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9489         * ipa-devirt.c (add_type_duplicate): Fix return value.
9491 2019-07-25  Richard Biener  <rguenther@suse.de>
9493         * tree-vrp.c (extract_range_from_multiplicative_op): Add
9494         type parameter and use it instead of guessing expression
9495         type from the first operand.
9496         (extract_range_from_binary_expr): Pass expr_type down.
9498 2019-07-25  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
9500         * config/arm/arm.md (SATrev): Change to code attribute.
9501         (*satsi_<SAT:code>): Adjust for the above.
9502         (*satsi_<SAT:code>_shift): Likewise.
9504 2019-07-25  Richard Biener  <rguenther@suse.de>
9506         * gimple-loop-versioning.cc (loop_versioning::prune_loop_conditions):
9507         Make value_range * temporary const.
9508         * gimple-ssa-evrp-analyze.c (evrp_range_analyzer::try_find_new_range):
9509         Likewise.
9510         (evrp_range_analyzer::record_ranges_from_): Likewise.
9511         (evrp_range_analyzer::pop_value_range): Return a const value_range *,
9512         deal with having recorded a const one.
9513         * gimple-ssa-evrp-analyze.h (evrp_range_analyzer::get_value_range):
9514         Return a const value_range *.
9515         (evrp_range_analyzer::pop_value_range): Likewise.
9516         (evrp_range_analyzer::stack): Record const value_range *s.
9517         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
9518         Adjust.
9519         * gimple-ssa-sprintf.c (get_int_range): Likewise.
9520         (format_integer): Likewise.
9521         (sprintf_dom_walker::handle_gimple_call): Likewise.
9522         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Likewise.
9523         * tree-vrp.c (vrp_prop::set_def_to_varying): Add.
9524         (vrp_prop::get_value_range): Adjust.
9525         (vrp_prop::vrp_initialize): Use set_def_to_varying instead of
9526         modifying the lattice in-place.
9527         (vrp_prop::visit_stmt): Likewise.
9528         * vr-values.c (vr_values::get_lattice_entry): New private method.
9529         (vr_values::get_value_range): Wrap it and return a const
9530         value_range *.
9531         (vr_values::set_def_to_varying): New.
9532         (vr_values::set_defs_to_varying): Use it.
9533         (vr_values::update_value_range): Likewise.
9534         (vr_values::vrp_stmt_computes_nonzero): Adjust.
9535         (values::op_with_constant_singleton_va): Likewise.
9536         (vr_values::extract_range_for_var_from_co): Likewise.
9537         (vr_values::extract_range_from_ssa_name): Likewise.
9538         (vr_values::extract_range_from_cond_expr): Likewise.
9539         (vr_values::extract_range_basic): Likewise.
9540         (compare_ranges): Take const value_range *, adjust.
9541         (compare_range_with_value): Likewise.
9542         (vrp_valueize): Adjust.
9543         (vrp_valueize_1): Likewise.
9544         (vr_values::get_vr_for_comparison): Return a const value_range *.
9545         (vr_values::compare_name_with_value): Adjust.
9546         (vr_values::compare_names): Likewise.
9547         (vr_values::vrp_evaluate_conditional_warnv_with_ops_using_ranges):
9548         Likewise.
9549         (vr_values::vrp_evaluate_conditional): Likewise.
9550         (find_case_label_ranges): Take a const value_range *.
9551         (vr_values::vrp_visit_switch_stmt): Adjust.
9552         (vr_values::extract_range_from_phi_node): Likewise.
9553         (vr_values::simplify_div_or_mod_using_ran): Likewise.
9554         (vr_values::simplify_abs_using_ranges): Likewise.
9555         (test_for_singularity): Take a const value_range *.
9556         (range_fits_type_p): Likewise.
9557         (vr_values::simplify_cond_using_ranges_1): Adjust.
9558         (vr_values::simplify_cond_using_ranges_2): Likewise.
9559         (vr_values::simplify_switch_using_ranges): Likewise.
9560         (vr_values::simplify_float_conversion_usi): Likewise.
9561         (vr_values::two_valued_val_range_p): Likewise.
9562         * vr-values.h (vr_values::get_value_range): Return a const
9563         value_range *.
9564         (vr_values::set_def_to_varying): New.
9565         (vr_values::get_lattice_entry): New private method.
9566         (vr_values::get_vr_for_comparison): Return a const value_range *.
9568 2019-07-25  Martin Liska  <mliska@suse.cz>
9569             Dominik Infuhr  <dominik.infuehr@theobroma-systems.com>
9571         PR c++/23383
9572         * common.opt: Add -fallocation-dce
9573         * gimple.c (gimple_call_operator_delete_p): New.
9574         * gimple.h (gimple_call_operator_delete_p): Likewise.
9575         * tree-core.h (enum function_decl_type): Add OPERATOR_DELETE.
9576         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Handle
9577         DECL_IS_OPERATOR_DELETE_P.
9578         (mark_all_reaching_defs_necessary_1): Likewise.
9579         (propagate_necessity): Likewise.
9580         (eliminate_unnecessary_stmts): Handle
9581         gimple_call_operator_delete_p.
9582         * tree-streamer-in.c (unpack_ts_function_decl_value_fields):
9583         Add packing of OPERATOR_DELETE.
9584         * tree-streamer-out.c (pack_ts_function_decl_value_fields):
9585         Similarly here.
9586         * tree.h (DECL_IS_OPERATOR_DELETE_P): New.
9587         (DECL_SET_IS_OPERATOR_DELETE): New.
9588         (DECL_IS_REPLACEABLE_OPERATOR_NEW_P): Likewise.
9590 2019-07-25  Martin Liska  <mliska@suse.cz>
9592         * calls.c (maybe_warn_alloc_args_overflow): Use new macros
9593         (e.g. DECL_SET_LAMBDA_FUNCTION and DECL_LAMBDA_FUNCTION_P).
9594         * coverage.c (coverage_begin_function): Likewise.
9595         * fold-const.c (tree_expr_nonzero_warnv_p): Likewise.
9596         * gimple.c (gimple_call_nonnull_result_p): Likewise.
9597         * ipa-icf.c (sem_item::compare_referenced_symbol_properties): Likewise.
9598         (sem_item::hash_referenced_symbol_properties): Likewise.
9599         * lto-streamer-out.c (hash_tree): Likewise.
9600         * predict.c (expr_expected_value_1): Likewise.
9601         * tree-inline.c (expand_call_inline): Likewise.
9602         * tree-streamer-in.c (unpack_ts_function_decl_value_fields): Likewise.
9603         * tree-streamer-out.c (pack_ts_function_decl_value_fields): Likewise.
9604         * tree-core.h (enum function_decl_type): New enum.
9605         (struct tree_function_decl): Remove operator_new_flag and lambda_function.
9606         * tree.h (FUNCTION_DECL_DECL_TYPE): New.
9607         (set_function_decl_type): Likewise.
9608         (DECL_IS_OPERATOR_NEW_P): New.
9609         (DECL_SET_IS_OPERATOR_NEW): Likewise.
9610         (DECL_LAMBDA_FUNCTION): Likewise.
9611         (DECL_LAMBDA_FUNCTION_P): Likewise.
9612         (DECL_IS_OPERATOR_NEW): Remove.
9613         (DECL_SET_LAMBDA_FUNCTION): Likewise.
9615 2019-07-25  Xiong Hu Luo  <luoxhu@linux.ibm.com>
9617         * ipa-profile.c (get_most_common_single_value): Use
9618         get_nth_most_common_value.
9619         * profile.c (sort_hist_value): New function.
9620         (compute_value_histograms): Call sort_hist_value to sort the
9621         values after loading from disk.
9622         * value-prof.c (get_most_common_single_value): Rename to ...
9623         get_nth_most_common_value.  Add input params n, return
9624         the n_th value and count.
9625         (gimple_divmod_fixed_value_transform): Use
9626         get_nth_most_common_value.
9627         (gimple_ic_transform): Likewise.
9628         (gimple_stringops_transform): Likewise.
9629         * value-prof.h (get_most_common_single_value): Add input params
9630         n, default to 0.
9632 2019-07-25  Richard Biener  <rguenther@suse.de>
9634         PR tree-optimization/91236
9635         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
9636         size of CONSTRUCTOR write.  Fix buffer size we pass to
9637         native_encode_expr.
9639 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9641         * config.gcc (msp430*-*-*): Fix non-GNU style in r273774.
9642         * config/msp430/msp430.h (ENDFILE_SPEC): Fix non-GNU style in
9643         r273773.
9645 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9647         * config.gcc (msp430*-*-*): Enable initfini_array by default unless
9648         explicitly disabled with --disable-initfini-array.
9650 2019-07-24  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9652         * config/msp430/msp430.h (ENDFILE_SPEC): Wrap uses of crtn*.o in
9653         if-exists.
9655 2019-07-24  Martin Sebor  <msebor@redhat.com>
9657         PR tree-optimization/91183
9658         PR tree-optimization/86688
9659         * builtins.c (compute_objsize): Handle MEM_REF.
9660         * tree-ssa-strlen.c (class ssa_name_limit_t): New.
9661         (get_min_string_length): Remove.
9662         (count_nonzero_bytes): New function.
9663         (handle_char_store): Rename...
9664         (handle_store): to this.  Handle multibyte stores via integer types.
9665         (strlen_check_and_optimize_stmt): Adjust conditional and the called
9666         function name.
9668 2019-07-24  Martin Sebor  <msebor@redhat.com>
9670         PR driver/80545
9671         * diagnostic.c (diagnostic_classify_diagnostic): Use lang_mask.
9672         (diagnostic_report_diagnostic): Same.
9673         * diagnostic.h (diagnostic_context::option_enabled): Add an argument.
9674         (diagnostic_context::lang_mask): New data member.
9675         * ipa-pure-const.c (suggest_attribute): Use
9676         lang_hooks.option_lang_mask ().
9677         * opts-common.c (option_enabled): Handle new argument.
9678         (get_option_state): Pass an additional argument.
9679         * opts.c (print_filtered_help): Print supported languages for
9680         unsupported options.  Adjust printing of current state.
9681         * opts.h (option_enabled): Add argument.
9682         * toplev.c (print_switch_values): Use lang_mask.
9683         (general_init): Set global_dc->lang_mask.
9685 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
9687         PR bootstrap/87030
9688         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Revert change from r273749.
9690 2019-07-24  Giuliano Belinassi  <giuliano.belinassi@usp.br>
9692         * cgraphunit.c (symbol_table::compile): Start and stop
9693         TV_CGRAPH_IPA_PASSES and TV_CGRAPH_FUNC_EXPANSION timers.
9694         * timevar.def (TV_CGRAPH_IPA_PASSES, TV_CGRAPH_FUNC_EXPANSION): New.
9696 2019-07-24  Oliver Browne  <oliverbrowne62@gmail.com>
9698         * gimplify.c (flag_instrument_functions_exclude_p): Include
9699         namespace/class information in the printable name.
9700         * opts.c (add_comma_separated_to_vector): Add NUL terminator
9701         to tokens entered into the vector.
9703 2019-07-24  Eric Botcazou  <ebotcazou@adacore.com>
9705         * tree-nested.c (build_simple_mem_ref_notrap): New function.
9706         (get_static_chain): Call it instead of build_simple_mem_ref.
9707         (get_frame_field): Likewise.
9708         (get_nonlocal_debug_decl): Likewise.
9709         (convert_nonlocal_reference_op): Likewise.
9711 2019-07-24  Claudiu Zissulescu  <claziss@synopsys.com>
9713         * config/arc/arc-protos.h (arc_output_function_epilogue): Delete
9714         declaration.
9715         (arc_compute_frame_size): Millicode is disabled when compiling
9716         ISR.
9717         (arc_return_address_register): Likewise.
9718         (arc_compute_function_type): Likewise.
9719         (arc_compute_frame_size): Likewise.
9720         (secondary_reload_info): Likewise.
9721         (arc_get_unalign): Likewise.
9722         (arc_can_use_return_insn): Declare.
9723         * config/arc/arc.c (AUX_LP_START): Define
9724         (AUX_LP_END): Likewise.
9725         (arc_frame_info): Update gmask member to 64-bit datum.
9726         (GMASK_LEN): Update.
9727         (arc_compute_function_type): Make it static, move it forward.
9728         (arc_must_save_register): Update, consider the extra regs.
9729         (arc_compute_millicode_save_restore_regs): Update to use the 64
9730         bit gmask.
9731         (arc_compute_frame_size): Likewise.
9732         (arc_enter_leave_p): Likewise.
9733         (arc_save_callee_saves): Likewise.
9734         (arc_restore_callee_saves): Likewise.
9735         (arc_save_callee_enter): Likewise.
9736         (arc_restore_callee_leave): Likewise.
9737         (arc_save_callee_milli): Likewise.
9738         (arc_restore_callee_milli): Likewise.
9739         (arc_expand_prologue): Add new interrupt handling.
9740         (arc_return_address_register): Make it static, move it forward.
9741         (arc_expand_epilogue): Add new interrupt handling.
9742         (arc_get_unalign): Delete.
9743         (arc_epilogue_uses): Make sure we do not remove the extra
9744         saved/restored registers when interrupt.
9745         (arc_can_use_return_insn): New function.
9746         (push_reg): Likewise.
9747         (pop_reg): Likewise.
9748         (arc_save_callee_saves): Add ZOL and FPX aux registers saving
9749         procedures.
9750         (arc_restore_callee_saves): Likewise, but restoring.
9751         * config/arc/arc.md (VUNSPEC_ARC_ARC600_RTIE): Define.
9752         (R33_REG): Likewise.
9753         (R34_REG): Likewise.
9754         (R35_REG): Likewise.
9755         (R36_REG): Likewise.
9756         (R37_REG): Likewise.
9757         (R38_REG): Likewise.
9758         (R39_REG): Likewise.
9759         (R45_REG): Likewise.
9760         (R46_REG): Likewise.
9761         (R47_REG): Likewise.
9762         (R48_REG): Likewise.
9763         (R49_REG): Likewise.
9764         (R50_REG): Likewise.
9765         (R51_REG): Likewise.
9766         (R52_REG): Likewise.
9767         (R53_REG): Likewise.
9768         (R54_REG): Likewise.
9769         (R55_REG): Likewise.
9770         (R56_REG): Likewise.
9771         (R58_REG): Likewise.
9772         (type): Add rtie attribute.
9773         (in_call_delay_slot): Use RETURN_ADDR_REGNUM.
9774         (movsi_insn): Accept moves to lp_count.
9775         (rtie): Update pattern.
9776         (simple_return): Simplify it, don't use this pattern as a return
9777         from an interrupt.
9778         (arc600_rtie): New pattern.
9779         (p_return_i): Clean up.
9780         (return): Likewise.
9781         * config/arc/builtins.def (rtie): Only available for non ARC6xx
9782         family CPUs.
9783         * config/arc/predicates.md (move_src_operand): Consider lp_count
9784         as a register.
9786 2019-07-24  Andreas Krebbel  <krebbel@linux.ibm.com>
9788         * config/s390/predicates.md (addv_const_operand): New predicate.
9789         * config/s390/s390-modes.def (CCO): New condition code mode.
9790         * config/s390/s390.c (s390_match_ccmode_set): Handle E_CCOmode.
9791         (s390_branch_condition_mask): Likewise.
9792         * config/s390/s390.md ("addv<mode>4", "subv<mode>4")
9793         ("mulv<mode>4"): New expanders.
9794         ("*addv<mode>3_ccoverflow", "*addv<mode>3_ccoverflow_const")
9795         ("*subv<mode>3_ccoverflow", "*mulv<mode>3_ccoverflow"): New
9796         pattern definitions.
9798 2019-07-24  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
9800         PR middle-end/91166
9801         * match.pd (vec_perm_expr(v, v, mask) -> v): New pattern.
9802         (define_predicates): Add entry for uniform_vector_p.
9803         (vec_same_elem_p): New match pattern.
9805 2019-07-24  Iain Sandoe  <iain@sandoe.co.uk>
9807         PR bootstrap/87030
9808         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move from here...
9809         * config/i386/darwin32-biarch.h .. to here.
9810         * config/i386/darwin64-biarch.h: Adjust comments.
9811         * config/rs6000/darwin32-biarch.h: Likewise.
9812         * config/rs6000/darwin64-biarch.h: Likewise.
9813         * config.gcc: Missed commit from r273746
9814         (*-*-darwin*): Don't include CPU t-darwin here.
9815         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9816         an error message if i686-darwin configuration is attempted for
9817         Darwin >= 18.
9819 2019-07-23  Iain Sandoe  <iain@sandoe.co.uk>
9821         PR bootstrap/87030
9822         * config.gcc (*-*-darwin*): Don't include CPU t-darwin here.
9823         (i[34567]86-*-darwin*): Adjust to use biarch files. Produce
9824         an error message if i686-darwin configuration is attempted for
9825         Darwin >= 18.
9826         (x86_64-*-darwin*): Switch to single multilib for Darwin >= 18.
9827         (powerpc-*-darwin*): Use biarch files where needed.
9828         (powerpc64-*-darwin*): Likewise.
9829         * config/i386/darwin.h (REAL_LIBGCC_SPEC): Move to new biarch file.
9830         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9831         arch case.
9832         * config/i386/darwin32-biarch.h: New.
9833         * config/i386/darwin64.h: Rename.
9834         * config/i386/darwin64-biarch.h: To this.
9835         * config/i386/t-darwin: Rename.
9836         * config/i386/t-darwin32-biarch: To this.
9837         * config/i386/t-darwin64: Rename.
9838         * config/i386/t-darwin64-biarch: To this.
9839         * config/rs6000/darwin32-biarch.h: New.
9840         * config/rs6000/darwin64.h: Rename.
9841         * config/rs6000/darwin64-biarch.h: To this.
9842         (DARWIN_ARCH_SPEC, DARWIN_SUBARCH_SPEC): Revise for default single
9843         arch case.
9844         * config/rs6000/t-darwin8: Rename.
9845         * config/rs6000/t-darwin32-biarch: To this.
9846         * config/rs6000/t-darwin64 Rename.
9847         * config/rs6000/t-darwin64-biarch: To this.
9849 2019-07-23  Martin Sebor  <msebor@redhat.com>
9851         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Revert r273311.
9853 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
9855         * gdbinit.in (reload-gdbhooks): New command with an attached doc string.
9856         (rh): New alias for it.
9858 2019-07-23  Vladislav Ivanishin  <vlad@ispras.ru>
9860         * gdbhooks.py: Pass replace=True to
9861         gdb.printing.register_pretty_printer.
9863 2019-07-23  Richard Biener  <rguenther@suse.de>
9865         PR debug/91231
9866         * lto-streamer-in.c (input_function): Drop inline-entry markers
9867         that ended up with an unknown location block.
9869 2019-07-23  Richard Biener  <rguenther@suse.de>
9871         PR tree-optimization/83518
9872         * tree-ssa-sccvn.c (vn_reference_lookup_3): Handle aggregate
9873         init from a constant even when partial defs are already recorded.
9875 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9877         * i386-common.c: Use PROCESSOR_ZNVER2 scheduler for znver2.
9878         * config/i386/znver1.md: Enable patterns for znver2 and add store
9879         variants which use extra AGU unit.
9881 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9883         * config/i386/i386-options.c (ix86_option_override_internal): Default
9884         PARAM_AVOID_FMA_MAX_BITS to 256 for znver2.
9885         * config/i386/x86-tune.def (X86_TUNE_AVOID_256FMA_CHAINS): Set
9886         for ZNVER2.
9888 2019-07-23  Jan Hubicka  <hubicka@ucw.cz>
9890         * config/i386/x86-tune-costs.h (znver2_memcpy): Update.
9891         (znver2_costs): Update 256 bit SSE costs and multiplication.
9893 2019-07-23  Jan Beulich  <jbeulich@suse.com>
9895         * config/i386/sse.md (<avx512>_cvtmask2<ssemodesuffix><mode>):
9896         Require only AVX512F.
9897         (*<avx512>_cvtmask2<ssemodesuffix><mode>): Likewise.  Add
9898         alternative expanding to vpternlog.
9900 2019-07-23  Martin Liska  <mliska@suse.cz>
9902         * dwarf2out.c (gen_producer_string): Canonize -flto=N
9903         to -flto in dwarf producer string.
9905 2019-07-23  Richard Biener  <rguenther@suse.de>
9907         * tree-cfg.c (label_for_bb): Remove global var.
9908         (main_block_label): Take label_for_bb as argument.
9909         (cleanup_dead_labels_eh): Likewise, adjust.
9910         (cleanup_dead_labels): Adjust.
9912 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
9914         * doc/extend.texi (Basic PowerPC Built-in Functions Available on all
9915         Configurations): Add documentation for __builtin_mtfsf.
9917 2019-07-22  Ilia Diachkov  <ilia.diachkov@optimitech.com>
9919         * config/riscv/riscv-opts.h (struct riscv_align_data): New.
9920         * config/riscv/riscv.c (riscv_constant_alignment): Use
9921         riscv_align_data_type.
9922         * config/riscv/riscv.h (RISCV_EXPAND_ALIGNMENT): New.
9923         (DATA_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9924         (LOCAL_ALIGNMENT): Use RISCV_EXPAND_ALIGNMENT.
9925         * config/riscv/riscv.opt (malign-data): New.
9926         * doc/invoke.texi (RISC-V Options): Document -malign-data=.
9928 2019-07-02  Giuliano Belinassi  <giuliano.belinassi@usp.br>
9930         * cgraph.c (dump_graphviz): New function.
9931         * cgraph.h (dump_graphviz): New function.
9932         * symtab.c (dump_graphviz): New function.
9934 2019-07-22  Sylvia Taylor  <sylvia.taylor@arm.com>
9936         * config/aarch64/aarch64-simd.md
9937         (*aarch64_simd_sra<mode>): New.
9938         * config/aarch64/iterators.md
9939         (SHIFTRT): New iterator.
9940         (sra_op): New attribute.
9942 2019-07-22  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
9944         * config/msp430/msp430.c (msp430_preserve_reg_p): Don't save
9945         callee-saved regs R4->R10 in an interrupt function that calls another
9946         function.
9948 2019-07-22  Paul A. Clarke  <pc@us.ibm.com>
9950         * config/rs6000/smmintrin.h (_mm_blend_epi16): New.
9951         (_mm_blendv_epi8): New.
9953 2019-07-22  Richard Biener  <rguenther@suse.de>
9955         PR tree-optimization/91221
9956         * tree-ssa-sccvn.c (vn_reference_lookup_3): Appropriately
9957         restrict partial-def handling of empty constructors and
9958         memset to refs with known offset.
9960 2019-07-22  Jan Beulich  <jbeulich@suse.com>
9962         * config/i386/sse.md (ternlogsuffix): New.
9963         (one_cmpl<mode>2): Don't force CONSTM1_RTX into a register when
9964         AVX512F is in use.
9965         (<mask_codefor>one_cmpl<mode>2<mask_name>): New.
9967 2019-07-22  Martin Liska  <mliska@suse.cz>
9969         * config/avr/avr.c (avr_asm_output_aligned_decl_common): Update
9970         comment.
9971         * toplev.c (compile_file): Do not emit __gnu_lto_v1 symbol.
9973 2019-07-22  Martin Liska  <mliska@suse.cz>
9975         * lto-section-in.c (lto_get_section_data):
9976         Use new function get_compression.
9977         * lto-streamer-out.c (produce_lto_section): Use
9978         set_compression to encode compression algorithm.
9979         * lto-streamer.h (struct lto_section): Do not
9980         use bitfields in the format.
9982 2019-07-22  Martin Liska  <mliska@suse.cz>
9984         PR driver/91172
9985         * opts-common.c (decode_cmdline_option): Decode
9986         argument of -Werror and check it for a wrong language.
9987         * opts-global.c (complain_wrong_lang): Remove such case.
9989 2019-07-22  Claudiu Zissulescu  <claziss@synopsys.com>
9991         * config/arc/arc.c (prepare_move_operands): Always use an
9992         intermediate register when storing a TLS symbols.
9994 2019-07-22  Stafford Horne  <shorne@gmail.com>
9996         * config/or1k/or1k.c (or1k_expand_compare): Check for int before
9997         force_reg.
9999 2019-07-22  Stafford Horne  <shorne@gmail.com>
10001         * config.gcc (or1k*-*-*): Add mhard-float, mdouble-float, msoft-float
10002         and munordered-float validations.
10003         * config/or1k/constraints.md (d): New register constraint.
10004         * config/or1k/predicates.md (fp_comparison_operator): New.
10005         * config/or1k/or1k.c (or1k_print_operand): Add support for printing 'd'
10006         operands.
10007         (or1k_expand_compare): Normalize unordered comparisons.
10008         * config/or1k/or1k.h (reg_class): Define DOUBLE_REGS.
10009         (REG_CLASS_NAMES): Add "DOUBLE_REGS".
10010         (REG_CLASS_CONTENTS): Add contents for DOUBLE_REGS.
10011         * config/or1k/or1k.md (type): Add fpu.
10012         (fpu): New instruction reservation.
10013         (F, f, fr, fi, FI, FOP, fop): New.
10014         (<fop><F:mode>3): New ALU instruction definition.
10015         (float<fi><F:mode>2): New conversion instruction definition.
10016         (fix_trunc<F:mode><fi>2): New conversion instruction definition.
10017         (fpcmpcc): New code iterator.
10018         (*sf_fp_insn): New instruction definition.
10019         (cstore<F:mode>4): New expand definition.
10020         (cbranch<F:mode>4): New expand definition.
10021         * config/or1k/or1k.opt (msoft-float, mhard-float, mdouble-float,
10022         munordered-float): New options.
10023         * doc/invoke.texi: Document msoft-float, mhard-float, mdouble-float and
10024         munordered-float.
10026 2019-07-22  Stafford Horne  <shorne@gmail.com>
10028         * config.gcc (or1k*-*-*): Add mrori and mror to validation.
10029         * doc/invoke.texi (OpenRISC Options): Add mrori option, rewrite all
10030         documenation to be more clear.
10031         * config/or1k/elf.opt (mboard=, mnewlib): Rewrite documentation to be
10032         more clear.
10033         * config/or1k/or1k.opt (mrori): New option.
10034         (mhard-div, msoft-div, mhard-mul, msoft-mul, mcmov, mror, msext,
10035         msfimm, mshftimm): Rewrite documentation to be more clear.
10036         * config/or1k/or1k.md (insn_support): Add ror and rori.
10037         (enabled): Add conditions for ror and rori.
10038         (rotrsi3): Replace condition for shftimm with ror and rori.
10040 2019-07-22  Stafford Horne  <shorne@gmail.com>
10042         PR target/90363
10043         * config/or1k/or1k.md (zero_extend<mode>si2): Update predicate.
10044         (extend<mode>si2): Update predicate.
10045         * config/or1k/predicates.md (volatile_mem_operand): New.
10046         (reg_or_mem_operand): New.
10048 2019-07-21  Iain Sandoe  <iain@sandoe.co.uk>
10050         * config/rs6000/rs6000.c (TARGET_NO_PROTOTYPE): Move from here...
10051         * config/rs6000/rs6000-call.c: ... to here.
10053 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10055         * config/rs6000/predicates.md (offsettable_mem_operand): Allow volatile
10056         memory.
10058 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10060         * config/rs6000/predicates.md (input_operand): Allow volatile memory.
10062 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10064         * config/rs6000/predicates.md (lwa_operand): Allow volatile memory.
10066 2019-07-20  Segher Boessenkool  <segher@kernel.crashing.org>
10068         * config/rs6000/predicates.md (volatile_mem_operand): Modernize syntax.
10069         (any_memory_operand): New predicate.
10070         (reg_or_mem_operand): Use it.
10072 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
10074         PR target/91204
10075         * optabs.c (expand_unop): As fallback, expand ~op0 as op0 ^ -1.
10077 2019-07-20  John David Anglin  <danglin@gcc.gnu.org>
10079         * config/pa/pa.h (hppa_profile_hook): Delete declaration.
10080         * config/pa/pa-protos.h (hppa_profile_hook): Add declaration.
10082 2019-07-20  Jakub Jelinek  <jakub@redhat.com>
10084         * tree.def (OMP_LOOP): New tree code.
10085         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_BIND.
10086         (enum omp_clause_bind_kind): New enum.
10087         (struct tree_omp_clause): Add subcode.bind_kind.
10088         * tree.h (OMP_LOOP_CHECK): Rename to ...
10089         (OMP_LOOPING_CHECK): ... this.
10090         (OMP_FOR_BODY, OMP_FOR_CLAUSES, OMP_FOR_INIT, OMP_FOR_COND,
10091         OMP_FOR_INCR, OMP_FOR_PRE_BODY, OMP_FOR_ORIG_DECLS): Use
10092         OMP_LOOPING_CHECK instead of OMP_LOOP_CHECK.
10093         (OMP_CLAUSE_BIND_KIND): Define.
10094         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10095         bind clause entries.
10096         (walk_tree_1): Handle OMP_CLAUSE_BIND.
10097         * tree-pretty-print.c (dump_omp_clause): Likewise.
10098         (dump_generic_node): Handle OMP_LOOP.
10099         * gimplify.c (enum omp_region_type): Add ORT_IMPLICIT_TARGET.
10100         (in_omp_construct): New variable.
10101         (is_gimple_stmt): Handle OMP_LOOP.
10102         (gimplify_scan_omp_clauses): For lastprivate don't set
10103         check_non_private if code == OMP_LOOP.  For reduction clause
10104         on OMP_LOOP combined with parallel or teams propagate as shared
10105         on the combined construct.  Handle OMP_CLAUSE_BIND.
10106         (gimplify_adjust_omp_clauses): Handle OMP_CLAUSE_BIND.
10107         (gimplify_omp_for): Pass OMP_LOOP instead of OMP_{FOR,DISTRIBUTE}
10108         for constructs from a loop construct to gimplify_scan_omp_clauses.
10109         Don't predetermine iterator linear on OMP_SIMD from loop construct.
10110         (replace_reduction_placeholders, gimplify_omp_loop): New functions.
10111         (gimplify_omp_workshare): Use ORT_IMPLICIT_TARGET instead of trying
10112         to match the implicit ORT_TARGET construct around whole body.
10113         Temporarily clear in_omp_construct when processing body.
10114         (gimplify_expr): Handle OMP_LOOP.  For OMP_MASTER, OMP_TASKGROUP
10115         etc. temporarily set in_omp_construct when processing body.
10116         (gimplify_body): Create ORT_IMPLICIT_TARGET instead of ORT_TARGET.
10117         * omp-low.c (struct omp_context): Add loop_p.
10118         (build_outer_var_ref): Treat ctx->loop_p similarly to simd construct
10119         in that the original var might be private.
10120         (scan_sharing_clauses): Handle OMP_CLAUSE_BIND.
10121         (check_omp_nesting_restrictions): Adjust nesting restrictions for
10122         addition of loop construct.
10123         (scan_omp_1_stmt): Allow setjmp inside of loop construct.
10125         * omp-low.c (lower_rec_input_clauses): Don't force simd arrays for
10126         lastprivate non-addressable iterator of a collapse(1) simd.
10128 2019-07-17  Bill Seurer  <seurer@linux.vnet.ibm.com>
10130         * config/rs6000/rs6000-call.c (HAVE_AS_GNU_ATTRIBUTE): define value
10131         as in rs6000.c.
10133 2019-07-19  Iain Sandoe  <iain@sandoe.co.uk>
10135         * config/darwin.h (DRIVER_SELF_SPECS): Ignore X and Mach specs which
10136         refer to default conditions.  Warn for the 'y' spec which is ignored
10137         by current linkers.
10139 2019-07-19  Bill Seurer  <seurer@linux.vnet.ibm.com>
10141         * config/rs6000/rs6000.c (builtin_description, cpu_is_info,
10142         cpu_supports_info, builtin_hash_struct, builtin_hasher,
10143         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10144         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10145         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10146         init_cumulative_args, rs6000_promote_function_mode,
10147         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10148         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10149         rs6000_function_arg_boundary, rs6000_parm_offset,
10150         rs6000_parm_start, rs6000_arg_size,
10151         rs6000_darwin64_record_arg_advance_flush,
10152         rs6000_darwin64_record_arg_advance_recurse,
10153         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10154         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10155         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10156         rs6000_mixed_function_arg, rs6000_psave_function_arg,
10157         rs6000_finish_function_arg, rs6000_function_arg,
10158         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10159         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10160         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10161         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10162         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10163         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10164         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10165         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10166         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10167         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10168         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10169         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10170         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10171         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10172         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10173         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10174         get_element_number, altivec_expand_vec_set_builtin,
10175         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10176         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10177         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10178         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10179         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10180         rs6000_expand_builtin, rs6000_vector_type,
10181         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10182         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10183         rs6000_internal_arg_pointer, rs6000_output_mi_thunk): Move
10184         to rs6000-call.c.
10185         * config/rs6000/rs6000-call.c (builtin_description, cpu_is_info,
10186         cpu_supports_info, builtin_hash_struct, builtin_hasher,
10187         builtin_hash_table, rs6000_builtin_info_type, rs6000_builtin_info,
10188         rs6000_aggregate_candidate, rs6000_discover_homogeneous_aggregate,
10189         rs6000_return_in_memory, rs6000_return_in_msb, call_ABI_of_interest,
10190         init_cumulative_args, rs6000_promote_function_mode,
10191         rs6000_must_pass_in_stack, is_complex_IBM_long_double,
10192         abi_v4_pass_in_fpr, rs6000_function_arg_padding,
10193         rs6000_function_arg_boundary, rs6000_parm_offset,
10194         rs6000_parm_start, rs6000_arg_size,
10195         rs6000_darwin64_record_arg_advance_flush,
10196         rs6000_darwin64_record_arg_advance_recurse,
10197         rs6000_darwin64_struct_check_p, rs6000_function_arg_advance_1,
10198         rs6000_function_arg_advance, rs6000_darwin64_record_arg_flush,
10199         rs6000_darwin64_record_arg_recurse, rs6000_darwin64_record_arg,
10200         rs6000_mixed_function_arg, rs6000_psave_function_arg,
10201         rs6000_finish_function_arg, rs6000_function_arg,
10202         rs6000_arg_partial_bytes, rs6000_pass_by_reference,
10203         rs6000_parm_needs_stack, rs6000_function_parms_need_stack,
10204         rs6000_reg_parm_stack_space, rs6000_move_block_from_reg,
10205         setup_incoming_varargs, rs6000_build_builtin_va_list, rs6000_va_start,
10206         rs6000_gimplify_va_arg, def_builtin, bdesc_3arg, bdesc_dst,
10207         bdesc_2arg, bdesc_altivec_preds, bdesc_abs, bdesc_1arg, bdesc_0arg,
10208         bdesc_htm, rs6000_overloaded_builtin_p, rs6000_overloaded_builtin_name,
10209         rs6000_expand_zeroop_builtin, rs6000_expand_mtfsf_builtin,
10210         rs6000_expand_mtfsb_builtin, rs6000_expand_set_fpscr_rn_builtin,
10211         rs6000_expand_set_fpscr_drn_builtin, rs6000_expand_unop_builtin,
10212         altivec_expand_abs_builtin, rs6000_expand_binop_builtin,
10213         altivec_expand_predicate_builtin, swap_endian_selector_for_mode,
10214         altivec_expand_lv_builtin, altivec_expand_stxvl_builtin,
10215         altivec_expand_stv_builtin, htm_spr_num, rs6000_htm_spr_icode,
10216         htm_expand_builtin, cpu_expand_builtin, rs6000_expand_ternop_builtin,
10217         altivec_expand_dst_builtin, altivec_expand_vec_init_builtin,
10218         get_element_number, altivec_expand_vec_set_builtin,
10219         altivec_expand_vec_ext_builtin, altivec_expand_builtin,
10220         rs6000_builtin_is_supported_p, rs6000_invalid_builtin,
10221         rs6000_fold_builtin, rs6000_builtin_valid_without_lhs,
10222         fold_build_vec_cmp, fold_compare_helper, fold_mergehl_helper,
10223         fold_mergeeo_helper, rs6000_gimple_fold_builtin,
10224         rs6000_expand_builtin, rs6000_vector_type,
10225         rs6000_init_builtins, rs6000_builtin_decl, altivec_init_builtins,
10226         htm_init_builtins, builtin_function_type, rs6000_common_init_builtins,
10227         rs6000_internal_arg_pointer, rs6000_output_mi_thunk: Move
10228         to here from rs6000.c.
10229         * config/rs6000/rs6000-internal.h: (rs6000_darwin64_struct_check_p,
10230         rs6000_discover_homogeneous_aggregate, rs6000_output_mi_thunk,
10231         rs6000_output_addr_const_extra, rs6000_gimple_fold_builtin,
10232         rs6000_invalid_builtin, rs6000_build_builtin_va_list, rs6000_va_start,
10233         rs6000_gimplify_va_arg, rs6000_promote_function_mode,
10234         rs6000_return_in_memory, rs6000_return_in_msb,
10235         rs6000_pass_by_reference, setup_incoming_varargs,
10236         rs6000_function_arg_boundary, rs6000_must_pass_in_stack,
10237         rs6000_arg_partial_bytes, rs6000_function_arg_advance,
10238         rs6000_function_arg_padding, rs6000_function_arg,
10239         rs6000_darwin64_record_arg, rs6000_internal_arg_pointer,
10240         rs6000_init_builtins, rs6000_builtin_decl, rs6000_expand_builtin,
10241         rs6000_fold_builtin, rs6000_passes_ieee128, rs6000_passes_float,
10242         rs6000_passes_long_double, rs6000_passes_vector,
10243         rs6000_returns_struct, cpu_builtin_p, tree builtin_mode_to_type,
10244         altivec_builtin_mask_for_load) Add declarations.
10245         * config/rs6000/t-rs6000: Add new source file rs6000-call.c.
10246         * config/config.gcc: Add new source file rs6000-call.c to garbage
10247         collector and extra_objs.
10249 2019-07-19  Jeff Law  <law@redhat.com>
10251         PR tree-optimization/86061
10252         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle
10253         strncpy.  Drop some trivial dead code.
10254         (maybe_trim_memstar_call): Handle strncpy.
10256 2019-07-19  Richard Biener  <rguenther@suse.de>
10258         PR tree-optimization/91211
10259         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Fix
10260         memset encoding size.
10262 2019-07-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10264         PR target/91204
10265         * config/i386/mmx.md (one_cmpl<mode>2): New expander.
10267 2019-07-19  Jan Hubicka  <hubicka@ucw.cz>
10269         PR ipa/91194
10270         * ipa-inline.c (recursive_inlining): Fix limits check.
10272 2019-07-19  Richard Biener  <rguenther@suse.de>
10274         PR tree-optimization/91200
10275         * tree-ssa-phiopt.c (cond_store_replacement): Check we have
10276         no PHI nodes in middle-bb.
10278 2019-07-19  Richard Sandiford  <richard.sandiford@arm.com>
10280         * doc/invoke.texi: Rename the AArch64 +bitperm extension flag
10281         to +sve-bitperm.
10282         * config/aarch64/aarch64-option-extensions.def: Likewise.
10284 2019-07-19  Jakub Jelinek  <jakub@redhat.com>
10286         PR middle-end/91190
10287         * function.c (insert_temp_slot_address): Store into the hash table
10288         a copy of address to avoid RTL sharing issues.
10290 2019-07-19  Richard Biener  <rguenther@suse.de>
10292         PR tree-optimization/91207
10293         Revert
10294         2019-07-17  Richard Biener  <rguenther@suse.de>
10296         PR tree-optimization/91178
10297         * tree-vect-stmts.c (get_group_load_store_type): For SLP
10298         loads with a gap larger than the vector size always use
10299         VMAT_STRIDED_SLP.
10300         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10301         avoid loading vectors that are only contained in the gap
10302         and thus are not needed.
10304 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10306         * config/i386/i386.md (*addqi_2_slp): Remove.
10307         (*<code>qi_2_slp): Ditto.
10309 2019-07-18  Michael Meissner  <meissner@linux.ibm.com>
10311         * config/rs6000/predicates.md (prefixed_mem_operand): Call
10312         rs6000_prefixed_address_mode_p instead of rs6000_prefixed_address.
10313         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address_mode_p):
10314         Rename function from rs6000_prefixed_address.
10315         * config/rs6000/aix.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10316         TARGET_HAS_TOC.
10317         (TARGET_TOC): Likewise.
10318         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10319         rs6000.h.
10320         * config/rs6000/darwin.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10321         TARGET_HAS_TOC.
10322         (TARGET_TOC): Likewise.
10323         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10324         rs6000.h.
10325         * config/rs6000/linux64.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10326         TARGET_HAS_TOC.
10327         (TARGET_TOC): Likewise.
10328         * config/rs6000/rs6000.c (rs6000_option_override_internal): Add
10329         check to require -mcmodel=medium for pc-relative addressing.
10330         (create_TOC_reference): Add assertion for TARGET_TOC.
10331         (rs6000_legitimize_address): Use TARGET_NO_TOC_OR_PCREL instead of
10332         TARGET_NO_TOC.
10333         (rs6000_emit_move): Likewise.
10334         (TOC_alias_set): Rename TOC alias set static variable from 'set'
10335         to 'TOC_alias_set'.
10336         (get_TOC_alias_set): Likewise.
10337         (output_toc): Use TARGET_NO_TOC_OR_PCREL instead of
10338         TARGET_NO_TOC.
10339         (rs6000_can_eliminate): Likewise.
10340         (rs6000_prefixed_address_mode_p): Rename function from
10341         rs6000_prefixed_address.
10342         * config/rs6000/rs6000.h (TARGET_TOC): Define in terms of
10343         TARGET_HAS_TOC and not pc-relative.
10344         (TARGET_NO_TOC_OR_PCREL): New macro to replace TARGET_NO_TOC.
10345         * config/rs6000/sysv4.h (TARGET_HAS_TOC): Rename TARGET_TOC to
10346         TARGET_HAS_TOC.
10347         (TARGET_TOC): Likewise.
10348         (TARGET_NO_TOC): Delete here, define TARGET_NO_TOC_OR_PCREL in
10349         rs6000.h.
10351 2019-07-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10353         PR target/91188
10354         * config/i386/i386.md (*addqi_1_slp): Use register_operand predicate
10355         for operand 0.  Do not use (match_dup) to match operand 1 with
10356         operand 0.  Add check in insn constraint that either input operand
10357         matches operand 0.  Use SWI12 mode iterator to also handle
10358         HImode operands.
10359         (*and<mode>_1_slp): Ditto.
10360         (*<code>qi_1_slp): Ditto.
10361         (*sub<mode>_1_slp): Use register_operand predicate for operand 0.
10362         Do not use (match_dup) to match operand 1 with operand 0.  Add
10363         check in insn constraint that operand 1 matches operand 0.
10364         Use SWI12 mode iterator to also handle HImode operands.
10365         (*ashl<mode>3_1_slp): Ditto.
10366         (*<shift_insn><mode>3_1_slp): Ditto.
10367         (*<rotate_insn><mode>3_1_slp): Ditto.
10369 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
10371         * config/arm/arm-builtins.c
10372         (arm_expand_ternop_builtin): Remove explicit sha1 builtin handling.
10373         (arm_expand_unop_builtin): Likewise.
10374         * config/arm/crypto.md
10375         (crypto_sha1h): Convert from define_insn to define_expand.
10376         (crypto_<crypto_pattern>): Likewise.
10377         (crypto_sha1h_lb): New define_insn.
10378         (crypto_<crypto_pattern>_lb): Likewise.
10380 2019-07-18  Sylvia Taylor  <sylvia.taylor@arm.com>
10382         PR target/90317
10383         * config/arm/arm_neon.h (vsha1h_u32): Refactor.
10384         (vsha1cq_u32): Likewise.
10385         (vsha1pq_u32): Likewise.
10386         (vsha1mq_u32): Likewise.
10387         * config/arm/crypto.md (crypto_sha1h): Remove zero extend, correct
10388         vec select.
10389         (crypto_sha1c): Correct vec select.
10390         (crypto_sha1m): Likewise.
10391         (crypto_sha1p): Likewise.
10393 2019-07-18  Richard Earnshaw  <rearnsha@arm.com>
10395         * config/arm/predicates.md (arm_borrow_operation): New predicate.
10396         * config/arm/arm.c (subdi3_compare1): Use CCmode for the split.
10397         (arm_subdi3, subdi_di_zesidi, subdi_di_sesidi): Likewise.
10398         (subdi_zesidi_zesidi): Likewise.
10399         (negdi2_compare, negdi2_insn): Likewise.
10400         (negdi_extensidi): Likewise.
10401         (negdi_zero_extendsidi): Likewise.
10402         (arm_cmpdi_insn): Likewise.
10403         (subsi3_carryin): Use arm_borrow_operation.
10404         (subsi3_carryin_const): Likewise.
10405         (subsi3_carryin_const0): Likewise.
10406         (subsi3_carryin_compare): Likewise.
10407         (subsi3_carryin_compare_const): Likewise.
10408         (subsi3_carryin_compare_const0): Likewise.
10409         (subsi3_carryin_shift): Likewise.
10410         (rsbsi3_carryin_shift): Likewise.
10411         (negsi2_carryin_compare): Likewise.
10413 2019-07-18  Bin Cheng  <bin.cheng@linux.alibaba.com>
10415         PR tree-optimization/91137
10416         * tree-ssa-loop-ivopts.c (struct ivopts_data): New field.
10417         (tree_ssa_iv_optimize_init, alloc_iv, tree_ssa_iv_optimize_finalize):
10418         Init, use and fini the above new field.
10419         (determine_base_object_1): New function.
10420         (determine_base_object): Reimplement using walk_tree.
10422 2019-07-18  Richard Sandiford  <richard.sandiford@arm.com>
10424         * basic-block.h (CLEANUP_FORCE_FAST_DCE): New macro.
10425         * cfgcleanup.c (cleanup_cfg): Call run_fast_dce if
10426         CLEANUP_FORCE_FAST_DCE is set.
10427         * ifcvt.c (rest_of_handle_if_conversion): Pass
10428         CLEANUP_FORCE_FAST_DCE to the final cleanup_cfg call if
10429         if-conversion succeeded.
10431 2019-07-18  Richard Biener  <rguenther@suse.de>
10433         * tree-ssa-sccvn.c (vn_walk_cb_data::push_partial_def): Refactor
10434         branches to make code less indented.
10436 2019-07-17  Alexandre Oliva  <oliva@adacore.com>
10438         PR middle-end/81824
10439         * attribs.c (decls_mismatched_attributes): Simplify the logic
10440         that avoids duplicates and false positives.
10442 2019-07-17  John David Anglin  <danglin@gcc.gnu.org>
10444         * config/pa/pa.c (pa_som_asm_init_sections): Don't force all constant
10445         data into data section when generating PIC code.
10446         (pa_select_section): Use pa_reloc_rw_mask() to qualify relocs.
10447         (pa_reloc_rw_mask): Return 3 when generating PIC code and when
10448         generating code for SOM targets earlier than HP-UX 11.  Otherwise,
10449         return 2 for SOM and 0 for other targets.
10451 2019-07-17  Jeff Law  <law@redhat.com>
10453         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Fix formatting.
10454         (dse_walker::dse_optimize_stmt): Likewise.  Add missing return to
10455         avoid unexpected switch statement fallthru.
10457 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10459         * config/i386/i386.md (*add<dwi>3_doubleword):
10460         Remove redundant constraints.
10461         (*add<mode>_1): Ditto.
10462         (*addhi_1): Ditto.
10463         (*addqi_1): Ditto.
10464         (*addqi_1_slp): Ditto.
10465         (*add<mode>_2): Ditto.
10466         (*addv<mode>4): Ditto.
10467         (*sub<dwi>3_doubleword): Ditto.
10468         (*sub<mode>_1): Ditto.
10469         (*subqi_1_slp): Ditto.
10470         (*sub<mode>_2): Ditto.
10471         (*subv<mode>4): Ditto.
10472         (*sub<mode>_3): Ditto.
10473         (@add<mode>3_carry): Ditto.
10474         (@sub<mode>3_carry): Ditto.
10475         (*add<mode>3_cc_overflow_1): Ditto.
10476         (*add<mode>3_zext_cc_overflow_2): Ditto.
10477         (*anddi_1): Ditto.
10478         (*and<mode>_1): Ditto.
10479         (*andqi_1): Ditto.
10480         (*andqi_1_slp): Ditto.
10481         (*anddi_2): Ditto.
10482         (*andqi_2_maybe_si): Ditto.
10483         (*and<mode>_2): Ditto.
10484         (*andqi_2_slp): Ditto.
10485         (*<code><mode>_1): Ditto.
10486         (*<code>qi_1): Ditto.
10487         (*<code>qi_1_slp): Ditto.
10488         (*<code><mode>_2): Ditto.
10489         (*<code>qi_2_slp): Ditto.
10491 2019-07-17  Jan Hubicka  <hubicka@ucw.cz>
10493         * alias.c (record_component_aliases): Do not simplify pointed-to
10494         types of ODR types.
10496 2019-07-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10498         * config/i386/i386.md (*andqi_2_maybe_si): Handle potential
10499         partial reg stall on alternative 2.
10501 2019-07-17  Richard Biener  <rguenther@suse.de>
10503         PR tree-optimization/91178
10504         * tree-ssa.c (release_defs_bitset): Iterate from higher to
10505         lower SSA names to avoid quadratic behavior in the common case.
10506         * tree-data-ref.c (split_constant_offset): Add limit argument
10507         and pass it down.  Initialize it from PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10508         (split_constant_offset_1): Add limit argument and use it to
10509         limit SSA def walking.  Optimize the common plus/minus case.
10511 2019-07-17  Richard Biener  <rguenther@suse.de>
10513         PR tree-optimization/91178
10514         * tree-vect-stmts.c (get_group_load_store_type): For SLP
10515         loads with a gap larger than the vector size always use
10516         VMAT_STRIDED_SLP.
10517         (vectorizable_load): For VMAT_STRIDED_SLP with a permutation
10518         avoid loading vectors that are only contained in the gap
10519         and thus are not needed.
10521 2019-07-17  Richard Biener  <rguenther@suse.de>
10523         PR tree-optimization/91180
10524         * tree-ssa-sccvn.c (vn_reference_lookup_3): Fix offset
10525         computation for memset partial defs.
10527 2019-07-17  Jakub Jelinek  <jakub@redhat.com>
10529         * gimple.h (enum gf_mask): Remove GF_OMP_FOR_SIMD, change
10530         GF_OMP_FOR_KIND_SIMD to a value serially after other kinds,
10531         divide GF_OMP_FOR_KIND_MASK, GF_OMP_FOR_COMBINED,
10532         GF_OMP_FOR_COMBINED_INTO, GF_OMP_FOR_GRID_PHONY,
10533         GF_OMP_FOR_GRID_INTRA_GROUP and GF_OMP_FOR_GRID_GROUP_ITER by two.
10534         * omp-grid.c (grid_process_grid_body,
10535         grid_eliminate_combined_simd_part): Use GF_OMP_FOR_KIND_SIMD instead
10536         of GF_OMP_FOR_SIMD, don't test & GF_OMP_FOR_SIMD but
10537         == GF_OMP_FOR_KIND_SIMD.
10538         * omp-low.c (build_outer_var_ref, scan_sharing_clauses,
10539         check_omp_nesting_restrictions, scan_omp_1_stmt,
10540         lower_rec_input_clauses, lower_lastprivate_conditional_clauses,
10541         lower_lastprivate_clauses, lower_reduction_clauses, lower_omp_scan,
10542         omp_find_scan): Likewise.
10543         * omp-expand.c (expand_omp_for): Likewise.
10544         * omp-general.c (omp_extract_for_data): Likewise.
10546         PR tree-optimization/91157
10547         * tree-vect-generic.c (expand_vector_comparison): Handle lhs being
10548         a vector boolean with scalar mode.
10549         (expand_vector_condition): Handle first operand being a vector boolean
10550         with scalar mode.
10551         (expand_vector_operations_1): For comparisons, don't bail out early
10552         if the return type is vector boolean with scalar mode, but comparison
10553         operand type is not.
10555 2019-07-17  Richard Biener  <rguenther@suse.de>
10557         PR tree-optimization/91181
10558         * tree-vect-slp.c (vect_build_slp_tree_1): Do not compare
10559         IFN_LOADs as calls.
10561 2019-07-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10563         * config/i386/i386.md (*testdi_1): Match CCZmode for
10564         constants that might have the SImode sign bit set.
10565         (*testqi_1_maybe_si): Remove "!" constraint modifier.
10566         Use correct constraints for pentium pairing.
10567         (*test<mode>_1): Ditto.
10569 2019-07-16  Jeff Law  <law@redhat.com>
10571         PR rtl-optimization/91173
10572         * tree-ssa-address.c (addr_for_mem_ref): If the base is an
10573         SSA_NAME with a constant value, fold its value into the offset
10574         and clear the base before calling gen_addr_rtx.
10576 2019-07-16  Jakub Jelinek  <jakub@redhat.com>
10578         PR rtl-optimization/91164
10579         * dse.c (rest_of_handle_dse): If dead edges have been purged,
10580         invalidate dominance info.
10582 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10584         * read-md.h (md_reader::record_potential_iterator_use): Add a
10585         file_location parameter.
10586         * read-rtl.c (attribute_use::loc): New field.
10587         (map_attr_string): Take a file_location parameter.  Report cases
10588         in which attributes map to multiple distinct values.
10589         (apply_attribute_uses): Update call accordingly.
10590         (md_reader::handle_overloaded_name): Likewise.
10591         (md_reader::apply_iterator_to_string): Likewise.  Skip empty
10592         nonnull strings.
10593         (record_attribute_use): Take a file_location parameter.
10594         Initialize attribute_use::loc.
10595         (md_reader::record_potential_iterator_use): Take a file_location
10596         parameter.  Update call to record_attribute_use.
10597         (rtx_reader::rtx_alloc_for_name): Update call accordingly.
10598         (rtx_reader::read_rtx_code): Likewise.
10599         (rtx_reader::read_rtx_operand): Likewise.  Record a location
10600         for implicitly-expanded empty strings.
10602 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10604         * read-md.h (md_reader::ptr_loc): Moved from read-md.c.
10605         Use file_location instead of separate fields.
10606         (md_reader::set_md_ptr_loc): Take a file_location instead of a
10607         separate filename and line number.
10608         * read-md.c (ptr_loc): As above.
10609         (md_reader::copy_md_ptr_loc): Update for new ptr_loc layout.
10610         (md_reader::fprint_md_ptr_loc): Likewise.
10611         (md_reader::set_md_ptr_loc): Likewise.  Take a file_location
10612         instead of a separate filename and line number.
10613         (md_reader::read_string): Update call accordingly.
10615 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10617         * config/rs6000/rs6000.md (*mov<mode>_update1): Explicitly
10618         use <SFDF:mode>, <SFDF:MODE>, <SFDF:Ff> and <SFDF:bits> rather than
10619         leaving the choice between SFDF and P implicit.
10620         (*mov<mode>_update2): Likewise.
10621         (*cmp<IBM128:mode>_internal2): Explicitly use <IBM128:MODE>
10622         rather than leaving the choice betweem IBM128 and GPR implicit.
10623         (*fix<uns>_trunc<IEEE128:mode><QHSI:mode>2_mem): Explicitly use
10624         <IEEE128:MODE> rather than leaving the choice between IEEE128 and
10625         QHSI implicit.
10626         (AltiVec define_peephole2s): Explicitly use <ALTIVEC_DFORM:MODE>
10627         rather than leaving the choice between ALTIVEC_DFORM and P implicit.
10628         * config/rs6000/vsx.md
10629         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_fl_<FL_CONV:mode>)
10630         (*vsx_ext_<VSX_EXTRACT_I:VS_scalar>_ufl_<FL_CONV:mode>): Explicitly
10631         use <FL_CONV:VSisa> rather than leaving the choice between FL_CONV
10632         and VSX_EXTRACT_I implicit.
10634 2019-07-16  Richard Sandiford  <richard.sandiford@arm.com>
10636         * config/mips/micromips.md (*movep<MOVEP1:mode><MOVEP2:mode>):
10637         Explicitly use <MOVEP1:MODE> for the mode attribute.
10639 2019-07-16  Jan Hubicka  <hubicka@ucw.cz>
10641         PR bootstrap/91176
10642         * ipa-fnsummary.c (analyze_function_body): Skip debug stmts
10644 2019-07-15  Segher Boessenkool  <segher@kernel.crashing.org>
10646         PR target/91050
10647         * config/rs6000/rs6000.c (rs6000_file_start): Never skip emitting a
10648         .machine directive.
10650 2019-07-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10652         * config/i386/i386.md (@test<mode>_ccno_1):
10653         Rename from test<mode>_ccno_1.
10654         (*testdi_1): Remove redundant alternatives.  Remove modrm attribute.
10655         (*testqi_1_maybe_si): Remove modrm attribute.
10656         (*test<mode>_1): Ditto.
10657         * config/i386/i386-expand.c (ix86_split_idivmod): Use
10658         gen_test_ccno_1 and gen_extend_insn.
10660 2019-07-15  Jan Hubicka  <hubicka@ucw.cz>
10662         * tree-ssa-alias.c (aliasing_component_refs_walk): Initialize same_p
10663         to 0.
10665 2019-07-15  Richard Biener  <rguenther@suse.de>
10667         PR middle-end/91162
10668         * tree-cfg.c (move_block_to_fn): When releasing a virtual PHI
10669         node make sure to replace all uses with something valid.
10671 2019-07-15  Kewen Lin  <linkw@gcc.gnu.org>
10673         PR tree-optimization/88497
10674         * tree-ssa-reassoc.c (reassociate_bb): Swap the positions of
10675         GIMPLE_BINARY_RHS check and gimple_visited_p check, call new
10676         function undistribute_bitref_for_vector.
10677         (undistribute_bitref_for_vector): New function.
10678         (cleanup_vinfo_map): Likewise.
10679         (sort_by_mach_mode): Likewise.
10681 2019-07-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
10683         * config/i386/i386.md (nonmemory_szext_operand): New mode attribute.
10684         (test<mode>_ccno_1): Macroize insn pattern from testsi_ccno_1
10685         and testdi_ccno_1 using SWI48 mode attribute.
10686         (*testdi_1): Use x86_64_szext_nonmemory_operand instead of
10687         x86_64_szext_general_operand.
10688         (*testqi_1_maybe_si): Use nonmemory_operand instead of general_operand.
10689         (*test<mode>_1): Use nonmemory_szext_operand mode attribute
10690         instead of genera_operand mode attribute.
10692 2019-07-14  Vladislav Ivanishin  <vlad@ispras.ru>
10694         * gdbhooks.py (DumpFn.invoke): Add explicit casts of return values of
10695         fopen and fclose to their respective types.
10696         (DotFn.invoke): Ditto.
10698 2019-07-14  Jan Hubicka  <hubicka@ucw.cz>
10700         * ipa-fnsummary.c (ipa_dump_hints): Do not dump array_index.
10701         (ipa_fn_summary::~ipa_fn_summary): Do not destroy array_index.
10702         (ipa_fn_summary_t::duplicate): Do not duplicate array_index.
10703         (array_index_predicate): Remove.
10704         (analyze_function_body): Account cost for variable ofsetted array
10705         indexing.
10706         (estimate_node_size_and_time): Do not compute array index hint.
10707         (ipa_merge_fn_summary_after_inlining): Do not merge array index hint.
10708         (inline_read_section): Do not read array index hint.
10709         (ipa_fn_summary_write): Do not write array index hint.
10710         * doc/invoke.texi (ipa-cp-array-index-hint-bonus): Remove.
10711         * ipa-cp.c (hint_time_bonus): Remove.
10712         * ipa-fnsummary.h (ipa_hints_vals): Remove array_index.
10713         (ipa_fnsummary): Remove array_index.
10714         * ipa-inline.c (want_inline_small_function_p): Do not use
10715         array_index.
10716         (edge_badness): Likewise.
10717         * params.def (PARAM_IPA_CP_ARRAY_INDEX_HINT_BONUS): Remove.
10719 2019-07-14  Segher Boessenkool  <segher@kernel.crashing.org>
10721         PR target/91148
10722         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin): Remove
10723         superfluous "builtin function" phrasing.
10725 2019-07-13  Jan Hubicka  <hubicka@ucw.cz>
10727         * tree-ssa-alias.c (component_ref_to_zero_sized_trailing_array_p):
10728         Break out from ...
10729         (aliasing_component_refs_walk): Break out from ...
10730         (aliasing_component_refs_p): ... here.
10732 2019-07-13  Segher Boessenkool  <segher@kernel.crashing.org>
10734         PR target/91148
10735         * config/rs6000/rs6000.c (rs6000_invalid_builtin): Remove superfluous
10736         "builtin function" phrasing.
10738 2019-07-13  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
10740         PR target/90723
10741         * recog.h (temporary_volatile_ok): New class.
10742         * config/aarch64/aarch64.c (aarch64_emit_sve_pred_move): Set
10743         volatile_ok temporarily to true using temporary_volatile_ok.
10744         * expr.c (emit_block_move_via_cpymem): Likewise.
10745         * optabs.c (maybe_legitimize_operand): Likewise.
10747 2019-07-13  Jakub Jelinek  <jakub@redhat.com>
10749         * gimplify.c (struct gimplify_omp_ctx): Add order_concurrent member.
10750         (omp_notice_threadprivate_variable): Diagnose threadprivate variable
10751         uses inside of order(concurrent) constructs.
10752         (gimplify_scan_omp_clauses): Set ctx->order_concurrent if
10753         OMP_CLAUSE_ORDER is seen.
10754         * omp-low.c (struct omp_context): Add order_concurrent member.
10755         (scan_sharing_clauses): Set ctx->order_concurrent if
10756         OMP_CLAUSE_ORDER is seen.
10757         (check_omp_nesting_restrictions): Diagnose ordered or atomic inside
10758         of simd order(concurrent).  Diagnose constructs not allowed inside of
10759         for order(concurrent).
10760         (setjmp_or_longjmp_p): Add a context and TREE_PUBLIC check to avoid
10761         complaining about static double setjmp (double); or class static
10762         methods or non-global namespace setjmps.
10763         (omp_runtime_api_call): New function.
10764         (scan_omp_1_stmt): Diagnose OpenMP runtime API calls inside of
10765         order(concurrent) loops.
10767 2019-07-12  Martin Sebor  <msebor@redhat.com>
10769         * doc/invoke.texi (ssa-name-def-chain-limit): Document new --param.
10770         * params.def (PARAM_SSA_NAME_DEF_CHAIN_LIMIT): Add new --param.
10771         * tree-vrp.c (vrp_prop::check_mem_ref): Use
10772         PARAM_SSA_NAME_DEF_CHAIN_LIMIT.
10774 2019-07-12  Jan Hubicka  <jh@suse.cz>
10776         * tree-ssa-alias.c (same_tmr_indexing_p): Break out from ...
10777         (indirect_refs_may_alias_p): ... here.
10778         (nonoverlapping_component_refs_since_match_p): Support also non-trivial
10779         mem refs in the access paths.
10781 2019-07-12  Jiangning Liu  <jiangning.liu@amperecomputing.com>
10783         PR tree-optimization/89430
10784         * tree-ssa-phiopt.c (cond_store_replacement): Support conditional
10785         store elimination for local variable without address escape.
10787 2019-07-12  Jeff Law  <law@redhat.com>
10789         * config/c6x/c6x.c (c6x_section_type): Clear SECTION_NOTYPE
10790         for the ".far" section.
10792 2019-07-12  Richard Biener  <rguenther@suse.de>
10794         PR tree-optimization/91145
10795         * tree-vect-slp.c (vect_build_slp_tree_2): Fix reduction
10796         chain check.
10798 2019-07-12  Alexandre Oliva  <oliva@adacore.com>
10800         * tree-eh.c (honor_protect_cleanup_actions): Use outer_
10801         rather than this_state as the lowering context for the ELSE
10802         seq in a GIMPLE_EH_ELSE.
10804 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
10806         * vector-builder.h (vector_builder::elt): Allow already-supplied
10807         elements to be read back before building is complete.
10809 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10811         PR rtl-optimization/91136
10812         * df-core.c (ACCESSING REFS): Fix typos in comment.
10813         * resource.c (mark_target_live_reg): Add artificial defs that occur at
10814         the beginning of the block to the initial set of live registers.
10816 2019-07-12  Richard Biener  <rguenther@suse.de>
10818         * fold-const.h (get_array_ctor_element_at_index): Adjust.
10819         * fold-const.c (get_array_ctor_element_at_index): Add
10820         ctor_idx output parameter informing the caller where in
10821         the constructor the element was (not) found.  Add early exit
10822         for when the ctor is sorted.
10823         * gimple-fold.c (fold_array_ctor_reference): Support constant
10824         folding across multiple array elements.
10826 2019-07-12  Eric Botcazou  <ebotcazou@adacore.com>
10828         * cfgexpand.c (expand_gimple_stmt_1) <GIMPLE_RETURN>: If the statement
10829         doesn't have location, set the current location to the function's end.
10831 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
10833         * config/aarch64/aarch64.md (*compare_condjump<mode>)
10834         (loadwb_pair<GPI:mode>_<P:mode>, loadwb_pair<GPF:mode>_<P:mode>)
10835         (storewb_pair<GPI:mode>_<P:mode>, storewb_pair<GPF:mode>_<P:mode>)
10836         (*ands<mode>_compare0): Fix ambiguous uses of .md attributes.
10837         * config/aarch64/aarch64-simd.md
10838         (*aarch64_get_lane_extend<GPI:mode><VDQQH:mode>): Likewise.
10839         (*aarch64_get_lane_zero_extend<GPI:mode><VDQQH:mode>): Likewise.
10840         * config/aarch64/aarch64-sve.md
10841         (while_ult<GPI:mode><PRED_ALL:mode>): Likewise.
10842         (*cond_<optab><mode>_any): Fix SVE_I/SVE_SDI typo.
10844 2019-07-12  Richard Sandiford  <richard.sandiford@arm.com>
10846         * doc/md.texi: Document that @ patterns can have different
10847         numbers of operands.
10848         * genemit.c (handle_overloaded_gen): Handle this case.
10849         * genopinit.c (handle_overloaded_gen): Likewise.
10850         * gensupport.c (replace_operands_with_dups): Iterate over
10851         the new rtx's format rather than the old one's.
10853 2019-07-12  Jakub Jelinek  <jakub@redhat.com>
10855         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_ORDER.
10856         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
10857         order clause entries.
10858         (walk_tree_1): Handle OMP_CLAUSE_ORDER.
10859         * tree-pretty-print.c (dump_omp_clause): Likewise.
10860         * gimplify.c (gimplify_scan_omp_clauses, gimplify_adjust_omp_clauses):
10861         Likewise.
10862         * omp-low.c (scan_sharing_clauses): Likewise.
10863         * tree-nested.c (convert_nonlocal_omp_clauses,
10864         convert_local_omp_clauses): Likewise.
10866 2019-07-12  Kewen Lin  <linkw@gcc.gnu.org>
10868         * cfgrtl.c (print_rtl_with_bb): Emit a hint if the
10869         fallthrough target of current basic block isn't the placed
10870         right next.
10872 2019-07-11  Sunil K Pandey  <sunil.k.pandey@intel.com>
10874         PR target/90980
10875         * config/i386/avx512fintrin.h (_mm512_loadu_epi64): New.
10876         (_mm512_storeu_epi64): Likewise.
10877         (_mm512_loadu_epi32): Likewise.
10878         (_mm512_storeu_epi32): Likewise.
10879         * config/i386/avx512vlintrin.h (_mm256_storeu_epi64): New.
10880         (_mm_storeu_epi64): Likewise.
10881         (_mm256_storeu_epi32): Likewise.
10882         (_mm_storeu_epi32): Likewise.
10884 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
10886         * config/rs6000/rs6000-logue.c: Add Modula-2 to comment.
10888 2019-07-11  Segher Boessenkool  <segher@kernel.crashing.org>
10890         * config/rs6000/rs6000-logue.c (rs6000_output_function_epilogue):
10891         Handle Modula-2.
10893 2019-07-11  Jakub Jelinek  <jakub@redhat.com>
10895         PR target/91124
10896         * config/i386/sse.md (sse2_cvtpd2dq<mask_name>): Change into ...
10897         (sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
10898         (sse2_cvtpd2dq_mask, sse2_cvtpd2dq_mask_1): New define_insns.
10899         (ufix_notruncv2dfv2si2<mask_name>): Change into ...
10900         (ufix_notruncv2dfv2si2): ... this.  Remove mask substitution macros.
10901         (ufix_notruncv2dfv2si2_mask, ufix_notruncv2dfv2si2_mask_1): New
10902         define_insns.
10903         (ufix_truncv2dfv2si2<mask_name>): Change into ...
10904         (ufix_truncv2dfv2si2): ... this.  Remove mask substitution macros.
10905         (ufix_truncv2dfv2si2_mask, ufix_truncv2dfv2si2_mask_1): New
10906         define_insns.
10907         (sse2_cvttpd2dq<mask_name>): Change into ...
10908         (sse2_cvttpd2dq): ... this.  Remove mask substitution macros.
10909         (sse2_cvttpd2dq_mask, sse2_cvttpd2dq_mask_1): New define_insns.
10910         (*sse2_cvtpd2dq<mask_name>): Change into ...
10911         (*sse2_cvtpd2dq): ... this.  Remove mask substitution macros.
10912         Add "C" constraint to const0_operand.
10913         (*sse2_cvtpd2dq_mask, *sse2_cvtpd2dq_mask_1): New define_insns.
10914         (sse2_cvtpd2ps_mask): Adjust expand to match *sse2_cvtpd2ps_mask
10915         changes.
10917         PR target/91124
10918         * config/i386/i386-builtin-types.def
10919         (V32HI_FTYPE_V32HI_V32HI_V32HI_INT,
10920         V16HI_FTYPE_V16HI_V16HI_V16HI_INT, V8HI_FTYPE_V8HI_V8HI_V8HI_INT,
10921         V8SI_FTYPE_V8SI_V8SI_V8SI_INT, V4DI_FTYPE_V4DI_V4DI_V4DI_INT,
10922         V8DI_FTYPE_V8DI_V8DI_V8DI_INT, V16SI_FTYPE_V16SI_V16SI_V16SI_INT,
10923         V2DI_FTYPE_V2DI_V2DI_V2DI_INT, V4SI_FTYPE_V4SI_V4SI_V4SI_INT): Remove.
10924         * config/i386/i386-builtin.def (__builtin_ia32_vpshrdv_v32hi_mask,
10925         __builtin_ia32_vpshrdv_v32hi_maskz, __builtin_ia32_vpshrdv_v16hi_mask,
10926         __builtin_ia32_vpshrdv_v16hi_maskz, __builtin_ia32_vpshrdv_v8hi_mask,
10927         __builtin_ia32_vpshrdv_v8hi_maskz, __builtin_ia32_vpshrdv_v16si_mask,
10928         __builtin_ia32_vpshrdv_v16si_maskz, __builtin_ia32_vpshrdv_v8si_mask,
10929         __builtin_ia32_vpshrdv_v8si_maskz, __builtin_ia32_vpshrdv_v4si_mask,
10930         __builtin_ia32_vpshrdv_v4si_maskz, __builtin_ia32_vpshrdv_v8di_mask,
10931         __builtin_ia32_vpshrdv_v8di_maskz, __builtin_ia32_vpshrdv_v4di_mask,
10932         __builtin_ia32_vpshrdv_v4di_maskz, __builtin_ia32_vpshrdv_v2di_mask,
10933         __builtin_ia32_vpshrdv_v2di_maskz, __builtin_ia32_vpshldv_v32hi_mask,
10934         __builtin_ia32_vpshldv_v32hi_maskz, __builtin_ia32_vpshldv_v16hi_mask,
10935         __builtin_ia32_vpshldv_v16hi_maskz, __builtin_ia32_vpshldv_v8hi_mask,
10936         __builtin_ia32_vpshldv_v8hi_maskz, __builtin_ia32_vpshldv_v16si_mask,
10937         __builtin_ia32_vpshldv_v16si_maskz, __builtin_ia32_vpshldv_v8si_mask,
10938         __builtin_ia32_vpshldv_v8si_maskz, __builtin_ia32_vpshldv_v4si_mask,
10939         __builtin_ia32_vpshldv_v4si_maskz, __builtin_ia32_vpshldv_v8di_mask,
10940         __builtin_ia32_vpshldv_v8di_maskz, __builtin_ia32_vpshldv_v4di_mask,
10941         __builtin_ia32_vpshldv_v4di_maskz, __builtin_ia32_vpshldv_v2di_mask,
10942         __builtin_ia32_vpshldv_v2di_maskz, __builtin_ia32_vpdpbusd_v16si_mask,
10943         __builtin_ia32_vpdpbusd_v16si_maskz, __builtin_ia32_vpdpbusd_v8si_mask,
10944         __builtin_ia32_vpdpbusd_v8si_maskz, __builtin_ia32_vpdpbusd_v4si_mask,
10945         __builtin_ia32_vpdpbusd_v4si_maskz,
10946         __builtin_ia32_vpdpbusds_v16si_mask,
10947         __builtin_ia32_vpdpbusds_v16si_maskz,
10948         __builtin_ia32_vpdpbusds_v8si_mask,
10949         __builtin_ia32_vpdpbusds_v8si_maskz,
10950         __builtin_ia32_vpdpbusds_v4si_mask,
10951         __builtin_ia32_vpdpbusds_v4si_maskz,
10952         __builtin_ia32_vpdpwssd_v16si_mask,
10953         __builtin_ia32_vpdpwssd_v16si_maskz, __builtin_ia32_vpdpwssd_v8si_mask,
10954         __builtin_ia32_vpdpwssd_v8si_maskz, __builtin_ia32_vpdpwssd_v4si_mask,
10955         __builtin_ia32_vpdpwssd_v4si_maskz,
10956         __builtin_ia32_vpdpwssds_v16si_mask,
10957         __builtin_ia32_vpdpwssds_v16si_maskz,
10958         __builtin_ia32_vpdpwssds_v8si_mask,
10959         __builtin_ia32_vpdpwssds_v8si_maskz,
10960         __builtin_ia32_vpdpwssds_v4si_mask,
10961         __builtin_ia32_vpdpwssds_v4si_maskz): Use *_USI, *_UHI or *_UQI
10962         suffixed types rather than *_INT.
10963         * config/i386/i386-expand.c (ix86_expand_args_builtin): Don't handle
10964         V32HI_FTYPE_V32HI_V32HI_V32HI_INT, V16HI_FTYPE_V16HI_V16HI_V16HI_INT,
10965         V8HI_FTYPE_V8HI_V8HI_V8HI_INT, V8SI_FTYPE_V8SI_V8SI_V8SI_INT,
10966         V4DI_FTYPE_V4DI_V4DI_V4DI_INT, V8DI_FTYPE_V8DI_V8DI_V8DI_INT,
10967         V16SI_FTYPE_V16SI_V16SI_V16SI_INT, V2DI_FTYPE_V2DI_V2DI_V2DI_INT
10968         and V4SI_FTYPE_V4SI_V4SI_V4SI_INT.
10970 2019-07-11  Aldy Hernandez  <aldyh@redhat.com>
10972         * tree-vrp.c (intersect_ranges): If we know the intersection is
10973         empty, there is no need to conservatively add anything else to
10974         the set.
10976 2019-07-11  Richard Biener  <rguenther@suse.de>
10978         PR middle-end/91131
10979         * gimplify.c (gimplify_compound_literal_expr): Force a temporary
10980         when the object is volatile and we have not cleared it even though
10981         there are no nonzero elements.
10983 2019-07-10  Michael Meissner  <meissner@linux.ibm.com>
10985         * config/rs6000/predicates.md (cint34_operand): Update
10986         SIGNED_34BIT_OFFSET_P call.
10987         (pcrel_address): Update SIGNED_34BIT_OFFSET_P call.
10988         (pcrel_external_address): Update SIGNED_34BIT_OFFSET_P call.
10989         * config/rs6000/rs6000.c (rs6000_prefixed_address): Update
10990         SIGNED_16BIT_OFFSET_P and SIGNED_34BIT_OFFSET_P calls.
10991         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): Remove EXTRA
10992         argument.
10993         (SIGNED_34BIT_OFFSET_P): Remove EXTRA argument.
10994         (SIGNED_16BIT_OFFSET_EXTRA_P): New macro, like
10995         SIGNED_16BIT_OFFSET_P with an EXTRA argument.
10996         (SIGNED_34BIT_OFFSET_EXTRA_P): New macro, like
10997         SIGNED_34BIT_OFFSET_P with an EXTRA argument.
10999 2019-07-10  Iain Sandoe  <iain@sandoe.co.uk>
11001         * config/rs6000/darwin.h (LIB_SPEC): Collate this spec here.
11002         * config/rs6000/darwin7.h (LIB_SPEC): Remove.
11003         * config/rs6000/darwin8.h (LIB_SPEC): Remove.
11004         (DEF_MIN_OSX_VERSION): New.
11006 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
11008         * fold-const.c (fold_relational_const): Fix folding of
11009         vector-to-scalar NE_EXPRs.
11010         (test_vector_folding): Add more tests.
11012 2019-07-10  Richard Sandiford  <richard.sandiford@arm.com>
11014         PR target/91060
11015         * config/arm/iterators.md (V2DI_ONLY): New mode iterator.
11016         * config/arm/neon.md (vec_set<mode>_internal): Add a '@' prefix.
11017         (vec_setv2di_internal): Reexpress as...
11018         (@vec_set<V2DI_ONLY:mode>_internal): ...this.
11019         * config/arm/arm.c (neon_expand_vector_init): Use gen_vec_set_internal
11020         rather than gen_neon_vset_lane<mode>.
11022 2019-07-10  Vladimir Makarov  <vmakarov@redhat.com>
11024         PR target/91102
11025         * lra-constraints.c (process_alt_operands): Don't match user
11026         defined regs only if they are early clobbers.
11028 2019-07-10  Marc Glisse  <marc.glisse@inria.fr>
11030         * wide-int.h (wi::lshift): Reject negative values for the fast path.
11032 2019-07-10  Richard Biener  <rguenther@suse.de>
11034         PR tree-optimization/91126
11035         * tree-ssa-sccvn.c (n_walk_cb_data::push_partial_def): Adjust
11036         native encoding offset for BYTES_BIG_ENDIAN.
11037         (vn_reference_lookup_3): Likewise.
11039 2019-07-10  Richard Biener  <rguenther@suse.de>
11041         * tree-ssa-sccvn.c (vn_reference_lookup_3): Look at valueized
11042         LHS whenever possible.
11044 2019-07-09  Jan Hubicka  <hubicka@ucw.cz>
11046         * tree-ssa-alias.c (nonoverlapping_component_refs_p_1): Break out
11047         from ...; work also on duplicated types.
11048         (nonoverlapping_component_refs_since_match): ... here
11049         (ncr_type_uid): Break out from ...
11050         (ncr_compar): ... here; look for TYPE_UID of canonical type if
11051         available.
11052         (nonoverlapping_component_refs_p): Use same_type_for_tbaa to match
11053         the types and nonoverlapping_component_refs_p_1 to disambiguate.
11055 2019-07-09  Martin Sebor  <msebor@redhat.com>
11057         PR tree-optimization/90989
11058         * tree-ssa-strlen.c (handle_char_store): Constrain a single character
11059         optimization to just single character stores.
11061 2019-07-09  Joern Rennecke  <joern.rennecke@riscy-ip.com>
11063         * tree-vect-stmts.c (vectorizable_comparison) <!slp_node>:
11064         Swap operands only once.
11066 2019-07-09  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
11068         * cfgcleanup.c (old_insns_match_p): Check if used hard regs set is equal
11069         for both call instructions.
11071 2019-07-09  John Darrington  <john@darrington.wattle.id.au>
11073         * simplify-rtx.c (simplify_unary_operation_1): Use GET_MODE_PRECISION
11074         rather than GET_MODE_BITSIZE to better handle partial integer modes.
11076 2019-07-09  Michael Meissner  <meissner@linux.ibm.com>
11078         * config/rs6000/rs6000-internal.h (create_TOC_reference): Delete.
11079         * config/rs6000/rs6000-logue.c (create_TOC_reference): Move
11080         function from rs6000-logue.c back to rs6000.c.
11081         * config/rs6000/rs6000.c (create_TOC_reference): Likewise.
11083 2019-07-09  Martin Sebor  <msebor@redhat.com>
11085         PR c++/61339
11086         * auto-profile.c: Change class-key of PODs to struct and others
11087         to class.
11088         * basic-block.h: Same.
11089         * bitmap.c (bitmap_alloc): Same.
11090         * bitmap.h: Same.
11091         * builtins.c (expand_builtin_prefetch): Same.
11092         (expand_builtin_interclass_mathfn): Same.
11093         (expand_builtin_strlen): Same.
11094         (expand_builtin_mempcpy_args): Same.
11095         (expand_cmpstr): Same.
11096         (expand_builtin___clear_cache): Same.
11097         (expand_ifn_atomic_bit_test_and): Same.
11098         (expand_builtin_thread_pointer): Same.
11099         (expand_builtin_set_thread_pointer): Same.
11100         * caller-save.c (setup_save_areas): Same.
11101         (replace_reg_with_saved_mem): Same.
11102         (insert_restore): Same.
11103         (insert_save): Same.
11104         (add_used_regs): Same.
11105         * cfg.c (get_bb_copy): Same.
11106         (set_loop_copy): Same.
11107         * cfg.h: Same.
11108         * cfganal.h: Same.
11109         * cfgexpand.c (alloc_stack_frame_space): Same.
11110         (add_stack_var): Same.
11111         (add_stack_var_conflict): Same.
11112         (add_scope_conflicts_1): Same.
11113         (update_alias_info_with_stack_vars): Same.
11114         (expand_used_vars): Same.
11115         * cfghooks.c (redirect_edge_and_branch_force): Same.
11116         (delete_basic_block): Same.
11117         (split_edge): Same.
11118         (make_forwarder_block): Same.
11119         (force_nonfallthru): Same.
11120         (duplicate_block): Same.
11121         (lv_flush_pending_stmts): Same.
11122         * cfghooks.h: Same.
11123         * cfgloop.c (flow_loops_cfg_dump): Same.
11124         (flow_loop_nested_p): Same.
11125         (superloop_at_depth): Same.
11126         (get_loop_latch_edges): Same.
11127         (flow_loop_dump): Same.
11128         (flow_loops_dump): Same.
11129         (flow_loops_free): Same.
11130         (flow_loop_nodes_find): Same.
11131         (establish_preds): Same.
11132         (flow_loop_tree_node_add): Same.
11133         (flow_loop_tree_node_remove): Same.
11134         (flow_loops_find): Same.
11135         (find_subloop_latch_edge_by_profile): Same.
11136         (find_subloop_latch_edge_by_ivs): Same.
11137         (mfb_redirect_edges_in_set): Same.
11138         (form_subloop): Same.
11139         (merge_latch_edges): Same.
11140         (disambiguate_multiple_latches): Same.
11141         (disambiguate_loops_with_multiple_latches): Same.
11142         (flow_bb_inside_loop_p): Same.
11143         (glb_enum_p): Same.
11144         (get_loop_body_with_size): Same.
11145         (get_loop_body): Same.
11146         (fill_sons_in_loop): Same.
11147         (get_loop_body_in_dom_order): Same.
11148         (get_loop_body_in_custom_order): Same.
11149         (release_recorded_exits): Same.
11150         (get_loop_exit_edges): Same.
11151         (num_loop_branches): Same.
11152         (remove_bb_from_loops): Same.
11153         (find_common_loop): Same.
11154         (delete_loop): Same.
11155         (cancel_loop): Same.
11156         (verify_loop_structure): Same.
11157         (loop_preheader_edge): Same.
11158         (loop_exit_edge_p): Same.
11159         (single_exit): Same.
11160         (loop_exits_to_bb_p): Same.
11161         (loop_exits_from_bb_p): Same.
11162         (get_loop_location): Same.
11163         (record_niter_bound): Same.
11164         (get_estimated_loop_iterations_int): Same.
11165         (max_stmt_executions_int): Same.
11166         (likely_max_stmt_executions_int): Same.
11167         (get_estimated_loop_iterations): Same.
11168         (get_max_loop_iterations): Same.
11169         (get_max_loop_iterations_int): Same.
11170         (get_likely_max_loop_iterations): Same.
11171         * cfgloop.h (simple_loop_desc): Same.
11172         (get_loop): Same.
11173         (loop_depth): Same.
11174         (loop_outer): Same.
11175         (loop_iterator::next): Same.
11176         (loop_outermost): Same.
11177         * cfgloopanal.c (mark_irreducible_loops): Same.
11178         (num_loop_insns): Same.
11179         (average_num_loop_insns): Same.
11180         (expected_loop_iterations_unbounded): Same.
11181         (expected_loop_iterations): Same.
11182         (mark_loop_exit_edges): Same.
11183         (single_likely_exit): Same.
11184         * cfgloopmanip.c (fix_bb_placement): Same.
11185         (fix_bb_placements): Same.
11186         (remove_path): Same.
11187         (place_new_loop): Same.
11188         (add_loop): Same.
11189         (scale_loop_frequencies): Same.
11190         (scale_loop_profile): Same.
11191         (create_empty_if_region_on_edge): Same.
11192         (create_empty_loop_on_edge): Same.
11193         (loopify): Same.
11194         (unloop): Same.
11195         (fix_loop_placements): Same.
11196         (copy_loop_info): Same.
11197         (duplicate_loop): Same.
11198         (duplicate_subloops): Same.
11199         (loop_redirect_edge): Same.
11200         (can_duplicate_loop_p): Same.
11201         (duplicate_loop_to_header_edge): Same.
11202         (mfb_keep_just): Same.
11203         (has_preds_from_loop): Same.
11204         (create_preheader): Same.
11205         (create_preheaders): Same.
11206         (lv_adjust_loop_entry_edge): Same.
11207         (loop_version): Same.
11208         * cfgloopmanip.h: Same.
11209         * cgraph.h: Same.
11210         * cgraphbuild.c: Same.
11211         * combine.c (make_extraction): Same.
11212         * config/i386/i386-features.c: Same.
11213         * config/i386/i386-features.h: Same.
11214         * config/i386/i386.c (ix86_emit_outlined_ms2sysv_save): Same.
11215         (ix86_emit_outlined_ms2sysv_restore): Same.
11216         (ix86_noce_conversion_profitable_p): Same.
11217         (ix86_init_cost): Same.
11218         (ix86_simd_clone_usable): Same.
11219         * configure.ac (ACX_PROG_CXX_WARNING_OPTS): Add -Wclass-is-pod and
11220         Wstruct-not-pod.
11221         * coretypes.h: Same.
11222         * data-streamer-in.c (string_for_index): Change class-key of PODs
11223         to struct and others to class.
11224         (streamer_read_indexed_string): Same.
11225         (streamer_read_string): Same.
11226         (bp_unpack_indexed_string): Same.
11227         (bp_unpack_string): Same.
11228         (streamer_read_uhwi): Same.
11229         (streamer_read_hwi): Same.
11230         (streamer_read_gcov_count): Same.
11231         (streamer_read_wide_int): Same.
11232         * data-streamer.h (streamer_write_bitpack): Same.
11233         (bp_unpack_value): Same.
11234         (streamer_write_char_stream): Same.
11235         (streamer_write_hwi_in_range): Same.
11236         (streamer_write_record_start): Same.
11237         * ddg.c (create_ddg_dep_from_intra_loop_link): Same.
11238         (add_cross_iteration_register_deps): Same.
11239         (build_intra_loop_deps): Same.
11240         * df-core.c (df_analyze): Same.
11241         (loop_post_order_compute): Same.
11242         (loop_inverted_post_order_compute): Same.
11243         * df-problems.c (df_rd_alloc): Same.
11244         (df_rd_simulate_one_insn): Same.
11245         (df_rd_local_compute): Same.
11246         (df_rd_init_solution): Same.
11247         (df_rd_confluence_n): Same.
11248         (df_rd_transfer_function): Same.
11249         (df_rd_free): Same.
11250         (df_rd_dump_defs_set): Same.
11251         (df_rd_top_dump): Same.
11252         (df_lr_alloc): Same.
11253         (df_lr_reset): Same.
11254         (df_lr_local_compute): Same.
11255         (df_lr_init): Same.
11256         (df_lr_confluence_n): Same.
11257         (df_lr_free): Same.
11258         (df_lr_top_dump): Same.
11259         (df_lr_verify_transfer_functions): Same.
11260         (df_live_alloc): Same.
11261         (df_live_reset): Same.
11262         (df_live_init): Same.
11263         (df_live_confluence_n): Same.
11264         (df_live_finalize): Same.
11265         (df_live_free): Same.
11266         (df_live_top_dump): Same.
11267         (df_live_verify_transfer_functions): Same.
11268         (df_mir_alloc): Same.
11269         (df_mir_reset): Same.
11270         (df_mir_init): Same.
11271         (df_mir_confluence_n): Same.
11272         (df_mir_free): Same.
11273         (df_mir_top_dump): Same.
11274         (df_word_lr_alloc): Same.
11275         (df_word_lr_reset): Same.
11276         (df_word_lr_init): Same.
11277         (df_word_lr_confluence_n): Same.
11278         (df_word_lr_free): Same.
11279         (df_word_lr_top_dump): Same.
11280         (df_md_alloc): Same.
11281         (df_md_simulate_one_insn): Same.
11282         (df_md_reset): Same.
11283         (df_md_init): Same.
11284         (df_md_free): Same.
11285         (df_md_top_dump): Same.
11286         * df-scan.c (df_insn_delete): Same.
11287         (df_insn_rescan): Same.
11288         (df_notes_rescan): Same.
11289         (df_sort_and_compress_mws): Same.
11290         (df_install_mws): Same.
11291         (df_refs_add_to_chains): Same.
11292         (df_ref_create_structure): Same.
11293         (df_ref_record): Same.
11294         (df_def_record_1): Same.
11295         (df_find_hard_reg_defs): Same.
11296         (df_uses_record): Same.
11297         (df_get_conditional_uses): Same.
11298         (df_get_call_refs): Same.
11299         (df_recompute_luids): Same.
11300         (df_get_entry_block_def_set): Same.
11301         (df_entry_block_defs_collect): Same.
11302         (df_get_exit_block_use_set): Same.
11303         (df_exit_block_uses_collect): Same.
11304         (df_mws_verify): Same.
11305         (df_bb_verify): Same.
11306         * df.h (df_scan_get_bb_info): Same.
11307         * doc/tm.texi: Same.
11308         * dse.c (record_store): Same.
11309         * dumpfile.h: Same.
11310         * emit-rtl.c (const_fixed_hasher::equal): Same.
11311         (set_mem_attributes_minus_bitpos): Same.
11312         (change_address): Same.
11313         (adjust_address_1): Same.
11314         (offset_address): Same.
11315         * emit-rtl.h: Same.
11316         * except.c (dw2_build_landing_pads): Same.
11317         (sjlj_emit_dispatch_table): Same.
11318         * explow.c (allocate_dynamic_stack_space): Same.
11319         (emit_stack_probe): Same.
11320         (probe_stack_range): Same.
11321         * expmed.c (store_bit_field_using_insv): Same.
11322         (store_bit_field_1): Same.
11323         (store_integral_bit_field): Same.
11324         (extract_bit_field_using_extv): Same.
11325         (extract_bit_field_1): Same.
11326         (emit_cstore): Same.
11327         * expr.c (emit_block_move_via_cpymem): Same.
11328         (expand_cmpstrn_or_cmpmem): Same.
11329         (set_storage_via_setmem): Same.
11330         (emit_single_push_insn_1): Same.
11331         (expand_assignment): Same.
11332         (store_constructor): Same.
11333         (expand_expr_real_2): Same.
11334         (expand_expr_real_1): Same.
11335         (try_casesi): Same.
11336         * flags.h: Same.
11337         * function.c (try_fit_stack_local): Same.
11338         (assign_stack_local_1): Same.
11339         (assign_stack_local): Same.
11340         (cut_slot_from_list): Same.
11341         (insert_slot_to_list): Same.
11342         (max_slot_level): Same.
11343         (move_slot_to_level): Same.
11344         (temp_address_hasher::equal): Same.
11345         (remove_unused_temp_slot_addresses): Same.
11346         (assign_temp): Same.
11347         (combine_temp_slots): Same.
11348         (update_temp_slot_address): Same.
11349         (preserve_temp_slots): Same.
11350         * function.h: Same.
11351         * fwprop.c: Same.
11352         * gcc-rich-location.h: Same.
11353         * gcov.c: Same.
11354         * genattrtab.c (check_attr_test): Same.
11355         (check_attr_value): Same.
11356         (convert_set_attr_alternative): Same.
11357         (convert_set_attr): Same.
11358         (check_defs): Same.
11359         (copy_boolean): Same.
11360         (get_attr_value): Same.
11361         (expand_delays): Same.
11362         (make_length_attrs): Same.
11363         (min_fn): Same.
11364         (make_alternative_compare): Same.
11365         (simplify_test_exp): Same.
11366         (tests_attr_p): Same.
11367         (get_attr_order): Same.
11368         (clear_struct_flag): Same.
11369         (gen_attr): Same.
11370         (compares_alternatives_p): Same.
11371         (gen_insn): Same.
11372         (gen_delay): Same.
11373         (find_attrs_to_cache): Same.
11374         (write_test_expr): Same.
11375         (walk_attr_value): Same.
11376         (write_attr_get): Same.
11377         (eliminate_known_true): Same.
11378         (write_insn_cases): Same.
11379         (write_attr_case): Same.
11380         (write_attr_valueq): Same.
11381         (write_attr_value): Same.
11382         (write_dummy_eligible_delay): Same.
11383         (next_comma_elt): Same.
11384         (find_attr): Same.
11385         (make_internal_attr): Same.
11386         (copy_rtx_unchanging): Same.
11387         (gen_insn_reserv): Same.
11388         (check_tune_attr): Same.
11389         (make_automaton_attrs): Same.
11390         (handle_arg): Same.
11391         * genextract.c (gen_insn): Same.
11392         (VEC_char_to_string): Same.
11393         * genmatch.c (print_operand): Same.
11394         (lower): Same.
11395         (parser::parse_operation): Same.
11396         (parser::parse_capture): Same.
11397         (parser::parse_c_expr): Same.
11398         (parser::parse_simplify): Same.
11399         (main): Same.
11400         * genoutput.c (output_operand_data): Same.
11401         (output_get_insn_name): Same.
11402         (compare_operands): Same.
11403         (place_operands): Same.
11404         (process_template): Same.
11405         (validate_insn_alternatives): Same.
11406         (validate_insn_operands): Same.
11407         (gen_expand): Same.
11408         (note_constraint): Same.
11409         * genpreds.c (write_one_predicate_function): Same.
11410         (add_constraint): Same.
11411         (process_define_register_constraint): Same.
11412         (write_lookup_constraint_1): Same.
11413         (write_lookup_constraint_array): Same.
11414         (write_insn_constraint_len): Same.
11415         (write_reg_class_for_constraint_1): Same.
11416         (write_constraint_satisfied_p_array): Same.
11417         * genrecog.c (optimize_subroutine_group): Same.
11418         * gensupport.c (process_define_predicate): Same.
11419         (queue_pattern): Same.
11420         (remove_from_queue): Same.
11421         (process_rtx): Same.
11422         (is_predicable): Same.
11423         (change_subst_attribute): Same.
11424         (subst_pattern_match): Same.
11425         (alter_constraints): Same.
11426         (alter_attrs_for_insn): Same.
11427         (shift_output_template): Same.
11428         (alter_output_for_subst_insn): Same.
11429         (process_one_cond_exec): Same.
11430         (subst_dup): Same.
11431         (process_define_cond_exec): Same.
11432         (mnemonic_htab_callback): Same.
11433         (gen_mnemonic_attr): Same.
11434         (read_md_rtx): Same.
11435         * ggc-page.c: Same.
11436         * gimple-loop-interchange.cc (dump_reduction): Same.
11437         (dump_induction): Same.
11438         (loop_cand::~loop_cand): Same.
11439         (free_data_refs_with_aux): Same.
11440         (tree_loop_interchange::interchange_loops): Same.
11441         (tree_loop_interchange::map_inductions_to_loop): Same.
11442         (tree_loop_interchange::move_code_to_inner_loop): Same.
11443         (compute_access_stride): Same.
11444         (compute_access_strides): Same.
11445         (proper_loop_form_for_interchange): Same.
11446         (tree_loop_interchange_compute_ddrs): Same.
11447         (prune_datarefs_not_in_loop): Same.
11448         (prepare_data_references): Same.
11449         (pass_linterchange::execute): Same.
11450         * gimple-loop-jam.c (bb_prevents_fusion_p): Same.
11451         (unroll_jam_possible_p): Same.
11452         (fuse_loops): Same.
11453         (adjust_unroll_factor): Same.
11454         (tree_loop_unroll_and_jam): Same.
11455         * gimple-loop-versioning.cc (loop_versioning::~loop_versioning): Same.
11456         (loop_versioning::expensive_stmt_p): Same.
11457         (loop_versioning::version_for_unity): Same.
11458         (loop_versioning::dump_inner_likelihood): Same.
11459         (loop_versioning::find_per_loop_multiplication): Same.
11460         (loop_versioning::analyze_term_using_scevs): Same.
11461         (loop_versioning::record_address_fragment): Same.
11462         (loop_versioning::analyze_expr): Same.
11463         (loop_versioning::analyze_blocks): Same.
11464         (loop_versioning::prune_conditions): Same.
11465         (loop_versioning::merge_loop_info): Same.
11466         (loop_versioning::add_loop_to_queue): Same.
11467         (loop_versioning::decide_whether_loop_is_versionable): Same.
11468         (loop_versioning::make_versioning_decisions): Same.
11469         (loop_versioning::implement_versioning_decisions): Same.
11470         * gimple-ssa-evrp-analyze.c
11471         (evrp_range_analyzer::record_ranges_from_phis): Same.
11472         * gimple-ssa-store-merging.c (split_store::split_store): Same.
11473         (count_multiple_uses): Same.
11474         (split_group): Same.
11475         (imm_store_chain_info::output_merged_store): Same.
11476         (pass_store_merging::process_store): Same.
11477         * gimple-ssa-strength-reduction.c (slsr_process_phi): Same.
11478         * gimple-ssa-warn-alloca.c (adjusted_warn_limit): Same.
11479         (is_max): Same.
11480         (alloca_call_type): Same.
11481         (pass_walloca::execute): Same.
11482         * gimple-streamer-in.c (input_phi): Same.
11483         (input_gimple_stmt): Same.
11484         * gimple-streamer.h: Same.
11485         * godump.c (go_force_record_alignment): Same.
11486         (go_format_type): Same.
11487         (go_output_type): Same.
11488         (go_output_fndecl): Same.
11489         (go_output_typedef): Same.
11490         (keyword_hash_init): Same.
11491         (find_dummy_types): Same.
11492         * graph.c (draw_cfg_nodes_no_loops): Same.
11493         (draw_cfg_nodes_for_loop): Same.
11494         * hard-reg-set.h (hard_reg_set_iter_next): Same.
11495         * hsa-brig.c: Same.
11496         * hsa-common.h (hsa_internal_fn_hasher::equal): Same.
11497         * hsa-dump.c (dump_hsa_cfun): Same.
11498         * hsa-gen.c (gen_function_def_parameters): Same.
11499         * hsa-regalloc.c (dump_hsa_cfun_regalloc): Same.
11500         * input.c (dump_line_table_statistics): Same.
11501         (test_lexer): Same.
11502         * input.h: Same.
11503         * internal-fn.c (get_multi_vector_move): Same.
11504         (expand_load_lanes_optab_fn): Same.
11505         (expand_GOMP_SIMT_ENTER_ALLOC): Same.
11506         (expand_GOMP_SIMT_EXIT): Same.
11507         (expand_GOMP_SIMT_LAST_LANE): Same.
11508         (expand_GOMP_SIMT_ORDERED_PRED): Same.
11509         (expand_GOMP_SIMT_VOTE_ANY): Same.
11510         (expand_GOMP_SIMT_XCHG_BFLY): Same.
11511         (expand_GOMP_SIMT_XCHG_IDX): Same.
11512         (expand_addsub_overflow): Same.
11513         (expand_neg_overflow): Same.
11514         (expand_mul_overflow): Same.
11515         (expand_call_mem_ref): Same.
11516         (expand_mask_load_optab_fn): Same.
11517         (expand_scatter_store_optab_fn): Same.
11518         (expand_gather_load_optab_fn): Same.
11519         * ipa-cp.c (ipa_get_parm_lattices): Same.
11520         (print_all_lattices): Same.
11521         (ignore_edge_p): Same.
11522         (build_toporder_info): Same.
11523         (free_toporder_info): Same.
11524         (push_node_to_stack): Same.
11525         (ipcp_lattice<valtype>::set_contains_variable): Same.
11526         (set_agg_lats_to_bottom): Same.
11527         (ipcp_bits_lattice::meet_with): Same.
11528         (set_single_call_flag): Same.
11529         (initialize_node_lattices): Same.
11530         (ipa_get_jf_ancestor_result): Same.
11531         (ipcp_verify_propagated_values): Same.
11532         (propagate_scalar_across_jump_function): Same.
11533         (propagate_context_across_jump_function): Same.
11534         (propagate_bits_across_jump_function): Same.
11535         (ipa_vr_operation_and_type_effects): Same.
11536         (propagate_vr_across_jump_function): Same.
11537         (set_check_aggs_by_ref): Same.
11538         (set_chain_of_aglats_contains_variable): Same.
11539         (merge_aggregate_lattices): Same.
11540         (agg_pass_through_permissible_p): Same.
11541         (propagate_aggs_across_jump_function): Same.
11542         (call_passes_through_thunk_p): Same.
11543         (propagate_constants_across_call): Same.
11544         (devirtualization_time_bonus): Same.
11545         (good_cloning_opportunity_p): Same.
11546         (context_independent_aggregate_values): Same.
11547         (gather_context_independent_values): Same.
11548         (perform_estimation_of_a_value): Same.
11549         (estimate_local_effects): Same.
11550         (value_topo_info<valtype>::add_val): Same.
11551         (add_all_node_vals_to_toposort): Same.
11552         (value_topo_info<valtype>::propagate_effects): Same.
11553         (ipcp_propagate_stage): Same.
11554         (ipcp_discover_new_direct_edges): Same.
11555         (same_node_or_its_all_contexts_clone_p): Same.
11556         (cgraph_edge_brings_value_p): Same.
11557         (gather_edges_for_value): Same.
11558         (create_specialized_node): Same.
11559         (find_more_scalar_values_for_callers_subset): Same.
11560         (find_more_contexts_for_caller_subset): Same.
11561         (copy_plats_to_inter): Same.
11562         (intersect_aggregates_with_edge): Same.
11563         (find_aggregate_values_for_callers_subset): Same.
11564         (cgraph_edge_brings_all_agg_vals_for_node): Same.
11565         (decide_about_value): Same.
11566         (decide_whether_version_node): Same.
11567         (spread_undeadness): Same.
11568         (identify_dead_nodes): Same.
11569         (ipcp_store_vr_results): Same.
11570         * ipa-devirt.c (final_warning_record::grow_type_warnings): Same.
11571         * ipa-fnsummary.c (ipa_fn_summary::account_size_time): Same.
11572         (redirect_to_unreachable): Same.
11573         (edge_set_predicate): Same.
11574         (evaluate_conditions_for_known_args): Same.
11575         (evaluate_properties_for_edge): Same.
11576         (ipa_fn_summary_t::duplicate): Same.
11577         (ipa_call_summary_t::duplicate): Same.
11578         (dump_ipa_call_summary): Same.
11579         (ipa_dump_fn_summary): Same.
11580         (eliminated_by_inlining_prob): Same.
11581         (set_cond_stmt_execution_predicate): Same.
11582         (set_switch_stmt_execution_predicate): Same.
11583         (compute_bb_predicates): Same.
11584         (will_be_nonconstant_expr_predicate): Same.
11585         (phi_result_unknown_predicate): Same.
11586         (analyze_function_body): Same.
11587         (compute_fn_summary): Same.
11588         (estimate_edge_devirt_benefit): Same.
11589         (estimate_edge_size_and_time): Same.
11590         (estimate_calls_size_and_time): Same.
11591         (estimate_node_size_and_time): Same.
11592         (remap_edge_change_prob): Same.
11593         (remap_edge_summaries): Same.
11594         (ipa_merge_fn_summary_after_inlining): Same.
11595         (ipa_fn_summary_generate): Same.
11596         (inline_read_section): Same.
11597         (ipa_fn_summary_read): Same.
11598         (ipa_fn_summary_write): Same.
11599         * ipa-fnsummary.h: Same.
11600         * ipa-hsa.c (ipa_hsa_read_section): Same.
11601         * ipa-icf-gimple.c (func_checker::compare_loops): Same.
11602         * ipa-icf.c (sem_function::param_used_p): Same.
11603         * ipa-inline-analysis.c (do_estimate_edge_time): Same.
11604         * ipa-inline.c (edge_badness): Same.
11605         (inline_small_functions): Same.
11606         * ipa-polymorphic-call.c
11607         (ipa_polymorphic_call_context::stream_out): Same.
11608         * ipa-predicate.c (predicate::remap_after_duplication): Same.
11609         (predicate::remap_after_inlining): Same.
11610         (predicate::stream_out): Same.
11611         * ipa-predicate.h: Same.
11612         * ipa-profile.c (ipa_profile_read_summary): Same.
11613         * ipa-prop.c (ipa_get_param_decl_index_1): Same.
11614         (count_formal_params): Same.
11615         (ipa_dump_param): Same.
11616         (ipa_alloc_node_params): Same.
11617         (ipa_print_node_jump_functions_for_edge): Same.
11618         (ipa_print_node_jump_functions): Same.
11619         (ipa_load_from_parm_agg): Same.
11620         (get_ancestor_addr_info): Same.
11621         (ipa_compute_jump_functions_for_edge): Same.
11622         (ipa_analyze_virtual_call_uses): Same.
11623         (ipa_analyze_stmt_uses): Same.
11624         (ipa_analyze_params_uses_in_bb): Same.
11625         (update_jump_functions_after_inlining): Same.
11626         (try_decrement_rdesc_refcount): Same.
11627         (ipa_impossible_devirt_target): Same.
11628         (update_indirect_edges_after_inlining): Same.
11629         (combine_controlled_uses_counters): Same.
11630         (ipa_edge_args_sum_t::duplicate): Same.
11631         (ipa_write_jump_function): Same.
11632         (ipa_write_indirect_edge_info): Same.
11633         (ipa_write_node_info): Same.
11634         (ipa_read_edge_info): Same.
11635         (ipa_prop_read_section): Same.
11636         (read_replacements_section): Same.
11637         * ipa-prop.h (ipa_get_param_count): Same.
11638         (ipa_get_param): Same.
11639         (ipa_get_type): Same.
11640         (ipa_get_param_move_cost): Same.
11641         (ipa_set_param_used): Same.
11642         (ipa_get_controlled_uses): Same.
11643         (ipa_set_controlled_uses): Same.
11644         (ipa_get_cs_argument_count): Same.
11645         * ipa-pure-const.c (analyze_function): Same.
11646         (pure_const_read_summary): Same.
11647         * ipa-ref.h: Same.
11648         * ipa-reference.c (ipa_reference_read_optimization_summary): Same.
11649         * ipa-split.c (test_nonssa_use): Same.
11650         (dump_split_point): Same.
11651         (dominated_by_forbidden): Same.
11652         (split_part_set_ssa_name_p): Same.
11653         (find_split_points): Same.
11654         * ira-build.c (finish_loop_tree_nodes): Same.
11655         (low_pressure_loop_node_p): Same.
11656         * ira-color.c (ira_reuse_stack_slot): Same.
11657         * ira-int.h: Same.
11658         * ira.c (setup_reg_equiv): Same.
11659         (print_insn_chain): Same.
11660         (ira): Same.
11661         * loop-doloop.c (doloop_condition_get): Same.
11662         (add_test): Same.
11663         (record_reg_sets): Same.
11664         (doloop_optimize): Same.
11665         * loop-init.c (loop_optimizer_init): Same.
11666         (fix_loop_structure): Same.
11667         * loop-invariant.c (merge_identical_invariants): Same.
11668         (compute_always_reached): Same.
11669         (find_exits): Same.
11670         (may_assign_reg_p): Same.
11671         (find_invariants_bb): Same.
11672         (find_invariants_body): Same.
11673         (replace_uses): Same.
11674         (can_move_invariant_reg): Same.
11675         (free_inv_motion_data): Same.
11676         (move_single_loop_invariants): Same.
11677         (change_pressure): Same.
11678         (mark_ref_regs): Same.
11679         (calculate_loop_reg_pressure): Same.
11680         * loop-iv.c (biv_entry_hasher::equal): Same.
11681         (iv_extend_to_rtx_code): Same.
11682         (check_iv_ref_table_size): Same.
11683         (clear_iv_info): Same.
11684         (latch_dominating_def): Same.
11685         (iv_get_reaching_def): Same.
11686         (iv_constant): Same.
11687         (iv_subreg): Same.
11688         (iv_extend): Same.
11689         (iv_neg): Same.
11690         (iv_add): Same.
11691         (iv_mult): Same.
11692         (get_biv_step): Same.
11693         (record_iv): Same.
11694         (analyzed_for_bivness_p): Same.
11695         (record_biv): Same.
11696         (iv_analyze_biv): Same.
11697         (iv_analyze_expr): Same.
11698         (iv_analyze_def): Same.
11699         (iv_analyze_op): Same.
11700         (iv_analyze): Same.
11701         (iv_analyze_result): Same.
11702         (biv_p): Same.
11703         (eliminate_implied_conditions): Same.
11704         (simplify_using_initial_values): Same.
11705         (shorten_into_mode): Same.
11706         (canonicalize_iv_subregs): Same.
11707         (determine_max_iter): Same.
11708         (check_simple_exit): Same.
11709         (find_simple_exit): Same.
11710         (get_simple_loop_desc): Same.
11711         * loop-unroll.c (report_unroll): Same.
11712         (decide_unrolling): Same.
11713         (unroll_loops): Same.
11714         (loop_exit_at_end_p): Same.
11715         (decide_unroll_constant_iterations): Same.
11716         (unroll_loop_constant_iterations): Same.
11717         (compare_and_jump_seq): Same.
11718         (unroll_loop_runtime_iterations): Same.
11719         (decide_unroll_stupid): Same.
11720         (unroll_loop_stupid): Same.
11721         (referenced_in_one_insn_in_loop_p): Same.
11722         (reset_debug_uses_in_loop): Same.
11723         (analyze_iv_to_split_insn): Same.
11724         * lra-eliminations.c (lra_debug_elim_table): Same.
11725         (setup_can_eliminate): Same.
11726         (form_sum): Same.
11727         (lra_get_elimination_hard_regno): Same.
11728         (lra_eliminate_regs_1): Same.
11729         (eliminate_regs_in_insn): Same.
11730         (update_reg_eliminate): Same.
11731         (init_elimination): Same.
11732         (lra_eliminate): Same.
11733         * lra-int.h: Same.
11734         * lra-lives.c (initiate_live_solver): Same.
11735         * lra-remat.c (create_remat_bb_data): Same.
11736         * lra-spills.c (lra_spill): Same.
11737         * lra.c (lra_set_insn_recog_data): Same.
11738         (lra_set_used_insn_alternative_by_uid): Same.
11739         (init_reg_info): Same.
11740         (expand_reg_info): Same.
11741         * lto-cgraph.c (output_symtab): Same.
11742         (read_identifier): Same.
11743         (get_alias_symbol): Same.
11744         (input_node): Same.
11745         (input_varpool_node): Same.
11746         (input_ref): Same.
11747         (input_edge): Same.
11748         (input_cgraph_1): Same.
11749         (input_refs): Same.
11750         (input_symtab): Same.
11751         (input_offload_tables): Same.
11752         (output_cgraph_opt_summary): Same.
11753         (input_edge_opt_summary): Same.
11754         (input_cgraph_opt_section): Same.
11755         * lto-section-in.c (lto_free_raw_section_data): Same.
11756         (lto_create_simple_input_block): Same.
11757         (lto_free_function_in_decl_state_for_node): Same.
11758         * lto-streamer-in.c (lto_tag_check_set): Same.
11759         (lto_location_cache::revert_location_cache): Same.
11760         (lto_location_cache::input_location): Same.
11761         (lto_input_location): Same.
11762         (stream_input_location_now): Same.
11763         (lto_input_tree_ref): Same.
11764         (lto_input_eh_catch_list): Same.
11765         (input_eh_region): Same.
11766         (lto_init_eh): Same.
11767         (make_new_block): Same.
11768         (input_cfg): Same.
11769         (fixup_call_stmt_edges): Same.
11770         (input_struct_function_base): Same.
11771         (input_function): Same.
11772         (lto_read_body_or_constructor): Same.
11773         (lto_read_tree_1): Same.
11774         (lto_read_tree): Same.
11775         (lto_input_scc): Same.
11776         (lto_input_tree_1): Same.
11777         (lto_input_toplevel_asms): Same.
11778         (lto_input_mode_table): Same.
11779         (lto_reader_init): Same.
11780         (lto_data_in_create): Same.
11781         * lto-streamer-out.c (output_cfg): Same.
11782         * lto-streamer.h: Same.
11783         * modulo-sched.c (duplicate_insns_of_cycles): Same.
11784         (generate_prolog_epilog): Same.
11785         (mark_loop_unsched): Same.
11786         (dump_insn_location): Same.
11787         (loop_canon_p): Same.
11788         (sms_schedule): Same.
11789         * omp-expand.c (expand_omp_for_ordered_loops): Same.
11790         (expand_omp_for_generic): Same.
11791         (expand_omp_for_static_nochunk): Same.
11792         (expand_omp_for_static_chunk): Same.
11793         (expand_omp_simd): Same.
11794         (expand_omp_taskloop_for_inner): Same.
11795         (expand_oacc_for): Same.
11796         (expand_omp_atomic_pipeline): Same.
11797         (mark_loops_in_oacc_kernels_region): Same.
11798         * omp-offload.c (oacc_xform_loop): Same.
11799         * omp-simd-clone.c (simd_clone_adjust): Same.
11800         * optabs-query.c (get_traditional_extraction_insn): Same.
11801         * optabs.c (expand_vector_broadcast): Same.
11802         (expand_binop_directly): Same.
11803         (expand_twoval_unop): Same.
11804         (expand_twoval_binop): Same.
11805         (expand_unop_direct): Same.
11806         (emit_indirect_jump): Same.
11807         (emit_conditional_move): Same.
11808         (emit_conditional_neg_or_complement): Same.
11809         (emit_conditional_add): Same.
11810         (vector_compare_rtx): Same.
11811         (expand_vec_perm_1): Same.
11812         (expand_vec_perm_const): Same.
11813         (expand_vec_cond_expr): Same.
11814         (expand_vec_series_expr): Same.
11815         (maybe_emit_atomic_exchange): Same.
11816         (maybe_emit_sync_lock_test_and_set): Same.
11817         (expand_atomic_compare_and_swap): Same.
11818         (expand_atomic_load): Same.
11819         (expand_atomic_store): Same.
11820         (maybe_emit_op): Same.
11821         (valid_multiword_target_p): Same.
11822         (create_integer_operand): Same.
11823         (maybe_legitimize_operand_same_code): Same.
11824         (maybe_legitimize_operand): Same.
11825         (create_convert_operand_from_type): Same.
11826         (can_reuse_operands_p): Same.
11827         (maybe_legitimize_operands): Same.
11828         (maybe_gen_insn): Same.
11829         (maybe_expand_insn): Same.
11830         (maybe_expand_jump_insn): Same.
11831         (expand_insn): Same.
11832         * optabs.h (create_expand_operand): Same.
11833         (create_fixed_operand): Same.
11834         (create_output_operand): Same.
11835         (create_input_operand): Same.
11836         (create_convert_operand_to): Same.
11837         (create_convert_operand_from): Same.
11838         * optinfo.h: Same.
11839         * poly-int.h: Same.
11840         * predict.c (optimize_insn_for_speed_p): Same.
11841         (optimize_loop_for_size_p): Same.
11842         (optimize_loop_for_speed_p): Same.
11843         (optimize_loop_nest_for_speed_p): Same.
11844         (get_base_value): Same.
11845         (predicted_by_loop_heuristics_p): Same.
11846         (predict_extra_loop_exits): Same.
11847         (predict_loops): Same.
11848         (predict_paths_for_bb): Same.
11849         (predict_paths_leading_to): Same.
11850         (propagate_freq): Same.
11851         (pass_profile::execute): Same.
11852         * predict.h: Same.
11853         * profile-count.c (profile_count::differs_from_p): Same.
11854         (profile_probability::differs_lot_from_p): Same.
11855         * profile-count.h: Same.
11856         * profile.c (branch_prob): Same.
11857         * regrename.c (free_chain_data): Same.
11858         (mark_conflict): Same.
11859         (create_new_chain): Same.
11860         (merge_overlapping_regs): Same.
11861         (init_rename_info): Same.
11862         (merge_chains): Same.
11863         (regrename_analyze): Same.
11864         (regrename_do_replace): Same.
11865         (scan_rtx_reg): Same.
11866         (record_out_operands): Same.
11867         (build_def_use): Same.
11868         * regrename.h: Same.
11869         * reload.h: Same.
11870         * reload1.c (init_reload): Same.
11871         (maybe_fix_stack_asms): Same.
11872         (copy_reloads): Same.
11873         (count_pseudo): Same.
11874         (count_spilled_pseudo): Same.
11875         (find_reg): Same.
11876         (find_reload_regs): Same.
11877         (select_reload_regs): Same.
11878         (spill_hard_reg): Same.
11879         (fixup_eh_region_note): Same.
11880         (set_reload_reg): Same.
11881         (allocate_reload_reg): Same.
11882         (compute_reload_subreg_offset): Same.
11883         (reload_adjust_reg_for_icode): Same.
11884         (emit_input_reload_insns): Same.
11885         (emit_output_reload_insns): Same.
11886         (do_input_reload): Same.
11887         (inherit_piecemeal_p): Same.
11888         * rtl.h: Same.
11889         * sanopt.c (maybe_get_dominating_check): Same.
11890         (maybe_optimize_ubsan_ptr_ifn): Same.
11891         (can_remove_asan_check): Same.
11892         (maybe_optimize_asan_check_ifn): Same.
11893         (sanopt_optimize_walker): Same.
11894         * sched-deps.c (add_dependence_list): Same.
11895         (chain_to_prev_insn): Same.
11896         (add_insn_mem_dependence): Same.
11897         (create_insn_reg_set): Same.
11898         (maybe_extend_reg_info_p): Same.
11899         (sched_analyze_reg): Same.
11900         (sched_analyze_1): Same.
11901         (get_implicit_reg_pending_clobbers): Same.
11902         (chain_to_prev_insn_p): Same.
11903         (deps_analyze_insn): Same.
11904         (deps_start_bb): Same.
11905         (sched_free_deps): Same.
11906         (init_deps): Same.
11907         (init_deps_reg_last): Same.
11908         (free_deps): Same.
11909         * sched-ebb.c: Same.
11910         * sched-int.h: Same.
11911         * sched-rgn.c (add_branch_dependences): Same.
11912         (concat_insn_mem_list): Same.
11913         (deps_join): Same.
11914         (sched_rgn_compute_dependencies): Same.
11915         * sel-sched-ir.c (reset_target_context): Same.
11916         (copy_deps_context): Same.
11917         (init_id_from_df): Same.
11918         (has_dependence_p): Same.
11919         (change_loops_latches): Same.
11920         (bb_top_order_comparator): Same.
11921         (make_region_from_loop_preheader): Same.
11922         (sel_init_pipelining): Same.
11923         (get_loop_nest_for_rgn): Same.
11924         (make_regions_from_the_rest): Same.
11925         (sel_is_loop_preheader_p): Same.
11926         * sel-sched-ir.h (inner_loop_header_p): Same.
11927         (get_all_loop_exits): Same.
11928         * selftest.h: Same.
11929         * sese.c (sese_build_liveouts): Same.
11930         (sese_insert_phis_for_liveouts): Same.
11931         * sese.h (defined_in_sese_p): Same.
11932         * sreal.c (sreal::stream_out): Same.
11933         * sreal.h: Same.
11934         * streamer-hooks.h: Same.
11935         * target-globals.c (save_target_globals): Same.
11936         * target-globals.h: Same.
11937         * target.def: Same.
11938         * target.h: Same.
11939         * targhooks.c (default_has_ifunc_p): Same.
11940         (default_empty_mask_is_expensive): Same.
11941         (default_init_cost): Same.
11942         * targhooks.h: Same.
11943         * toplev.c: Same.
11944         * tree-affine.c (aff_combination_mult): Same.
11945         (aff_combination_expand): Same.
11946         (aff_combination_constant_multiple_p): Same.
11947         * tree-affine.h: Same.
11948         * tree-cfg.c (build_gimple_cfg): Same.
11949         (replace_loop_annotate_in_block): Same.
11950         (replace_uses_by): Same.
11951         (remove_bb): Same.
11952         (dump_cfg_stats): Same.
11953         (gimple_duplicate_sese_region): Same.
11954         (gimple_duplicate_sese_tail): Same.
11955         (move_block_to_fn): Same.
11956         (replace_block_vars_by_duplicates): Same.
11957         (move_sese_region_to_fn): Same.
11958         (print_loops_bb): Same.
11959         (print_loop): Same.
11960         (print_loops): Same.
11961         (debug): Same.
11962         (debug_loops): Same.
11963         * tree-cfg.h: Same.
11964         * tree-chrec.c (chrec_fold_plus_poly_poly): Same.
11965         (chrec_fold_multiply_poly_poly): Same.
11966         (chrec_evaluate): Same.
11967         (chrec_component_in_loop_num): Same.
11968         (reset_evolution_in_loop): Same.
11969         (is_multivariate_chrec): Same.
11970         (chrec_contains_symbols): Same.
11971         (nb_vars_in_chrec): Same.
11972         (chrec_convert_1): Same.
11973         (chrec_convert_aggressive): Same.
11974         * tree-chrec.h: Same.
11975         * tree-core.h: Same.
11976         * tree-data-ref.c (dump_data_dependence_relation): Same.
11977         (canonicalize_base_object_address): Same.
11978         (data_ref_compare_tree): Same.
11979         (prune_runtime_alias_test_list): Same.
11980         (get_segment_min_max): Same.
11981         (create_intersect_range_checks): Same.
11982         (conflict_fn_no_dependence): Same.
11983         (object_address_invariant_in_loop_p): Same.
11984         (analyze_ziv_subscript): Same.
11985         (analyze_siv_subscript_cst_affine): Same.
11986         (analyze_miv_subscript): Same.
11987         (analyze_overlapping_iterations): Same.
11988         (build_classic_dist_vector_1): Same.
11989         (add_other_self_distances): Same.
11990         (same_access_functions): Same.
11991         (build_classic_dir_vector): Same.
11992         (subscript_dependence_tester_1): Same.
11993         (subscript_dependence_tester): Same.
11994         (access_functions_are_affine_or_constant_p): Same.
11995         (get_references_in_stmt): Same.
11996         (loop_nest_has_data_refs): Same.
11997         (graphite_find_data_references_in_stmt): Same.
11998         (find_data_references_in_bb): Same.
11999         (get_base_for_alignment): Same.
12000         (find_loop_nest_1): Same.
12001         (find_loop_nest): Same.
12002         * tree-data-ref.h (dr_alignment): Same.
12003         (ddr_dependence_level): Same.
12004         * tree-if-conv.c (fold_build_cond_expr): Same.
12005         (add_to_predicate_list): Same.
12006         (add_to_dst_predicate_list): Same.
12007         (phi_convertible_by_degenerating_args): Same.
12008         (idx_within_array_bound): Same.
12009         (all_preds_critical_p): Same.
12010         (pred_blocks_visited_p): Same.
12011         (predicate_bbs): Same.
12012         (build_region): Same.
12013         (if_convertible_loop_p_1): Same.
12014         (is_cond_scalar_reduction): Same.
12015         (predicate_scalar_phi): Same.
12016         (remove_conditions_and_labels): Same.
12017         (combine_blocks): Same.
12018         (version_loop_for_if_conversion): Same.
12019         (versionable_outer_loop_p): Same.
12020         (ifcvt_local_dce): Same.
12021         (tree_if_conversion): Same.
12022         (pass_if_conversion::gate): Same.
12023         * tree-if-conv.h: Same.
12024         * tree-inline.c (maybe_move_debug_stmts_to_successors): Same.
12025         * tree-loop-distribution.c (bb_top_order_cmp): Same.
12026         (free_rdg): Same.
12027         (stmt_has_scalar_dependences_outside_loop): Same.
12028         (copy_loop_before): Same.
12029         (create_bb_after_loop): Same.
12030         (const_with_all_bytes_same): Same.
12031         (generate_memset_builtin): Same.
12032         (generate_memcpy_builtin): Same.
12033         (destroy_loop): Same.
12034         (build_rdg_partition_for_vertex): Same.
12035         (compute_access_range): Same.
12036         (data_ref_segment_size): Same.
12037         (latch_dominated_by_data_ref): Same.
12038         (compute_alias_check_pairs): Same.
12039         (fuse_memset_builtins): Same.
12040         (finalize_partitions): Same.
12041         (find_seed_stmts_for_distribution): Same.
12042         (prepare_perfect_loop_nest): Same.
12043         * tree-parloops.c (lambda_transform_legal_p): Same.
12044         (loop_parallel_p): Same.
12045         (reduc_stmt_res): Same.
12046         (add_field_for_name): Same.
12047         (create_call_for_reduction_1): Same.
12048         (replace_uses_in_bb_by): Same.
12049         (transform_to_exit_first_loop_alt): Same.
12050         (try_transform_to_exit_first_loop_alt): Same.
12051         (transform_to_exit_first_loop): Same.
12052         (num_phis): Same.
12053         (gen_parallel_loop): Same.
12054         (gather_scalar_reductions): Same.
12055         (get_omp_data_i_param): Same.
12056         (try_create_reduction_list): Same.
12057         (oacc_entry_exit_single_gang): Same.
12058         (parallelize_loops): Same.
12059         * tree-pass.h: Same.
12060         * tree-predcom.c (determine_offset): Same.
12061         (last_always_executed_block): Same.
12062         (split_data_refs_to_components): Same.
12063         (suitable_component_p): Same.
12064         (valid_initializer_p): Same.
12065         (find_looparound_phi): Same.
12066         (insert_looparound_copy): Same.
12067         (add_looparound_copies): Same.
12068         (determine_roots_comp): Same.
12069         (predcom_tmp_var): Same.
12070         (initialize_root_vars): Same.
12071         (initialize_root_vars_store_elim_1): Same.
12072         (initialize_root_vars_store_elim_2): Same.
12073         (finalize_eliminated_stores): Same.
12074         (initialize_root_vars_lm): Same.
12075         (remove_stmt): Same.
12076         (determine_unroll_factor): Same.
12077         (execute_pred_commoning_cbck): Same.
12078         (base_names_in_chain_on): Same.
12079         (combine_chains): Same.
12080         (pcom_stmt_dominates_stmt_p): Same.
12081         (try_combine_chains): Same.
12082         (prepare_initializers_chain_store_elim): Same.
12083         (prepare_initializers_chain): Same.
12084         (prepare_initializers): Same.
12085         (prepare_finalizers_chain): Same.
12086         (prepare_finalizers): Same.
12087         (insert_init_seqs): Same.
12088         * tree-scalar-evolution.c (loop_phi_node_p): Same.
12089         (compute_overall_effect_of_inner_loop): Same.
12090         (add_to_evolution_1): Same.
12091         (add_to_evolution): Same.
12092         (follow_ssa_edge_binary): Same.
12093         (follow_ssa_edge_expr): Same.
12094         (backedge_phi_arg_p): Same.
12095         (follow_ssa_edge_in_condition_phi_branch): Same.
12096         (follow_ssa_edge_in_condition_phi): Same.
12097         (follow_ssa_edge_inner_loop_phi): Same.
12098         (follow_ssa_edge): Same.
12099         (analyze_evolution_in_loop): Same.
12100         (analyze_initial_condition): Same.
12101         (interpret_loop_phi): Same.
12102         (interpret_condition_phi): Same.
12103         (interpret_rhs_expr): Same.
12104         (interpret_expr): Same.
12105         (interpret_gimple_assign): Same.
12106         (analyze_scalar_evolution_1): Same.
12107         (analyze_scalar_evolution): Same.
12108         (analyze_scalar_evolution_for_address_of): Same.
12109         (get_instantiated_value_entry): Same.
12110         (loop_closed_phi_def): Same.
12111         (instantiate_scev_name): Same.
12112         (instantiate_scev_poly): Same.
12113         (instantiate_scev_binary): Same.
12114         (instantiate_scev_convert): Same.
12115         (instantiate_scev_not): Same.
12116         (instantiate_scev_r): Same.
12117         (instantiate_scev): Same.
12118         (resolve_mixers): Same.
12119         (initialize_scalar_evolutions_analyzer): Same.
12120         (scev_reset_htab): Same.
12121         (scev_reset): Same.
12122         (derive_simple_iv_with_niters): Same.
12123         (simple_iv_with_niters): Same.
12124         (expression_expensive_p): Same.
12125         (final_value_replacement_loop): Same.
12126         * tree-scalar-evolution.h (block_before_loop): Same.
12127         * tree-ssa-address.h: Same.
12128         * tree-ssa-dce.c (find_obviously_necessary_stmts): Same.
12129         * tree-ssa-dom.c (edge_info::record_simple_equiv): Same.
12130         (record_edge_info): Same.
12131         * tree-ssa-live.c (var_map_base_fini): Same.
12132         (remove_unused_locals): Same.
12133         * tree-ssa-live.h: Same.
12134         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Same.
12135         (pass_ch_vect::execute): Same.
12136         (pass_ch::process_loop_p): Same.
12137         * tree-ssa-loop-im.c (mem_ref_hasher::hash): Same.
12138         (movement_possibility): Same.
12139         (outermost_invariant_loop): Same.
12140         (stmt_cost): Same.
12141         (determine_max_movement): Same.
12142         (invariantness_dom_walker::before_dom_children): Same.
12143         (move_computations): Same.
12144         (may_move_till): Same.
12145         (force_move_till_op): Same.
12146         (force_move_till): Same.
12147         (memref_free): Same.
12148         (record_mem_ref_loc): Same.
12149         (set_ref_stored_in_loop): Same.
12150         (mark_ref_stored): Same.
12151         (sort_bbs_in_loop_postorder_cmp): Same.
12152         (sort_locs_in_loop_postorder_cmp): Same.
12153         (analyze_memory_references): Same.
12154         (mem_refs_may_alias_p): Same.
12155         (find_ref_loc_in_loop_cmp): Same.
12156         (rewrite_mem_ref_loc::operator): Same.
12157         (first_mem_ref_loc_1::operator): Same.
12158         (sm_set_flag_if_changed::operator): Same.
12159         (execute_sm_if_changed_flag_set): Same.
12160         (execute_sm): Same.
12161         (hoist_memory_references): Same.
12162         (ref_always_accessed::operator): Same.
12163         (refs_independent_p): Same.
12164         (record_dep_loop): Same.
12165         (ref_indep_loop_p_1): Same.
12166         (ref_indep_loop_p): Same.
12167         (can_sm_ref_p): Same.
12168         (find_refs_for_sm): Same.
12169         (loop_suitable_for_sm): Same.
12170         (store_motion_loop): Same.
12171         (store_motion): Same.
12172         (fill_always_executed_in): Same.
12173         * tree-ssa-loop-ivcanon.c (constant_after_peeling): Same.
12174         (estimated_unrolled_size): Same.
12175         (loop_edge_to_cancel): Same.
12176         (remove_exits_and_undefined_stmts): Same.
12177         (remove_redundant_iv_tests): Same.
12178         (unloop_loops): Same.
12179         (estimated_peeled_sequence_size): Same.
12180         (try_peel_loop): Same.
12181         (canonicalize_loop_induction_variables): Same.
12182         (canonicalize_induction_variables): Same.
12183         * tree-ssa-loop-ivopts.c (iv_inv_expr_hasher::equal): Same.
12184         (name_info): Same.
12185         (stmt_after_inc_pos): Same.
12186         (contains_abnormal_ssa_name_p): Same.
12187         (niter_for_exit): Same.
12188         (find_bivs): Same.
12189         (mark_bivs): Same.
12190         (find_givs_in_bb): Same.
12191         (find_induction_variables): Same.
12192         (find_interesting_uses_cond): Same.
12193         (outermost_invariant_loop_for_expr): Same.
12194         (idx_find_step): Same.
12195         (add_candidate_1): Same.
12196         (add_iv_candidate_derived_from_uses): Same.
12197         (alloc_use_cost_map): Same.
12198         (prepare_decl_rtl): Same.
12199         (generic_predict_doloop_p): Same.
12200         (computation_cost): Same.
12201         (determine_common_wider_type): Same.
12202         (get_computation_aff_1): Same.
12203         (get_use_type): Same.
12204         (determine_group_iv_cost_address): Same.
12205         (iv_period): Same.
12206         (difference_cannot_overflow_p): Same.
12207         (may_eliminate_iv): Same.
12208         (determine_set_costs): Same.
12209         (cheaper_cost_pair): Same.
12210         (compare_cost_pair): Same.
12211         (iv_ca_cand_for_group): Same.
12212         (iv_ca_recount_cost): Same.
12213         (iv_ca_set_remove_invs): Same.
12214         (iv_ca_set_no_cp): Same.
12215         (iv_ca_set_add_invs): Same.
12216         (iv_ca_set_cp): Same.
12217         (iv_ca_add_group): Same.
12218         (iv_ca_cost): Same.
12219         (iv_ca_compare_deps): Same.
12220         (iv_ca_delta_reverse): Same.
12221         (iv_ca_delta_commit): Same.
12222         (iv_ca_cand_used_p): Same.
12223         (iv_ca_delta_free): Same.
12224         (iv_ca_new): Same.
12225         (iv_ca_free): Same.
12226         (iv_ca_dump): Same.
12227         (iv_ca_extend): Same.
12228         (iv_ca_narrow): Same.
12229         (iv_ca_prune): Same.
12230         (cheaper_cost_with_cand): Same.
12231         (iv_ca_replace): Same.
12232         (try_add_cand_for): Same.
12233         (get_initial_solution): Same.
12234         (try_improve_iv_set): Same.
12235         (find_optimal_iv_set_1): Same.
12236         (create_new_iv): Same.
12237         (rewrite_use_compare): Same.
12238         (remove_unused_ivs): Same.
12239         (determine_scaling_factor): Same.
12240         * tree-ssa-loop-ivopts.h: Same.
12241         * tree-ssa-loop-manip.c (create_iv): Same.
12242         (compute_live_loop_exits): Same.
12243         (add_exit_phi): Same.
12244         (add_exit_phis): Same.
12245         (find_uses_to_rename_use): Same.
12246         (find_uses_to_rename_def): Same.
12247         (find_uses_to_rename_in_loop): Same.
12248         (rewrite_into_loop_closed_ssa): Same.
12249         (check_loop_closed_ssa_bb): Same.
12250         (split_loop_exit_edge): Same.
12251         (ip_end_pos): Same.
12252         (ip_normal_pos): Same.
12253         (copy_phi_node_args): Same.
12254         (gimple_duplicate_loop_to_header_edge): Same.
12255         (can_unroll_loop_p): Same.
12256         (determine_exit_conditions): Same.
12257         (scale_dominated_blocks_in_loop): Same.
12258         (niter_for_unrolled_loop): Same.
12259         (tree_transform_and_unroll_loop): Same.
12260         (rewrite_all_phi_nodes_with_iv): Same.
12261         * tree-ssa-loop-manip.h: Same.
12262         * tree-ssa-loop-niter.c (number_of_iterations_ne_max): Same.
12263         (number_of_iterations_ne): Same.
12264         (assert_no_overflow_lt): Same.
12265         (assert_loop_rolls_lt): Same.
12266         (number_of_iterations_lt): Same.
12267         (adjust_cond_for_loop_until_wrap): Same.
12268         (tree_simplify_using_condition): Same.
12269         (simplify_using_initial_conditions): Same.
12270         (simplify_using_outer_evolutions): Same.
12271         (loop_only_exit_p): Same.
12272         (ssa_defined_by_minus_one_stmt_p): Same.
12273         (number_of_iterations_popcount): Same.
12274         (number_of_iterations_exit): Same.
12275         (find_loop_niter): Same.
12276         (finite_loop_p): Same.
12277         (chain_of_csts_start): Same.
12278         (get_val_for): Same.
12279         (loop_niter_by_eval): Same.
12280         (derive_constant_upper_bound_ops): Same.
12281         (do_warn_aggressive_loop_optimizations): Same.
12282         (record_estimate): Same.
12283         (get_cst_init_from_scev): Same.
12284         (record_nonwrapping_iv): Same.
12285         (idx_infer_loop_bounds): Same.
12286         (infer_loop_bounds_from_ref): Same.
12287         (infer_loop_bounds_from_array): Same.
12288         (infer_loop_bounds_from_pointer_arith): Same.
12289         (infer_loop_bounds_from_signedness): Same.
12290         (bound_index): Same.
12291         (discover_iteration_bound_by_body_walk): Same.
12292         (maybe_lower_iteration_bound): Same.
12293         (estimate_numbers_of_iterations): Same.
12294         (estimated_loop_iterations): Same.
12295         (estimated_loop_iterations_int): Same.
12296         (max_loop_iterations): Same.
12297         (max_loop_iterations_int): Same.
12298         (likely_max_loop_iterations): Same.
12299         (likely_max_loop_iterations_int): Same.
12300         (estimated_stmt_executions_int): Same.
12301         (max_stmt_executions): Same.
12302         (likely_max_stmt_executions): Same.
12303         (estimated_stmt_executions): Same.
12304         (stmt_dominates_stmt_p): Same.
12305         (nowrap_type_p): Same.
12306         (loop_exits_before_overflow): Same.
12307         (scev_var_range_cant_overflow): Same.
12308         (scev_probably_wraps_p): Same.
12309         (free_numbers_of_iterations_estimates): Same.
12310         * tree-ssa-loop-niter.h: Same.
12311         * tree-ssa-loop-prefetch.c (release_mem_refs): Same.
12312         (idx_analyze_ref): Same.
12313         (analyze_ref): Same.
12314         (gather_memory_references_ref): Same.
12315         (mark_nontemporal_store): Same.
12316         (emit_mfence_after_loop): Same.
12317         (may_use_storent_in_loop_p): Same.
12318         (mark_nontemporal_stores): Same.
12319         (should_unroll_loop_p): Same.
12320         (volume_of_dist_vector): Same.
12321         (add_subscript_strides): Same.
12322         (self_reuse_distance): Same.
12323         (insn_to_prefetch_ratio_too_small_p): Same.
12324         * tree-ssa-loop-split.c (split_at_bb_p): Same.
12325         (patch_loop_exit): Same.
12326         (find_or_create_guard_phi): Same.
12327         (easy_exit_values): Same.
12328         (connect_loop_phis): Same.
12329         (connect_loops): Same.
12330         (compute_new_first_bound): Same.
12331         (split_loop): Same.
12332         (tree_ssa_split_loops): Same.
12333         * tree-ssa-loop-unswitch.c (tree_ssa_unswitch_loops): Same.
12334         (is_maybe_undefined): Same.
12335         (tree_may_unswitch_on): Same.
12336         (simplify_using_entry_checks): Same.
12337         (tree_unswitch_single_loop): Same.
12338         (tree_unswitch_loop): Same.
12339         (tree_unswitch_outer_loop): Same.
12340         (empty_bb_without_guard_p): Same.
12341         (used_outside_loop_p): Same.
12342         (get_vop_from_header): Same.
12343         (hoist_guard): Same.
12344         * tree-ssa-loop.c (gate_oacc_kernels): Same.
12345         (get_lsm_tmp_name): Same.
12346         * tree-ssa-loop.h: Same.
12347         * tree-ssa-reassoc.c (add_repeat_to_ops_vec): Same.
12348         (build_and_add_sum): Same.
12349         (no_side_effect_bb): Same.
12350         (get_ops): Same.
12351         (linearize_expr): Same.
12352         (should_break_up_subtract): Same.
12353         (linearize_expr_tree): Same.
12354         * tree-ssa-scopedtables.c: Same.
12355         * tree-ssa-scopedtables.h: Same.
12356         * tree-ssa-structalias.c (condense_visit): Same.
12357         (label_visit): Same.
12358         (dump_pred_graph): Same.
12359         (perform_var_substitution): Same.
12360         (move_complex_constraints): Same.
12361         (remove_preds_and_fake_succs): Same.
12362         * tree-ssa-threadupdate.c (dbds_continue_enumeration_p): Same.
12363         (determine_bb_domination_status): Same.
12364         (duplicate_thread_path): Same.
12365         (thread_through_all_blocks): Same.
12366         * tree-ssa-threadupdate.h: Same.
12367         * tree-streamer-in.c (streamer_read_string_cst): Same.
12368         (input_identifier): Same.
12369         (unpack_ts_type_common_value_fields): Same.
12370         (unpack_ts_block_value_fields): Same.
12371         (unpack_ts_translation_unit_decl_value_fields): Same.
12372         (unpack_ts_omp_clause_value_fields): Same.
12373         (streamer_read_tree_bitfields): Same.
12374         (streamer_alloc_tree): Same.
12375         (lto_input_ts_common_tree_pointers): Same.
12376         (lto_input_ts_vector_tree_pointers): Same.
12377         (lto_input_ts_poly_tree_pointers): Same.
12378         (lto_input_ts_complex_tree_pointers): Same.
12379         (lto_input_ts_decl_minimal_tree_pointers): Same.
12380         (lto_input_ts_decl_common_tree_pointers): Same.
12381         (lto_input_ts_decl_non_common_tree_pointers): Same.
12382         (lto_input_ts_decl_with_vis_tree_pointers): Same.
12383         (lto_input_ts_field_decl_tree_pointers): Same.
12384         (lto_input_ts_function_decl_tree_pointers): Same.
12385         (lto_input_ts_type_common_tree_pointers): Same.
12386         (lto_input_ts_type_non_common_tree_pointers): Same.
12387         (lto_input_ts_list_tree_pointers): Same.
12388         (lto_input_ts_vec_tree_pointers): Same.
12389         (lto_input_ts_exp_tree_pointers): Same.
12390         (lto_input_ts_block_tree_pointers): Same.
12391         (lto_input_ts_binfo_tree_pointers): Same.
12392         (lto_input_ts_constructor_tree_pointers): Same.
12393         (lto_input_ts_omp_clause_tree_pointers): Same.
12394         (streamer_read_tree_body): Same.
12395         * tree-streamer.h: Same.
12396         * tree-switch-conversion.c (bit_test_cluster::is_beneficial): Same.
12397         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Same.
12398         (vect_analyze_possibly_independent_ddr): Same.
12399         (vect_analyze_data_ref_dependence): Same.
12400         (vect_compute_data_ref_alignment): Same.
12401         (vect_enhance_data_refs_alignment): Same.
12402         (vect_analyze_data_ref_access): Same.
12403         (vect_check_gather_scatter): Same.
12404         (vect_find_stmt_data_reference): Same.
12405         (vect_create_addr_base_for_vector_ref): Same.
12406         (vect_setup_realignment): Same.
12407         (vect_supportable_dr_alignment): Same.
12408         * tree-vect-loop-manip.c (rename_variables_in_bb): Same.
12409         (adjust_phi_and_debug_stmts): Same.
12410         (vect_set_loop_mask): Same.
12411         (add_preheader_seq): Same.
12412         (vect_maybe_permute_loop_masks): Same.
12413         (vect_set_loop_masks_directly): Same.
12414         (vect_set_loop_condition_masked): Same.
12415         (vect_set_loop_condition_unmasked): Same.
12416         (slpeel_duplicate_current_defs_from_edges): Same.
12417         (slpeel_add_loop_guard): Same.
12418         (slpeel_can_duplicate_loop_p): Same.
12419         (create_lcssa_for_virtual_phi): Same.
12420         (iv_phi_p): Same.
12421         (vect_update_ivs_after_vectorizer): Same.
12422         (vect_gen_vector_loop_niters_mult_vf): Same.
12423         (slpeel_update_phi_nodes_for_loops): Same.
12424         (slpeel_update_phi_nodes_for_guard1): Same.
12425         (find_guard_arg): Same.
12426         (slpeel_update_phi_nodes_for_guard2): Same.
12427         (slpeel_update_phi_nodes_for_lcssa): Same.
12428         (vect_do_peeling): Same.
12429         (vect_create_cond_for_alias_checks): Same.
12430         (vect_loop_versioning): Same.
12431         * tree-vect-loop.c (vect_determine_vf_for_stmt): Same.
12432         (vect_inner_phi_in_double_reduction_p): Same.
12433         (vect_analyze_scalar_cycles_1): Same.
12434         (vect_fixup_scalar_cycles_with_patterns): Same.
12435         (vect_get_loop_niters): Same.
12436         (bb_in_loop_p): Same.
12437         (vect_get_max_nscalars_per_iter): Same.
12438         (vect_verify_full_masking): Same.
12439         (vect_compute_single_scalar_iteration_cost): Same.
12440         (vect_analyze_loop_form_1): Same.
12441         (vect_analyze_loop_form): Same.
12442         (vect_active_double_reduction_p): Same.
12443         (vect_analyze_loop_operations): Same.
12444         (neutral_op_for_slp_reduction): Same.
12445         (vect_is_simple_reduction): Same.
12446         (vect_model_reduction_cost): Same.
12447         (get_initial_def_for_reduction): Same.
12448         (get_initial_defs_for_reduction): Same.
12449         (vect_create_epilog_for_reduction): Same.
12450         (vectorize_fold_left_reduction): Same.
12451         (vectorizable_reduction): Same.
12452         (vectorizable_induction): Same.
12453         (vectorizable_live_operation): Same.
12454         (loop_niters_no_overflow): Same.
12455         (vect_get_loop_mask): Same.
12456         (vect_transform_loop_stmt): Same.
12457         (vect_transform_loop): Same.
12458         * tree-vect-patterns.c (vect_reassociating_reduction_p): Same.
12459         (vect_determine_precisions): Same.
12460         (vect_pattern_recog_1): Same.
12461         * tree-vect-slp.c (vect_analyze_slp_instance): Same.
12462         * tree-vect-stmts.c (stmt_vectype): Same.
12463         (process_use): Same.
12464         (vect_init_vector_1): Same.
12465         (vect_truncate_gather_scatter_offset): Same.
12466         (get_group_load_store_type): Same.
12467         (vect_build_gather_load_calls): Same.
12468         (vect_get_strided_load_store_ops): Same.
12469         (vectorizable_simd_clone_call): Same.
12470         (vectorizable_store): Same.
12471         (permute_vec_elements): Same.
12472         (vectorizable_load): Same.
12473         (vect_transform_stmt): Same.
12474         (supportable_widening_operation): Same.
12475         * tree-vectorizer.c (vec_info::replace_stmt): Same.
12476         (vec_info::free_stmt_vec_info): Same.
12477         (vect_free_loop_info_assumptions): Same.
12478         (vect_loop_vectorized_call): Same.
12479         (set_uid_loop_bbs): Same.
12480         (vectorize_loops): Same.
12481         * tree-vectorizer.h (STMT_VINFO_BB_VINFO): Same.
12482         * tree.c (add_tree_to_fld_list): Same.
12483         (fld_type_variant_equal_p): Same.
12484         (fld_decl_context): Same.
12485         (fld_incomplete_type_of): Same.
12486         (free_lang_data_in_binfo): Same.
12487         (need_assembler_name_p): Same.
12488         (find_decls_types_r): Same.
12489         (get_eh_types_for_runtime): Same.
12490         (find_decls_types_in_eh_region): Same.
12491         (find_decls_types_in_node): Same.
12492         (assign_assembler_name_if_needed): Same.
12493         * value-prof.c (stream_out_histogram_value): Same.
12494         * value-prof.h: Same.
12495         * var-tracking.c (use_narrower_mode): Same.
12496         (prepare_call_arguments): Same.
12497         (vt_expand_loc_callback): Same.
12498         (resolve_expansions_pending_recursion): Same.
12499         (vt_expand_loc): Same.
12500         * varasm.c (const_hash_1): Same.
12501         (compare_constant): Same.
12502         (tree_output_constant_def): Same.
12503         (simplify_subtraction): Same.
12504         (get_pool_constant): Same.
12505         (output_constant_pool_2): Same.
12506         (output_constant_pool_1): Same.
12507         (mark_constants_in_pattern): Same.
12508         (mark_constant_pool): Same.
12509         (get_section_anchor): Same.
12510         * vr-values.c (compare_range_with_value): Same.
12511         (vr_values::extract_range_from_phi_node): Same.
12512         * vr-values.h: Same.
12513         * web.c (unionfind_union): Same.
12514         * wide-int.h: Same.
12516 2019-07-09  Martin Sebor  <msebor@redhat.com>
12518         PR c++/61339
12519         * align.h: Change class-key from class to struct and vice versa
12520         to match convention and avoid -Wclass-is-pod and -Wstruct-no-pod.
12521         * alloc-pool.h: Same.
12522         * asan.c (shadow_mem_size): Same.
12523         * auto-profile.c: Same.
12524         * basic-block.h: Same.
12525         * bitmap.h: Same.
12526         * cfgexpand.c (set_rtl): Same.
12527         (expand_one_stack_var_at): Same.
12528         * cfghooks.h: Same.
12529         * cfgloop.h: Same.
12530         * cgraph.h: Same.
12531         * config/i386/i386.h: Same.
12532         * df-problems.c (df_print_bb_index): Same.
12533         * df-scan.c: Same.
12534         * df.h (df_single_use): Same.
12535         * diagnostic-show-locus.c (layout::print_annotation_line): Same.
12536         (layout::annotation_line_showed_range_p): Same.
12537         (get_printed_columns): Same.
12538         (correction::ensure_terminated): Same.
12539         (line_corrections::~line_corrections): Same.
12540         * dojump.h: Same.
12541         * dse.c: Same.
12542         * dump-context.h: Same.
12543         * dumpfile.h: Same.
12544         * dwarf2out.c: Same.
12545         * edit-context.c: Same.
12546         * fibonacci_heap.c (test_union_of_equal_heaps): Same.
12547         * flags.h: Same.
12548         * function.c (assign_stack_local): Same.
12549         * function.h: Same.
12550         * gcc.c: Same.
12551         * gcov.c (block_info::block_info): Same.
12552         * genattrtab.c: Same.
12553         * genextract.c: Same.
12554         * genmatch.c (comparison_code_p): Same.
12555         (id_base::id_base): Same.
12556         (decision_tree::print): Same.
12557         * genoutput.c: Same.
12558         * genpreds.c (write_one_predicate_function): Same.
12559         * genrecog.c (validate_pattern): Same.
12560         (find_operand_positions): Same.
12561         (optimize_subroutine_group): Same.
12562         (merge_pattern_transition::merge_pattern_transition): Same.
12563         (merge_pattern_info::merge_pattern_info): Same.
12564         (merge_state_result::merge_state_result): Same.
12565         (merge_into_state): Same.
12566         * gensupport.c: Same.
12567         * gensupport.h: Same.
12568         * ggc-common.c (init_ggc_heuristics): Same.
12569         * ggc-tests.c (test_union): Same.
12570         * gimple-loop-interchange.cc (dump_induction): Same.
12571         * gimple-loop-versioning.cc: Same.
12572         * gimple-match.h (gimple_match_cond::any_else): Same.
12573         * gimple-ssa-backprop.c: Same.
12574         * gimple-ssa-sprintf.c: Same.
12575         * gimple-ssa-store-merging.c (store_operand_info::store_operand_info):
12576         Same.
12577         (store_immediate_info::store_immediate_info): Same.
12578         (merged_store_group::apply_stores): Same.
12579         (get_location_for_stmts): Same.
12580         * gimple-ssa-strength-reduction.c: Same.
12581         * gimple-ssa-warn-alloca.c: Same.
12582         * gimple-ssa-warn-restrict.c (pass_wrestrict::execute): Same.
12583         * godump.c (go_type_decl): Same.
12584         * hash-map-tests.c (test_map_of_strings_to_int): Same.
12585         * hash-map.h: Same.
12586         * hash-set-tests.c (test_set_of_strings): Same.
12587         * hsa-brig.c: Same.
12588         * hsa-common.h: Same.
12589         * hsa-gen.c (transformable_switch_to_sbr_p): Same.
12590         * input.c (assert_loceq): Same.
12591         * input.h: Same.
12592         * ipa-cp.c: Same.
12593         * ipa-devirt.c (possible_polymorphic_call_targets_1): Same.
12594         * ipa-fnsummary.h: Same.
12595         * ipa-inline.h: Same.
12596         * ipa-prop.h: Same.
12597         * ipa-split.c (visit_bb): Same.
12598         * ira-int.h (minmax_set_iter_next): Same.
12599         * loop-invariant.c: Same.
12600         * loop-iv.c: Same.
12601         * lra-eliminations.c: Same.
12602         * lra-int.h: Same.
12603         * lra-lives.c (mark_regno_dead): Same.
12604         * lra-remat.c: Same.
12605         * lra-spills.c: Same.
12606         * lto-streamer.h: Same.
12607         * mem-stats.h: Same.
12608         * omp-grid.c (omp_grid_lastprivate_predicate): Same.
12609         * omp-low.c (omp_clause_aligned_alignment): Same.
12610         * optabs-query.h (get_vcond_eq_icode): Same.
12611         * optabs.h: Same.
12612         * opts.c (wrap_help): Same.
12613         * poly-int.h: Same.
12614         * predict.c (predict_paths_leading_to_edge): Same.
12615         * pretty-print.h: Same.
12616         * profile-count.h: Same.
12617         * read-md.h: Same.
12618         * read-rtl-function.c: Same.
12619         * ree.c: Same.
12620         * reginfo.c: Same.
12621         * regrename.c: Same.
12622         * regrename.h: Same.
12623         * reload.h: Same.
12624         * rtl-iter.h: Same.
12625         * rtl.h (costs_add_n_insns): Same.
12626         * sanopt.c: Same.
12627         * sched-int.h: Same.
12628         * sel-sched-ir.h: Same.
12629         * selftest.h: Same.
12630         * sese.h (vec_find): Same.
12631         * stmt.c: Same.
12632         * target-globals.h: Same.
12633         * tree-affine.c (aff_combination_find_elt): Same.
12634         * tree-affine.h: Same.
12635         * tree-data-ref.h: Same.
12636         * tree-outof-ssa.c (ssa_is_replaceable_p): Same.
12637         * tree-predcom.c: Same.
12638         * tree-scalar-evolution.c (find_var_scev_info): Same.
12639         * tree-ssa-alias.h: Same.
12640         * tree-ssa-ccp.c: Same.
12641         * tree-ssa-coalesce.c (ssa_conflicts_dump): Same.
12642         * tree-ssa-loop-im.c (for_all_locs_in_loop): Same.
12643         (rewrite_mem_refs): Same.
12644         (execute_sm_if_changed): Same.
12645         (hoist_memory_references): Same.
12646         * tree-ssa-loop-ivopts.c (operator<=): Same.
12647         * tree-ssa-loop.h: Same.
12648         * tree-ssa-pre.c (get_or_alloc_expr_for_name): Same.
12649         * tree-ssa-structalias.c: Same.
12650         * tree-switch-conversion.h (cluster::cluster): Same.
12651         (simple_cluster::simple_cluster): Same.
12652         * tree-vect-patterns.c (type_conversion_p): Same.
12653         * tree-vectorizer.c (dump_stmt_cost): Same.
12654         * tree-vectorizer.h (loop_vec_info_for_loop): Same.
12655         * tree.c (protected_set_expr_location): Same.
12656         * tree.h (desired_pro_or_demotion_p): Same.
12657         (fndecl_built_in_p): Same.
12658         * unique-ptr-tests.cc: Same.
12659         * var-tracking.c (delete_variable_part): Same.
12660         * varasm.c (assemble_real): Same.
12661         (tree_output_constant_def): Same.
12662         * vec.c: Same.
12663         * wide-int-bitmask.h: Same.
12664         * wide-int.h (decompose): Same.
12666 2019-07-09  Richard Biener  <rguenther@suse.de>
12668         PR tree-optimization/91114
12669         * tree-vect-data-refs.c (vect_analyze_data_refs): Failure to
12670         find a vector type isn't fatal.
12672 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
12674         * config/aarch64/aarch64-simd.md
12675         (aarch64_crypto_aes<aes_op>v16qi): Redefine pattern with xor.
12676         (aarch64_crypto_aes<aesmc_op>v16qi): Remove attribute enabled.
12677         (*aarch64_crypto_aes<aes_op>v16qi_xor_combine): Remove both.
12678         (*aarch64_crypto_aese_fused,
12679         *aarch64_crypto_aesd_fused): Update to new definition.
12680         * config/aarch64/aarch64.c
12681         (aarch_macro_fusion_pair_p): Remove aese/aesmc fusion check.
12683 2019-07-09  Richard Biener  <rguenther@suse.de>
12685         * gimple-match.h (gimple_match_op::resimplify): New.
12686         (gimple_resimplify1, gimple_resimplify2, gimple_resimplify3,
12687         gimple_resimplify4, gimple_resimplify5): Remove.
12688         * gimple-match-head.c (gimple_resimplify1, gimple_resimplify2,
12689         gimple_resimplify3, gimple_resimplify4, gimple_resimplify5):
12690         Make static.
12691         (gimple_match_op::resimplify): New.
12692         * tree-ssa-sccvn.c (vn_nary_build_or_lookup_1): Valueize
12693         according to availability.  Use gimple_match_op::resimplify.
12695 2019-07-09  Eric Botcazou  <ebotcazou@adacore.com>
12697         * ira-emit.c (emit_moves): Skip DEBUG_INSNs when setting the location.
12699 2019-07-09  Sylvia Taylor  <sylvia.taylor@arm.com>
12701         * config/arm/crypto.md:
12702         (crypto_<crypto_pattern>): Redefine aese/aesd pattern with xor.
12703         (crypto_<crypto_pattern>): Remove attribute enabled for aesmc.
12704         (crypto_<crypto_pattern>): Split CRYPTO_BINARY into 2 patterns.
12705         (*aarch32_crypto_aese_fused, *aarch32_crypto_aesd_fused): New.
12706         * config/arm/arm.c
12707         (aarch_macro_fusion_pair_p): Remove aes/aesmc fusion check.
12708         * config/arm/aarch-common-protos.h
12709         (aarch_crypto_can_dual_issue): Remove.
12710         * config/arm/aarch-common.c
12711         (aarch_crypto_can_dual_issue): Likewise.
12712         * config/arm/exynos-m1.md: Remove aese/aesmc fusion.
12713         * config/arm/cortex-a53.md: Likewise.
12714         * config/arm/cortex-a57.md: Likewise.
12715         * config/arm/iterators.md:
12716         (CRYPTO_BINARY): Redefine.
12717         (CRYPTO_UNARY): Removed.
12718         (CRYPTO_AES, CRYPTO_AESMC): New.
12720 2019-07-09  Richard Biener  <rguenther@suse.de>
12722         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add orig_ref member.
12723         (vn_reference_lookup_3): If the main ref has no access path recorded
12724         but orig_ref has use it to do access-path based disambiguation.
12725         (vn_reference_lookup_pieces): Adjust.
12726         (vn_reference_lookup): Pass down original ref if we valueized.
12728 2019-07-09  Martin Liska  <mliska@suse.cz>
12730         * doc/extend.texi: Document influence on loop
12731         optimizers.
12733 2019-07-09  Martin Liska  <mliska@suse.cz>
12735         * lto-compress.c (lto_normalized_zstd_level): Do not use
12736         ZSTD_CLEVEL_DEFAULT as it is not default in old releases
12737         of libzstd.  One can use 0 as a default compression level.
12739 2019-07-09  Martin Liska  <mliska@suse.cz>
12741         * doc/invoke.texi: Add link from -fprofile-dir option.
12742         Use better wording for 'gcno filename'.
12744 2019-07-08  Martin Sebor  <msebor@redhat.com>
12746         PR middle-end/71924
12747         PR middle-end/90549
12748         * gimple-ssa-isolate-paths.c (isolate_path): Add attribute.  Update
12749         comment.
12750         (args_loc_t): New type.
12751         (args_loc_t, locmap_t): same.
12752         (diag_returned_locals): New function.
12753         (is_addr_local): Same.
12754         (handle_return_addr_local_phi_arg, warn_return_addr_local): Same.
12755         (find_implicit_erroneous_behavior): Call warn_return_addr_local_phi_arg.
12756         (find_explicit_erroneous_behavior): Call warn_return_addr_local.
12758 2019-07-08  Jakub Jelinek  <jakub@redhat.com>
12760         * tree-vect-stmts.c (scan_operand_equal_p): Look through MEM_REF
12761         with SSA_NAME address of POINTER_PLUS_EXPR.  Handle MULT_EXPR
12762         and casts in offset when different, both through gimple stmts
12763         and through trees.  Rewritten using loops to minimize code duplication
12764         for each operand.
12766 2019-07-08  Eric Botcazou  <ebotcazou@adacore.com>
12768         * emit-rtl.c (set_insn_locations): New function moved from...
12769         * function.c (set_insn_locations): ...here.
12770         * ira-emit.c (emit_moves): Propagate location of the first instruction
12771         to the inserted move instructions.
12772         * reg-stack.c (compensate_edge): Set the location if the sequence is
12773         inserted on the edge.
12774         * rtl.h (set_insn_locations): Declare.
12776 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
12778         * config/rs6000/rs6000.c (rs6000_machine_from_flags): Ignore
12779         OPTION_MASK_PPC_GFXOPT and OPTION_MASK_PPC_GPOPT for selecting the
12780         .machine string.
12782 2019-07-08  Segher Boessenkool  <segher@kernel.crashing.org>
12784         PR rtl-optimization/88233
12785         * common.opt (fsplit-wide-types-early): New option.
12786         * common/config/rs6000/rs6000-common.c
12787         (rs6000_option_optimization_table): Add OPT_fsplit_wide_types_early for
12788         OPT_LEVELS_ALL.
12789         * doc/invoke.texi (Optimization Options): Add -fsplit-wide-types-early.
12790         * lower-subreg.c (pass_lower_subreg2::gate): Add test for
12791         flag_split_wide_types_early.
12792         (pass_data_lower_subreg3): New.
12793         (pass_lower_subreg3): New.
12794         (make_pass_lower_subreg3): New.
12795         * passes.def (pass_lower_subreg2): Move after the loop passes.
12796         (pass_lower_subreg3): New, inserted where pass_lower_subreg2 was.
12797         * tree-pass.h (make_pass_lower_subreg2): Move up, to its new place in
12798         the pass pipeline; its previous place is taken by ...
12799         (make_pass_lower_subreg3): ... this.
12801 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
12803         * config/s390/s390.c (s390_shift_truncation_mask): Define.
12804         (TARGET_SHIFT_TRUNCATION_MASK): Define.
12806 2019-07-08  Robin Dapp  <rdapp@linux.ibm.com>
12808         * config/s390/constraints.md: Add new jsc constraint.
12809         * config/s390/predicates.md: New predicates.
12810         * config/s390/s390-protos.h (s390_valid_shift_count): New function.
12811         * config/s390/s390.c (s390_valid_shift_count): New function.
12812         (print_shift_count_operand): Use s390_valid_shift_count.
12813         (print_operand): Likewise.
12814         * config/s390/s390.md: Use new predicate.
12815         * config/s390/subst.md: Remove addr_style_op and masked_op substs.
12816         * config/s390/vector.md: Use new predicate.
12818 2019-07-08  Andrew Waterman  <andrew@sifive.com>
12819             Jim Wilson  <jimw@sifive.com>
12821         * config/riscv/riscv.md (lshrsi3_zero_extend_3+1): Use operands[1]
12822         bitsize instead of BITS_PER_WORD.
12824 2019-07-08  Martin Liska  <mliska@suse.cz>
12826         * collect2.c (defined): Revert to before r254460.
12827         (scan_prog_file): Revert to before r254460.
12829 2019-07-08  Richard Biener  <rguenther@suse.de>
12831         PR tree-optimization/83518
12832         * tree-ssa-sccvn.c: Include splay-tree.h.
12833         (struct pd_range, struct pd_data): New.
12834         (struct vn_walk_cb_data): Add data to track partial definitions.
12835         (vn_walk_cb_data::~vn_walk_cb_data): New.
12836         (vn_walk_cb_data::push_partial_def): New.
12837         (pd_tree_alloc, pd_tree_dealloc, pd_range_compare): New.
12838         (vn_reference_lookup_2): When partial defs are registered give up.
12839         (vn_reference_lookup_3): Track partial defs for memset and
12840         constructor zeroing and for defs from constants.
12842 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
12844         * doc/install.texi (bootstrap-Og): Document.
12846 2019-07-08  Richard Sandiford  <richard.sandiford@arm.com>
12848         * config/riscv/pic.md (*local_pic_load_s<mode>)
12849         (*local_pic_load_u<mode>): Explicitly specify the mode iterator
12850         referenced by <mode>, giving...
12851         (*local_pic_load_s<SUBX:mode>, *local_pic_load_u<SUBX:mode>): ...these.
12852         * config/riscv/riscv.md (*sge<u>_<X:mode><GPR:mode>)
12853         (*slt<u>_<X:mode><GPR:mode>, *sle<u>_<X:mode><GPR:mode>): Explicitly
12854         use <X:MODE> for the mode attribute.
12856 2019-07-07  Jeff Law  <law@redhat.com>
12858         PR tree-optimization/91090
12859         * tree-ssa-dom.c (simplify_stmt_for_jump_threading): Fix logic error
12860         in handling of ranges to simplify switch statements.
12862 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
12864         * config/darwin.c (darwin_override_options): Make a final check on PIC
12865         options.
12867 2019-07-07  Iain Sandoe  <iain@sandoe.co.uk>
12869         * config/darwin.c (darwin_override_options): Don't jam symbol stubs
12870         on for kernel code.
12872 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
12874         PR target/91068
12875         * config/mips/mips.md (*mul_acc_si, *mul_acc_si_r3900, *macc)
12876         (*msac, *msac_using_macc, *mul_sub_si): Use "l" for input operands
12877         instead of matching them to "l" output operands.
12879 2019-07-07  Richard Sandiford  <richard.sandiford@arm.com>
12881         * config/mips/mips.c (mips_split_move): Zero-initialize addr
12882         and check whether addr.reg is nonnull before using it.
12884 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
12886         * omp-low.c (lower_rec_input_clauses): For lastprivate clauses in
12887         ctx->for_simd_scan_phase simd copy the outer var to the privatized
12888         variable(s).  For conditional lastprivate look through outer
12889         GIMPLE_OMP_SCAN context.
12890         (lower_omp_1): For conditional lastprivate look through outer
12891         GIMPLE_OMP_SCAN context.
12893         * omp-low.c (struct omp_context): Rename combined_into_simd_safelen0
12894         member to combined_into_simd_safelen1.
12895         (lower_rec_input_clauses, lower_omp_1): Adjust uses.
12896         (lower_lastprivate_clauses): Likewise.  For conditional lastprivate
12897         clauses if ctx->combined_into_simd_safelen1 put statements after the
12898         predicate conditionalized block rather than into it.
12900 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12902         * config/s390/s390.md (*negabs<FP:mode>2_nocc): Use FP for
12903         operand 1.
12904         * config/s390/vx-builtins.md (*vec_cmp<insn_cmp><mode>_cconly):
12905         Make the choice of <mode> explicit, giving...
12906         (*vec_cmp<insn_cmp><VF_HW:mode>_cconly): ...this.
12908 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12910         * config/i386/i386.md (*fop_<X87MODEF:mode>_3_i387)
12911         (l<rounding_insn><MODEF:mode><SWI48:mode>2): Fix ambiguous uses
12912         of .md attributes.
12913         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask)
12914         (*avx512pf_gatherpf<mode>df_mask, *avx512pf_scatterpf<mode>sf_mask)
12915         (*avx512pf_scatterpf<mode>df_mask, *avx2_gathersi<mode>)
12916         (*avx2_gathersi<mode>_2, *avx2_gatherdi<mode>)
12917         (*avx2_gatherdi<mode>_2, *avx2_gatherdi<mode>_3): Likewise.
12918         (*avx2_gatherdi<mode>_4, *avx512f_gathersi<mode>): Likewise.
12919         (*avx512f_gathersi<mode>_2, *avx512f_gatherdi<mode>): Likewise.
12920         (*avx512f_gatherdi<mode>_2, *avx512f_scattersi<mode>): Likewise.
12921         (*avx512f_scatterdi<mode>): Likewise.
12922         (*andnot<mode>3_bcst): Fix VI/VI48_AVX512VL typo.
12924 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12926         * config/h8300/h8300.md (*push1_h8300hs_<mode>): Explicitly
12927         specify the mode iterator referenced by <mode>, giving...
12928         (*push1_h8300hs_<QHI:mode>): ...this.
12930 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12932         * config/gcn/gcn-valu.md
12933         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>): Use
12934         gen_vec_cmp<VEC_1REG_ALT:mode>di rather than (implicitly)
12935         gen_vec_cmp<VEC_1REG_MODE:mode>di.  Explicitly use
12936         gen_vcond_mask_<VEC_1REG_MODE:mode>di.
12937         (vcond<VEC_1REG_MODE:mode><VEC_1REG_ALT:mode>_exec): Likewise,
12938         but using the _exec comparison patterns.
12939         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>): Use
12940         gen_vec_cmp<VEC_1REG_INT_ALT:mode>di rather than (implicitly)
12941         gen_vec_cmp<VEC_1REG_INT_MODE:mode>di.  Explicitly use
12942         gen_vcond_mask_<VEC_1REG_INT_MODE:mode>di.
12943         (vcondu<VEC_1REG_INT_MODE:mode><VEC_1REG_INT_ALT:mode>_exec): Likewise,
12944         but using the _exec comparison patterns.
12946 2019-07-06  Richard Sandiford  <richard.sandiford@arm.com>
12948         * config/arm/sync.md
12949         (@atomic_compare_and_swap<CCSI:arch><NARROW:mode>_1): Use
12950         <NARROW:sync_predtab> instead of (implicitly) <CCSI:sync_predtab>.
12951         (@atomic_compare_and_swap<CCSI:arch><SIDI:mode>_1): Likewise use
12952         <SIDI:sync_predtab>.  Use <SIDI:cas_cmp_operand> and
12953         <SIDI:cas_cmp_str>.
12955 2019-07-06  Jakub Jelinek  <jakub@redhat.com>
12957         * omp-low.c (struct omp_context): Add for_simd_scan_phase member.
12958         (maybe_lookup_ctx): Add forward declaration.
12959         (omp_find_scan): Likewise.  Walk into body of simd if composited
12960         with worksharing loop.
12961         (scan_omp_simd_scan): New function.
12962         (scan_omp_1_stmt): Call it.
12963         (lower_rec_simd_input_clauses): Don't create rvar nor rvar2 if
12964         ctx->for_simd_scan_phase.
12965         (lower_rec_input_clauses): Do much less work for inscan reductions
12966         in ctx->for_simd_scan_phase is_simd regions.
12967         (lower_omp_scan): Set is_simd also on simd constructs composited
12968         with worksharing loop, unless ctx->for_simd_scan_phase.  Never emit
12969         a sorry message.  Don't change GIMPLE_OMP_SCAN stmts into nops and
12970         emit their body after in simd constructs composited with worksharing
12971         loop.
12972         (lower_omp_for_scan): Handle worksharing loop composited with simd.
12974         * omp-low.c (omp_find_scan): Make static.
12975         (lower_omp_for_scan): Fix order of merge arguments in input phase of
12976         the second loop, var2 represents the first partial sum and so needs
12977         to go before rprivb[ivar].
12979 2019-07-05  Iain Sandoe  <iain@sandoe.co.uk>
12981         * config/rs6000/rs6000-logue.c: Remove unused code.
12983 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
12985         * tree-ssa-loop-manip.c (create_iv): Add missing guard for gsi_end_p.
12987 2019-07-05  Sam Tebbs  <sam.tebbs@arm.com>
12989         PR target/90712
12990         * config/aarch64/aarch64.c (aarch64_post_cfi_startproc): Replace thunk
12991         check with a frame laid out check.
12993 2019-07-05  Richard Biener  <rguenther@suse.de>
12995         * tree-ssa-sccvn.c (vn_reference_lookup_3): Valueize RHS
12996         when comparing against a store with possibly the same value.
12998 2019-07-05  Richard Biener  <rguenther@suse.de>
13000         PR tree-optimization/91091
13001         * tree-ssa-alias.h (get_continuation_for_phi): Add tbaa_p parameter.
13002         (walk_non_aliased_vuses): Likewise.
13003         * tree-ssa-alias.c (maybe_skip_until): Pass down tbaa_p.
13004         (get_continuation_for_phi): New tbaa_p parameter and pass
13005         it down.
13006         (walk_non_aliased_vuses): Likewise.
13007         * ipa-prop.c (determine_known_aggregate_parts): Adjust.
13008         * tree-ssa-pre.c (translate_vuse_through_block): Likewise.
13009         * tree-ssa-scopedtables.c (avail_exprs_stack::lookup_avail_expr):
13010         Likewise.
13011         * tree-ssa-sccvn.c (struct vn_walk_cb_data): Add tbaa_p flag.
13012         (adjust_offsets_for_equal_base_address): New function.
13013         (vn_reference_lookup_3): Use it to catch more base equivalences.
13014         Handle and pass down tbaa_p flag.
13015         (vn_reference_lookup_pieces): Adjust.
13016         (vn_reference_lookup): Remove alias-set altering, instead pass
13017         down false as tbaa_p.
13019 2019-07-05  Richard Biener  <rguenther@suse.de>
13021         PR tree-optimization/91091
13022         * tree-ssa-sccvn.c (vn_reference_lookup_3): Overlap of
13023         accesses can happen with -fno-strict-aliasing.
13025 2019-07-05  Jan Hubicka  <hubicka@ucw.cz>
13027         * tree-ssa-alias.c (alias_stats): Add
13028         nonoverlapping_component_refs_since_match_p_must_overlap.
13029         (dump_alias_stats): Print it.
13030         (nonoverlapping_component_refs_since_match_p): Add early exit.
13031         (nonoverlapping_component_refs_p): Do not account early exit.
13033 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
13035         * except.c (emit_to_new_bb_before): Make sure to put a location on SEQ.
13036         * tree-eh.c (replace_goto_queue_1) <GIMPLE_GOTO>: Propagate location.
13037         (emit_eh_dispatch): Delete.
13038         (lower_catch): Emit the eh_dispatch manually and set the location of
13039         the first catch statement onto it.
13040         (lower_eh_filter): Emit the eh_dispatch manually and set location.
13041         (lower_eh_dispatch): Propagate location.
13042         * tree-outof-ssa.c (set_location_for_edge): Handle EH edges specially.
13043         (eliminate_build): Likewise.
13045 2019-07-05  Eric Botcazou  <ebotcazou@adacore.com>
13047         * tree-cfg.c (gimple_make_forwarder_block): Propagate location info on
13048         phi nodes if possible.
13049         * tree-scalar-evolution.c (final_value_replacement_loop): Propagate
13050         location info on the newly created statement.
13051         * tree-ssa-loop-manip.c (create_iv): Propagate location info on the
13052         newly created increment if needed.
13054 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
13056         PR middle-end/78884
13057         * gimplify.c (struct gimplify_omp_ctx): Add add_safelen1 member.
13058         (gimplify_bind_expr): If seeing TREE_ADDRESSABLE VLA inside of simd
13059         loop body, set ctx->add_safelen1 instead of making it GOVD_PRIVATE.
13060         (gimplify_adjust_omp_clauses): Add safelen (1) clause if
13061         ctx->add_safelen1 is set.
13063         * omp-expand.c (expand_omp_for_static_nochunk): Don't emit
13064         GOMP_loop_start at the start of second worksharing loop in a scan.
13065         For nowait, don't emit GOMP_loop_end_nowait at the end of first
13066         worksharing loop in a scan even if there are conditional lastprivates,
13067         and do emit GOMP_loop_end_nowait at the end of second worksharing loop.
13069 2019-07-04  Jan Hubicka  <jh@suse.cz>
13071         * tree-ssa-alias.c (nonoverlapping_component_refs_since_match_p):
13072         Fix check for match in the ref walk.
13074 2019-07-04  Martin Liska  <mliska@suse.cz>
13076         * tree-ssa-loop-niter.c
13077         (get_upper_bound_based_on_builtin_expr_with_prob): New function.
13078         (estimate_numbers_of_iterations):
13079         Support __builtin_expect_with_probability for analysis
13080         of # of loop iterations.
13082 2019-07-04  Alexandre Oliva  <oliva@adacore.com>
13084         * doc/generic.texi (Cleanups): Document EH_ELSE_EXPR.
13085         * except.c: Likewise.
13086         * expr.c (expand_expr_real_1): Reject it.
13087         * gimplify.c (gimplify_expr): Gimplify it, within
13088         TRY_FINALLY_EXPR.
13089         * tree-dump.c (dequeue_and_dump): Dump it.
13090         * tree-pretty-print.c (dump_generic_node): Likewise.
13091         * tree.c (block_may_fallthru): Handle it.
13092         * tree.def (EH_ELSE_EXPR): Introduce it.
13093         * gimple-pretty-print.c (dump_gimple_try): Dump TRY_FINALLY
13094         with GIMPLE_EH_ELSE as try/finally/else.
13096 2019-07-04  Richard Biener  <rguenther@suse.de>
13098         PR ipa/91062
13099         * tree-pass.h (execute_all_ipa_transforms): Add a flag
13100         parameter whether to disable GC collection.
13101         * passes.c (execute_one_ipa_transform_pass): Likewise, and
13102         honor it.
13103         (execute_all_ipa_transforms): Likewise and pass it down.
13104         * cgraph.c (cgraph_node::get_body): Do not invoke garbage
13105         collection from applying IPA transforms.
13106         * cgraphunit.c (cgraph_node::expand): Allow garbage collection
13107         from applying IPA transforms.
13109 2019-07-04  Richard Biener  <rguenther@suse.de>
13111         PR tree-optimization/90911
13112         * tree-vectorizer.h (_loop_vec_info::scalar_loop_scaling): New field.
13113         (LOOP_VINFO_SCALAR_LOOP_SCALING): new.
13114         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
13115         scalar_loop_scaling.
13116         (vect_transform_loop): Scale scalar loop profile if needed.
13117         * tree-vect-loop-manip.c (vect_loop_versioning): When re-using
13118         the loop copy from if-conversion adjust edge probabilities
13119         and scale the vectorized loop body profile, queue the scalar
13120         profile for updating after peeling.
13122 2019-07-04  Jan Hubicka  <jh@suse.cz>
13124         * tree-ssa-alias.c (decl_refs_may_alias_p): Add size1 and size2
13125         parameters; return early for must-alias.
13126         (indirect_ref_may_alias_decl_p): Likewise; when establishing
13127         outer types match, try nonoverlapping_component_refs
13128         if must-alias is not obvious.
13129         (indirect_refs_may_alias_p): Likewise.
13130         (refs_may_alias_p_2): Likewise.
13132 2019-07-04  Richard Biener  <rguenther@suse.de>
13134         * tree-ssa-sccvn.h (vn_reference_lookup): Add last_vuse_ptr
13135         argument.
13136         * tree-ssa-sccvn.c (last_vuse_ptr, vn_walk_kind): Move
13137         globals into...
13138         (struct vn_walk_cb_data): New callback data struct.
13139         (vn_reference_lookup_2): Adjust.
13140         (vn_reference_lookup_3): Likewise.
13141         (vn_reference_lookup_pieces): Likewise.
13142         (vn_reference_lookup): Likewise, get last_vuse_ptr argument.
13143         (visit_reference_op_load): Adjust.
13145 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
13147         PR tree-optimization/91063
13148         * tree-vect-stmts.c (vect_init_vector): Call gsi_remove to remove
13149         stmt from stmts sequence before calling vect_init_vector_1.
13150         Formatting fix.
13152 2019-07-04  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
13154         PR target/88833
13155         * fwprop.c (reg_single_def_p): New function.
13156         (propagate_rtx_1): Add unconditional else inside RTX_EXTRA case.
13157         (forward_propagate_into): New parameter reg_prop_only
13158         with default value false.
13159         Propagate def's src into loop only if SET_SRC and SET_DEST
13160         of def_set have single definitions.
13161         Likewise if reg_prop_only is set to true.
13162         (fwprop): New param fwprop_addr_p.
13163         Integrate fwprop_addr into fwprop.
13164         (fwprop_addr): Remove.
13165         (pass_rtl_fwprop_addr::execute): Call fwprop with arg set
13166         to true.
13167         (pass_rtl_fwprop::execute): Call fwprop with arg set to false.
13168         * simplify-rtx.c (simplify_subreg): Add case for vector comparison.
13169         * config/i386/sse.md (UNSPEC_BLENDV): Adjust pattern.
13171 2019-07-04  Jakub Jelinek  <jakub@redhat.com>
13173         * omp-low.c (lower_omp_scan): Call lower_omp on stmt's body
13174         in worksharing loop scans.
13176         PR tree-optimization/91074
13177         * omp-low.c (lower_omp_for_scan): Set DECL_GIMPLE_REG_P on cplx
13178         temporary.
13180         PR rtl-optimization/90756
13181         * explow.c (promote_ssa_mode): Always use TYPE_MODE, don't bypass it
13182         for VECTOR_TYPE_P.
13184 2019-07-03  Dennis Zhang  <dennis.zhang@arm.com>
13186         * config/aarch64/aarch64.md: Remove redundant constraints from
13187         define_expand but keep some patterns untouched if they are
13188         specially selected by TARGET_SECONDARY_RELOAD hook.
13189         * config/aarch64/aarch64-sve.md: Likewise.
13190         * config/aarch64/atomics.md: Remove redundant constraints from
13191         define_expand.
13192         * config/aarch64/aarch64-simd.md: Likewise.
13194 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
13196         * config/darwin.h (DRIVER_SELF_SPECS): Remove the linker cases.
13197         (RDYNAMIC): Rename to, DARWIN_RDYNAMIC.
13198         (DARWIN_PIE_SPEC, DARWIN_NOPIE_SPEC): Adjust to remove the Xlinker
13199         clauses.
13200         (LINK_COMMAND_SPEC_A): Add DARWIN_RDYNAMIC, DARWIN_PIE_SPEC and
13201         DARWIN_NOPIE_SPEC.
13203 2019-07-03  Iain Sandoe  <iain@sandoe.co.uk>
13205         * config/darwin.h (REAL_LIBGCC_SPEC): Adjust for earlier Darwin.
13206         (STARTFILE_SPEC): Split crt3 into a separate spec.
13207         (DARWIN_EXTRA_SPECS): Add crt2 and crt3 spec.
13208         (DARWIN_CRT2_SPEC): New.
13209         (DARWIN_CRT3_SPEC): New.
13210         (MIN_LD64_OMIT_STUBS): Revise to 62.1.
13211         * config/rs6000/darwin.h (DARWIN_CRT2_SPEC): Revise conditions.
13212         (DARWIN_CRT3_SPEC): New.
13214 2019-07-03  Michael Meissner  <meissner@linux.ibm.com>
13216         * config/rs6000/altivec.md (altivec_mov<mode>, VM2 iterator):
13217         Change the RTL attribute "length" from "4" to "*" to allow the
13218         length attribute to be adjusted automatically for prefixed load,
13219         store, and add immediate instructions.
13220         * config/rs6000/rs6000.md (extendhi<mode>2, EXTHI iterator):
13221         Likewise.
13222         (extendsi<mode>2, EXTSI iterator): Likewise.
13223         (movsi_internal1): Likewise.
13224         (movsi_from_sf): Likewise.
13225         (movdi_from_sf_zero_ext): Likewise.
13226         (mov<mode>_internal): Likewise.
13227         (movcc_internal1, QHI iterator): Likewise.
13228         (mov<mode>_softfloat, FMOVE32 iterator): Likewise.
13229         (movsf_from_si): Likewise.
13230         (mov<mode>_hardfloat32, FMOVE64 iterator): Likewise.
13231         (mov<mode>_softfloat64, FMOVE64 iterator): Likewise.
13232         (mov<mode>, FMOVE128 iterator): Likewise.
13233         (movdi_internal64): Likewise.
13234         * config/rs6000/vsx.md (vsx_le_permute_<mode>, VSX_TI iterator):
13235         Likewise.
13236         (vsx_le_undo_permute_<mode>, VSX_TI iterator): Likewise.
13237         (vsx_mov<mode>_64bit, VSX_M iterator): Likewise.
13238         (vsx_mov<mode>_32bit, VSX_M iterator): Likewise.
13239         (vsx_splat_v4sf): Likewise.
13241 2019-07-03  Mark Wielaard  <mark@klomp.org>
13243         PR debug/90981
13244         * dwarf2out.c (add_top_level_skeleton_die_attrs): Only add
13245         DW_AT_addr_base if there is actually a .debug_addr section with
13246         addresses.
13247         (output_addr_table): Add DWARF5 table header generation here after
13248         checking there are actually any addresses from...
13249         (dwarf2out_finish): ...here.
13251 2019-07-03  Richard Biener  <rguenther@suse.de>
13253         PR middle-end/91069
13254         * match.pd (vec_perm -> bit_insert): Fix element read from
13255         first vector.
13257 2019-07-03  Martin Liska  <mliska@suse.cz>
13259         * dbgcnt.def (DEBUG_COUNTER): Add match debug counter.
13260         * genmatch.c (dt_simplify::gen_1): Generate dbgcnt
13261         condition.
13262         * generic-match-head.c: Include dbgcnt.h.
13263         * gimple-match-head.c: Likewise.
13265 2019-07-03  Martin Liska  <mliska@suse.cz>
13267         * gcov-counter.def (GCOV_COUNTER_V_SINGLE): Remove.
13268         (GCOV_COUNTER_V_TOPN): New.
13269         (GCOV_COUNTER_V_INDIR): Use _topn.
13270         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): Remove.
13271         (GCOV_TOPN_VALUES): New.
13272         (GCOV_SINGLE_VALUE_COUNTERS): Remove.
13273         (GCOV_TOPN_VALUES_COUNTERS): New.
13274         * profile.c (instrument_values): Use HIST_TYPE_TOPN_VALUES.
13275         * tree-profile.c:
13276         (gimple_init_gcov_profiler): Rename variables from one_value
13277         to topn_values.
13278         (gimple_gen_one_value_profiler): Remove.
13279         (gimple_gen_topn_values_profiler): New function.
13280         * value-prof.c (dump_histogram_value): Use TOPN_VALUES
13281         names instead of SINGLE_VALUE.
13282         (stream_out_histogram_value): Likewise.
13283         (stream_in_histogram_value): Likewise.
13284         (get_most_common_single_value): Likewise.
13285         (gimple_divmod_fixed_value_transform): Likewise.
13286         (gimple_stringops_transform): Likewise.
13287         (gimple_divmod_values_to_profile): Likewise.
13288         (gimple_stringops_values_to_profile): Likewise.
13289         (gimple_find_values_to_profile): Likewise.
13290         * value-prof.h (enum hist_type): Rename to TOPN.
13291         (gimple_gen_one_value_profiler): Remove.
13292         (gimple_gen_topn_values_profiler): New.
13294 2019-07-03  Eric Botcazou  <ebotcazou@adacore.com>
13296         * dwarf2out.c (add_scalar_info): Add back refererence to existing DIE
13297         if it has the DW_AT_data_member_location attribute.
13299 2019-07-03  Richard Biener  <rguenther@suse.de>
13301         * gimple-pretty-print.c (dump_ternary_rhs): Fix BIT_INSERT_EXPR
13302         dumping.
13304 2019-07-03  Sylvia Taylor  <sylvia.taylor@arm.com>
13306         * config/aarch64/aarch64.md (FP_REGNUM): New constant.
13307         (tlsdesc_small_advsimd_<mode>): Add use of FP_REGNUM.
13308         (tlsdesc_small_sve_<mode>): Likewise.
13310 2019-07-03  Martin Liska  <mliska@suse.cz>
13312         * Makefile.in: Define ZSTD_LIB.
13313         * common.opt: Adjust compression level
13314         to support also zstd levels.
13315         * config.in: Regenerate.
13316         * configure: Likewise.
13317         * configure.ac: Add --with-zstd and --with-zstd-include options
13318         and detect ZSTD.
13319         * doc/install.texi: Mention zstd dependency.
13320         * gcc.c: Print supported LTO compression algorithms.
13321         * lto-compress.c (lto_normalized_zstd_level): Likewise.
13322         (lto_compression_zstd): Likewise.
13323         (lto_uncompression_zstd): Likewise.
13324         (lto_end_compression): Dispatch in between zlib and zstd.
13325         (lto_compression_zlib): Mark with ATTRIBUTE_UNUSED.
13326         (lto_uncompression_zlib): Make it static.
13327         * lto-compress.h (lto_end_uncompression): Fix GNU coding style.
13328         * lto-section-in.c (lto_get_section_data): Pass info
13329         about used compression.
13330         * lto-streamer-out.c: By default use zstd when possible.
13331         * timevar.def (TV_IPA_LTO_DECOMPRESS): Rename to decompression
13332         (TV_IPA_LTO_COMPRESS): Likewise for compression.
13334 2019-07-03  Martin Liska  <mliska@suse.cz>
13336         * lto-section-in.c (lto_get_section_data): Add "lto" section.
13337         * lto-section-out.c (lto_destroy_simple_output_block): Never
13338         compress LTO_section_lto section.
13339         * lto-streamer-out.c (produce_asm): Do not set major_version
13340         and minor_version.
13341         (lto_output_toplevel_asms): Likewise.
13342         (produce_lto_section): New function.
13343         (lto_output): Call produce_lto_section.
13344         (lto_write_mode_table): Do not set major_version and
13345         minor_version.
13346         (produce_asm_for_decls): Likewise.
13347         * lto-streamer.h (enum lto_section_type): Add LTO_section_lto
13348         type.
13349         (struct lto_header): Remove.
13350         (struct lto_section): New struct.
13351         (struct lto_simple_header): Do not inherit from lto_header.
13352         (struct lto_file_decl_data): Add lto_section_header field.
13354 2019-07-03  Martin Liska  <mliska@suse.cz>
13356         * lra-eliminations.c (eliminate_regs_in_insn): Remove
13357         dead assignemts.
13358         * reg-stack.c (check_asm_stack_operands): Likewise.
13359         * tree-ssa-structalias.c (create_function_info_for): Likewise.
13360         * tree-vect-generic.c (expand_vector_operations_1): Likewise.
13361         * config/i386/i386-expand.c (ix86_expand_sse2_mulvxdi3): Use
13362         force_expand_binop.
13364 2019-07-03  Martin Liska  <mliska@suse.cz>
13366         PR tree-optimization/90892
13367         * builtins.c (inline_expand_builtin_string_cmp): Handle '\0'
13368         in string constants.
13370 2019-07-03  Martin Liska  <mliska@suse.cz>
13372         PR middle-end/90899
13373         * multiple_target.c (create_dispatcher_calls): Add to comdat
13374         group only if set for ifunc.
13376 2019-07-03  Martin Liska  <mliska@suse.cz>
13378         PR target/88056
13379         * config/i386/host-mingw32.c (mingw32_gt_pch_use_address):
13380         Define local_object_name in outer scope in order to handle
13381         use-after-scope issue.
13383 2019-07-03  Martin Liska  <mliska@suse.cz>
13385         * common.opt: Add fprofile-note.
13386         * coverage.c (coverage_init): Append the option
13387         to bbg_file_name.
13388         * doc/invoke.texi: Document -fprofile-note.
13390 2019-07-03  Jakub Jelinek  <jakub@redhat.com>
13392         PR tree-optimization/91033
13393         * tree-vectorizer.h (vect_mark_stmts_to_be_vectorized,
13394         vect_analyze_data_refs): Add bool * arguments.
13395         * tree-vect-data-refs.c (vect_analyze_data_refs): Add fatal argument,
13396         if failure is due to scatter/gather, set *fatal to false if non-NULL.
13397         * tree-vect-stmts.c (vect_mark_stmts_to_be_vectorized): Likewise.
13398         * tree-vect-loop.c (vect_analyze_loop_2): Adjust
13399         vect_mark_stmts_to_be_vectorized and vect_analyze_data_refs callers.
13400         * tree-vect-slp.c (vect_slp_analyze_bb_1): Adjust
13401         vect_analyze_data_refs caller.
13403         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__SCANTEMP_
13404         clause.
13405         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__SCANTEMP_ instead of
13406         OMP_CLAUSE__CONDTEMP_ as range's upper bound.
13407         (OMP_CLAUSE__SCANTEMP__ALLOC, OMP_CLAUSE__SCANTEMP__CONTROL): Define.
13408         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
13409         OMP_CLAUSE__SCANTEMP_ entry.
13410         (walk_tree_1): Handle OMP_CLAUSE__SCANTEMP_.
13411         * tree-pretty-print.c (dump_omp_clause): Likewise.
13412         * tree-nested.c (convert_nonlocal_omp_clauses,
13413         convert_local_omp_clauses): Likewise.
13414         * omp-general.h (struct omp_for_data): Add have_scantemp and
13415         have_nonctrl_scantemp members.
13416         * omp-general.c (omp_extract_for_data): Initialize them.
13417         * omp-low.c (struct omp_context): Add scan_exclusive member.
13418         (scan_omp_1_stmt): Don't unnecessarily mask gimple_omp_for_kind
13419         result again with GF_OMP_FOR_KIND_MASK.  Initialize also
13420         ctx->scan_exclusive.
13421         (lower_rec_simd_input_clauses): Use ctx->scan_exclusive instead
13422         of !ctx->scan_inclusive.
13423         (lower_rec_input_clauses): Simplify gimplification of dtors using
13424         gimplify_and_add.  For non-is_simd test OMP_CLAUSE_REDUCTION_INSCAN
13425         rather than rvarp.  Handle OMP_CLAUSE_REDUCTION_INSCAN in worksharing
13426         loops.  Don't add barrier for reduction_omp_orig_ref if
13427         ctx->scan_??xclusive.
13428         (lower_reduction_clauses): Don't do anything for ctx->scan_??xclusive.
13429         (lower_omp_scan): Use ctx->scan_exclusive instead
13430         of !ctx->scan_inclusive.  Handle worksharing loops with inscan
13431         reductions.  Use new_vard != new_var instead of repeated
13432         omp_is_reference calls.
13433         (omp_find_scan, lower_omp_for_scan): New functions.
13434         (lower_omp_for): Call lower_omp_for_scan for worksharing loops with
13435         inscan reductions.
13436         * omp-expand.c (expand_omp_scantemp_alloc): New function.
13437         (expand_omp_for_static_nochunk): Handle fd->have_nonctrl_scantemp
13438         and fd->have_scantemp.
13440         * gimplify.c (gimplify_scan_omp_clauses): For inscan reductions
13441         on worksharing loop propagate it as shared clause to containing
13442         combined parallel.
13444         * omp-expand.c (expand_omp_for_static_nochunk,
13445         expand_omp_for_static_chunk): For nowait worksharing loop with
13446         conditional lastprivate clause(s), emit GOMP_loop_end_nowait call
13447         at the end.
13449 2019-07-02  qing zhao  <qing.zhao@oracle.com>
13451         PR preprocessor/90581
13452         * doc/cppopts.texi: Add document for -fmax-include-depth.
13453         * doc/invoke.texi (Preprocessor Options): List -fmax-include-depth.
13455 2019-07-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13457         * config/i386/mmx.md (mmx_pack<s_trunsuffix>swb):
13458         Use TARGET_SSE2 && SSE_REGNO_P in split condition.
13459         (mmx_packssdw): Ditto.
13460         (mmx_punpckhbw): Ditto.
13461         (mmx_punpcklbw): Ditto.
13462         (mmx_punpckhwd): Ditto.
13463         (mmx_punpcklwd): Ditto.
13464         (mmx_punpckhdq): Ditto.
13465         (mmx_punpckldq): Ditto.
13466         (*vec_dupv4hi): Ditto.
13467         (*vec_dupv2si): Ditto.
13468         (mmx_pmovmskb): Ditto.
13469         * config/i386/sse.md (sse_cvtpi2ps): Use
13470         TARGET_SSE2 && SSE_REG_P in split condition.
13471         (ssse3_ph<plusminus_mnemonic>wv4hi3): Use
13472         TARGET_SSSE3 && SSE_REGNO_P in split condition.
13473         (ssse3_ph<plusminus_mnemonic>dv2si3): Ditto.
13474         (ssse3_pshufbv8qi3): Ditto.
13475         (ssse3_palignrdi): Ditto.
13477 2019-07-02  Andrew Stubbs  <ams@codesourcery.com>
13479         * config/gcn/gcn.md (movdi_symbol_save_scc): Convert to define_insn
13480         with inlined save and restore.
13482 2019-07-02  Eric Botcazou  <ebotcazou@adacore.com>
13484         * cfgexpand.c (pass_expand::execute): Deal specially with instructions
13485         to be inserted on single successor edge of the entry block.  Then call
13486         commit_edge_insertions instead of inserting the instructions manually.
13487         * cfgrtl.c (commit_edge_insertions): Do not verify flow info during
13488         RTL expansion and rebuild jump labels chain.
13490 2019-07-02  Richard Biener  <rguenther@suse.de>
13492         * tree-core.h (enum tree_index): Add TI_CHREC_DONT_KNOW and
13493         TI_CHREC_KNOWN.
13494         * tree.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13495         Define here.
13496         * tree.c (build_common_tree_nodes): Initialize them.
13497         * tree-chrec.h (chrec_not_analyzed_yet, chrec_dont_know, chrec_known):
13498         Make declarations comments.
13499         * tree-scalar-evolution.c (chrec_not_analyzed_yet, chrec_dont_know,
13500         chrec_known): Remove definitions.
13501         (initialize_scalar_evolutions_analyzer): Remove.
13502         (scev_initialize): Do not call initialize_scalar_evolutions_analyzer.
13503         * tree-streamer.c (preload_common_nodes): Do not preload
13504         TI_CHREC_DONT_KNOW or TI_CHREC_KNOWN.
13506 2019-07-02  Jan Hubicka  <jh@suse.cz>
13508         * tree-ssa-alias.c (aliasing_component_refs_p): Remove forgotten
13509         sanity check.
13511 2019-07-02  Jan Hubicka  <jh@suse.cz>
13513         * tree-ssa-alias.c (nonoverlapping_component_refs_for_decl_p): Rename
13514         to ..
13515         (nonoverlapping_component_refs_since_match_p): ... this one;
13516         handle also non-decl bases; return -1 if search gave up.
13517         (alias_stats): Rename nonoverlapping_component_refs_of_decl_p_may_alias,
13518         nonoverlapping_component_refs_of_decl_p_no_alias to
13519         nonoverlapping_component_refs_since_match_p_may_alias,
13520         nonoverlapping_component_refs_since_match_p_no_alias.
13521         (dump_alias_stats): Update dumping.
13522         (aliasing_matching_component_refs_p): Break out from ...;
13523         dispatch to nonoverlapping_component_refs_for_decl_p
13524         and nonoverlapping_component_refs_since_match_p.
13525         (aliasing_component_refs_p): ... here; call
13526         nonoverlapping_component_refs_p in scenarios where we can not
13527         precisely determine base match.
13528         (decl_refs_may_alias_p): Use
13529         nonoverlapping_component_refs_since_match_p.
13530         (indirect_ref_may_alias_decl_p): Do not call
13531         nonoverlapping_component_refs_p.
13532         (indirect_refs_may_alias_p): Likewise.
13534 2019-07-02  Jan Hubicka  <jh@suse.cz>
13536         * tree-inline.c (remap_gimple_stmt): Do not subtitute handled components
13537         to clobber of return value.
13539 2019-07-02  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
13541         * config/arm/cortex-a57.md (cortex_a57_neon_type): Use neon_arith_basic
13542         for is_neon_type instructions that have not already been categorized.
13544 2019-07-02  Richard Biener  <rguenther@suse.de>
13546         PR tree-optimization/58483
13547         * tree-ssa-scopedtables.c (avail_expr_hash): Use OEP_ADDRESS_OF
13548         for MEM_REF base hashing.
13549         (equal_mem_array_ref_p): Likewise for base comparison.
13551 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13553         * config/rs6000/rs6000.md (signbit<mode>2_dm): Make this a
13554         parameterized name.
13555         (signbit<mode>2): Use that name.  Simplify.
13557 2019-07-01  Joern Rennecke  <joern.rennecke@riscy-ip.com>
13559         PR middle-end/66726
13560         * tree-ssa-phiopt.c (factor_out_conditional_conversion):
13561         Tune heuristic from PR71016 to allow MIN / MAX.
13563 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13565         * config/rs6000/rs6000.md (ieee_128bit_vsx_abs<mode>2): Make this a
13566         parameterized name.
13567         (abs<mode>2): Use that name.  Simplify.
13569 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13571         * config/rs6000/rs6000.md (ieee_128bit_vsx_neg<mode>2): Make this a
13572         parameterized name.
13573         (neg<mode>2): Use that name.  Simplify.
13575 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13577         * config/rs6000/rs6000.md (abs<mode>2_hw): Make this a parameterized
13578         name.
13579         (abs<mode>2): Use that name.  Simplify.
13581 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13583         * config/rs6000/rs6000.md (neg<mode>2_hw): Make this a parameterized
13584         name.
13585         (neg<mode>2): Use that name.  Simplify.
13587 2019-07-01  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13589         * config/i386/i386.md ("isa" attribute): Add sse_noavx.
13590         ("enabled" attribute): Handle sse_noavx isa attribute.
13591         * config/i386/mmx.md (*vec_dupv2sf): Add "isa" attribute.
13592         Use TARGET_SSE && SSE_REGNO_P in split condition.
13593         (*vec_dupv2sf): Ditto.
13595 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13597         * config/rs6000/rs6000.md (extenddf<mode>2): Make this a parameterized
13598         name.
13599         (floatsi<mode>2): Use that name.  Simplify.
13601 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13603         * config/rs6000/rs6000.md (extenddf<mode>2_fprs): Make this a
13604         parameterized name.
13605         (extenddf<mode>2_vsx): Make this a parameterized name.
13606         (extenddf<mode>2): Use those names.  Simplify.
13608 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13610         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Make this a parameterized
13611         name.
13612         (eh_return): Use that name.  Simplify.
13614 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13616         * config/rs6000/rs6000.md (ctr<mode>): Make this a parameterized name.
13617         (doloop_end): Use that name.  Simplify.
13619 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13621         * config/rs6000/rs6000.md (indirect_jump<mode>_nospec): Make this a
13622         parameterized name.
13623         (indirect_jump): Use that name.  Simplify.
13625 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13627         * config/rs6000/rs6000.md (abs<mode>2_internal): Make this a
13628         parameterized name.
13629         (abs<mode>2): Use that name.  Simplify.
13631 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13633         * config/rs6000/rs6000.md (fix_trunc<mode>si2_fprs): Make this a
13634         parameterized name.
13635         (fix_trunc<mode>si2): Use that name.  Simplify.
13637 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13639         * config/rs6000/rs6000.md (neg<mode>2): Make this a parameterized name.
13640         (allocate_stack): Use that name.  Simplify.
13642 2019-07-01  Martin Sebor  <msebor@redhat.com>
13644         PR middle-end/90923
13645         * hash-map.h (hash_map::put): On insertion invoke element ctor.
13646         (hash_map::get_or_insert): Same.  Reformat comment.
13647         * hash-set.h (hash_set::add): On insertion invoke element ctor.
13648         * hash-map-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13649         * hash-set-tests.c (test_map_of_type_with_ctor_and_dtor): New.
13650         * hash-table.h (hash_table::operator=): Prevent copy assignment.
13651          (hash_table::hash_table (const hash_table&)): Use copy ctor
13652          instead of assignment to copy elements.
13654 2019-07-01  Wilco Dijkstra  <wdijkstr@arm.com>
13655             John David Anglin  <danglin@gcc.gnu.org>
13657         PR target/90963
13658         * config/pa/pa.md (builtin_longjmp): Restore hard_frame_pointer_rtx
13659         using saved frame pointer.
13661 2019-07-01  Eric Botcazou  <ebotcazou@adacore.com>
13663         PR middle-end/64242
13664         * config/sparc/sparc.md (nonlocal_goto): Restore frame pointer last.
13665         Add frame clobber and schedule blockage.
13667 2019-07-01  Sandra Loosemore  <sandra@codesourcery.com>
13669         * doc/invoke.texi (Link Options): Further editorial changes to
13670         -flinker-output docs.
13672 2019-07-01  Segher Boessenkool  <segher@kernel.crashing.org>
13674         * config/rs6000/rs6000.c (rs6000_force_indexed_or_indirect_mem):
13675         Load both operands of a PLUS into registers separately.
13677 2019-07-01  Andreas Krebbel  <krebbel@linux.ibm.com>
13679         * config/s390/vector.md: Fix shift count operand printing.
13681 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13683         * ira-lives.c (process_bb_node_lives): Use ira_setup_alts.
13685 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13687         * ira.c (ira_get_dup_out_num): Don't punt for earlyclobbers.
13688         Use recog_data to test for an output operand.
13690 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13692         * ira.c (ira_setup_alts): If any valid alternatives have zero cost,
13693         exclude any others that are disparaged or that are bound to need
13694         a reload or spill.
13695         (ira_get_dup_out_num): Expand comment.
13697 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13699         * ira.c (ira_setup_alts): Use preprocess_constraints to get the
13700         constraint string for each operand/alternative combo.  Only handle
13701         '%' at the start of constraint strings, and look for it outside
13702         the main loop.
13704 2019-07-01  Richard Sandiford  <richard.sandiford@arm.com>
13706         * ira-int.h (ira_setup_alts, ira_get_dup_out_num): Use
13707         alternative_mask instead of HARD_REG_SET to represent a
13708         bitmask of alternatives.
13709         * ira.c (ira_setup_alts, ira_get_dup_out_num): Likewise.
13710         * ira-conflicts.c (add_insn_allocno_copies): Likewise.
13712 2019-07-01  Martin Liska  <mliska@suse.cz>
13714         * edit-context.c (test_applying_fixits_unreadable_file): Do not
13715         use () for a constructor call.
13716         (test_applying_fixits_line_out_of_range): Likewise.
13717         * ggc-page.c (alloc_page): Use (void *) for %p printf format
13718         argument.
13719         (free_page): Likewise.
13721 2019-07-01  Vladislav Ivanishin  <vlad@ispras.ru>
13723         * gdbhooks.py (GdbPrettyPrinters.add_printer_for_types): Reorder
13724         parameter names to match usage (no functional change).
13725         (GdbPrettyPrinters.add_printer_for_regex): Ditto.
13727 2019-07-01  Richard Biener  <rguenther@suse.de>
13729         * tree-ssa-sccvn.c (class pass_fre): Add may_iterate
13730         pass parameter.
13731         (pass_fre::execute): Honor it.
13732         * passes.def: Adjust pass_fre invocations to allow iterating,
13733         add non-iterating pass_fre before late threading/dom.
13735 2019-07-01  Richard Biener  <rguenther@suse.de>
13737         * tree-ssa-sccvn.c (copy_reference_ops_from_ref): Adjust
13738         TARGET_MEM_REF handling to also handle address-taken ones.
13740 2019-07-01  Hongtao Liu  <hongtao.liu@intel.com>
13742         * doc/sourcebuild.texi (Effective-Target Keywords, Other
13743         hardware attributes): Document avx512vp2intersect.
13745 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13747         * config/i386/sse.md (ssse3_abs<mode>2): Rename from abs<mode>2.
13748         (abs<mode>2): New expander.
13749         * config/i386/i386-builtin.def (__builtin_ia32_pabsb):
13750         Use CODE_FOR_ssse3_absv8qi2.
13751         (__builtin_ia32_pabsw): Use CODE_FOR_ssse3_absv4hi2.
13752         (__builtin_ia32_pabsd): Use CODE_FOR_ssse3_absv2si2.
13754 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13756         * config/i386/i386.md (mmx_isa): Rename x64, x64_noavx and x64_avx
13757         to sse, sse_noavx and avx.  Update all uses.
13759 2019-06-30  UroÅ¡ Bizjak  <ubizjak@gmail.com>
13761         * config/i386/mmx.md (sse_movntq): Add "isa" attribute.
13762         (*mmx_<plusminus_insn><mode>3): Ditto.
13763         (*mmx_mulv4hi3"): Ditto.
13764         (*mmx_smulv4hi3_highpart): Ditto.
13765         (*mmx_umulv4hi3_highpart): Ditto.
13766         (*mmx_pmaddwd): Ditto.
13767         (*sse2_umulv1siv1di3): Ditto.
13768         (*mmx_<code>v4hi3): Ditto.
13769         (*mmx_<code>v8qi3): Ditto.
13770         (mmx_ashr<mode>3): Ditto.
13771         ("mmx_<shift_insn><mode>3): Ditto.
13772         (*mmx_eq<mode>3): Ditto.
13773         (mmx_gt<mode>3): Ditto.
13774         (mmx_andnot<mode>3): Ditto.
13775         (*mmx_<code><mode>3): Ditto.
13776         (*mmx_pinsrw): Ditto.
13777         (*mmx_pextrw): Ditto.
13778         (mmx_pshufw_1): Ditto.
13779         (*mmx_uavgv8qi3): Ditto.
13780         (*mmx_uavgv4hi3): Ditto.
13781         ("mmx_psadbw): Ditto.
13782         * config/i386/sse.md (sse_cvtps2pi): Ditto.
13783         (sse_cvttps2pi): Ditto.
13784         (ssse3_pmaddubsw): Ditto.
13785         (*ssse3_pmulhrswv4hi3): Ditto.
13786         (ssse3_psign<mode>3): Ditto.
13788 2019-06-29  Eric Botcazou  <ebotcazou@adacore.com>
13790         * expr.c (expand_expr_real_1) <BIT_FIELD_REF>: Apply the big-endian
13791         adjustment for bit-fields to all aggregate types.
13793 2019-06-28   Michael Meissner  <meissner@linux.ibm.com>
13795         * config/rs6000/predicates.md (pcrel_address): Use
13796         SYMBOL_REF_LOCAL_P to determine if a label is local.
13797         (pcrel_external_address): New predicate.
13798         (non_prefixed_mem_operand): Delete, predicate not used.
13799         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL_P): Delete, we now use
13800         SYMBOL_REF_LOCAL_P to determine if we can use pc-relative
13801         addressing.
13802         (SYMBOL_REF_PCREL_P): Likewise.
13804         PR target/91009
13805         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Add non-VSX
13806         alternative.
13807         (floatsi<mode>2_lfiwax_mem): Add non-VSX alternative.
13808         (floatunssi<mode>2_lfiwzx): Add non-VSX alternative.
13809         (floatunssi<mode>2_lfiwzx_mem): Add non-VSX alternative.
13811 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
13813         * config.gcc (powerpc-*-darwin*, powerpc64-*-darwin*): Remove
13814         override on extra_headers.
13816 2019-06-28  Iain Sandoe  <iain@sandoe.co.uk>
13818         * config/darwin-c.c (pop_field_alignment): Quote #pragma options.
13819         * config/darwin-driver.c (darwin_default_min_version): Remove newline
13820         from warning.
13821         (darwin_driver_init): Likewise.
13823 2019-06-28  Jan Beulich  <jbeulich@suse.com>
13825         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13826         vgf2p8affineqb_<mode><mask_name>, vgf2p8mulb_<mode><mask_name>):
13827         Eliminate redundant alternative.
13829 2019-06-28  Jan Beulich  <jbeulich@suse.com>
13831         * config/i386/sse.md (vgf2p8affineinvqb_<mode><mask_name>,
13832         vgf2p8affineqb_<mode><mask_name>): Drop % constraint modifier.
13833         Use vector_operand.
13835 2019-06-28  Claudiu Zissulescu  <claziss@synopsys.com>
13837         * config/arc/arc.c (arc_rtx_costs): All short instructions are
13838         having a lower cost regardless of the speed option.
13840 2019-06-28  Jan Beulich  <jbeulich@suse.com>
13842         * config/i386/sse.md (sse2_cvtpd2pi, sse2_cvttpd2pi): Use
13843         vector_operand plus, on both alternatives, "Bm" constraint.
13845 2019-06-28  Dennis Zhang  <dennis.zhang@arm.com>
13847         * config/arm/arm.md: Remove redundant constraints from
13848         define_expand but leave reload_inm and reload_outm patterns
13849         untouched since they need special constraints to work.
13850         * config/arm/arm-fixed.md: Remove redundant constraints from
13851         define_expand.
13852         * config/arm/iwmmxt.md: Likewise.
13853         * config/arm/neon.md: Likewise.
13854         * config/arm/sync.md: Likewise.
13855         * config/arm/thumb1.md: Likewise.
13856         * config/arm/vec-common.md: Likewise.
13858 2019-06-27  Ilia Diachkov  <ilia.diachkov@optimitech.com>
13860         * doc/install.texi: Document --disable-tm-clone-registry.
13862 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
13864         PR c++/91024
13865         * gimplify.c (collect_fallthrough_labels): Ignore GIMPLE_PREDICT
13866         statements.
13868         PR tree-optimization/91010
13869         * tree-vect-stmts.c (scan_operand_equal_p): If offset1 == offset2,
13870         return true.  Otherwise, don't call operand_equal_p if offset1 or
13871         offset2 is NULL and just return false.
13873 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
13875         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Honour
13876         user-specified float mode choice for kernel mode code.
13878 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
13880         * config/rs6000/darwin.h (ENDFILE_SPEC): Correct whitespace in the
13881         spec.
13883 2019-06-27  Iain Sandoe  <iain@sandoe.co.uk>
13885         * config/rs6000/rs6000.c (darwin_rs6000_override_options): Do not
13886         use longcall for 64b code.
13888 2019-06-27  Aaron Sawdey  <acsawdey@linux.ibm.com>
13890         * builtins.c (get_memory_rtx): Fix comment.
13891         * optabs.def (movmem_optab): Change to cpymem_optab.
13892         * expr.c (emit_block_move_via_cpymem): Change movmem to cpymem.
13893         (emit_block_move_hints): Change movmem to cpymem.
13894         * defaults.h: Change movmem to cpymem.
13895         * targhooks.c (get_move_ratio): Change movmem to cpymem.
13896         (default_use_by_pieces_infrastructure_p): Ditto.
13897         * config/aarch64/aarch64-protos.h: Change movmem to cpymem.
13898         * config/aarch64/aarch64.c (aarch64_expand_movmem): Change movmem
13899         to cpymem.
13900         * config/aarch64/aarch64.h: Change movmem to cpymem.
13901         * config/aarch64/aarch64.md (movmemdi): Change name to cpymemdi.
13902         * config/alpha/alpha.h: Change movmem to cpymem in comment.
13903         * config/alpha/alpha.md (movmemqi, movmemdi, *movmemdi_1): Change
13904         movmem to cpymem.
13905         * config/arc/arc-protos.h: Change movmem to cpymem.
13906         * config/arc/arc.c (arc_expand_movmem): Change movmem to cpymem.
13907         * config/arc/arc.h: Change movmem to cpymem in comment.
13908         * config/arc/arc.md (movmemsi): Change movmem to cpymem.
13909         * config/arm/arm-protos.h: Change movmem to cpymem in names.
13910         * config/arm/arm.c (arm_movmemqi_unaligned, arm_gen_movmemqi,
13911         gen_movmem_ldrd_strd, thumb_expand_movmemqi) Change movmem to cpymem.
13912         * config/arm/arm.md (movmemqi): Change movmem to cpymem.
13913         * config/arm/thumb1.md (movmem12b, movmem8b): Change movmem to cpymem.
13914         * config/avr/avr-protos.h: Change movmem to cpymem.
13915         * config/avr/avr.c (avr_adjust_insn_length, avr_emit_movmemhi,
13916         avr_out_movmem): Change movmem to cpymem.
13917         * config/avr/avr.md (movmemhi, movmem_<mode>, movmemx_<mode>):
13918         Change movmem to cpymem.
13919         * config/bfin/bfin-protos.h: Change movmem to cpymem.
13920         * config/bfin/bfin.c (single_move_for_movmem, bfin_expand_movmem):
13921         Change movmem to cpymem.
13922         * config/bfin/bfin.h: Change movmem to cpymem in comment.
13923         * config/bfin/bfin.md (movmemsi): Change name to cpymemsi.
13924         * config/c6x/c6x-protos.h: Change movmem to cpymem.
13925         * config/c6x/c6x.c (c6x_expand_movmem): Change movmem to cpymem.
13926         * config/c6x/c6x.md (movmemsi): Change name to cpymemsi.
13927         * config/frv/frv.md (movmemsi): Change name to cpymemsi.
13928         * config/ft32/ft32.md (movmemsi): Change name to cpymemsi.
13929         * config/h8300/h8300.md (movmemsi): Change name to cpymemsi.
13930         * config/i386/i386-expand.c (expand_set_or_movmem_via_loop,
13931         expand_set_or_movmem_via_rep, expand_movmem_epilogue,
13932         expand_setmem_epilogue_via_loop, expand_set_or_cpymem_prologue,
13933         expand_small_cpymem_or_setmem,
13934         expand_set_or_cpymem_prologue_epilogue_by_misaligned_moves,
13935         expand_set_or_cpymem_constant_prologue,
13936         ix86_expand_set_or_cpymem): Change movmem to cpymem.
13937         * config/i386/i386-protos.h: Change movmem to cpymem.
13938         * config/i386/i386.h: Change movmem to cpymem in comment.
13939         * config/i386/i386.md (movmem<mode>): Change name to cpymem.
13940         (setmem<mode>): Change expansion function name.
13941         * config/lm32/lm32.md (movmemsi): Change name to cpymemsi.
13942         * config/m32c/blkmov.md (movmemhi, movmemhi_bhi_op, movmemhi_bpsi_op,
13943         movmemhi_whi_op, movmemhi_wpsi_op): Change movmem to cpymem.
13944         * config/m32c/m32c-protos.h: Change movmem to cpymem.
13945         * config/m32c/m32c.c (m32c_expand_movmemhi): Change movmem to cpymem.
13946         * config/m32r/m32r.c (m32r_expand_block_move): Change movmem to cpymem.
13947         * config/m32r/m32r.md (movmemsi, movmemsi_internal): Change movmem
13948         to cpymem.
13949         * config/mcore/mcore.md (movmemsi): Change name to cpymemsi.
13950         * config/microblaze/microblaze.c: Change movmem to cpymem in comment.
13951         * config/microblaze/microblaze.md (movmemsi): Change name to cpymemsi.
13952         * config/mips/mips.c (mips_use_by_pieces_infrastructure_p):
13953         Change movmem to cpymem.
13954         * config/mips/mips.h: Change movmem to cpymem.
13955         * config/mips/mips.md (movmemsi): Change name to cpymemsi.
13956         * config/nds32/nds32-memory-manipulation.c
13957         (nds32_expand_movmemsi_loop_unknown_size,
13958         nds32_expand_movmemsi_loop_known_size, nds32_expand_movmemsi_loop,
13959         nds32_expand_movmemsi_unroll,
13960         nds32_expand_movmemsi): Change movmem to cpymem.
13961         * config/nds32/nds32-multiple.md (movmemsi): Change name to cpymemsi.
13962         * config/nds32/nds32-protos.h: Change movmem to cpymem.
13963         * config/pa/pa.c (compute_movmem_length): Change movmem to cpymem.
13964         (pa_adjust_insn_length): Change call to compute_movmem_length.
13965         * config/pa/pa.md (movmemsi, movmemsi_prereload, movmemsi_postreload,
13966         movmemdi, movmemdi_prereload,
13967         movmemdi_postreload): Change movmem to cpymem.
13968         * config/pdp11/pdp11.md (movmemhi, movmemhi1,
13969         movmemhi_nocc, UNSPEC_MOVMEM): Change movmem to cpymem.
13970         * config/riscv/riscv.c: Change movmem to cpymem in comment.
13971         * config/riscv/riscv.h: Change movmem to cpymem.
13972         * config/riscv/riscv.md: (movmemsi) Change name to cpymemsi.
13973         * config/rs6000/rs6000.md: (movmemsi) Change name to cpymemsi.
13974         * config/rx/rx.md: (UNSPEC_MOVMEM, movmemsi, rx_movmem): Change
13975         movmem to cpymem.
13976         * config/s390/s390-protos.h: Change movmem to cpymem.
13977         * config/s390/s390.c (s390_expand_movmem, s390_expand_setmem,
13978         s390_expand_insv): Change movmem to cpymem.
13979         * config/s390/s390.md (movmem<mode>, movmem_short, *movmem_short,
13980         movmem_long, *movmem_long, *movmem_long_31z): Change movmem to cpymem.
13981         * config/sh/sh.md (movmemsi): Change name to cpymemsi.
13982         * config/sparc/sparc.h: Change movmem to cpymem in comment.
13983         * config/vax/vax-protos.h (vax_output_movmemsi): Remove prototype
13984         for nonexistent function.
13985         * config/vax/vax.h: Change movmem to cpymem in comment.
13986         * config/vax/vax.md (movmemhi, movmemhi1): Change movmem to cpymem.
13987         * config/visium/visium.h: Change movmem to cpymem in comment.
13988         * config/visium/visium.md (movmemsi): Change name to cpymemsi.
13989         * config/xtensa/xtensa.md (movmemsi): Change name to cpymemsi.
13990         * doc/md.texi: Change movmem to cpymem and update description to match.
13991         * doc/rtl.texi: Change movmem to cpymem.
13992         * target.def (use_by_pieces_infrastructure_p): Change movmem to cpymem.
13993         * doc/tm.texi: Regenerate.
13995 2019-06-27  Bill Schmidt  <wschmidt@linux.ibm.com>
13997         * config/rs6000/rs6000.c (rs6000_option_override_internal): Enable
13998         -fvariable-expansion-in-unroller by default.
13999         * doc/invoke.texi (-fvariable-expansion-in-unroller): Document new
14000         default for Power.
14002 2019-06-27  David Edelsohn  <dje.gcc@gmail.com>
14004         Revert
14005         2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
14006         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14008         * config.gcc(rs6000-*-*): Define target_gtfiles.
14010 2019-06-27  Jan Hubicka  <jh@suse.cz>
14012         * ipa-devirt.c (odr_type_d): Add tbaa_enabled flag.
14013         (add_type_duplicate): When odr hash is not allocated, to nothing.
14014         (odr_based_tbaa_p): New function.
14015         (set_type_canonical_for_odr_type): New function.
14016         * ipa-utils.h (enable_odr_based_tbaa, odr_based_tbaa_p,
14017         set_type_canonical_for_odr_type): New.
14018         * tree.c (gimple_canonical_types_compatible_p): ODR types with
14019         ODR based TBAA are not equivalent to non-ODR types.
14021 2019-06-27  Martin Liska  <mliska@suse.cz>
14023         PR tree-optimization/90974
14024         PR rtl-optimization/90975
14025         PR rtl-optimization/90976
14026         PR target/91016
14027         PR tree-optimization/91017
14028         * config/i386/i386-expand.c (ix86_expand_rounddf_32): Remove
14029         unused tmp.
14030         * lra.c (lra_set_insn_recog_data): Remove a leftover from
14031         initial commit of IRA.
14032         * optabs.c (expand_twoval_binop): Use xop0 and xop1 instead
14033         of op0 and op1.
14034         * tree-vect-loop.c (vect_create_epilog_for_reduction):
14035         Remove unused mode1.
14036         * tree-vect-stmts.c (vectorizable_call): Remove dead assignment
14037         to new_stmt_info.
14039 2019-06-27  Jakub Jelinek  <jakub@redhat.com>
14041         PR target/90991
14042         * config/i386/sse.md (avx_vec_concat<mode>): Use nonimmediate_operand
14043         instead of register_operand for operands[1], add m to its constraints
14044         if operands[2] uses "C" constraint.  Ensure in condition that if
14045         operands[2] is not 0, then operands[1] is not a MEM.  For last two
14046         alternatives, use unaligned loads instead of aligned if operands[1] is
14047         misaligned_operand.
14049 2019-06-27  Martin Liska  <mliska@suse.cz>
14051         * asan.c (asan_emit_allocas_unpoison): Remove obviously
14052         dead assignments.
14053         * bt-load.c (move_btr_def): Likewise.
14054         * builtins.c (expand_builtin_apply_args_1): Likewise.
14055         (expand_builtin_apply): Likewise.
14056         * cfgexpand.c (expand_asm_stmt): Likewise.
14057         (construct_init_block): Likewise.
14058         * cfghooks.c (verify_flow_info): Likewise.
14059         * cfgloopmanip.c (remove_path): Likewise.
14060         * cfgrtl.c (rtl_verify_bb_layout): Likewise.
14061         * cgraph.c (cgraph_node::set_pure_flag): Likewise.
14062         * combine.c (simplify_if_then_else): Likewise.
14063         * config/i386/i386.c (ix86_setup_incoming_vararg_bounds): Likewise.
14064         (choose_basereg): Likewise.
14065         (ix86_expand_prologue): Likewise.
14066         (ix86_preferred_output_reload_class): Likewise.
14067         * cselib.c (cselib_record_sets): Likewise.
14068         * df-scan.c (df_scan_alloc): Likewise.
14069         * dojump.c (do_jump_by_parts_greater_rtx): Likewise.
14070         * early-remat.c (early_remat::record_equiv_candidates): Likewise.
14071         * emit-rtl.c (try_split): Likewise.
14072         * graphite-scop-detection.c (assign_parameter_index_in_region):
14073         Likewise.
14074         * ipa-cp.c (cgraph_edge_brings_all_agg_vals_for_node): Likewise.
14075         * ira-color.c (setup_profitable_hard_regs): Likewise.
14076         * ira.c (rtx_moveable_p): Likewise.
14077         * lra-eliminations.c (eliminate_regs_in_insn): Likewise.
14078         * read-rtl.c (read_subst_mapping): Likewise.
14079         * regrename.c (scan_rtx): Likewise.
14080         * reorg.c (fill_slots_from_thread): Likewise.
14081         * tree-inline.c (tree_function_versioning): Likewise.
14082         * tree-ssa-reassoc.c (optimize_ops_list): Likewise.
14083         * tree-ssa-sink.c (statement_sink_location): Likewise.
14084         * tree-ssa-threadedge.c (thread_across_edge): Likewise.
14085         * tree-vect-loop.c (vect_get_loop_niters): Likewise.
14086         (vect_create_epilog_for_reduction): Likewise.
14087         * tree.c (build_nonstandard_integer_type): Likewise.
14089 2019-06-27  Richard Biener  <rguenther@suse.de>
14091         * tree-ssa-sccvn.c (vn_reference_lookup_3): Encode valueized RHS.
14093 2019-06-27  Jun Ma  <JunMa@linux.alibaba.com>
14095         PR tree-optimization/89772
14096         * gimple-fold.c (gimple_fold_builtin_memchr): consider trailing nuls in
14097         out-of-bound accesses checking.
14099 2019-06-27  Martin Liska  <mliska@suse.cz>
14101         PR tree-optimization/91014
14102         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Bail out
14103         when LHS is NULL_TREE.
14105 2019-06-27  Martin Liska  <mliska@suse.cz>
14107         * symbol-summary.h (traverse): Pass
14108         argument a to the call of callback.
14109         (gt_ggc_mx): Mark arguments as unused.
14110         (gt_pch_nx): Likewise.
14112 2019-06-27  Kewen Lin  <linkw@gcc.gnu.org>
14114         PR target/62147
14115         * loop-iv.c (find_simple_exit): Call finite_loop_p to update
14116         finiteness.
14118 2019-06-26  Jeff Law  <law@redhat.com>
14120         PR tree-optimization/90883
14121         * tree-ssa-dse.c (delete_dead_or_redundant_call): Fix signature.
14122         (delete_dead_or_redundant_assignment): Likewise.
14124         PR tree-optimization/90883
14125         * tree-ssa-alias.c (stmt_kills_ref_p): Handle BUILT_IN_CALLOC.
14126         * tree-ssa-dse.c: Update various comments to distinguish between
14127         dead and redundant stores.
14128         (initialize_ao_ref_for_dse): Handle BUILT_IN_CALLOC.
14129         (dse_optimize_redundant_stores): New function.
14130         (delete_dead_or_redundant_call): Renamed from delete_dead_call.
14131         Distinguish between dead and redundant calls in dump output.  All
14132         callers updated.
14133         (delete_dead_or_redundant_assignment): Similarly for assignments.
14134         (dse_optimize_stmt): Handle _CHK variants.  For statements which
14135         store 0 into multiple memory locations, try to prove a subsequent
14136         store is redundant.
14138 2019-06-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14140         PR target/89021
14141         * config/i386/i386.c (ix86_autovectorize_vector_sizes):
14142         Autovectorize 8-byte vectors for TARGET_MMX_WITH_SSE.
14144 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
14146         * config/rs6000/rs6000-internal.h (branch_island): New typedef.
14147         (branch_islands): New extern.
14148         * config/rs6000/rs6000-logue.c (macho_branch_islands): Moved from
14149         * config/rs6000/rs6000.c: .. here.
14151 2019-06-26  Iain Sandoe  <iain@sandoe.co.uk>
14153         * config.gcc (powerpc*-*-linux*): Move target_gtfiles from here..
14154         (powerpc*-*-*) ... to here.
14156 2019-06-26  Jeff Law  <law@redhat.com>
14158         * tree-ssa-dse.c (initialize_ao_ref_for_dse): Handle _chk variants of
14159         memcpy, memmove and memset builtins.
14160         (maybe_trim_memstar_call): Likewise.
14162 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
14164         * config/rs6000/rs6000-logue.c: Add #ifndef TARGET_PROFILE_KERNEL.
14166 2019-06-26  David Edelsohn  <dje.gcc@gmail.com>
14168         * config.gcc (powerpc-ibm-aix*): Define target_gtfiles.
14170 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
14172         * config/rs6000/rs6000-internal.h (rs6000_keep_leaf_when_profiled): New
14173         declaration.
14174         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Remove
14175         "static".
14176         * config/rs6000/rs6000-logue.c (rs6000_keep_leaf_when_profiled): Delete
14177         declaration.
14179 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
14181         * config/rs6000/rs6000.c: Fix previous commit, it missed some changes.
14183 2019-06-26  Richard Biener  <rguenther@suse.de>
14185         PR ipa/90982
14186         * tree-inline.c (remap_ssa_name): Copy SSA range info.
14188 2019-06-26  Richard Biener  <rguenther@suse.de>
14190         * lto-streamer.h (lto_bitmap_alloc): Remove.
14191         (lto_bitmap_free): Likewise.
14192         * lto-streamer.c (lto_bitmap_alloc): Remove.
14193         (lto_bitmap_free): Likewise.
14194         (lto_obstack): Likewise.
14195         (lto_obstack_initialized): Likewise.
14196         * lto-streamer-out.c (lto_output): Use own obstack for local
14197         bitmap, free it consistently.
14199 2019-06-26  Jakub Jelinek  <jakub@redhat.com>
14201         PR target/90991
14202         * config/i386/sse.md
14203         (*<extract_type>_vinsert<shuffletype><extract_suf>_0): Use vmovupd,
14204         vmovups, vmovdqu, vmovdqu32 or vmovdqu64 instead of the aligned
14205         insns if operands[2] is misaligned_operand.
14207 2019-06-26  Li Jia He  <helijia@linux.ibm.com>
14209         * config/rs6000/rs6000.h (TARGET_MADDLD): Remove the restriction of
14210         TARGET_POWERPC64.
14211         * config/rs6000/rs6000.md (maddld): Change maddld match_operand from DI
14212         to GPR.
14214 2019-06-26  Segher Boessenkool  <segher@kernel.crashing.org>
14216         * doc/invoke.texi (Warning Options): Fix some @opindex syntax.
14218 2019-06-26  Martin Liska  <mliska@suse.cz>
14220         PR tree-optimization/90973
14221         * tree-vect-loop.c (vect_get_known_peeling_cost): Use
14222         epilogue_cost_vec instead of prologue_cost_vec for
14223         a epilogue cost.
14225 2019-06-26  Martin Liska  <mliska@suse.cz>
14227         * bb-reorder.c (connect_better_edge_p): Add missing else
14228         statement in the middle of if-else statements.
14230 2019-06-25  Hongtao Liu  <hongtao.liu@intel.com>
14231             H.J. Lu  <hongjiu.lu@intel.com>
14232             Olga Makhotina  <olga.makhotina@intel.com>
14234         * common/config/i386/i386-common.c
14235         (OPTION_MASK_ISA_AVX512VP2INTERSECT_SET,
14236         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET): New macros.
14237         (OPTION_MASK_ISA2_AVX512F_UNSET): Add
14238         OPTION_MASK_ISA_AVX512VP2INTERSECT_UNSET.
14239         (ix86_handle_option): Handle -mavx512vp2intersect.
14240         * config/i386/avx512vp2intersectintrin.h: New.
14241         * config/i386/avx512vp2intersectvlintrin.h: New.
14242         * config/i386/cpuid.h (bit_AVX512VP2INTERSECT): New.
14243         * config/i386/driver-i386.c (host_detect_local_cpu): Detect
14244         AVX512VP2INTERSECT.
14245         * config/i386/i386-builtin-types.def: Add new types.
14246         * config/i386/i386-builtin.def: Add new builtins.
14247         * config/i386/i386-builtins.c: (enum processor_features): Add
14248         F_AVX512VP2INTERSECT.
14249         (static const _isa_names_table isa_names_table): Ditto.
14250         * config/i386/i386-c.c (ix86_target_macros_internal): Define
14251         __AVX512VP2INTERSECT__.
14252         * config/i386/i386-expand.c (ix86_expand_builtin): Expand
14253         IX86_BUILTIN_2INTERSECTD512, IX86_BUILTIN_2INTERSECTQ512,
14254         IX86_BUILTIN_2INTERSECTD256, IX86_BUILTIN_2INTERSECTQ256,
14255         IX86_BUILTIN_2INTERSECTD128, IX86_BUILTIN_2INTERSECTQ128.
14256         * config/i386/i386-modes.def (P2QI, P2HI): New modes.
14257         * config/i386/i386-options.c (ix86_target_string): Add
14258         -mavx512vp2intersect.
14259         (ix86_option_override_internal): Handle AVX512VP2INTERSECT.
14260         * config/i386/i386.c (ix86_hard_regno_nregs): Allocate two regs for
14261         P2HImode and P2QImode.
14262         (ix86_hard_regno_mode_ok): Register pair only starts at even hardreg
14263         number for P2QImode and P2HImode.
14264         (ix86_regmode_natural_size): New function.
14265         * config/i386/i386.h (TARGET_AVX512VP2INTERSECT,
14266         TARGET_AVX512VP2INTERSECT_P, PTA_AVX512VP2INTERSECT
14267         REGMODE_NATURAL_SIZE, MASK_PAIR_REGNO_P): New.
14268         * config/i386/i386-protos.h (ix86_regmode_natural_size): Declare
14269         * config/i386/i386.opt: Add -mavx512vp2intersect.
14270         * config/i386/immintrin.h: Include avx512vp2intersectintrin.h and
14271         avx512vp2intersectvlintrin.h.
14272         * config/i386/sse.md (define_c_enum "unspec"): Add UNSPEC_VP2INTERSECT.
14273         (define_mode_iterator VI48_AVX512VP2VL): New.
14274         (avx512vp2intersect_2intersect<mode>,
14275         avx512vp2intersect_2intersectv16si): New define_insn patterns.
14276         * config.gcc: Add avx512vp2intersectvlintrin.h and
14277         avx512vp2intersectintrin.h to extra_headers.
14278         * doc/invoke.texi: Document -mavx512vp2intersect.
14280 2019-06-25  Iain Sandoe  <iain@sandoe.co.uk>
14282         * config/rs6000/darwin.h (ENDFILE_SPEC): New.
14284 2019-06-25  Bill Seurer  <seurer@linux.vnet.ibm.com>
14286         * config/rs6000/rs6000.c (stack_info, rs6000_pic_labelno,
14287         savres_routine_syms, savres_routine_name, morestack_ref,
14288         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14289         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14290         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14291         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14292         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14293         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14294         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14295         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14296         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14297         get_stack_clash_protection_probe_interval,
14298         get_stack_clash_protection_guard_size,
14299         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14300         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14301         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14302         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14303         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14304         gen_frame_mem_offset, rs6000_savres_routine_name,
14305         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14306         ptr_regno_for_savres, rs6000_emit_savres_rtx,
14307         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14308         rs6000_global_entry_point_prologue_needed_p,
14309         rs6000_get_separate_components, rs6000_components_for_bb,
14310         rs6000_disqualify_components, rs6000_emit_prologue_components,
14311         rs6000_emit_epilogue_components, rs6000_set_handled_components,
14312         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14313         rs6000_output_savres_externs, rs6000_output_function_prologue,
14314         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14315         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14316         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14317         rs6000_output_function_epilogue, gen_add3_const,
14318         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14319         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14320         to rs6000-logue.c.
14321         (machine_function): Moved to rs6000.h.
14322         (rs6000_stack_t, ALTIVEC_REG_BIT, quad_address_offset_p) Moved to
14323         rs6000-internal.h.
14324         * config/rs6000/rs6000-logue.c(stack_info, rs6000_pic_labelno,
14325         savres_routine_syms, savres_routine_name, morestack_ref,
14326         rs6000_init_machine_status, save_reg_p, first_reg_to_save,
14327         first_fp_reg_to_save, first_altivec_reg_to_save, compute_vrsave_mask,
14328         compute_save_world_info, is_altivec_return_reg, fixed_reg_p,
14329         rs6000_savres_strategy, rs6000_stack_info, debug_stack_info,
14330         rs6000_return_addr, rs6000_decl_ok_for_sibcall,
14331         rs6000_function_ok_for_sibcall, rs6000_ra_ever_killed,
14332         rs6000_emit_load_toc_table, rs6000_emit_eh_reg_restore, uses_TOC,
14333         create_TOC_reference, rs6000_aix_asm_output_dwarf_table_ref,
14334         rs6000_emit_stack_tie, rs6000_emit_allocate_stack_1,
14335         get_stack_clash_protection_probe_interval,
14336         get_stack_clash_protection_guard_size,
14337         rs6000_emit_probe_stack_range_stack_clash, rs6000_emit_allocate_stack,
14338         rs6000_emit_probe_stack_range, output_probe_stack_range_1,
14339         interesting_frame_related_regno, output_probe_stack_range_stack_clash,
14340         output_probe_stack_range, rs6000_frame_related, generate_set_vrsave,
14341         gen_frame_set, gen_frame_load, gen_frame_store, emit_frame_save,
14342         gen_frame_mem_offset, rs6000_savres_routine_name,
14343         rs6000_savres_routine_sym, rs6000_emit_stack_reset,
14344         ptr_regno_for_savres, rs6000_emit_savres_rtx,
14345         rs6000_emit_prologue_move_from_cr, split_stack_arg_pointer_used_p,
14346         rs6000_global_entry_point_prologue_needed_p,
14347         rs6000_get_separate_components, rs6000_components_for_bb,
14348         rs6000_disqualify_components, rs6000_emit_prologue_components,
14349         rs6000_emit_epilogue_components, rs6000_set_handled_components,
14350         emit_vrsave_prologue, emit_split_stack_prologue, rs6000_emit_prologue,
14351         rs6000_output_savres_externs, rs6000_output_function_prologue,
14352         rs6000_keep_leaf_when_profiled, load_cr_save, restore_saved_cr,
14353         load_lr_save, restore_saved_lr, add_crlr_cfa_restore,
14354         offset_below_red_zone_p, emit_cfa_restores, rs6000_emit_epilogue,
14355         rs6000_output_function_epilogue, gen_add3_const,
14356         rs6000_expand_split_stack_prologue, rs6000_live_on_entry,
14357         rs6000_split_stack_space_check, rs6000_save_toc_in_prologue_p): Moved
14358         to here from rs6000.c.
14359         * config/rs6000/rs6000.h (machine_function): Moved to here from rs6000.c.
14360         * config/rs6000/rs6000-internal.h: (rs6000_stack_t, ALTIVEC_REG_BIT,
14361         quad_address_offset_p) Moved to here from rs6000.c.
14362         * config/rs6000/t-rs6000: Add new source file rs6000-logue.c.
14363         * config/config.gcc: Add new source file rs6000-logue.c to garbage
14364         collector.
14366 2019-06-25  Martin Liska  <mliska@suse.cz>
14368         * hash-table.c (hashtab_chk_error): Move here from ...
14369         * hash-table.h (hashtab_chk_error): ... here.
14371 2019-06-25  Martin Liska  <mliska@suse.cz>
14373         PR tree-optimization/90978
14374         * df-scan.c (df_update_entry_block_defs): Remove dead else
14375         branch.
14376         (df_update_exit_block_uses): Likewise.
14378 2019-06-25  Kwok Cheung Yeung  <kcy@codesourcery.com>
14379             Andrew Stubbs  <ams@codesourcery.com>
14381         * config.gcc (thread_file): Set to gcn for AMD GCN.
14382         * config/gcn/gcn.c (gcn_emutls_var_init): New function.
14383         (TARGET_EMUTLS_VAR_INIT): New hook.
14385 2019-06-25  Martin Jambor  <mjambor@suse.cz>
14387         PR ipa/90939
14388         * ipa-cp.c (ipcp_bits_lattice::meet_with): Remove assert.
14390 2019-06-25  Richard Biener  <rguenther@suse.de>
14392         PR tree-optimization/90930
14393         * tree-ssa-reassoc.c (reassociate_bb): Only rewrite expression
14394         into parallel form in the last pass instance.
14396 2019-06-25  Claudiu Zissulescu  <claziss@synopsys.com>
14398         * config/arc/arc.c (arc_symbol_binds_local_p): New function.
14399         (arc_legitimize_pic_address): Simplify and cleanup the function.
14400         (SYMBOLIC_CONST): Remove.
14401         (prepare_pic_move): Likewise.
14402         (prepare_move_operands): Handle complex mov cases here.
14403         (arc_legitimize_address_0): Remove call to
14404         arc_legitimize_pic_address.
14405         (arc_legitimize_address): Remove call to
14406         arc_legitimize_tls_address.
14407         * config/arc/arc.md (movqi_insn): Allow Cm3 match.
14408         (movhi_insn): Likewise.
14410 2019-06-25  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
14412         * config/msp430/msp430.h: Use __int20__ for SIZE_TYPE and
14413         PTRDIFF_TYPE.
14414         * gimple-ssa-sprintf.c (build_intmax_type_nodes): Accept "__intN__"
14415         format of "__intN" types for UINTMAX_TYPE.
14416         * stor-layout.c (initialize_sizetypes): Accept "__intN__"
14417         format of "__intN" types for SIZETYPE.
14418         * tree.c (build_common_tree_nodes): Accept "__intN__"
14419         format of "__intN" types for SIZE_TYPE and PTRDIFF_TYPE.
14420         * doc/invoke.texi: Document that __intN__ disables pedantic
14421         warnings.
14423 2019-06-25  Jan Hubicka  <jh@suse.cz>
14425         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Check that
14426         base2_alias_set is non-zero before doing TBAA based disambiguation.
14428 2019-06-25  Martin Liska  <mliska@suse.cz>
14430         PR tree-optimization/90973
14431         * tree-vect-loop.c (vect_get_known_peeling_cost): Sum retval
14432         of prologue and epilogue.
14434 2019-06-24  Jan Hubicka  <jh@suse.cz>
14436         * ipa-utils.h (type_with_linkage_p): Verify that type is
14437         CXX_ODR_P.
14438         (odr_type_p): Remove extra return.
14439         * lto-streamer-out.c (hash_tree): Hash TYPE_CXX_ODR_P;
14440         hash STRING_FLAG only for arrays and integers.
14441         * tree-stremaer-in.c (unpack_ts_type_common_value_fields):
14442         Update analogously.
14443         * tree-streamer-out.c (pack_ts_type_common_value_fields):
14444         Likewise.
14445         * print-tree.c (print_node): Print cxx-odr-p
14446         and string-flag.
14447         * tree.c (need_assembler_name_p): Also check that type
14448         is CXX_ODR_TYPE_P
14449         (verify_type_variant): Update verification of SRING_FLAG;
14450         also check CXX_ODR_P.
14451         * tree.h (ARRAY_OR_INTEGER_TYPE_CHECK): New macro.
14452         (TYPE_STRING_FLAG): Use it.
14453         (TYPE_CXX_ODR_P): New macro.
14454         * dwarf2out.c (gen_array_type_die): First check that type
14455         is an array and then test string flag.
14457 2019-06-24  Richard Biener  <rguenther@suse.de>
14459         PR tree-optimization/90972
14460         * tree-vect-stmts.c (vect_init_vector): Handle CONSTANT_CLASS_P
14461         in common code, dealing with STRING_CST properly.
14463 2019-06-24  Richard Biener  <rguenther@suse.de>
14465         PR tree-optimization/90930
14466         PR tree-optimization/90316
14467         * tree-ssa-alias.c (walk_non_aliased_vuses): Add missing
14468         decrement of limit.
14470 2019-06-24  Martin Sebor  <msebor@redhat.com>
14472         * tree-pretty-print.h: Remove unnecessary punctuation characters
14473         from a diagnostic.
14474         * tree-ssa.c (release_defs_bitset): Correct preprocessor conditional.
14476 2019-06-24  Jonathan Wakely  <jwakely@redhat.com>
14478         * ginclude/float.h (FLT_DECIMAL_DIG, DBL_DECIMAL_DIG, LDBL_DECIMAL_DIG)
14479         (FLT_HAS_SUBNORM, DBL_HAS_SUBNORM, LDBL_HAS_SUBNORM, FLT_TRUE_MIN)
14480         (DBL_TRUE_MIN, LDBL_TRUE_MIN): Also define for C++17.
14482 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
14484         * config/rs6000/darwin.h: Handle GCC target pragma.
14486 2019-06-23  Iain Sandoe  <iain@sandoe.co.uk>
14488         * config/rs6000/darwin.h: (__PPC__, __PPC64__): New.
14490 2019-06-22  Jeff Law  <law@redhat.com>
14492         * config/avr/avr.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14494 2019-06-22  Jan Hubicka  <jh@suse.cz>
14496         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Do not
14497         give up on bitfields; continue searching for different refs
14498         appearing later.
14500 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
14502         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14503         even zero DR_OFFSET, but DR_BASE_ADDRESS of POINTER_PLUS_EXPR
14504         containing the offset as possible simd lane access.  Look through
14505         widening conversion.  Move the
14506         TREE_CODE (DR_INIT (newdr)) == INTEGER_CST test earlier and reindent.
14508 2019-06-21  Richard Biener  <rguenther@suse.de>
14510         PR tree-optimization/90930
14511         * tree-ssa-reassoc.c (rewrite_expr_tree_parallel): Set visited
14512         flag on new stmts to avoid re-processing them.
14514 2019-06-21  Matthew Beliveau  <mbelivea@redhat.com>
14516         PR c++/90875 - added -Wswitch-outside-range option
14517         * doc/invoke.texi (Wswitch-outside-range): Document.
14519 2019-06-21  Jeff Law  <law@redhat.com>
14521         PR tree-optimization/90949
14522         * tree-ssa-copy.c (fini_copy_prop): Use reset_flow_sensitive_info.
14523         * tree-ssanames.c (reset_flow_sensitive_info): Reset non-null state.
14525 2019-06-21  Richard Biener  <rguenther@suse.de>
14527         PR debug/90914
14528         * dwarf2out.c (prune_unused_types_walk): Always consider
14529         function-local extern declarations as used.
14531 2019-06-21  Richard Biener  <rguenther@suse.de>
14533         PR tree-optimization/90913
14534         * tree-vect-loop-manip.c (vect_loop_versioning): Do not re-use
14535         the scalar variant of if-conversion versioning.
14537 2019-06-21  Jakub Jelinek  <jakub@redhat.com>
14539         * omp-low.c (lower_rec_simd_input_clauses): Add rvar2 argument,
14540         create another "omp scan inscan exclusive" array if
14541         !ctx->scan_inclusive.
14542         (lower_rec_input_clauses): Handle exclusive scan inscan reductions.
14543         (lower_omp_scan): Likewise.
14544         * tree-vectorizer.h (struct _stmt_vec_info): Use 3-bit instead of
14545         2-bit bitfield for simd_lane_access_p member.
14546         * tree-vect-data-refs.c (vect_analyze_data_refs): Also handle
14547         aux == (void *)-4 as simd lane access.
14548         * tree-vect-stmts.c (check_scan_store): Handle exclusive scan.  Update
14549         comment with permutations to show the canonical permutation order.
14550         (vectorizable_scan_store): Handle exclusive scan.
14551         (vectorizable_store): Call vectorizable_scan_store even for
14552         STMT_VINFO_SIMD_LANE_ACCESS_P > 3.
14554         * tree-vect-data-refs.c (vect_find_stmt_data_reference): Handle
14555         "omp simd array" arrays with one byte elements.
14557 2019-06-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14559         * config/alpha/alpha.md (@unaligned_store<mode>):
14560         Rename from unaligned_store<mode>.
14561         (@reload_in<mode>_aligned): Rename from reload_in<mode>_aligned.
14562         * config/alpha/sync.md (@load_locked_<mode>): Rename
14563         from load_locked_<mode>.
14564         (@store_conditional_<mode>): Rename from store_conditional_<mode>.
14565         (@atomic_compare_and_swap<mode>_1): Rename
14566         from atomic_compare_and_swap<mode>_1.
14567         (@atomic_exchange<mode>_1): Rename from atomic_exchange<mode>_1.
14568         * config/alpha/alpha.c (alpha_expand_mov_nobwx):
14569         Use gen_reload_in_aligned and gen_unaligned_store.
14570         (emit_load_locked): Remove.
14571         (emit_store_conditional): Ditto.
14572         (alpha_split_atomic_op): Use gen_load_locked and gen_store_conditional.
14573         (alpha_split_compare_and_swap): Ditto.
14574         (alpha_expand_compare_and_swap_12): Use gen_atomic_compare_and_swap_1.
14575         (alpha_split_compare_and_swap_12): Use gen_load_locked
14576         and gen_store_conditional.
14577         (alpha_split_atomic_exchange): Ditto.
14578         (alpha_expand_atomic_exchange_12): Use gen_atomic_exchange_1.
14579         (alpha_split_atomic_exchange_12): Use gen_load_locked
14580         and gen_store_conditional.
14582 2019-06-20  Richard Earnshaw  <rearnsha@arm.com>
14584         * config/aarch64/aarch64-errata.h: New file.
14585         * config/aarch64/aarch64-elf-raw.h (CA53_ERR_835769_SPEC): Delete.
14586         (CA53_ERR_843419_SPEC): Delete.
14587         (LINK_SPEC): Use AARCH64_ERRATA_LINK_SPEC instead of above.
14588         * config/aarch64/aarch64-linux.h: Likewise.
14589         * config/aarch64/aarch64-netbsd.h: Likewise.
14590         * config/aarch64/aarch64-freebsd.h: Likewise.
14592 2019-06-20  Marek Polacek  <polacek@redhat.com>
14594         * config/sh/sh.c (sh2a_function_vector_p): Use get_attribute_name.
14596 2019-06-20  Michael Meissner  <meissner@linux.ibm.com>
14598         * config/rs6000/rs6000.md (isa attribute): Add support for
14599         for a future processor.
14601 2019-06-20  H.J. Lu  <hongjiu.lu@intel.com>
14603         PR target/54855
14604         * config/i386/i386-expand.c (ix86_expand_vector_set): Generate
14605         standard scalar operation pattern for V2DF.
14606         * config/i386/sse.md (*<sse>_vm<plusminus_insn><mode>3): New.
14607         (*<sse>_vm<multdiv_mnemonic><mode>3): Likewise.
14608         (*ieee_<ieee_maxmin><mode>3): Likewise.
14609         (vec_setv2df_0): Likewise.
14611 2019-06-20  Jan Hubicka  <jh@suse.cz>
14613         * tree-ssa-alias.c (aliasing_component_refs_p): Remove ref2_is_decl
14614         parameter; it has no use in gimple memory model.
14615         (indirect_ref_may_alias_decl_p): Update.
14617 2019-06-20  Martin Liska  <mliska@suse.cz>
14619         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): Decrease
14620         to 10.
14622 2019-06-20  Jakub Jelinek  <jakub@redhat.com>
14624         * tree-vect-stmts.c (enum scan_store_kind): New type.
14625         (scan_store_can_perm_p): Change last argument from int * to
14626         vec<enum scan_store_kind> *, record precisely which permutations
14627         need whole vector left shift or that plus VEC_COND_EXPR.
14628         (vectorizable_scan_store): Adjust caller, use whole vector left shift
14629         and additional VEC_COND_EXPR only for those iterations that need it.
14631 2019-06-20  Alexandre Oliva  <oliva@adacore.com>
14633         * config.gcc: Fix ARM --with-fpu checking and error message.
14635 2019-06-19  Marek Polacek  <polacek@redhat.com>
14637         PR c++/60364 - noreturn after first decl not diagnosed.
14638         * attribs.c (get_attribute_namespace): No longer static.
14639         (decl_attributes): Avoid shadowing.  Preserve the C++11 form for C++11
14640         attributes.
14641         (attr_noreturn_exclusions): Make it extern.
14642         * attribs.h (get_attribute_namespace): Declare.
14643         * tree-inline.c (function_attribute_inlinable_p): Use
14644         get_attribute_name.
14646 2019-06-19  Martin Sebor  <msebor@redhat.com>
14648         PR tree-optimization/90626
14649         * tree-ssa-strlen.c (strxcmp_unequal): Fix typos.
14651         PR tree-optimization/90626
14652         * tree-ssa-strlen.c (strxcmp_unequal): New function.
14653         (handle_builtin_string_cmp): Call it.
14655 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
14657         * config/darwin.h (DRIVER_SELF_SPECS): Add RDYNAMIC, DARWIN_PIE_SPEC
14658         and DARWIN_NOPIE_SPEC.
14659         (RDYNAMIC): New, modified from DARWIN_EXPORT_DYNAMIC.
14660         (DARWIN_PIE_SPEC): Collate from darwin.h and darwin9.h.
14661         (DARWIN_NOPIE_SPEC): Collate from darwin10.h.
14662         (DARWIN_NOCOMPACT_UNWIND): New from darwin10.h
14663         (DARWIN_EXPORT_DYNAMIC): Delete.
14664         * config/darwin10.h (LINK_GCC_C_SEQUENCE_SPEC): Move no_compact_unwind
14665         and pie options processing to  darwin.h.
14666         * config/darwin9.h (DARWIN_PIE_SPEC): Move pie processing to darwin.h
14668 2019-06-19  Iain Sandoe  <iain@sandoe.co.uk>
14670         * config/darwin-driver.c (darwin_driver_init): Fix off-by-one errors
14671         in computing the number of options to be moved.
14673 2019-06-19  Maya Rashish  <coypu@sdf.org>
14675         *  config/arm/netbsd-elf.h (SYSARCH_ARM_SYNC_ICACHE): New definition.
14676         (CLEAR_INSN_CACHE) Use it.
14678 2019-06-19  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14680         * config/i386/i386.md (cmpstrnsi): Remove dead code.
14682 2019-06-19  Wilco Dijkstra  <wdijkstr@arm.com>
14684         PR middle-end/84521
14685         * builtins.c (expand_builtin_setjmp_setup): Save
14686         hard_frame_pointer_rtx.
14687         (expand_builtin_setjmp_receiver): Do not emit sfp = fp move since we
14688         restore fp.
14689         * function.c (expand_function_start): Save hard_frame_pointer_rtx for
14690         non-local goto.
14691         * lra-eliminations.c (eliminate_regs_in_insn): Remove sfp = fp
14692         elimination code.
14693         (remove_reg_equal_offset_note): Remove unused function.
14694         * reload1.c (eliminate_regs_in_insn): Remove sfp = hfp elimination
14695         code.
14696         * config/arc/arc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14697         (arc_builtin_setjmp_frame_value): Remove function.
14698         * config/avr/avr.c  (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14699         (avr_builtin_setjmp_frame_value): Remove function.
14700         * config/i386/i386.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14701         (ix86_builtin_setjmp_frame_value): Remove function.
14702         * config/pa/pa.md (nonlocal_goto): Remove FP adjustment.
14703         * config/sparc/sparc.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14704         (sparc_builtin_setjmp_frame_value): Remove function.
14705         * config/vax/vax.c (TARGET_BUILTIN_SETJMP_FRAME_VALUE): Remove.
14706         (vax_builtin_setjmp_frame_value): Remove function.
14707         * config/xtensa/xtensa.c (xtensa_frame_pointer_required): Force frame
14708         pointer if has_nonlocal_label.
14710 2019-06-19  Jakub Jelinek  <jakub@redhat.com>
14712         * doc/md.texi: Document vec_shl_<mode> pattern.
14713         * optabs.def (vec_shl_optab): New optab.
14714         * optabs.c (shift_amt_for_vec_perm_mask): Add shift_optab
14715         argument, if == vec_shl_optab, check for left whole vector shift
14716         pattern rather than right shift.
14717         (expand_vec_perm_const): Add vec_shl_optab support.
14718         * optabs-query.c (can_vec_perm_var_p): Mention also vec_shl optab
14719         in the comment.
14720         * tree-vect-generic.c (lower_vec_perm): Support permutations which
14721         can be handled by vec_shl_optab.
14722         * tree-vect-stmts.c (scan_store_can_perm_p): New function.
14723         (check_scan_store): Use it.
14724         (vectorizable_scan_store): If target can't do normal permutations,
14725         try to use whole vector left shifts and if needed a VEC_COND_EXPR
14726         after it.
14727         * config/i386/sse.md (vec_shl_<mode>): New expander.
14729         * omp-low.c (lower_rec_input_clauses): Handle references properly
14730         in inscan clauses.
14731         (lower_omp_scan): Likewise.
14733 2019-06-19  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
14735         * tree-ssa-address.c (preferred_mem_scale_factor): Handle when
14736         mem_mode is BLKmode.
14738 2019-06-18  Max Filippov  <jcmvbkbc@gmail.com>
14740         PR target/90922
14741         * config/xtensa/xtensa.c (xtensa_expand_prologue): Add stack
14742         pointer adjustment for the case of no callee-saved registers and
14743         stack frame bigger than 128 bytes.
14745 2019-06-18  Thomas Schwinge  <thomas@codesourcery.com>
14747         PR middle-end/90862
14748         * omp-low.c (check_omp_nesting_restrictions): Handle
14749         GF_OMP_TARGET_KIND_OACC_DECLARE.
14751 2019-06-18  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14753         * config/i386/i386.md (@cmp<mode>_1): Rename from cmp<mode>_1.
14754         (@add<mode>3_carry): Rename from add<mode>3_carry.
14755         (@sub<mode>3_carry_ccc): Rename from sub<mode>3_carry_ccc.
14756         (@sub<mode>3_carry_ccgz): Rename form sub<mode>3_carry_ccgz.
14757         (@copysign<mode>3_const): Rename from copysign<mode>3_const.
14758         (@copysign<mode>3_var): Rename from copysign<mode>3_var.
14759         (@xorsign<mode>3_1): Rename from xorsign<mode>3_1.
14760         (@x86_shift<mode>_adj_1): Rename from x86_shift<mode>_adj_1.
14761         (@x86_shift<mode>_adj_2): Rename from x86_shift<mode>_adj_2.
14762         (@x86_shift<mode>_adj_3): Rename from x86_shift<mode>_adj_3.
14763         (cmpstrnsi): Use gen_cmp_1.
14764         (lwp_slwpcb): Use gen_lwp_slwpcb_1.
14765         (@lwp_slwpcb<mode>_1): Rename from lwp_slwpcb<mode>_1.
14766         (@umonitor_<mode>): Rename from umonitor_<mode>.
14767         * config/i386/i386-expand.c (ix86_expand_copysign):
14768         Use gen_copysign3_const and gen_copysign3_var.
14769         (ix86_expand_xorsign): Use gen_xorsign3_1.
14770         (ix86_expand_branch): Use gen_sub3_carry_ccc,
14771         gen_sub3_carry_ccgz and gen_cmp1.
14772         (ix86_expand_int_addcc): Use gen_sub3_carry and gen_add3_carry.
14773         (ix86_split_ashl): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_2.
14774         (ix86_split_ashr): Use gen_x86_shift_adj_1 and gen_x86_shift_adj_3.
14775         (ix86_split_lshr): Ditto.
14776         (ix86_expand_builtin) <case IX86_BUILTIN_UMONITOR>: Use gen_umonitor.
14778 2019-06-18  Jason Merrill  <jason@redhat.com>
14780         * tree.c (build_constructor): Add MEM_STAT_DECL.
14782 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14784         * config/aarch64/aarch64-modes.def (CC_NZC): New CC_MODE.
14785         * config/aarch64/aarch64-sve.md (*<optab><mode>3_cc)
14786         (ptest_ptrue<mode>, while_ult<GPI:mode><PRED_ALL:mode>)
14787         (*while_ult<GPI:mode><PRED_ALL:mode>_cc, *cmp<cmp_op><mode>)
14788         (*cmp<cmp_op><mode>_ptest, *cmp<cmp_op><mode>_cc)
14789         (*pred_cmp<cmp_op><mode>_combine, *pred_cmp<cmp_op><mode>)
14790         (vec_cmp<mode><vpred>, vec_cmpu<mode><vpred>, cbranch<mode>4):
14791         Use CC_NZC instead of CC.
14792         * config/aarch64/aarch64.md (condjump): Print a '.' in SVE conditions.
14793         * config/aarch64/aarch64.c (aarch64_sve_condition_codes): New variable.
14794         (aarch64_print_operand): Handle E_CC_NZCmode.
14795         (aarch64_emit_sve_ptrue_op_cc): Use gen_set_clobber_cc_nzc instead
14796         of gen_set_clobber_cc.
14798 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14800         * config/aarch64/aarch64-sve.md: Tabify file.
14802 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14804         * config/aarch64/aarch64-protos.h (aarch64_pfalse_reg): Declare.
14805         * config/aarch64/aarch64.c (aarch64_pfalse_reg): New function.
14806         * config/aarch64/aarch64-sve.md: Use it.
14808 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14810         * config/aarch64/aarch64-protos.h (aarch64_ptrue_reg): Declare.
14811         * config/aarch64/aarch64.c (aarch64_ptrue_reg): New functions.
14812         (aarch64_expand_sve_widened_duplicate, aarch64_expand_sve_mem_move)
14813         (aarch64_maybe_expand_sve_subreg_move, aarch64_evpc_rev_local)
14814         (aarch64_expand_sve_vec_cmp_int): Use it.
14815         (aarch64_expand_sve_vec_cmp_float): Likewise.
14816         * config/aarch64/aarch64-sve.md: Likewise throughout.
14818 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14819             Kugan Vivekanandarajah  <kuganv@linaro.org>
14821         * config/aarch64/aarch64-sve.md (*cond_<optab><mode>_0): Delete.
14822         (*cond_<optab><mode>_z): Fold into...
14823         (*cond_<optab><mode>_any): ...here.  Also handle cases in which
14824         operand 4 can be tied to operand 0 (either inherently or via RA).
14826 2019-06-18  Richard Biener  <rguenther@suse.de>
14828         PR debug/90900
14829         * cfgexpand.c (expand_debug_expr): Treat NOTE_P DECL_RTL
14830         as if optimized away.
14832 2019-06-18  Tom de Vries  <tdevries@suse.de>
14834         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Remove.
14835         * config/nvptx/nvptx.c (gen_set_softstack_insn): Remove.
14836         * config/nvptx/nvptx.md (define_insn "set_softstack_<mode>"):
14837         Rename to ...
14838         (define_insn "@set_softstack_<mode>"): ... this.
14839         (define_insn "omp_simt_enter_<mode>"): Rename to ...
14840         (define_insn "@omp_simt_enter_<mode>"): ... this.
14841         (define_insn "omp_simt_exit_<mode>"): Rename to ...
14842         (define_insn "@omp_simt_exit_<mode>"): ... this.
14844 2019-06-18  Richard Sandiford  <richard.sandiford@arm.com>
14846         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): Remove
14847         vf parameter.  Restore the previous iv step of nscalars_step,
14848         but give it iv_type rather than compare_type.  Tweak code order
14849         to match the comments.
14850         (vect_set_loop_condition_masked): Update accordingly.
14851         * tree-vect-loop.c (vect_verify_full_masking): Use "unsigned int"
14852         for iv_precision.  Tweak comment formatting.
14854 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
14856         * config/darwin.c: Strip trailing whitespace.
14858 2019-06-18  Iain Sandoe  <iain@sandoe.co.uk>
14860         * config/darwin.c (darwin_emit_unwind_label): New default to false.
14861         (darwin_override_options): Set darwin_emit_unwind_label as needed.
14863 2019-06-18  Martin Jambor  <mjambor@suse.cz>
14865         PR ipa/90889
14866         * ipa-cp.c (ignore_edge_p): Do not ignore edges when only the
14867         caller does not have flag_ipa_cp set.
14869 2019-06-18  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
14871         * config/aarch64/aarch64-sve.md (mask_fold_left_plus_<mode>): Renamed
14872         from "*fold_left_plus_<mode>", updated operands order.
14873         * doc/md.texi (mask_fold_left_plus_@var{m}): Documented new optab.
14874         * internal-fn.c (mask_fold_left_direct): New define.
14875         (expand_mask_fold_left_optab_fn): Likewise.
14876         (direct_mask_fold_left_optab_supported_p): Likewise.
14877         * internal-fn.def (MASK_FOLD_LEFT_PLUS): New internal function.
14878         * optabs.def (mask_fold_left_plus_optab): New optab.
14879         * tree-vect-loop.c (mask_fold_left_plus_optab): New function to get a
14880         masked internal_fn for a reduction ifn.
14881         (vectorize_fold_left_reduction): Add support for masking reductions.
14883 2019-06-18  Kewen Lin  <linkw@gcc.gnu.org>
14885         PR middle-end/80791
14886         * target.def (predict_doloop_p): New hook.
14887         * targhooks.h (default_predict_doloop_p): New declaration.
14888         * targhooks.c (default_predict_doloop_p): New function.
14889         * doc/tm.texi.in (TARGET_PREDICT_DOLOOP_P): New hook.
14890         * doc/tm.texi: Regenerate.
14891         * config/rs6000/rs6000.c (rs6000_predict_doloop_p): New function.
14892         (TARGET_PREDICT_DOLOOP_P): New macro.
14893         * tree-ssa-loop-ivopts.c (generic_predict_doloop_p): New function.
14895 2019-06-17  Jakub Jelinek  <jakub@redhat.com>
14897         * omp-low.c (struct omp_context): Add scan_inclusive field.
14898         (scan_omp_1_stmt) <case GIMPLE_OMP_SCAN>: Set ctx->scan_inclusive
14899         if inclusive scan.
14900         (struct omplow_simd_context): Add lastlane member.
14901         (lower_rec_simd_input_clauses): Add rvar argument, handle inscan
14902         reductions.  Build 2 or 3 argument .GOMP_SIMD_LANE calls rather than
14903         1 or 2 argument.
14904         (lower_rec_input_clauses): Handle inscan reductions in simd contexts.
14905         (lower_lastprivate_clauses): Set TREE_THIS_NOTRAP on the ARRAY_REF.
14906         (lower_omp_scan): New function.
14907         (lower_omp_1) <case GIMPLE_OMP_SCAN>: Use lower_omp_scan.
14908         * tree-ssa-dce.c (eliminate_unnecessary_stmts): For IFN_GOMP_SIMD_LANE
14909         check 3rd argument if present rather than 2nd.
14910         * tree-vectorizer.h (struct _loop_vec_info): Add scan_map member.
14911         (struct _stmt_vec_info): Change simd_lane_access_p from bool into
14912         2-bit bitfield.
14913         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
14914         scan_map.  For IFN_GOMP_SIMD_LANE check 3rd argument if present rather
14915         than 2nd.
14916         (_loop_vec_info::~_loop_vec_info): Delete scan_map.
14917         * tree-vect-data-refs.c (vect_analyze_data_ref_accesses): Allow two
14918         different STMT_VINFO_SIMD_LANE_ACCESS_P refs if they have the same
14919         init.
14920         (vect_find_stmt_data_reference): Encode in ->aux the 2nd
14921         IFN_GOMP_SIMD_LANE argument.
14922         (vect_analyze_data_refs): Set STMT_VINFO_SIMD_LANE_ACCESS_P from the
14923         encoded ->aux value.
14924         * tree-vect-stmts.c: Include attribs.h.
14925         (vectorizable_call): Adjust comment about IFN_GOMP_SIMD_LANE.
14926         (scan_operand_equal_p, check_scan_store, vectorizable_scan_store): New
14927         functions.
14928         (vectorizable_load): For STMT_VINFO_SIMD_LANE_ACCESS_P tests use != 0.
14929         (vectorizable_store): Handle STMT_VINFO_SIMD_LANE_ACCESS_P > 1.
14931 2019-06-17  UroÅ¡ Bizjak  <ubizjak@gmail.com>
14933         PR target/62055
14934         * config/i386/i386.md (*nabstf2_1): New insn pattern.
14935         (*nabs<mode>2_1): Ditto.
14936         (nabs sse-reg splitter): New splitter.
14937         * config/i386/sse.md (*nabs<mode>2): New insn_and_split pattern.
14939 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
14941         PR bootstrap/90873.
14942         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Fix
14943         TMR index check.
14945 2019-06-17  Tom de Vries  <tdevries@suse.de>
14947         * config/nvptx/nvptx-protos.h (gen_set_softstack_insn): Declare.
14948         * config/nvptx/nvptx.c (gen_set_softstack_insn): New function.
14949         * config/nvptx/nvptx.md (define_insn "set_softstack_insn"): Rename to
14950         ...
14951         (define_insn "set_softstack_<mode>"): ... this.  Use P iterator on
14952         match_operand 0.
14953         (define_insn "omp_simt_enter_insn"): Rename to ...
14954         (define_insn "omp_simt_enter_<mode>"): ... this.  Use P iterator on
14955         match_operand 0, 1 and 2, as well as the unspec_volatile result.
14956         (define_expand "omp_simt_enter): Use gen_omp_simt_enter_di and
14957         gen_omp_simt_enter_si.
14958         (define_expand "omp_simt_exit"): New.
14959         (define_insn "omp_simt_exit"): Rename to ...
14960         (define_insn "omp_simt_exit_<mode>"): ... this.  Use P iterator on
14961         match_operand 0.
14963 2019-06-17  Matthew Green  <mrg@eterna.com.au>
14964             Maya Rashish  <coypu@sdf.org>
14966         * config.gcc (aarch64*-*-netbsd*): New target.
14967         * config/aarch64/aarch64-netbsd.h: New file.
14968         * config/aarch64/t-aarch64-netbsd: Likewise.
14970 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
14972         * tree-ssa-alias.c (aliasing_component_refs_p): Consider only
14973         the access path from base to first VIEW_CONVERT_EXPR or
14974         BIT_FIELD_REF.
14976 2019-06-17  Jan Hubicka  <hubicka@ucw.cz>
14978         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Also truncate
14979         access path on BIT_FIELD_REFs.
14981 2019-06-17  Martin Liska  <mliska@suse.cz>
14983         PR ipa/90874
14984         * ipa-utils.h (odr_type_p): Remove dead code.
14986 2019-06-17  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
14988         * configure.ac (ld_vers) <*-*-solaris2*>: Remove support for
14989         alternative Solaris 11.4 format.
14990         * configure: Regenerate.
14992 2019-06-17  Tom de Vries  <tdevries@suse.de>
14994         * config/nvptx/nvptx.md (define_insn "call_insn"): Rename to ...
14995         (define_insn "call_insn_<mode>"): ... this.  Use P iterator on
14996         match_operand 0.
14997         (define_insn "call_value_insn"): Rename to ...
14998         (define_insn "call_value_insn_<mode>"): this.  Use P iterator on
14999         match_operand 0.
15000         (define_insn "nvptx_red_partition"): Set unspec_volatile result mode to
15001         DI.
15003 2019-06-16  John David Anglin  <danglin@gcc.gnu.org>
15005         PR middle-end/64242
15006         * config/pa/pa.md (nonlocal_goto): Restore frame pointer last.  Add
15007         frame clobbers and schedule block.
15008         (builtin_longjmp): Likewise.
15010 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15012         * config/msp430/msp430.c (msp430_expand_helper): Setup arguments which
15013         describe how to perform MSPABI compliant 64-bit shift.
15014         * config/msp430/msp430.md (ashldi3): New define_expand.
15015         (ashrdi3): New define_expand.
15016         (lshrdi3): New define_expand.
15018 2019-06-16  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15020         * doc/sourcebuild.texi: Document new effective target keyword
15021         longlong64.
15023 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
15025         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p,
15026         indirect_refs_may_alias_p): Revert accidental commits.
15028         * tree-ssa-alias.c (aliasing_component_refs_p): Watch for arrays
15029         at the end of structures.
15031 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
15033         * config/darwin.c (machopic_indirect_call_target): Use renamed
15034         darwin_picsymbol_stubs to decide on output.
15035         (darwin_override_options): Handle darwin_picsymbol_stubs.
15036         * config/darwin.h (MIN_LD64_OMIT_STUBS): New.
15037         (LD64_VERSION): Revise default.
15038         * config/darwin.opt: (mpic-symbol-stubs): New option.
15039         (darwin_picsymbol_stubs): New variable.
15040         * config/i386/darwin.h (TARGET_MACHO_BRANCH_ISLANDS):
15041         rename to TARGET_MACHO_PICSYM_STUBS.
15042         * config/i386/i386.c (output_pic_addr_const): Likewise.
15043         * config/i386/i386.h Likewise.
15044         * config/rs6000/darwin.h: Likewise.
15045         * config/rs6000/rs6000.c (rs6000_call_darwin_1): Use renamed
15046         darwin_picsymbol_stubs.
15048 2019-06-16  Iain Sandoe  <iain@sandoe.co.uk>
15050         * config/darwin.opt (prebind, noprebind, seglinkedit,
15051         noseglinkedit): Add RejectNegative.
15053 2019-06-16  Jan Hubicka  <hubicka@ucw.cz>
15055         * tree-ssa-alias.c (nonoverlapping_component_refs_p): Fix pasto
15056         in my previous patch.
15058 2019-06-16  Tom de Vries  <tdevries@suse.de>
15060         PR tree-optimization/89376
15061         * tree-parloops.c (oacc_entry_exit_ok_1): Handle red == NULL.
15063 2019-06-15  Maya Rashish  <coypu@sdf.org>
15065         * doc/invoke.texi (Spec Files): Update location of the
15066         Fortran spec file.
15068 2019-06-15  Gerald Pfeifer  <gerald@pfeifer.com>
15070         * doc/extend.texi (Common Function Attributes): Clarify
15071         no_sanitize.  Fix grammar.
15073 2019-06-15  Jan Hubicka  <hubicka@ucw.cz>
15075         * tree-ssa-alias.c (alias_stats): Add
15076         nonoverlapping_component_refs_p_may_alias,
15077         nonoverlapping_component_refs_p_no_alias,
15078         nonoverlapping_component_refs_of_decl_p_may_alias,
15079         nonoverlapping_component_refs_of_decl_p_no_alias.
15080         (dump_alias_stats): Dump them.
15081         (nonoverlapping_component_refs_of_decl_p): Add stats.
15082         (nonoverlapping_component_refs_p): Add stats; do not stop on first
15083         ARRAY_REF.
15085 2019-06-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15087         * config/i386/i386.md (and<mode>3): Generate zero-extends for
15088         TARGET_ZERO_EXTEND_WITH_AND && optimize_function_for_speed_p (cfun))
15089         only.
15090         (*anddi3_doubleword): Split before reload. Merge with
15091         anddi->zext pre-reload splitter.
15092         (*andndi3_doubleword): Split before reload.
15093         (*<code>di3_doubleword): Ditto.
15094         (*one_cmpldi2_doubleword): Ditto.
15096 2019-06-15  Jakub Jelinek  <jakub@redhat.com>
15098         PR middle-end/90779
15099         * gimplify.c: Include omp-offload.h and context.h.
15100         (gimplify_bind_expr): Add "omp declare target" attributes
15101         to static block scope variables inside of target region or target
15102         functions.
15104 2019-06-15  Tom de Vries  <tdevries@suse.de>
15106         PR tree-optimization/90009
15107         * tree-ssa-threadbackward.c (thread_jumps::profitable_jump_thread_path):
15108         Return NULL if bb contains IFN_UNIQUE.
15110 2019-06-14  Segher Boessenkool  <segher@kernel.crashing.org>
15112         * config/rs6000/rs6000.md (CCEITHER): New define_mode_iterator.
15113         (un): New define_mode_attr.
15114         (isel_signed_<mode>, isel_unsigned_<mode>): Delete, merge into ...
15115         (isel_<un>signed_<GPR:mode>): ... this.  New define_insn.
15116         (isel_reversed_signed_<mode>, isel_reversed_unsigned_<mode>): Delete,
15117         merge into ...
15118         (isel_reversed_<un>signed_<GPR:mode>): ... this.  New define_insn.
15120 2019-06-14  Iain Sandoe  <iain@sandoe.co.uk>
15122         * config/darwin.opt: Add RejectNegative where needed, reorder
15123         and add minimal functional descriptions.
15125 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
15127         PR rtl-optimization/90765
15128         * calls.c (update_stack_alignment_for_call): New function.
15129         (expand_call): Call update_stack_alignment_for_call when
15130         outgoing parameter is passed in the stack.
15131         (emit_library_call_value_1): Likewise.
15132         * function.c (locate_and_pad_parm): Don't update
15133         stack_alignment_needed and preferred_stack_boundary.
15135 2019-06-14  H.J. Lu  <hongjiu.lu@intel.com>
15137         PR target/90877
15138         * config/i386/i386-features.c
15139         (dimode_scalar_chain::compute_convert_gain): Replace
15140         mmxsse_to_integer with sse_to_integer.
15141         * config/i386/i386.c (ix86_register_move_cost): Verify that
15142         moves between MMX and non-MMX units require secondary memory.
15143         Correct costs of moves between SSE and integer units.
15144         * config/i386/i386.h (processor_costs): Rename cost of moving
15145         SSE register to integer to sse_to_integer.  Rename cost of
15147 2019-06-14  Matt Thomas  <matt@3am-software.com>
15148             Matthew Green  <mrg@eterna.com.au>
15149             Nick Hudson  <skrll@netbsd.org>
15150             Maya Rashish  <coypu@sdf.org>
15151             Richard Earnshaw  <rearnsha@arm.com>
15153         * config.gcc (arm*-*-netbsdelf*) Add support for EABI configuration.
15154         * config.host (arm*-*-netbsd*): Use driver-arm.o on native NetBSD.
15155         * config/arm/netbsd-eabi.h: New file.
15156         * config/arm/netbsd-elf.h (TARGET_OS_CPP_BUILTINS): Undefine before
15157         redefining.
15158         (SUBTARGET_EXTRA_ASM_SPEC): Don't pass -matpcs to the assembler.
15159         * config/netbsd-elf.h (NETBSD_LINK_LD_ELF_SO_SPEC): New define.
15160         (NETBSD_SUBTARGET_EXTRA_SPECS): New define.
15161         (SUBTARGET_EXTRA_SPECS): Define to NETBSD_SUBTARGET_EXTRA_SPECS.
15163 2019-06-14  Richard Biener  <rguenther@suse.de>
15165         * tree-loop-distribution.c (classify_partition): Return
15166         whether a reduction appeared in all partitions and do not
15167         stop builtin detection because of this.
15168         (distribute_loop): Sort a non-builtin partition last if
15169         there's a reduction in all partitions and make sure the
15170         partition prevailing as last is not a builtin.
15172 2019-06-14  Feng Xue  <fxue@os.amperecomputing.com>
15174         PR ipa/90401
15175         * ipa-prop.c (add_to_agg_contents_list): New function.
15176         (clobber_by_agg_contents_list_p): Likewise.
15177         (extract_mem_content): Likewise.
15178         (get_place_in_agg_contents_list): Delete.
15179         (determine_known_aggregate_parts): Renamed from
15180         determine_locally_known_aggregate_parts.  New parameter
15181         aa_walk_budget_p.
15183 2019-06-13  Martin Sebor  <msebor@redhat.com>
15185         PR tree-optimization/90662
15186         * tree-ssa-strlen.c (get_stridx): Convert fold_build2 operands
15187         to the same type.
15189 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
15191         PR bootstrap/90873
15192         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Also check that
15193         dbase is not TARGET_MEM_REF.
15195 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15197         * config/i386/i386.md (SWIM1248s): Rename from SWIM1248x.
15198         Update all uses.
15199         (and<mode>3): Use gen_extend_insn instead of indirect functions.
15200         Do not generate DImode extends for 32bit targets.
15201         (and->zext post-reload splitter): Use gen_extend_insn
15202         instead of indirect functions.
15203         (anddi->zext pre-reload splitter): New.
15204         (*zext<mode>_doubleword_and): Remove.
15205         (*zext<mode>_doubleword): Ditto.
15206         (*zextsi_doubleword): Dittto.
15208 2019-06-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15210         * config/i386/i386-expand.c (ix86_expand_int_sse_cmp):
15211         Use gen_sub3_insn instead of indirect function.
15212         (ix86_expand_ashl_const): Use gen_add2_insn instead of
15213         indirect function.
15214         (ix86_adjust_counter): Ditto.
15216 2019-06-13  Jiufu Guo  <guojiufu@linux.ibm.com>
15217             Lijia He  <helijia@linux.ibm.com>
15219         PR tree-optimization/77820
15220         * tree-ssa-threadedge.c
15221         (edge_forwards_cmp_to_conditional_jump_through_empty_bb_p): New
15222         function.
15223         (thread_across_edge): Add call to
15224         edge_forwards_cmp_to_conditional_jump_through_empty_bb_p.
15226 2019-06-13  Iain Sandoe  <iain@sandoe.co.uk>
15228         * config/darwin-driver.c (validate_macosx_version_min): New.
15229         (darwin_default_min_version): Cleanup and validate supplied version.
15230         (darwin_driver_init): Likewise and push cleaned version into opts.
15232 2019-06-13  Jan Hubicka  <hubicka@ucw.cz>
15234         PR tree-optimization/90869
15235         * tree-ssa-alias.c (indirect_ref_may_alias_decl_p): Watch for view
15236         converts in MEM_REF referencing decl rather than view converts
15237         from decl type to MEM_REF type.
15239 2019-06-13  Richard Biener  <rguenther@suse.de>
15241         PR tree-optimization/90856
15242         * tree-sra.c (build_ref_for_model): Only use
15243         build_reconstructed_reference when address-spaces are the same.
15245 2019-06-13  Jakub Jelinek  <jakub@redhat.com>
15247         * config/nvptx/nvptx.c (nvptx_sese_number, nvptx_sese_pseudo): Don't
15248         wrap ei variable name in the declaration in ()s.
15249         (nvptx_single): Actually use mode_label variable.  Formatting fix.
15251 2019-06-13  Richard Biener  <rguenther@suse.de>
15253         * tree-vectorizer.h (vect_loop_vectorized_call): Declare.
15254         * tree-vectorizer.c (vect_loop_vectorized_call): Export and
15255         also return the condition stmt.
15256         * tree-vect-loop-manip.c (vect_loop_versioning): Compute outermost
15257         loop we can version and version that, reusing the loop version
15258         created by if-conversion instead of versioning again.
15260 2019-06-13  Aldy Hernandez  <aldyh@redhat.com>
15262         * gimple-loop-versioning.cc (prune_loop_conditions): Use
15263         may_contain_p.
15264         * tree-vrp (value_range_base::may_contain_p): Call into
15265         value_inside_range.
15266         (value_inside_range): Make private inside value_range_base class.
15267         Take min/max from *this.
15268         (range_includes_p): Remove.
15269         * tree-vrp.h (value_range_base): Add value_inside_range.
15270         (range_includes_p): Remove.
15271         (range_includes_zero_p): Call may_contain_p.
15272         * vr-values.c (compare_range_with_value): Same.
15274 2019-06-13  Claudiu Zissulescu  <claziss@synopsys.com>
15276         * doc/extend.texi (ARC Function Attributes): Update info.
15278 2019-06-13  Feng Xue  <fxue@os.amperecomputing.com>
15280         PR tree-optimization/89713
15281         * doc/invoke.texi (-ffinite-loops): Document new option.
15282         * common.opt (-ffinite-loops): New option.
15283         * tree-ssa-dce.c (mark_stmt_if_obviously_necessary): Mark
15284         IFN_GOACC_LOOP calls as necessary.
15285         * tree-ssa-loop-niter.c (finite_loop_p): Assume loop with an exit
15286         is finite.
15287         * omp-offload.c (oacc_xform_loop): Skip lowering if return value of
15288         IFN_GOACC_LOOP call is not used.
15289         * opts.c (default_options_table): Enable -ffinite-loops at -O2+.
15291 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15293         PR target/88838
15294         * tree-vect-loop-manip.c (vect_set_loop_masks_directly): If the
15295         compare_type is not with Pmode size, we will create an IV with
15296         Pmode size with truncated use (i.e. converted to the correct type).
15297         * tree-vect-loop.c (vect_verify_full_masking): Find IV type.
15298         (vect_iv_limit_for_full_masking): New. Factored out of
15299         vect_set_loop_condition_masked.
15300         * tree-vectorizer.h (LOOP_VINFO_MASK_IV_TYPE): New.
15301         (vect_iv_limit_for_full_masking): Declare.
15303 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15305         PR target/88834
15306         * tree-ssa-loop-ivopts.c (get_mem_type_for_internal_fn): Handle
15307         IFN_MASK_LOAD_LANES and IFN_MASK_STORE_LANES.
15308         (get_alias_ptr_type_for_ptr_address): Likewise.
15309         (add_iv_candidate_for_use): Add scaled index candidate if useful.
15310         * tree-ssa-address.c (preferred_mem_scale_factor): New.
15311         * config/aarch64/aarch64.c (aarch64_classify_address): Relax
15312         allow_reg_index_p.
15314 2019-06-13  Kugan Vivekanandarajah  <kugan.vivekanandarajah@linaro.org>
15316         * config/aarch64/iterators.md (ADDSUB): Fix typo in comment.
15318 2019-06-12  Dimitar Dimitrov  <dimitar@dinux.eu>
15320         * common/config/pru/pru-common.c: New file.
15321         * config.gcc: Add PRU target.
15322         * config/pru/alu-zext.md: New file.
15323         * config/pru/constraints.md: New file.
15324         * config/pru/predicates.md: New file.
15325         * config/pru/pru-opts.h: New file.
15326         * config/pru/pru-passes.c: New file.
15327         * config/pru/pru-pragma.c: New file.
15328         * config/pru/pru-protos.h: New file.
15329         * config/pru/pru.c: New file.
15330         * config/pru/pru.h: New file.
15331         * config/pru/pru.md: New file.
15332         * config/pru/pru.opt: New file.
15333         * config/pru/t-pru: New file.
15334         * doc/extend.texi: Document PRU pragmas.
15335         * doc/invoke.texi: Document PRU-specific options.
15336         * doc/md.texi: Document PRU asm constraints.
15338 2019-06-12  Martin Sebor  <msebor@redhat.com>
15340         PR middle-end/90676
15341         * tree-pretty-print.c (dump_mem_ref): New function.  Include
15342         MEM_REF type in output when different size than operand.
15343         (dump_generic_node): Move code to dump_mem_ref and call it.
15345 2019-06-12  Martin Sebor  <msebor@redhat.com>
15347         PR tree-optimization/90662
15348         * tree-ssa-strlen.c (get_stridx): Handle simple VLAs and pointers
15349         to arrays.
15351 2019-06-12  Tom de Vries  <tdevries@suse.de>
15353         PR tree-optimization/90009
15354         * config/nvptx/nvptx.c (nvptx_find_par): Assert fork has at most join.
15356 2019-06-12  Martin Liska  <mliska@suse.cz>
15358         * ggc-common.c (ggc_prune_overhead_list): Do not sanitize
15359         the created map.
15360         * hash-map.h: Add sanitize_eq_and_hash into ::hash_map.
15361         * mem-stats.h (mem_alloc_description::mem_alloc_description):
15362         Do not sanitize created maps.
15364 2019-06-12  Aldy Hernandez  <aldyh@redhat.com>
15366         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children): Use
15367         value_range::singleton_p.
15368         * tree-vrp.c (value_range_constant_singleton): Remove.
15369         * tree-vrp.h (value_range_constant_singleton): Remove.
15370         * vr-values.c (vr_values::singleton): Use
15371         value_range::singleton_p.
15373 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
15375         PR target/90811
15376         * cfgexpand.c (align_local_variable): Add really_expand argument,
15377         don't SET_DECL_ALIGN if it is false.
15378         (add_stack_var): Add really_expand argument, pass it through to
15379         align_local_variable.
15380         (expand_one_stack_var_1): Pass true as really_expand to
15381         align_local_variable.
15382         (expand_one_ssa_partition): Pass true as really_expand to
15383         add_stack_var.
15384         (expand_one_var): Pass really_expand through to add_stack_var.
15386 2019-06-12  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
15388         * config/arm/iterators.md (VABAL): New int iterator.
15389         * config/arm/neon.md (<sup>sadv16qi): New define_expand.
15390         * config/arm/unspecs.md ("unspec"): Define UNSPEC_VABAL_S,
15391         UNSPEC_VABAL_U values.
15393 2019-06-12  Martin Liska  <mliska@suse.cz>
15395         * value-prof.c (stream_out_histogram_value): Only first value
15396         can't be negative.
15398 2019-06-12  Jakub Jelinek  <jakub@redhat.com>
15400         PR c/90760
15401         * symtab.c (symtab_node::set_section): Allow being called on aliases
15402         as long as they aren't analyzed yet.
15404 2019-06-11  Faraz Shahbazker  <fshahbazker@wavecomp.com>
15406         * config/mips/mips.c (mips_final_postscan_insn): Modify call
15407         to `mips_set_text_contents_type' to indicate whether a
15408         non-debug insn follows.
15410 2019-06-11  Michael Meissner  <meissner@linux.ibm.com>
15412         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Delete
15413         enabling -mpcrel by default.
15414         * config/rs6000/rs6000.c (rs6000_option_override_internal): Update
15415         test for -mpcrel and/or -mprefixed-addr needing -mcpu=future, so
15416         that the test against -mcpu=future is done first.  Then test if
15417         -mprefixed-addr is on for -mpcrel.
15418         (rs6000_disable_incompatible_switches): Add -mcpu=future support.
15420 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
15422         PR target/90811
15423         * config/nvptx/nvptx.c (nvptx_output_softstack_switch): Use and.b%d
15424         instead of and.u%d.
15426 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
15428         * match.pd (X/[ex]4<Y/[ex]4): Handle conversions.
15430 2019-06-11  Matthew Beliveau  <mbelivea@redhat.com>
15432         PR c++/90449 - add -Winaccessible-base option.
15433         * doc/invoke.texi (Winaccessible-base): Document.
15435 2019-06-11  Marc Glisse  <marc.glisse@inria.fr>
15437         PR tree-optimization/62041
15438         * fold-const.c (fold_real_zero_addition_p): Handle vectors.
15440 2019-06-11  Jason Merrill  <jason@redhat.com>
15442         * gdbhooks.py (TreePrinter.to_string): Recognize ggc_free'd memory.
15443         * tree.c (get_tree_code_name): Likewise.
15444         * print-tree.c (print_node): Only briefly print a node with an
15445         invalid code.
15447 2019-06-11  Jakub Jelinek  <jakub@redhat.com>
15449         PR bootstrap/90819
15450         * trans-mem.c (tm_memopt_compute_available): Add assertion
15451         that blocks is not empty.  Formatting fix.
15453 2019-06-11  Martin Liska  <mliska@suse.cz>
15455         PR c++/87847
15456         * hash-table.h: Extend create_gcc, add one parameter
15457         that is passed into hash_table::hash_table.
15459 2019-06-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
15461         * config/i386/i386-protos.h (ix86_split_fp_absneg_operator):
15462         New prototype.
15463         * config/i386/i386-expand.c (ix86_expand_fp_absneg_operator):
15464         Emit clobber also for non-sse operations.
15465         (ix86_split_fp_absneg_operator): New function.
15466         * config/i386/i386.md (SSEMODEF): New mode iterator.
15467         (ssevecmodef): New mode attribute.
15468         (<code>tf2): Use absneg code iterator.
15469         (*<code>tf2_1): Rename from *absnegtf3_sse. Use absneg code iterator.
15470         Add three-operand AVX alternatives.
15471         (*<code><mode>2_i387_1): Rename from *absnegxf2_i387.
15472         Use absneg code iterator and X87MODEF mode iterator.
15473         (absneg fp_reg non-sse splitter): Call absneg code iterator
15474         and X87MODEF mode iterator.
15475         (absneg general_reg non-sse splitter): Use absneg code iterator
15476         and X87MODEF mode iterator.  Use ix86_split_fp_absneg_operator.
15477         (*<code><mode>2_1): Rename from *absneg<mode>2.  Use absneg
15478         code iterator.  Add three-operand AVX alternative.
15479         (absneg sse_reg splitter): Use absneg code iterator
15480         and SSEMODEF mode iterator.  Handle AVX operands.
15481         (absneg fp_reg splitter): Use absneg code iterator
15482         and MODEF mode iterator.
15483         (absneg general_reg splitter): Merge splitters using MODEF mode
15484         iterator.  Use absneg code iterator.  Call
15485         ix86_split_fp_absneg_operator.
15486         (*<code><mode>2_i387): Rename from *<code><mode>2_1.
15487         Do not enable for non-sse modes before reload.
15488         (CSGNMODE): Remove.
15489         (CSGNVMODE): Ditto.
15490         (copysing<mode>3): Use SSEMODEF instead of CSGNMODE and
15491         ssevecmodef mode attribute instaed of CSGNVMODE.
15492         (copysign<mode>3_const): Ditto.
15493         (copysign<mode>3_var): Ditto.
15494         * config/i386/i386.md (*<code><mode>2): Rename from *absneg<mode>2.
15495         Use absneg code iterator.  Simplify code using std::swap.
15496         * config/i386/predicates.md (absneg_operator): Remove.
15498 2019-06-10  Martin Sebor  <msebor@redhat.com>
15500         * gimple-fold.c (get_range_strlen): Update comment that didn't
15501         make it into r267503 or related commits.
15503 2019-06-10  Vladislav Ivanishin  <vlad@ispras.ru>
15505         * gcov-tool.c (merge_usage, rewrite_usage): Mark with
15506         ATTRIBUTE_NORETURN thus making consistent with overlap_usage.
15508 2019-06-10  Jakub Jelinek  <jakub@redhat.com>
15510         * tree.def (OMP_SCAN): New tree code.
15511         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE_INCLUSIVE and
15512         OMP_CLAUSE_EXCLUSIVE.
15513         * tree.h (OMP_CLAUSES): Use OMP_SCAN instead of OMP_TASKGROUP.
15514         (OMP_SCAN_BODY, OMP_SCAN_CLAUSES): Define.
15515         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add entries for
15516         OMP_CLAUSE_{IN,EX}CLUSIVE.
15517         (walk_tree_1): Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15518         * tree-nested.c (convert_nonlocal_reference_stmt,
15519         convert_local_reference_stmt, convert_gimple_call): Handle
15520         GIMPLE_OMP_SCAN.
15521         * tree-pretty-print.c (dump_omp_clause): Handle
15522         OMP_CLAUSE_{IN,EX}CLUSIVE.
15523         (dump_generic_node): Handle OMP_SCAN.
15524         * gimple.def (GIMPLE_OMP_SCAN): New gimple code.
15525         * gimple.h (gomp_scan): New type.
15526         (is_a_helper <gomp_scan *>::test,
15527         is_a_helper <const gomp_scan *>::test): New templates.
15528         (gimple_build_omp_scan): Declare.
15529         (gimple_omp_scan_clauses, gimple_omp_scan_clauses_ptr,
15530         gimple_omp_scan_set_clauses): New inline functions.
15531         (CASE_GIMPLE_OMP): Add case GIMPLE_OMP_SCAN:.
15532         * gimple.c (gimple_build_omp_scan): New function.
15533         (gimple_copy): Handle GIMPLE_OMP_SCAN.
15534         * gimple-walk.c (walk_gimple_op, walk_gimple_stmt): Likewise.
15535         * gimple-pretty-print.c (dump_gimple_omp_block): Don't handle
15536         GIMPLE_OMP_TASKGROUP.
15537         (dump_gimple_omp_scan): New function.
15538         (pp_gimple_stmt_1): Handle GIMPLE_OMP_SCAN.
15539         * gimple-low.c (lower_stmt): Handle GIMPLE_OMP_SCAN.
15540         * tree-inline.c (remap_gimple_stmt, estimate_num_insns): Likewise.
15541         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_REDUCTION_INSCAN.
15542         (is_gimple_stmt): Handle OMP_SCAN.
15543         (gimplify_scan_omp_clauses): Reject inscan reductions on constructs
15544         other than OMP_FOR or OMP_SIMD.  Handle OMP_CLAUSE_{IN,EX}CLUSIVE.
15545         (gimplify_adjust_omp_clauses): Diagnose inscan reductions not
15546         mentioned in nested #pragma omp scan.  Handle
15547         OMP_CLAUSE_{IN,EX}CLUSIVE.
15548         (gimplify_expr): Handle OMP_SCAN.
15549         * omp-low.c (check_omp_nesting_restrictions): For parent context,
15550         look through GIMPLE_OMP_SCAN context.  Allow #pragma omp scan in
15551         simd constructs.
15552         (scan_omp_1_stmt, lower_omp_1, diagnose_sb_1, diagnose_sb_2): Handle
15553         GIMPLE_OMP_SCAN.
15555 2019-06-10  Martin Liska  <mliska@suse.cz>
15557         * ipa-cp.c (ignore_edge_p): New function.
15558         (build_toporder_info): Use it.
15559         * ipa-inline.c (ignore_edge_p): New function.
15560         (inline_small_functions): Use it.
15561         * ipa-pure-const.c (ignore_edge_for_nothrow):
15562         Verify opt_for_fn for caller and callee.
15563         (ignore_edge_for_pure_const): Likewise.
15564         * ipa-reference.c (ignore_edge_p): Extend to check
15565         for opt_for_fn.
15566         * ipa-utils.c (searchc): Refactor.
15567         * ipa-utils.h: Fix coding style.
15569 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
15571         * config/arc/arc.c (arc_rtx_costs): Update costs.
15573 2019-06-10  Claudiu Zissulescu  <claziss@synopsys.com>
15575         * config/arc/arc-protos.h (arc_check_ior_const): Declare.
15576         (arc_split_ior): Likewise.
15577         (arc_check_mov_const): Likewise.
15578         (arc_split_mov_const): Likewise.
15579         * config/arc/arc.c (arc_print_operand): Fix 'z' letter.
15580         (arc_rtx_costs): Replace check Crr with Cax constraint.
15581         (prepare_move_operands): Cleanup, remove unused code.
15582         (arc_split_ior): New function.
15583         (arc_check_ior_const): Likewise.
15584         (arc_split_mov_const): Likewise.
15585         (arc_check_mov_const): Likewise.
15586         * config/arc/arc.md (movsi_insn): Restructure it, and convert it
15587         in define_insn_and_split pattern.
15588         (iorsi3): Likewise.
15589         (mulsi3_v2): Add new matching variant.
15590         (andsi3_i): Cleanup pattern.
15591         (rotrsi3_cnt1): Update pattern.
15592         (rotrsi3_cnt8): New pattern.
15593         (ashlsi2_cnt8): Likewise.
15594         (ashlsi2_cnt16): Likewise.
15595         * config/arc/constraints.md (C0p): Update constraint.
15596         (Crr): Remove it.
15597         (C0x): New pattern.
15598         (Cax): New pattern.
15600 2019-06-10  Martin Liska  <mliska@suse.cz>
15602         * ipa-icf.c (sem_item_optimizer::parse_nonsingleton_classes):
15603         Update coding style.
15604         (sem_item_optimizer::dump_cong_classes):
15605         Print how many items are in a non-singular class.  Improve
15606         coding style.
15608 2019-06-10  Martin Liska  <mliska@suse.cz>
15610         * value-prof.c (dump_histogram_value): Change dump format.
15611         (gimple_mod_subtract_transform): Remove legacy comment.
15613 2019-06-10  Martin Liska  <mliska@suse.cz>
15615         * value-prof.c (dump_histogram_value): Print histogram values
15616         only if present.
15618 2019-06-10  Martin Liska  <mliska@suse.cz>
15620         * gcov-io.h (GCOV_DISK_SINGLE_VALUES): New.
15621         (GCOV_SINGLE_VALUE_COUNTERS): Likewise.
15622         * ipa-profile.c (ipa_profile_generate_summary):
15623         Use get_most_common_single_value.
15624         * tree-profile.c (gimple_init_gcov_profiler):
15625         Instrument with __gcov_one_value_profiler_v2
15626         and __gcov_indirect_call_profiler_v4.
15627         * value-prof.c (dump_histogram_value):
15628         Print all values for HIST_TYPE_SINGLE_VALUE.
15629         (stream_out_histogram_value): Update assert for
15630         N values.
15631         (stream_in_histogram_value): Set number of
15632         counters for HIST_TYPE_SINGLE_VALUE.
15633         (get_most_common_single_value): New.
15634         (gimple_divmod_fixed_value_transform):
15635         Use get_most_common_single_value.
15636         (gimple_ic_transform): Likewise.
15637         (gimple_stringops_transform): Likewise.
15638         (gimple_find_values_to_profile): Set number
15639         of counters for HIST_TYPE_SINGLE_VALUE.
15640         * value-prof.h (get_most_common_single_value): New.
15642 2019-06-10  Martin Liska  <mliska@suse.cz>
15644         * hash-map.h: Pass default value to hash_table ctor.
15645         * hash-table.h: Add default value to call of a ctor.
15647 2019-06-08  Jonathan Wakely  <jwakely@redhat.com>
15649         * doc/invoke.texi (C Dialect Options): Minor grammatical change.
15650         (x86 Options): Replace all uses of "PCL_MUL" with "PCLMUL"
15652 2019-06-07  John David Anglin  <danglin@gcc.gnu.orig>
15654         PR target/90751
15655         * config/pa/pa-linux.h (ASM_DECLARE_FUNCTION_NAME): Update comment.
15656         Call pa_output_function_label.
15657         (TARGET_ASM_FUNCTION_PROLOGUE): define.
15658         * config/pa/pa-protos.h (pa_output_function_label): Declare.
15659         * config/pa/pa.c (pa_output_function_prologue): Add ATTRIBUTE_UNUSED
15660         to declaration.
15661         (pa_linux_output_function_prologue): Declare.
15662         (TARGET_ASM_FUNCTION_PROLOGUE): Delete define.
15663         (pa_output_function_label): New.
15664         (pa_output_function_prologue): Revise to use pa_output_function_label.
15665         (pa_linux_output_function_prologue): New.
15666         * config/pa/pa.h (TARGET_ASM_FUNCTION_PROLOGUE): Define.
15668 2019-06-07  Aldy Hernandez  <aldyh@redhat.com>
15670         * tree-vrp.h (value_range_base::intersect): New.
15671         (value_range::intersect_helper): Move from here...
15672         (value_range_base::intersect_helper): ...to here.
15673         * tree-vrp.c (value_range::intersect_helper): Rename to...
15674         (value_range_base::intersect_helper): ...this, and rewrite to
15675         return a value instead of modifying THIS in place.
15676         Also, move equivalence handling...
15677         (value_range::intersect): ...here, while calling intersect_helper.
15678         * gimple-fold.c (size_must_be_zero_p): Use value_range_base when
15679         calling intersect.
15680         * gimple-ssa-evrp-analyze.c (ecord_ranges_from_incoming_edge):
15681         Same.
15682         * vr-values.c (vrp_evaluate_conditional_warnv_with_ops): Same.
15684 2019-06-07  Jakub Jelinek  <jakub@redhat.com>
15686         * Makefile.in (genprogerr): Add condmd.
15687         (genprog): Remove it here.
15689 2019-06-07  Andrew Stubbs  <ams@codesourcery.com>
15691         * doc/invoke.texi (AMD GCN Options): Add gfx906.
15693 2019-06-07  Richard Biener  <rguenther@suse.de>
15695         PR debug/90574
15696         * tree-cfg.c (stmt_starts_bb_p): Split blocks at labels
15697         that appear after user labels.
15699 2019-06-07  Martin Liska  <mliska@suse.cz>
15701         * cselib.c (cselib_init): Disable hash table
15702         sanitization.
15703         * hash-set.h: Pass new default argument to m_table.
15704         * hash-table.c: Add global variable with hash table
15705         sanitization limit.
15706         * hash-table.h (Allocator>::hash_table): Add new argument
15707         to ctor.
15708         (hashtab_chk_error): New.
15709         * params.def (PARAM_HASH_TABLE_VERIFICATION_LIMIT): New.
15710         * toplev.c (process_options): Set hash_table_sanitize_eq_limit
15711         from the PARAM_HASH_TABLE_VERIFICATION_LIMIT value.
15713 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
15715         * common.opt (flto-odr-type-merging): Ignore.
15716         * invoke.texi (-flto-odr-type-merging): Remove.
15717         * ipa-devirt.c (odr_vtable_hasher:odr_name_hasher): Remove.
15718         (can_be_vtable_hashed_p): Remove.
15719         (hash_odr_vtable): Remove.
15720         (odr_vtable_hasher::hash): Remove.
15721         (types_same_for_odr): Remove.
15722         (types_odr_comparable): Remove.
15723         (odr_vtable_hasher::equal): Remove.
15724         (odr_vtable_hash_type, odr_vtable_hash): Remove.
15725         (add_type_duplicate): Do not synchronize vtable and name hashtables.
15726         (get_odr_type): Do not use vtable hash.
15727         (dump_odr_type): Remove commented out code.
15728         (build_type_inheritance_graph): Do not allocate vtable hash.
15729         (rebuild_type_inheritance_graph): Do not delete vtable hash.
15730         * ipa-utils.h (type_with_linkage_p): Drop vtable hash path.
15731         (odr_type_p): Likewise.
15732         * tree.c (need_assembler_name_p): Remove flag_lto_odr_type_mering
15733         test.
15735 2019-06-07  Jan Hubicka  <hubicka@ucw.cz>
15737         * tree-ssa-alias.c (aliasing_component_refs_p): Do not give up
15738         immediately after same_types_for_tbaa_p returns -1 and continue
15739         looking for possible exact match; if matching types are arrays
15740         watch for partial overlaps.
15741         (indirect_ref_may_alias_decl_p): Watch for partial array overlaps.
15742         (indirect_refs_may_alias_p): Do type based disambiguation first;
15743         update comment.
15745 2019-06-07  Richard Sandiford  <richard.sandiford@arm.com>
15747         * fwprop.c (propagate_rtx): Fix call to paradoxical_subreg_p.
15749 2019-06-07  Martin Liska  <mliska@suse.cz>
15751         * doc/invoke.texi: Remove param.
15752         * gcov-counter.def (GCOV_COUNTER_ICALL_TOPNV):
15753         Remove.
15754         * gcov-io.h (GCOV_ICALL_TOPN_VAL): Likewise.
15755         (GCOV_ICALL_TOPN_NCOUNTS): Likewise.
15756         * params.def (PARAM_INDIR_CALL_TOPN_PROFILE): Likewise.
15757         * profile.c (instrument_values): Remove
15758         HIST_TYPE_INDIR_CALL_TOPN.
15759         * tree-profile.c (init_ic_make_global_vars):
15760         Always build __gcov_indirect_call only.
15761         (gimple_init_gcov_profiler): Remove usage
15762         of PARAM_INDIR_CALL_TOPN_PROFILE.
15763         (gimple_gen_ic_profiler): Likewise.
15764         * value-prof.c (dump_histogram_value): Likewise.
15765         (stream_in_histogram_value): Likewise.
15766         (gimple_indirect_call_to_profile): Likewise.
15767         (gimple_find_values_to_profile): Likewise.
15768         * value-prof.h (enum hist_type): Likewise.
15770 2019-06-07  Martin Liska  <mliska@suse.cz>
15772         * tree-ssa-loop.c (get_lsm_tmp_name): Return at the end of the
15773         function.
15775 2019-06-07  Martin Liska  <mliska@suse.cz>
15777         PR tree-optimization/78902
15778         * builtin-attrs.def (ATTR_WARN_UNUSED_RESULT): New.
15779         (ATTR_MALLOC_NOTHROW_LEAF_LIST): Remove.
15780         (ATTR_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15781         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LEAF_LIST): New.
15782         (ATTR_ALLOC_SIZE_2_NOTHROW_LIST): Remove.
15783         (ATTR_MALLOC_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15784         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_LIST): New.
15785         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LIST): New.
15786         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15787         (ATTR_ALLOCA_SIZE_1_NOTHROW_LEAF_LIST): Remove.
15788         (ATTR_ALLOCA_WARN_UNUSED_RESULT_SIZE_1_NOTHROW_LEAF_LIST): New.
15789         (ATTR_MALLOC_SIZE_1_2_NOTHROW_LEAF_LIST): Remove.
15790         (ATTR_MALLOC_WARN_UNUSED_RESULT_SIZE_1_2_NOTHROW_LEAF_LIST):
15791         New.
15792         (ATTR_ALLOC_SIZE_2_NOTHROW_LEAF_LIST): Remove.
15793         (ATTR_ALLOC_WARN_UNUSED_RESULT_SIZE_2_NOTHROW_LEAF_LIST): New.
15794         (ATTR_MALLOC_NOTHROW_NONNULL): Remove.
15795         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15796         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL): New.
15797         (ATTR_MALLOC_NOTHROW_NONNULL_LEAF): Remove.
15798         (ATTR_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15799         (ATTR_MALLOC_WARN_UNUSED_RESULT_NOTHROW_NONNULL_LEAF): New.
15800         * builtins.def (BUILT_IN_ALIGNED_ALLOC): Change to use
15801         warn_unused_result attribute.
15802         (BUILT_IN_STRDUP): Likewise.
15803         (BUILT_IN_STRNDUP): Likewise.
15804         (BUILT_IN_ALLOCA): Likewise.
15805         (BUILT_IN_CALLOC): Likewise.
15806         (BUILT_IN_MALLOC): Likewise.
15807         (BUILT_IN_REALLOC): Likewise.
15809 2019-06-06  Jim Wilson  <jimw@sifive.com>
15811         PR target/89955
15812         * config/riscv/riscv.h (STARTFILE_PREFIX_SPEC): Deleted.
15813         * config/riscv/freebsd.h (STARTFILE_PREFIX_SPEC): Added.
15814         * config/riscv/linux.h (STARTFILE_PREFIX_SPEC): Added.
15816 2019-06-06  Martin Sebor  <msebor@redhat.com>
15818         * tree-ssa-strlen.c (adjust_related_strinfos): Avoid trailing article.
15819         (handle_builtin_malloc): Remove trailing spaces.
15820         (handle_builtin_memset): Same.
15821         (handle_builtin_memcmp): Same.
15822         (compute_string_length): Same.
15823         (determine_min_objsize): Same.
15824         (handle_builtin_string_cmp): Same.
15825         (handle_char_store): Same.  Break up excessively long line.
15827 2019-06-06  Martin Jambor  <mjambor@suse.cz>
15829         * tree-sra.c (build_reconstructed_reference): Drop the alignment
15830         check.
15832 2019-06-06  Martin Jambor  <mjambor@suse.cz>
15834         * tree-sra.c (struct access): New field grp_same_access_path.
15835         (dump_access): Dump it.
15836         (build_reconstructed_reference): New function.
15837         (build_ref_for_model): Use it if possible.
15838         (path_comparable_for_same_access): New function.
15839         (same_access_path_p): Likewise.
15840         (sort_and_splice_var_accesses): Set the new flag.
15841         (analyze_access_subtree): Likewise.
15842         (propagate_subaccesses_across_link): Propagate zero value of the new
15843         flag down the access tree.
15845 2019-06-06  Andrew Stubbs  <ams@codesourcery.com>
15847         * config.gcc (amdgcn-*-*): Allow --with-arch=gfx906.
15848         * config/gcn/gcn.opt (gpu_type): Add gfx906.
15849         * config/gcn/t-gcn-hsa (MULTILIB_OPTIONS): Add gfx906 multilib.
15850         (MULTILIB_DIRNAMES): Rename gcn5 to gfx900.
15851         Add gfx906.
15853 2019-06-06  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
15855         PR tree-optimization/90332
15856         * config/aarch64/aarch64.c (aarch64_expand_vector_init):
15857         Handle VALS containing two vectors.
15858         * config/aarch64/aarch64-simd.md (*aarch64_combinez<mode>): Rename
15859         to...
15860         (@aarch64_combinez<mode>): ... This.
15861         (*aarch64_combinez_be<mode>): Rename to...
15862         (@aarch64_combinez_be<mode>): ... This.
15863         (vec_init<mode><Vhalf>): New define_expand.
15864         * config/aarch64/iterators.md (Vhalf): Handle V8HF.
15866 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15868         * config/msp430/msp430.md (ashlhi3): Use the const_variant of shift
15869         library functions only when not optimizing for size.
15870         (ashlsi3): Likewise.
15871         (ashrhi3): Likewise.
15872         (ashrsi3): Likewise.
15873         (lshrhi3): Likewise.
15874         (lshrsi3): Likewise.
15876 2019-06-06  Andreas Krebbel  <krebbel@linux.ibm.com>
15878         PR rtl-optimization/88751
15879         * ira.c (ira): Use the number of the actually referenced registers
15880         when calculating the threshold.
15882 2019-06-06  Jakub Jelinek  <jakub@redhat.com>
15884         * configure: Regenerate.
15886 2019-06-06  Jozef Lawrynowicz  <jozef.l@mittosystems.com>
15888         * config/msp430/msp430.md (ashlhi3): Force shift src operand into a
15889         register if it is in memory, so the shift can be emulated with a rotate
15890         instruction.
15891         (ashrhi3): Likewise.
15892         (lshrhi3): Likewise.
15894 2019-06-06  Martin Liska  <mliska@suse.cz>
15896         PR tree-optimization/87954
15897         * match.pd: Simplify mult where both arguments are 0 or 1.
15899 2019-06-06  Richard Biener  <rguenther@suse.de>
15901         * vr-values.c (vr_values::extract_range_from_ssa_name): Do not
15902         put equivalences on UNDEFINED ranges.
15903         * gimple-ssa-evrp.c (evrp_dom_walker::before_dom_children):
15904         Make sure to drop defs of stmts added during simplification
15905         to VARYING.
15907 2019-06-06  Richard Biener  <rguenther@suse.de>
15909         * tree-ssa-structalias.c: Include tree-cfg.h.
15910         (make_heapvar): Do not make heap vars artificial.
15911         (find_func_aliases_for_builtin_call): Handle stack allocation
15912         functions.
15913         (find_func_aliases): Delay processing of simple enough returns
15914         in non-IPA mode.
15915         (set_uids_in_ptset): Adjust.
15916         (find_what_var_points_to): Likewise.
15917         (solve_constraints): Do not dump points-to sets here.
15918         (compute_points_to_sets): Post-process return statements,
15919         amending the escaped solution.  Dump points-to sets afterwards.
15920         (ipa_pta_execute): Dump points-to sets.
15922 2019-06-06  Martin Liska  <mliska@suse.cz>
15924         PR web/87933
15925         * doc/install.texi: Fix HTML headers and
15926         titles for 'Installing GCC' pages.
15928 2019-06-06  Martin Liska  <mliska@suse.cz>
15930         * ipa-icf-gimple.h (dump_message_1): Remove.
15931         (dump_message): Likewise.
15932         (return_false_with_message_1): Print also file.
15933         (return_false_with_msg): Likewise.
15934         (return_with_result): Likewise.
15935         (return_with_debug): Likewise.
15936         * ipa-icf.c (sem_function::equals_private): Remove call
15937         to dump_message.
15939 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
15941         * config/i386/sse.md (define_mode_suffix vecmemsuffix): New.
15942         (define_insn "avx512dq_fpclass<mode><mask_scalar_merge_name>"): Enable
15943         memory operand for it.
15944         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>"): Ditto.
15946 2019-06-05  Martin Sebor  <msebor@redhat.com>
15948         * config/i386/i386-features.c (ix86_get_function_versions_dispatcher):
15949         Adjust quoting and hyphenation.
15950         * convert.c (convert_to_real_1): Same.
15951         * gcc.c (driver_wrong_lang_callback): Same.
15952         (driver::handle_unrecognized_options): Same.
15953         * gimple-ssa-nonnull-compare.c (do_warn_nonnull_compare): Same.
15954         * opts-common.c (cmdline_handle_error): Same.
15955         (read_cmdline_option): Same.
15956         * opts-global.c (complain_wrong_lang): Same.
15957         (print_ignored_options): Same.
15958         (handle_common_deferred_options): Same.
15959         * pretty-print.h: Same.
15960         * print-rtl.c (debug_bb_n_slim): Same.
15961         * sched-rgn.c (make_pass_sched_fusion): Same.
15962         * tree-cfg.c (verify_gimple_assign_unary): Same.
15963         (verify_gimple_label): Same.
15964         * tree-ssa-operands.c (verify_ssa_operands): Same.
15965         * varasm.c (do_assemble_alias): Same.
15966         (assemble_alias): Same.
15968 2019-06-05  Richard Henderson  <rth@twiddle.net>
15970         * config/alpha/alpha.c (direct_return): Move down after
15971         struct machine_function definition; use saved frame_size;
15972         return bool.
15973         (struct machine_function): Add sa_mask, sa_size, frame_size.
15974         (alpha_sa_mask, alpha_sa_size, compute_frame_size): Merge into ...
15975         (alpha_compute_frame_layout): ... new function.
15976         (TARGET_COMPUTE_FRAME_LAYOUT): New.
15977         (alpha_initial_elimination_offset): Use saved sa_size.
15978         (alpha_vms_initial_elimination_offset): Likewise.
15979         (alpha_vms_can_eliminate): Remove alpha_sa_size call.
15980         (alpha_expand_prologue): Use saved frame data.  Merge integer
15981         and fp register save loops.
15982         (alpha_expand_epilogue): Likewise.
15983         (alpha_start_function): Use saved frame data.
15984         * config/alpha/alpha-protos.h (direct_return): Update.
15985         (alpha_sa_size): Remove.
15987 2019-06-05  Eric Botcazou  <ebotcazou@adacore.com>
15989         * fold-const.c (extract_muldiv_1) <PLUS_EXPR>: Do not distribute a
15990         multiplication by a power-of-two value.
15991         (fold_plusminus_mult_expr): Use pow2p_hwi to spot a power-of-two value
15992         and turn the modulo operation into a masking operation.
15994 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
15996         PR debug/90733
15997         * var-tracking.c (vt_expand_loc_callback): Don't create raw subregs
15998         with VOIDmode inner operands.
16000 2019-06-05  Richard Biener  <rguenther@suse.de>
16002         PR middle-end/90726
16003         * tree-ssa-loop-niter.c (expand_simple_operations): Do not
16004         turn an expression graph into a tree.
16006 2019-06-05  Jakub Jelinek  <jakub@redhat.com>
16008         * omp-expand.c (struct omp_region): Add has_lastprivate_conditional
16009         member.
16010         (expand_parallel_call): If region->inner->has_lastprivate_conditional,
16011         treat it like explicit monotonic schedule modifier.
16012         (expand_omp_for): Initialize has_lastprivate_conditional.
16013         If fd.lastprivate_conditional != 0, treat it like explicit monotonic
16014         schedule modifier.
16016         * omp-low.c (lower_rec_input_clauses): For lastprivate conditional
16017         references, lookup in in hash map MEM_REF operand instead of the
16018         MEM_REF itself.
16019         (lower_omp_1): When looking for lastprivate conditional assignments,
16020         handle MEM_REFs with REFERENCE_TYPE operands.
16022         * omp-low.c (lower_rec_input_clauses): Force max_vf if is_simd and
16023         on privatization clauses OMP_CLAUSE_DECL is privatized by reference
16024         and references a VLA.  Handle references to non-VLAs if is_simd
16025         all privatization clauses like reductions.
16026         (lower_rec_input_clauses) <case do_private, case do_firstprivate>:
16027         If omp_is_reference, use always omp simd arrays and set
16028         DECL_VALUE_EXPR in that case, if lower_rec_simd_input_clauses
16029         fails, emit reference initialization.
16031 2019-06-05  Hongtao Liu  <hongtao.liu@intel.com>
16033         PR target/89803
16034         * config/i386/avx512dqintrin.h (_mm_mask_fpclass_ss_mask,
16035         _mm_mask_fpclass_sd_mask): New intrinsics.
16036         (_mm_fpclass_ss_mask, _mm_fpclass_sd_mask): Modified, use new builtins.
16037         * config/i386/i386-builtin.def
16038         (__builtin_ia32_fpclassss_mask, __builtin_ia32_fpclasssd_mask):
16039         New builtins.
16040         (__builtin_ia32_fpclassss, __builtin_ia32_fpclasssd): Deleted.
16041         * config/i386/i386-builtin-types.def (DEF_FUNCTION_TYPE (QI, V2DF, INT),
16042         DEF_FUNCTION_TYPE (QI, V4SF, INT)): Deleted.
16043         * config/i386/i386-expand.c (case QI_FTYPE_V4SF_INT,
16044         case QI_FTYPE_V2SF_INT): Ditto.
16045         * config/i386/sse.md
16046         (define_insn "avx512dq_vmfpclass<mode><mask_scalar_merge_name>):
16047         Extended to insnstructions with mask operands.
16049 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16051         * config/rs6000/constraints.md (define_register_constraint "wp"):
16052         Delete.
16053         (define_register_constraint "wq"): Delete.
16054         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16055         (rs6000_init_hard_regno_mode_ok): Adjust.
16056         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16057         RS6000_CONSTRAINT_wp and RS6000_CONSTRAINT_wq.
16058         * config/rs6000/vsx.md (define_mode_attr VSr3): Delete.
16059         (define_mode_attr VSa): Delete.
16060         (define_mode_attr VSisa): New.
16061         (rest of file): Adjust.
16062         * doc/md.texi (Machine Constraints): Adjust.
16064 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16066         * config/rs6000/rs6000.md (define_attr "isa"): Add p9kf and p9tf.
16067         (define_attr "enabled"): Handle those new isa values.
16069 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16071         * config/rs6000/vsx.md (define_mode_attr VSr4): Delete.
16072         (define_mode_attr VSr5): Delete.
16073         (define_mode_attr VStype_sqrt): Delete.
16074         (define_mode_iterator VSX_SPDP): Delete.
16075         (define_mode_attr VS_spdp_res): Delete.
16076         (define_mode_attr VS_spdp_insn): Delete.
16077         (define_mode_attr VS_spdp_type): Delete.
16078         (*vsx_sqrt<mode>2): Adjust.
16079         (vsx_<VS_spdp_insn>): Delete, split to...
16080         (vsx_xscvdpsp): ... this.  New.  And...
16081         (vsx_xvcvspdp): ... this.  New.  And...
16082         (vsx_xvcvdpsp): ... this.  New.
16084 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16086         * config/rs6000/rs6000.md (define_mode_attr sd): Add values for V4SF
16087         and V2DF.
16088         * config/rs6000/vsx.md (define_mode_attr VSs): Delete.
16089         (rest of file): Adjust.
16091 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16093         * config/rs6000/vsx.md (vsx_<VS_spdp_insn>): Use wa instead of <VSa>.
16094         (vsx_extract_<mode>_var): Ditto.
16096 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16098         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_TI
16099         with just "wa".
16101 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16103         * config/rs6000/constraints.md (define_register_constraint "ww"):
16104         Delete.
16105         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16106         (rs6000_init_hard_regno_mode_ok): Adjust.
16107         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16108         RS6000_CONSTRAINT_ww.
16109         * config/rs6000/rs6000.md: Adjust.
16110         * config/rs6000/vsx.md: Adjust.
16111         * doc/md.texi (Machine Constraints): Adjust.
16113 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16115         * config/rs6000/rs6000.md (SFDF, SFDF2): Adjust comments.
16116         (define_mode_attr sd): New.
16117         (define_mode_attr s): New.
16118         (define_mode_attr Ftrad): Delete.
16119         (define_mode_attr Fvsx): Delete.
16120         (define_mode_attr Fs): Delete.
16121         (rest of file): Use the new mode attributes.
16122         * config.rs6000/vsx.md: Use the new mode attributes.
16124 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16126         * config/rs6000/vsx.md: Replace all <VSa> that are used with VSX_W
16127         with just "wa".
16129 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16131         * config/rs6000/vsx.md (define_mode_attr VSr2): Delete.
16132         (rest of file): Replace all <VSa>, <VSr>, <VSr2>, and <VSr3> that are
16133         used with VSX_B, VSX_D, or VSX_F, with just "wa".
16135 2019-06-04  Bill Schmidt  <wschmidt@linux.ibm.com>
16137         PR target/78263
16138         * config/rs6000/altivec.h: Don't #define vector, pixel, bool for
16139         C++ with strict ANSI requirements.
16141 2019-06-04  Marc Glisse  <marc.glisse@inria.fr>
16143         * tree-ssa-loop-niter.c (number_of_iterations_ne): Skip
16144         computations when step is 1.
16146 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16148         * config/rs6000/constraints.md (define_register_constraint "wf"):
16149         Delete.
16150         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16151         (rs6000_init_hard_regno_mode_ok): Adjust.
16152         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16153         RS6000_CONSTRAINT_wf.
16154         * config/rs6000/rs6000.md: Adjust.
16155         * config/rs6000/vsx.md: Adjust.
16156         * doc/md.texi (Machine Constraints): Adjust.
16158 2019-06-04  Andrew Pinski  <apinski@marvell.com>
16160         * config/aarch64/aarch64.c (aarch64_asan_shadow_offset):
16161         Fix ILP32 value.
16163 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16165         * config/rs6000/constraints.md (define_register_constraint "wd"):
16166         Delete.
16167         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16168         (rs6000_init_hard_regno_mode_ok): Adjust.
16169         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16170         RS6000_CONSTRAINT_wd.
16171         * config/rs6000/rs6000.md: Adjust.
16172         * config/rs6000/vsx.md: Adjust.
16173         * doc/md.texi (Machine Constraints): Adjust.
16175 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16177         * config/rs6000/rs6000.md (define_mode_attr Fv2): Delete.
16178         (rest of file): Adjust.
16180 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16182         * config/rs6000/vsx.md (define_mode_attr VS_64reg): Delete.
16183         (*vsx_extract_<P:mode>_<VSX_D:mode>_load): Adjust.
16184         (vsx_splat_<mode>_reg): Adjust.
16186 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16188         * config/rs6000/constraints.md (define_register_constraint "ws"):
16189         Delete.
16190         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16191         (rs6000_init_hard_regno_mode_ok): Adjust.
16192         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16193         RS6000_CONSTRAINT_ws.
16194         * config/rs6000/rs6000.md: Adjust.
16195         * config/rs6000/vsx.md: Adjust.
16196         * doc/md.texi (Machine Constraints): Adjust.
16198 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16200         * config/rs6000/constraints.md (define_register_constraint "wv"):
16201         Delete.
16202         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16203         (rs6000_init_hard_regno_mode_ok): Adjust.
16204         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16205         RS6000_CONSTRAINT_wv.
16206         * config/rs6000/rs6000.md: Adjust.
16207         * config/rs6000/vsx.md: Adjust.
16208         * doc/md.texi (Machine Constraints): Adjust.
16210 2019-06-04  Segher Boessenkool  <segher@kernel.crashing.org>
16212         * config/rs6000/constraints.md (define_register_constraint "wi"):
16213         Delete.
16214         (define_register_constraint "wt"): Delete.
16215         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16216         (rs6000_init_hard_regno_mode_ok): Adjust.
16217         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16218         RS6000_CONSTRAINT_wi and RS6000_CONSTRAINT_wt.
16219         * config/rs6000/rs6000.md: Adjust.
16220         * config/rs6000/vsx.md: Adjust.
16221         * doc/md.texi (Machine Constraints): Adjust.
16223 2019-06-04  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16225         * config/aarch64/aarch64-protos.h (aarch64_asm_output_external): Remove
16226         const.
16227         * config/aarch64/aarch64.c (aarch64_asm_output_external): Call
16228         default_elf_asm_output_external.
16230 2019-06-04  Martin Liska  <mliska@suse.cz>
16232         * ipa-icf.c (INCLUDE_LIST): Remove.
16233         (sem_item_optimizer::execute): Remove call to init_wpa.
16234         * ipa-icf.h (init_wpa): Remove.
16236 2019-06-04  Jakub Jelinek  <jakub@redhat.com>
16238         * gimplify.c (gimplify_scan_omp_clauses): Don't sorry_at on lastprivate
16239         conditional on combined for simd.
16240         * omp-low.c (struct omp_context): Add combined_into_simd_safelen0
16241         member.
16242         (lower_rec_input_clauses): For gimple_omp_for_combined_into_p max_vf 1
16243         constructs, don't remove lastprivate_conditional_map, but instead set
16244         ctx->combined_into_simd_safelen0 and adjust hash_map, so that it points
16245         to parent construct temporaries.
16246         (lower_lastprivate_clauses): Handle ctx->combined_into_simd_safelen0
16247         like !ctx->lastprivate_conditional_map.
16248         (lower_omp_1) <case GIMPLE_ASSIGN>: If up->combined_into_simd_safelen0,
16249         use up->outer context instead of up.
16250         * omp-expand.c (expand_omp_for_generic): Perform cond_var bump even if
16251         gimple_omp_for_combined_p.
16252         (expand_omp_for_static_nochunk): Likewise.
16253         (expand_omp_for_static_chunk): Add forgotten cond_var bump that was
16254         probably moved over into expand_omp_for_generic rather than being copied
16255         there.
16257 2019-06-04  Martin Liska  <mliska@suse.cz>
16259         * value-prof.c (dump_histogram_value): Fix typo.
16260         (gimple_mod_subtract_transform): Likewise.
16262 2019-06-04  Richard Biener  <rguenther@suse.de>
16264         PR middle-end/90726
16265         * tree-chrec.c (chrec_contains_symbols): Add to visited.
16266         (tree_contains_chrecs): Likewise.
16267         (chrec_contains_symbols_defined_in_loop): Move here and avoid
16268         exponential behaivor from ...
16269         * tree-scalar-evolution.c (chrec_contains_symbols_defined_in_loop):
16270         ... here.
16271         (expression_expensive_p): Avoid exponential behavior and compute
16272         expanded size, rejecting any expansion.
16273         * tree-ssa-loop-ivopts.c (abnormal_ssa_name_p): Remove.
16274         (idx_contains_abnormal_ssa_name_p): Likewise.
16275         (contains_abnormal_ssa_name_p_1): New helper for walk_tree.
16276         (contains_abnormal_ssa_name_p): Simplify and use
16277         walk_tree_without_duplicates.
16279 2019-06-04  Richard Biener  <rguenther@suse.de>
16281         PR tree-optimization/90738
16282         Revert
16283         2019-06-03  Richard Biener  <rguenther@suse.de>
16285         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16286         full reference tree and record in ref->ref.
16287         (vn_reference_lookup_3): Pass in original ref to
16288         ao_ref_init_from_vn_reference.
16289         (vn_reference_lookup): Likewise.
16290         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16291         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16292         Handle non-decl bases in the original reference.
16294 2019-06-04  Martin Liska  <mliska@suse.cz>
16296         * ipa-icf.c (sem_item_optimizer::add_item_to_class): Count
16297         number of references.
16298         (sem_item_optimizer::do_congruence_step):
16299         (sem_item_optimizer::worklist_push): Dump how references
16300         a class has.
16301         (sem_item_optimizer::worklist_pop): Use heap.
16302         (sem_item_optimizer::process_cong_reduction): Likewise.
16303         * ipa-icf.h: Use fibonacci_heap insteam of std::list.
16305 2019-06-04  Martin Liska  <mliska@suse.cz>
16307         * ipa-icf.h (struct sem_usage_pair_hash): New.
16308         (sem_usage_pair_hash::hash): Likewise.
16309         (sem_usage_pair_hash::equal): Likewise.
16310         (struct sem_usage_hash): Likewise.
16311         * ipa-icf.c (sem_item::sem_item): Initialize
16312         referenced_by_count.
16313         (sem_item::add_reference): Register a reference
16314         in ref_map and not in target->usages.
16315         (sem_item::setup): Remove initialization of
16316         dead vectors.
16317         (sem_item::~sem_item): Remove usage of dead vectors.
16318         (sem_item::dump): Remove dump of references.
16319         (sem_item_optimizer::sem_item_optimizer): Initialize
16320         m_references.
16321         (sem_item_optimizer::read_section): Remove useless
16322         dump.
16323         (sem_item_optimizer::parse_funcs_and_vars): Likewise here.
16324         (sem_item_optimizer::build_graph): Pass m_references
16325         to ::add_reference.
16326         (sem_item_optimizer::verify_classes): Remove usage of dead
16327         vectors.
16328         (sem_item_optimizer::traverse_congruence_split): Return true
16329         when a class is split.
16330         (sem_item_optimizer::do_congruence_step_for_index): Use
16331         hash_map for look up of (sem_item *, index). That brings
16332         significant speed up.
16333         (sem_item_optimizer::do_congruence_step): Return true
16334         when a split is done.
16335         (congruence_class::is_class_used): Use referenced_by_count.
16337 2019-06-04  Alan Modra  <amodra@gmail.com>
16339         PR target/90689
16340         * config/rs6000/rs6000.c (rs6000_call_aix): Correct r271753 merge
16341         error.
16343 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
16345         * config/rs6000/rs6000.h (MASK_MFPGPR): Delete.
16346         * config/rs6000/rs6000.c (direct_move_p): Adjust.
16347         (rs6000_secondary_reload_simple_move): Adjust.
16348         (rs6000_opt_masks): Neuter the "mfpgpr" option.
16349         * config/rs6000/rs6000-c.c (rs6000_target_modify_macros): Adjust.
16350         * config/rs6000/rs6000-cpus.def (ISA_2_5_MASKS_EMBEDDED): Adjust
16351         comment.
16352         (power6x): Adjust.
16353         * config/rs6000/rs6000.md (floatsi<mode>2_lfiwax): Adjust.
16354         (floatunssi<mode>2_lfiwzx): Adjust.
16355         (fix_trunc<mode>si2_stfiwx): Adjust.
16356         (fixuns_trunc<mode>si2_stfiwx): Adjust.
16357         * config/rs6000/rs6000.opt (mno-mfpgpr): New.
16358         (mfpgpr): Mark as deprecated.
16359         * doc/extend.texi (PowerPC Function Attributes): Delete mfpgpr.
16360         (Basic PowerPC Built-in Functions Available on ISA 2.05): Adjust.
16361         * doc/invoke.texi (RS/6000 and PowerPC Options): Delete -mmfpgpr.
16363 2019-06-03  Segher Boessenkool  <segher@kernel.crashing.org>
16365         * config/rs6000/constraints.md (define_register_constraint "wg"):
16366         Delete.
16367         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
16368         RS6000_CONSTRAINT_wg.
16369         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
16370         (rs6000_init_hard_regno_mode_ok): Adjust.
16371         * config/rs6000/rs6000.md (*mov<mode>_softfloat32, *movdi_internal64):
16372         Delete "wg" alternatives.
16373         * doc/md.texi (Machine Constraints): Adjust.
16375 2019-06-03  Alan Modra  <amodra@gmail.com>
16377         * bb-reorder.c (copy_bb_p): Don't overflow size calculation.
16378         (get_uncond_jump_length): Assert length less than INT_MAX and
16379         non-negative.
16381 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16383         PR middle-end/64242
16384         * builtins.c (expand_builtin_longjmp): Add frame clobbers and schedule
16385         block.
16386         (expand_builtin_nonlocal_goto): Likewise.
16388 2019-06-03  Szabolcs Nagy  <szabolcs.nagy@arm.com>
16390         * config/aarch64/aarch64-protos.h (aarch64_asm_output_alias): Declare.
16391         (aarch64_asm_output_external): Declare.
16392         * config/aarch64/aarch64.c (aarch64_asm_output_variant_pcs): New.
16393         (aarch64_declare_function_name): Call aarch64_asm_output_variant_pcs.
16394         (aarch64_asm_output_alias): New.
16395         (aarch64_asm_output_external): New.
16396         * config/aarch64/aarch64.h (ASM_OUTPUT_DEF_FROM_DECLS): Define.
16397         (ASM_OUTPUT_EXTERNAL): Define.
16399 2019-06-03  Aldy Hernandez  <aldyh@redhat.com>
16400         * tree-vrp.h (value_range_base::nonzero_p): New.
16401         (value_range_base::set_nonnull): Rename to...
16402         (value_range_base::set_nonzero): ...this.
16403         (value_range_base::set_null): Rename to...
16404         (value_range_base::set_zero): ...this.
16405         (value_range::set_nonnull): Remove.
16406         (value_range::set_null): Remove.
16407         * tree-vrp.c (range_is_null): Remove.
16408         (range_is_nonnull): Remove.
16409         (extract_range_from_binary_expr): Use value_range_base::*zero_p
16410         instead of range_is_*null.
16411         (extract_range_from_unary_expr): Same.
16412         (value_range_base::set_nonnull): Rename to...
16413         (value_range_base::set_nonzero): ...this.
16414         (value_range::set_nonnull): Remove.
16415         (value_range_base::set_null): Rename to...
16416         (value_range_base::set_zero): ...this.
16417         (value_range::set_null): Remove.
16418         (extract_range_from_binary_expr): Rename set_*null uses to
16419         set_*zero.
16420         (extract_range_from_unary_expr): Same.
16421         (union_helper): Same.
16422         * vr-values.c (get_value_range): Use set_*zero instead of
16423         set_*null.
16424         (vr_values::extract_range_from_binary_expr): Same.
16425         (vr_values::extract_range_basic): Same.
16427 2019-06-03  Wilco Dijkstra  <wdijkstr@arm.com>
16429         PR driver/90684
16430         * opts.c (parse_and_check_align_values): Allow 4 alignment values.
16432 2019-06-03  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
16434         * config/aarch64/iterators.md (MAX_OPP): New code attr.
16435         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3):
16436         Rename to...
16437         (aarch64_<su>abd<mode>_3): ... This.
16438         (<sur>sadv16qi): Add TARGET_DOTPROD expansion.
16440 2019-06-03  Richard Biener  <rguenther@suse.de>
16442         * tree-ssa-sccvn.c (ao_ref_init_from_vn_reference): Get original
16443         full reference tree and record in ref->ref.
16444         (vn_reference_lookup_3): Pass in original ref to
16445         ao_ref_init_from_vn_reference.
16446         (vn_reference_lookup): Likewise.
16447         * tree-ssa-sccvn.h (ao_ref_init_from_vn_reference): Adjust prototype.
16448         * tree-ssa-alias.c (nonoverlapping_component_refs_of_decl_p):
16449         Handle non-decl bases in the original reference.
16451 2019-06-03  Martin Liska  <mliska@suse.cz>
16453         * doc/generic.texi: Remove Java Trees.
16455 2019-06-03  Martin Liska  <mliska@suse.cz>
16457         * fold-const.c (operand_equal_p): Fix typo as compare_tree_int
16458         returns 0 when operands are equal.
16460 2019-06-03  Richard Biener  <rguenther@suse.de>
16462         PR tree-optimization/90716
16463         * tree-loop-distribution.c (destroy_loop): Process blocks in
16464         correct order.
16466 2019-06-03  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
16468         PR target/88837
16469         * vector-builder.h (vector_builder::count_dups): New method.
16470         * config/aarch64/aarch64-protos.h (aarch64_expand_sve_vector_init):
16471         Declare prototype.
16472         * config/aarch64/aarch64/sve.md (aarch64_sve_rev64<mode>): Use @.
16473         (vec_init<mode><Vel>): New pattern.
16474         * config/aarch64/aarch64.c (emit_insr): New function.
16475         (aarch64_sve_expand_vector_init_handle_trailing_constants): Likewise.
16476         (aarch64_sve_expand_vector_init_insert_elems): Likewise.
16477         (aarch64_sve_expand_vector_init_handle_trailing_same_elem): Likewise.
16478         (aarch64_sve_expand_vector_init): Define two overloaded functions.
16480 2019-06-03  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
16482         PR tree-optimization/90681
16483         * internal-fn.c (mask_load_direct): Mark as non-vectorizable again.
16484         * tree-vect-slp.c (vect_build_slp_tree_1): Add masked loads as a
16485         special case for SLP, but fail on non-groupped loads.
16487 2019-06-03  Martin Liska  <mliska@suse.cz>
16489         * cfg.c (debug): Use TDF_DETAILS for debug and
16490         print edge info only once.
16492 2019-06-02  Thomas Koenig  <tkoenig@gcc.gnu.org>
16494         PR fortran/90539
16495         * predict.def (PRED_FORTRAN_CONTIGUOUS): New predictor.
16497 2019-06-01  Martin Sebor  <msebor@redhat.com>
16499         PR middle-end/90694
16500         * tree-pretty-print.c (dump_generic_node): Add parentheses.
16502 2019-05-31  Jan Hubicka  <jh@suse.cz>
16504         * alias.c: Include ipa-utils.h.
16505         (get_alias_set): Try to complete ODR type via ODR type hash lookup.
16506         * ipa-devirt.c (prevailing_odr_type): New.
16507         * ipa-utils.h (previaling_odr_type): Declare.
16509 2019-05-31  H.J. Lu  <hongjiu.lu@intel.com>
16510             Hongtao Liu  <hongtao.liu@intel.com>
16512         PR target/89355
16513         * config/i386/i386-features.c (rest_of_insert_endbranch): Remove
16514         NOTE_INSN_DELETED_LABEL check.
16516 2019-05-31  Prachi Godbole  <prachi.godbole@imgtec.com>
16517             Robert Suchanek  <robert.suchanek@mips.com>
16519         * config/mips/mips.c (mips_expand_builtin_insn): Swap the 1st
16520         and 3rd operands of the fmadd/fmsub/maddv builtin.
16522 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
16524         * tree.h (OMP_CLAUSE__CONDTEMP__ITER): Define.
16525         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16526         on OMP_SIMD if not nested inside of worksharing loop that also has
16527         lastprivate conditional clause for the same decl.
16528         (gimplify_omp_for): Add _condtemp_ clauses to OMP_SIMD if needed.
16529         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_ also
16530         on simd.
16531         (lower_rec_input_clauses): Likewise.  Handle lastprivate conditional
16532         on simd construct.
16533         (lower_lastprivate_conditional_clauses): Handle lastprivate conditional
16534         on simd construct.
16535         (lower_lastprivate_clauses): Likewise.
16536         (lower_omp_sections): Call lower_lastprivate_conditional_clauses before
16537         calling lower_rec_input_clauses.
16538         (lower_omp_for): Likewise.
16539         (lower_omp_1): Use first rather than second OMP_CLAUSE__CONDTEMP_
16540         clause on simd construct.
16541         * omp-expand.c (expand_omp_simd): Initialize cond_var if
16542         OMP_CLAUSE__CONDTEMP_ clause is present.
16544         * omp-low.c (lower_rec_simd_input_clauses): Set TREE_THIS_NOTRAP on
16545         ivar and lvar.
16547 2019-05-31  Xiong Hu Luo  <luoxhu@linux.ibm.com>
16549         PR c/43673
16550         * c-format.c (print_char_table, scanf_char_table): Replace BADLEN with
16551         TEX_D32, TEX_D64 or TEX_D128.
16553 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
16555         * match.pd (~(vec?cst1:cst2)): New transformation.
16557 2019-05-31  Marc Glisse  <marc.glisse@inria.fr>
16559         * match.pd (X/[ex]D<Y/[ex]D): Handle negative denominator.
16560         ((size_t)(A /[ex] B) CMP C): New transformation.
16562 2019-05-31  Richard Sandiford  <richard.sandiford@arm.com>
16564         * doc/md.texi: Document define_insn_and_rewrite.
16565         * rtl.def (DEFINE_INSN_AND_REWRITE): New rtx code.
16566         * gensupport.c (queue_elem): Update comment.
16567         (replace_operands_with_dups): New function.
16568         (gen_rewrite_sequence): Likewise.
16569         (process_rtx): Handle DEFINE_INSN_AND_REWRITE.
16570         * read-rtl.c (apply_subst_iterator): Likewise.
16571         (add_condition_to_rtx, named_rtx_p): Likewise.
16572         (rtx_reader::read_rtx_operand): Likewise.
16573         * config/aarch64/aarch64-sve.md
16574         (while_ult<GPI:mode><PRED_ALL:mode>_cc): Rename to...
16575         (*while_ult<GPI:mode><PRED_ALL:mode>_cc): ...this and use
16576         define_insn_and_rewrite.
16577         (*cond_<optab><mode>_any): Turn into define_insn_and_rewrites.
16578         Remove separate define_split.
16580 2019-05-31  Jan Hubicka  <jh@suse.cz>
16582         * tree-ssa-alias.c (type_has_components_p): New function.
16583         (aliasing_component_refs_p): Use it.
16585 2019-05-31  Martin Liska  <mliska@suse.cz>
16587         * gdbhooks.py: Add const_tree to TreePrinter.
16589 2019-05-31  Thomas De Schampheleire  <thomas.de_schampheleire@nokia.com>
16591         PR debug/86964
16592         * common.opt (feliminate-unused-debug-symbols): Enable by default.
16593         * doc/invoke.texi (Debugging Options): Document new default of
16594         -feliminate-unused-debug-symbols and remove restriction to 'stabs'.
16596 2019-05-31  Jakub Jelinek  <jakub@redhat.com>
16598         PR tree-optimization/90671
16599         * tree-ssa-threadupdate.c (ssa_create_duplicates): If
16600         template_block used to be empty on the first call, don't use
16601         gsi_split_seq_after and gsi_insert_seq_after, but remember whole
16602         seq with bb_seq and set it with set_bb_seq.
16604 2019-05-31  Iain Sandoe  <iain@sandoe.co.uk>
16606         * config/i386/darwin.h (ASM_OUTPUT_MAX_SKIP_ALIGN): New.
16608 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
16609             Michael Meissner  <meissner@linux.ibm.com>
16611         * config/rs6000/predicates.md (pcrel_address): New define_predicate.
16612         (prefixed_mem_operand): Likewise.
16613         (non_prefixed_mem_operand): Likewise.
16614         * config/rs6000/rs6000-protos.h (rs6000_prefixed_address): New
16615         prototype.
16616         * config/rs6000/rs6000.c (print_operand_address): Handle
16617         PC-relative addresses.
16618         (mode_supports_prefixed_address_p): New function.
16619         (rs6000_prefixed_address): New function.
16620         * config/rs6000/rs6000.h (SYMBOL_FLAG_PCREL): New #define.
16621         (SYMBOL_REF_PCREL_P): Likewise.
16623 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
16625         * gimplify.c (enum gimplify_omp_var_data): Add GOVD_CONDTEMP.
16626         (gimplify_adjust_omp_clauses_1): Handle GOVD_CONDTEMP.
16627         (gimplify_omp_for): If worksharing loop with lastprivate conditional
16628         is nested inside of parallel region, add _condtemp_ clause to both.
16629         * tree-nested.c (convert_nonlocal_omp_clauses,
16630         convert_local_omp_clauses): Ignore OMP_CLAUSE__CONDTEMP_ instead of
16631         assertion failure.
16632         * omp-general.h (struct omp_for_data): Add have_pointer_condtemp
16633         member.
16634         * omp-general.c (omp_extract_for_data): Compute it.
16635         * omp-low.c (scan_sharing_clauses): Handle OMP_CLAUSE__CONDTEMP_.
16636         (lower_rec_input_clauses): Likewise.
16637         (lower_lastprivate_conditional_clauses): If OMP_CLAUSE__CONDTEMP_
16638         clause is already present, just add one further one after it.
16639         (lower_lastprivate_clauses): Handle cond_ptr with array type.
16640         (lower_send_shared_vars): Clear _condtemp_ vars.
16641         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle target data like critical
16642         or section or taskgroup.
16643         * omp-expand.c (determine_parallel_type): Disallow combining only if
16644         first OMP_CLAUSE__CONDTEMP_ has pointer type.  Disallow combining
16645         of parallel sections if OMP_CLAUSE__CONDTEMP_ is present.
16646         (expand_omp_for_generic, expand_omp_for_static_nochunk,
16647         expand_omp_for_static_chunk, expand_omp_for): Use
16648         fd->have_pointer_condtemp instead of fd->lastprivate_conditional to
16649         determine if a special set of API routines are needed and if condtemp
16650         needs to be initialized, while always initialize cond_var if
16651         fd->lastprivate_conditional is non-zero.
16653 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
16654             Michael Meissner  <meissner@linux.ibm.com>
16656         * config/rs6000/constraints.md (eI): New constraint.
16657         * config/rs6000/predicates.md (cint34_operand): New predicate.
16658         * config/rs6000/rs6000.h (SIGNED_16BIT_OFFSET_P): New #define.
16659         (SIGNED_34BIT_OFFSET_P): Likewise.
16660         * doc/md.texi (eI): Document constraint.
16662 2019-05-30  Sylvia Taylor  <sylvia.taylor@arm.com>
16664         * config/aarch64/aarch64-sve.md (*fabd<mode>3): New.
16666 2019-05-30  Bill Schmidt  <wschmidt@linux.ibm.com>
16667             Michael Meissner  <meissner@linux.ibm.com>
16669         * rs6000-cpus.def (OTHER_FUSION_MASKS): New #define.
16670         (ISA_3_0_MASKS_SERVER): Mask off OTHER_FUSION_MASKS.
16671         (ISA_3_0_MASKS_IEEE): Remove OPTION_MASK_DIRECT_MOVE.
16672         (ISA_FUTURE_MASKS_SERVER): Add OPTION_MASK_PREFIXED_ADDR.
16673         (OTHER_FUTURE_MASKS): Likewise.
16674         (POWERPC_MASKS): Likewise.
16675         * rs6000.c (rs6000_option_override_internal): Error if -mpcrel is
16676         specified without -mprefixed-addr or -mcpu=future.  Error if
16677         -mprefixed-addr is specified without -mcpu=future.
16678         (rs6000_opt_masks): Add entry for prefixed-addr.
16679         * rs6000.opt (mprefixed-addr): New option.
16681 2019-05-30  Sam Tebbs  <sam.tebbs@arm.com>
16683         * aarch64/aarch64.c (aarch64_post_cfi_startproc): Add
16684         cfun->is_thunk check.
16686 2019-05-30  Jakub Jelinek  <jakub@redhat.com>
16688         * tree-predcom.c (is_inv_store_elimination_chain): Fix a typo - lenght
16689         to length.
16691 2019-05-30  Martin Liska  <mliska@suse.cz>
16693         * gdbinit.in: Fix 'ptc' command.  Add trt
16694         that prints TREE_TYPE($).
16696 2019-05-29  Bill Schmidt  <wschmidt@linux.ibm.com>
16697             Alan Modra  <amodra@gmail.com>
16699         * config/rs6000/rs6000.c (rs6000_call_template_1): Handle pcrel
16700         calls here...
16701         (rs6000_indirect_call_template_1): ...and here.
16702         (rs6000_pltseq_template): Handle plt_pcrel34.  Rework tocsave,
16703         plt16_ha, plt16_lo, mtctr indirect calls.  Use
16704         rs6000_pltseq_enum.
16705         (rs6000_decl_ok_for_sibcall): New function.
16706         (rs6000_function_ok_for_sibcall): Refactor.
16707         (rs6000_longcall_ref): Use UNSPEC_PLT_PCREL when pcrel.
16708         (rs6000_call_aix): Don't emit toc restore rtl for indirect calls
16709         when pcrel.  Reorganize.
16710         (rs6000_sibcall_aix): Don't add r2 to function usage when pcrel.
16711         * rs6000.h (rs6000_pltseq_enum): New enum.
16712         * rs6000.md (UNSPEC_PLT_PCREL): New unspec.
16713         (*pltseq_tocsave): Use rs6000_pltseq_enum.
16714         (*pltseq_plt16_ha): Likewise.
16715         (*pltseq_plt16_lo): Likewise.
16716         (*pltseq_mtctr): Likewise.
16717         (*pltseq_plt_pcrel): New insn.
16718         (*call_local_aix): Handle @notoc calls.
16719         (*call_value_local_aix): Likewise.
16720         (*call_nonlocal_aix): Adjust lengths for pcrel calls.
16721         (*call_value_nonlocal_aix): Likewise.
16722         (*call_indirect_pcrel): New insn.
16723         (*call_value_indirect_pcrel): Likewise.
16725 2019-05-29  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16727         * config/i386/sse.md (*save_multiple<mode>): Rename from
16728         save_multiple<mode>.
16729         (*restore_multiple<mode>): Rename from restore_multiple<mode>.
16730         (*restore_multiple_and_return<mode>): Rename from
16731         restore_multiple_and_return<mode>.
16732         (*restore_multiple_leave_return<mode>): Rename from
16733         restore_multiple_leave_return<mode>.
16735 2019-05-29  Yoshinori Sato  <ysato@users.sourceforge.jp>
16737         * config.gcc (rx-*-linux*): New target.
16738         * config/rx/elf.opt: New file.
16739         * config/rx/linux.h: Likewise.
16740         * config/rx/t-linux: Likewise.
16741         * config/rx/rx.c (TARGET_SAVE_ACC_REGISTER): If not defined,
16742         make it zero.
16743         * config/rx/rx.h (ASM_APP_ON): Allow to be overridden.
16744         (ASM_APP_OFF): Likewise.
16745         * config/rx/rx.opt: Drop -msim and -mas100-syntax, they were
16746         moved elsewhere.
16748 2019-05-29  Jan Hubicka  <jh@suse.cz>
16750         * tree-ssa-alias.c (same_type_for_tbaa): Return ture if main
16751         variants are pointer equivalent.
16753 2019-05-29  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
16755         * config/aarch64/aarch64-c.c: Added TARGET_SVE2.
16756         * config/aarch64/aarch64-sve2.md: New file.
16757         (<u>avg<mode>3_floor): New pattern.
16758         (<u>avg<mode>3_ceil): Likewise.
16759         (*<sur>h<addsub><mode>): Likewise.
16760         * config/aarch64/aarch64.h: Added AARCH64_ISA_SVE2 and TARGET_SVE2.
16761         * config/aarch64/aarch64.md: Include aarch64-sve2.md.
16763 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
16765         PR bootstrap/90543
16766         * optc-save-gen.awk: In cl_optimization_print, use correct condition
16767         for var_opt_string printing.  In cl_optimization_print_diff, print
16768         (null) instead of invoking undefined behavior if one of the
16769         var_opt_string pointers is NULL and use && instead of first || in the
16770         guarding condition.  For var_target_other options, handle const char *
16771         target variables similarly to const char * optimize node variables.
16773 2019-05-29  Sam Tebbs  <sam.tebbs@arm.com>
16775         * config/aarch64/aarch64-builtins.c (aarch64_builtins): Add
16776         AARCH64_PAUTH_BUILTIN_AUTIB1716 and AARCH64_PAUTH_BUILTIN_PACIB1716.
16777         * config/aarch64/aarch64-builtins.c (aarch64_init_pauth_hint_builtins):
16778         Add autib1716 and pacib1716 initialisation.
16779         * config/aarch64/aarch64-builtins.c (aarch64_expand_builtin): Add checks
16780         for autib1716 and pacib1716.
16781         * config/aarch64/aarch64-protos.h (aarch64_key_type,
16782         aarch64_post_cfi_startproc): Define.
16783         * config/aarch64/aarch64-protos.h (aarch64_ra_sign_key): Define extern.
16784         * config/aarch64/aarch64.c (aarch64_handle_standard_branch_protection,
16785         aarch64_handle_pac_ret_protection): Set default sign key to A.
16786         * config/aarch64/aarch64.c (aarch64_expand_epilogue,
16787         aarch64_expand_prologue): Add check for b-key.
16788         * config/aarch64/aarch64.c (aarch64_ra_sign_key,
16789         aarch64_post_cfi_startproc, aarch64_handle_pac_ret_b_key): Define.
16790         * config/aarch64/aarch64.h (TARGET_ASM_POST_CFI_STARTPROC): Define.
16791         * config/aarch64/aarch64.c (aarch64_pac_ret_subtypes): Add "b-key".
16792         * config/aarch64/aarch64.md (unspec): Add UNSPEC_AUTIA1716,
16793         UNSPEC_AUTIB1716, UNSPEC_AUTIASP, UNSPEC_AUTIBSP, UNSPEC_PACIA1716,
16794         UNSPEC_PACIB1716, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16795         * config/aarch64/aarch64.md (do_return): Add check for b-key.
16796         * config/aarch64/aarch64.md (<pauth_mnem_prefix>sp): Replace
16797         pauth_hint_num_a with pauth_hint_num.
16798         * config/aarch64/aarch64.md (<pauth_mnem_prefix>1716): Replace
16799         pauth_hint_num_a with pauth_hint_num.
16800         * config/aarch64/aarch64.opt (msign-return-address=): Deprecate.
16801         * config/aarch64/iterators.md (PAUTH_LR_SP): Add UNSPEC_AUTIASP,
16802         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16803         * config/aarch64/iterators.md (PAUTH_17_16): Add UNSPEC_AUTIA1716,
16804         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716.
16805         * config/aarch64/iterators.md (pauth_mnem_prefix): Add UNSPEC_AUTIA1716,
16806         UNSPEC_AUTIB1716, UNSPEC_PACIA1716, UNSPEC_PACIB1716, UNSPEC_AUTIASP,
16807         UNSPEC_AUTIBSP, UNSPEC_PACIASP, UNSPEC_PACIBSP.
16808         * config/aarch64/iterators.md (pauth_hint_num_a): Replace
16809         UNSPEC_PACI1716 and UNSPEC_AUTI1716 with UNSPEC_PACIA1716 and
16810         UNSPEC_AUTIA1716 respectively.
16811         * config/aarch64/iterators.md (pauth_hint_num_a): Rename to
16812         pauth_hint_num and add UNSPEC_PACIBSP, UNSPEC_AUTIBSP,
16813         UNSPEC_PACIB1716, UNSPEC_AUTIB1716.
16814         * doc/invoke.texi (-mbranch-protection): Add b-key type.
16815         * config/aarch64/aarch64-bti-insert.c (aarch64_pac_insn_p): Rename
16816         UNSPEC_PACISP to UNSPEC_PACIASP and UNSPEC_PACIBSP.
16818 2019-05-29  Jakub Jelinek  <jakub@redhat.com>
16820         * gimplify.c (struct gimplify_omp_ctx): Add clauses member.
16821         (gimplify_scan_omp_clauses): Initialize ctx->clauses.
16822         (gimplify_adjust_omp_clauses_1): Transform lastprivate conditional
16823         explicit clause on combined parallel into implicit shared clause.
16824         (gimplify_adjust_omp_clauses): Move lastprivate conditional clause
16825         and firstprivate if the decl has one too from combined parallel to
16826         the worksharing construct.
16828 2019-05-28  Bill Schmidt  <wschmidt@linux.ibm.com>
16829             Michael Meissner  <meissner@linux.ibm.com>
16831         * config/rs6000/rs6000-cpus.def (OTHER_FUTURES_MASK): New #define.
16833 2019-05-28  Michael Meissner  <meissner@linux.ibm.com>
16835         * rtl.h (LABEL_REF_P): New #define.
16837 2019-05-28  John David Anglin  <danglin@gcc.gnu.org>
16839         * config/pa/pa.c (hppa_profile_hook): Remove offset adjustment.
16841 2019-05-28  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
16843         * internal-fn.c: Marked mask_load_direct as vectorizable.
16844         * tree-data-ref.c (data_ref_compare_tree): Fixed comment typo.
16845         * tree-vect-data-refs.c (can_group_stmts_p): Allow masked loads to be
16846         combined even if masks different with allow_slp_p param.
16847         (vect_analyze_data_ref_accesses): Mark SLP only vectorizable groups.
16848         * tree-vect-loop.c (vect_dissolve_slp_only_groups): New function to
16849         dissolve SLP-only vectorizable groups when SLP has been discarded.
16850         (vect_analyze_loop_2): Call vect_dissolve_slp_only_groups when needed.
16851         * tree-vect-slp.c (vect_get_and_check_slp_defs): Check masked loads
16852         masks.
16853         (vect_build_slp_tree_1): Fixed comment typo.
16854         (vect_build_slp_tree_2): Include masks from masked loads in SLP tree.
16855         * tree-vect-stmts.c (vectorizable_load): Allow vectorizaion of masked
16856         loads for SLP only.
16857         * tree-vectorizer.h (_stmt_vec_info): Added flag for SLP-only
16858         vectorizable.
16859         * tree-vectorizer.c (vec_info::new_stmt_vec_info): Likewise.
16861 2019-05-28  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
16863         * config/alpha/alpha.c [TARGET_ABI_OSF] (alpha_output_mi_thunk_osf):
16864         Remove obsolete use_thunk reference.
16865         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
16866         * config/ia64/ia64.c (ia64_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/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
16870         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
16871         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
16872         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
16873         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
16875 2019-05-28  Nathan Sidwell  <nathan@acm.org>
16877         * tree.h (IDENTIFIER_ANON_P): New.
16878         (anon_aggrname_format, anon_aggname_p): Don't declare.
16879         (make_anon_name): Declare.
16880         * lto-streamer-out.c (DFS::DFS_write_tree_body): Use IDENTIFIER_ANON_P.
16881         (hash_tree): Likewise.
16882         * tree-streamer-out.c (write_ts_decl_minimal_tree): Likewise.
16883         * tree.c (anon_aggrname_p, anon_aggrname_format): Delete.
16884         (anon_cnt, make_anon_name): New.
16886 2019-05-28  Martin Liska  <mliska@suse.cz>
16888         PR other/90315
16889         * opts-global.c (decode_options): Print help for all
16890         help_option_arguments.
16891         * opts.c (print_help): Add new argument.
16892         (common_handle_option): Remember all values into
16893         help_option_arguments.
16894         * opts.h (print_help): Add new argument.
16896 2019-05-28  Martin Liska  <mliska@suse.cz>
16898         PR ipa/90555
16899         * ipa-icf-gimple.c (func_checker::compare_loops): New function.
16900         * ipa-icf-gimple.h (func_checker::compare_loops): Likewise.
16901         (func_checker::compare_bb): Call compare_loops.
16903 2019-05-27  Jakub Jelinek  <jakub@redhat.com>
16905         * gimplify.c (gimplify_scan_omp_clauses): Allow lastprivate conditional
16906         on sections construct.
16907         * omp-low.c (lower_lastprivate_conditional_clauses): Handle sections
16908         construct.
16909         (lower_omp_sections): Handle lastprivate conditional.
16910         (lower_omp_1) <case GIMPLE_ASSIGN>: Handle sections construct with
16911         lastprivate_conditional_map.
16912         * omp-expand.c (expand_omp_sections): Handle lastprivate conditional.
16914         * omp-low.c (lower_omp_1) <case GIMPLE_ASSIGN>: Look through ordered,
16915         critical, taskgroup and section regions when looking for a region
16916         with non-NULL lastprivate_conditional_map.
16918 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16920         * config/i386/i386.c (ix86_gen_add3): Remove indirect function.
16921         (*ix86_gen_sub3): Ditto.
16922         (*ix86_gen_sub3_carry): Ditto.
16923         (*ix86_gen_one_cmpl2): Ditto.
16924         (*ix86_gen_andsp): Ditto.
16925         (ix86_init_large_pic_reg): Use gen_add2_insn instead of ix86_gen_add3.
16926         (gen_and2_insn): New static function.
16927         (ix86_expand_prologue): Use gen_and2_insn instead of ix86_gen_andsp.
16928         Use gen_add3_insn instead of ix86_gen_add3.
16929         (ix86_expand_split_stack_prologue): Use gen_add2_insn
16930         instead of ix86_gen_add3.
16931         (legitimize_tls_address): Use gen_add2_insn instead of ix86_gen_add3.
16932         Use gen_sub3_insn instead of ix86_gen_sub3.
16933         * config/i386-expand.c (ix86_split_long_move): Use gen_add2_insn
16934         instead of ix86_gen_add3.
16935         (ix86_expand_strlensi_unroll_1): Use gen_add2_insn instead of
16936         ix86_gen_add3.  Use gen_sub3_insn instead of ix86_gen_sub3.
16937         (construct_plt_address): Use gen_add2_insn instead of ix86_gen_add3.
16938         * config/i386/i386-options.c (ix86_option_override_internal):
16939         Do not initialize ix86_gen_add3, ix86_gen_sub3, ix86_gen_sub3_carry,
16940         ix86_gen_one_cmpl2 and ix86_gen_andsp.
16942 2019-05-27  Eric Botcazou  <ebotcazou@adacore.com>
16944         * dwarf2out.c (resolve_args_picking_1): Deal with DW_OP_GNU_addr_index
16945         and DW_OP_GNU_const_index opcodes.
16947 2019-05-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16949         * config/i386/i386.h (STACK_SIZE_MODE): Define.
16951 2019-05-27  Richard Biener  <rguenther@suse.de>
16953         PR tree-optimization/90637
16954         * tree-ssa-sink.c (statement_sink_location): Honor the
16955         computed sink location for single-uses.
16957 2019-05-27  Richard Biener  <rguenther@suse.de>
16959         PR middle-end/90610
16960         * match.pd (vec_perm): Avoid clobbering op0 when not generating
16961         a bit-insert.
16963 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16965         * config/i386/i386.md (@sub<mode>3_carry): Rename
16966         from sub<mode>3_carry.
16967         (@leave_<mode>): New expander.
16968         (*leave): Rename from leave.
16969         (*leave_rex64): Rename from leave_rex64.
16970         (@monitorx_<mode>): Rename from monitorx_<mode>.
16971         (@clzero_<mode>): Rename from clzero_<mode>.
16972         * config/i386/sse.md (@sse3_monitor_<mode>): Rename
16973         from sse3_monitor_<mode>.
16974         * config/i386/i386.c (ix86_gen_sub3_carry): Remove indirect function.
16975         (*ix86_gen_leave): Ditto.
16976         (*ix86_gen_monitor): Ditto.
16977         (*ix86_gen_monitorx): Ditto.
16978         (*ix86_gen_clzero): Ditto.
16979         (ix86_emit_leave): Use gen_leave instead of ix86_gen_leave.
16980         * config/i386/i386-expand.c (ix86_expand_strlensi_unroll_1):
16981         Use gen_sub3_carry instead of ix86_gen_sub3_carry.
16982         (ix86_expand_builtin) <case IX86_BUILTIN_MONITOR>:
16983         Use gen_sse3_monitor instead of ix86_gen_monitor.
16984         <case IX86_BUILTIN_MONITORX>: Use gen_monitorx
16985         instead of ix86_gen_monitorx.
16986         <case IX86_BUILTIN_CLZERO>: Use gen_clzero
16987         instead of ix86_gen_clzero.
16988         * config/i386/i386-options.c (ix86_option_override_internal):
16989         Do not initialize ix86_gen_leave, ix86_gen_sub3_carry,
16990         ix86_gen_monitor, ix86_gen_monitorx and ix86_gen_clzero.
16992 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
16994         * config/i386/i386.md (@tls_global_dynamic_64_<mode>):
16995         Rename from tls_global_dynamic_64_<mode>.
16996         (@tls_local_dynamic_base_64_<mode>): Rename from
16997         tls_local_dynamic_base_64_<mode>.
16998         * config/i386/i386.c (*ix86_gen_tls_global_dynamic_64):
16999         Remove indirect function.
17000         (*ix86_gen_tls_local_dynamic_base_64): Ditto.
17001         (legitimize_tls_address): Use gen_tls_global_dynamic_64 function
17002         instead of ix86_gen_tls_global_dynamic_64.
17003         Use gen_tls_local_dynamic_base_64 instead of
17004         ix86_gen_tls_local_dynamic_base_64.
17005         * config/i386/i386-options.c (ix86_option_override_internal):
17006         Do not initialize ix86_gen_tls_global_dynamic_64 and
17007         ix86_gen_tls_local_dynamic_base_64.
17009 2019-05-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17011         * config/i386/i386.md (@pro_epilogue_adjust_stack_add_<mode>)
17012         Rename from pro_epilogue_adjust_stack_<mode>_add.
17013         (@pro_epilogue_adjust_stack_sub_<mode>)
17014         Rename from pro_epilogue_adjust_stack_<mode>_sub.
17015         (@allocate_stack_worker_probe_<mode>):
17016         Rename from allocate_stack_worker_probe_<mode>.
17017         (allocate_stack): Use gen_allocate_stack_worker_probe.
17018         (probe_stack): Use gen_probe_stack_1.
17019         (@probe_stack_1_<mode>): Rename from probe_stack_<mode>.
17020         (@adjust_stack_and_probe_<mode>): Rename from
17021         adjust_stack_and_probe<mode>.
17022         (@probe_stack_range_<mode>): Rename from probe_stack_range<mode>.
17023         (stack_protect_set): Use gen_stack_protect_set_1.
17024         (@stack_protect_set_1_<mode>): Rename from stack_protect_set_<mode>.
17025         (stack_protect_test): Use gen_stack_protect_test_1.
17026         (@stack_protect_test_1_<mode>): Rename from stack_protect_test_<mode>.
17027         * config/i386/i386.c (*ix86_gen_allocate_stack_worker):
17028         Remove indirect function.
17029         (*ix86_gen_adjust_stack_and_probe): Ditto.
17030         (*ix86_gen_probe_stack_range): Ditto.
17031         (pro_epilogue_adjust_stack): Use gen_pro_epilogue_adjust_stack_add
17032         instead of gen_pro_epilogue_adjust_stack_{si,di}_add.
17033         (ix86_adjust_stack_and_probe_stack_clash): Use
17034         gen_adjust_stack_and_probe instead of ix86_gen_adjust_stack_and_probe.
17035         (ix86_adjust_stack_and_probe): Ditto.
17036         (ix86_emit_probe_stack_range): Use gen_probe_stack_range instead
17037         of ix86_gen_probe_stack_range.
17038         (ix86_expand_prologue): Use gen_pro_epilogue_adjust_stack_sub
17039         instead of gen_pro_epilogue_adjust_stack_{si,di}_sub.
17040         * config/i386/x86-tune-sched.c (ix86_macro_fusion_pair_p):
17041         Include insn-opinit.h.  Use code_for_stack_protect_test_1 instead of
17042         CODE_FOR_stack_protect_test_{si,di}.
17043         * config/i386/i386-options.c (ix86_option_override_internal):
17044         Do not initialize ix86_gen_allocate_stack_worker,
17045         ix86_gen_adjust_stack_and_probe and ix86_gen_probe_stack_range.
17047 2019-05-26  Gerald Pfeifer  <gerald@pfeifer.com>
17049         * doc/invoke.texi (Link Options): Many editorial changes around
17050         -flinker-output.
17052 2019-05-26  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17054         * doc/invoke.texi (x86 Options, -mvect8-ret-in-mem): Remove
17055         pre-Solaris 11 referene and most Studio compiler details.
17057 2019-05-24  John David Anglin  <danglin@gcc.gnu.org>
17059         PR target/90530
17060         * config/pa/pa.c (pa_can_change_mode_class): Accept mode changes from
17061         DImode to SImode in floating-point registers on 64-bit target.
17062         * config/pa/pa.md (umulsidi3): Change nonimmediate_operand to
17063         register_operand in xmpyu patterns.
17065 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
17067         * tree-core.h (enum omp_clause_code): Add OMP_CLAUSE__CONDTEMP_.
17068         * tree.h (OMP_CLAUSE_DECL): Use OMP_CLAUSE__CONDTEMP_ instead of
17069         OMP_CLAUSE__REDUCTEMP_.
17070         * tree.c (omp_clause_num_ops, omp_clause_code_name): Add
17071         OMP_CLAUSE__CONDTEMP_.
17072         (walk_tree_1): Handle OMP_CLAUSE__CONDTEMP_.
17073         * tree-pretty-print.c (dump_omp_clause): Likewise.
17074         * tree-nested.c (convert_nonlocal_omp_clauses,
17075         convert_local_omp_clauses): Likewise.
17076         * gimplify.c (enum gimplify_omp_var_data): Use hexadecimal constants
17077         instead of decimal.  Add GOVD_LASTPRIVATE_CONDITIONAL.
17078         (gimplify_scan_omp_clauses): Don't reject lastprivate conditional
17079         on OMP_FOR.
17080         (gimplify_omp_for): Warn and disable conditional modifier from
17081         lastprivate on loop iterators.
17082         * omp-general.h (struct omp_for_data): Add lastprivate_conditional
17083         member.
17084         * omp-general.c (omp_extract_for_data): Initialize it.
17085         * omp-low.c (struct omp_context): Add lastprivate_conditional_map
17086         member.
17087         (delete_omp_context): Delete it.
17088         (lower_lastprivate_conditional_clauses): New function.
17089         (lower_lastprivate_clauses): Add BODY_P and CSTMT_LIST arguments,
17090         handle lastprivate conditional clauses.
17091         (lower_reduction_clauses): Add CLIST argument, emit it into
17092         the critical section if any.
17093         (lower_omp_sections): Adjust lower_lastprivate_clauses and
17094         lower_reduction_clauses callers.
17095         (lower_omp_for_lastprivate): Add CLIST argument, pass it through
17096         to lower_lastprivate_clauses.
17097         (lower_omp_for): Call lower_lastprivate_conditional_clauses, adjust
17098         lower_omp_for_lastprivate and lower_reduction_clauses callers, emit
17099         clist into a critical section if not emitted there already by
17100         lower_reduction_clauses.
17101         (lower_omp_taskreg, lower_omp_teams): Adjust lower_reduction_clauses
17102         callers.
17103         (lower_omp_1): Handle GIMPLE_ASSIGNs storing into lastprivate
17104         conditional variables.
17105         * omp-expand.c (determine_parallel_type): Punt if OMP_CLAUSE__CONDTEMP_
17106         clause is present.
17107         (expand_omp_for_generic, expand_omp_for_static_nochunk,
17108         expand_omp_for_static_chunk): Handle lastprivate conditional.
17109         (expand_omp_for): Handle fd.lastprivate_conditional like
17110         fd.have_reductemp.
17112 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
17114         * config/gcn/gcn-run.c (main): Set a non-zero return value if the
17115         kernel does not exit cleanly.
17116         * config/gcn/gcn.md (gcn_return): Insert s_waitcnt before s_dcache_wb.
17118 2019-05-24  Jason Merrill  <jason@redhat.com>
17120         Revert:
17121         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17123 2019-05-24  Richard Biener  <rguenther@suse.de>
17125         PR testsuite/90607
17126         * tree-loop-distribution.c (struct partition): Add location
17127         member.
17128         (partition_alloc): Initialize all fields.
17129         (generate_memset_builtin): Use the location recorded in the
17130         partition for the generated call.
17131         (generate_memcpy_builtin): Likewise.
17132         (classify_partition): Record the location of a single store
17133         as location for the partition.
17135 2019-05-24  Andrew Stubbs  <ams@codesourcery.com>
17137         * config/gcn/gcn.c (gcn_expand_prologue): Use gen_addsi3_scalar_carry
17138         for lo-part.
17140 2019-05-24  Matthew Malcomson  <matthew.malcomson@arm.com>
17142         PR target/90588
17143         * common/config/aarch64/aarch64-common.c
17144         (aarch64_rewrite_selected_cpu): Change local temporary variable
17145         type from unsigned long to uint64_t.
17146         * config/aarch64/aarch64-protos.h (aarch64_parse_extension,
17147         aarch64_get_extension_string_for_isa_flags): Change declaration to
17148         match new definition by replacing unsigned long with uint64_t.
17150 2019-05-24  Jakub Jelinek  <jakub@redhat.com>
17152         PR target/90568
17153         * config/i386/x86-tune-sched.c (ix86_macro_funsion_pair_p): Call
17154         gen_attr_type just once instead of 4-7 times.  Formatting fixes.
17155         Handle stack_protect_test_<mode> codegen similarly to corresponding
17156         sub instruction.
17158 2019-05-23  Iain Sandoe  <iain@sandoe.co.uk>
17160         * config/i386/darwin.h: Reject -mfentry*.
17161         * doc/sourcebuild.texi: Document mfentry target support.
17163 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
17165         * config/rs6000/rs6000.c (rs6000_global_entry_point_needed_p):
17166         Rename to rs6000_global_entry_point_prologue_needed_p.  Return
17167         false for PC-relative functions.
17168         (rs6000_output_function_prologue): Change called function name to
17169         rs6000_global_entry_point_prologue_needed_p.  Emit ".localentry
17170         name,1" for PC-relative functions.
17171         (rs6000_elf_declare_function_name): Change called function name to
17172         rs6000_global_entry_point_prologue_needed_p.
17174 2019-05-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17176         PR target/90552
17177         * config/i386/i386.c (gen_rtx_cost):
17178         Use ix86_tune_cost instead of ix86_cost.
17180 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
17181             Michael Meissner  <meissner@linux.ibm.com>
17182             Segher Boessenkool  <segher@kernel.crashing.org>
17184         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): Add
17185         OPTION_MASK_PCREL.
17186         (POWERPC_MASKS): Add OPTION_MASK_PCREL.
17187         * config/rs6000/rs6000-protos.h (rs6000_pcrel_p): New prototype.
17188         (rs6000_fndecl_pcrel_p): Likewise.
17189         * config/rs6000/rs6000.c (rs6000_option_override_internal): Report
17190         error if -mpcrel is requested without -mcpu=future.
17191         (rs6000_opt_masks): Add entry for pcrel.
17192         (rs6000_fndecl_pcrel_p): New function.
17193         (rs6000_pcrel_p): Likewise.
17194         * config/rs6000/rs6000.opt (mpcrel): New option.
17195         * doc/invoke.texi: Document -mpcrel and -mno-pcrel.
17197 2019-05-23  Jan Hubicka  <jh@suse.cz>
17198             Martin Liska  <mliska@suse.cz>
17200         PR tree-optimization/90576
17201         * tree-ssa-alias.c (compare_sizes): Remove dead calls to
17202         poly_int_tree_p.
17203         (aliasing_component_refs_p): Fix three way size compare conditional;
17204         give up earlier in case we can not decide on equivalence.
17206 2019-05-23  Bill Schmidt  <wschmidt@linux.ibm.com>
17207             Michael Meissner  <meissner@linux.ibm.com>
17208             Segher Boessenkool  <segher@kernel.crashing.org>
17210         * config.gcc: Add future cpu.
17211         * config/rs6000/driver-rs6000.c (asm_names): Add future cpu.
17212         * config/rs6000/rs6000-cpus.def (ISA_FUTURE_MASKS_SERVER): New
17213         #define.
17214         (POWERPC_MASKS): Add OPTION_MASK_FUTURE.
17215         (RS6000_CPU): New instantiation for future cpu.
17216         * config/rs6000/rs6000-opts.h (enum processor_type): Add
17217         PROCESSOR_FUTURE.
17218         * config/rs6000/rs6000-string.c (expand_compare_loop): Treat
17219         PROCESSOR_FUTURE like PROCESSOR_POWER9 for now.
17220         * config/rs6000/rs6000-tables.opt: Regenerate.
17221         * config/rs6000/rs6000.c (rs6000_option_override_internal): Treat
17222         PROCESSOR_FUTURE similarly to PROCESSOR_POWER9 for now.
17223         (rs6000_machine_from_flags): Handle future cpu.
17224         (rs6000_reassociation_width): Treat PROCESSOR_FUTURE like
17225         PROCESSOR_POWER9 for now.
17226         (rs6000_adjust_cost): Likewise.
17227         (rs6000_issue_rate): Likewise.
17228         (rs6000_register_move_cost): Likewise.
17229         (rs6000_opt_masks): Add entry for future.
17230         * config/rs6000/rs6000.h (ASM_CPU_SPEC): Add future cpu.
17231         (MASK_FUTURE): New #define.
17232         * config/rs6000/rs6000.md (define_attr "cpu"): Add future cpu.
17233         * config/rs6000/rs6000.opt (mfuture): New target option.
17234         * doc/invoke.texi (mcpu): Add future cpu.
17236 2019-05-23  Martin Liska  <mliska@suse.cz>
17238         PR c++/90587
17239         * tree-ssa-uninit.c (value_sat_pred_p): The result of &
17240         operation points to a temporary (pointed via tree_to_wide_ref)
17241         that is out of scope after the &.
17243 2019-05-23  Jonathan Wakely  <jwakely@redhat.com>
17245         PR c++/90592
17246         * doc/extend.texi (Function Names): Add missing word.
17248 2019-05-23  Richard Biener  <rguenther@suse.de>
17250         PR tree-optimization/88440
17251         * opts.c (default_options_table): Enable -ftree-loop-distribute-patterns
17252         at -O[2s]+.
17253         * tree-loop-distribution.c (generate_memset_builtin): Fold the
17254         generated call.
17255         (generate_memcpy_builtin): Likewise.
17256         (distribute_loop): Pass in whether to only distribute patterns.
17257         (prepare_perfect_loop_nest): Also allow size optimization.
17258         (pass_loop_distribution::execute): When optimizing a loop
17259         nest for size allow pattern replacement.
17261 2019-05-23  Jakub Jelinek  <jakub@redhat.com>
17263         PR target/90568
17264         * config/i386/i386.md (stack_protect_test_<mode>): Use sub instead
17265         of xor.
17267 2019-05-23  Martin Liska  <mliska@suse.cz>
17269         PR sanitizer/90570
17270         * gimplify.c (gimplify_target_expr): Skip TREE_STATIC target
17271         expression similarly to gimplify_decl_expr.
17273 2019-05-23  Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
17275         * cse.c (cse_dump_path): s/dump_file/f.
17277 2019-05-22  David Malcolm  <dmalcolm@redhat.com>
17279         PR c++/90462
17280         * diagnostic-format-json.cc: Include "selftest.h".
17281         (json_from_expanded_location): Only add "file" key for non-NULL
17282         file strings.
17283         (json_from_location_range): Don't add "start" and "finish"
17284         children if they are UNKNOWN_LOCATION.
17285         (selftest::test_unknown_location): New selftest.
17286         (selftest::test_bad_endpoints): New selftest.
17287         (selftest::diagnostic_format_json_cc_tests): New function.
17288         * json.cc (json::object::get): New function.
17289         (selftest::test_object_get): New selftest.
17290         (selftest::json_cc_tests): Call it.
17291         * json.h (json::object::get): New decl.
17292         * selftest-run-tests.c (selftest::run_tests): Call
17293         selftest::diagnostic_format_json_cc_tests.
17294         * selftest.h (selftest::diagnostic_format_json_cc_tests): New
17295         decl.
17297 2019-05-22  Kwok Cheung Yeung  <kcy@codesourcery.com>
17298             Andrew Stubbs  <amd@codesourcery.com>
17300         * config.gcc (gcc_cv_initfini_array): Set for AMD GCN.
17301         * config/gcn/gcn-run.c (init_array_kernel, fini_array_kernel): New.
17302         (kernel): Rename to...
17303         (main_kernel): ... this.
17304         (load_image): Load _init_array and _fini_array kernels.
17305         (run): Add argument for kernel to run.
17306         (main): Run init_array_kernel before main_kernel, and
17307         fini_array_kernel after.
17308         * config/gcn/gcn.c (gcn_handle_amdgpu_hsa_kernel_attribute): Allow
17309         amdgpu_hsa_kernel attribute on functions.
17310         (gcn_disable_constructors): Delete.
17311         (TARGET_ASM_CONSTRUCTOR, TARGET_ASM_DESTRUCTOR): Delete.
17312         * config/gcn/crt0.c (size_t): Define.
17313         (_init_array, _fini_array): New.
17314         (__preinit_array_start, __preinit_array_end,
17315         __init_array_start, __init_array_end,
17316         __fini_array_start, __fini_array_end): Declare weak references.
17318 2019-05-22  Andrew Stubbs  <ams@codesourcery.com>
17320         * config/gcn/gcn.c (gcn_trampoline_init): Call "sorry" on GCN5.
17322 2019-05-22  Jason Merrill  <jason@redhat.com>
17324         * gimplify.c (gimplify_cond_expr): Don't check TREE_ADDRESSABLE.
17326 2019-05-22  H.J. Lu  <hongjiu.lu@intel.com>
17328         PR target/88483
17329         * config/i386/i386-options.c (ix86_init_machine_status): Set
17330         stack_frame_required to true.
17331         * config/i386/i386.c (ix86_get_frame_size): New function.
17332         (ix86_frame_pointer_required): Replace get_frame_size with
17333         ix86_get_frame_size.
17334         (ix86_compute_frame_layout): Likewise.
17335         (ix86_find_max_used_stack_alignment): Changed to void.  Set
17336         stack_frame_required.
17337         (ix86_finalize_stack_frame_flags): Always call
17338         ix86_find_max_used_stack_alignment.  Replace get_frame_size with
17339         ix86_get_frame_size.
17340         * config/i386/i386.h (machine_function): Add stack_frame_required.
17342 2019-05-22  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17344         * config/i386/sse.md (sse_cvtpi2ps): Use TARGET_MMX in insn condition.
17346 2019-05-22  Matthew Malcomson  <matthew.malcomson@arm.com>
17348         * common/config/aarch64/aarch64-common.c
17349         (struct aarch64_option_extension, struct processor_name_to_arch,
17350         struct arch_to_arch_name, aarch64_parse_extension, opt_ext_cmp,
17351         aarch64_contains_opt,
17352         aarch64_get_extension_string_for_isa_flags): Change type of
17353         variables storing flags to uint64_t.
17354         * config/aarch64/aarch64-option-extensions.def (sve2, sve2-sm4,
17355         sve2-aes, sve2-sha3, bitperm): New optional SVE2 extension flags.
17356         * config/aarch64/aarch64.c (struct processor,
17357         aarch64_parse_arch, aarch64_parse_cpu, aarch64_validate_mcpu,
17358         aarch64_validate_march, aarch64_override_options,
17359         aarch64_option_print, aarch64_handle_attr_isa_flags,
17360         aarch64_declare_function_name, aarch64_start_file): Make flag
17361         variables uint64_t.
17362         * config/aarch64/aarch64.h (AARCH64_FL_SVE2, AARCH64_FL_SVE2_AES,
17363         AARCH64_FL_SVE2_SM4, AARCH64_FL_SVE2_SHA3,
17364         AARCH64_FL_SVE2_BITPERM): New macro feature flags.
17365         * config/aarch64/aarch64.opt (aarch64_isa_flags): Make uint64_t.
17366         * config/aarch64/driver-aarch64.c
17367         (struct aarch64_arch_extension, struct aarch64_core_data,
17368         struct aarch64_arch_driver_info, host_detect_local_cpu): Make
17369         flag variables uint64_t.
17370         * doc/invoke.texi: Add documentation for new arguments.
17372 2019-05-22  Richard Biener  <rguenther@suse.de>
17374         * alias.c (ao_ref_from_mem): Move stack-slot sharing
17375         rewrite ...
17376         * emit-rtl.c (set_mem_attributes_minus_bitpos): ... here.
17378 2019-05-22  Martin Liska  <mliska@suse.cz>
17380         PR lto/90500
17381         * doc/extend.texi: Document the change.
17383 2019-05-22  Richard Biener  <rguenther@suse.de>
17385         PR tree-optimization/90450
17386         * tree-ssa-loop-im.c (struct im_mem_ref): Add ref_decomposed.
17387         (mem_ref_hasher::equal): Check it.
17388         (mem_ref_alloc): Initialize it.
17389         (gather_mem_refs_stmt): Set it.
17391 2019-05-22  Richard Biener  <rguenther@suse.de>
17393         * gimple-fold.c (arith_code_with_undefined_signed_overflow):
17394         Add ABS_EXPR.
17395         (rewrite_to_defined_overflow): Handle rewriting ABS_EXPR
17396         as ABSU_EXPR.
17398 2019-05-22  Alan Modra  <amodra@gmail.com>
17400         * config/rs6000/rs6000.h (ASM_OPT_ANY): Define.
17401         (ASM_CPU_SPEC): Conditionally add -many.
17402         * config/rs6000/rs6000.c (rs6000_machine): New static var.
17403         (rs6000_machine_from_flags, emit_asm_machine): New functions..
17404         (rs6000_file_start): ..extracted from here, and modified to
17405         test all ISA bits.
17406         (rs6000_output_function_prologue): Emit .machine as necessary.
17408 2019-05-22  Hans-Peter Nilsson  <hp@axis.com>
17410         PR middle-end/90553
17411         * ira-lives.c (process_bb_node_lives): Consider defs
17412         for a call insn to be die before the call, not after.
17414         * function.c (assign_parm_setup_block): Raise alignment of
17415         stacked parameter only for STRICT_ALIGNMENT targets.
17417 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17419         * config/rs6000/constraints.md (define_register_constraint "wz"):
17420         Delete.
17421         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17422         RS6000_CONSTRAINT_wz.
17423         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17424         (rs6000_init_hard_regno_mode_ok): Adjust.
17425         * config/rs6000/rs6000.md: Replace "wz" constraint by "d" with "p7".
17426         * doc/md.texi (Machine Constraints): Adjust.
17428 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17430         * config/rs6000/constraints.md (define_register_constraint "wl"):
17431         Delete.
17432         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17433         RS6000_CONSTRAINT_wl.
17434         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17435         (rs6000_init_hard_regno_mode_ok): Adjust.
17436         * config/rs6000/rs6000.md: Replace "wl" constraint by "d" with "p6".
17437         * doc/md.texi (Machine Constraints): Adjust.
17439 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17441         * config/rs6000/constraints.md (define_register_constraint "wm"):
17442         Delete.
17443         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17444         RS6000_CONSTRAINT_wm.
17445         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17446         (rs6000_init_hard_regno_mode_ok): Adjust.
17447         * config/rs6000/vsx.md: Replace "wm" constraint by "wa" with "p8v".
17448         * doc/md.texi (Machine Constraints): Adjust.
17450 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17452         * config/rs6000/constraints.md (define_register_constraint "wk"):
17453         Delete.
17454         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17455         RS6000_CONSTRAINT_wk.
17456         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17457         (rs6000_init_hard_regno_mode_ok): Adjust.
17458         * config/rs6000/rs6000.md: Replace "wk" constraint by "ws" with "p8v".
17459         * doc/md.texi (Machine Constraints): Adjust.
17461 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17463         * config/rs6000/constraints.md (define_register_constraint "wj"):
17464         Delete.
17465         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17466         RS6000_CONSTRAINT_wj.
17467         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17468         (rs6000_init_hard_regno_mode_ok): Adjust.
17469         * config/rs6000/rs6000.md: Replace "wj" constraint by "wi" with "p8v".
17470         (VS_64dm): Delete.
17471         * config/rs6000/vsx.md: Ditto.
17472         * doc/md.texi (Machine Constraints): Adjust.
17474 2019-05-21  Segher Boessenkool  <segher@kernel.crashing.org>
17476         * config/rs6000/constraints.md (define_register_constraint "wh"):
17477         Delete.
17478         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17479         RS6000_CONSTRAINT_wh.
17480         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17481         (rs6000_init_hard_regno_mode_ok): Adjust.
17482         * config/rs6000/rs6000.md: Replace "wh" constraint by "wa" with "p8v".
17483         * doc/md.texi (Machine Constraints): Adjust.
17485 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17487         PR target/90547
17488         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
17489         Avoid calling gen_lowpart with CONST operand.
17491 2019-05-21  Alexandre Oliva  <aoliva@redhat.com>
17493         * tree-ssa-threadupdate.c (struct ssa_local_info_t): Add
17494         field template_last_to_copy.
17495         (ssa_create_duplicates): Set it, and use it.  Attempt to
17496         preserve more debug stmts.
17498 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17500         * config/i386/sse.md (VF1_AVX2): New mode iterator.
17501         (signbit<mode>2): New expander
17503 2019-05-21  James Clarke  <jrtc27@jrtc27.com>
17505         PR bootstrap/87338
17506         * dwarf2out.c (dwarf2out_inline_entry): Use ASM_OUTPUT_DEBUG_LABEL
17507         instead of ASM_GENERATE_INTERNAL_LABEL and ASM_OUTPUT_LABEL.
17509 2019-05-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
17511         * config/i386/cpuid.h (__cpuid): For 32bit targets, zero
17512         %ebx and %ecx bafore calling cpuid with leaf 1 or
17513         non-constant leaf argument.
17515 2019-05-21  Alan Modra  <amodra@gmail.com>
17517         PR target/90545
17518         * config/rs6000/rs6000.c (rs6000_register_move_cost): Increase
17519         power9 direct move cost.
17521 2019-05-21  Richard Biener  <rguenther@suse.de>
17523         PR middle-end/90510
17524         * fold-const.c (fold_read_from_vector): New function.
17525         * fold-const.h (fold_read_from_vector): Declare.
17526         * match.pd (VEC_PERM_EXPR): Build BIT_INSERT_EXPRs for
17527         single-element insert permutations.  Canonicalize selector
17528         further and fix issue with last commit.
17530 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
17532         * tree-cfg.h (split_critical_edges): Add for_edge_insertion_p
17533         parameter with default value false to declaration.
17534         (split_edges_for_insertion): New inline function.  Wrapper for
17535         split_critical_edges with for_edge_insertion_p = true.
17536         * tree-cfg.c (split_critical_edges): Don't split non-critical
17537         edges if for_edge_insertion_p is false.  Fix whitespace.
17538         * tree-ssa-pre.c (pass_pre::execute): Call
17539         split_edges_for_insertion instead of split_critical_edges.
17540         * tree-ssa-tail-merge.c (tail_merge_optimize): Ditto.
17541         * tree-ssa-sink.c (pass_sink_code::execute): Ditto.
17542         (pass_data_sink_code): Update function name in the comment.
17544 2019-05-21  Vladislav Ivanishin  <vlad@ispras.ru>
17546         * tree-ssa-uninit.c (value_sat_pred_p): This new function is a wrapper
17547         around is_value_included_in that knows how to handle BIT_AND_EXPR.
17548         (is_pred_expr_subset_of): Use the new function.  Handle more cases where
17549         code1 == EQ_EXPR and where code1 == BIT_AND_EXPR and thus fix some false
17550         positives.
17552 2019-05-21  Martin Liska  <mliska@suse.cz>
17554         * config/rs6000/driver-rs6000.c (elf_platform): Do not use
17555         an extra newline.
17556         * config/rs6000/rs6000-c.c (rs6000_pragma_longcal): Wrap pragma in %<%>.
17557         (altivec_resolve_overloaded_builtin): Likewise for vec_lvsl and
17558         vec_lvsr.
17559         * config/rs6000/rs6000.c (rs6000_option_override_internal):
17560         Quote a C type.
17561         (rs6000_function_arg): Likewise.
17562         (rs6000_expand_set_fpscr_drn_builtin): Remove trailing dot.
17563         (rs6000_expand_ternop_builtin): Use interval syntax.
17564         (get_element_number): Likewise.
17565         (altivec_expand_builtin): Likewise.
17566         (rs6000_get_function_versions_dispatcher): Quote target_clones.
17568 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
17570         PR c++/59813
17571         PR target/90418
17572         * function.h (struct function): Add calls_eh_return member.
17573         * gimplify.c (gimplify_call_expr): Set cfun->calls_eh_return when
17574         gimplifying __builtin_eh_return call.
17575         * tree-inline.c (initialize_cfun): Copy calls_eh_return from src_cfun
17576         to cfun.
17577         (expand_call_inline): Or in src_cfun->calls_eh_return into
17578         dst_cfun->calls_eh_return.
17579         * tree-tailcall.c (suitable_for_tail_call_opt_p): Return false if
17580         cfun->calls_eh_return.
17581         * lto-streamer-in.c (input_struct_function_base): Read calls_eh_return.
17582         * lto-streamer-out.c (output_struct_function_base): Write
17583         calls_eh_return.
17585 2019-05-20  Marc Glisse  <marc.glisse@inria.fr>
17587         PR rtl-optimization/43147
17588         * config/i386/i386.c (ix86_gimple_fold_builtin): Handle
17589         IX86_BUILTIN_SHUFPD.
17591 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
17593         * tree-ssa-alias.c (refs_may_alias_p_2): Break out from ...
17594         (refs_may_alias_p_1): ... here; update stats.
17595         (refs_may_alias_p): Do not update stats here.
17597 2019-05-20  Richard Biener  <rguenther@suse.de>
17599         * tree-ssa-structalias.c (find_func_aliases): POINTER_DIFF_EXPR
17600         doesn't produce pointers.
17601         {TRUNC,CEIL,FLOOR,ROUND,EXACT}_{DIV,MOD}_EXPR points to what
17602         the first operand points to.
17604 2019-05-20  Jan Hubicka  <hubicka@ucw.cz>
17606         * tree-ssa-alias.c (compare_sizes): New function.
17607         (sompare_type_sizes): New function
17608         (aliasing_component_refs_p): Use it.
17609         (indirect_ref_may_alias_decl_p): Likewise.
17611 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17613         * config/i386/sol2.h (CC1_SPEC): Reject -mx32.
17615 2019-05-20  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
17617         * config/sol2.h (LIBTSAN_EARLY_SPEC): Remove : after %e.
17618         (LIBLSAN_EARLY_SPEC): Likewise.
17619         * config/i386/sol2.h (ASAN_REJECT_SPEC): Likewise.
17621 2019-05-20  Martin Liska  <mliska@suse.cz>
17623         * config/i386/i386.c (ix86_libc_has_fast_function):
17624         Add ATTRIBUTE_UNUSED for the argument.
17626 2019-05-20  Richard Biener  <rguenther@suse.de>
17628         * gimple-match-head.c: Include vec-perm-indices.h.
17629         * generic-match-head.c: Likewise.
17630         * fold-const.h (fold_vec_perm): Declare when vec-perm-indices.h
17631         is included.
17632         * fold-const.c (fold_vec_perm): Export.
17633         (fold_ternary_loc): Move non-constant folding of VEC_PERM_EXPR...
17634         (match.pd): ...here.
17636 2019-05-20  Jakub Jelinek  <jakub@redhat.com>
17638         * cfgloop.h (struct loop): Add simdlen member.
17639         * cfgloopmanip.c (copy_loop_info): Copy simdlen as well.
17640         * omp-expand.c (expand_omp_simd): Set it if simdlen clause is present.
17641         * tree-vect-loop.c (vect_analyze_loop): Pass loop->simdlen != 0
17642         as new argument to autovectorize_vector_sizes target hook.  If
17643         loop->simdlen, pick up vector size where the vectorization factor
17644         is equal to loop->simd, and if there is none, fall back to the first
17645         successful one.
17646         (vect_transform_loop): Adjust autovectorize_vector_sizes target hook
17647         caller.
17648         * omp-low.c (omp_clause_aligned_alignment): Likewise.
17649         * omp-general.c (omp_max_vf): Likewise.
17650         * optabs-query.c (can_vec_mask_load_store_p): Likewise.
17651         * tree-vect-slp.c (vect_slp_bb): Likewise.
17652         * target.def (autovectorize_vector_sizes): Add ALL argument and
17653         document it.
17654         * doc/tm.texi: Adjust documentation.
17655         * targhooks.c (default_autovectorize_vector_sizes): Add bool argument.
17656         * targhooks.h (default_autovectorize_vector_sizes): Likewise.
17657         * config/aarch64/aarch64.c (aarch64_autovectorize_vector_sizes): Add
17658         bool argument.
17659         * config/arc/arc.c (arc_autovectorize_vector_sizes): Likewise.
17660         * config/arm/arm.c (arm_autovectorize_vector_sizes): Likewise.
17661         * config/mips/mips.c (mips_autovectorize_vector_sizes): Likewise.
17662         * config/i386/i386.c (ix86_autovectorize_vector_sizes): Likewise.  If
17663         true and TARGET_AVX512F or TARGET_AVX, push 3 or 2 sizes even if
17664         preferred vector size is not 512-bit or 256-bit, just put those
17665         unpreferred ones last.
17667 2019-05-20  Martin Liska  <mliska@suse.cz>
17669         * targhooks.c (default_libc_has_fast_function): New function.
17670         * targhooks.h (default_libc_has_fast_function): Likewise.
17672 2019-05-20  Martin Liska  <mliska@suse.cz>
17674         PR middle-end/90263
17675         * builtins.c (expand_builtin_memory_copy_args): When having a
17676         target with fast mempcpy implementation do now use memcpy.
17677         * config/i386/i386.c (ix86_libc_has_fast_function): New.
17678         (TARGET_LIBC_HAS_FAST_FUNCTION): Likewise.
17679         * doc/tm.texi: Likewise.
17680         * doc/tm.texi.in: Likewise.
17681         * target.def:
17682         * expr.c (emit_block_move_hints): Add 2 new arguments.
17683         * expr.h (emit_block_move_hints): Bail out when libcall
17684         to memcpy would be used.
17686 2019-05-20  Martin Liska  <mliska@suse.cz>
17688         * profile-count.c: Add vertical spacing in order
17689         to separate functions.
17690         * profile-count.h: Likewise.
17692 2019-05-20  Martin Liska  <mliska@suse.cz>
17694         * profile-count.h: Do not use full qualified
17695         names if possible.
17696         * profile-count.c (profile_count::to_frequency): Likewise.
17698 2019-05-20  Martin Liska  <mliska@suse.cz>
17700         * profile-count.h (enum profile_quality): Use capital letters
17701         for enum value names.  Use the adjusted names.
17702         * profile-count.c: Use the adjusted names.
17704 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17706         * config/rs6000/constraints.md (define_register_constraint "wH"):
17707         Delete.
17708         (define_register_constraint "wI"): Delete.
17709         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17710         RS6000_CONSTRAINT_wH and RS6000_CONSTRAINT_wI.
17711         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17712         (rs6000_init_hard_regno_mode_ok): Adjust.
17713         * config/rs6000/rs6000.md: Replace "wH" and "wI" constraints by "v"
17714         resp. "d", or with "wa" as appropriate, all with "p8v".
17715         * config/rs6000/vsx.md: Ditto.
17716         * doc/md.texi (Machine Constraints): Adjust.
17718 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17720         * config/rs6000/constraints.md (define_register_constraint "wy"):
17721         Delete.
17722         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17723         RS6000_CONSTRAINT_wy.
17724         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17725         (rs6000_init_hard_regno_mode_ok): Adjust.
17726         * config/rs6000/rs6000.md: Replace "wy" constraint by "wa" with "p8v".
17727         Use "<Fisa>" as "isa" in all alternatives that use "<Fv2>".
17728         (define_mode_attr Fisa): New.
17729         * config/rs6000/vsx.md: Replace "wy" constraint by "wa" with "p8v".
17730         * doc/md.texi (Machine Constraints): Adjust.
17732 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17734         * config/rs6000/constraints.md (define_register_constraint "wu"):
17735         Delete.
17736         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17737         RS6000_CONSTRAINT_wu.
17738         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17739         (rs6000_init_hard_regno_mode_ok): Adjust.
17740         * config/rs6000/rs6000.md: Replace "wu" constraint by "v" or "wa",
17741         both with "p8v".
17742         (define_mode_attr Fa): Delete.
17743         * config/rs6000/vsx.md: Ditto.
17744         * doc/md.texi (Machine Constraints): Adjust.
17746 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17748         * config/rs6000/constraints.md (define_register_constraint "wJ"):
17749         Delete.
17750         (define_register_constraint "wK"): Delete.
17751         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17752         RS6000_CONSTRAINT_wJ and RS6000_CONSTRAINT_wK.
17753         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17754         (rs6000_init_hard_regno_mode_ok): Adjust.
17755         * config/rs6000/rs6000.md: Replace "wJ" constraint by "wI" with "p9v".
17756         Replace "wK" constraint by "wH" with "p9v".
17757         * config/rs6000/vsx.md: Ditto.
17758         * doc/md.texi (Machine Constraints): Adjust.
17760 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17762         * config/rs6000/constraints.md (define_register_constraint "wb"):
17763         Delete.
17764         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17765         RS6000_CONSTRAINT_wb.
17766         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17767         (rs6000_init_hard_regno_mode_ok): Adjust.
17768         * config/rs6000/rs6000.md: Replace "wb" constraint by "v" with "p9v".
17769         * config/rs6000/vsx.md: Ditto.
17770         * doc/md.texi (Machine Constraints): Adjust.
17772 2019-05-19  Segher Boessenkool  <segher@kernel.crashing.org>
17774         * config/rs6000/constraints.md (define_register_constraint "wo"):
17775         Delete.
17776         * config/rs6000/rs6000.h (enum r6000_reg_class_enum): Delete
17777         RS6000_CONSTRAINT_wo.
17778         * config/rs6000/rs6000.c (rs6000_debug_reg_global): Adjust.
17779         (rs6000_init_hard_regno_mode_ok): Adjust.
17780         * config/rs6000/rs6000.md: Replace "wo" constraint by "wa" with "p9v".
17781         * config/rs6000/altivec.md: Ditto.
17782         * doc/md.texi (Machine Constraints): Adjust.
17784 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
17786         * config/darwin-c.c (darwin_register_objc_includes): Do not
17787         prepend the sysroot when building gnu-runtime header search
17788         paths.
17790 2019-05-18  Iain Sandoe  <iain@sandoe.co.uk>
17792         * config/darwin.c (darwin_file_end): Use switch_to_section ()
17793         instead of direct output of the asm.
17795 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
17797         * config/rs6000/rs6000.c (restore_saved_cr): Change a boolean
17798         argument to be type bool (was int before).
17799         (rs6000_emit_epilogue): Simplify some code.  Declare some variables
17800         at first use.  Use type bool for some variables.  Fix a theoretical
17801         eh_return bug for svr4.
17803 2019-05-17  Segher Boessenkool  <segher@kernel.crashing.org>
17805         * config/rs6000/rs6000.md (isa): New attribute.
17806         (enabled): New attribute.
17808 2019-05-17  Max Filippov  <jcmvbkbc@gmail.com>
17810         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Call
17811         assemble_start_function and assemble_end_function.
17813 2019-05-17  Thomas Schwinge  <thomas@codesourcery.com>
17815         PR middle-end/89433
17816         * omp-general.c (oacc_verify_routine_clauses): Change formal
17817         parameters.  Add checking if already marked with an OpenACC
17818         'routine' directive.  Adjust all users.
17820         PR middle-end/89433
17821         * omp-general.c (oacc_build_routine_dims): Move some of its
17822         processing into...
17823         (oacc_verify_routine_clauses): ... this new function.
17824         * omp-general.h (oacc_verify_routine_clauses): New prototype.
17826 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
17828         * config/rs6000/rs6000.c (machopic_output_stub): Adjust the
17829         formating of picbase labels to match other ports.
17831 2019-05-17  Iain Sandoe  <iain@sandoe.co.uk>
17833         * config/rs6000/rs6000.c (macho_branch_islands): Fix bad indent
17834         in the generated code.
17836 2019-05-16  Martin Sebor  <msebor@redhat.com>
17838         * builtins.c (expand_builtin_atomic_always_lock_free): Quote
17839         identifiers, keywords, operators, and types in diagnostics.  Correct
17840         quoting, spelling, and sentence capitalization issues.
17841         (expand_builtin_atomic_is_lock_free): Same.
17842         (fold_builtin_next_arg): Same.
17843         * cfgexpand.c (expand_one_var): Same.
17844         (tree_conflicts_with_clobbers_p): Same.
17845         (expand_asm_stmt): Same.
17846         (verify_loop_structure): Same.
17847         * cgraphunit.c (process_function_and_variable_attributes): Same.
17848         * collect-utils.c (collect_execute): Same.
17849         * collect2.c (maybe_run_lto_and_relink): Same.
17850         (is_lto_object_file): Same.
17851         (scan_prog_file): Same.
17852         * convert.c (convert_to_real_1): Same.
17853         * dwarf2out.c (dwarf2out_begin_prologue): Same.
17854         * except.c (verify_eh_tree): Same.
17855         * gcc.c (execute): Same.
17856         (eval_spec_function): Same.
17857         (run_attempt): Same.
17858         (driver::set_up_specs): Same.
17859         (compare_debug_auxbase_opt_spec_function): Same.
17860         * gcov-tool.c (unlink_gcda_file): Same.
17861         (do_merge): Same.
17862         (do_rewrite): Same.
17863         * gcse.c (gcse_or_cprop_is_too_expensive): Same.
17864         * gimplify.c (gimplify_asm_expr): Same.
17865         (gimplify_adjust_omp_clauses): Same.
17866         * hsa-gen.c (gen_hsa_addr_insns): Same.
17867         (gen_hsa_insns_for_load): Same.
17868         (gen_hsa_cmp_insn_from_gimple): Same.
17869         (gen_hsa_insns_for_operation_assignment): Same.
17870         (gen_get_level): Same.
17871         (gen_hsa_alloca): Same.
17872         (omp_simple_builtin::generate): Same.
17873         (gen_hsa_atomic_for_builtin): Same.
17874         (gen_hsa_insns_for_call): Same.
17875         * input.c (dump_location_info): Same.
17876         * ipa-devirt.c (compare_virtual_tables): Same.
17877         * ira.c (ira_setup_eliminable_regset): Same.
17878         * lra-assigns.c (lra_assign): Same.
17879         * lra-constraints.c (lra_constraints): Same.
17880         * lto-streamer-in.c (lto_input_mode_table): Same.
17881         * lto-wrapper.c (get_options_from_collect_gcc_options): Same.
17882         (merge_and_complain): Same.
17883         (compile_offload_image): Same.
17884         (compile_images_for_offload_targets): Same.
17885         (debug_objcopy): Same.
17886         (run_gcc): Same.
17887         (main): Same.
17888         * opts.c (print_specific_help): Same.
17889         (parse_no_sanitize_attribute): Same.
17890         (print_help): Same.
17891         (handle_param): Same.
17892         * plugin.c (add_new_plugin): Same.
17893         (parse_plugin_arg_opt): Same.
17894         (try_init_one_plugin): Same.
17895         * print-rtl.c (debug_bb_n_slim): Quote identifiers, keywords,
17896         operators, and types in diagnostics.  Correct quoting and spelling
17897         issues.
17898         * read-rtl-function.c (parse_edge_flag_token): Same.
17899         (function_reader::parse_enum_value): Same.
17900         * reg-stack.c (check_asm_stack_operands): Same.
17901         * regcprop.c (validate_value_data): Same.
17902         * sched-rgn.c (make_pass_sched_fusion): Same.
17903         * stmt.c (check_unique_operand_names): Same.
17904         * targhooks.c (default_target_option_pragma_parse): Same.
17905         * tlink.c (recompile_files): Same.
17906         * toplev.c (process_options): Same.
17907         (do_compile): Same.
17908         * trans-mem.c (diagnose_tm_1): Same.
17909         (ipa_tm_scan_irr_block): Same.
17910         (ipa_tm_diagnose_transaction): Same.
17911         * tree-cfg.c (verify_address): Same.  Use get_tree_code_name to
17912         format a tree code name in a diagnostic.
17913         (verify_types_in_gimple_min_lval): Same.
17914         (verify_types_in_gimple_reference): Same.
17915         (verify_gimple_call): Same.
17916         (verify_gimple_assign_unary): Same.
17917         (verify_gimple_assign_binary): Same.
17918         (verify_gimple_assign_ternary): Same.
17919         (verify_gimple_assign_single): Same.
17920         (verify_gimple_switch): Same.
17921         (verify_gimple_label): Same.
17922         (verify_gimple_phi): Same.
17923         (verify_gimple_in_seq): Same.
17924         (verify_eh_throw_stmt_node): Same.
17925         (collect_subblocks): Same.
17926         (gimple_verify_flow_info): Same.
17927         (do_warn_unused_result): Same.
17928         * tree-inline.c (expand_call_inline): Same.
17929         * tree-into-ssa.c (update_ssa): Same.
17930         * tree.c (tree_int_cst_elt_check_failed): Same.
17931         (tree_vec_elt_check_failed): Same.
17932         (omp_clause_operand_check_failed): Same.
17933         (verify_type_variant): Same.
17934         (verify_type): Same.
17935         * value-prof.c (verify_histograms): Same.
17936         * varasm.c (assemble_start_function): Same.
17938 2019-05-16  Martin Sebor  <msebor@redhat.com>
17940         * config/i386/i386-expand.c (get_element_number): Quote keywords
17941         and other internal names in diagnostics.  Adjust other diagnostic
17942         formatting issues noted by -Wformat-diag.
17943         * config/i386/i386-features.c
17944         (ix86_mangle_function_version_assembler_name): Same.
17945         * config/i386/i386-options.c (ix86_handle_abi_attribute): Same.
17946         * config/i386/i386.c (ix86_function_type_abi): Same.
17947         (ix86_function_ms_hook_prologue): Same.
17948         (classify_argument): Same.
17949         (ix86_expand_prologue): Same.
17950         (ix86_md_asm_adjust): Same.
17951         (ix86_memmodel_check): Same.
17953 2019-05-17  Dragan Mladjenovic  <dmladjenovic@wavecomp.com>
17955         * config/mips/mips.c (mips_dwarf_frame_reg_mode): Replace
17956         TARGET_FLOAT64 with !TARGET_FLOAT32, thus handling both fp64
17957         and fpxx modes.
17959 2019-05-17  H.J. Lu  <hongjiu.lu@intel.com>
17961         PR target/90497
17962         * config/i386/i386-expand.c (ix86_expand_builtin): Enable MMX
17963         intrinsics without SSE/SSE2/SSSE3.
17964         * config/i386/mmx.md (mmx_uavgv8qi3): Restore TARGET_3DNOW
17965         check.
17966         (*mmx_uavgv8qi3): Likewise.
17968 2019-05-17  Richard Biener  <rguenther@suse.de>
17970         * gimple-pretty-print.c (dump_ternary_rhs): Handle dumping
17971         VEC_PERM_EXPR as __VEC_PERM with -gimple.
17973 2019-05-17  Andreas Krebbel  <krebbel@linux.ibm.com>
17975         * config/s390/s390-builtins.def (s390_vec_sldw_*): Use the
17976         vec_sldw insn pattern.
17978 2019-05-17  Richard Biener  <rguenther@suse.de>
17980         * ccmp.c (expand_ccmp_expr_1): Do not use gimple_assign_rhs_to_tree.
17982 2019-05-17  Martin Liska  <mliska@suse.cz>
17984         PR driver/90496
17985         * toplev.c (output_stack_usage): With LTO and sanitizer it
17986         happens that a global ctor (_GLOBAL__sub_I_00099_0_main)
17987         has no file location.
17989 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
17991         PR c++/90484
17992         * tree-ssa-scopedtables.c (equal_mem_array_ref_p): Don't assert that
17993         sz0 is equal to sz1, instead return false in that case.
17995         * omp-low.c (lower_rec_input_clauses): If OMP_CLAUSE_IF
17996         has non-constant expression, force sctx.lane and use two
17997         argument IFN_GOMP_SIMD_LANE instead of single argument.
17998         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Don't DCE
17999         two argument IFN_GOMP_SIMD_LANE without lhs.
18000         * tree-vectorizer.h (struct _loop_vec_info): Add simd_if_cond
18001         member.
18002         (LOOP_VINFO_SIMD_IF_COND, LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND):
18003         Define.
18004         (LOOP_REQUIRES_VERSIONING): Or in
18005         LOOP_REQUIRES_VERSIONING_FOR_SIMD_IF_COND.
18006         * tree-vect-loop.c (_loop_vec_info::_loop_vec_info): Initialize
18007         simd_if_cond.
18008         (vect_analyze_loop_2): Punt if LOOP_VINFO_SIMD_IF_COND is constant 0.
18009         * tree-vect-loop-manip.c (vect_loop_versioning): Add runtime check
18010         from simd if clause if needed.
18012 2019-05-16  Richard Biener  <rguenther@suse.de>
18014         * tree-affine.c (expr_to_aff_combination): New function split
18015         out from...
18016         (tree_to_aff_combination): ... here.
18017         (aff_combination_expand): Avoid building a GENERIC tree.
18019 2019-05-16  Max Filippov  <jcmvbkbc@gmail.com>
18021         * cgraphunit.c (cgraph_node::expand_thunk): Remove
18022         assemble_start_function and assemble_end_function calls.
18023         * config/alpha/alpha.c (alpha_output_mi_thunk_osf): Call
18024         assemble_start_function and assemble_end_function.
18025         * config/arc/arc.c (arc_output_mi_thunk): Likewise.
18026         * config/arm/arm.c (arm_output_mi_thunk): Likewise.
18027         * config/bfin/bfin.c (bfin_output_mi_thunk): Likewise.
18028         * config/c6x/c6x.c (c6x_output_mi_thunk): Likewise.
18029         * config/cris/cris.c (cris_asm_output_mi_thunk): Likewise.
18030         * config/csky/csky.c (csky_output_mi_thunk): Likewise.
18031         * config/epiphany/epiphany.c (epiphany_output_mi_thunk): Likewise.
18032         * config/frv/frv.c (frv_asm_output_mi_thunk): Likewise.
18033         * config/i386/i386.c (x86_output_mi_thunk): Likewise.
18034         * config/ia64/ia64.c (ia64_output_mi_thunk): Likewise.
18035         * config/m68k/m68k.c (m68k_output_mi_thunk): Likewise.
18036         * config/microblaze/microblaze.c (microblaze_asm_output_mi_thunk):
18037         Likewise.
18038         * config/mips/mips.c (mips_output_mi_thunk): Likewise.
18039         * config/mmix/mmix.c (mmix_asm_output_mi_thunk): Likewise.
18040         * config/mn10300/mn10300.c (mn10300_asm_output_mi_thunk): Likewise.
18041         * config/nds32/nds32.c (nds32_asm_output_mi_thunk): Likewise.
18042         * config/nios2/nios2.c (nios2_asm_output_mi_thunk): Likewise.
18043         * config/or1k/or1k.c (or1k_output_mi_thunk): Likewise.
18044         * config/pa/pa.c (pa_asm_output_mi_thunk): Likewise.
18045         * config/riscv/riscv.c (riscv_output_mi_thunk): Likewise.
18046         * config/rs6000/rs6000.c (rs6000_output_mi_thunk): Likewise.
18047         * config/s390/s390.c (s390_output_mi_thunk): Likewise.
18048         * config/sh/sh.c (sh_output_mi_thunk): Likewise.
18049         * config/sparc/sparc.c (sparc_output_mi_thunk): Likewise.
18050         * config/spu/spu.c (spu_output_mi_thunk): Likewise.
18051         * config/stormy16/stormy16.c (xstormy16_asm_output_mi_thunk):
18052         Likewise.
18053         * config/tilegx/tilegx.c (tilegx_output_mi_thunk): Likewise.
18054         * config/tilepro/tilepro.c (tilepro_asm_output_mi_thunk): Likewise.
18055         * config/vax/vax.c (vax_output_mi_thunk): Likewise.
18057 2019-05-16  Jan Hubicka  <hubicka@ucw.cz>
18059         * tree-ssa-alias.c (alias_stats): Add
18060         aliasing_component_refs_p_may_alias and
18061         aliasing_component_refs_p_no_alias.
18062         (dump_alias_stats): Print aliasing_component_refs_p stats.
18063         (aliasing_component_refs_p): Update stats.
18065 2019-05-16  Martin Liska  <mliska@suse.cz>
18067         PR lto/90500
18068         * multiple_target.c (expand_target_clones): Do not allow
18069         target_clones being used with a symbol that is an alias.
18071 2019-05-16  Vladislav Ivanishin  <vlad@ispras.ru>
18073         PR tree-optimization/90394
18074         * tree-ssa-uninit.c (is_pred_expr_subset_of): Potentially give false
18075         positives rather than ICE for cases where (code2 == NE_EXPR
18076         && code1 == BIT_AND_EXPR).
18078 2019-05-16  Jakub Jelinek  <jakub@redhat.com>
18080         PR fortran/90329
18081         * tree-core.h (struct tree_decl_common): Document
18082         decl_nonshareable_flag for PARM_DECLs.
18083         * tree.h (DECL_HIDDEN_STRING_LENGTH): Define.
18084         * calls.c (expand_call): Don't try tail call if caller
18085         has any DECL_HIDDEN_STRING_LENGTH PARM_DECLs that are or might be
18086         passed on the stack and callee needs to pass any arguments on the
18087         stack.
18088         * tree-streamer-in.c (unpack_ts_decl_common_value_fields): Use
18089         else if instead of series of mutually exclusive ifs.  Handle
18090         DECL_HIDDEN_STRING_LENGTH for PARM_DECLs.
18091         * tree-streamer-out.c (pack_ts_decl_common_value_fields): Likewise.
18093         * lto-streamer.h (LTO_major_version): Bump to 9.
18095 2019-05-16  Jun Ma  <JunMa@linux.alibaba.com>
18097         PR tree-optimization/90106
18098         * tree-call-cdce.c (shrink_wrap_one_built_in_call_with_conds): Add
18099         new parameter as new internal function call, also move it to new
18100         basic block.
18101         (use_internal_fn): Pass internal function call to
18102         shrink_wrap_one_built_in_call_with_conds.
18104 2019-05-15  Jakub Jelinek  <jakub@redhat.com>
18106         * omp-low.c (lower_rec_input_clauses): For if (0) or simdlen (1) set
18107         max_vf to 1.
18108         * omp-expand.c (expand_omp_simd): For if (0) or simdlen (1) clear
18109         safelen_int and set loop->dont_vectorize.
18111 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18113         PR target/89021
18114         * config/i386/i386-builtin.def: Enable MMX intrinsics with
18115         SSE/SSE2/SSSE3.
18116         * config/i386/i386-builtins.c (ix86_init_mmx_sse_builtins):
18117         Likewise.
18118         * config/i386/i386-expand.c (ix86_expand_builtin): Allow
18119         SSE/SSE2/SSSE3 to emulate MMX intrinsics with TARGET_MMX_WITH_SSE.
18120         * config/i386/mmintrin.h: Only require SSE2 if __MMX_WITH_SSE__
18121         is defined.
18123 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18125         PR target/89021
18126         * config/i386/mmx.md (*vec_dupv2sf): Changed to
18127         define_insn_and_split to support SSE emulation.
18128         (*vec_extractv2sf_0): Likewise.
18129         (*vec_extractv2sf_1): Likewise.
18130         (*vec_extractv2si_0): Likewise.
18131         (*vec_extractv2si_1): Likewise.
18132         (*vec_extractv2si_zext_mem): Likewise.
18133         (vec_setv2sf): Also allow TARGET_MMX_WITH_SSE.
18134         (vec_extractv2sf_1 splitter): Likewise.
18135         (vec_extractv2sfsf): Likewise.
18136         (vec_setv2si): Likewise.
18137         (vec_extractv2si_1 splitter): Likewise.
18138         (vec_extractv2sisi): Likewise.
18139         (vec_setv4hi): Likewise.
18140         (vec_extractv4hihi): Likewise.
18141         (vec_setv8qi): Likewise.
18142         (vec_extractv8qiqi): Likewise.
18143         (vec_extractv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
18144         TARGET_MMX_WITH_SSE ix86_expand_vector_extract.
18145         (vec_extractv2sisi): Likewise.
18146         (vec_extractv4hihi): Likewise.
18147         (vec_extractv8qiqi): Likewise.
18148         (vec_initv2sfsf): Also allow TARGET_MMX_WITH_SSE.  Pass
18149         TARGET_MMX_WITH_SSE to ix86_expand_vector_init.
18150         (vec_initv2sisi): Likewise.
18151         (vec_initv4hihi): Likewise.
18152         (vec_initv8qiqi): Likewise.
18153         (vec_setv2si): Also allow TARGET_MMX_WITH_SSE.  Pass
18154         TARGET_MMX_WITH_SSE to ix86_expand_vector_set.
18155         (vec_setv4hi): Likewise.
18156         (vec_setv8qi): Likewise.
18158 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18160         PR target/89021
18161         * config/i386/mmx.md (MMXMODE:mov<mode>): Also allow
18162         TARGET_MMX_WITH_SSE.
18163         (MMXMODE:*mov<mode>_internal): Likewise.
18164         (MMXMODE:movmisalign<mode>): Likewise.
18166 2019-05-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18168         PR target/89021
18169         * config/i386/i386.md (*zero_extendsidi2): Add mmx_isa attribute.
18170         * config/i386/sse.md (sse2_cvtpi2pd): Ditto.
18171         (sse2_cvtpd2pi): Ditto.
18172         (sse2_cvttpd2pi): Ditto.
18173         (*vec_concatv2sf_sse4_1): Ditto.
18174         (*vec_concatv2sf_sse): Ditto.
18175         (*vec_concatv2si_sse4_1): Ditto.
18176         (*vec_concatv2si): Ditto.
18177         (*vec_concatv4si_0): Ditto.
18178         (*vec_concatv2di_0): Ditto.
18180 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18182         PR target/89021
18183         * config/i386/sse.md (abs<mode>2): Add SSE emulation.
18185 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18187         PR target/89021
18188         * config/i386/sse.md (ssse3_palignrdi): Changed to
18189         define_insn_and_split to support SSE emulation.
18191 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18193         PR target/89021
18194         * config/i386/sse.md (ssse3_psign<mode>3): Add SSE emulation.
18196 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18198         PR target/89021
18199         * config/i386/sse.md (ssse3_pshufbv8qi3): Changed to
18200         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
18201         SSE emulation.
18203 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18205         PR target/89021
18206         * config/i386/sse.md (ssse3_pmulhrswv4hi3): Require TARGET_MMX
18207         or TARGET_MMX_WITH_SSE.
18208         (*ssse3_pmulhrswv4hi3): Add SSE emulation.
18210 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18212         PR target/89021
18213         * config/i386/sse.md (ssse3_pmaddubsw): Add SSE emulation.
18215 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18217         PR target/89021
18218         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>dv2si3):
18219         Changed to define_insn_and_split to support SSE emulation.
18221 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18223         PR target/89021
18224         * config/i386/sse.md (ssse3_ph<plusminus_mnemonic>wv4hi3):
18225         Changed to define_insn_and_split to support SSE emulation.
18227 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18229         PR target/89021
18230         * config/i386/mmx.md (mmx_<emms>): Renamed to ...
18231         (*mmx_<emms>): This.
18232         (mmx_<emms>): New expander.
18234 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18236         PR target/89021
18237         * config/i386/mmx.md (sse2_umulv1siv1di3): Add SSE emulation
18238         support.
18239         (*sse2_umulv1siv1di3): Add SSE2 emulation.
18241 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18243         PR target/89021
18244         * config/i386/mmx.md (sse_movntq): Add SSE2 emulation.
18246 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18248         PR target/89021
18249         * config/i386/mmx.md (mmx_psadbw): Add SSE emulation.
18251 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18253         PR target/89021
18254         * config/i386/mmx.md (mmx_uavgv4hi3): Also check TARGET_MMX and
18255         TARGET_MMX_WITH_SSE.
18256         (*mmx_uavgv4hi3): Add SSE emulation.
18258 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18260         PR target/89021
18261         * config/i386/mmx.md (mmx_uavgv8qi3): Also check TARGET_MMX
18262         and TARGET_MMX_WITH_SSE.
18263         (*mmx_uavgv8qi3): Add SSE emulation.
18265 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18267         PR target/89021
18268         * config/i386/xmmintrin.h: Emulate MMX maskmovq with SSE2
18269         maskmovdqu for __MMX_WITH_SSE__.
18271 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18273         PR target/89021
18274         * config/i386/mmx.md (mmx_umulv4hi3_highpart): Also check
18275         TARGET_MMX and TARGET_MMX_WITH_SSE.
18276         (*mmx_umulv4hi3_highpart): Add SSE emulation.
18278 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18280         PR target/89021
18281         * config/i386/mmx.md (mmx_pmovmskb): Changed to
18282         define_insn_and_split to support SSE emulation.
18284 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18286         PR target/89021
18287         * config/i386/mmx.md (mmx_<code>v4hi3): Also check TARGET_MMX
18288         and TARGET_MMX_WITH_SSE.
18289         (mmx_<code>v8qi3): Likewise.
18290         (smaxmin:<code>v4hi3): New.
18291         (umaxmin:<code>v8qi3): Likewise.
18292         (smaxmin:*mmx_<code>v4hi3): Add SSE emulation.
18293         (umaxmin:*mmx_<code>v8qi3): Likewise.
18295 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18297         PR target/89021
18298         * config/i386/mmx.md (mmx_pinsrw): Also check TARGET_MMX and
18299         TARGET_MMX_WITH_SSE.
18300         (*mmx_pinsrw): Add SSE emulation.
18302 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18304         PR target/89021
18305         * config/i386/mmx.md (mmx_pextrw): Add SSE emulation.
18307 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18309         PR target/89021
18310         * config/i386/sse.md (sse_cvtpi2ps): Changed to
18311         define_insn_and_split.  Also allow TARGET_MMX_WITH_SSE.  Add
18312         SSE emulation.
18314 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18316         PR target/89021
18317         * config/i386/sse.md (sse_cvtps2pi): Add SSE emulation.
18318         (sse_cvttps2pi): Likewise.
18320 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18322         PR target/89021
18323         * config/i386/mmx.md (mmx_pshufw): Also check TARGET_MMX and
18324         TARGET_MMX_WITH_SSE.
18325         (mmx_pshufw_1): Add SSE emulation.
18326         (*vec_dupv4hi): Changed to define_insn_and_split and also allow
18327         TARGET_MMX_WITH_SSE to support SSE emulation.
18329 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18331         PR target/89021
18332         * config/i386/constraints.md (Yw): New constraint.
18333         * config/i386/mmx.md (*vec_dupv2si): Changed to
18334         define_insn_and_split and also allow TARGET_MMX_WITH_SSE to
18335         support SSE emulation.
18337 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18339         PR target/89021
18340         * config/i386/mmx.md (mmx_eq<mode>3): Also allow
18341         TARGET_MMX_WITH_SSE.
18342         (*mmx_eq<mode>3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
18343         support.
18344         (mmx_gt<mode>3): Likewise.
18346 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18348         PR target/89021
18349         * config/i386/mmx.md (mmx_andnot<mode>3): Also allow
18350         TARGET_MMX_WITH_SSE.  Add SSE support.
18352 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18354         PR target/89021
18355         * config/i386/mmx.md (any_logic:mmx_<code><mode>3): Also allow
18356         TARGET_MMX_WITH_SSE.
18357         (any_logic:<code><mode>3): New.
18358         (any_logic:*mmx_<code><mode>3): Also allow TARGET_MMX_WITH_SSE.
18359         Add SSE support.
18361 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18363         PR target/89021
18364         * config/i386/mmx.md (mmx_ashr<mode>3): Also allow
18365         TARGET_MMX_WITH_SSE.  Add SSE emulation.
18366         (mmx_<shift_insn><mode>3): Likewise.
18367         (ashr<mode>3): New.
18368         (<shift_insn><mode>3): Likewise.
18370 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18372         PR target/89021
18373         * config/i386/mmx.md (mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.
18374         (*mmx_pmaddwd): Also allow TARGET_MMX_WITH_SSE.  Add SSE support.
18376 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18378         PR target/89021
18379         * config/i386/mmx.md (mmx_smulv4hi3_highpart): Also allow
18380         TARGET_MMX_WITH_SSE.
18381         (*mmx_smulv4hi3_highpart): Also allow TARGET_MMX_WITH_SSE. Add
18382         SSE support.
18384 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18386         PR target/89021
18387         * config/i386/mmx.md (mmx_mulv4hi3): Also allow
18388         TARGET_MMX_WITH_SSE.
18389         (mulv4hi3): New.
18390         (*mmx_mulv4hi3): Also allow TARGET_MMX_WITH_SSE.  Add SSE
18391         support.
18393 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18395         PR target/89021
18396         * config/i386/mmx.md (MMXMODEI8): Require TARGET_SSE2 for V1DI.
18397         (plusminus:mmx_<plusminus_insn><mode>3): Check
18398         TARGET_MMX_WITH_SSE.
18399         (sat_plusminus:mmx_<plusminus_insn><mode>3): Likewise.
18400         (<plusminus_insn><mode>3): New.
18401         (*mmx_<plusminus_insn><mode>3): Add SSE emulation.
18402         (*mmx_<plusminus_insn><mode>3): Likewise.
18404 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18406         PR target/89021
18407         * config/i386/i386-expand.c (ix86_split_mmx_punpck): New function.
18408         * config/i386/i386-protos.h (ix86_split_mmx_punpck): New
18409         prototype.
18410         * config/i386/mmx.m (mmx_punpckhbw): Changed to
18411         define_insn_and_split to support SSE emulation.
18412         (mmx_punpcklbw): Likewise.
18413         (mmx_punpckhwd): Likewise.
18414         (mmx_punpcklwd): Likewise.
18415         (mmx_punpckhdq): Likewise.
18416         (mmx_punpckldq): Likewise.
18418 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18419             Uros Bizjak  <ubizjak@gmail.com>
18421         PR target/89021
18422         * config/i386/i386-expand.c (ix86_move_vector_high_sse_to_mmx):
18423         New function.
18424         (ix86_split_mmx_pack): Likewise.
18425         * config/i386/i386-protos.h (ix86_move_vector_high_sse_to_mmx):
18426         New prototype.
18427         (ix86_split_mmx_pack): Likewise.
18428         * config/i386/i386.md (mmx_isa): New.
18429         (enabled): Also check mmx_isa.
18430         * config/i386/mmx.md (any_s_truncate): New code iterator.
18431         (s_trunsuffix): New code attr.
18432         (mmx_packsswb): Removed.
18433         (mmx_packssdw): Likewise.
18434         (mmx_packuswb): Likewise.
18435         (mmx_pack<s_trunsuffix>swb): New define_insn_and_split to emulate
18436         MMX packsswb/packuswb with SSE2.
18437         (mmx_packssdw): Likewise.
18438         * config/i386/predicates.md (register_mmxmem_operand): New.
18440 2019-05-15  H.J. Lu  <hongjiu.lu@intel.com>
18442         PR target/89021
18443         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18444         __MMX_WITH_SSE__ for TARGET_MMX_WITH_SSE.
18445         * config/i386/i386.c (ix86_set_reg_reg_cost): Add support for
18446         TARGET_MMX_WITH_SSE with VALID_MMX_REG_MODE.
18447         (ix86_vector_mode_supported_p): Likewise.
18448         * config/i386/i386.h (TARGET_MMX_WITH_SSE): New.
18450 2019-05-15  Martin Liska  <mliska@suse.cz>
18452         PR middle-end/90478
18453         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18454         Check for overflow.
18456 2019-05-15  Richard Biener  <rguenther@suse.de>
18458         * tree-into-ssa.c (pass_build_ssa::execute): Run
18459         update_address_taken before going into SSA.
18461 2019-05-15  Richard Biener  <rguenther@suse.de>
18463         * tree-pretty-print.c (dump_generic_node): Dump BIT_FIELD_REF
18464         as __BIT_FIELD_REF with type with -gimple.
18466 2019-05-15  Vladislav Ivanishin  <vlad@ispras.ru>
18468         * tree-ssa-uninit.c (is_value_included_in): Remove is_unsigned and merge
18469         semantically equivalent branches (left over after prior refactorings).
18471 2019-05-15  Richard Biener  <rguenther@suse.de>
18473         PR tree-optimization/88828
18474         * tree-ssa-forwprop.c (simplify_vector_constructor): Fix
18475         bogus check.
18477 2019-05-14  Richard Biener  <rguenther@suse.de>
18479         * tree-pretty-print.c (dump_generic_node): Dump VIEW_CONVERT_EXPR
18480         as __VIEW_CONVERT with -gimple.
18482 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
18484         PR target/82920
18485         * config/i386/darwin.h (CC1_SPEC): Report -mx32 as an error for
18486         Darwin.
18488 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
18490         * config/rs6000/rs6000.md (eh_set_lr_<mode>): Merge with following
18491         define_split to become a define_insn_and_split.
18493 2019-05-14  Segher Boessenkool  <segher@kernel.crashing.org>
18495         * config/rs6000/rs6000-protos.h (rs6000_emit_epilogue): Change
18496         arguments.
18497         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Change arguments.
18498         * config/rs6000/rs6000.md (epilogue_type): New define_enum.
18499         (sibcall_epilogue): Adjust.
18500         (epilogue): Adjust.
18502 2019-05-14  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
18504         * config.gcc: Move *-*-solaris2.10* from obsolete configurations
18505         to unsupported ones.
18506         Simplify x86_64-*-solaris2.1[0-9]* to x86_64-*-solaris2*.
18507         * config.host: Likewise.
18508         * config/i386/sol2.h (ASM_COMMENT_START): Remove.
18509         * config/sparc/driver-sparc.c (host_detect_local_cpu) [__sun__ &&
18510         __svr4__]: Remove "brand" fallback.
18511         [!KSTAT_DATA_STRING]: Remove.
18512         * configure.ac (gcc_cv_ld_hidden): Simplify *-*-solaris2.1[0-9]*
18513         to *-*-solaris2*.
18514         (comdat_group): Likewise.
18515         (set_have_as_tls): Likewise.
18516         (gcc_cv_target_dl_iterate_phdr): Likewise.
18517         (gcc_cv_as_shf_merge): Remove Solaris 10/x86 workaround.
18518         (gcc_cv_ld_aligned_shf_merge): Remove Solaris 10/SPARC workaround.
18519         * configure: Regenerate.
18520         * doc/install.texi: Simplify Solaris target triplets.
18521         (Specific, i?86-*-solaris2*): Remove Solaris 10 references.
18522         (Specific, *-*-solaris2*): Document Solaris 10 removal.
18523         Remove Solaris 10 references.
18524         Remove obsolete Solaris bug reference.
18525         (Specific, sparc-sun-solaris2.10): Remove.
18527 2019-05-14  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18529         * config/i386/i386.md (any_div): New code iterator.
18530         (paired_mod): New code attribute.
18531         (sgnprefix): Handle DIV and UDIV RTXes.
18532         (u): Ditto.
18533         (<u>divmod<mode>4): Macroize expander from divmod<mode>4
18534         and udivmod<mode>4 patterns using any_div code iterator.
18535         (divmod splitters): Macroize splitters using any_div code iterator.
18536         (*udivmodsi4_pow2_zext_1): Use exactl_log2 in insn condition.
18537         (*udivmodsi4_pow2_zext_2): Ditto.
18538         (*<u>divmod<mode>4_noext): Macroize insn from *divmod<mode>4_noext
18539         and *udivmod<mode>4_noext patterns using any_div code iterator.
18540         (*<u>divmod<mode>4_noext_zext_1): Macroize insn from
18541         *divmod<mode>4_noext_zext_1 and *udivmod<mode>4_noext_zext_1
18542         patterns using any_div code iterator.
18543         (*<u>divmod<mode>4_noext_zext_2): Macroize insn from
18544         *divmod<mode>4_noext_zext_2 and *udivmod<mode>4_noext_zext_2
18545         patterns using any_div code iterator.
18546         (<u>divmodhiqi3): Macroize insn from divmodhiqi3 and
18547         udivmodhiqi3 patterns using any_extend code iterator.
18549 2019-05-14  Richard Biener  <rguenther@suse.de>
18550             H.J. Lu  <hongjiu.lu@intel.com>
18552         PR tree-optimization/88828
18553         * tree-ssa-forwprop.c (simplify_vector_constructor): Handle
18554         permuting in a single non-constant element not extracted
18555         from a vector.
18557 2019-05-14  Przemyslaw Wirkus  <przemyslaw.wirkus@arm.com>
18559         * internal-fn.def (SIGNBIT): New.
18560         * config/aarch64/aarch64-simd.md (signbitv2sf2): New expand
18561         defined.
18562         (signbitv4sf2): Likewise.
18564 2019-05-14  Chenghua Xu  <paul.hua.gm@gmail.com>
18566         PR target/90357
18567         * config/mips/mips.c (mips_split_move): Skip forward SRC into
18568         next insn when the SRC reg is dead.
18570 2019-05-14  Bin Cheng  <bin.cheng@linux.alibaba.com>
18572         * gimple-ssa-strength-reduction.c (lookup_cand): Adjust index by 1.
18573         (alloc_cand_and_find_basis): Ditto.
18574         (backtrace_base_for_ref, create_mul_ssa_cand): Remove if-then-else.
18575         (create_mul_imm_cand, create_add_ssa_cand): Ditto.
18576         (create_add_imm_cand, slsr_process_cast): Ditto.
18577         (slsr_process_copy, replace_mult_candidate): Ditto.
18578         (replace_rhs_if_not_dup, replace_one_candidate): Ditto.
18579         (dump_cand_vec, analyze_candidates_and_replace): Skip NULL element.
18580         (pass_strength_reduction::execute): Init the first NULL element.
18582 2019-05-13  Nathan Sidwell  <nathan@acm.org>
18584         * gcc.c (execute): Simplify cond-expr into if.  Reformat comment.
18585         (run_attempt): Reformat line break.
18587 2019-05-13  David Edelsohn  <dje.gcc@gmail.com>
18589         PR target/90418
18590         * config/rs6000/rs6000.c (rs6000_emit_epilogue): Don't load EH
18591         data registers in sibcall epilogues.
18592         Don't add EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18594 2019-05-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18596         PR target/89221
18597         * configure.ac (--enable-frame-pointer):
18598         Disable by default for cygwin and mingw.
18599         * configure: Regenerate.
18601 2019-05-13  Nathan Sidwell  <nathan@acm.org>
18603         * dwarf2out.c (breakout_comdat_types): Move comment to correct
18604         piece of code.
18605         (const_ok_for_output_1): Balance parens around #if/#else/#endif
18606         (gen_member_die): Move abstract origin check earlier.  Only VARs
18607         can be static_inline_p.  Simplify splicing control flow.
18609 2019-05-13  Richard Biener  <rguenther@suse.de>
18611         * tree-vect-slp.c (vect_get_and_check_slp_defs): Handle
18612         VIEW_CONVERT_EXPR.
18613         (vect_build_slp_tree_1): Likewise.
18615 2019-05-13  Richard Biener  <rguenther@suse.de>
18617         PR tree-optimization/90402
18618         * tree-if-conv.c (tree_if_conversion): Value number only
18619         the loop body by making the latch an exit of the region
18620         as well.
18621         * tree-ssa-sccvn.c (process_bb): Add flag whether to skip
18622         processing PHIs.
18623         (do_rpo_vn): Deal with multiple edges into the entry block
18624         that are not backedges inside the region by skipping PHIs
18625         of the entry block.
18627 2019-05-13  Richard Biener  <rguenther@suse.de>
18629         PR tree-optimization/90316
18630         * tree-ssa-pre.c (insert_aux): Fold into ...
18631         (insert): ... this function.  Use a RPO walk to reduce the
18632         number of required iterations.
18634 2019-05-13  Martin Liska  <mliska@suse.cz>
18636         PR tree-optimization/90416
18637         * tree-vect-stmts.c (vect_check_load_store_mask): Concatenate
18638         string instead of passing the second part as va_arg argument.
18640 2019-05-13  Martin Liska  <mliska@suse.cz>
18642         PR gcov-profile/90380
18643         * gcov.c (handle_cycle): Do not support zero cycle count,
18644         it should not be possible.
18645         (path_contains_zero_cycle_arc): New function.
18646         (circuit): Ignore zero cycle arc counts.
18648 2019-05-13  Martin Liska  <mliska@suse.cz>
18650         PR gcov-profile/90380
18651         * gcov.c (enum loop_type): Remove the enum and
18652         the operator.
18653         (handle_cycle): Assert that we should not reach
18654         a negative count.
18655         (circuit): Use loop_found instead of a tri-state loop_type.
18656         (get_cycles_count): Do not handle NEGATIVE_LOOP as it can't
18657         happen.
18659 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
18661         PR target/82920
18662         * config/i386/i386.c (ix86_output_jmp_thunk_or_indirect): New.
18663         (ix86_output_indirect_branch_via_reg): Use output mechanism
18664         accounting for __USER_LABEL_PREFIX__.
18665         (ix86_output_indirect_branch_via_push): Likewise.
18666         (ix86_output_function_return): Likewise.
18667         (ix86_output_indirect_function_return): Likewise.
18669 2019-05-12  Richard Sandiford  <richard.sandiford@arm.com>
18671         * doc/md.texi: Document use of code attributes in rtx patterns.
18672         * read-md.h (rtx_reader::rtx_alloc_for_name): New member function.
18673         * read-rtl.c (find_code): Split out search loops into...
18674         (maybe_find_code): ...this new function.
18675         (check_code_iterator): Make the error message more informative.
18676         (check_code_attribute): New function.
18677         (rtx_reader::rtx_alloc_for_name): Likewise.
18678         (rtx_reader::read_rtx_code): Use rtx_alloc_for_name.
18679         * config/aarch64/predicates.md (aarch64_smin, aarch64_umin): Delete.
18680         * config/aarch64/aarch64-simd.md (*aarch64_<su>abd<mode>_3): Use
18681         <max_opp> directly as an rtx code instead of via a match_operator.
18682         * config/aarch64/aarch64-sve.md (aarch64_<su>abd<mode>_3): Likewise.
18683         (<su>abd<mode>_3): Update accordingly.
18685 2019-05-12  Iain Sandoe  <iain@sandoe.co.uk>
18687         * config/rs6000/rs6000.c (debug_stack_info): When -mdebug=stack
18688         is given, print the state of the EH "save world" computation for
18689         Darwin.
18691 2019-05-11  Jakub Jelinek  <jakub@redhat.com>
18693         PR c++/59813
18694         * config/aarch64/aarch64.c (aarch64_expand_epilogue): Don't add
18695         EH_RETURN_STACKADJ_RTX to sp in sibcall epilogues.
18697 2019-05-11  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18699         * config/i386/i386.md (floatdi<X87MODEF:mode>2_i387_with_xmm):
18700         Use pinsrd for TARGET_SSE4_1.
18701         * config/i386/sse.md (movdi_to_sse): Ditto.
18703 2019-05-10  Richard Biener  <rguenther@suse.de>
18705         * tree-ssa-sccvn.c (visit_reference_op_call): Initialize value-id.
18706         (do_rpo_vn): Initialize next_value_id.
18708 2019-05-10  Martin Liska  <mliska@suse.cz>
18710         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18711         Fix plural form.
18713 2019-05-10  Jakub Jelinek  <jakub@redhat.com>
18715         PR tree-optimization/90385
18716         * tree-parloops.c (try_create_reduction_list): Punt on non-SSA_NAME
18717         arguments of the exit phis.
18719         PR c++/90383
18720         * tree-inline.h (struct copy_body_data): Add do_not_fold member.
18721         * tree-inline.c (remap_gimple_op_r): Avoid folding expressions if
18722         id->do_not_fold.
18723         (copy_tree_body_r): Likewise.
18724         (copy_fn): Set id.do_not_fold to true.
18726 2019-05-10  Martin Liska  <mliska@suse.cz>
18728         * config/i386/i386-expand.c (ix86_expand_floorceildf_32):
18729         Reapply changes from r269790.
18731 2019-05-10  Martin Liska  <mliska@suse.cz>
18733         PR middle-end/90340
18734         * doc/invoke.texi: New params.
18735         * params.def (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SIZE): New.
18736         (PARAM_JUMP_TABLE_MAX_GROWTH_RATIO_FOR_SPEED): Likewise.
18737         * tree-switch-conversion.c (jump_table_cluster::can_be_handled):
18738         Use it.
18739         * tree-switch-conversion.h (struct jump_table_cluster):
18740         Likewise.
18742 2019-05-09  Segher Boessenkool  <segher@kernel.crashing.org>
18744         * combine.c (combine_simplify_rtx): Don't make IF_THEN_ELSE RTL.
18746 2019-05-09  Bill Schmidt  <wschmidt@linux.ibm.com>
18748         * doc/loop.texi: Remove reference to FOR_EACH_LOOP_BREAK.
18750 2019-05-09  Alexander Monakov  <amonakov@ispras.ru>
18752         PR rtl-optimization/88879
18753         * sel-sched.c (sel_target_adjust_priority): Remove assert.
18755 2019-05-09  Richard Earnshaw  <rearnsha@arm.com>
18757         PR target/90405
18758         * config/arm/arm.c (callee_saved_reg_p): Move before
18759         thumb_find_work_register.
18760         (thumb1_prologue_unused_call_clobbered_lo_regs): Move before
18761         thumb_find_work_register.  Only call df_get_live_out once.
18762         (thumb1_epilogue_unused_call_clobbered_lo_regs): Likewise.
18763         (thumb_find_work_register): Use
18764         thumb1_prologue_unused_call_clobbered_lo_regs instead of ad hoc
18765         algorithms to locate a spare call clobbered reg.
18767 2019-05-09  Martin Liska  <mliska@suse.cz>
18769         * gimple-pretty-print.c (dump_binary_rhs): Dump MIN_EXPR
18770         and MAX_EXPR in GIMPLE FE format.
18772 2019-05-09  Martin Liska  <mliska@suse.cz>
18774         * tree-cfg.c (dump_function_to_file): Dump entry BB count.
18775         * gimple-pretty-print.c (dump_gimple_bb_header):
18776         Dump BB count.
18777         (pp_cfg_jump): Dump edge probability.
18778         * profile-count.c (profile_quality_as_string): Simplify
18779         with a static array.
18780         (parse_profile_quality): New function.
18781         (profile_count::dump): Simplify with a static array.
18782         (profile_count::from_gcov_type): Add new argument.
18783         * profile-count.h (parse_profile_quality): Likewise.
18784         * predict.h (set_hot_bb_threshold): New.
18785         * params.def (PARAM_GIMPLE_FE_COMPUTED_HOT_BB_THRESHOLD):
18786         New param.
18787         * predict.c (get_hot_bb_threshold): Set from the new param.
18788         (set_hot_bb_threshold): New.
18790 2019-05-09  Richard Biener  <rguenther@suse.de>
18792         PR tree-optimization/90395
18793         * tree-ssa-forwprop.c (pass_forwprop::execute): Do not
18794         rewrite vector stores that throw internally.
18796 2019-05-09  Thomas Schwinge  <thomas@codesourcery.com>
18798         * cif-code.def (CHKP): Remove.
18800         PR target/89221
18801         * configure.ac (--enable-frame-pointer): Disable by default for
18802         GNU systems.
18803         * configure: Regenerate.
18805 2019-05-09  Alan Modra  <amodra@gmail.com>
18807         PR target/89271
18808         * config/rs6000/rs6000.h (enum reg_class, REG_CLASS_NAMES),
18809         (REG_CLASS_CONTENTS): Add GEN_OR_VSX_REGS class.
18810         * config/rs6000/rs6000.c (rs6000_register_move_cost): Correct
18811         cost for general <-> vsx when direct moves are available.
18812         Cost union classes at minimal cost for any reg in the class.
18813         Correct calculation for moves between vsx, float, and altivec.
18814         Don't return a low cost for moves between special regs.  Don't
18815         use hard coded register numbers.
18816         (TARGET_IRA_CHANGE_PSEUDO_ALLOCNO_CLASS): Define.
18817         (rs6000_ira_change_pseudo_allocno_class): New function.
18818         * config/rs6000/rs6000.md (movsi_internal1, mov<mode>_internal),
18819         (movdi_internal32, movdi_internal64): Remove '*' from vsx register
18820         alternatives.
18821         (movsi_internal1): Don't disparage vector alternatives.
18822         (mov<mode>_internal): Likewise, excepting alternative that
18823         will be split.
18824         * config/rs6000/vsx.md (vsx_splat_<mode>_reg): Don't disparage
18825         we <- b alternative.
18827 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
18829         PR c++/59813
18830         PR tree-optimization/89060
18831         * tree-ssa-live.h (live_vars_map): New typedef.
18832         (compute_live_vars, live_vars_at_stmt, destroy_live_vars): Declare.
18833         * tree-ssa-live.c: Include gimple-walk.h and cfganal.h.
18834         (struct compute_live_vars_data): New type.
18835         (compute_live_vars_visit, compute_live_vars_1, compute_live_vars,
18836         live_vars_at_stmt, destroy_live_vars): New functions.
18837         * tree-tailcall.c: Include tree-ssa-live.h.
18838         (live_vars, live_vars_vec): New global variables.
18839         (find_tail_calls): Perform variable life analysis before punting.
18840         (tree_optimize_tail_calls_1): Clean up live_vars and live_vars_vec.
18841         * tree-inline.h (struct copy_body_data): Add eh_landing_pad_dest
18842         member.
18843         * tree-inline.c (add_clobbers_to_eh_landing_pad): Remove BB argument.
18844         Perform variable life analysis to select variables that really need
18845         clobbers added.
18846         (copy_edges_for_bb): Don't call add_clobbers_to_eh_landing_pad here,
18847         instead set id->eh_landing_pad_dest and assert it is the same.
18848         (copy_cfg_body): Call it here if id->eh_landing_pad_dest is non-NULL.
18850 2019-05-08  Mihail Ionescu  <mihail.ionescu@arm.com>
18851             Richard Earnshaw  <rearnsha@arm.com>
18853         PR target/88167
18854         * config/arm/arm.c (thumb1_prologue_unused_call_clobbered_lo_regs): New
18855         function.
18856         (thumb1_epilogue_unused_call_clobbered_lo_regs): New function.
18857         (thumb1_compute_save_core_reg_mask): Don't force a spare work
18858         register if both the epilogue and prologue can use call-clobbered
18859         regs.
18860         (thumb1_unexpanded_epilogue): Use
18861         thumb1_epilogue_unused_call_clobbered_lo_regs.  Reverse the logic for
18862         picking temporaries for restoring high regs to match that of the
18863         prologue where possible.
18864         (thumb1_expand_prologue): Add any usable call-clobbered low registers to
18865         the list of work registers.  Detect if the return address is still live
18866         at the end of the prologue and avoid using it for a work register if so.
18867         If the return address is not live, add LR to the list of pushable regs
18868         after the first pass.
18870 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
18872         PR tree-optimization/90078
18873         * tree-ssa-loop-ivopts.c (inttypes.h): Include new header file.
18874         (INFTY): Increase the value for infinite cost.
18875         (struct comp_cost): Promote type of members to int64_t.
18876         (infinite_cost): Don't set complexity in initialization.
18877         (comp_cost::operator +,-,+=,-+,/=,*=): Assert when cost computation
18878         overflows to infinite_cost.
18879         (adjust_setup_cost): Promote type of parameter and cost computation
18880         to int64_t.
18881         (struct ainc_cost_data, struct iv_ca): Promote type of member to
18882         int64_t.
18883         (get_scaled_computation_cost_at, determine_iv_cost): Promote type of
18884         cost computation to int64_t.
18885         (determine_group_iv_costs, iv_ca_dump, find_optimal_iv_set): Use
18886         int64_t's format specifier in dump.
18888 2019-05-08  Bin Cheng  <bin.cheng@linux.alibaba.com>
18890         PR tree-optimization/90240
18891         * tree-ssa-loop-ivopts.c (get_scaled_computation_cost_at): Scale cost
18892         with respect to scaling factor pre-computed for each basic block.
18893         (try_improve_iv_set): Return bool if best_cost equals to iv_ca cost.
18894         (find_optimal_iv_set_1): Free iv_ca set if it has infinite_cost.
18895         (COST_SCALING_FACTOR_BOUND, determine_scaling_factor): New.
18896         (tree_ssa_iv_optimize_loop): Call determine_scaling_factor.  Extend
18897         live range for array of loop's basic blocks.  Cleanup aux field of
18898         loop's basic blocks.
18900 2019-05-08  Jakub Jelinek  <jakub@redhat.com>
18902         PR tree-optimization/90356
18903         * match.pd ((X +/- 0.0) +/- 0.0): Optimize into X +/- 0.0 if possible.
18905 2019-05-07  Wei Xiao  <wei3.xiao@intel.com>
18907         * common/config/i386/i386-common.c (OPTION_MASK_ISA_AVX512BF16_SET
18908         OPTION_MASK_ISA_AVX512BF16_UNSET, OPTION_MASK_ISA2_AVX512BW_UNSET): New.
18909         (OPTION_MASK_ISA2_AVX512F_UNSET): Add OPTION_MASK_ISA_AVX512BF16_UNSET.
18910         (ix86_handle_option): Handle -mavx512bf16.
18911         * config.gcc: Add avx512bf16vlintrin.h and avx512bf16intrin.h
18912         to extra_headers.
18913         * config/i386/avx512bf16vlintrin.h: New.
18914         * config/i386/avx512bf16intrin.h: New.
18915         * config/i386/cpuid.h (bit_AVX512BF16): New.
18916         * config/i386/driver-i386.c (host_detect_local_cpu): Detect BF16.
18917         * config/i386/i386-builtin-types.def: Add new types.
18918         * config/i386/i386-builtin.def: Add new builtins.
18919         * config/i386/i386-c.c (ix86_target_macros_internal): Define
18920         __AVX512BF16__.
18921         * config/i386/i386-option.c (ix86_target_string): Add -mavx512bf16.
18922         (ix86_option_override_internal): Handle BF16.
18923         (ix86_valid_target_attribute_inner_p): Ditto.
18924         * config/i386/i386-expand.c (ix86_expand_args_builtin): Ditto.
18925         * config/i386/i386-builtin.c (enum processor_features): Add
18926         F_AVX512BF16.
18927         (static const _isa_names_table isa_names_table): Ditto.
18928         * config/i386/i386.h (TARGET_AVX512BF16, TARGET_AVX512BF16_P): New.
18929         (PTA_AVX512BF16): Ditto.
18930         * config/i386/i386.opt: Add -mavx512bf16.
18931         * config/i386/immintrin.h: Include avx512bf16intrin.h
18932         and avx512bf16vlintrin.h.
18933         * config/i386/sse.md (avx512f_cvtne2ps2bf16_<mode><mask_name>,
18934         avx512f_cvtneps2bf16_<mode><mask_name>,
18935         avx512f_dpbf16ps_<mode><mask_half_name>): New define_insn patterns.
18936         * config/i386/subst.md (mask_half): Add new subst.
18937         * doc/invoke.texi: Document -mavx512bf16.
18939 2019-05-07  Segher Boessenkool  <segher@kernel.crashing.org>
18941         * config/rs6000/rs6000-protos.h (rs6000_legitimize_reload_address_ptr):
18942         Delete declaration.
18943         * config/rs6000/rs6000.c (rs6000_legitimize_reload_address): Delete.
18944         (rs6000_debug_legitimize_reload_address): Delete.
18945         (rs6000_legitimize_reload_address_ptr): Delete.
18946         (rs6000_option_override_internal): Adjust.
18947         (mem_operand_gpr): Adjust comment.
18948         (legitimate_lo_sum_address_p): Ditto.
18949         (rs6000_legitimize_reload_address): Delete.
18950         (rs6000_debug_legitimize_reload_address): Delete.
18951         * config/rs6000/rs6000.h (LEGITIMIZE_RELOAD_ADDRESS): Delete.
18953 2019-05-07  Kelvin Nilsen  <kelvin@gcc.gnu.org>
18955         PR target/89765
18956         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
18957         In handling of ALTIVEC_BUILTIN_VEC_INSERT, use modular arithmetic
18958         to compute vector element selector for both constant and variable
18959         operands.
18961 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18963         * config/i386/i386.md (cvt_mnemonic): New mode attribute.
18964         (ashr<mode>3_cvt): Merge insn pattern from ashrsi3_cvt and
18965         ashrdi3_cvt using SWI48 mode iterator.
18967 2019-05-07  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
18969         * config/aarch64/aarch64-sve.md (<su>abd<mode>_3): New define_expand.
18970         (aarch64_<su>abd<mode>_3): Likewise.
18971         (*aarch64_<su>abd<mode>_3): New define_insn.
18972         (<sur>sad<vsi2qi>): New define_expand.
18973         * config/aarch64/iterators.md: Added MAX_OPP attribute.
18974         * tree-vect-loop.c (use_mask_by_cond_expr_p): Add SAD_EXPR.
18975         (build_vect_cond_expr): Likewise.
18977 2019-05-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
18979         * cfgexpand.c (asm_clobber_reg_is_valid): Reject
18980         clobbers outside of accessible_reg_set.
18981         * config/i386/i386.c (ix86_conditional_register_usage):
18982         Disable register sets by clearing corresponding bits in
18983         accessible_reg_set.  Do not set corresponding bits in fixed_regs,
18984         call_used_regs and don't clear corresponding reg_names array members.
18986 2019-05-07  Richard Biener  <rguenther@suse.de>
18988         * tree-vect-stmts.c (vect_is_simple_cond): When vectype is
18989         not specified still compute a comp_vectype for invariant
18990         compares.
18992 2019-05-07  Richard Biener  <rguenther@suse.de>
18994         PR tree-optimization/90316
18995         * tree-ssa-pre.c (translate_vuse_through_block): When
18996         same_valid is NULL do not bother to search for a virtual
18997         PHI continuation.
18998         (phi_translate_1): When operands changed we cannot keep
18999         the same value-number so do not bother to ask whether
19000         that's possible from translate_vuse_through_block.
19002 2019-05-07  Martin Liska  <mliska@suse.cz>
19004         * bitmap.c (bitmap_register): Come up with
19005         alloc_descriptor_max_uid and assign it for
19006         a new bitmap.
19007         (register_overhead): Use get_descriptor as
19008         a descriptor.
19009         (release_overhead): New.
19010         (bitmap_elem_to_freelist): Call it.
19011         (bitmap_elt_clear_from): Likewise.
19012         (bitmap_obstack_free): Likewise.
19013         (bitmap_move): Sensitively release memory.
19014         * bitmap.h (struct GTY): Add alloc_descriptor and padding.
19015         (bitmap_initialize): Initialize alloc_descriptor to zero.
19016         * tree-ssa-pre.c (do_hoist_insertion): Use bitmap_move.
19018 2019-05-07  Richard Biener  <rguenther@suse.de>
19020         * tree-vect-slp.c (vect_build_slp_tree_2): Bump size whenever
19021         we build a SLP node.  Remove max_size and limiting.
19022         (vect_analyze_slp_instance): Record and dump size of the SLP graph.
19024 2019-05-07  Richard Biener  <rguenther@suse.de>
19026         PR tree-optimization/90316
19027         * tree-ssa-alias.h (get_continuation_for_phi): Take walking
19028         limit by reference.
19029         (walk_non_aliased_vuses): Take walking limit argument.
19030         * tree-ssa-alias.c (maybe_skip_until): Take limit and abort
19031         walking if it is reached instead of just counting.
19032         (get_continuation_for_phi): Likewise.
19033         (walk_non_aliased_vuses): Likewise, instead of leaving counter
19034         limiting to the callback.
19035         * tree-ssa-sccvn.c (vn_reference_lookup_2): Adjust.
19036         (vn_reference_lookup_3): Likewise.
19037         (vn_reference_lookup_pieces): Likewise.
19038         (vn_reference_lookup): Likewise.
19039         * tree-ssa-pre.c (translate_vuse_through_block): Limit walking.
19040         * tree-ssa-scopedtables.c (vuse_eq): Adjust.
19041         (avail_exprs_stack::lookup_avail_expr): Likewise.
19043 2019-05-07  Jan Hubicka  <hubicka@ucw.cz>
19045         * tree-ssa-alias.c (aliasing_component_refs_p): Continue looking
19046         for comparaible types in the second direction even if first one
19047         hits incomparable type.
19049 2019-05-07  Richard Biener  <rguenther@suse.de>
19051         PR lto/90369
19052         * lto-wrapper.c (debug_objcopy): Use the original filename
19053         including archive offset for the filename used for -save-temps.
19055 2019-05-07  Li Jia He  <helijia@linux.ibm.com>
19057         * tree-ssa-phiopt.c (two_value_replacement): Fix a typo in parameter
19058         detection.
19060 2019-05-06  H.J. Lu  <hongjiu.lu@intel.com>
19061             Hongtao Liu  <hongtao.liu@intel.com>
19063         PR target/89750
19064         PR target/86444
19065         * config/i386/i386-expand.c (ix86_expand_sse_comi_round):
19066         Modified, original implementation isn't correct.
19068 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
19070         * config/rs6000/rs6000.md (FIRST_ALTIVEC_REGNO, LAST_ALTIVEC_REGNO)
19071         (LR_REGNO, CTR_REGNO, CA_REGNO, ARG_POINTER_REGNUM, CR0_REGNO)
19072         (CR1_REGNO, CR2_REGNO, CR3_REGNO, CR4_REGNO, CR5_REGNO, CR6_REGNO)
19073         (CR7_REGNO, MAX_CR_REGNO, VRSAVE_REGNO, VSCR_REGNO)
19074         (FRAME_POINTER_REGNUM): Change numbering.
19075         * config/rs6000/rs6000.c (rs6000_reg_names): Adjust.
19076         (alt_reg_names): Adjust.
19077         (rs6000_conditional_register_usage): Don't mark hard register 64 as
19078         fixed.
19079         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19080         (DWARF_FRAME_REGISTERS): Delete.
19081         (DWARF2_FRAME_REG_OUT): Fix whitespace.
19082         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19083         Adjust.
19084         (REG_ALLOC_ORDER): Adjust.
19085         (FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM): Adjust.
19086         (REG_CLASS_CONTENTS): Adjust.
19087         (RETURN_ADDR_RTX): Change comment.
19088         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use ARG_POINTER_REGNUM
19089         instead of 67.
19090         (REGISTER_NAMES): Adjust.
19091         (ADDITIONAL_REGISTER_NAMES): Adjust.
19092         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19094 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
19096         * config/rs6000/rs6000.md (TFHAR_REGNO, TFIAR_REGNO, TEXASR_REGNO):
19097         Delete.
19098         * config/rs6000/rs6000.h (FIRST_PSEUDO_REGISTER): Adjust.
19099         (DWARF_FRAME_REGISTERS): Adjust.
19100         (FIXED_REGISTERS, CALL_USED_REGISTERS, CALL_REALLY_USED_REGISTERS):
19101         Adjust.
19102         (REG_ALLOC_ORDER): Adjust.
19103         (enum reg_class): Delete SPR_REGS.
19104         (REG_CLASS_NAMES): Delete SPR_REGS.
19105         (REG_CLASS_CONTENTS): Delete SPR_REGS.  Adjust for deleted TM regs.
19106         (REGISTER_NAMES): Adjust.
19107         (ADDITIONAL_REGISTER_NAMES): Adjust.
19108         * config/rs6000/darwin.h (REGISTER_NAMES): Adjust.
19109         * config/rs6000/htm.md (htm_mfspr_<mode>, htm_mtspr_<mode>): Adjust.
19110         * config/rs6000/predicates.md (htm_spr_reg_operand): Delete.
19111         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Adjust.
19112         (htm_spr_regno): Delete.
19113         (htm_expand_builtin): Adjust: the HTM builtins now have one fewer
19114         argument.
19115         (rs6000_dbx_register_number): Adjust.
19117 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
19119         * config/rs6000/rs6000.h (PRE_GCC3_DWARF_FRAME_REGISTERS): Delete.
19121 2019-05-06  Segher Boessenkool  <segher@kernel.crashing.org>
19123         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Handle
19124         FRAME_POINTER_REGNUM, ARG_POINTER_REGNUM, and 64 (which was MQ).
19126 2019-05-06  Jakub Jelinek  <jakub@redhat.com>
19128         PR tree-optimization/88709
19129         PR tree-optimization/90271
19130         * params.def (PARAM_STORE_MERGING_MAX_SIZE): New parameter.
19131         * gimple-ssa-store-merging.c (encode_tree_to_bitpos): Handle
19132         non-clobber CONSTRUCTORs with no elts.  Remove useless tmp_int
19133         variable.
19134         (imm_store_chain_info::coalesce_immediate_stores): Punt if the size
19135         of the store merging group is larger than
19136         PARAM_STORE_MERGING_MAX_SIZE parameter.
19137         (split_group): Add bzero_first argument.  If set, always emit first
19138         the first store which must be = {} of the whole area and then for the
19139         rest of the stores consider all zero bytes as paddings.
19140         (imm_store_chain_info::output_merged_store): Check if first store
19141         is = {} of the whole area and if yes, determine which setting of
19142         bzero_first for split_group gives smaller number of stores.  Adjust
19143         split_group callers.
19144         (lhs_valid_for_store_merging_p): Allow decls.
19145         (rhs_valid_for_store_merging_p): Allow non-clobber CONTRUCTORs with
19146         no elts.
19147         (pass_store_merging::process_store): Likewise.
19149 2019-05-06  Kelvin Nilsen  <kelvin@gcc.gnu.org>
19151         PR target/89424
19152         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Add
19153         handling of V1TImode.
19155 2019-05-06  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19157         PR target/89221
19158         * config.gcc (i[34567]86-*-*, x86_64-*-*): Move tests for enable_cld
19159         and enable_frame_pointer ...
19160         * configure.ac: ... here.  Update help strings for
19161         --enable-frame-pointer.
19162         * configure: Regenerate.
19163         * config/i386/i386-options.c (ix86_option_override_internal): Remove
19164         USE_X86_64_FRAME_POINTER define, use USE_IX86_FRAME_POINTER instead.
19165         * config/i386/sol2.h (USE_IX86_FRAME_POINTER): Remove.
19166         (USE_X86_64_FRAME_POINTER): Ditto.
19168 2019-05-06  Martin Liska  <mliska@suse.cz>
19170         * config.gcc: Append to target_gtfiles and fix indentation.
19172 2019-05-06  Richard Biener  <rguenther@suse.de>
19174         PR tree-optimization/90358
19175         * tree-vect-stmts.c (get_group_load_store_type): Properly
19176         detect unused upper half of load.
19177         (vectorizable_load): Likewise.
19179 2019-05-06  Richard Biener  <rguenther@suse.de>
19181         PR tree-optimization/88828
19182         * tree-ssa-forwprop.c (get_bit_field_ref_def): Split out from...
19183         (simplify_vector_constructor): ...here.  Handle constants in
19184         the constructor.
19186 2019-05-06  Richard Biener  <rguenther@suse.de>
19188         PR tree-optimization/90328
19189         * tree-data-ref.h (dr_may_alias_p): Pass in the actual loop nest.
19190         * tree-data-ref.c (dr_may_alias_p): Check whether the clique
19191         is valid in the loop nest before using it.
19192         (initialize_data_dependence_relation): Adjust.
19193         * graphite-scop-detection.c (build_alias_set): Pass the SCOP enclosing
19194         loop as loop-nest to dr_may_alias_p.
19196 2019-05-06  Richard Biener  <rguenther@suse.de>
19198         * dwarf2out.c (mem_loc_descriptor): Initialize int_mode.
19200 2019-05-06  Richard Biener  <rguenther@suse.de>
19202         PR tree-optimization/90316
19203         * tree-ssa-alias.c (maybe_skip_until): Pass in target BB,
19204         compute target on demand.
19205         (get_continuation_for_phi): Remove code walking stmts to
19206         get to a target virtual operand which could end up being
19207         quadratic.
19209 2019-05-06  Martin Liska  <mliska@suse.cz>
19211         PR sanitizer/90312
19212         * config/i386/i386-options.c (ix86_option_override_internal): Error only
19213         when -mabi is selected to a non-default version.
19215 2019-05-06  Hrishikesh Kulkarni  <hrishikeshparag@gmail.com>
19216             Martin Liska  <mliska@suse.cz>
19218         * Makefile.in: Add lto-dump.texi.
19219         * cgraph.h: Add new functions get_visibility_string and
19220         get_symtab_type_string.
19221         * doc/gcc.texi: Include lto-dump section.
19222         * doc/lto-dump.texi: New file.
19223         * dumpfile.c (dump_switch_p_1): Use parse_dump_option.
19224         (parse_dump_option): Factor out this function.
19225         * dumpfile.h (enum dump_flag): Add new value TDF_ERROR.
19226         (parse_dump_option): Export the function.
19227         * symtab.c (symtab_node::get_visibility_string): New function.
19228         (symtab_node::get_symtab_type_string): Likewise.
19230 2019-05-06  Martin Liska  <mliska@suse.cz>
19232         * config/i386/i386-builtins.c: New file.
19233         * config/i386/i386-builtins.h: New file.
19234         * config/i386/i386-expand.c: New file.
19235         * config/i386/i386-expand.h: New file.
19236         * config/i386/i386-features.c: New file.
19237         * config/i386/i386-features.h: New file.
19238         * config/i386/i386-options.c: New file.
19239         * config/i386/i386-options.h: New file.
19240         * config.gcc: Add new files into extra_objs and
19241         target_gtfiles.
19242         * config/i386/i386.c: Split content of the file
19243         into newly introduced files.
19244         * config/i386/i386.h: Declare common variables
19245         and macros.
19246         * config/i386/t-i386: Define dependencies for new files.
19248 2019-05-03  Richard Earnshaw  <rearnsha@arm.com>
19250         PR target/89400
19251         * config/arm/arm.md (unaligned_loadsi): Add variant for thumb1.
19252         Restrict 'all' variant to 32-bit configurations.
19253         (unaligned_loadhiu): Likewise.
19254         (unaligned_storehi): Likewise.
19255         (unaligned_storesi): Likewise.
19256         (unaligned_loadhis): Disable when compiling for thumb1.
19258 2019-05-03  Marc Glisse  <marc.glisse@inria.fr>
19260         PR tree-optimization/90269
19261         * tree-loop-distribution.c (find_seed_stmts_for_distribution):
19262         Ignore clobbers.
19264 2019-05-03  Martin Liska  <mliska@suse.cz>
19266         * hash-map.h: Add is_empty function.
19267         * hash-set.h: Likewise.
19268         * hash-table.h: Likewise.
19269         * dwarf2out.c (dwarf2out_finish): Use is_empty instead of
19270         elements () == 0 (and similar usages).
19271         * gimple-ssa-store-merging.c (pass_store_merging::terminate_and_process_all_chains): Likewise.
19272         * gimplify.c (gimplify_bind_expr): Likewise.
19273         (gimplify_switch_expr): Likewise.
19274         * hash-map-tests.c (test_map_of_strings_to_int): Likewise.
19275         * ipa-icf.c (sem_item_optimizer::remove_symtab_node): Likewise.
19276         * postreload-gcse.c (dump_hash_table): Likewise.
19277         (gcse_after_reload_main): Likewise.
19278         * predict.c (combine_predictions_for_bb): Likewise.
19279         * tree-parloops.c (reduction_phi): Likewise.
19280         (separate_decls_in_region): Likewise.
19281         (transform_to_exit_first_loop): Likewise.
19282         (gen_parallel_loop): Likewise.
19283         (gather_scalar_reductions): Likewise.
19284         (try_create_reduction_list): Likewise.
19285         * var-tracking.c (dump_vars): Likewise.
19286         (emit_notes_for_changes): Likewise.
19287         (vt_emit_notes): Likewise.
19289 2019-05-03  Richard Biener  <rguenther@suse.de>
19291         PR tree-optimization/90316
19292         * tree-ssa-pre.c (pass_pre::execute): Re-compute DOM fast queries
19293         before running VN.
19295 2019-05-03  Richard Biener  <rguenther@suse.de>
19297         * tree-vect-stmts.c (get_group_load_store_type): Avoid
19298         peeling for gaps by loading only lower halves of vectors
19299         if possible.
19300         (vectorizable_load): Likewise.
19302 2019-05-03  Richard Biener  <rguenther@suse.de>
19304         PR middle-end/89518
19305         * match.pd: Add pattern to optimize (A / B) * B + (A % B) to A.
19307 2019-05-03  Richard Biener  <rguenther@suse.de>
19309         PR middle-end/87314
19310         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)):
19311         Handle STRING_CST vs DECL or STRING_CST.
19313 2019-05-03  Richard Biener  <rguenther@suse.de>
19315         PR tree-optimization/88963
19316         * tree-ssa-forwprop.c (pass_forwprop::execute): Rewrite
19317         vector loads feeding only BIT_FIELD_REFs to component
19318         loads.  Rewrite stores fed by CONSTRUCTORs to component
19319         stores.
19321 2019-05-03  Jakub Jelinek  <jakub@redhat.com>
19323         * opts.h (finish_options): Remove lang_mask argument.
19324         (print_help, help_option_argument): Declare.
19325         * opts.c (print_help): Remove forward declaration, no longer static.
19326         (finish_options): Remove lang_mask argument, don't call print_help
19327         here.
19328         * opts-global.c (decode_options): Adjust finish_option caller, call
19329         print_help here.
19331         PR tree-optimization/90303
19332         * ipa-devirt.c (obj_type_ref_class, get_odr_type): Don't use
19333         TYPE_CANONICAL for TYPE_STRUCTURAL_EQUALITY_P types in !in_lto_p mode.
19335 2019-05-03  Richard Biener  <rguenther@suse.de>
19337         PR tree-optimization/89698
19338         * gimple-fold.c (canonicalize_constructor_val): Early out
19339         for constants, handle unfolded INTEGER_CSTs as they appear in
19340         C++ virtual table ctors.
19342 2019-05-03  Richard Biener  <rguenther@suse.de>
19344         * passes.c (execute_function_todo): Remove dead code.
19346 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
19348         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Do not use
19349         the internal register number, for any "real" register.
19351 2019-05-02  Segher Boessenkool  <segher@kernel.crashing.org>
19353         * config/rs6000/rs6000.c (rs6000_dbx_register_number): Return the
19354         correct numbers for TFHAR, TFIAR, TEXASR.
19356 2019-05-02  Richard Biener  <rguenther@suse.de>
19358         PR tree-optimization/89653
19359         * tree-ssa-loop.c (pass_data_tree_loop_init): Execute
19360         update-address-taken before the pass.
19361         * passes.def (pass_tree_loop_init): Put comment before it.
19363 2019-05-02  Richard Biener  <rguenther@suse.de>
19365         PR tree-optimization/89509
19366         * tree-ssa-structalias.c (compute_dependence_clique): Look
19367         at the first subvar when determining whether it is restrict.
19369 2019-05-02  Richard Biener  <rguenther@suse.de>
19371         PR tree-optimization/90273
19372         * tree-ssa-dce.c (eliminate_unnecessary_stmts): Eliminate
19373         useless debug stmts.
19375 2019-05-02  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
19377         * config/aarch64/aarch64-sve.md (<sur>dot_prod<vsi2qi>): Taken from SVE
19378         ACLE branch.
19379         * config/aarch64/iterators.md: Copied Vetype_fourth, VSI2QI and vsi2qi from
19380         SVE ACLE branch.
19381         * tree-vect-loop.c (use_mask_by_cond_expr_p): New function to check if a
19382         VEC_COND_EXPR be inserted to emulate a conditional internal function.
19383         (build_vect_cond_expr): Emit the VEC_COND_EXPR.
19384         (vectorizable_reduction): Use the functions above to vectorize in a
19385         fully masked loop codes that don't have a conditional internal
19386         function.
19388 2019-05-02  Martin Liska  <mliska@suse.cz>
19390         * cgraphclones.c: Call valid_attribute_p with 1 for
19391         target_clone.
19392         * config/i386/i386-c.c (ix86_pragma_target_parse): Use 0 as
19393         it's for target attribute.
19394         * config/i386/i386-protos.h (ix86_valid_target_attribute_tree):
19395         Add new boolean argument.
19396         * config/i386/i386.c (ix86_valid_target_attribute_inner_p):
19397         Likewise.
19398         (ix86_valid_target_attribute_tree): Pass target_clone_attr
19399         to ix86_valid_target_attribute_inner_p.
19400         (ix86_valid_target_attribute_p): Pass flags argument to
19401         ix86_valid_target_attribute_inner_p.
19402         (get_builtin_code_for_version): Use 0 as it's target attribute.
19404 2019-05-02  Martin Liska  <mliska@suse.cz>
19406         * gcc.c (process_command): Add dummy file only
19407         if n_infiles == 0.
19408         * opts-global.c (decode_options): Pass lang_mask.
19409         * opts.c (print_help): New function.
19410         (finish_options): Print --help if help_option_argument
19411         is set.
19412         (common_handle_option): Factor out content of OPT__help_
19413         into print_help.
19414         * opts.h (finish_options): Add new argument.
19416 2019-05-02  Martin Liska  <mliska@suse.cz>
19418         PR target/88809
19419         * config/i386/i386.c (ix86_expand_strlen): Use strlen call.
19420         With -minline-all-stringops use inline expansion using 4B loop.
19421         * doc/invoke.texi: Document the change of
19422         -minline-all-stringops.
19424 2019-05-01  Jeff Law  <law@redhat.com>
19426         PR tree-optimization/88797
19427         * gimple-ssa-split-paths (is_feasible_trace): Reject cases where the
19428         PHI feeds a conditional on the RHS of an assignment.
19430 2019-04-30  Andrew Waterman  <andrew@sifive.com>
19431             Jim Wilson  <jimw@sifive.com>
19433         * config/riscv/constraints.md (L): New.
19434         * config/riscv/predicates.md (lui_operand): New.
19435         (sfb_alu_operand): New.
19436         * config/riscv/riscv-protos.h (riscv_expand_conditional_move): Declare.
19437         * config/riscv/riscv.c (riscv_expand_conditional_move): New.
19438         * config/riscv/riscv.h (TARGET_SFB_ALU): New.
19439         * config/riscv/risc.md (type): Add sfb_alu.
19440         (branch<mode>): Renamed from branch_order<mode>.  Change predicate for
19441         operand 3 to reg_or_0_operand.  In output string, change %3 to %z3.
19442         (branch_zero<mode>): Delete.
19443         (mov<mode>cc): New.
19444         (mov<GPR:mode><X:mode>cc): Likewise.
19445         * config/riscv/sifive-7.md (sifive_7_sfb_alu): New.  Use in bypasses.
19447 2019-04-30  Nathan Sidwell  <nathan@acm.org>
19449         * tree.h (MARK_TS_EXP): New.
19451 2019-04-30  Martin Liska  <mliska@suse.cz>
19453         * opts.c (enable_warning_as_error): Provide hints
19454         for unknown options.
19456 2019-04-30  Martin Liska  <mliska@suse.cz>
19458         PR debug/90288
19459         * doc/invoke.texi: Add missing dash for gas-locview-support
19460         and gno-as-locview-support.
19462 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
19464         PR target/89093
19465         * config/aarch64/aarch64.c (aarch64_process_one_target_attr): Don't skip
19466         whitespace at the start of target attribute string.
19468 2019-04-30  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19470         PR target/86538
19471         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
19472         Define __ARM_FEATURE_ATOMICS.
19474 2019-04-30  Martin Liska  <mliska@suse.cz>
19476         * gimple-fold.c (gimple_fold_builtin_memory_op): Change endp
19477         into built_in_function enum. Remove code for endp == 2 and
19478         use BUILT_IN_* constants.
19479         (gimple_fold_builtin): Call the function with fcode.
19481 2019-04-30  Martin Liska  <mliska@suse.cz>
19483         * config/i386/i386.c (ix86_builtin_reciprocal): Cast
19484         DECL_FUNCTION_CODE into ix86_builtins enum before
19485         the switch statement.
19487 2019-04-30  Jakub Jelinek  <jakub@redhat.com>
19489         PR tree-optimization/89475
19490         * tree-ssa-ccp.c (evaluate_stmt): Handle BUILT_IN_BSWAP{16,32,64}
19491         calls.
19493 2019-04-30  Martin Liska  <mliska@suse.cz>
19495         PR translation/90274
19496         * opts.c (print_filtered_help): Wrap string in _(...).
19498 2019-04-30  Bin Cheng  <bin.cheng@linux.alibaba.com>
19500         PR tree-optimization/90240
19501         Revert:
19502         2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
19504         PR tree-optimization/90078
19505         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19506         checks for infinite_cost overflow.
19508 2019-04-29  Jeff Law  <law@redhat.com>
19510         * passes.def: Move -Wrestrict pass after copy propagation.
19512 2019-04-29  Maya Rashish  <coypu@sdf.org>
19514         * config.gcc (default_gnu_indirect_function): Default to yes
19515         for arm*-*-netbsd*, i[34567]86-*-netbsd*, powerpc*-*-netbsd*,
19516         sparc*-*-netbsd*, x86_64-*-netbsd*.
19518 2019-04-29  Vladislav Ivanishin  <vlad@ispras.ru>
19520         * tree-ssa-uninit.c (is_pred_expr_subset_of): Correctly handle cases
19521         where cond2 is NE_EXPR.
19522         (is_value_included_in): Update comment.
19524 2019-04-29  Richard Biener  <rguenther@suse.de>
19526         PR tree-optimization/90278
19527         * tree-ssa-forwprop.c (pass_forwprop::execute): Transfer/clean
19528         EH on comparison simplification.
19530 2019-04-29  Jason Merrill  <jason@redhat.com>
19532         PR c++/82081 - tail call optimization breaks noexcept
19533         * tree-tailcall.c (find_tail_calls): Don't turn a call from a
19534         nothrow function to a might-throw function into a tail call.
19536 2019-04-29  Richard Sandiford  <richard.sandiford@arm.com>
19538         * tree-data-ref.h (data_dependence_relation::inner_loop): Delete.
19539         (DDR_INNER_LOOP): Likewise.
19540         * tree-data-ref.c (dump_data_dependence_relation): Update accordingly.
19541         (initialize_data_dependence_relation): Likewise.
19542         (insert_innermost_unit_dist_vector): Use 0 instead of DDR_INNER_LOOP.
19544 2019-04-29  Jakub Jelinek  <jakub@redhat.com>
19546         PR rtl-optimization/90257
19547         * cfgrtl.c (flow_active_insn_p): Return true for USE of a function
19548         return value.
19550         Revert the revert:
19551         2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
19553         PR target/90178
19554         Revert:
19555         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
19557         Revert the revert:
19558         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
19560         Revert:
19561         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
19563         * lra-spills.c (lra_final_code_change): Remove useless move insns.
19565 2019-04-29  Richard Biener  <rguenther@suse.de>
19567         * tree-ssa.c (insert_debug_temp_for_var_def): For {CLOBBER}
19568         rhs issue a reset.
19570 2019-04-27  Iain Buclaw  <ibuclaw@gdcproject.org>
19572         * config/netbsd-d.c: Include memmodel.h.  Remove unused tree.h,
19573         varasm.h, and netbsd-protos.h.
19575 2019-04-27  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19577         PR target/89261
19578         * config/i386/i386-protos.h (ix86_data_alignment): Change
19579         the second argument type to unsigned int.
19580         * config/i386/i386.c (ix86_data_alignment): Change "align"
19581         argument type to unsigned int.
19583 2019-04-27  Martin Liska  <mliska@suse.cz>
19585         PR middle-end/90258
19586         * opt-suggestions.c (option_proposer::build_option_suggestions):
19587         When get_valid_option_values returns empty values, add the
19588         misspelling candidate.
19590 2019-04-26  Jim Wilson  <jimw@sifive.com>
19592         * config/riscv/riscv-protos.h (riscv_move_integer): Add machine_mode
19593         parameter.
19594         * config/riscv/riscv.c (riscv_move_integer): New parameter orig_mode.
19595         Pass orig_mode to riscv_build_integer.
19596         (riscv_split_integer): Pass mode to riscv_move_integer.
19597         (riscv_legitimize_const_move): Likewise.
19598         (riscv_legitimize_move): For MEM dest and CONST_INT src case, new local
19599         promoted_mode.  Replace force_reg call with code to load constant into
19600         promoted reg and then subreg it for the store.
19601         * config/riscv/riscv.md (low<mode>+1): Pass <GPR:MODE>mode to
19602         riscv_move_integer.
19604 2018-04-26  Eugene Sharygin  <eush@ispras.ru>
19606         * gdbhooks.py: Fix UnicodeDecodeErrors when printing trees with
19607         corrupt codes.
19609 2019-04-26  Richard Sandiford  <richard.sandiford@arm.com>
19611         * tree.h (TYPE_VECTOR_SUBPARTS, SET_TYPE_VECTOR_SUBPARTS): Add
19612         commentary about the encoding of precision.
19614 2019-04-25  Andreas Tobler  <andreast@gcc.gnu.org>
19616         * config/i386/freebsd64.h: Add bits for 32-bit multilib support.
19617         * config/i386/t-freebsd64: New file.
19618         * config.gcc: Add the t-freebsd64 for multilib support.
19620 2019-04-25  UroÅ¡ Bizjak  <ubizjak@gmail.com>
19622         * doc/extend.texi (vector_size): Add missing comma after @xref.
19624 2019-04-25  Jakub Jelinek  <jakub@redhat.com>
19626         * BASE-VER: Set to 10.0.0.
19628 2019-04-25  Richard Biener  <rguenther@suse.de>
19630         PR middle-end/89765
19631         * gimplify.c (gimplify_expr): Avoid turning a lvalue
19632         VIEW_CONVERT_EXPR into one operating on an rvalue.
19634 2019-04-25  H.J. Lu  <hongjiu.lu@intel.com>
19636         PR target/89929
19637         * config/i386/i386.c (feature_priority): Moved to file scope.
19638         (processor_features): Likewise.
19639         (processor_model): Likewise.
19640         (_arch_names_table): Likewise.
19641         (arch_names_table): Likewise.
19642         (_feature_list): Removed.
19643         (feature_list): Likewise.
19644         (_isa_names_table): Moved to file scope.  Add priority.
19645         (isa_names_table): Likewise.
19646         (get_builtin_code_for_version): Replace feature_list with
19647         isa_names_table.  Update error message for P_ZERO priority.
19649 2019-04-25  Richard Biener  <rguenther@suse.de>
19651         * tree-pass.h (make_pass_phi_only_cprop): Remove.
19652         * timevar.def (TV_TREE_PHI_CPROP): Likewise.
19654 2019-04-24  Jeff Law  <law@redhat.com>
19656         PR tree-optimization/90037
19657         * Makefile.in (OBJS): Remove tree-ssa-phionlycprop.c
19658         * passes.def: Replace all instance of phi-only cprop with the
19659         lattice propagator.  Move propagation pass from after erroneous
19660         path isolation to before erroneous path isolation.
19661         * tree-ssa-phionlycprop.c: Remove.
19663 2019-04-24  Richard Biener  <rguenther@suse.de>
19665         PR middle-end/90213
19666         * gimple-fold.c (fold_const_aggregate_ref_1): Do multiplication
19667         by size and BITS_PER_UNIT on poly-wide-ints.
19669 2019-04-25  Richard Biener  <rguenther@suse.de>
19671         PR middle-end/90194
19672         * match.pd: Add pattern to simplify view-conversion of an
19673         empty constructor.
19675 2019-04-24  Clement Chigot  <clement.chigot@atos.net>
19677         * config/rs6000/aix71.h (SUBTARGET_OVERRIDE_OPTIONS): Disable
19678         OPTION_MASK_VSX and OPTION_MASK_ALTIVEC from rs6000_isa_flags
19679         for Go on 32 bit AIX.
19680         * config/rs6000/aix72.h: Likewise.
19682 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
19684         PR target/90193
19685         * rtl.c (classify_insn): Return JUMP_INSN for asm goto.
19686         * emit-rtl.c (try_split): Copy over REG_LABEL_TARGET.
19688 2019-04-24  Andreas Krebbel  <krebbel@linux.ibm.com>
19690         PR target/89952
19691         * config/s390/s390.c (s390_restore_gprs_from_fprs): Restore GPRs
19692         from FPRs in reverse order.  Generate REG_CFA_DEF_CFA note also
19693         for restored hard frame pointer.
19694         (s390_sched_dependencies_evaluation): Implement new target hook.
19695         (TARGET_SCHED_DEPENDENCIES_EVALUATION_HOOK): New macro definition.
19697 2019-04-24  Claudiu Zissulescu  <claziss@sysnopsys.com>
19699         * config/arc/arc-options.def: Fix typos and spelling mistakes.
19700         * config/arc/arc.c (arc_init): Cleanup warning message.
19701         (arc_override_options): Likewise.
19703 2019-04-24  Jakub Jelinek  <jakub@redhat.com>
19705         PR target/90187
19706         * config/i386/i386.c (ix86_expand_sse_fp_minmax): Force if_true into
19707         a register if both if_true and if_false are MEMs.
19709         PR tree-optimization/90208
19710         * tree-cfg.c (remove_bb): Move forced labels from removed bbs
19711         after labels of new_bb, not before them.
19713         PR tree-optimization/90211
19714         * tree-parloops.c (try_create_reduction_list): Ignore phi arguments
19715         which are not SSA_NAMEs.
19717 2018-04-23  Sudakshina Das  <sudi.das@arm.com>
19719         * config/aarch64/aarch64-linux.h (TARGET_ASM_FILE_END): Define for
19720         AArch64.
19721         (aarch64_file_end_indicate_exec_stack): Add gnu note section.
19723 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
19725         PR rtl-optimization/87979
19726         * modulo-sched.c (sms_schedule): Start ii value "mii" should
19727         not equal zero.
19729 2019-04-23  Roman Zhuykov  <zhroma@ispras.ru>
19731         PR rtl-optimization/84032
19732         * modulo-sched.c (ps_insn_find_column): Change condition so that
19733         branch will always be the last insn in a row inside partial
19734         schedule.
19736 2019-04-23  Richard Biener  <rguenther@suse.de>
19738         PR debug/90131
19739         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Add
19740         dest_single_pred_p argument.
19741         (remove_forwarder_block): Adjust.
19742         (remove_forwarder_block_with_phi): Likewise.
19744 2019-04-23  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
19745             Bernd Edlinger  <bernd.edlinger@hotmail.de>
19746             Jakub Jelinek  <jakub@redhat.com>
19748         PR target/89093
19749         * config/arm/arm.c (aapcs_vfp_is_call_or_return_candidate): Diagnose
19750         if used with general-regs-only.
19751         (arm_conditional_register_usage): Don't add non-general regs if
19752         general-regs-only.
19753         (arm_valid_target_attribute_rec): Handle general-regs-only.
19754         * config/arm/arm.h (TARGET_HARD_FLOAT): Return false if
19755         general-regs-only.
19756         (TARGET_HARD_FLOAT_SUB): Define.
19757         (TARGET_SOFT_FLOAT): Define as negation of TARGET_HARD_FLOAT_SUB.
19758         (TARGET_REALLY_IWMMXT): Add && !TARGET_GENERAL_REGS_ONLY.
19759         (TARGET_REALLY_IWMMXT2): Likewise.
19760         * config/arm/arm.opt: Add -mgeneral-regs-only.
19761         * doc/extend.texi: Document ARM general-regs-only target.
19762         * doc/invoke.texi: Document ARM -mgeneral-regs-only.
19764 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
19766         PR tree-optimization/90078
19767         * tree-ssa-loop-ivopts.c (comp_cost::operator +,-,+=,-+,/=,*=): Add
19768         checks for infinite_cost overflow.
19770 2019-04-23  Bin Cheng  <bin.cheng@linux.alibaba.com>
19772         PR tree-optimization/90021
19773         * tree-chrec.c (evolution_function_is_univariate_p): New parameter
19774         and check univariate against it.
19775         * tree-chrec.h (evolution_function_is_univariate_p): New parameter.
19776         * tree-data-ref.c (add_other_self_distances): Pass new argument.
19778 2019-04-21  H.J. Lu  <hongjiu.lu@intel.com>
19780         PR target/90178
19781         Revert:
19782         2018-11-21  Uros Bizjak  <ubizjak@gmail.com>
19784         Revert the revert:
19785         2013-10-26  Vladimir Makarov  <vmakarov@redhat.com>
19787         Revert:
19788         2013-10-25  Vladimir Makarov  <vmakarov@redhat.com>
19790         * lra-spills.c (lra_final_code_change): Remove useless move insns.
19792 2019-04-21  Iain Sandoe  <iain@sandoe.co.uk>
19794         * config/rs6000/rs6000.md (group_end_nop): Emit insn register
19795         names using operand format, rather than hard-wired.
19796         (speculation_barrier): Likewise.
19798 2019-04-19  Segher Boessenkool  <segher@kernel.crashing.org>
19800         PR tree-optimization/88055
19801         * tree-call-cdce.c (comparison_code_if_no_nans): New function.
19802         (gen_one_condition): Use it if !HONOR_NANS.
19804 2019-04-19  Jakub Jelinek  <jakub@redhat.com>
19806         PR middle-end/90139
19807         * tree-outof-ssa.c (get_temp_reg): If reg_mode is BLKmode, return
19808         assign_temp instead of gen_reg_rtx.
19810 2019-04-19  Christophe Lyon  <christophe.lyon@linaro.org>
19812         PR translation/90118
19813         * config/aarch64/aarch64.c (aarch64_override_options_internal):
19814         Add missing space before %<.
19816 2019-04-18  Peter Bergner  <bergner@linux.ibm.com>
19818         PR rtl-optimization/87871
19819         * ira-lives.c (make_object_dead): Don't add conflicts to
19820         TOTAL_CONFLICT_HARD_REGS for register ignore_reg_for_conflicts.
19822 2019-04-18  Martin Sebor  <msebor@redhat.com>
19824         PR middle-end/89797
19825         * tree.h (TYPE_VECTOR_SUBPARTS): Use HOST_WIDE_INT_1U.
19826         * config/aarch64/aarch64.c (aarch64_simd_vector_alignment): Avoid
19827         assuming type size fits in SHWI.
19829 2019-04-18  Jan Hubicka  <hubicka@ucw.cz>
19831         PR ipa/85051
19832         * ipa-inline.c (flatten_function): New parameter UPDATE.
19833         (ipa_inline, early_inliner): Use it.
19835 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
19837         * fold-const.c (int_const_binop): Return early on failure.
19839 2019-04-18  Richard Sandiford  <richard.sandiford@arm.com>
19841         PR middle-end/85164
19842         * combine.c (force_int_to_mode): Cast the argument rather than
19843         the result of known_alignment.
19844         * rtlanal.c (rtx_addr_can_trap_p_1): Use known_subrange_p.
19846 2019-04-18  Richard Biener  <rguenther@suse.de>
19848         PR debug/90131
19849         * tree-cfgcleanup.c (move_debug_stmts_from_forwarder): Split
19850         out from ...
19851         (remove_forwarder_block): ... here.
19852         (remove_forwarder_block_with_phi): Also move debug stmts here.
19854 2019-04-18  Jakub Jelinek  <jakub@redhat.com>
19856         PR translation/79183
19857         * gimple-ssa-sprintf.c (format_directive): Use inform_n instead of
19858         inform where appropriate.
19860 2019-04-18  Richard Biener  <rguenther@suse.de>
19862         * tree.c (get_qualified_type): Put found type variants at the
19863         head of the variant list.
19865 2018-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
19867         * config/rs6000/rs6000.c (rs6000_register_move_cost): Fix typo.
19869 2019-04-17  Hongtao Liu  <hongtao.liu@intel.com>
19871         PR target/90125
19872         * config/i386/avx512fintrin.h (_mm_maskz_fmadd_round_sd,
19873         _mm_maskz_fmadd_round_ss, _mm_maskz_fmsub_round_sd,
19874         _mm_maskz_fmsub_round_ss, _mm_maskz_fnmadd_round_sd,
19875         _mm_maskz_fnmadd_round_ss, _mm_maskz_fnmsub_round_sd,
19876         _mm_maskz_fnmsub_round_ss): Use _maskz builtin instead of _mask3.
19878 2019-04-17  Peter Bergner  <bergner@linux.ibm.com>
19880         * ira-conflicts.c (print_allocno_conflicts): Always print something,
19881         even for allocno's with no conflicts.
19882         (print_conflicts): Print an extra newline.
19884 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
19886         * auto-inc-dec.c (attempt_change): Set the alignment of the
19887         temporary memory to that of the original.
19889 2019-04-17  Joao Moreira  <jmoreira@suse.de>
19891         * targhooks.c (default_print_patchable_function_entry): Emit
19892         __patchable_function_entries section with writable flags to allow
19893         relocation resolution.
19895 2019-04-17  Jonny Grant  <jg@jguk.org>
19897         * collect2.c (main): Change gcc.gnu.org URL to HTTPS.
19899 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
19901         PR middle-end/90095
19902         * internal-fn.c (expand_mul_overflow): Don't set SUBREG_PROMOTED_VAR_P
19903         on lowpart SUBREGs.
19905 2019-04-17  Claudiu Zissulescu  <claziss@synopsys.com>
19907         * config/arc/arc.c (arc_init): Format diagnostic string.
19908         (arc_override_options): Likewise.
19909         (check_if_valid_regno_const): Likewise.
19910         (arc_reorg): Likewise.
19912 2019-04-17  Segher Boessenkool  <segher@kernel.crashing.org>
19914         PR target/17108
19915         * config/rs6000/rs6000.c (rs6000_split_multireg_move): Adjust pattern
19916         name.
19917         (rs6000_emit_allocate_stack_1): Simplify condition.  Adjust pattern
19918         name.
19919         * config/rs6000/rs6000.md (bits): Add entries for SF and DF.
19920         (*movdi_update1): Use Pmode.
19921         (movdi_<mode>_update): Fix argument to avoiding_indexed_address_p.
19922         (movdi_<mode>_update_stack): Rename to ...
19923         (movdi_update_stack): ... this.  Fix comment.  Change condition. Don't
19924         use Pmode.
19925         (*movsi_update1): Use Pmode.
19926         (*movsi_update2): Use Pmode.
19927         (movsi_update): Rename to ...
19928         (movsi_<mode>_update): ... this.  Use Pmode.
19929         (movsi_update_stack): Fix condition.
19930         (*movhi_update1): Use Pmode.  Fix argument to
19931         avoiding_indexed_address_p.
19932         (*movhi_update2): Ditto.
19933         (*movhi_update3): Ditto.
19934         (*movhi_update4): Ditto.
19935         (*movqi_update1): Ditto.
19936         (*movqi_update2): Ditto.
19937         (*movqi_update3): Ditto.
19938         (*movsf_update1, *movdf_update1): Merge, rename to...
19939         (*mov<mode>_update1): This.  Use Pmode.  Fix argument to
19940         avoiding_indexed_address_p.  Add "size" attribute.
19941         (*movsf_update2, *movdf_update2): Merge, rename to...
19942         (*mov<mode>_update2): This.  Ditto.
19943         (*movsf_update3): Use Pmode.  Fix argument to
19944         avoiding_indexed_address_p.
19945         (*movsf_update4): Ditto.
19946         (allocate_stack): Simplify condition.  Adjust pattern names.
19948 2019-04-17  Jakub Jelinek  <jakub@redhat.com>
19950         PR target/89093
19951         * config/arm/arm.c (arm_valid_target_attribute_rec): Don't skip
19952         whitespace at the start of target attribute string.
19954 2019-04-16  Pat Haugen  <pthaugen@us.ibm.com>
19956         PR target/84369
19957         * config/rs6000/power9.md: Add store forwarding bypass.
19959 2019-04-16  Alexandre Oliva  <aoliva@redhat.com>
19961         PR debug/89528
19962         * valtrack.c (dead_debug_insert_temp): Reset debug references
19963         to the return value of a call being removed.
19965 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19967         * config/arc/arc-protos.h (arc_register_move_cost): Remove.
19968         * config/arc/arc.c (arc_register_move_cost): Re-purpose it to
19969         implement target hook.
19970         (arc_memory_move_cost): New function.
19971         (TARGET_REGISTER_MOVE_COST): Define.
19972         (TARGET_MEMORY_MOVE_COST): Likewise.
19973         * config/arc/arc.h (REGISTER_MOVE_COST): Remove.
19974         (MEMORY_MOVE_COST): Likewise.
19976 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19978         * config/arc/arc.md (sibcall_insn): Use Rcd constraint.
19979         (sibcall_value_insn): Likewise.
19980         * config/arc/constraints.md (Rs5): Remove.
19982 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
19984         * config/arc/arc.c (arc_hard_regno_modes): Add two missing modes
19985         for last two fake registers.
19986         (arc_conditional_register_usage): Make sure fake frame and arg
19987         pointer regs are in general regs class.
19988         (FRAME_POINTER_MASK): Remove.
19989         (RETURN_ADDR_MASK): Remove.
19990         (arc_must_save_register): Use hard frame regnum.
19991         (frame_restore_reg): Use hard_frame_pointer_rtx.
19992         (arc_save_callee_saves): Likewise.
19993         (arc_restore_callee_saves): Likewise.
19994         (arc_save_callee_enter): Likewise.
19995         (arc_restore_callee_leave): Likewise.
19996         (arc_save_callee_milli): Likewise.
19997         (arc_eh_return_address_location): Likewise.
19998         (arc_check_multi): Use hard frame regnum.
19999         (arc_can_eliminate): Likewise.
20000         * config/arc/arc.h (FIXED_REGISTERS): Make FP register available
20001         for register allocator.
20002         (REG_CLASS_CONTENTS): Update GENERAL_REGS.
20003         (REGNO_OK_FOR_BASE_P): Consider FRAME_POINTER_REGNUM.
20004         (FRAME_POINTER_REGNUM): Change it to a fake register.
20005         (HARD_FRAME_POINTER_REGNUM): Defined.
20006         (ARG_POINTER_REGNUM): Change it to a new fake register.
20007         (ELIMINABLE_REGS): Update.
20008         (REGISTER_NAMES): Update names.
20009         * config/arc/arc.md (LP_START): Remove.
20010         (LP_END): Likewise.
20011         (shift_si3_loop): Update pattern.
20013 2019-04-16  Claudiu Zissulescu  <claziss@synopsys.com>
20015         * config/arc/arc.c (arc_expand_prologue): Emit blockage regardless
20016         to avoid delay slot scheduling.
20017         (arc_must_save_register): Don't save SP.
20018         * config/arc/arc.md (stack_tie): Remove.
20019         (UNSPEC_ARC_STKTIE): Likewise.
20021 2019-04-16  Kito Cheng  <kito.cheng@gmail.com>
20022             Shiva Chen  <shiva0217@gmail.com>
20024         * config/nds32/nds32-md-auxiliary.c (nds32_split_ashiftdi3): Fix wrong
20025         code gen with large shift amount.
20027 2019-04-16  Chung-Ju Wu  <jasonwucj@gmail.com>
20029         * config/nds32/nds32-pipelines-auxiliary.c (wext_odd_dep_p): Handle
20030         subreg.
20032 2019-04-16  Jakub Jelinek  <jakub@redhat.com>
20034         PR target/90096
20035         * config/i386/i386.c (ix86_target_string): Add ADD_ABI_P argument, only
20036         print -m64/-mx32/-m32 if it is true.
20037         (ix86_debug_options, ix86_function_specific_print): Pass true as
20038         ADD_ABI_P to ix86_target_string.
20039         (ix86_expand_builtin): Adjust ix86_target_string caller, pass true as
20040         ADD_ABI_P only if OPTION_MASK_ISA_64BIT is set in bisa and in that case
20041         or into it OPTION_MASK_ISA_ABI_64 or OPTION_MASK_ISA_ABI_X32.
20043         PR rtl-optimization/90082
20044         * dce.c (can_delete_call): New function.
20045         (deletable_insn_p, mark_insn): Use it.
20047         PR tree-optimization/90090
20048         * tree-ssa-math-opts.c (is_division_by): Ignore divisions that can
20049         throw internally.
20050         (is_division_by_square): Likewise.  Formatting fix.
20052 2019-04-16  Richard Biener  <rguenther@suse.de>
20054         PR tree-optimization/56049
20055         * tree-ssa-loop-im.c (mem_ref_hasher::equal): Elide alias-set
20056         equality check if alias-set zero will prevail.
20058 2019-04-15  Jeff Law  <law@redhat.com>
20060         * config/microblaze/microblaze.c (microblaze_expand_block_move): Treat
20061         size and alignment as unsigned.
20063 2019-04-15  Richard Biener  <rguenther@suse.de>
20065         PR debug/90074
20066         * tree-loop-distribution.c (destroy_loop): Preserve correct
20067         debug info.
20069 2019-04-15  Richard Biener  <rguenther@suse.de>
20071         PR tree-optimization/90071
20072         * tree-ssa-reassoc.c (init_range_entry): Do not pick up
20073         abnormal operands from def stmts.
20075 2019-04-15  Segher Boessenkool  <segher@kernel.crashing.org>
20077         PR rtl-optimization/89794
20078         * combine.c (count_auto_inc): New function.
20079         (try_combine): Count how many auto_inc expressions there were in the
20080         original instructions.  Ensure we have the same number in the new
20081         instructions.  Remove the code that tried to ensure auto_inc side
20082         effects on i1 and i0 are not lost.
20084 2019-04-15  Richard Biener  <rguenther@suse.de>
20086         PR ipa/88936
20087         * tree.h (auto_var_p): Declare.
20088         * tree.c (auto_var_p): New function, split out from ...
20089         (auto_var_in_fn_p): ... here.
20090         * tree-ssa-structalias.c (struct variable_info): Add shadow_var_uid
20091         member.
20092         (new_var_info): Initialize it.
20093         (set_uids_in_ptset): Also set the shadow variable uid if required.
20094         (ipa_pta_execute): Postprocess points-to solutions assigning
20095         shadow variable uids for locals that may reach their containing
20096         function recursively.
20097         * tree-ssa-ccp.c (fold_builtin_alloca_with_align): Do not
20098         assert but instead check whether the points-to solution is
20099         a singleton.
20101 2019-04-15  Martin Jambor  <mjambor@suse.cz>
20103         PR ipa/pr89693
20104         * cgraph.c (clone_of_p): Loop over clone chain for each step in
20105         the thunk chain.
20107 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
20109         * config.gcc (nds32*-*-linux*): Set gcc_cv_initfini_array to yes.
20111 2019-04-15  Monk Chiang  <sh.chiang04@gmail.com>
20112             Kito Cheng  <kito.cheng@gmail.com>
20113             Shiva Chen  <shiva0217@gmail.com>
20115         * config/nds32/nds32-md-auxiliary.c
20116         (nds32_legitimize_pic_address): Use new PIC pattern.
20117         (nds32_legitimize_tls_address): Use new TLS pattern.
20118         (nds32_output_symrel): New.
20119         * config/nds32/nds32-protos.h (nds32_output_symrel): Declare.
20120         (nds32_alloc_relax_group_id): Ditto.
20121         * config/nds32/nds32-relax-opt.c (nds32_alloc_relax_group_id): New.
20122         (nds32_group_insns): Use nds32_alloc_relax_group_id instead of use
20123         relax_group_id.
20124         (nds32_group_tls_insn): Ditto.
20125         (nds32_group_float_insns): Ditto.
20126         * config/nds32/nds32.md (tls_le): New.
20127         (sym_got): Ditto.
20129 2019-04-15  Chung-Ju Wu  <jasonwucj@gmail.com>
20131         * configure: Add nds32 target for dwarf2 debug_line checking.
20132         * configure.ac: Regenerated.
20134 2019-04-14  Jan Hubicka  <hubicka@ucw.cz>
20136         PR lto/89358
20137         * ipa-devirt.c (skip_in_fields_list_p): New.
20138         (odr_types_equivalent_p): Use it.
20140 2019-04-13  Jakub Jelinek  <jakub@redhat.com>
20142         PR target/89093
20143         * config/arm/arm.c (arm_valid_target_attribute_rec): Use strcmp
20144         instead of strncmp when checking for thumb and arm.  Formatting fixes.
20146 2019-04-12  Iain Buclaw  <ibuclaw@gdcproject.org>
20148         * doc/install.texi: Document --with-target-system-zlib.
20150 2019-04-12  Martin Sebor  <msebor@redhat.com>
20152         PR c/88383
20153         PR c/89288
20154         PR c/89798
20155         PR c/89797
20156         * targhooks.c (default_vector_alignment): Avoid assuming
20157         argument fits in SHWI.
20158         * tree.h (TYPE_VECTOR_SUBPARTS): Avoid sign overflow in
20159         a shift expression.
20160         * doc/extend.texi (__builtin_has_attribute): Add a clarifying note.
20162 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
20164         PR rtl-optimization/89965
20165         * dce.c: Include rtl-iter.h.
20166         (struct check_argument_load_data): New type.
20167         (check_argument_load): New function.
20168         (find_call_stack_args): Check for loads from stack slots still tracked
20169         in sp_bytes and punt if any is found.
20171         * config/mips/loongson-mmiintrin.h: Fix up #error message.
20173 2019-04-12  Jan Hubicka  <hubicka@ucw.cz>
20175         * params.def (PARAM_MAX_LTO_STREAMING_PARALLELISM): New parameter.
20176         * doc/invoke.texi (max-lto-streaming-paralellism): New --param.
20178 2019-04-12  Martin Liska  <mliska@suse.cz>
20180         PR middle-end/89970
20181         * multiple_target.c (create_dispatcher_calls): Wrap ifunc
20182         in error message.
20183         (separate_attrs): Handle multiple 'default's.
20184         (expand_target_clones): Rework error handling code.
20186 2019-04-12  Kelvin Nilsen  <kelvin@gcc.gnu.org>
20188         PR target/87532
20189         * config/rs6000/rs6000.c (rs6000_split_vec_extract_var): Use inner
20190         mode of vector rather than mode of destination for move instruction.
20191         * config/rs6000/vsx.md (*vsx_extract_<mode>_<VS_scalar>mode_var):
20192         Use QI inner mode with V16QI vector mode.
20194 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
20196         PR target/52726
20197         * config/tilepro/tilepro.c (tilepro_print_operand): Use just
20198         "invalid %%t operand" in output_operand_lossage message.
20200 2019-04-12  Andreas Krebbel  <krebbel@linux.ibm.com>
20202         * config/s390/predicates.md (permute_pattern_operand): New
20203         predicate.
20204         * config/s390/vector.md ("*vec_splats_bswap_vec<mode>"): Add USE
20205         operand for the permute pattern.
20206         ("*vec_perm<mode>"): New insn definition.
20207         ("bswap<mode>"): Generate the permute pattern operand in the
20208         expander and perform the operand reloads for pre arch13 level
20209         already.
20210         ("*bswap<mode>_emu"): Rename to ...
20211         ("*bswap<mode>"): ... this. And make the splitter vxe2 only.
20212         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>"):
20213         Add the USE operand for the permute pattern.
20214         ("*vec_set_bswap_vec<mode>"): Likewise.
20216 2019-04-12  Jakub Jelinek  <jakub@redhat.com>
20218         PR c/89946
20219         * varasm.c (assemble_start_function): Don't use tree_fits_uhwi_p
20220         and gcc_unreachable if it fails, just call tree_to_uhwi which
20221         verifies that too.  Test TREE_CHAIN instead of list_length > 1.
20222         Start warning message with a lower-case letter.  Formatting fixes.
20224         PR rtl-optimization/90026
20225         * cfgcleanup.c (try_optimize_cfg): When removing empty bb with no
20226         successors, look for BARRIERs inside of the whole BB_FOOTER chain
20227         rather than just at the start of it.  If e->src BB_FOOTER is not NULL
20228         in cfglayout mode, use emit_barrier_after_bb.
20230 2018-04-11  Steve Ellcey  <sellcey@marvell.com>
20232         PR rtl-optimization/87763
20233         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>4_noshift_alt):
20234         New Instruction.
20236 2019-04-11  Tom de Vries  <tdevries@suse.de>
20238         * doc/extend.texi (@node Statement Exprs): Note variable shadowing at
20239         max macro using statement expression.
20241 2019-04-11  David Edelsohn  <dje.gcc@gmail.com>
20243         * xcoffout.h (xcoff_private_rodata_section_name): Declare.
20244         * xcoffout.c (xcoff_private_rodata_section_name): Define.
20245         * config/rs6000/rs6000.c (rs6000_xcoff_asm_init_sections): Create
20246         read_only_private_data_section using xcoff_private_rodata_section_name.
20247         (rs6000_xcoff_file_start): Generate xcoff_private_rodata_section_name.
20249 2019-04-11  Christophe Lyon  <christophe.lyon@linaro.org>
20251         PR target/90016
20252         * config/aarch64/aarch64.opt (msve-vector-bits): Add missing final '.'.
20254 2019-04-11  Jakub Jelinek  <jakub@redhat.com>
20256         PR rtl-optimization/89965
20257         * dce.c (sp_based_mem_offset): New function.
20258         (find_call_stack_args): Use sp_based_mem_offset.
20260 2019-04-11  Jonathan Wakely  <jwakely@redhat.com>
20262         * doc/invoke.texi (Optimize Options): Clarify -flive-patching docs.
20264 2019-04-11  Richard Biener  <rguenther@suse.de>
20266         PR tree-optimization/90020
20267         * tree-ssa-sccvn.c (vn_reference_may_trap): New function.
20268         * tree-ssa-sccvn.h (vn_reference_may_trap): Declare.
20269         * tree-ssa-pre.c (compute_avail): Use it to not put
20270         possibly trapping references after a call that might not
20271         return into EXP_GEN.
20272         * gcse.c (compute_hash_table_work): Do not elide
20273         marking a block containing a call if the call might not
20274         return.
20276 2019-04-11  Richard Biener  <rguenther@suse.de>
20278         PR tree-optimization/90018
20279         * tree-vect-data-refs.c (vect_preserves_scalar_order_p):
20280         Test both SLP and interleaving variants.
20282 2019-04-11  Robin Dapp  <rdapp@linux.ibm.com>
20284         * config/s390/8561.md: New file.
20285         * config/s390/driver-native.c (s390_host_detect_local_cpu):
20286         Add arch13 cpu model.
20287         * config/s390/s390-opts.h (enum processor_type): Likewise.
20288         * config/s390/s390.c (s390_get_sched_attrmask): Add arch13.
20289         (s390_get_unit_mask): Likewise.
20290         (s390_is_fpd): Likewise.
20291         (s390_is_fxd): Likewise.
20292         * config/s390/s390.h (s390_tune_attr): Likewise.
20293         * config/s390/s390.md: Include arch13 pipeline description.
20294         * config/s390/s390.opt: Add arch13.
20296 2018-04-10  Steve Ellcey  <sellcey@marvell.com>
20298         PR rtl-optimization/87763
20299         * config/aarch64/aarch64-protos.h (aarch64_masks_and_shift_for_bfi_p):
20300         New prototype.
20301         * config/aarch64/aarch64.c (aarch64_masks_and_shift_for_bfi_p):
20302         New function.
20303         * config/aarch64/aarch64.md (*aarch64_bfi<GPI:mode>5_shift):
20304         New instruction.
20305         (*aarch64_bfi<GPI:mode>5_shift_alt): Ditto.
20306         (*aarch64_bfi<GPI:mode>4_noand): Ditto.
20307         (*aarch64_bfi<GPI:mode>4_noand_alt): Ditto.
20308         (*aarch64_bfi<GPI:mode>4_noshift): Ditto.
20310 2019-04-10  Jonathan Wakely  <jwakely@redhat.com>
20312         * doc/invoke.texi (Optimize Options): Change "Nevertheless" to
20313         "Although" in -fipa-icf documentation.
20315         * doc/invoke.texi (Debugging Options): Explicitly state the semantics
20316         of using multiple -g options.
20318 2019-04-10  Martin Liska  <mliska@suse.cz>
20320         PR gcov-profile/89959
20321         * doc/gcov.texi: Make documentation of -x option
20322         more precise.
20324 2019-04-10  Richard Biener  <rguenther@suse.de>
20326         * tree-vectorizer.h (_stmt_vec_info): Remove same_dr_stmt
20327         member.
20328         (DR_GROUP_SAME_DR_STMT): Remove.
20329         * tree-vect-stmts.c (vectorizable_load): Remove unreachable code.
20330         * tree-vect-data-refs.c (vect_analyze_group_access_1): Likewise,
20331         replace with assert.
20332         (vect_analyze_data_ref_accesses): Fix INTEGER_CST comparison.
20333         (vect_record_grouped_load_vectors): Remove unreachable code.
20335 2019-04-10  Richard Earnshaw  <rearnsha@arm.com>
20337         PR target/90016
20338         * config/aarch64/aarch64.opt (msve-vector-bits): Remove redundant and
20339         obsolete reference to N.
20341 2019-04-10  Jakub Jelinek  <jakub@redhat.com>
20343         PR middle-end/90025
20344         * expr.c (store_expr): Set properly size on the MEM passed to
20345         clear_storage.
20347         PR c++/90010
20348         * gimple-ssa-sprintf.c (target_to_host): Fix handling of targstr
20349         with strlen in between hostsz-3 and hostsz-1 inclusive when no
20350         translation is needed, and when translation is needed, only append
20351         ... if the string length is hostsz or more bytes long.  Avoid using
20352         strncpy or strcat.
20354 2019-04-09  Matthew Malcomson  <matthew.malcomson@arm.com>
20356         PR target/90024
20357         * config/arm/arm.c (neon_valid_immediate): Disallow VOIDmode parameter.
20358         * config/arm/constraints.md (Dm, DN, Dn): Split previous Dn constraint
20359         into three.
20360         * config/arm/neon.md (*neon_mov<mode>): Account for TImode and DImode
20361         differences directly.
20362         (*smax<mode>3_neon, vashl<mode>3, vashr<mode>3_imm): Use Dm constraint.
20364 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
20366         PR translation/90011
20367         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
20368         from diagnostics.
20369         * config/arm/freebsd.h (LINK_SPEC): Remove trailing space from -p
20370         diagnostics.
20371         * config/riscv/freebsd.h (LINK_SPEC): Likewise.
20372         * config/aarch64/aarch64-freebsd.h (FBSD_TARGET_LINK_SPEC): Likewise.
20373         * config/darwin.h (DRIVER_SELF_SPECS, ASM_FINAL_SPEC): Remove
20374         trailing space from -gsplit-dwarf diagnostics.
20376         PR tree-optimization/89998
20377         * gimple-ssa-sprintf.c (try_substitute_return_value): Use lhs type
20378         instead of integer_type_node if possible, don't add ranges if return
20379         type is not compatible with int.
20380         * gimple-fold.c (gimple_fold_builtin_sprintf,
20381         gimple_fold_builtin_snprintf): Use lhs type instead of hardcoded
20382         integer_type_node.
20384 2019-04-09  Martin Liska  <mliska@suse.cz>
20386         * Makefile.in: Use GENERATOR_CFLAGS for all generators.
20387         * doc/install.texi: Document the new config.
20389 2019-04-09  Richard Sandiford  <richard.sandiford@arm.com>
20391         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Always
20392         use gimple_expr_type for load and store calls.  Skip over the
20393         condition argument in a conditional internal function.
20394         Protect use of TREE_INT_CST_LOW.
20396 2019-04-09  Jakub Jelinek  <jakub@redhat.com>
20398         PR target/90015
20399         * config/riscv/riscv.c (riscv_get_interrupt_type): Fix comment typo.
20400         (riscv_merge_decl_attributes): Fix typo in diagnostics.  Remove
20401         trailing period from it too.
20403 2019-04-08  wu yuan  <wuyuan5@huawei.com>
20405         * config/aarch64/aarch64-cores.def (tsv1100): Change scheduling model.
20406         * config/aarch64/aarch64.md : Add "tsv110.md"
20407         * config/aarch64/tsv110.md: New file.
20409 2019-04-08  Richard Biener  <rguenther@suse.de>
20411         PR tree-optimization/90006
20412         * tree-vect-data-refs.c (vect_get_smallest_scalar_type): Handle
20413         calls like lrint.
20415 2019-04-08  Andrea Corallo  <andrea.corallo@arm.com>
20417         PR target/83033
20418         * config/aarch64/cortex-a57-fma-steering.c (fma_forest): Prohibit copy
20419         construction.
20420         (fma_root_node): Likewise.
20421         (func_fma_steering): Likewise.
20423 2019-04-08  Jakub Jelinek  <jakub@redhat.com>
20425         PR rtl-optimization/89865
20426         * config/i386/i386.md: Add peepholes for z = x; x ^= y; x != z.
20428         PR rtl-optimization/89865
20429         * config/i386/i386.md
20430         (SWI12 peephole for mem {+,-,&,|,^}= x; mem != 0): Fix up operand
20431         numbers not to clash with the additional operands[4].
20432         (peepholes for mem {+,-,&,|,^}= x; mem != 0): New peephole2s
20433         with extra register copy in the middle.
20435 2019-04-08  Martin Liska  <mliska@suse.cz>
20437         PR gcov-profile/89961
20438         * doc/gcov.texi: Document data_file.
20439         * gcov.c (generate_results): Add data_info into JSON output.
20441 2019-04-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
20443         PR tree-optimization/89725
20444         * tree-chrec.c (chrec_contains_symbols): New parameter.  Handle outer
20445         loop's chrec as invariant symbol.
20446         * tree-chrec.h (chrec_contains_symbols): New parameter.
20447         * tree-data-ref.c (analyze_miv_subscript): Pass new argument.
20448         (build_classic_dist_vector_1, add_other_self_distances): Bypass access
20449         function of loops not in DDR's loop_nest.
20450         * tree-data-ref.h (index_in_loop_nest): Add unreachable check.
20452 2019-04-08  Chenghua Xu  <paul.hua.gm@gmail.com>
20454         PR target/89623
20455         * config/mips/mips.opt (LOONGSON_EXT2): Use Var instead of
20456         Mask.
20458 2019-04-07  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20460         PR target/89945
20461         * config/i386/i386.md (anddi_1 to andsi_1_zext splitter):
20462         Avoid calling gen_lowpart with SYMBOL_REF and LABEL_REF operand.
20464 2019-04-05  Joern Rennecke  <joern.rennecke@embecosm.com>
20466         * sched-deps.c (sched_macro_fuse_insns): Check return value of
20467         targetm.fixed_condition_code_regs.
20469 2019-04-05  Richard Biener  <rguenther@suse.de>
20471         PR debug/89892
20472         PR debug/89905
20473         * tree-cfgcleanup.c (remove_forwarder_block): Always move
20474         debug bind stmts but reset them if they are not valid at the
20475         destination.
20477 2019-04-05  Martin Liska  <mliska@suse.cz>
20479         PR translation/89936
20480         * collect-utils.c (collect_execute): Use %< and %>, or %qs in
20481         order to wrap keywords or arguments.
20482         * collect2.c (main): Likewise.
20483         (scan_prog_file): Likewise.
20484         (scan_libraries): Likewise.
20485         * common/config/riscv/riscv-common.c
20486         (riscv_subset_list::parsing_subset_version): Likewise.
20487         (riscv_subset_list::parse_std_ext): Likewise.
20488         * config/aarch64/aarch64.c (aarch64_override_options_internal):
20489         Likewise.
20490         * config/arm/arm.c (arm_option_override): Likewise.
20491         * config/cris/cris.c (cris_print_operand): Likewise.
20492         * config/darwin-c.c (darwin_pragma_options): Likewise.
20493         (darwin_pragma_unused): Likewise.
20494         (darwin_pragma_ms_struct): Likewise.
20495         * config/ft32/ft32.c (ft32_print_operand): Likewise.
20496         * config/i386/i386.c (print_reg): Likewise.
20497         (ix86_print_operand): Likewise.
20498         * config/i386/xm-djgpp.h: Likewise.
20499         * config/iq2000/iq2000.c (iq2000_print_operand): Likewise.
20500         * config/m32c/m32c.c (m32c_option_override): Likewise.
20501         * config/msp430/msp430.c (msp430_option_override): Likewise.
20502         * config/nds32/nds32.c (nds32_option_override): Likewise.
20503         * config/nvptx/mkoffload.c (main): Likewise.
20504         * config/rx/rx.c (rx_print_operand): Likewise.
20505         (valid_psw_flag): Likewise.
20506         * config/vms/vms-c.c (vms_pragma_member_alignment): Likewise.
20507         (vms_pragma_nomember_alignment): Likewise.
20508         (vms_pragma_extern_model): Likewise.
20509         * lto-wrapper.c (compile_offload_image): Likewise.
20510         * omp-offload.c (oacc_parse_default_dims): Likewise.
20511         * symtab.c (symtab_node::verify_base): Likewise.
20512         * tlink.c (recompile_files): Likewise.
20513         (start_tweaking): Likewise.
20514         * tree-profile.c (parse_profile_filter): Likewise.
20516 2019-04-05  Richard Sandiford  <richard.sandiford@arm.com>
20518         PR tree-optimization/89956
20519         * tree-ssa-math-opts.c (convert_mult_to_fma): Protect against
20520         multiple negates of the same value.
20522 2019-04-04  Martin Sebor  <msebor@redhat.com>
20524         PR middle-end/89957
20525         PR middle-end/89911
20526         * builtins.c (expand_builtin_strnlen): Make sure wi::ltu_p operands
20527         have the same precision since the function crashes otherwise.
20528         * calls.c (maybe_warn_nonstring_arg): Avoid assuming strnlen() call
20529         has non-zero arguments.
20531 2019-04-04  Martin Sebor  <msebor@redhat.com>
20533         PR middle-end/89934
20534         * gimple-ssa-warn-restrict.c (builtin_access::builtin_access): Bail
20535         out if the number of arguments is less than expected.
20537 2019-04-04  Jeff Law  <law@redhat.com>
20539         PR rtl-optimization/89399
20540         * ree.c (combine_set_extension): Use single_set rather than
20541         digging into PATTERN for items on the candidate list.
20542         (combine_reaching_defs): Likewise.
20544 2019-04-04  Richard Sandiford  <richard.sandiford@arm.com>
20546         PR rtl-optimization/46590
20547         * loop-invariant.c (find_defs): Move df_remove_problem and
20548         df_process_deferred_rescans to move_invariants.
20549         Move df_live_add_problem and df_live_set_all_dirty calls
20550         to move_invariants.
20551         (move_invariants): Likewise.
20552         (move_loop_invariants): Likewise, making the df_live calls
20553         conditional on -O.  Remove the problem again if we added it
20554         locally.
20556 2019-04-03  qing zhao  <qing.zhao@oracle.com>
20558         PR tree-optimization/89730
20559         * ipa-inline.c (can_inline_edge_p): Delete the checking for
20560         -flive-patching=inline-only-static.
20561         (can_inline_edge_by_limits_p): Add the checking for
20562         -flive-patching=inline-only-static and grant always_inline
20563         even when -flive-patching=inline-only-static is specified.
20565 2019-04-03  Jeff Law  <law@redhat.com>
20567         PR rtl-optimization/81025
20568         * reorg.c (skip_consecutive_labels): Do not skip past a BARRIER.
20570 2019-04-03  Richard Biener  <rguenther@suse.de>
20572         PR tree-optimization/84101
20573         * tree-vect-stmts.c: Include explow.h for hard_function_value,
20574         regs.h for hard_regno_nregs.
20575         (cfun_returns): New helper.
20576         (vect_model_store_cost): When vectorizing a store to a decl
20577         we return and the function ABI returns in a multi-reg location
20578         account for the possible spilling that will happen.
20580 2019-04-03  Andreas Krebbel  <krebbel@linux.ibm.com>
20582         * config/s390/s390.c (s390_legitimate_address_p): Reject long
20583         displacement addresses for vector mode operands.
20585 2019-04-03  Claudiu Zissulescu  <claziss@synopsys.com>
20587         * config/arc/arc.c (GMASK_LEN): Define.
20588         (arc_restore_callee_saves): Restore first blink when
20589         !optimize_size.
20591 2019-04-03  Sudakshina Das  <sudi.das@arm.com>
20593         * doc/extend.texi: Add deprecated comment on sign-return-address
20594         function attribute and add mbranch-protection.
20595         * doc/invoke.texi: Add bti to the options for mbranch-protection.
20597 2019-04-03  Richard Biener  <rguenther@suse.de>
20599         PR lto/89896
20600         * lto-wrapper.c (run_gcc): Avoid implicit rules making
20601         the all target phony.
20603 2019-04-02  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20605         PR target/89902
20606         PR target/89903
20607         * config/i386/i386.c (dimode_scalar_to_vector_candidate_p):
20608         Return false for variable DImode shifts.
20609         (dimode_scalar_chain::compute_convert_gain): Do not handle
20610         register count operand in variable DImode shifts.
20611         (dimode_scalar_chain::make_vector_copies): Remove support to copy
20612         count argument of a variable shift instruction to a vector register.
20613         (dimode_scalar_chain::convert_reg): Remove support to convert
20614         count argument of a variable shift instruction.
20616 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
20618         PR rtl-optimization/84206
20619         * sel-sched-ir.h (get_all_loop_exits): Avoid the outer loop when
20620         iterating over loop headers.
20622 2019-04-02  Andrey Belevantsev  <abel@ispras.ru>
20624         PR rtl-optimization/85876
20625         * sel-sched.c (code_motion_path_driver): Avoid unwinding first_insn
20626         beyond the original fence.
20628 2019-04-02  Ulrich Weigand  <uweigand@de.ibm.com>
20630         * config.gcc: Mark spu* targets as deprecated/obsolete.
20632 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20634         * config/s390/s390-builtin-types.def: New builtin function type
20635         definitions. Remove unused types.
20636         * config/s390/s390-builtins.def (s390_vcdgb, s390_vcdlgb)
20637         (s390_vcgdb, s390_vclgdb): Remove low-level builtin definitions.
20638         (s390_vec_float, s390_vec_signed, s390_vec_unsigned): New
20639         overloaded builtins.
20640         (s390_vcefb, s390_vcdgb, s390_vcelfb, s390_vcdlgb, s390_vcfeb)
20641         (s390_vcgdb, s390_vclfeb, s390_vclgdb): New low-level builtins.
20642         * config/s390/vecintrin.h (vec_float): New builtin macro definition.
20643         (vec_double, vec_signed, vec_unsigned): Define to use the new
20644         overloaded builtins.
20645         * config/s390/vx-builtins.md ("vec_double_s64", "vec_double_u64"):
20646         Remove expanders.
20648 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20650         * config/s390/s390-builtin-types.def: New builtin function type
20651         definitions.
20652         * config/s390/s390-builtins.def (s390_vec_search_string_cc)
20653         (s390_vec_search_string_until_zero_cc): New overloaded builtins.
20654         (s390_vstrsb, s390_vstrsh, s390_vstrsf, s390_vstrszb)
20655         (s390_vstrszh, s390_vstrszf): New low-level builtins.
20656         * config/s390/s390.md (UNSPEC_VEC_VSTRS, UNSPEC_VEC_VSTRSCC): New
20657         constant definitions.
20658         * config/s390/vecintrin.h (vec_search_string_cc)
20659         (vec_search_string_until_zero_cc): New builtin name definitions.
20660         * config/s390/vx-builtins.md ("vstrs<mode>", "vstrsz<mode>"): New
20661         expanders.
20662         ("vec_vstrs<mode>"): New insn definition.
20664 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20666         * config/s390/s390-builtin-types.def: Add new builtin function
20667         types.
20668         * config/s390/s390-builtins.def (s390_vec_sldb, s390_vec_srdb):
20669         New overloaded builtins.
20670         (s390_vec_sldb, s390_vec_srdb): New low-level builtins.  and
20671         s390_vsrd.
20672         * config/s390/s390.md (UNSPEC_VEC_SLDB): Rename to ...
20673         (UNSPEC_VEC_SLDBYTE): ... this.
20674         (UNSPEC_VEC_SLDBIT, UNSPEC_VEC_SRDBIT): New constant definitions.
20675         * config/s390/vecintrin.h (vec_sldb, vec_srdb): New builtin name
20676         definitions.
20677         * config/s390/vx-builtins.md ("vec_sld<mode>", "vec_sldw<mode>"):
20678         Rename UNSPEC_VEC_SLDB to UNSPEC_VEC_SLDBYTE.
20679         ("vec_sldb<mode>", "vec_srdb<mode>"): New insn definitions.
20681 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20683         ("*vec_splats_bswap_vec<mode>", "*vec_splats_bswap_elem<mode>"):
20684         New insn definition.
20685         * config/s390/vx-builtins.md (V_HW_HSD): Move to ...
20686         * config/s390/vector.md (V_HW_HSD): ... here.
20688 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20690         * config/s390/vecintrin.h: Map vec_vster low-level builtins to vec_vler.
20691         * config/s390/vx-builtins.md ("*vec_insert_and_zero_bswap<mode>")
20692         ("*vec_set_bswap_elem<mode>", "*vec_set_bswap_vec<mode>")
20693         ("*vec_extract_bswap_vec<mode>", "*vec_extract_bswap_elem<mode>"):
20694         New insn definitions.
20696 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20698         * config/s390/s390-builtin-types.def: Add new builtin function type.
20699         * config/s390/s390-builtins.def: Add overloaded builtin
20700         s390_vec_reve and low-level builtins for s390_vler and s390_vster.
20701         * config/s390/s390.md (UNSPEC_VEC_ELTSWAP): New constant definition.
20702         * config/s390/vecintrin.h (vec_reve): New builtin name definition.
20703         * config/s390/vx-builtins.md (V_HW_HSD): New mode iterator.
20704         ("eltswap<mode>"): New expander.
20705         ("*eltswapv16qi", "*eltswap<mode>", "*eltswap<mode>_emu"): New
20706         insn definitions.
20708 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20710         * config/s390/s390-builtin-types.def: Add new builtin function types.
20711         * config/s390/s390-builtins.def: Add overloaded builtin
20712         s390_vec_revb. Add low-level builtins for vlbr and vstbr
20713         instructions.
20714         * config/s390/vecintrin.h (vec_revb): New builtin name definition.
20715         * config/s390/vector.md (VT_HW_HSDT): New mode iterator.
20716         ("bswap<mode>"): New expander.
20717         ("*bswap<mode>", "*bswap<mode>_emu"): New insn definitions.
20719 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20721         * config/s390/s390-builtins.def (B_VXE2): New builtin flag definition.
20722         * config/s390/s390-c.c (s390_cpu_cpp_builtins_internal): Increment
20723         vector builtin version number in __VEC__.
20725 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20727         * config/s390/s390.md (VX_CONV_BFP, VX_CONV_INT): New mode
20728         iterators.
20729         (SFSI): New mode attribute.
20730         ("*fixuns_truncdfdi2_vx", "*fix_truncdfdi2_bfp_z13")
20731         ("*floatunsdidf2_z13", ): Add support for 32 bit conversions and
20732         rename to ...
20733         ("*fixuns_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_z13")
20734         ("*fix_trunc<VX_CONV_BFP:mode><VX_CONV_INT:mode>2_bfp_z13")
20735         ("*floatuns<VX_CONV_INT:mode><VX_CONV_BFP:mode>2_z13"): ... these.
20736         ("floatsi<mode>2"): Add wcefb instruction.
20738 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20740         * config/s390/s390.md ("xde"): Extend mode attribute to vector types.
20741         * config/s390/vector.md (VX_VEC_CONV_BFP, VX_VEC_CONV_INT): New
20742         mode iterators.
20743         ("floatv2div2df2", "floatunsv2div2df2", "fix_truncv2dfv2di2")
20744         ("fixuns_truncv2dfv2di2"): Enhance with mode iterator to also
20745         support 32 bit fp-int conversions. Rename to ...
20746         ("float<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20747         ("floatuns<VX_VEC_CONV_INT:mode><VX_VEC_CONV_BFP:mode>2")
20748         ("fix_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2")
20749         ("fixuns_trunc<VX_VEC_CONV_BFP:mode><VX_VEC_CONV_INT:mode>2"):
20750         ... to these.
20752 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20754         * config/s390/s390.c (s390_rtx_costs): Do not add extra costs for
20755         if-then-else constructs if we can use the select instruction.
20756         * config/s390/s390.md ("*mov<mode>cc"): Add the new instructions.
20758 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20760         * config/s390/s390.md ("*popcountdi_arch13_cc")
20761         ("*popcountdi_arch13_cconly", "*popcountdi_arch13"): New insn
20762         definition.
20763         ("*popcount<mode>", "popcountdi2", "popcountsi2", "popcounthi2"):
20764         Append _z196 to make it ...
20765         ("*popcount<mode>_z196", "popcountdi2_z196", "popcountsi2_z196")
20766         ("popcounthi2_z196"): ... this.
20767         ("popcountdi2_z196"): Remove TARGET_64BIT from the insn condition.
20768         ("popcountdi2", "popcountsi2", "popcounthi2"): New expanders.
20770 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20772         * config/s390/s390.c (s390_canonicalize_comparison): Convert
20773         certain compares for arch13 in order to make use of the condition
20774         code result produced by the new instructions.
20775         (s390_rtx_costs): Adjust the costs for nnrk, nngrk, nork, nogrk,
20776         nxrk, and nxgrk instruction patterns.
20777         * config/s390/s390.md (ANDOR, bitops_name, inv_bitops_name)
20778         (inv_no): Add new code iterator together with some attributes.
20779         ("*andc_split_<mode>"): Disable splitter for arch13.
20780         ("*<ANDOR:bitops_name>c<GPR:mode>_cc")
20781         ("*<ANDOR:bitops_name>c<GPR:mode>_cconly")
20782         ("*<ANDOR:bitops_name>c<GPR:mode>")
20783         ("*n<ANDOR:inv_bitops_name><GPR:mode>_cc")
20784         ("*n<ANDOR:inv_bitops_name><mode>_cconly")
20785         ("*n<ANDOR:inv_bitops_name><mode>", "*nxor<GPR:mode>_cc")
20786         ("*nxor<mode>_cconly", "*nxor<mode>"): New insn definitions.
20788 2019-04-02  Andreas Krebbel  <krebbel@linux.ibm.com>
20790         * common/config/s390/s390-common.c (processor_flags_table): New
20791         entry for arch13.
20792         * config.gcc: Support arch13 with the --with-arch= configure flag.
20793         * config/s390/driver-native.c (s390_host_detect_local_cpu):
20794         * config/s390/s390-opts.h (enum processor_type): Add PROCESSOR_ARCH13.
20795         * config/s390/s390.c (s390_get_sched_attrmask)
20796         (s390_get_unit_mask): Add PROCESSOR_ARCH13.
20797         * config/s390/s390.h (enum processor_flags): Add PF_VXE2 and PF_ARCH13.
20798         * config/s390/s390.md (TARGET_CPU_ARCH13, TARGET_CPU_ARCH13_P)
20799         (TARGET_CPU_VXE2, TARGET_CPU_VXE2_P, TARGET_ARCH13)
20800         (TARGET_ARCH13_P, TARGET_VXE2, TARGET_VXE2_P): New macro
20801         definitions.
20802         * config/s390/s390.opt: Support arch13 as processor type in
20803         command line options.
20805 2019-04-02  Martin Liska  <mliska@suse.cz>
20807         PR translation/89912
20808         * params.def (PARAM_GRAPHITE_MAX_ARRAYS_PER_SCOP):
20809         Fix param description of graphite-max-arrays-per-scop.
20811 2019-04-02  Eric Botcazou  <ebotcazou@adacore.com>
20813         * config/sparc/linux64.h (ASAN_REJECT_SPEC): New macro.
20814         (ASAN_CC1_SPEC): Use it in 64-bit mode.
20815         * config/sparc/sol2.h (ASAN_REJECT_SPEC): Remove superfluous colon.
20817 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
20819         PR rtl-optimization/85412
20820         * sel-sched.c (sel_sched_region): Assign reset_sched_cycles_p before
20821         sel_sched_region_1, not after.
20823 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
20825         PR rtl-optimization/86928
20826         * sel-sched-ir.c (sel_redirect_edge_and_branch_force): Invoke
20827         compute_live if necessary.
20828         (sel_redirect_edge_and_branch): Likewise.
20830 2019-04-01  Vladimir Makarov  <vmakarov@redhat.com>
20832         PR rtl-optimization/89865
20833         * ira-costs.c (process_bb_node_for_hard_reg_moves): Skip hard
20834         register if it is a part of small class.
20836 2019-04-01  Andrey Belevantsev  <abel@ispras.ru>
20838         PR rtl-optimization/87273
20839         * sel-sched-ir.c (merge_fences): Remove assert.
20841 2019-04-01  Richard Biener  <rguenther@suse.de>
20843         PR tree-optimization/46590
20844         * domwalk.h (dom_walker::dom_walker): Consolidate constructors.
20845         (dom_walker::m_reachability): Add in place of...
20846         (dom_walker::m_skip_unreachable_blocks): ...this.
20847         * domwalk.c (dom_walker::dom_walker): Consoliate constructors.
20848         Move complex initialization ...
20849         (dom_walker::walk): Here.  Especially compute m_bb_to_rpo
20850         lazily and initialize edge flags on each invocation.
20851         (dom_walker::bb_reachable): Use m_reachability.
20853 2019-04-01  Martin Liska  <mliska@suse.cz>
20855         PR driver/89861
20856         * opt-suggestions.c (option_proposer::build_option_suggestions):
20857         Add variant without any argument in order to provide better
20858         hints.
20860 2019-04-01  Richard Biener  <rguenther@suse.de>
20862         PR c/71598
20863         * gimple.c: Include langhooks.h.
20864         (gimple_get_alias_set): Treat enumeral types as the underlying
20865         integer type.
20867 2019-03-29  Kugan Vivekanandarajah  <kuganv@linaro.org>
20868             Eric Botcazou  <ebotcazou@adacore.com>
20870         PR rtl-optimization/89862
20871         * rtl.h (word_register_operation_p): Exclude CONST_INT from operations
20872         that operates on the full registers for WORD_REGISTER_OPERATIONS
20873         architectures.
20875 2019-03-29  Jim Wilson  <jimw@sifive.com>
20877         * common/config/riscv/riscv-common.c (riscv_parse_arch_string):
20878         Clear MASK_RVC and then set if C subset supported.
20880 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
20882         PR c/89872
20883         * gimplify.c (gimplify_compound_literal_expr): Don't optimize a
20884         non-addressable complit into its initializer if it is volatile.
20886 2019-03-29  Roman Zhuykov  <zhroma@ispras.ru>
20888         * opts-common.c (integral_argument): Set errno properly in one case.
20890 2019-03-29  Martin Liska  <mliska@suse.cz>
20892         * doc/invoke.texi: Remove -Wchkp from documentation.
20894 2019-03-29  Martin Liska  <mliska@suse.cz>
20896         * dbgcnt.c (print_limit_reach): New function.
20897         (dbg_cnt): Use it.
20899 2019-03-29  Martin Liska  <mliska@suse.cz>
20901         * dbgcnt.c (dbg_cnt_process_single_pair): Fix GNU coding style.
20902         (dbg_cnt_process_opt): Parse first tokens aas
20903         dbg_cnt_process_single_pair is also using strtok.
20905 2019-03-29  Jakub Jelinek  <jakub@redhat.com>
20907         PR rtl-optimization/87485
20908         * function.c (expand_function_end): Move stack_protect_epilogue
20909         before loading of return value into hard register(s).
20911 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
20913         PR middle-end/89621
20914         * tree-inline.h (struct copy_body_data): Add
20915         dont_remap_vla_if_no_change flag.
20916         * tree-inline.c (remap_type_3, remap_type_2): New functions.
20917         (remap_type): Don't remap vla types if id->dont_remap_vla_if_no_change
20918         and remap_type_2 returns false.
20919         * omp-low.c (new_omp_context): Set ctx->cb.dont_remap_vla_if_no_change.
20920         Move ctx->cb.adjust_array_error_bounds setting to the outermost ctx
20921         only from where it is copied to nested contexts.
20923 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20925         PR target/89865
20926         * config/i386/i386.md (RMW operation with LEA peephole):
20927         Use LEAMODE mode attribute instead of SWI mode iterator for
20928         LEA pattern.
20930 2019-03-28  UroÅ¡ Bizjak  <ubizjak@gmail.com>
20932         PR target/89848
20933         * config/i386/i386.c (dimode_scalar_chain::make_vector_copies):
20934         Also process XEXP (src, 0) of a shift insn.
20936 2019-03-28  David Malcolm  <dmalcolm@redhat.com>
20938         PR middle-end/89725
20939         * optinfo-emit-json.cc (optrecord_json_writer::optinfo_to_json):
20940         Use DECL_ASSEMBLER_NAME rather than get_fnname_from_decl.
20942 2019-03-28  Jakub Jelinek  <jakub@redhat.com>
20944         * regcprop.c (copyprop_hardreg_forward_1): Remove redundant INSN_P
20945         test.
20946         (cprop_hardreg_bb, cprop_hardreg_debug): New functions.
20947         (pass_cprop_hardreg::execute): Use those.  Don't repeat bb processing
20948         immediately after first one with df_analyze in between, but rather
20949         process all bbs, queueing ones that need second pass in a worklist,
20950         df_analyze, process queued debug insn changes and if second pass is
20951         needed, process bbs from worklist, df_analyze, process queued debug
20952         insns again.
20954         * rtl.h (NONDEBUG_INSN_P): Define as NONJUMP_INSN_P or JUMP_P
20955         or CALL_P instead of INSN_P && !DEBUG_INSN_P.
20956         (INSN_P): Define using NONDEBUG_INSN_P or DEBUG_INSN_P.
20958 2019-03-28  Jonathan Wakely  <jwakely@redhat.com>
20960         PR c/79022
20961         * gengtype.h (create_nested_ptr_option): Fix parameter names to match
20962         definition.
20964 2019-03-27  Mateusz B  <mateuszb@poczta.onet.pl>
20966         PR target/85667
20967         * config/i386/i386.c (ix86_function_value_1): Call the newly added
20968         function for 32-bit MS_ABI.
20969         (function_value_ms_32): New function.
20971 2019-03-27  Andrew Stubbs  <ams@codesourcery.com>
20973         * config/gcn/gcn.md (CC_SAVE_REG): New constant.
20974         (movdi): Call gen_movdi_symbol_save_scc.
20975         (gen_movdi_symbol_save_scc): New insn and split.
20977 2019-03-27  Peter Bergner  <bergner@linux.ibm.com>
20979         PR rtl-optimization/89313
20980         * function.c (matching_constraint_num): New static function.
20981         (match_asm_constraints_1): Use it.  Fixup white space and comment.
20982         Don't replace inputs with non-matching constraints which conflict
20983         with early clobber outputs.
20985 2019-03-27  Jeff Law  <law@redhat.com>
20987         PR rtl-optimization/87761
20988         PR rtl-optimization/89826
20989         * regcprop.c (copyprop_hardreg_forward_1): Move may_trap_p test
20990         slightly later.
20991         (pass_cprop_hardreg::execute): Call df_analyze after adding the
20992         note problem to get REG_DEAD/REG_UNUSED notes updated.
20994 2019-03-27  Richard Biener  <rguenther@suse.de>
20996         PR tree-optimization/89463
20997         * tree-ssa-dce.c (remove_dead_stmt): Take output vector to
20998         queue edges to remove.
20999         (eliminate_unnecessary_stmts): Remove dead PHIs alongside
21000         dead stmts.  Delay edge removal until PHIs are removed to
21001         make debug-stmt creation not confused by seemingly degenerate
21002         PHIs.
21004 2019-03-27  Alan Modra  <amodra@gmail.com>
21006         * config/rs6000/rs6000.h: Rename NON_SPECIAL_REGS to GEN_OR_FLOAT_REGS
21007         throughout file.
21008         * config/rs6000/darwin.h: Likewise.
21009         * config/rs6000/rs6000.c: Likewise.
21011 2019-03-27  Alan Modra  <amodra@gmail.com>
21013         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Always
21014         assign rs6000_hard_regno_mode_ok_p[m][r].  Formatting.
21016 2019-03-26  Andrew Waterman  <andrew@sifive.com>
21017             Jim Wilson  <jimw@sifive.com>
21019         * config/riscv/generic.md (generic_alu, generic_load, generic_store)
21020         (generic_xfer, generic_branch, generic_imul, generic_idivsi)
21021         (generic_idivdi, generic_fmul_single, generic_fmul_double)
21022         (generic_fdiv, generic_fsqrt): Add check for generic tune.
21023         (generic_alu): Add auipc to type list.
21024         * config/riscv/riscv-opts.h (enum riscv_microarchitecture_type): New.
21025         (riscv_microarchitecture): Declare.
21026         * config/riscv/riscv-protos.h (riscv_store_data_bypass_p): Declare.
21027         * config/riscv/riscv.c (struct riscv_cpu_info): Add microarchitecture
21028         field.
21029         (riscv_microarchitecture): New.
21030         (sifive_7_tune_info): New.
21031         (riscv_cpu_info_table): Add microarchitecture value for rocket and
21032         size.  Add sifive-3-series, sifive-5-series, and sifive-7-series
21033         entries.
21034         (riscv_store_data_bypass_p): New.
21035         (riscv_option_override): Set riscv_microarchitecture from
21036         cpu->microarchitecture.
21037         * config/riscv/riscv.md: Include sifive-7.md.
21038         (type): Add auipc.
21039         (tune): New.
21040         (auipc<mode>): Change type to auipc.
21041         (restore_stack_nonlocal): New.
21042         * config/riscv/sifive-7.md: New.
21043         * doc/invoke.texi (RISC-V Options): Update mtune docs.
21045 2019-03-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
21047         PR target/89827
21048         * config/i386/i386.c (dimode_scalar_chain::convert_reg):
21049         Also process XEXP (src, 0) of a shift insn.
21051 2019-03-26  Richard Biener  <rguenther@suse.de>
21053         * tree-inline.c (remap_gimple_stmt): Cache gimple_block.
21054         (copy_debug_stmt): Likewise.
21055         (expand_call_inline): Likewise.
21056         (copy_bb): Avoid redundant lookup & set of gimple_block.
21057         * gimple-low.c (lower_gimple_return): Likewise.
21058         (lower_builtin_setjmp): Likewise.
21060 2019-03-26  Jakub Jelinek  <jakub@redhat.com>
21062         * hash-table.h (hash_table::m_gather_mem_stats): If GATHER_STATISTICS
21063         is constant 0, turn into static const data member initialized to false.
21064         (hash_table::hash_table): Only initialize m_gather_mem_stats #if
21065         GATHER_STATISTICS.  Add ATTRIBUTE_UNUSED to gather_mem_stats param.
21067 2019-03-26  Jason Merrill  <jason@redhat.com>
21068             Jakub Jelinek  <jakub@redhat.com>
21070         * mem-stats.h (mem_alloc_description::unregister_descriptor): New
21071         method.
21072         (mem_alloc_description::release_object_overhead): Fix comment typos.
21073         * hash-table.h (hash_table::~hash_table): Call
21074         release_instance_overhead only if m_entries is non-NULL, otherwise
21075         call unregister_descriptor.
21077 2019-03-26  Bin Cheng  <bin.cheng@linux.alibaba.com>
21079         PR tree-optimization/81740
21080         * tree-vect-data-refs.c (vect_analyze_data_ref_dependence):
21081         In case of outer loop vectorization, check for backward dependence
21082         at the inner loop if outer loop dependence is reversed.
21084 2019-03-26  Alan Modra  <amodra@gmail.com>
21086         * config/rs6000/rs6000.c (rs6000_init_hard_regno_mode_ok): Correct
21087         rs6000_vector_mem init.  Correct wI and wJ comment.
21089 2019-03-25  Alexander Monakov  <amonakov@ispras.ru>
21091         PR rtl-optimization/88347
21092         PR rtl-optimization/88423
21093         * sched-deps.c (sched_analyze_insn): Take into account that for
21094         tablejumps the barrier appears after a label and a jump_table_data.
21096 2019-03-25  Martin Sebor  <msebor@redhat.com>
21098         PR c/89812
21099         * c-common.c (check_user_alignment): Rename local.  Correct maximum
21100         alignment in diagnostic.  Avoid assuming argument fits in SHWI,
21101         convert it to UHWI when it fits.
21103 2019-03-25  Johan Karlsson  <johan.karlsson@enea.com>
21105         PR debug/86964
21106         * dwarf2out.c (premark_used_variables): New function.
21107         (prune_unused_types_walk): Do not mark not premarked external
21108         variables.
21109         (prune_unused_types): Call premark_used_variables.
21111 2019-03-25  Vladimir Makarov  <vmakarov@redhat.com>
21113         PR rtl-optimization/89676
21114         * lra-constraints.c (curr_insn_transform): Do match reload for
21115         early clobbers when the match was successful only for different
21116         registers.
21118 2019-03-25  Martin Sebor  <msebor@redhat.com>
21120         * doc/extend.texi (Common Type Attributes): Document vector_size.
21121         (Common Variable Attributes): Mention size constraint.  Correct
21122         quoting and typos.
21123         (Vector Extensions): Use @dfn when defining bas type.  Clarify
21124         base type and size constraints.
21126 2019-03-25  Richard Biener  <rguenther@suse.de>
21128         PR tree-optimization/89789
21129         * tree-ssa-sccvn.c (set_ssa_val_to): Do not allow lattice
21130         changes from non-undefined back to undefined.
21132 2019-03-25  Thomas Otto  <thomas.otto@pdv-fs.de>
21134         * dwarf2out.c (comp_dir_string): cached_wd could be set to both a
21135         heap string and a gc string, but since this variable is unknown to
21136         ggc the gc string might get reused and corrupted. Fixed by always
21137         using a heap string.
21139 2019-03-25  Richard Biener  <rguenther@suse.de>
21141         PR tree-optimization/89779
21142         * tree-ssa-loop-ivopts.c (remove_unused_ivs): Return
21143         to remove IV defs, delay actual removal.
21144         (tree_ssa_iv_optimize_loop): Likewise.  Avoid SCEV reset.
21145         (tree_ssa_iv_optimize): Remove eliminated IV defs at the
21146         very end, properly also reset loop control IV information.
21148 2019-03-25  Richard Biener  <rguenther@suse.de>
21150         PR tree-optimization/89802
21151         * tree-ssa-math-opts.c (convert_mult_to_fma_1): Properly
21152         move EH data to folded stmt.
21154 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
21156         * config/s390/s390-builtin-types.def: Remove few unused types and
21157         fix sort order for others.
21159 2019-03-25  Andreas Krebbel  <krebbel@linux.ibm.com>
21161         * config/s390/s390-c.c (s390_fn_types_compatible): Print the
21162         expected and found types with -mdebug during builtin matching.
21164 2019-03-25  Richard Biener  <rguenther@suse.de>
21166         PR middle-end/89790
21167         * fold-const.c (operand_equal_p): Revert last change with
21168         updated comment.
21170 2019-03-24  Segher Boessenkool  <segher@kernel.crashing.org>
21172         * config/rs6000/rs6000.c (rs6000_legitimize_tls_address): Add REG_EQUAL
21173         notes for the result of the __tls_get_addr calls.
21174         * config/rs6000/rs6000.md (unspec UNSPEC_TLS_GET_ADDR): New.
21176 2019-03-24  Jeff Law  <law@redhat.com>
21178         * config/bfin/bfin.md (movpdi): Fix length for alternative 1.
21180         PR rtl-optimization/87761
21181         * regcprop.c (copyprop_hardreg_forward_1): Check may_trap_p on SET,
21182         not INSN.  Also check RTX_FRAME_RELATED_P.  Queue insns for DF rescan
21183         as needed.
21184         (pass_cprop_hardreg::execute): Add df note problem and defer insn
21185         rescans.  Reprocess blocks as needed, calling df_analyze before
21186         reprocessing.  Always call df_analyze before fixing up debug bind
21187         insns.
21189 2019-03-23  Segher Boessenkool  <segher@kernel.crashing.org>
21191         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Implement for 32-bit
21192         big endian.
21194 2019-03-22  Andrew Pinski  <apinski@marvell.com>
21196         * config/aarch64/aarch64.md (zero_extendsidi2_aarch64): Fix type
21197         attrribute for uxtw.
21199 2019-03-26  Jeff Law  <law@redhat.com>
21201         PR rtl-optimization/87761
21202         * config/mips/mips-protos.h (mips_split_move): Add new argument.
21203         (mips_emit_move_or_split): Pass NULL for INSN into mips_split_move.
21204         (mips_split_move): Accept new INSN argument.  Try to forward SRC
21205         into the next instruction.
21206         (mips_split_move_insn): Pass INSN through to mips_split_move.
21208 2019-03-22  Vladimir Makarov  <vmakarov@redhat.com>
21210         PR rtl-optimization/89676
21211         * lra-constraints.c (curr_insn_transform): Do match reload for
21212         early clobbers even if the match was successful.
21214 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
21216         PR c++/87481
21217         * doc/invoke.texi (-fconstexpr-ops-limit=): Document.
21219 2019-03-22  Bill Schmidt  <wschmidt@linux.ibm.com>
21221         * config/rs6000/mmintrin.h (_mm_sub_pi32): Fix typo.
21223 2019-03-22  Jakub Jelinek  <jakub@redhat.com>
21225         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask3<round_name>,
21226         <avx512>_fmsub_<mode>_mask3<round_name>,
21227         <avx512>_fnmadd_<mode>_mask3<round_name>,
21228         <avx512>_fnmsub_<mode>_mask3<round_name>,
21229         avx512f_vmfmadd_<mode>_mask3<round_name>,
21230         avx512f_vmfmsub_<mode>_mask3<round_name>,
21231         *avx512f_vmfnmadd_<mode>_mask3<round_name>): Use <round_nimm_predicate>
21232         instead of register_operand and %v instead of v for match_operand 1.
21233         (avx512f_vmfnmsub_<mode>_mask3<round_name>): Rename to ...
21234         (*avx512f_vmfnmsub_<mode>_mask3<round_name>): ... this.  Use
21235         <round_nimm_predicate> instead of register_operand and %v instead of v
21236         for match_operand 1.
21238         * config/i386/sse.md (<avx512>_fmadd_<mode>_mask<round_name>,
21239         <avx512>_fmadd_<mode>_mask3<round_name>,
21240         <avx512>_fmsub_<mode>_mask<round_name>,
21241         <avx512>_fmsub_<mode>_mask3<round_name>,
21242         <avx512>_fnmadd_<mode>_mask<round_name>,
21243         <avx512>_fnmadd_<mode>_mask3<round_name>,
21244         <avx512>_fnmsub_<mode>_mask<round_name>,
21245         <avx512>_fnmsub_<mode>_mask3<round_name>,
21246         <avx512>_fmaddsub_<mode>_mask<round_name>,
21247         <avx512>_fmaddsub_<mode>_mask3<round_name>,
21248         <avx512>_fmsubadd_<mode>_mask<round_name>,
21249         <avx512>_fmsubadd_<mode>_mask3<round_name>): Use
21250         <round_nimm_predicate> instead of nonimmediate_operand.
21251         (fmai_vmfmadd_<mode><round_name>, fmai_vmfmsub_<mode><round_name>,
21252         fmai_vmfnmadd_<mode><round_name>, fmai_vmfnmsub_<mode><round_name>):
21253         Use register_operand instead of <round_nimm_predicate> for the
21254         operand that needs to match output.
21255         (*fmai_fmadd_<mode>, *fmai_fmsub_<mode>,
21256         *fmai_fnmadd_<mode><round_name>, *fmai_fnmsub_<mode><round_name>):
21257         Likewise.  Formatting fixes.
21259         PR target/89784
21260         * config/i386/i386.c (enum ix86_builtins): Remove
21261         IX86_BUILTIN_VFMSUBSD3_MASK3 and IX86_BUILTIN_VFMSUBSS3_MASK3.
21262         * config/i386/i386-builtin.def (__builtin_ia32_vfmaddsd3_mask,
21263         __builtin_ia32_vfmaddsd3_mask3, __builtin_ia32_vfmaddsd3_maskz,
21264         __builtin_ia32_vfmsubsd3_mask3, __builtin_ia32_vfmaddss3_mask,
21265         __builtin_ia32_vfmaddss3_mask3, __builtin_ia32_vfmaddss3_maskz,
21266         __builtin_ia32_vfmsubss3_mask3): New builtins.
21267         * config/i386/sse.md (avx512f_vmfmadd_<mode>_mask<round_name>,
21268         avx512f_vmfmadd_<mode>_mask3<round_name>,
21269         avx512f_vmfmadd_<mode>_maskz_1<round_name>,
21270         *avx512f_vmfmsub_<mode>_mask<round_name>,
21271         avx512f_vmfmsub_<mode>_mask3<round_name>,
21272         *avx512f_vmfmasub_<mode>_maskz_1<round_name>,
21273         *avx512f_vmfnmadd_<mode>_mask<round_name>,
21274         *avx512f_vmfnmadd_<mode>_mask3<round_name>,
21275         *avx512f_vmfnmadd_<mode>_maskz_1<round_name>,
21276         *avx512f_vmfnmsub_<mode>_mask<round_name>,
21277         avx512f_vmfnmsub_<mode>_mask3<round_name>,
21278         *avx512f_vmfnmsub_<mode>_maskz_1<round_name>): New define_insns.
21279         (avx512f_vmfmadd_<mode>_maskz<round_expand_name>): New define_expand.
21280         * config/i386/avx512fintrin.h (_mm_mask_fmadd_sd, _mm_mask_fmadd_ss,
21281         _mm_mask3_fmadd_sd, _mm_mask3_fmadd_ss, _mm_maskz_fmadd_sd,
21282         _mm_maskz_fmadd_ss, _mm_mask_fmsub_sd, _mm_mask_fmsub_ss,
21283         _mm_mask3_fmsub_sd, _mm_mask3_fmsub_ss, _mm_maskz_fmsub_sd,
21284         _mm_maskz_fmsub_ss, _mm_mask_fnmadd_sd, _mm_mask_fnmadd_ss,
21285         _mm_mask3_fnmadd_sd, _mm_mask3_fnmadd_ss, _mm_maskz_fnmadd_sd,
21286         _mm_maskz_fnmadd_ss, _mm_mask_fnmsub_sd, _mm_mask_fnmsub_ss,
21287         _mm_mask3_fnmsub_sd, _mm_mask3_fnmsub_ss, _mm_maskz_fnmsub_sd,
21288         _mm_maskz_fnmsub_ss, _mm_mask_fmadd_round_sd, _mm_mask_fmadd_round_ss,
21289         _mm_mask3_fmadd_round_sd, _mm_mask3_fmadd_round_ss,
21290         _mm_maskz_fmadd_round_sd, _mm_maskz_fmadd_round_ss,
21291         _mm_mask_fmsub_round_sd, _mm_mask_fmsub_round_ss,
21292         _mm_mask3_fmsub_round_sd, _mm_mask3_fmsub_round_ss,
21293         _mm_maskz_fmsub_round_sd, _mm_maskz_fmsub_round_ss,
21294         _mm_mask_fnmadd_round_sd, _mm_mask_fnmadd_round_ss,
21295         _mm_mask3_fnmadd_round_sd, _mm_mask3_fnmadd_round_ss,
21296         _mm_maskz_fnmadd_round_sd, _mm_maskz_fnmadd_round_ss,
21297         _mm_mask_fnmsub_round_sd, _mm_mask_fnmsub_round_ss,
21298         _mm_mask3_fnmsub_round_sd, _mm_mask3_fnmsub_round_ss,
21299         _mm_maskz_fnmsub_round_sd, _mm_maskz_fnmsub_round_ss): New intrinsics.
21301 2019-03-21  Martin Sebor  <msebor@redhat.com>
21303         PR tree-optimization/89350
21304         * builtins.c (compute_objsize): Also ignore offsets whose upper
21305         bound is negative.
21306         * gimple-ssa-warn-restrict.c (builtin_memref): Add new member.
21307         (builtin_memref::builtin_memref): Initialize new member.
21308         Allow EXPR to be null.
21309         (builtin_memref::extend_offset_range): Replace local with a member.
21310         Avoid assuming pointer offsets are unsigned.
21311         (builtin_memref::set_base_and_offset): Determine base object
21312         before computing offset range.
21313         (builtin_access::builtin_access): Handle memset.
21314         (builtin_access::generic_overlap): Replace local with a member.
21315         (builtin_access::strcat_overlap): Same.
21316         (builtin_access::overlap): Same.
21317         (maybe_diag_overlap): Same.
21318         (maybe_diag_access_bounds): Same.
21319         (wrestrict_dom_walker::check_call): Handle memset.
21320         (check_bounds_or_overlap): Same.
21322 2019-03-21  Jan Hubicka  <hubicka@ucw.cz>
21323             Jakub Jelinek  <jakub@redhat.com>
21325         PR lto/89692
21326         * tree.c (fld_type_variant, fld_incomplete_type_of,
21327         fld_process_array_type): Call fld->pset.add and don't call
21328         add_tree_to_fld_list if it returns true.
21329         (free_lang_data_in_type): Similarly with self-recursive call.  Purge
21330         non-marked types from TYPE_NEXT_VARIANT list.
21331         (find_decls_types_r): Call fld_worklist_push for TYPE_CANONICAL (t).
21333 2019-03-21  Jakub Jelinek  <jakub@redhat.com>
21335         * hash-table.h (hash_table): Add Lazy template parameter defaulted
21336         to false, if true, don't alloc_entries during construction, but defer
21337         it to the first method that needs m_entries allocated.
21338         (hash_table::hash_table, hash_table::~hash_table,
21339         hash_table::alloc_entries, hash_table::find_empty_slot_for_expand,
21340         hash_table::too_empty_p, hash_table::expand, hash_table::empty_slow,
21341         hash_table::clear_slot, hash_table::traverse_noresize,
21342         hash_table::traverse, hash_table::iterator::slide): Adjust all methods.
21343         * hash-set.h (hash_set): Add Lazy template parameter defaulted to
21344         false.
21345         (hash_set::contains): If Lazy is true, use find_slot_with_hash with
21346         NO_INSERT instead of find_with_hash.
21347         (hash_set::traverse, hash_set::iterator, hash_set::iterator::m_iter,
21348         hash_set::m_table): Add Lazy to template params of hash_table.
21349         (gt_ggc_mx, gt_pch_nx): Use false as Lazy in hash_set template param.
21350         * attribs.c (test_attribute_exclusions): Likewise.
21351         * hash-set-tests.c (test_set_of_strings): Add iterator tests for
21352         hash_set.  Add tests for hash_set with Lazy = true.
21354 2019-03-21  Richard Biener  <rguenther@suse.de>
21356         PR tree-optimization/89779
21357         * tree.c (tree_nop_conversion): Consolidate and fix defensive
21358         checks with respect to released SSA names now having error_mark_node
21359         type.
21360         * fold-const.c (operand_equal_p): Likewise.
21362 2019-03-20  Andreas Krebbel  <krebbel@linux.ibm.com>
21364         PR target/89775
21365         * config/s390/s390.c (global_not_special_regno_p): Move to make it
21366         available to ...
21367         (s390_optimize_register_info): Use global_not_special_regno_p to
21368         check for global regs.
21370 2019-03-20  Jakub Jelinek  <jakub@redhat.com>
21372         PR target/89752
21373         * lra-constraints.c (process_alt_operands) <reg>: For BLKmode, don't
21374         update this_alternative nor this_alternative_set.
21376 2019-03-19  Jim Wilson  <jimw@sifive.com>
21378         PR target/89411
21379         * config/riscv/riscv.c (riscv_valid_lo_sum_p): New arg x.  New locals
21380         align, size, offset.  Use them to handle a BLKmode reference.  Update
21381         comment.
21382         (riscv_classify_address): Pass info->offset to riscv_valid_lo_sum_p.
21384 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21386         PR rtl-optimization/89768
21387         * loop-unroll.c (unroll_loop_constant_iterations): Use gen_int_mode
21388         instead of GEN_INT.
21389         (unroll_loop_runtime_iterations): Likewise.
21391 2019-03-19  Martin Sebor  <msebor@redhat.com>
21393         PR tree-optimization/89644
21394         * tree-ssa-strlen.c (handle_builtin_stxncpy): Use full_string_p
21395         rather than endptr as an indicator of nul-termination.
21397         PR tree-optimization/89644
21398         * tree-ssa-strlen.c (handle_builtin_stxncpy): Consider unterminated
21399         arrays in determining sequence sizes in strncpy and stpncpy.
21401 2019-03-19  Martin Liska  <mliska@suse.cz>
21403         PR middle-end/89737
21404         * predict.c (combine_predictions_for_bb): Empty likely_edges and
21405         unlikely_edges if there's an edge that belongs to both these sets.
21407 2018-03-19  Segher Boessenkool  <segher@kernel.crashing.org>
21409         PR target/89746
21410         * config/rs6000/rs6000.md (fix_trunc<mode>si2_stfiwx): If we have a
21411         non-TARGET_MFCRF target, and the dest is memory but not 32-bit aligned,
21412         go via a stack temporary.
21414 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21416         PR target/89378
21417         * config/mips/mips.c (mips_expand_vec_cond_expr): Use gen_lowpart
21418         instead of gen_rtx_SUBREG.
21419         * config/mips/mips-msa.md (vec_extract<mode><unitmode>): Likewise.
21421 2019-03-19  Richard Biener  <rguenther@suse.de>
21423         PR debug/88389
21424         * opts.c (finish_options): Disable -gsplit-dwarf when doing LTO.
21426 2019-03-19  Jan Hubicka  <hubicka@ucw.cz>
21428         PR lto/87809
21429         PR lto/89335
21430         * tree.c (free_lang_data_in_decl): Do not free context of C++
21431         destrutors.
21433 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21435         PR target/89506
21436         * config/arm/arm.md (cmpsi2_addneg): Swap the alternatives and use
21437         subs for the first alternative except when operands[3] is 1.
21439         PR target/89752
21440         * gimplify.c (gimplify_asm_expr): For output argument with
21441         TREE_ADDRESSABLE type, clear allows_reg if it allows memory, otherwise
21442         diagnose error.
21444 2019-03-19  Eric Botcazou  <ebotcazou@adacore.com>
21446         PR rtl-optimization/89753
21447         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21448         explicit unrolling factor even more robust.
21450 2019-03-19  Jakub Jelinek  <jakub@redhat.com>
21452         PR target/89726
21453         * config/i386/i386.c (ix86_expand_floorceildf_32): In ceil
21454         compensation use x2 += 1 instead of x2 -= -1 and when honoring
21455         signed zeros, do another copysign after the compensation.
21457 2019-03-18  Martin Sebor  <msebor@redhat.com>
21459         PR tree-optimization/89720
21460         * tree-vrp.c (vrp_prop::check_mem_ref): Treat range with max < min
21461         more conservatively, the same as anti-range.
21463 2019-03-18  Richard Biener  <rguenther@suse.de>
21465         PR middle-end/88945
21466         * tree-ssanames.c (release_ssa_name_fn): For released SSA names
21467         use a TREE_TYPE of error_mark_node to avoid ICEs when dumping
21468         basic-blocks that are removed.  Remove restoring SSA_NAME_VAR.
21469         * tree-outof-ssa.c (eliminate_useless_phis): Remove redundant checking.
21471 2019-03-18  Andrew Stubbs  <ams@codesourcery.com>
21473         * config/gcn/gcn-run.c (struct output): Make next_output unsigned.
21474         Extend queue to 1024 entries.
21475         Add "consumed" field.
21476         (gomp_print_output): Remove print_index parameter.
21477         Add final parameter.
21478         Change limit to unsigned.
21479         Use consumed field to implement circular buffer.
21480         Detect interrupted print in final pass.
21481         Flush output at the end.
21482         (run): Update gomp_print_output usage.
21483         (main): Initialize kernargs->output_data.consumed.
21485 2019-03-18  Richard Sandiford  <richard.sandiford@arm.com>
21487         * tree-vect-loop.c (vect_estimate_min_profitable_iters): Fix the
21488         calculation of the minimum number of scalar iterations for
21489         fully-predicated loops.
21491 2019-03-18  Martin Jambor  <mjambor@suse.cz>
21493         PR tree-optimization/89546
21494         * tree-sra.c (propagate_subaccesses_across_link): Requeue new_acc if
21495         any propagation to its children took place.
21497 2019-03-18  Andrew Burgess  <andrew.burgess@embecosm.com>
21499         PR target/89627
21500         * config/riscv/riscv.c (riscv_pass_fpr_single): Add offset
21501         parameter, and make use of it.
21502         (riscv_get_arg_info): Pass offset to riscv_pass_fpr_single.
21504 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21506         * config/arc/arc.opt (mcode-density-frame): Get the inital value
21507         from TARGET_CODE_DENSITY_FRAME_DEFAULT.
21508         * config/arc/elf.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21509         * config/arc/linux.h (TARGET_CODE_DENSITY_FRAME_DEFAULT): Define.
21510         * config/arc/arc.md (pop_multi_fp_blink): Adjust constraints to
21511         match what the ops is doing.
21512         (push_multi_fp_blink): Likewise.
21513         * config/arc/arc.c (arc_override_options): Enable enter/leave when
21514         compiling for size and elf target.
21515         (arc_save_callee_enter): Adjust note to match what enter/leave
21516         operation does.
21518 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21520         * config/arc/arc.md (tst_movb): Fix constraint.
21522 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21524         * config/arc/arc.c (TARGET_HAVE_SPECULATION_SAFE_VALUE): Define.
21526 2019-03-18  Claudiu Zissulescu  <claziss@synopsys.com>
21528         * config/arc/arc-protos.h (arc_adjust_reg_alloc_order): Declare.
21529         * config/arc/arc.c (arc_conditional_register_usage): Remove all
21530         reg_alloc_order references.
21531         (size_alloc_order): Define.
21532         (arc_adjust_reg_alloc_order): New function.
21533         * config/arc/arc.h (REG_ALLOC_ORDER): Proper define the register
21534         order.
21535         (ADJUST_REG_ALLOC_ORDER): Define.
21536         (HONOR_REG_ALLOC_ORDER): Likewise.
21538 2019-03-18  Richard Biener  <rguenther@suse.de>
21540         PR target/87561
21541         * config/i386/i386.c (ix86_add_stmt_cost): Pessimize strided
21542         loads and stores a bit more.
21544 2019-03-18  Richard Biener  <rguenther@suse.de>
21546         PR target/87561
21547         * config/i386/i386.c (ix86_add_stmt_cost): Apply strided
21548         load pessimization to stores as well.
21550 2019-03-18  Andrey Belevantsev  <abel@ispras.ru>
21552         PR middle-end/86979
21553         * sel-sched.c (compute_av_set_at_bb_end): When we have an ineligible
21554         successor, use NULL as its av set.
21556 2019-03-15  Segher Boessenkool  <segher@kernel.crashing.org>
21558         PR rtl-optimization/89721
21559         * lra-constraints (invariant_p): Return false if side_effects_p holds.
21561 2019-03-15  Kelvin Nilsen  <kelvin@gcc.gnu.org>
21563         PR target/87532
21564         * config/rs6000/rs6000-c.c (altivec_resolve_overloaded_builtin):
21565         When handling vec_extract, use modular arithmetic to allow
21566         constant selectors greater than vector length.
21567         * config/rs6000/rs6000.c (rs6000_expand_vector_extract): Allow
21568         V1TImode vectors to have constant selector values greater than 0.
21569         Use modular arithmetic to compute vector index.
21570         (rs6000_split_vec_extract_var): Use modular arithmetic to compute
21571         index for in-memory vectors.  Correct code generation for
21572         in-register vectors.
21573         (altivec_expand_vec_ext_builtin): Use modular arithmetic to
21574         compute index.
21576 2019-03-15  Alexandre Oliva  <aoliva@redhat.com>
21578         PR c++/88534
21579         PR c++/88537
21580         * dwarf2out.c (generic_parameter_die): Follow DECL_INITIAL of
21581         VAR_DECL args.
21583 2019-03-15  Jakub Jelinek  <jakub@redhat.com>
21585         PR c++/89709
21586         * tree.c (inchash::add_expr): Strip any location wrappers.
21587         * fold-const.c (operand_equal_p): Move stripping of location wrapper
21588         after hash verification.
21590         PR debug/89704
21591         * dwarf2out.c (add_const_value_attribute): Return false for MINUS,
21592         SIGN_EXTEND and ZERO_EXTEND.
21594 2019-03-14  Jason Merrill  <jason@redhat.com>
21595             Jakub Jelinek  <jakub@redhat.com>
21597         * hash-table.h (remove_elt_with_hash): Return if slot is NULL rather
21598         than if is_empty (*slot).
21599         * hash-set-tests.c (test_set_of_strings): Add tests for addition of
21600         existing elt and for elt removal.
21601         * hash-map-tests.c (test_map_of_strings_to_int): Add test for removal
21602         of already removed elt.
21604 2019-03-15  H.J. Lu  <hongjiu.lu@intel.com>
21606         PR target/89650
21607         * config/i386/i386.c (remove_partial_avx_dependency): Handle
21608         REG_EH_REGION note.
21610 2019-03-14  Martin Liska  <mliska@suse.cz>
21612         PR other/89712
21613         * doc/invoke.texi: Remove -fdump-class-hierarchy option.
21615 2019-03-14  Richard Biener  <rguenther@suse.de>
21617         PR target/89711
21618         * config/i386/i386.c (make_resolver_func): Properly set
21619         DECL_CONTEXT on the RESULT_DECL.
21620         * config/rs6000/rs6000.c (make_resolver_func): Likewise.
21622 2019-03-14  Richard Biener  <rguenther@suse.de>
21624         * gimple-pretty-print.c: Include cfgloop.h.
21625         (dump_gimple_phi): Adjust.
21626         (dump_gimple_bb_header): Dump loop header for GIMPLE.
21627         (pp_cfg_jump): Adjust.
21628         (dump_implicit_edges): Dump fallthru to next block for GIMPLE as well.
21629         * tree-cfg.c (build_gimple_cfg): Remove lower_phi_internal_fn call.
21630         (lower_phi_internal_fn): Remove.
21631         (verify_gimple_call): Remove IFN_PHI special-casing.
21632         (dump_function_to_file): Dump IL state.
21633         * tree-into-ssa.c (rewrite_add_phi_arguments): Revert changes
21634         done to deal with PHI nodes being present in non-SSA state.
21636 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
21638         PR ipa/89684
21639         * multiple_target.c (create_dispatcher_calls): Change
21640         references_to_redirect from vector of ipa_ref * to vector of ipa_ref.
21641         In the node->iterate_referring loop, push *ref rather than ref, call
21642         ref->remove_reference () and always pass 0 to iterate_referring.
21644         PR rtl-optimization/89679
21645         * expmed.c (expand_mult_const): Don't add a REG_EQUAL note if it
21646         would contain a paradoxical SUBREG.
21648 2019-03-14  Richard Biener  <rguenther@suse.de>
21650         PR tree-optimization/89710
21651         * tree-ssa-loop-ch.c (should_duplicate_loop_header_p): Use
21652         safe_dyn_cast.
21654 2019-03-14  Martin Liska  <mliska@suse.cz>
21656         * coverage.c (coverage_begin_function): Stream also
21657         end_column.
21658         * doc/gcov.texi: Document 2 new fields in JSON file.  Improve
21659         documentation about function declaration location.
21660         * gcov-dump.c (tag_function): Print whole range
21661         of function declaration.
21662         * gcov.c (struct function_info): Add end_column field.
21663         (function_info::function_info): Initialize it.
21664         (output_json_intermediate_file): Output {start,end}_column
21665         fields.
21666         (read_graph_file): Read end_column.
21668 2019-03-14  Richard Biener  <rguenther@suse.de>
21670         PR middle-end/89698
21671         * fold-const.c (operand_equal_p): For INDIRECT_REF check
21672         that the access types are similar.
21674 2019-03-14  Jakub Jelinek  <jakub@redhat.com>
21676         PR tree-optimization/89703
21677         * tree-ssa-strlen.c (valid_builtin_call): Punt if stmt call types
21678         aren't compatible also with builtin_decl_explicit.  Check pure
21679         or non-pure status of BUILT_IN_STR{{,N}CMP,N{LEN,{CAT,CPY}{,_CHK}}}
21680         and BUILT_IN_STPNCPY{,_CHK}.
21682 2019-03-14  H.J. Lu  <hongjiu.lu@intel.com>
21684         PR target/89523
21685         * config/i386/i386.c (ix86_print_operand): Handle 'M' to add
21686         addr32 prefix to VSIB address for X32.
21687         * config/i386/sse.md (*avx512pf_gatherpf<mode>sf_mask): Prepend
21688         "%M2" to opcode.
21689         (*avx512pf_gatherpf<mode>df_mask): Likewise.
21690         (*avx512pf_scatterpf<mode>sf_mask): Likewise.
21691         (*avx512pf_scatterpf<mode>df_mask): Likewise.
21692         (*avx2_gathersi<mode>): Prepend "%M3" to opcode.
21693         (*avx2_gathersi<mode>_2): Prepend "%M2" to opcode.
21694         (*avx2_gatherdi<mode>): Prepend "%M3" to opcode.
21695         (*avx2_gatherdi<mode>_2): Prepend "%M2" to opcode.
21696         (*avx2_gatherdi<mode>_3): Prepend "%M3" to opcode.
21697         (*avx2_gatherdi<mode>_4): Prepend "%M2" to opcode.`
21698         (*avx512f_gathersi<mode>): Prepend "%M4" to opcode.
21699         (*avx512f_gathersi<mode>_2): Prepend "%M3" to opcode.
21700         (*avx512f_gatherdi<mode>): Prepend "%M4" to opcode.
21701         (*avx512f_gatherdi<mode>_2): Prepend "%M3" to opcode.
21702         (*avx512f_scattersi<mode>): Prepend "%M0" to opcode.
21703         (*avx512f_scatterdi<mode>): Likewise.
21705 2019-03-13  Vladimir Makarov  <vmakarov@redhat.com>
21707         PR target/85860
21708         * lra-constraints.c (inherit_in_ebb): Update
21709         potential_reload_hard_regs along with live_hard_regs.
21711 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
21713         PR debug/89498
21714         * dwarf2out.c (size_of_die): For dw_val_class_view_list always use
21715         DWARF_OFFSET_SIZE.
21716         (value_format): For dw_val_class_view_list never use DW_FORM_loclistx.
21718 2019-03-13  Martin Sebor  <msebor@redhat.com>
21720         PR tree-optimization/89662
21721         * tree-vrp.c (vrp_prop::check_mem_ref): Avoid assuming every type
21722         has a size.
21724 2019-03-13  Richard Biener  <rguenther@suse.de>
21726         PR middle-end/89677
21727         * tree-scalar-evolution.c (simplify_peeled_chrec): Do not
21728         throw FP expressions at tree-affine.
21730 2019-03-14  Richard Biener  <rguenther@suse.de>
21732         * tree-pretty-print.c (dump_generic_node): For -gimple properly
21733         dump negative integer constants using _Literal (type) -num.
21735 2019-03-13  Jakub Jelinek  <jakub@redhat.com>
21737         * ipa-param-manipulation.h (struct ipa_parm_adjustment): Remove
21738         nonlocal_value member.
21740         PR middle-end/88588
21741         * omp-simd-clone.c (ipa_simd_modify_stmt_ops): Handle PHI args.
21742         (ipa_simd_modify_function_body): Handle PHIs.
21744 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
21746         * config/s390/s390.c (s390_option_override_internal): Use more
21747         aggressive inlining parameters.
21749 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
21751         * config/s390/3906.md: New file.
21752         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21753         (LONGRUNNING_THRESHOLD): Remove.
21754         (MAX_SCHED_MIX_SCORE): Decrease.
21755         (MAX_SCHED_MIX_DISTANCE): Decrease.
21756         (s390_bb_fallthru_entry_likely): Assume fallthru for less than likely.
21757         (struct s390_sched_state): New struct to hold scheduling state.
21758         (S390_SCHED_STATE_NORMAL): Remove.
21759         (S390_SCHED_STATE_CRACKED): Remove.
21760         (S390_SCHED_ATTR_MASK_GROUPOFTWO): Add.
21761         (s390_get_sched_attrmask): Use new attribute.
21762         (s390_get_unit_mask): Use new units.
21763         (s390_is_fpd): New function.
21764         (s390_is_fxd): New function.
21765         (s390_is_longrunning): New function.
21766         (s390_sched_score): Use new functions.
21767         (s390_sched_reorder): Likewise.
21768         (s390_sched_variable_issue): Rework and use new functions.
21769         (s390_sched_init): Use new functions.
21770         * config/s390/s390.h (s390_tune_attr): Add z14.
21771         * config/s390/s390.md: Add z14.
21773 2019-03-12  Robin Dapp  <rdapp@linux.ibm.com>
21775         * config/s390/2964.md: Update pipeline description.
21776         * config/s390/s390.c (MAX_SCHED_UNITS): Increase.
21777         (LONGRUNNING_THRESHOLD): Remove.
21778         (LATENCY_FACTOR): Remove.
21779         (s390_get_unit_mask): Add unit.
21780         (s390_sched_score): Use fxd/fpd.
21781         (s390_sched_variable_issue): Use fxd/fpd.
21783 2019-03-12  Martin Liska  <mliska@suse.cz>
21785         * config/i386/i386.c: Reword an error message.
21787 2019-03-12  Martin Jambor  <mjambor@suse.cz>
21789         * cgraph.c (cgraph_node::dump): Dump more info for former thunks,
21790         terminate with newline.
21792 2019-03-12  Jakub Jelinek  <jakub@redhat.com>
21794         PR target/52726
21795         * config/s390/s390.md (tabort): Use %wd instead of
21796         HOST_WIDE_INT_PRINT_DEC in error message, reword to avoid two capital
21797         letters and periods.
21798         * config/tilepro/tilepro.c (tilepro_print_operand): Use %wd in
21799         output_operand_lossage instead of HOST_WIDE_INT_PRINT_DEC, replace
21800         's with %< and %>.
21802         PR middle-end/89663
21803         * builtins.c (expand_builtin_int_roundingfn,
21804         expand_builtin_int_roundingfn_2): Return NULL_RTX instead of
21805         gcc_unreachable if validate_arglist fails.
21807 2019-03-12  Richard Biener  <rguenther@suse.de>
21809         PR tree-optimization/89664
21810         * tree-ssa-math-opts.c (execute_cse_reciprocals_1): Properly
21811         free the occurance tree after the early out.
21813 2019-03-11  Jakub Jelinek  <jakub@redhat.com>
21815         PR middle-end/89655
21816         PR bootstrap/89656
21817         * vr-values.c (vr_values::update_value_range): If
21818         old_vr->varying_p (), don't update it, make new_vr also VARYING
21819         and return false.
21821 2019-03-11  Martin Liska  <mliska@suse.cz>
21823         * config/aarch64/aarch64.c (aarch64_override_options_internal):
21824         Fix double string quoting.
21826 2019-03-11  Martin Liska  <mliska@suse.cz>
21828         * collect-utils.c (collect_wait): Wrap apostrophes
21829         in gcc internal format with %'.
21830         * collect2.c (main): Likewise.
21831         (scan_prog_file): Likewise.
21832         (scan_libraries): Likewise.
21833         * config/i386/i386.c (ix86_expand_call): Likewise.
21834         (ix86_handle_interrupt_attribute): Likewise.
21835         * config/nds32/nds32-intrinsic.c (nds32_expand_builtin_impl): Likewise.
21836         * config/nds32/nds32.c (nds32_insert_attributes): Likewise.
21837         * config/rl78/rl78.c (rl78_handle_saddr_attribute): Likewise.
21838         * lto-wrapper.c (find_crtoffloadtable): Likewise.
21839         * symtab.c (symtab_node::verify_base): Likewise.
21840         * tree-cfg.c (verify_gimple_label): Likewise.
21841         * tree.c (verify_type_variant): Likewise.
21843 2019-03-11  Martin Liska  <mliska@suse.cz>
21845         * builtins.c (expand_builtin_thread_pointer): Wrap an option name
21846         in a string format message and fix GNU coding style.
21847         (expand_builtin_set_thread_pointer): Likewise.
21848         * common/config/aarch64/aarch64-common.c
21849         (aarch64_rewrite_selected_cpu): Likewise.
21850         * common/config/alpha/alpha-common.c (alpha_handle_option): Likewise.
21851         * common/config/arc/arc-common.c (arc_handle_option): Likewise.
21852         * common/config/arm/arm-common.c (arm_parse_fpu_option): Likewise.
21853         * common/config/bfin/bfin-common.c (bfin_handle_option): Likewise.
21854         * common/config/i386/i386-common.c (ix86_handle_option): Likewise.
21855         * common/config/ia64/ia64-common.c (ia64_handle_option): Likewise.
21856         * common/config/m68k/m68k-common.c (m68k_handle_option): Likewise.
21857         * common/config/msp430/msp430-common.c (msp430_handle_option): Likewise.
21858         * common/config/nds32/nds32-common.c (nds32_handle_option): Likewise.
21859         * common/config/powerpcspe/powerpcspe-common.c (rs6000_handle_option):
21860         Likewise.
21861         * common/config/riscv/riscv-common.c
21862         (riscv_subset_list::parsing_subset_version): Likewise.
21863         (riscv_subset_list::parse_std_ext): Likewise.
21864         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
21865         (riscv_subset_list::parse): Likewise.
21866         * common/config/rs6000/rs6000-common.c (rs6000_handle_option): Likewise.
21867         * config/aarch64/aarch64.c (aarch64_parse_one_option_token): Likewise.
21868         (aarch64_override_options_internal): Likewise.
21869         (aarch64_validate_mcpu): Likewise.
21870         (aarch64_validate_march): Likewise.
21871         (aarch64_validate_mtune): Likewise.
21872         (aarch64_override_options): Likewise.
21873         * config/alpha/alpha.c (alpha_option_override): Likewise.
21874         * config/arc/arc.c (arc_init): Likewise.
21875         (parse_mrgf_banked_regs_option): Likewise.
21876         (arc_override_options): Likewise.
21877         (arc_expand_builtin_aligned): Likewise.
21878         * config/arm/arm-builtins.c (arm_expand_neon_builtin): Likewise.
21879         (arm_expand_builtin): Likewise.
21880         * config/arm/arm.c (arm_option_check_internal): Likewise.
21881         (arm_configure_build_target): Likewise.
21882         (arm_option_override): Likewise.
21883         (arm_options_perform_arch_sanity_checks): Likewise.
21884         (arm_handle_cmse_nonsecure_entry): Likewise.
21885         (arm_handle_cmse_nonsecure_call): Likewise.
21886         (arm_tls_referenced_p): Likewise.
21887         (thumb1_expand_prologue): Likewise.
21888         * config/avr/avr.c (avr_option_override): Likewise.
21889         * config/bfin/bfin.c (bfin_option_override): Likewise.
21890         * config/c6x/c6x.c (c6x_option_override): Likewise.
21891         * config/cr16/cr16.c (cr16_override_options): Likewise.
21892         * config/cris/cris.c (cris_option_override): Likewise.
21893         * config/csky/csky.c (csky_handle_isr_attribute): Likewise.
21894         * config/darwin-c.c (macosx_version_as_macro): Likewise.
21895         * config/darwin.c (darwin_override_options): Likewise.
21896         * config/frv/frv.c (frv_expand_builtin): Likewise.
21897         * config/h8300/h8300.c (h8300_option_override): Likewise.
21898         * config/i386/i386.c (parse_mtune_ctrl_str): Likewise.
21899         (ix86_option_override_internal): Likewise.
21900         (warn_once_call_ms2sysv_xlogues): Likewise.
21901         (ix86_expand_prologue): Likewise.
21902         (split_stack_prologue_scratch_regno): Likewise.
21903         (ix86_warn_parameter_passing_abi): Likewise.
21904         * config/ia64/ia64.c (fix_range): Likewise.
21905         * config/m68k/m68k.c (m68k_option_override): Likewise.
21906         * config/microblaze/microblaze.c (microblaze_option_override): Likewise.
21907         * config/mips/mips.c (mips_emit_probe_stack_range): Likewise.
21908         (mips_set_compression_mode): Likewise.
21909         * config/mmix/mmix.c (mmix_option_override): Likewise.
21910         * config/mn10300/mn10300.c (mn10300_option_override): Likewise.
21911         * config/msp430/msp430.c (msp430_option_override): Likewise.
21912         * config/nds32/nds32.c (nds32_option_override): Likewise.
21913         * config/nios2/nios2.c (nios2_custom_check_insns): Likewise.
21914         (nios2_option_override): Likewise.
21915         (nios2_expand_custom_builtin): Likewise.
21916         * config/nvptx/mkoffload.c (main): Likewise.
21917         * config/nvptx/nvptx.c (diagnose_openacc_conflict): Likewise.
21918         * config/pa/pa.c (fix_range): Likewise.
21919         (pa_option_override): Likewise.
21920         * config/riscv/riscv.c (riscv_parse_cpu): Likewise.
21921         (riscv_option_override): Likewise.
21922         * config/rl78/rl78.c (rl78_option_override): Likewise.
21923         * config/rs6000/aix61.h: Likewise.
21924         * config/rs6000/aix71.h: Likewise.
21925         * config/rs6000/aix72.h: Likewise.
21926         * config/rs6000/driver-rs6000.c (elf_platform): Likewise.
21927         * config/rs6000/freebsd64.h: Likewise.
21928         * config/rs6000/linux64.h: Likewise.
21929         * config/rs6000/rs6000.c (rs6000_option_override_internal): Likewise.
21930         (rs6000_expand_zeroop_builtin): Likewise.
21931         (rs6000_expand_mtfsb_builtin): Likewise.
21932         (rs6000_expand_set_fpscr_rn_builtin): Likewise.
21933         (rs6000_expand_set_fpscr_drn_builtin): Likewise.
21934         (rs6000_invalid_builtin): Likewise.
21935         (rs6000_expand_split_stack_prologue): Likewise.
21936         * config/rs6000/rtems.h: Likewise.
21937         * config/rx/rx.c (valid_psw_flag): Likewise.
21938         (rx_expand_builtin): Likewise.
21939         * config/s390/s390-c.c (s390_resolve_overloaded_builtin): Likewise.
21940         * config/s390/s390.c (s390_expand_builtin): Likewise.
21941         (s390_function_profiler): Likewise.
21942         (s390_option_override_internal): Likewise.
21943         (s390_option_override): Likewise.
21944         * config/sh/sh.c (sh_option_override): Likewise.
21945         (sh_builtin_saveregs): Likewise.
21946         (sh_fix_range): Likewise.
21947         * config/sh/vxworks.h: Likewise.
21948         * config/sparc/sparc.c (sparc_option_override): Likewise.
21949         * config/spu/spu.c (spu_option_override): Likewise.
21950         (fix_range): Likewise.
21951         * config/visium/visium.c (visium_option_override): Likewise.
21952         (visium_handle_interrupt_attr): Likewise.
21953         * config/xtensa/xtensa.c (xtensa_option_override): Likewise.
21954         * dbgcnt.c (dbg_cnt_set_limit_by_name): Likewise.
21955         (dbg_cnt_process_opt): Likewise.
21956         * dwarf2out.c (output_dwarf_version): Likewise.
21957         * except.c (expand_eh_return): Likewise.
21958         * gcc.c (defined): Likewise.
21959         (driver_handle_option): Likewise.
21960         (process_command): Likewise.
21961         (compare_files): Likewise.
21962         (driver::prepare_infiles): Likewise.
21963         (driver::do_spec_on_infiles): Likewise.
21964         (driver::maybe_run_linker): Likewise.
21965         * omp-offload.c (oacc_parse_default_dims): Likewise.
21966         * opts-global.c (handle_common_deferred_options): Likewise.
21967         * opts.c (parse_sanitizer_options): Likewise.
21968         (common_handle_option): Likewise.
21969         (enable_warning_as_error): Likewise.
21970         * passes.c (enable_disable_pass): Likewise.
21971         * plugin.c (parse_plugin_arg_opt): Likewise.
21972         (default_plugin_dir_name): Likewise.
21973         * targhooks.c (default_expand_builtin_saveregs): Likewise.
21974         (default_pch_valid_p): Likewise.
21975         * toplev.c (init_asm_output): Likewise.
21976         (process_options): Likewise.
21977         (toplev::run_self_tests): Likewise.
21978         * tree-cfg.c (verify_gimple_call): Likewise.
21979         * tree-inline.c (inline_forbidden_p_stmt): Likewise.
21980         (tree_inlinable_function_p): Likewise.
21981         * var-tracking.c (vt_find_locations): Likewise.
21983 2019-03-11  Andreas Krebbel  <krebbel@linux.ibm.com>
21985         * config/s390/s390.c (s390_expand_builtin): Do the copy_to_reg not
21986         only on the else branch.
21988 2019-03-11  Martin Liska  <mliska@suse.cz>
21990         * gcov.c (output_intermediate_json_line): Print function
21991         name of each line.
21992         (output_json_intermediate_file): Add new argument.
21993         * doc/gcov.texi: Document the change.
21995 2019-03-11  Eric Botcazou  <ebotcazou@adacore.com>
21997         PR rtl-optimization/89588
21998         * loop-unroll.c (decide_unroll_constant_iterations): Make guard for
21999         explicit unrolling factor more robust.
22001 2019-03-11  Richard Biener  <rguenther@suse.de>
22003         PR tree-optimization/89649
22004         * tree-vectorizer.h (vect_loop_versioning): Adjust prototype.
22005         * tree-vect-loop-manip.c (vect_do_peeling): Unset force_vectorize
22006         on the prolog and epilog loops.
22007         (vect_loop_versioning): Return copy of loop.
22008         * tree-vect-loop.c (vect_transform_loop): Unset force_vectorize
22009         on the non-vectorized version of the loop.
22011 2019-03-10  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22013         PR target/68924
22014         * config/i386/sse.md (*vec_extractv2di_0_sse):
22015         Add (=r,x) alternative and corresponding splitter.
22017 2019-03-10  Martin Jambor  <mjambor@suse.cz>
22019         PR tree-optimization/85762
22020         PR tree-optimization/87008
22021         PR tree-optimization/85459
22022         * tree-sra.c (contains_vce_or_bfcref_p): New parameter, set the bool
22023         it points to if there is a type changing MEM_REF.  Adjust all callers.
22024         (build_accesses_from_assign): Disable total scalarization if
22025         contains_vce_or_bfcref_p returns true through the new parameter, for
22026         both rhs and lhs.
22028 2019-03-09  Jakub Jelinek  <jakub@redhat.com>
22030         PR c/88568
22031         * attribs.c (handle_dll_attribute): Don't clear TREE_STATIC for
22032         dllimport on VAR_DECLs with RECORD_TYPE or UNION_TYPE DECL_CONTEXT.
22034         PR target/79645
22035         * common.opt (fdiagnostics-show-labels,
22036         fdiagnostics-show-line-numbers, fdiagnostics-format=,
22037         fdiagnostics-minimum-margin-width=, fgnat-encodings=, gas-loc-support,
22038         gas-locview-support, ginline-points, ginternal-reset-location-views):
22039         Terminate description text with a dot.
22040         * config/microblaze/microblaze.opt (mxl-prefetch): Likewise.
22041         * config/mcore/mcore.opt (m210, m340): Likewise.
22042         * config/epiphany/epiphany.opt (mprefer-short-insn-regs, mcmove,
22043         mnops=): Start description text with a capital letter.
22044         * config/arc/arc.opt (msize-level=): Likewise.
22045         * config/sh/sh.opt (minline-ic_invalidate): Likewise.
22046         * config/rs6000/sysv4.opt (mno-toc, mtoc, mno-traceback, mshlib,
22047         mnewlib): Likewise.
22048         * config/ft32/ft32.opt (msim): Likewise.
22049         (mft32b, mcompress): Likewise.  Terminate description text with a dot.
22050         (mnodiv, mnopm): Terminate description text with a dot.
22051         * config/c6x/c6x.opt (c6x_sdata): Terminate Enum description with
22052         a colon.
22053         * config/i386/i386.opt (prefer_vector_width, instrument_return):
22054         Likewise.
22055         * config/rx/rx.opt (nofpu): Remove trailing spaces from description
22056         text.
22058         PR rtl-optimization/89634
22059         * cfgcleanup.c (thread_jump): Punt if registers mentioned in cond1
22060         are modified in BB_END (e->src) instruction.
22062 2019-03-08  David Malcolm  <dmalcolm@redhat.com>
22064         PR target/79926
22065         * config/i386/i386.c (ix86_set_current_function): Make "sorry"
22066         messages more amenable to translation, and improve wording.
22068 2019-03-08  Bill Schmidt  <wschmidt@linux.ibm.com>
22070         * config/rs6000/rs6000-p8swap.c (rs6000_analyze_swaps): Rebuild
22071         ud- and du-chains between phases.
22073 2019-03-08  Richard Sandiford  <richard.sandiford@arm.com>
22075         PR debug/89631
22076         * dwarf2cfi.c (dwarf2out_frame_debug_expr): Use CONST_POLY_INT
22077         instead of POLY_INT_CST.
22079 2019-03-08  Andre Vieira  <andre.simoesdiasvieira@arm.com>
22081         * config/arm/arm.h (TARGET_FP16_TO_DOUBLE): Add TARGET_VFP_DOUBLE
22082         requirement.
22084 2019-03-08  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22086         PR target/68924
22087         PR target/78782
22088         PR target/87558
22089         * config/i386/emmintrin.h (_mm_loadu_si64): New intrinsic.
22090         (_mm_storeu_si64): Ditto.
22092 2019-03-08  Martin Liska  <mliska@suse.cz>
22094         PR target/86952
22095         * config/i386/i386.c (ix86_option_override_internal): Disable
22096         jump tables when retpolines are used.
22098 2019-03-08  Jan Hubicka  <hubicka@ucw.cz>
22100         PR go/63560
22101         * ipa-split.c (execute_split_functions): Do not split
22102         'noinline' or 'section' function.
22104 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
22106         PR target/79846
22107         * config/s390/s390.c (s390_const_operand_ok): Use %wu instead of
22108         HOST_WIDE_INT_PRINT_UNSIGNED and %wd instead of
22109         HOST_WIDE_INT_PRINT_DEC.  Formatting fixes.
22111         PR ipa/80000
22112         * ipa-devirt.c (compare_virtual_tables): Remove two trailing spaces
22113         from diagnostics.  Formatting fixes.
22115         PR target/85665
22116         * ipa-devirt.c (odr_types_equivalent_p): Fix grammar in
22117         warn_odr diagnostics.
22119         PR other/80058
22120         * lra-constraints.c (process_alt_operands): Avoid one space before
22121         " at the end of line and another after " on another line in a string
22122         literal.
22123         * attribs.c (handle_dll_attribute): Likewise.
22124         * config/avr/avr-devices.c (avr_texinfo): Likewise.
22126         * gimple-ssa-warn-alloca.c (pass_walloca::execute): Don't wrap
22127         warning_at or inform messages in G_() if there is no ?:.
22129         PR tree-optimization/89550
22130         * builtins.c (c_strlen): Only set TREE_NO_WARNING if warning_at
22131         returned true.  Formatting fixes.
22132         (expand_builtin_strnlen): Formatting fixes.
22133         * tree-vrp.c (vrp_prop::check_mem_ref): Only set TREE_NO_WARNING
22134         if warning_at returned true.
22135         * tree-cfg.c (pass_warn_function_return::execute): Likewise.
22137 2019-03-08  Richard Biener  <rguenther@suse.de>
22139         PR middle-end/89578
22140         * cfgloop.h (struct loop): Add owned_clique field.
22141         * cfgloopmanip.c (copy_loop_info): Copy it.
22142         * tree-cfg.c (gimple_duplicate_bb): Do not remap owned_clique
22143         cliques.
22144         * tree-inline.c (copy_loops): Remap owned_clique.
22145         * lto-streamer-in.c (input_cfg): Stream owned_clique.
22146         * lto-streamer-out.c (output_cfg): Likewise.
22148 2019-03-08  Jakub Jelinek  <jakub@redhat.com>
22150         PR target/80190
22151         * config/darwin.c: Include intl.h.
22152         (darwin_build_constant_cfstring): Improve i18n of diagnostics by not
22153         composing the message out of two separate parts.
22155 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
22157         PR target/80003
22158         * config/i386/i386.c (ix86_set_func_type): Make sure diagnostics
22159         doesn't start with a capital letter and doesn't end with a dot.
22160         (ix86_function_arg_boundary): Make sure diagnostics doesn't start
22161         with a capital letter.
22162         (ix86_mangle_function_version_assembler_name): Likewise.
22163         (ix86_generate_version_dispatcher_body): Likewise.
22164         (fold_builtin_cpu): Likewise.
22165         (get_builtin_code_for_version): Likewise.  Remove extraneous space.
22166         (ix86_handle_interrupt_attribute): Make the diagnostics easier for
22167         translators, wrap full type name in %qs.
22169         PR translation/79999
22170         * gimplify.c (gimplify_omp_ordered): Reword diagnostics to talk about
22171         depend clause with source (or sink) modifier.
22172         * omp-expand.c (expand_omp_ordered_sink): Likewise.
22174         PR target/89602
22175         * config/i386/sse.md (avx512f_mov<ssescalarmodelower>_mask,
22176         *avx512f_load<mode>_mask, avx512f_store<mode>_mask): New define_insns.
22177         (avx512f_load<mode>_mask): New define_expand.
22178         * config/i386/i386-builtin.def (__builtin_ia32_loadsd_mask,
22179         __builtin_ia32_loadss_mask, __builtin_ia32_storesd_mask,
22180         __builtin_ia32_storess_mask, __builtin_ia32_movesd_mask,
22181         __builtin_ia32_movess_mask): New builtins.
22182         * config/i386/avx512fintrin.h (_mm_mask_load_ss, _mm_maskz_load_ss,
22183         _mm_mask_load_sd, _mm_maskz_load_sd, _mm_mask_move_ss,
22184         _mm_maskz_move_ss, _mm_mask_move_sd, _mm_maskz_move_sd,
22185         _mm_mask_store_ss, _mm_mask_store_sd): New intrinsics.
22187 2019-03-07  Martin Jambor  <mjambor@suse.cz>
22189         PR lto/87525
22190         * ipa-cp.c (perform_estimation_of_a_value): Account zero time benefit
22191         for extern inline functions.
22193 2019-03-07  Martin Jambor  <mjambor@suse.cz>
22195         PR ipa/88235
22196         * cgraph.h (cgraph_node): New inline method former_thunk_p.
22197         * cgraph.c (cgraph_node::dump): Dump a note if node is a former thunk.
22198         (clone_of_p): Treat expanded thunks like thunks, be optimistic if they
22199         have multiple callees.  At the end check if declarations match as
22200         opposed to cgraph_nodes.
22202 2019-03-07  Martin Liska  <mliska@suse.cz>
22204         * cgraph.c (cgraph_node::verify_node): Verify with a neighbour
22205         which is equivalent to searching for this in clones chain.
22206         * symtab.c (symtab_node::verify_base): Similarly compare ASM
22207         names with a neighbour and special case first node in a chain.
22209 2019-01-25  Jason Merrill  <jason@redhat.com>
22211         PR c++/80916 - spurious "static but not defined" warning.
22212         * gimple-fold.c (can_refer_decl_in_current_unit_p): Return false
22213         for an internal symbol with DECL_EXTERNAL.
22215 2019-04-07  Richard Biener  <rguenther@suse.de>
22217         PR middle-end/89618
22218         * cfgloopmanip.c (copy_loop_info): Copy forgotten fields.
22219         * tree-inline.c (copy_loops): Simplify.
22221 2019-03-07  Martin Liska  <mliska@suse.cz>
22223         * dwarf2out.c (add_AT_vms_delta): Revert function removal.
22225 2019-03-07  Richard Biener  <rguenther@suse.de>
22227         PR tree-optimization/89595
22228         * tree-ssa-dom.c (dom_opt_dom_walker::optimize_stmt): Take
22229         stmt iterator as reference, take boolean output parameter to
22230         indicate whether the stmt was removed and thus the iterator
22231         already advanced.
22232         (dom_opt_dom_walker::before_dom_children): Re-iterate over
22233         stmts created by folding.
22235 2019-03-07  Jakub Jelinek  <jakub@redhat.com>
22237         PR c++/89585
22238         * doc/extend.texi (Basic Asm): Document qualifiers are not allowed
22239         at toplevel.
22241 2019-03-06  Peter Bergner  <bergner@linux.ibm.com>
22243         PR rtl-optimization/88845
22244         * config/rs6000/rs6000.c (rs6000_emit_move_si_sf_subreg): Enable during
22245         LRA.
22246         * lra.c (remove_scratches_1): New function.
22247         (remove_scratches): Use it.
22248         (lra_emit_move): Likewise.
22250 2019-03-06  Claudiu Zissulescu  <claziss@synopsys.com>
22252         * config/arc/arc-c.def (__ARC_UNALIGNED__): Set it on
22253         unaligned_access variable.
22254         * config/arc/arc.c (arc_override_options): Set unaligned access
22255         default on for HS CPUs.
22256         * config/arc/arc.h (STRICT_ALIGNMENT): Fix logic.
22258 2019-03-06  Martin Liska  <mliska@suse.cz>
22260         PR gcov-profile/89577
22261         * doc/gcov.texi: Prefer to use --coverage.
22262         * doc/sourcebuild.texi: Likewise.
22264 2019-03-02  Jason Merrill  <jason@redhat.com>
22266         PR c++/86485 - -Wmaybe-unused with empty class ?:
22267         * gimplify.c (gimplify_cond_expr): Use INIT_EXPR.
22269 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
22271         PR target/89587
22272         * config/rs6000/t-linux (MULTIARCH_DIRNAME): Set to non-empty only
22273         if_multiarch.
22275         PR middle-end/89590
22276         * builtins.c (maybe_emit_free_warning): Punt if free doesn't have
22277         exactly one argument.
22279 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
22280             Richard Sandiford  <richard.sandiford@arm.com>
22282         PR tree-optimization/89570
22283         * match.pd (vec_cond into cond_op simplification): Don't use
22284         get_conditional_internal_fn, use as_internal_fn (cond_op).
22286 2019-03-05  Wilco Dijkstra  <wdijkstr@arm.com>
22288         PR target/89222
22289         * config/arm/arm.md (movsi): Use targetm.cannot_force_const_mem
22290         to decide when to split off a non-zero offset from a symbol.
22291         * config/arm/arm.c (arm_cannot_force_const_mem): Disallow offsets
22292         in function symbols.
22294 2019-03-05  Richard Biener  <rguenther@suse.de>
22296         PR tree-optimization/89594
22297         * tree-if-conv.c (pass_if_conversion::execute): Handle
22298         case where .LOOP_VECTORIZED_FUNCTION was removed.
22300 2019-03-05  Jakub Jelinek  <jakub@redhat.com>
22302         PR bootstrap/89560
22303         * fold-const.c (fold_checksum_tree): Don't use fixed size buffer,
22304         instead alloca it only when needed with the needed size.
22306         PR tree-optimization/89570
22307         * match.pd (vec_cond into cond_op simplification): Guard with
22308         vectorized_internal_fn_supported_p test and #if GIMPLE.
22310         PR tree-optimization/89566
22311         * gimple-ssa-sprintf.c (sprintf_dom_walker::handle_gimple_call):
22312         Set info.fncode to BUILT_IN_NONE if gimple_call_builtin_p failed.
22313         Punt if get_user_idx_format succeeds, but idx_format argument is
22314         not provided or doesn't have pointer type, or if idx_args is above
22315         number of provided arguments.
22317 2019-03-04  Wilco Dijkstra  <wdijkstr@arm.com>
22319         PR tree-optimization/89437
22320         * match.pd: Use lt in sin(atan(x)) and cos(atan(x)) simplifications.
22322 2019-03-04  Richard Biener  <rguenther@suse.de>
22324         PR middle-end/89572
22325         * tree-scalar-evolution.c: (get_loop_exit_condition): Use
22326         safe_dyn_cast.
22328 2019-03-04  Bin Cheng  <bin.cheng@linux.alibaba.com>
22330         PR tree-optimization/89487
22331         * tree-loop-distribution.c (has_nonaddressable_dataref_p): New.
22332         (create_rdg_vertices): Compute has_nonaddressable_dataref_p.
22333         (distribute_loop): Don't do runtime alias check if there is non-
22334         addressable data reference.
22335         * tree-ssa-loop-ivopts.c (may_be_nonaddressable_p): Check if VAR_DECL
22336         is a register variable.
22338 2019-03-02  Jakub Jelinek  <jakub@redhat.com>
22340         PR target/89506
22341         * config/arm/arm.md (cmpsi2_addneg): Use
22342         trunc_int_for_mode (-INTVAL (...), SImode) instead of -INTVAL (...).
22343         If operands[2] is 0 or INT_MIN, force use of subs.
22344         (*compare_scc splitter): Use gen_int_mode.
22345         (*negscc): Likewise.
22346         * config/arm/thumb2.md (*thumb2_negscc): Likewise.
22348 2019-03-01  Kito Cheng  <kito.cheng@gmail.com>
22349             Monk Chiang  <sh.chiang04@gmail.com>
22351         * common/config/riscv/riscv-common.c: Include sstream.
22352         (riscv_subset_list::to_string): New.
22353         (riscv_arch_str): Likewise.
22354         * config.gcc (riscv*-*-*): Handle --with-riscv-attribute=
22355         * config.in: Regen.
22356         * config/riscv/riscv-protos.h (riscv_arch_str): New.
22357         * config/riscv/riscv.c (INCLUDE_STRING): Defined.
22358         (riscv_emit_attribute): New.
22359         (riscv_file_start): Emit attribute if needed.
22360         (riscv_option_override): Init riscv_emit_attribute_p.
22361         * config/riscv/riscv.opt (mriscv-attribute): New option.
22362         * configure.ac (riscv*-*-*): Check binutils is supporting ELF
22363         * configure: Regen.
22364         * doc/install.texi: Document --with-riscv-attribute.
22365         * doc/invoke.texi: Document -mriscv-attribute.
22367         * common/config/riscv/riscv-common.c:
22368         Include config/riscv/riscv-protos.h.
22369         (INCLUDE_STRING): Defined.
22370         (RISCV_DONT_CARE_VERSION): Defined.
22371         (riscv_subset_t): Declare.
22372         (riscv_subset_t::riscv_subset_t): New.
22373         (riscv_subset_list): Declare.
22374         (riscv_subset_list::riscv_subset_list): New.
22375         (riscv_subset_list::~riscv_subset_list): Likewise.
22376         (riscv_subset_list::parsing_subset_version): Likewise.
22377         (riscv_subset_list::parse_std_ext): Likewise.
22378         (riscv_subset_list::parse_sv_or_non_std_ext): Likewise.
22379         (riscv_subset_list::add): Likewise.
22380         (riscv_subset_list::lookup): Likewise.
22381         (riscv_subset_list::xlen): Likewise.
22382         (riscv_subset_list::parse): Likewise.
22383         (riscv_supported_std_ext): Likewise.
22384         (current_subset_list): Likewise.
22385         (riscv_parse_arch_string): Using riscv_subset_list::parse to
22386         parse.
22388 2019-03-01  Segher Boessenkool  <segher@kernel.crashing.org>
22390         * config/rs6000/rs6000.c (rs6000_option_override_internal): If
22391         rs6000_dejagnu_cpu_index is set, use that to override rs6000_cpu_index.
22392         * config/rs6000/rs6000.opt (mdejagnu-cpu=): New option.
22394 2019-03-01  Alexander Monakov  <amonakov@ispras.ru>
22396         PR rtl-optimization/85899
22397         * haifa-sched.c (find_fallthru_edge_from): Relax assert to account for
22398         fallthru edges leading to the exit block.
22400 2019-03-01  Tamar Christina  <tamar.christina@arm.com>
22402         PR target/89517
22403         * config/aarch64/aarch64-option-extensions.def (fp, simd, crypto, fp16,
22404         rdma, dotprod, sha2, sha3, sm4, fp16fml, sve): Collapse line.
22406 2019-03-01  Richard Sandiford  <richard.sandiford@arm.com>
22408         PR tree-optimization/89535
22409         * tree-vect-stmts.c (vectorizable_call): Record the vector types
22410         for each operand.  Calculate the fallback choice for mask operands
22411         and pass it to vect_get_vec_def_for_operand.
22413 2019-03-01  Richard Biener  <rguenther@suse.de>
22415         PR middle-end/89541
22416         * tree-ssa-operands.c (add_stmt_operand): CONST_DECL may
22417         get virtual operands.
22418         (get_expr_operands): Handle CONST_DECL like other decls.
22420 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
22422         PR middle-end/89503
22423         * fold-const.c (fold_checksum_tree): Ignore TREE_NO_WARNING bit
22424         on DECL_P and EXPR_P.
22426 2019-03-01  Richard Biener  <rguenther@suse.de>
22428         PR middle-end/89497
22429         * tree-cfgcleanup.h (cleanup_tree_cfg): Add SSA update flags
22430         argument, defaulted to zero.
22431         * passes.c (execute_function_todo): Pass down SSA update flags
22432         to cleanup_tree_cfg.
22433         * tree-cfgcleanup.c: Include tree-into-ssa.h and tree-cfgcleanup.h.
22434         (cleanup_tree_cfg_noloop): After cleanup_control_flow_pre update SSA
22435         form if requested.
22436         (cleanup_tree_cfg): Get and pass down SSA update flags.
22438 2019-03-01  Jakub Jelinek  <jakub@redhat.com>
22440         PR bootstrap/89539
22441         * dwarf2out.c (output_comdat_type_unit): Add ATTRIBUTE_UNUSED to
22442         early_lto_debug argument.
22444 2019-02-28  Eric Botcazou  <ebotcazou@adacore.com>
22446         PR tree-optimization/89536
22447         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_NOT_EXPR>: Test
22448         only whether bit #0 of the value is 0 instead of the entire value.
22450 2019-02-28  Marek Polacek  <polacek@redhat.com>
22452         PR c++/87068 - missing diagnostic with fallthrough statement.
22453         * gimplify.c (expand_FALLTHROUGH_r): If IFN_FALLTHROUGH was found
22454         at the end of a seq, save its location to walk_stmt_info.
22455         (expand_FALLTHROUGH): Warn if IFN_FALLTHROUGH is at the end of
22456         a switch.
22458 2019-02-28  Jan Hubicka  <hubicka@ucw.cz>
22460         PR lto/88585
22461         * tree.c (find_atomic_core_type): Move ahead in file.
22462         (check_base_type): Correctly compare alignments of atomic types.
22464 2019-02-28  H.J. Lu  <hongjiu.lu@intel.com>
22466         PR target/89455
22467         * config/i386/i386.c (get_builtin_code_for_version): Identify
22468         Westmere from PCLMUL, instead of AES.
22470 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
22472         PR target/89434
22473         * config/arm/arm.md (*subsi3_carryin_compare_const): Use
22474         trunc_int_for_mode (-INTVAL (...), SImode), just instead of
22475         -UINTVAL (...).
22477 2019-02-28  Tamar Christina  <tamar.christina@arm.com>
22479         PR target/88530
22480         * config/aarch64/aarch64-option-extensions.def: Document it.
22481         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Skip feature
22482         if empty hwcaps.
22484 2019-02-28  Jakub Jelinek  <jakub@redhat.com>
22486         PR c/89520
22487         * convert.c (convert_to_real_1, convert_to_integer_1): Punt for
22488         builtins if they don't have a single scalar floating point argument.
22489         Formatting fixes.
22491 2019-02-27  Bernd Edlinger  <bernd.edlinger@hotmail.de>
22493         PR rtl-optimization/89490
22494         * varasm.c (get_block_for_section): Bail out for mergeable sections.
22495         (default_use_anchors_for_symbol_p, output_object_block): Assert the
22496         block section is not mergeable.
22498 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
22500         PR target/70341
22501         * config/arm/arm.md (arm_casesi_internal): New define_expand.  Rename
22502         old define_insn to ...
22503         (*arm_casesi_internal): ... this.  Add mode to LABEL_REFs.
22504         * config/arm/thumb2.md (thumb2_casesi_internal): New define_expand.
22505         Rename old define_insn to ...
22506         (*thumb2_casesi_internal): ... this.  Add mode to LABEL_REFs.
22507         (thumb2_casesi_internal_pic): New define_expand.  Rename old
22508         define_insn to ...
22509         (*thumb2_casesi_internal_pic): ... this.  Add mode to LABEL_REFs.
22510         * config/aarch64/aarch64.md (casesi): Create the casesi_dispatch
22511         MEM manually here, set MEM_READONLY_P and MEM_NOTRAP_P on it.
22513 2019-02-27  Richard Biener  <rguenther@suse.de>
22515         PR debug/88878
22516         * dwarf2out.c (use_debug_types): Disable when in_lto_p.
22518 2019-02-27  Richard Biener  <rguenther@suse.de>
22520         * passes.c (should_skip_pass_p): Do not skip cgraph-edge
22521         building.
22523 2019-02-27  Richard Biener  <rguenther@suse.de>
22525         PR debug/88878
22526         * dwarf2out.c (output_comdat_type_unit): Add early_lto_debug
22527         parameter, prefix section name with .gnu.debuglto_ if true.
22528         (dwarf2out_finish): Pass false to output_comdat_type_unit.
22529         (dwarf2out_early_finish): Pass true to output_comdat_type_unit.
22531 2019-02-27  Richard Biener  <rguenther@suse.de>
22533         PR debug/89514
22534         * dwarf2out.c (size_of_die): Key on AT_ref (a)->comdat_type_p
22535         rather than on use_debug_types, doing what output_die does.
22536         (value_format): Likewise.
22538 2019-02-27  Martin Jambor  <mjambor@suse.cz>
22539             Martin Sebor  <msebor@redhat.com>
22541         * doc/invoke.texi (Warning Options): Reword description of
22542         -Wno-absolute-value.
22544 2019-02-27  Jakub Jelinek  <jakub@redhat.com>
22546         PR tree-optimization/89280
22547         * tree-cfgcleanup.c (maybe_dead_abnormal_edge_p,
22548         builtin_setjmp_setup_bb): New functions.
22549         (cleanup_control_flow_pre): Ignore maybe_dead_abnormal_edge_p edges.
22550         When visiting __builtin_setjmp_setup block, queue in special
22551         setjmp_vec vector edges from .ABNORMAL_DISPATCHER to corresponding
22552         __builtin_setjmp_receiver.  Remove .ABNORMAL_DISPATCHER basic blocks
22553         from visited after the loop if they don't have any visited successor
22554         blocks.
22556 2018-02-26  Steve Ellcey  <sellcey@marvell.com>
22558         * config/aarch64/aarch64.c (aarch64_get_multilib_abi_name):
22559         New function.
22560         (TARGET_GET_MULTILIB_ABI_NAME): New macro.
22562 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
22564         PR c++/89507
22565         * tree.c (valid_constant_size_p): Deal with size INTEGER_CSTs
22566         with types other than sizetype/ssizetype.
22568 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
22570         * config/sparc/sparc-opts.h (enum processor_type): Rename to...
22571         (enum sparc_processor_type): ...this.
22572         (enum sparc_code_model_type): New enumeration type.
22573         (enum sparc_memory_model_type): Tweak comments.
22574         * config/sparc/sparc.opt (mcpu): Adjust to above renaming.
22575         (mtune): Likewise.
22576         (mcmodel): Use sparc_code_model enumeration and variable.
22577         (sparc_code_model): New enumeration.
22578         (mdebug): Add Undocumented marker.
22579         * config/sparc/sparc.h (enum cmodel): Delete.
22580         (sparc_cmodel): Likewise.
22581         (TARGET_CM_MEDLOW): Adjust to above renaming.
22582         (TARGET_CM_MEDMID): Likewise.
22583         (TARGET_CM_MEDANY): Likewise.
22584         (TARGET_CM_EMBMEDANY): Likewise.
22585         * config/sparc/sparc.c (sparc_cmodel): Delete.
22586         (sparc_option_override): Remove string/value mapping support for the
22587         code model.  Move code and memory model support to after the handling
22588         of target flags.  Do private machine setup last.
22589         (sparc_emit_set_symbolic_const64): Use sparc_code_model.
22590         (sparc_legitimize_reload_address): Likewise.
22591         (sparc_output_mi_thunk): Likewise.
22592         * config/sparc/sparc.md (cpu): Adjust comment to above renaming.
22594 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
22596         PR tree-optimization/89500
22597         * tree-ssa-strlen.c (stridx_strlenloc): Adjust comment.
22598         (handle_builtin_strlen): Remove noncst_bound variable.  Always
22599         optimize strnlen (x, 0) to 0.  Optimize strnlen (x, cst) to
22600         cst if the first cst bytes starting at x are known to be non-zero,
22601         even if the string is not zero terminated.  Don't try to modify
22602         *si for strnlen.  Update strlen_to_stridx only for strlen or if
22603         we can prove strnlen returns the same value as strlen would.
22605 2019-02-26  Martin Liska  <mliska@suse.cz>
22607         * alloc-pool.h (struct pool_usage): Remove extra
22608         print_dash_line.
22609         * bitmap.h (struct bitmap_usage): Likewise.
22610         * ggc-common.c (struct ggc_usage): Likewise.
22611         * mem-stats.h (struct mem_usage): Likewise.
22612         (mem_alloc_description::dump): Print dash lines
22613         here and repeat header at the end of a table report.
22614         It's then more readable.
22615         * tree-phinodes.c (phinodes_print_statistics): Make
22616         horizontal alignment.
22617         * tree-ssanames.c (ssanames_print_statistics): Likewise.
22618         * vec.c (struct vec_usage): Remove extra print_dash_line.
22619         * vec.h (vec_safe_grow_cleared): Pass PASS_MEM_STAT.
22621 2019-02-26  UroÅ¡ Bizjak  <ubizjak@gmail.com>
22623         * doc/extend.texi (__builtin_object_size):
22624         Use @pxref instead of @xref inside parenthesis.
22625         (__builtin_has_attribute): Add missing comma after @xref.
22626         (__builtin_object_size): Ditto.
22627         * doc/md.texi (cond_*{mode}): Use @samp instead of @var around op1[i].
22629 2019-02-26  Jeff Law  <law@redhat.com>
22631         PR rtl-optimization/87761
22632         * regcprop.c (copyprop_hardreg_forward_1): Use REG_UNUSED notes to
22633         detect obviously dead insns and delete them.
22635 2019-02-26  Richard Biener  <rguenther@suse.de>
22637         PR tree-optimization/89505
22638         * tree-ssa-structalias.c (compute_dependence_clique): Make sure
22639         to handle restrict pointed-to vars with multiple subvars
22640         correctly.
22642 2019-02-26  Richard Biener  <rguenther@suse.de>
22644         PR tree-optimization/89489
22645         * tree-parloops.c (create_loop_fn): Copy over last_clique.
22647 2019-02-26  Eric Botcazou  <ebotcazou@adacore.com>
22649         * tree-ssa-dom.c (edge_info::derive_equivalences) <BIT_IOR_EXPR>: Fix
22650         and move around comment.
22651         <BIT_AND_EXPR>: Likewise.
22652         <BIT_NOT_EXPR>: Add specific handling for boolean types.
22654 2019-02-26  Jakub Jelinek  <jakub@redhat.com>
22656         PR target/89474
22657         * config/i386/i386.c (remove_partial_avx_dependency): Call
22658         df_analyze etc. before creation of the v4sf_const0 pseudo, rather than
22659         after changing possibly many instructions to use that pseudo.  Fix up
22660         insertion of v4sf_const0 setter at the start of bb.
22662 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
22664         PR c/80409
22665         * doc/extend.texi (Variadic Pointer Args): New section.
22667 2019-02-25  Sandra Loosemore  <sandra@codesourcery.com>
22668             Martin Sebor  <msebor@gmail.com>
22670         * common.opt (Wattribute-alias): Likewise.
22671         * doc/invoke.texi (Option Summary): List general form of
22672         -Wattribute-alias=.  List positive form of -Wmissing-attributes.
22673         (-Wmissing-attributes): Invert entry, rewrite and correct default.
22674         Add cross-references.
22675         (-Wattribute-alias): Rewrite and correct default.  Mention
22676         considered attributes (same as for -Wmissing-attributes).
22678 2019-02-25  Paul A. Clarke  <pc@us.ibm.com>
22680         * config/rs6000/emmintrin.h (_mm_cvtpd_epi32): Fix big endian.
22681         (_mm_cvtpd_ps): Likewise.
22682         (_mm_cvttpd_epi32): Likewise.
22684         PR target/89338
22685         * config/rs6000/xmmintrin.h (_mm_cvtss_f32): Fix type mismatch.
22686         (_mm_cvt_ss2si): Fix type mismatch and 32-bit.
22688         PR target/89339
22689         * config/rs6000/xmmintrin.h (_mm_movemask_pi8): Fix 32-bit.
22691 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
22693         PR target/88530
22694         * common/config/aarch64/aarch64-common.c
22695         (struct aarch64_option_extension): Add is_synthetic.
22696         (all_extensions): Use it.
22697         (TARGET_OPTION_INIT_STRUCT): Define hook.
22698         (struct gcc_targetm_common): Moved to end.
22699         (all_extensions_by_on): New.
22700         (opt_ext_cmp, typedef opt_ext): New.
22701         (aarch64_option_init_struct): New.
22702         (aarch64_contains_opt): New.
22703         (aarch64_get_extension_string_for_isa_flags): Output smallest set.
22704         * config/aarch64/aarch64-option-extensions.def
22705         (AARCH64_OPT_EXTENSION): Explicitly include AES and SHA2 in crypto.
22706         (fp, simd, crc, lse, fp16, rcpc, rdma, dotprod, aes, sha2, sha3,
22707         sm4, fp16fml, sve, profile, rng, memtag, sb, ssbs, predres):
22708         Set is_synthetic to false.
22709         (crypto): Set is_synthetic to true.
22710         * config/aarch64/driver-aarch64.c (AARCH64_OPT_EXTENSION): Add
22711         SYNTHETIC.
22713 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
22715         * config/arm/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22716         vfmlal_high_u32, vfmlsl_high_u32, vfmlalq_low_u32, vfmlslq_low_u32,
22717         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22718         vfmlal_lane_high_u32, vfmlalq_laneq_low_u32, vfmlalq_lane_low_u32,
22719         vfmlal_laneq_low_u32, vfmlalq_laneq_high_u32, vfmlalq_lane_high_u32,
22720         vfmlal_laneq_high_u32, vfmlsl_lane_low_u32, vfmlsl_lane_high_u32,
22721         vfmlslq_laneq_low_u32, vfmlslq_lane_low_u32, vfmlsl_laneq_low_u32,
22722         vfmlslq_laneq_high_u32, vfmlslq_lane_high_u32, vfmlsl_laneq_high_u32):
22723         Rename ...
22724         (vfmlal_low_f16, vfmlsl_low_f16, vfmlal_high_f16, vfmlsl_high_f16,
22725         vfmlalq_low_f16, vfmlslq_low_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22726         vfmlal_lane_low_f16, vfmlal_lane_high_f16, vfmlalq_laneq_low_f16,
22727         vfmlalq_lane_low_f16, vfmlal_laneq_low_f16, vfmlalq_laneq_high_f16,
22728         vfmlalq_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_lane_low_f16,
22729         vfmlsl_lane_high_f16, vfmlslq_laneq_low_f16, vfmlslq_lane_low_f16,
22730         vfmlsl_laneq_low_f16, vfmlslq_laneq_high_f16, vfmlslq_lane_high_f16,
22731         vfmlsl_laneq_high_f16): ... To this.
22732         * config/arm/neon.md: Update comments.
22734 2019-02-25  Tamar Christina  <tamar.christina@arm.com>
22736         * config/aarch64/arm_neon.h (vfmlal_low_u32, vfmlsl_low_u32,
22737         vfmlalq_low_u32, vfmlslq_low_u32, vfmlal_high_u32, vfmlsl_high_u32,
22738         vfmlalq_high_u32, vfmlslq_high_u32, vfmlal_lane_low_u32,
22739         vfmlsl_lane_low_u32, vfmlal_laneq_low_u32, vfmlsl_laneq_low_u32,
22740         vfmlalq_lane_low_u32, vfmlslq_lane_low_u32, vfmlalq_laneq_low_u32,
22741         vfmlslq_laneq_low_u32, vfmlal_lane_high_u32, vfmlsl_lane_high_u32,
22742         vfmlal_laneq_high_u32, vfmlsl_laneq_high_u32, vfmlalq_lane_high_u32,
22743         vfmlslq_lane_high_u32, vfmlalq_laneq_high_u32, vfmlslq_laneq_high_u32):
22744         Rename ...
22745         (vfmlal_low_f16, vfmlsl_low_f16, vfmlalq_low_f16, vfmlslq_low_f16,
22746         vfmlal_high_f16, vfmlsl_high_f16, vfmlalq_high_f16, vfmlslq_high_f16,
22747         vfmlal_lane_low_f16, vfmlsl_lane_low_f16, vfmlal_laneq_low_f16,
22748         vfmlsl_laneq_low_f16, vfmlalq_lane_low_f16, vfmlslq_lane_low_f16,
22749         vfmlalq_laneq_low_f16, vfmlslq_laneq_low_f16, vfmlal_lane_high_f16,
22750         vfmlsl_lane_high_f16, vfmlal_laneq_high_f16, vfmlsl_laneq_high_f16,
22751         vfmlalq_lane_high_f16, vfmlslq_lane_high_f16, vfmlalq_laneq_high_f16,
22752         vfmlslq_laneq_high_f16): ... To this.
22754 2019-02-25  Alexander Monakov  <amonakov@ispras.ru>
22756         PR rtl-optimization/86096
22757         * df-scan.c (df_mw_compare): Do not check mw_reg fields when
22758         comparing mw_order values.
22760 2019-02-25  Jakub Jelinek  <jakub@redhat.com>
22762         PR target/89434
22763         * config/arm/arm.md (*subsi3_carryin_const): Use
22764         arm_neg_immediate_operand predicate instead of
22765         arm_not_immediate_operand, "L" constraint instead of "K" and
22766         print it using %n2 instead of %B2.
22767         (*subsi3_carryin_const0): New define_insn.
22768         (*subsi3_carryin_compare_const): Use const_int_I_operand predicate
22769         instead of arm_not_operand and "I" constraint instead of "K" and
22770         print it using %n3 instead of %B2.  Instead of using match_dup 2 add
22771         another match_operand and in the condition check that it is negation
22772         of operands[2].
22773         (*subsi3_carryin_compare_const0): New define_ins.
22774         (*subdi_di_zesidi): Adjust to use *subsi3_carryin_const0 instead of
22775         *subsi3_carryin_const.
22776         (*arm_cmpdi_insn): Fix splitting into *subsi3_carryin_compare_const,
22777         split into *subsi3_carryin_compare_const0 if the highpart is zero.
22779         PR target/89438
22780         * config/arm.vfp.md (*negdf2_vfp): Use
22781         gen_int_mode (0x80000000, SImode) instead of GEN_INT (0x80000000).
22782         * config/arm/neon.md (neon_copysignf<mode>): Likewise.
22784 2019-02-24  Jakub Jelinek  <jakub@redhat.com>
22786         PR rtl-optimization/89445
22787         * simplify-rtx.c (simplify_ternary_operation): Don't use
22788         simplify_merge_mask on operands that may trap.
22789         * rtlanal.c (may_trap_p_1): Use FLOAT_MODE_P instead of
22790         SCALAR_FLOAT_MODE_P checks.  For integral division by zero, if
22791         second operand is CONST_VECTOR, check if any element could be zero.
22792         Don't expect traps for VEC_{MERGE,SELECT,CONCAT,DUPLICATE} unless
22793         their operands can trap.
22795 2019-02-23  Martin Sebor  <msebor@redhat.com>
22797         * gimple-ssa-sprintf.c (target_strtol): Rename...
22798         (target_strtohwi): ...to this.  Handle values up to HOST_WIDE_INT_MAX.
22799         (parse_directive): Adjust to name change.  Use HOST_WIDE_INT_MAX to
22800         check for range error.
22802 2019-02-23  H.J. Lu  <hongjiu.lu@intel.com>
22804         PR driver/69471
22805         * opts-common.c (prune_options): Also prune joined switches
22806         with Negative and RejectNegative.
22807         * config/i386/i386.opt (march=): Add Negative(march=).
22808         (mtune=): Add Negative(mtune=).
22809         * doc/options.texi: Document Negative used together with Joined
22810         and RejectNegative.
22812 2019-02-22  Martin Sebor  <msebor@redhat.com>
22814         * doc/extend.texi (Other Builtins): Add
22815         __builtin_is_constant_evaluated.
22817 2019-02-22  Richard Biener  <rguenther@suse.de>
22819         PR tree-optimization/87609
22820         * tree-cfg.c (gimple_duplicate_bb): Only remap inlined cliques.
22822 2019-02-22  Jeff Law  <law@redhat.com>
22824         PR rtl-optimization/87761
22825         * config/mips/mips.md: Add new combiner pattern to recognize
22826         a bitfield extraction using (ashiftrt (truncate (ashift (...)))).
22828 2019-02-22  Matthew Malcomson  <matthew.malcomson@arm.com>
22830         PR target/89324
22831         * config/aarch64/aarch64.md: Use aarch64_general_reg predicate on
22832         destination register in peepholes generating patterns for ADDS/SUBS.
22833         (add<mode>3_compare0,
22834         *addsi3_compare0_uxtw, add<mode>3_compareC,
22835         add<mode>3_compareV_imm, add<mode>3_compareV,
22836         *adds_<optab><ALLX:mode>_<GPI:mode>,
22837         *subs_<optab><ALLX:mode>_<GPI:mode>,
22838         *adds_<optab><ALLX:mode>_shift_<GPI:mode>,
22839         *subs_<optab><ALLX:mode>_shift_<GPI:mode>,
22840         *adds_<optab><mode>_multp2, *subs_<optab><mode>_multp2,
22841         *sub<mode>3_compare0, *subsi3_compare0_uxtw,
22842         sub<mode>3_compare1): Allow stack pointer for source register.
22843         * config/aarch64/predicates.md (aarch64_general_reg): New predicate.
22845 2019-02-22  Martin Sebor  <msebor@redhat.com>
22847         PR tree-optimization/88993
22848         PR tree-optimization/88853
22849         * gimple-ssa-sprintf.c (sprintf_dom_walker::call_info::is_file_func):
22850         New helper.
22851         (sprintf_dom_walker::call_info::is_string_func): New helper.
22852         (format_directive): Only issue "may exceed" 4095/INT_MAX warnings
22853         for formatted string functions.
22854         (sprintf_dom_walker::handle_gimple_call): Fix a typo in a comment.
22856 2019-02-22  Martin Sebor  <msebor@redhat.com>
22858         PR c/89425
22859         * c-parser.c (sizeof_ptr_memacc_comptypes): Avoid warning in
22860         unreachable subexpressions.
22862 2019-02-22  H.J. Lu  <hongjiu.lu@intel.com>
22863             Hongtao Liu  <hongtao.liu@intel.com>
22864             Sunil K Pandey  <sunil.k.pandey@intel.com>
22866         PR target/87007
22867         * config/i386/i386-passes.def: Add
22868         pass_remove_partial_avx_dependency.
22869         * config/i386/i386-protos.h
22870         (make_pass_remove_partial_avx_dependency): New.
22871         * config/i386/i386.c (make_pass_remove_partial_avx_dependency):
22872         New function.
22873         (pass_data_remove_partial_avx_dependency): New.
22874         (pass_remove_partial_avx_dependency): Likewise.
22875         (make_pass_remove_partial_avx_dependency): Likewise.
22876         * config/i386/i386.md (avx_partial_xmm_update): New attribute.
22877         (*extendsfdf2): Add avx_partial_xmm_update.
22878         (truncdfsf2): Likewise.
22879         (*float<SWI48:mode><MODEF:mode>2): Likewise.
22880         (SF/DF conversion splitters): Disabled for TARGET_AVX.
22882 2019-02-22  Aldy Hernandez  <aldyh@redhat.com>
22884         PR middle-end/85598
22885         * gimple-ssa-sprintf.c (pass_sprintf_length::execute): Enable loop
22886         analysis for pass.
22888 2019-02-22  Thiago Macieira  <thiago.macieira@intel.com>
22890         PR target/89444
22891         * config/i386/i386.h (PTA_WESTMERE): Remove PTA_AES.
22892         (PTA_SKYLAKE): Add PTA_AES.
22893         (PTA_GOLDMONT): Likewise.
22895 2019-02-22  Sudakshina Das  <sudi.das@arm.com>
22897         * config/aarch64/aarch64.c (aarch64_output_mi_thunk): Add bti
22898         instruction if enabled.
22899         (aarch64_override_options): Remove reference to return address key.
22901 2019-02-22  Richard Biener  <rguenther@suse.de>
22903         PR tree-optimization/89440
22904         * tree-vect-loop.c (vect_create_epilog_for_reduction): Remove
22905         not necessary assert.
22907 2019-02-22  Thomas Schwinge  <thomas@codesourcery.com>
22909         PR fortran/72741
22910         * omp-general.c (oacc_replace_fn_attrib): Mostly split out into...
22911         (oacc_replace_fn_attrib_attr): ... this new function.
22912         * omp-general.h (oacc_replace_fn_attrib_attr): New prototype.
22913         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Revert workaround.
22915 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22917         * config/arm/arm-cpus.in (ares): Rename to...
22918         (neoverse-n1): ... This.  Add ares as alias.
22919         * config/arm/arm-tables.opt: Regenerate.
22920         * config/arm/arm-tune.md: Likewise.
22921         * doc/invoke.txt (ARM Options): Document neoverse-n1.
22923 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22925         * config/aarch64/aarch64-cores.def (neoverse-e1): Define.
22926         * config/aarch64/aarch64-tune.md: Regenerate.
22927         * doc/invoke.texi (AArch64 Options): Document neoverse-e1 -mcpu option.
22929 2019-02-22  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
22931         * config/aarch64/aarch64.c (ares_tunings): Rename to...
22932         (neoversen1_tunings): ... This.
22933         * config/aarch64/aarch64-cores.def (ares): Change tuning to the above.
22934         (neoverse-n1): New CPU.
22935         * config/aarch64/aarch64-tune.md: Regenerate.
22936         * doc/invoke.txt (AArch64 Options): Document neoverse-n1.
22938 2019-02-22  Richard Biener  <rguenther@suse.de>
22940         PR middle-end/87609
22941         * cfghooks.h (dependence_hash): New typedef.
22942         (struct copy_bb_data): New type.
22943         (cfg_hooks::duplicate_block): Adjust to take a copy_bb_data argument.
22944         (duplicate_block): Likewise.
22945         * cfghooks.c (duplicate_block): Pass down copy_bb_data.
22946         (copy_bbs): Create and pass down copy_bb_data.
22947         * cfgrtl.c (cfg_layout_duplicate_bb): Adjust.
22948         (rtl_duplicate_bb): Likewise.
22949         * tree-cfg.c (gimple_duplicate_bb): If the copy_bb_data arg is not NULL
22950         remap dependence info.
22952 2019-02-22  Richard Biener  <rguenther@suse.de>
22954         PR tree-optimization/87609
22955         * tree-core.h (tree_base): Document special clique values.
22956         * tree-inline.c (remap_dependence_clique): Do not use the
22957         special clique value of one.
22958         (maybe_set_dependence_info): Use clique one.
22959         (clear_dependence_clique): New callback.
22960         (compute_dependence_clique): Clear clique one from all refs
22961         before assigning it (again).
22963 2019-02-21  Martin Sebor  <msebor@redhat.com>
22965         * doc/extend.texi (__clear_cache): Correct signature.
22967 2019-02-21  Ian Lance Taylor  <iant@golang.org>
22969         PR go/89170
22970         * varasm.c (decode_addr_const): Call lookup_constant_def rather
22971         than output_constant_def.
22972         (add_constant_to_table): New static function.
22973         (output_constant_def): Call add_constant_to_table.
22974         (tree_output_constant_def): Likewise.
22976 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
22978         PR c++/89285
22979         * builtins.c (fold_builtin_arith_overflow): If first two args are
22980         INTEGER_CSTs, set intres and ovfres to constants rather than calls
22981         to ifn.
22983 2019-02-21  H.J. Lu  <hongjiu.lu@intel.com>
22985         PR target/87412
22986         * config/i386/i386.c (ix86_set_indirect_branch_type): Issue an
22987         error for -mindirect-branch/-mfunction-return with incompatible
22988         -fcf-protection.
22990 2019-02-21  Jakub Jelinek  <jakub@redhat.com>
22992         PR bootstrap/88714
22993         * constraints.md (q): Remove.
22994         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use rk constraint
22995         instead of q.
22997 2019-02-21  Martin Jambor  <mjambor@suse.cz>
22999         PR hsa/89302
23000         * omp-general.c (omp_extract_for_data): Removed a duplicate call
23001         to omp_adjust_for_condition, moved NE_EXPR code_cond processing...
23002         (omp_adjust_for_condition): ...here.  Added necessary parameters.
23003         * omp-general.h (omp_adjust_for_condition): Updated declaration.
23004         * omp-grid.c (grid_attempt_target_gridification): Adjust to pass
23005         proper values to new parameters of omp_adjust_for_condition.
23007 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
23009         PR middle-end/89412
23010         * expr.c (expand_assignment): If result is a MEM, use change_address
23011         instead of simplify_gen_subreg.
23013 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
23014             David Malcolm  <dmalcolm@redhat.com>
23016         PR middle-end/89091
23017         * fold-const.c (decode_field_reference): Return NULL_TREE if
23018         lang_hooks.types.type_for_size returns NULL.  Check it before
23019         overwriting *exp_.  Use return NULL_TREE instead of return 0.
23021 2019-02-20  Jakub Jelinek  <jakub@redhat.com>
23023         PR middle-end/88074
23024         PR middle-end/89415
23025         * toplev.c (do_compile): Double the emin/emax exponents to workaround
23026         buggy mpc_norm.
23028 2019-02-20  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23030         PR target/89397
23031         * config/i386/i386.c (ix86_atomic_assign_expand_fenv): Check
23032         TARGET_SSE in addition to TARGET_SSE_MATH.
23034         (ix86_excess_precision): Ditto.
23035         (ix86_float_exceptions_rounding_supported_p): Ditto.
23036         (use_rsqrt_p): Ditto.
23037         * config/i386/sse.md (rsqrt<mode>2): Ditto.
23039 2019-02-20  David Malcolm  <dmalcolm@redhat.com>
23041         PR c/89410
23042         * diagnostic-show-locus.c (layout::calculate_line_spans): Use
23043         linenum_arith_t when determining if two adjacent line spans are
23044         close enough to merge.
23045         (diagnostic_show_locus): Use linenum_arith_t when iterating over
23046         lines within each line_span.
23048 2019-02-20  Andre Vieira  <andre.simoesdiasvieira@arm.com>
23050         PR target/86487
23051         * lra-constraints.c(uses_hard_regs_p): Fix handling of
23052         paradoxical SUBREGS.
23054 2019-02-20  Li Jia He  <helijia@linux.ibm.com>
23056         PR target/88100
23057         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin)
23058         <case ALTIVEC_BUILTIN_VSPLTISB, ALTIVEC_BUILTIN_VSPLTISH,
23059         ALTIVEC_BUILTIN_VSPLTISW>: Don't convert the operand before
23060         range checking it.
23062 2019-02-19  Jonathan Wakely  <jwakely@redhat.com>
23064         * config/gcn/gcn.c (print_operand): Fix typo.
23066 2019-02-19  Richard Biener  <rguenther@suse.de>
23068         PR middle-end/88074
23069         * toplev.c (do_compile): Initialize mpfr's exponent range
23070         based on available float modes.
23072 2019-02-19  Eric Botcazou  <ebotcazou@adacore.com>
23074         * rtlanal.c (get_initial_register_offset): Fall back to the estimate
23075         as long as the epilogue isn't completed.
23077 2019-02-18  Martin Sebor  <msebor@redhat.com>
23079         * doc/cpp.texi (Conditional syntax): Add __has_attribute,
23080         __has_cpp_attribute, and __has_include.
23082 2019-02-18  Martin Sebor  <msebor@redhat.com>
23084         * doc/invoke.texi (-Wreturn-type): Correct and expand.
23086 2019-02-18  Martin Sebor  <msebor@redhat.com>
23088         PR middle-end/89294
23089         * tree.c (valid_constant_size_p): Avoid assuming size is a constant
23090         expression.
23091         * tree.h (cst_size_error): Add the cst_size_not_constant enumerator.
23093 2019-02-18  Richard Biener  <rguenther@suse.de>
23095         PR tree-optimization/89296
23096         * tree-ssa-loop-ch.c (ch_base::copy_headers): Restrict setting
23097         of no-warning flag to cases that might emit the bogus warning.
23099 2019-02-18  Jakub Jelinek  <jakub@redhat.com>
23101         PR bootstrap/88714
23102         * config/arm/arm.md (*arm_movdi, *movdf_soft_insn): Use "r" instead of
23103         "q" constraint.
23104         * config/arm/vfp.md (*movdi_vfp): Likewise.
23105         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use "r" instead of
23106         "q" constraint for operands[0].
23108         PR target/89369
23109         * config/s390/s390.md (*r<noxa>sbg_<mode>_srl_bitmask,
23110         *r<noxa>sbg_<mode>_sll, *r<noxa>sbg_<mode>_srl): Don't construct
23111         pattern in a temporary buffer.
23112         (*r<noxa>sbg_sidi_srl): Likewise.  Always use 32 as I3 rather
23113         than 64-operands[2].
23115         PR target/89361
23116         * config/s390/s390.c (s390_indirect_branch_attrvalue,
23117         s390_indirect_branch_settings): Define unconditionally.
23118         (s390_set_current_function): Likewise, but guard the whole body except
23119         the s390_indirect_branch_settings call with
23120         #if S390_USE_TARGET_ATTRIBUTE.
23121         (TARGET_SET_CURRENT_FUNCTION): Redefine unconditionally.
23123         * config/s390/s390.md (*<risbg_n>_ior_and_sr_ze,
23124         *<risbg_n>_<mode>_ior_and_lshiftrt, *<risbg_n>_sidi_ior_and_lshiftrt):
23125         Use HOST_WIDE_INT_M1U instead of ~(0ULL).
23126         (*<risbg_n>_and_subregdi_rotr, *<risbg_n>_and_subregdi_rotl): Use
23127         HOST_WIDE_INT_1U instead of 1ULL.
23128         (*pre_z10_extzv<mode>, *pre_z10_extv<mode>): Change mask type from int
23129         to unsigned HOST_WIDE_INT, use HOST_WIDE_INT_1U instead of 1ul.
23130         (*insv<mode><clobbercc_or_nocc>_appendbitsleft,
23131         z = (x << c) | (y >> d) splitters): Use HOST_WIDE_INT_1U
23132         instead of 1UL.
23133         (*insv<mode>_mem_reg, *insvdi_mem_reghigh): Use HOST_WIDE_INT_1U
23134         instead of 1ul.
23136 2019-02-18  Martin Jambor  <mjambor@suse.cz>
23138         PR tree-optimization/89209
23139         * tree-sra.c (create_access_replacement): New optional parameter
23140         reg_tree.  Use it as a type if non-NULL and access type is not of
23141         a register type.
23142         (get_repl_default_def_ssa_name): New parameter REG_TYPE, pass it
23143         to create_access_replacement.
23144         (sra_modify_assign): Pass LHS type to get_repl_default_def_ssa_name.
23145         Check lacc is non-NULL before attempting to re-create it on the RHS.
23147 2019-02-18  Martin Liska  <mliska@suse.cz>
23149         PR ipa/89306
23150         * cgraph.c (symbol_table::create_edge): Set m_summary_id to -1
23151         by default.
23152         (symbol_table::free_edge): Recycle m_summary_id.
23153         * cgraph.h (get_summary_id): New.
23154         (symbol_table::release_symbol): Set m_summary_id to -1
23155         by default.
23156         (symbol_table::allocate_cgraph_symbol): Recycle m_summary_id.
23157         * ipa-fnsummary.c (ipa_fn_summary_t): Switch from
23158         function_summary to fast_function_summary.
23159         * ipa-fnsummary.h (ipa_fn_summary_t): Likewise.
23160         * ipa-pure-const.c (class funct_state_summary_t):
23161         Switch from function_summary to fast_function_summary.
23162         * ipa-reference.c (class ipa_ref_var_info_summary_t): Likewise.
23163         (class ipa_ref_opt_summary_t): Switch from function_summary
23164         to fast_function_summary.
23165         * symbol-summary.h (class function_summary_base): New class
23166         that is created from base of former function_summary.
23167         (function_summary_base::unregister_hooks): New.
23168         (class function_summary): Inherit from function_summary_base.
23169         (class call_summary_base): New class
23170         that is created from base of former call_summary.
23171         (class call_summary): Inherit from call_summary_base.
23172         (struct is_same): New.
23173         (class fast_function_summary): New summary class.
23174         (class fast_call_summary): New summary class.
23175         * vec.h (vec_safe_grow_cleared): New function.
23177 2019-02-18  Martin Liska  <mliska@suse.cz>
23179         * config/i386/i386.c (ix86_get_multilib_abi_name): New function.
23180         (TARGET_GET_MULTILIB_ABI_NAME): New macro defined.
23181         * doc/tm.texi: Document new target hook.
23182         * doc/tm.texi.in: Likewise.
23183         * target.def: Add new target macro.
23184         * gcc.c (find_fortran_preinclude_file): Do not search multilib
23185         suffixes.
23187 2019-02-17  Alan Modra  <amodra@gmail.com>
23189         PR target/89271
23190         * config/rs6000/rs6000.md (<bd>_<mode> split): Check for an int
23191         output reg on add insn.
23192         (<bd>tf_<mode> split): Likewise.  Match predicates with insn.
23194 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
23196         PR target/89372
23197         * config/i386/sse.md (ssedoublemode): Remove V4HI.
23198         (PMULHRSW): Likewise.
23199         (<ssse3_avx2>_pmulhrsw<mode>3): Require TARGET_SSSE3, not
23200         TARGET_AVX2.
23201         (ssse3_pmulhrswv4hi3): New expander.
23203 2019-02-16  H.J. Lu  <hongjiu.lu@intel.com>
23205         * config/i386/mmx.md (*vec_extractv2si_zext_mem): Doesn't require
23206         MMX.  Add isa attribute.
23208 2019-02-16  Jakub Jelinek  <jakub@redhat.com>
23210         PR rtl-optimization/66152
23211         * builtins.h (c_readstr): Declare.
23212         * builtins.c (c_readstr): Remove forward declaration.  Add
23213         null_terminated_p argument, if false, read all bytes from the
23214         string instead of stopping after '\0'.
23215         * expr.c (string_cst_read_str): New function.
23216         (store_expr): Use string_cst_read_str instead of
23217         builtin_strncpy_read_str.  Try to store by pieces the whole
23218         exp_len first, and only if that fails, split it up into
23219         store by pieces followed by clear_storage.  Formatting fix.
23221         * config/i386/i386.md (*movqi_internal): Remove static from
23222         buf variable.  Use output_asm_insn (buf, operands); return "";
23223         instead of return buf;.
23224         * config/i386/sse.md (<sse>_andnot<mode>3<mask_name>,
23225         *<code><mode>3<mask_name>, *andnot<mode>3, *andnottf3, *<code><mode>3,
23226         *<code>tf3, <mask_codefor><code><mode>3<mask_name>): Likewise.
23228 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23230         * config/sparc/linux.h (ASAN_CC1_SPEC): Define.
23231         (CC1_SPEC): Use GNU_USER_TARGET_CC1_SPEC and ASAN_CC1_SPEC.
23232         * config/sparc/linux64.h (ASAN_CC1_SPEC): Likewise.
23233         (CC1_SPEC): Likewise.
23234         * config/sparc/sparc.c (sparc_asan_shadow_offset): Adjust for 64-bit.
23236 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23238         * asan.c (asan_emit_stack_protection): Use full-sized mask to align
23239         the base address on 64-bit strict-alignment platforms.
23241 2019-02-15  H.J. Lu  <hongjiu.lu@intel.com>
23243         * config/i386/i386.h (VALID_MMX_REG_MODE): Correct the misplaced ')'.
23245 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23247         * config/i386/darwin.h (TARGET_FPMATH_DEFAULT_P): New define.
23249 2019-02-15  Aaron Sawdey  <acsawdey@linux.ibm.com>
23251         PR rtl-optimization/88308
23252         * shrink-wrap.c (move_insn_for_shrink_wrap): Fix LABEL_NUSES counts
23253         on copied instruction.
23255 2019-02-15  Eric Botcazou  <ebotcazou@adacore.com>
23257         * final.c (insn_current_reference_address): Replace test on JUMP_P
23258         with test on jump_to_label_p.
23259         * config/visium/visium-passes.def: New file.
23260         * config/visium/t-visium (PASSES_EXTRA): Define.
23261         * config/visium/visium-protos.h (make_pass_visium_reorg): Declare.
23262         * config/visium/visium.h (TRAMPOLINE_SIZE): Adjust.
23263         (TRAMPOLINE_ALIGNMENT): Define.
23264         * config/visium/visium.c (visium_option_override): Do not register
23265         the machine-specific reorg pass here.
23266         (visium_trampoline_init): Align the BRA insn on a 64-bit boundary
23267         for the GR6.
23268         (output_branch): Adjust threshold for long branch instruction.
23269         * config/visium/visium.md (cpu): Move around.
23270         (length): Adjust for the GR6.
23272 2019-02-15  Richard Biener  <rguenther@suse.de>
23273             Jakub Jelinek  <jakub@redhat.com>
23275         PR tree-optimization/89278
23276         * tree-loop-distribution.c: Include tree-eh.h.
23277         (generate_memset_builtin, generate_memcpy_builtin): Call
23278         rewrite_to_non_trapping_overflow on builtin->size before passing it
23279         to force_gimple_operand_gsi.
23281 2019-02-15  Jakub Jelinek  <jakub@redhat.com>
23283         PR other/89342
23284         * optc-save-gen.awk: Handle optimize_fast like optimize_size or
23285         optimize_debug.
23286         * opth-gen.awk: Likewise.
23288 2019-02-15  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23290         * config/i386/i386.h (TARGET_SUBTARGET64_ISA_DEFAULT):
23291         Enable MMX, SSE and SSE2 by default.
23292         * config/i386/i386.c (ix86_option_override_internal): Do not
23293         explicitly set MMX, SSE and SSE2 flags for TARGET_64BIT here.
23295 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
23297         PR rtl-optimization/89354
23298         * combine.c (make_extraction): Punt if extraction_mode is narrower
23299         than len bits.
23301 2019-02-14  Maya Rashish  <coypu@sdf.org>
23303         * config.gcc (*-*-netbsd*): Add netbsd-d.o.
23304         * config/netbsd-d.c: New file.
23305         * config/t-netbsd: Add netbsd-d.o
23307 2018-02-14  Steve Ellcey  <sellcey@marvell.com>
23309         * config/aarch64/aarch64.c (aarch64_attribute_table): Change
23310         affects_type_identity to true for aarch64_vector_pcs.
23311         (aarch64_comp_type_attributes): New function.
23312         (TARGET_COMP_TYPE_ATTRIBUTES): New macro.
23314 2019-02-14  Tamar Christina  <tamar.christina@arm.com>
23316         PR target/88850
23317         * config/arm/iterators.md (ANY64): Add V4HF.
23319 2019-02-14  Martin Liska  <mliska@suse.cz>
23321         PR rtl-optimization/89242
23322         * dce.c (delete_unmarked_insns): Call free_dominance_info we
23323         process a transformation.
23325 2019-02-14  Jakub Jelinek  <jakub@redhat.com>
23327         PR tree-optimization/89314
23328         * fold-const.c (fold_binary_loc): Cast strlen argument to
23329         const char * before dereferencing it.  Formatting fixes.
23331         PR middle-end/89284
23332         * passes.def: Swap pass_ubsan and pass_early_warn_uninitialized.
23334 2019-02-13  Ian Lance Taylor  <iant@golang.org>
23336         * optc-save-gen.awk: Set var_opt_hash for initial optimizations
23337         and set current index for other optimizations.
23339 2019-02-13  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23341         * config/i386/sse.md (vec_set<VI4F_256_512:mode>_0): Use
23342         nonimmediate_operand as operand 2 predicate.
23343         (vec_set<VF2_512_256:mode>_0): Ditto.
23344         (vec_set<VI8_AVX_AVX512F:mode>_0): Ditto.
23345         (*vec_concatv2si): Remove alternative 2.
23346         (*vec_concatv4si_0): Use vm constraint for alternative 0.
23347         (*vec_concatv4si_0): Remove preferred_for_speed attribute.
23348         (vec_concatv2di): Split alternatives 4,5,6 to ...
23349         (*vec_concatv2di_0) ... new pattern.
23351 2019-02-13  Wilco Dijkstra  <wdijkstr@arm.com>
23353         PR target/89190
23354         * config/arm/arm.c (ldm_stm_operation_p) Set
23355         addr_reg_in_reglist correctly for first register.
23356         (load_multiple_sequence): Remove dead base check.
23357         (gen_ldm_seq): Correctly set write_back for Thumb-1.
23359 2019-02-13  Tamar Christina  <tamar.christina@arm.com>
23361         PR target/88847
23362         * config/aarch64/aarch64-sve.md (*pred_mov<mode>, pred_mov<mode>):
23363         Expose as @aarch64_pred_mov.
23364         * config/aarch64/aarch64.c (aarch64_classify_address):
23365         Use expand_insn which legitimizes operands.
23367 2019-02-13  Martin Liska  <mliska@suse.cz>
23369         * builtins.h (expand_builtin_with_bounds): Remove declaration.
23370         * calls.c (struct arg_data): Remove special_slot, pointer_arg
23371         and pointer_offset fields.
23372         (initialize_argument_information): Remove usage of dead
23373         fields.
23374         * cgraph.h (struct cgraph_thunk_info): Remove
23375         add_pointer_bounds_args.
23376         * cgraphunit.c (cgraph_node::expand_thunk): Remove usage of dead
23377         fields.
23378         (cgraph_node::assemble_thunks_and_aliases): Remove usage of dead
23379         fields.
23380         * config/i386/i386.c (ix86_function_arg_advance): Remove
23381         unrelated comment.
23382         (struct builtin_isa): Remove leaf_p and nothrow_p fields.
23383         (def_builtin): Remove usage of dead fields.
23384         (ix86_add_new_builtins): Likewise.
23385         * ipa-fnsummary.c (compute_fn_summary): Likewise.
23386         * ipa-icf.c (sem_function::equals_wpa): Likewise.
23387         (sem_function::init): Likewise.
23388         (sem_variable::merge): Likewise.
23389         * ipa-visibility.c (function_and_variable_visibility): Likewise.
23390         * ipa.c (symbol_table::remove_unreachable_nodes): Likewise.
23391         * lto-cgraph.c (lto_output_node): Likewise.
23392         (lto_output_varpool_node): Likewise.
23393         (input_node): Likewise.
23394         (input_varpool_node): Likewise.
23395         * lto-streamer-out.c (lto_output): Likewise.
23396         * tree-inline.c (expand_call_inline): Remove usage of
23397         assign_stmts.
23398         * tree-inline.h (struct copy_body_data): Likewise.
23399         * varpool.c (varpool_node::dump): Likewise.
23401 2019-02-13  Jakub Jelinek  <jakub@redhat.com>
23403         PR middle-end/89303
23404         * tree-ssa-structalias.c (set_uids_in_ptset): Or in vi->is_heap_var
23405         into pt->vars_contains_escaped_heap instead of setting
23406         pt->vars_contains_escaped_heap to it.
23408         PR middle-end/89281
23409         * optabs.c (prepare_cmp_insn): Use UINTVAL (size) instead of
23410         INTVAL (size), compare it to GET_MODE_MASK instead of
23411         1 << GET_MODE_BITSIZE.
23413         PR target/89290
23414         * config/i386/predicates.md (x86_64_immediate_operand): Allow
23415         TLS UNSPECs offsetted by signed 32-bit CONST_INT even with
23416         -mcmodel=large.
23418 2019-02-13  Martin Liska  <mliska@suse.cz>
23420         PR lto/88858
23421         * cfgrtl.c (remove_barriers_from_footer): New function.
23422         (try_redirect_by_replacing_jump): Use it.
23423         (cfg_layout_redirect_edge_and_branch): Likewise.
23425 2019-02-13  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
23427         * config/rs6000/altivec.h (vec_sbox_be, vec_cipher_be,
23428         vec_cipherlast_be, vec_ncipher_be, vec_ncipherlast_be): New #defines.
23429         * config/rs6000/crypto.md (CR_vqdi): New define_mode_iterator.
23430         (crypto_vsbox_<mode>, crypto_<CR_insn>_<mode>): New define_insns.
23431         * config/rs6000/rs6000-builtin.def (VSBOX_BE): New BU_CRYPTO_1.
23432         (VCIPHER_BE, VCIPHERLAST_BE, VNCIPHER_BE, VNCIPHERLAST_BE):
23433         New BU_CRYPTO_2.
23434         * config/rs6000/rs6000.c (builtin_function_type)
23435         <CRYPTO_BUILTIN_VSBOX_BE, CRYPTO_BUILTIN_VCIPHER_BE,
23436         CRYPTO_BUILTIN_VCIPHERLAST_BE, CRYPTO_BUILTIN_VNCIPHER_BE,
23437         CRYPTO_BUILTIN_VNCIPHERLAST_BE>: New switch options.
23438         * doc/extend.texi (vec_sbox_be, vec_cipher_be, vec_cipherlast_be,
23439         vec_ncipher_be, vec_ncipherlast_be): New builtin functions.
23441 2019-02-12  Pat Haugen  <pthaugen@us.ibm.com>
23443         * doc/invoke.texi (RS/6000 and PowerPC Options): Remove duplicate
23444         -maltivec. Delete -maltivec=be and -maltivec=le documentation.
23446 2019-02-12  H.J. Lu  <hongjiu.lu@intel.com>
23448         PR target/89229
23449         * config/i386/i386.md (*movoi_internal_avx): Revert revision
23450         268678 and revision 268657.
23451         (*movti_internal): Likewise.
23453 2019-02-12  Ilya Leoshkevich  <iii@linux.ibm.com>
23455         PR target/89233
23456         * config/s390/s390.c (s390_decompose_address): Update comment.
23457         (s390_check_qrst_address): Reject invalid address forms after
23458         LRA.
23460 2019-02-12  Martin Liska  <mliska@suse.cz>
23462         PR lto/88876
23463         * ipa-pure-const.c (propagate_pure_const): Revert hunk as
23464         we need default values of funct_state for a function that
23465         is not optimized.
23467 2019-02-12  Eric Botcazou  <ebotcazou@adacore.com>
23469         * asan.c (asan_expand_mark_ifn): Take into account the alignment of
23470         the object to pick the size of stores on strict-alignment platforms.
23472         * config/sparc/sparc.md (*movsi_insn): Minor tweak.
23473         (*movdi_insn_sp32): Likewise.
23474         (*movdi_insn_sp64): Likewise.
23476 2019-02-12  Jan Hubicka  <hubicka@ucw.cz>
23478         PR lto/88677
23479         * cgraphunit.c (analyze_functions): Clear READONLY flag for external
23480         types that needs constructiong.
23481         * tree.h (may_be_aliased): Do not check TYPE_NEEDS_CONSTRUCTING.
23483 2019-02-12  Richard Biener  <rguenther@suse.de>
23485         PR tree-optimization/89253
23486         * tree-ssa-loop-split.c (tree_ssa_split_loops): Check we can
23487         duplicate the loop.
23489 2019-02-11  David Malcolm  <dmalcolm@redhat.com>
23491         PR lto/88147
23492         * input.c (selftest::test_line_offset_overflow): New selftest.
23493         (selftest::input_c_tests): Call it.
23495 2019-02-11  Martin Sebor  <msebor@redhat.com>
23497         PR tree-optimization/88771
23498         * gimple-ssa-warn-restrict.c (pass_wrestrict::gate): Also enable
23499         when -Wstringop-overflow is set.
23500         (builtin_memref::builtin_memref): Adjust excessive upper bound
23501         only when lower bound is not excessive.
23502         (maybe_diag_overlap): Detect and diagnose excessive bounds via
23503         -Wstringop-ovefflow.
23504         (maybe_diag_offset_bounds): Rename...
23505         (maybe_diag_access_bounds): ...to this.
23506         (check_bounds_or_overlap): Adjust for name change above.
23508 2019-02-11  Martin Sebor  <msebor@redhat.com>
23510         PR c++/87996
23511         * builtins.c (max_object_size): Move from here...
23512         * builtins.h (max_object_size): ...and here...
23513         * tree.c (max_object_size): ...to here...
23514         * tree.h (max_object_size): ...and here.
23516 2019-02-11  Bill Schmidt  <wschmidt@linux.ibm.com>
23518         * config/rs6000/rs6000.c (rs6000_gimple_fold_builtin): Shift-right
23519         and shift-left vector built-ins need to include a TRUNC_MOD_EXPR
23520         for correct semantics.
23522 2019-02-11  Alan Modra  <amodra@gmail.com>
23524         * doc/invoke.texi (man page RS/6000 and PowerPC Options): Mention
23525         -mlongcall and -mpltseq.
23526         (RS/6000 and PowerPC Options <-mlongcall>): Mention inline PLT calls.
23527         (RS/6000 and PowerPC Options <-mpltseq>): Document.
23528         * config/rs6000/rs6000.h (TARGET_PLTSEQ): Define.
23529         * config/rs6000/sysv4.opt (mpltseq): New option.
23530         * config/rs6000/sysv4.h (TARGET_PLTSEQ): Redefine.
23531         (SUBTARGET_OVERRIDE_OPTIONS): Error if given -mpltseq when assembler
23532         support is lacking.  Don't allow -mpltseq with -mbss-plt.
23533         * config/rs6000/linux64.h (SUBSUBTARGET_OVERRIDE_OPTIONS): Warn if
23534         -mpltseq given for ELFv1.
23535         * config/rs6000/rs6000.c (rs6000_call_aix): Comment on UNSPEC_PLTSEQ.
23536         Only use UNSPEC_PLTSEQ for inline PLT calls.
23537         (rs6000_call_sysv, rs6000_sibcall_sysv): Expand comments.  Only
23538         use UNSPEC_PLTSEQ for inline PLT calls.
23539         (rs6000_indirect_call_template_1, rs6000_longcall_ref),
23540         (rs6000_call_aix, rs6000_call_sysv, rs6000_sibcall_sysv): Replace
23541         uses of HAVE_AS_PLTSEQ with TARGET_PLTSEQ, simplifying.
23542         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23543         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23544         (pltseq_mtctr_<mode>): Likewise.
23546 2019-02-11  Rainer Orth  <ro@CeBiTec.Uni-Bielefeld.DE>
23548         * acinclude.m4 (gcc_AC_INITFINI_ARRAY): Use 8-byte strings with
23549         Solaris ld.
23550         * configure: Regenerate.
23552 2019-02-11  Jakub Jelinek  <jakub@redhat.com>
23554         PR bootstrap/88714
23555         * config/arm/ldrdstrd.md (*arm_ldrd, *arm_strd): Use q constraint
23556         instead of r.
23558 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
23560         * function.c (assign_parm_setup_block): Use the stored
23561         size, not the passed size, when allocating stack-space,
23562         also for a parameter with alignment larger than
23563         MAX_SUPPORTED_STACK_ALIGNMENT.
23565 2019-02-11  Martin Liska  <mliska@suse.cz>
23567         PR ipa/89009
23568         * ipa-cp.c (build_toporder_info): Remove usage of a param.
23569         * ipa-inline.c (inline_small_functions): Likewise.
23570         * ipa-pure-const.c (propagate_pure_const): Likewise.
23571         (propagate_nothrow): Likewise.
23572         * ipa-reference.c (propagate): Likewise.
23573         * ipa-utils.c (struct searchc_env): Remove unused field.
23574         (searchc): Always search across AVAIL_INTERPOSABLE.
23575         (ipa_reduced_postorder): Always allow AVAIL_INTERPOSABLE as
23576         the only called IPA pure const can properly not propagate
23577         across interposable boundary.
23578         * ipa-utils.h (ipa_reduced_postorder): Remove param.
23580 2019-02-11  Chung-Ju Wu  <jasonwucj@gmail.com>
23582         * config/nds32/nds32.md (call_internal, call_value_internal,
23583         sibcall_internal, sibcall_value_internal): Use SImode for mem rtx.
23585 2019-02-11  Hans-Peter Nilsson  <hp@axis.com>
23587         * config/cris/cris.c (cris_preferred_minimum_alignment): Fix name
23588         typo.
23590 2019-02-10  H.J. Lu  <hongjiu.lu@intel.com>
23592         * config/i386/constraints.md (Yd): Replace AVX512BW with AVX512DQ
23593         in comments
23595 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
23597         * config.gcc (with_nds32_lib): Set default --with-nds32-lib correctly.
23599 2019-02-10  Jakub Jelinek  <jakub@redhat.com>
23601         PR tree-optimization/89268
23602         * tree-if-conv.c (version_loop_for_if_conversion): Push to preds only
23603         if preds is non-NULL.
23605 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23607         PR lto/89272
23608         * tree.c (fld_simplified_type_name): Also keep TYPE_DECL for
23609         polymorphic types.
23611 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
23613         * config/nds32/nds32.md (trap): New pattern.
23615 2019-02-10  Monk Chiang  <sh.chiang04@gmail.com>
23617         * config/nds32/nds32.c (nds32_dwarf_register_span): Refine register
23618         dwarf span.
23620 2019-02-10  Chung-Ju Wu  <jasonwucj@gmail.com>
23622         * config/nds32/nds32-md-auxiliary.c (nds32_spilt_doubleword): Support
23623         to split POST_INC.
23625 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23627         * ipa-visibility.c (localize_node): Also do not localize
23628         LDPR_PREVAILING_DEF_IRONLY_EXP.
23630 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23632         PR lto/87957
23633         * tree.c (fld_simplified_type_name): Use DECL_ASSEMBLER_NAME_SET_P
23634         instead of type_with_linkage.
23636 2019-02-09  Jan Hubicka  <hubicka@ucw.cz>
23638         PR ipa/88755
23639         * params.def (uninlined-function-insns, uninlined-function-time,
23640         uninlined-thunk-insns, uninlined-thunk-time): Add artificial upper
23641         bound so we don't get overflows.
23643 2019-02-09  Aaron Sawdey  <acsawdey@linux.ibm.com>
23645         * config/rs6000/rs6000-string.c (expand_compare_loop,
23646         expand_block_compare): Insert REG_BR_PROB notes in inline expansion of
23647         memcmp/strncmp.
23649 2019-02-09  Jakub Jelinek  <jakub@redhat.com>
23651         PR middle-end/89246
23652         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23653         If !node->definition and TYPE_ARG_TYPES is non-NULL, use
23654         TYPE_ARG_TYPES instead of DECL_ARGUMENTS.
23656 2019-02-09  Alan Modra  <amodra@gmail.com>
23658         PR target/88343
23659         * config/rs6000/rs6000.c (save_reg_p): Correct calls_eh_return
23660         case.  Match logic in rs6000_emit_prologue emitting pic_offset_table
23661         setup.
23663 2019-02-08  Vladimir Makarov  <vmakarov@redhat.com>
23665         PR middle-end/88560
23666         * lra-constraints.c (process_alt_operands): Don't increase reject
23667         for memory when offset memory is required.
23669 2019-02-08  Robin Dapp  <rdapp@linux.ibm.com>
23671         * config/s390/vector.md: Implement vector copysign.
23673 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
23675         * expr.c (expand_constructor): Correct indentations.
23677 2019-02-08  Richard Biener  <rguenther@suse.de>
23679         PR tree-optimization/89247
23680         * tree-if-conv.c: Include tree-cfgcleanup.h.
23681         (version_loop_for_if_conversion): Record LOOP_VECTORIZED call.
23682         (tree_if_conversion): Pass through predicate vector.
23683         (pass_if_conversion::execute): Do CFG cleanup and SSA update
23684         inline, see if any if-converted loops we refrece in
23685         LOOP_VECTORIZED calls vanished and fixup.
23686         * tree-if-conv.h (tree_if_conversion): Adjust prototype.
23688 2019-02-08  Ilya Leoshkevich  <iii@linux.ibm.com>
23690         * config/s390/constraints.md (jdd): New constraint.
23692 2019-02-08  H.J. Lu  <hongjiu.lu@intel.com>
23694         PR target/89229
23695         * config/i386/i386.md (*movoi_internal_avx): Set mode to XI for
23696         upper 16 vector registers without TARGET_AVX512VL.
23697         (*movti_internal): Likewise.
23699 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
23701         PR rtl-optimization/89234
23702         * except.c (copy_reg_eh_region_note_forward): Return if note_or_insn
23703         is a NOTE, CODE_LABEL etc. - rtx_insn * other than INSN_P.
23704         (copy_reg_eh_region_note_backward): Likewise.
23706 2019-02-08  Richard Biener  <rguenther@suse.de>
23708         PR middle-end/89223
23709         * tree-data-ref.c (initialize_matrix_A): Fail if constant
23710         doesn't fit in HWI.
23711         (analyze_subscript_affine_affine): Handle failure from
23712         initialize_matrix_A.
23714 2019-02-08  Jakub Jelinek  <jakub@redhat.com>
23716         * cfganal.c (pre_and_rev_post_order_compute_fn): Use fn instead of
23717         cfun everywhere.
23719 2019-02-07  David Malcolm  <dmalcolm@redhat.com>
23721         PR tree-optimization/86637
23722         PR tree-optimization/89235
23723         * tree-vect-loop.c (optimize_mask_stores): Add an
23724         auto_purge_vect_location sentinel to ensure that vect_location is
23725         purged on exit.
23726         * tree-vectorizer.c
23727         (auto_purge_vect_location::~auto_purge_vect_location): New dtor.
23728         (try_vectorize_loop_1): Add an auto_purge_vect_location sentinel
23729         to ensure that vect_location is purged on exit.
23730         (pass_slp_vectorize::execute): Likewise, replacing the manual
23731         reset.
23732         * tree-vectorizer.h (class auto_purge_vect_location): New class.
23734 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23736         * config/aarch64/iterators.md (max_opp): New code_attr.
23737         (USMAX): New code iterator.
23738         * config/aarch64/predicates.md (aarch64_smin): New predicate.
23739         (aarch64_smax): Likewise.
23740         * config/aarch64/aarch64-simd.md (abd<mode>_3): Rename to...
23741         (*aarch64_<su>abd<mode>_3): ... Change RTL representation to
23742         MINUS (MAX MIN).
23744 2019-02-07  H.J. Lu  <hongjiu.lu@intel.com>
23746         PR target/89229
23747         * config/i386/i386.md (*movoi_internal_avx): Set mode to OI
23748         for TARGET_AVX512VL.
23749         (*movti_internal): Set mode to TI for TARGET_AVX512VL.
23751 2019-02-07  Andreas Krebbel  <krebbel@linux.ibm.com>
23753         * config/s390/s390-builtin-types.def: Add new types.
23754         * config/s390/s390-builtins.def: (s390_vec_xl, s390_vec_xld2)
23755         (s390_vec_xlw4): Make the memory operand into a const pointer.
23756         (s390_vec_xld2, s390_vec_xlw4): Add a variant for single precision
23757         float.
23758         * config/s390/s390-c.c (s390_expand_overloaded_builtin): Generate
23759         a new vector type with the alignment of the scalar memory operand.
23761 2019-02-07  Matthew Malcomson  <matthew.malcomson@arm.com>
23762             Jakub Jelinek  <jakub@redhat.com>
23764         PR bootstrap/88714
23765         * config/arm/arm-protos.h (valid_operands_ldrd_strd,
23766         arm_count_ldrdstrd_insns): New declarations.
23767         * config/arm/arm.c (mem_ok_for_ldrd_strd): Remove broken handling of
23768         MINUS.
23769         (valid_operands_ldrd_strd): New function.
23770         (arm_count_ldrdstrd_insns): New function.
23771         * config/arm/ldrdstrd.md: Change peepholes to generate PARALLEL SImode
23772         sets instead of single DImode set and define new insns to match this.
23774 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
23776         * config/aarch64/aarch64-builtins.c (aarch64_fcmla_lane_builtin_data):
23777         Make it a C initializer.
23779 2019-02-07  Tamar Christina  <tamar.christina@arm.com>
23781         PR/target 88850
23782         * config/arm/neon.md (*neon_mov<mode>): Add r -> r case.
23784 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23786         * config/arm/neon.md (neon_<sup>dot<vsi2qi>):
23787         Use neon_dot<q> for type.
23788         (neon_<sup>dot_lane<vsi2qi>): Likewise.
23790 2019-02-07  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
23792         * config/aarch64/aarch64-simd.md (aarch64_<sur>dot<vsi2qi>):
23793         Use neon_dot<q> for type.
23794         (aarch64_<sur>dot_lane<vsi2qi>): Likewise.
23795         (aarch64_<sur>dot_laneq<vsi2qi>): Likewise.
23797 2019-02-06  Vladimir Makarov  <vmakarov@redhat.com>
23799         PR rtl-optimization/89225
23800         * lra-constaints.c (simplify_operand_subreg): Add subreg mode
23801         sizes check.
23803 2019-02-06  Eric Botcazou  <ebotcazou@adacore.com>
23805         * config/i386/i386.c (ix86_expand_prologue): Emit a memory blockage
23806         after restoring registers saved to allocate the frame on Windows.
23808 2019-02-06  Richard Biener  <rguenther@suse.de>
23810         PR tree-optimization/89182
23811         * graphite.h (cached_scalar_evolution_in_region): Declare.
23812         * graphite.c (struct seir_cache_key): New.
23813         (struct sese_scev_hash): Likewise.
23814         (seir_cache): New global.
23815         (cached_scalar_evolution_in_region): New function.
23816         (graphite_transform_loops): Allocate and release seir_cache.
23817         * graphite-isl-ast-to-gimple.c (get_rename_from_scev): Use
23818         cached_scalar_evolution_in_region.
23819         * graphite-scop-detection.c (scop_detection::can_represent_loop):
23820         Simplify.
23821         (scop_detection::graphite_can_represent_expr: Use
23822         cached_scalar_evolution_in_region.
23823         (scop_detection::stmt_simple_for_scop_p): Likewise.
23824         (find_params_in_bb): Likewise.
23825         (gather_bbs::before_dom_children): Likewise.
23826         * graphite-sese-to-poly.c (create_pw_aff_from_tree): Likewise.
23827         (add_loop_constraints): Likewise.
23829 2019-02-06  Jakub Jelinek  <jakub@redhat.com>
23831         PR middle-end/89210
23832         * fold-const-call.c (fold_const_vec_convert): Pass true as last
23833         operand to new_unary_operation only if both element types are integral
23834         and it isn't a widening conversion.  Return NULL_TREE if
23835         new_unary_operation failed.
23837 2019-02-05  Andreas Krebbel  <krebbel@linux.ibm.com>
23839         PR target/88856
23840         * config/s390/s390.md: Remove load and test FP splitter.
23842 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
23844         PR target/89112
23845         * config/rs6000/rs6000-string.c (do_ifelse, expand_cmp_vec_sequence,
23846         expand_compare_loop, expand_block_compare_gpr,
23847         expand_strncmp_align_check, expand_strncmp_gpr_sequence): Insert
23848         REG_BR_PROB notes in inline expansion of memcmp/strncmp. Add
23849         #include "profile-count.h" and "predict.h" for types and functions
23850         needed to work with REG_BR_PROB notes.
23852 2019-02-05  Aaron Sawdey  <acsawdey@linux.ibm.com>
23854         PR target/89112
23855         * config/rs6000/rs6000.md (<bd>tf_<mode>): Generate a local label
23856         for the long branch case.
23858 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
23860         PR target/89188
23861         * dce.c (delete_unmarked_insns): Don't remove no-op moves if they
23862         can throw, non-call exceptions are enabled and we can't delete
23863         dead exceptions or alter cfg.  Set must_clean if
23864         delete_insn_and_edges returns true, don't set it blindly for calls.
23865         Assert that delete_unreachable_blocks is called only if can_alter_cfg.
23867         PR rtl-optimization/89195
23868         * combine.c (make_extraction): For MEMs, don't extract bytes outside
23869         of the original MEM.
23871 2019-02-05  Martin Liska  <mliska@suse.cz>
23873         PR gcov-profile/89000
23874         * gcov.c (function_summary): Remove argument.
23875         (file_summary): New function.
23876         (print_usage): Replace tabs with spaces.
23877         (generate_results): Use new function file_summary.
23879 2019-02-05  Jakub Jelinek  <jakub@redhat.com>
23881         PR target/89186
23882         * optabs.c (prepare_cmp_insn): Pass x and y to
23883         emit_block_comp_via_libcall rather than XEXP (x, 0) and XEXP (y, 0).
23885 2019-02-05  Richard Biener  <rguenther@suse.de>
23887         PR middle-end/89150
23888         * bitmap.h (struct bitmap_obstack): Do not mark GTY.
23889         (struct bitmap_element): Drop chain_prev so we properly recurse on
23890         the prev member, supporting tree views.
23891         (struct bitmap_head): GTY skip the obstack member.
23893 2019-02-04  Alexander Monakov  <amonakov@ispras.ru>
23895         PR c/88698
23896         * doc/extend.texi (Vector Extensions): Add an example of using vector
23897         types together with x86 intrinsics.
23899 2019-02-04  Alan Modra  <amodra@gmail.com>
23901         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1): Increase
23902         str[] size to 160, and comment.
23904 2019-02-04  Alan Modra  <amodra@gmail.com>
23906         * config/rs6000/rs6000.c (rs6000_indirect_call_template_1),
23907         (rs6000_pltseq_template): Guard output of TLS markers with
23908         TARGET_TLS_MARKERS.
23909         (rs6000_longcall_ref, rs6000_call_aix, rs6000_call_sysv),
23910         (rs6000_sibcall_sysv): Ignore TARGET_TLS_MARKERS when deciding
23911         to use inline PLT sequences.
23912         * config/rs6000/rs6000.md (pltseq_tocsave_<mode>),
23913         (pltseq_plt16_ha_<mode>, pltseq_plt16_lo_<mode>),
23914         (pltseq_mtctr_<mode>): Don't test TARGET_TLS_MARKERS in predicate.
23916 2019-02-04  Martin Liska  <mliska@suse.cz>
23918         PR ipa/88985
23919         * ipa-fnsummary.c (estimate_edge_devirt_benefit): Bail
23920         out when ipa_fn_summaries does not contain entry for callee.
23922 2019-02-04  Eric Botcazou  <ebotcazou@adacore.com>
23924         * config/sparc/sparc.h: Remove superfluous blank lines.
23925         * config/sparc/sparc.c (global_offset_table_rtx): Rename into...
23926         (got_register_rtx): ...this.
23927         (sparc_got): Adjust to above renaming.
23928         (sparc_tls_got): Likewise.
23929         (sparc_delegitimize_address): Likewise.
23930         (sparc_output_mi_thunk): Likewise.
23931         (sparc_init_pic_reg): Likewise.
23932         (save_local_or_in_reg_p): Fix test on the GOT register.
23933         (USE_HIDDEN_LINKONCE): Move around.
23934         (get_pc_thunk_name): Likewise.
23935         (gen_load_pcrel_sym): Likewise.
23936         (load_got_register): Likewise.
23938 2019-02-04  Kito Cheng  <kito.cheng@gmail.com>
23940         * config/nds32/linux.h (GLIBC_DYNAMIC_LINKER): Define the naming rule
23941         of the dynamic linker: "ld-linux-nds32[le|be][f].so.1".
23943 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
23945         * config/nds32/nds32.c (nds32_legitimate_address_p): Add TLS model
23946         into consideration.
23948 2019-02-04  Chung-Ju Wu  <jasonwucj@gmail.com>
23950         * config.gcc (with_nds32_lib, glibc):
23951         Remove TARGET_DEFAULT_TLSDESC_TRAMPOLINE=0 setting.
23952         * config/nds32/linux.h (TARGET_DEFAULT_TLSDESC_TRAMPOLINE): Delete.
23953         (NDS32_TLSDESC_TRAMPOLINE_SPEC): Delete.
23955 2019-02-03  UroÅ¡ Bizjak  <ubizjak@gmail.com>
23957         PR target/89071
23958         * config/i386/i386.md (*sqrt<mode>2_sse): Add (v,0) alternative.
23959         Do not prefer (v,v) alternative for non-AVX targets and (m,v)
23960         alternative for speed when TARGET_SSE_PARTIAL_REG_DEPENDENCY is set.
23961         (*rcpsf2_sse): Ditto.
23962         (*rsqrtsf2_sse): Ditto.
23963         (sse4_1_round<mode<2): Ditto.
23965 2019-02-03  Richard Biener  <rguenther@suse.de>
23967         PR debug/87295
23968         * dwarf2out.c (copy_ancestor_tree): Register non-stubs as
23969         orig.
23971 2019-02-02  Jakub Jelinek  <jakub@redhat.com>
23973         PR middle-end/87887
23974         * config/i386/i386.c (ix86_simd_clone_compute_vecsize_and_simdlen):
23975         Punt with warning on aggregate return or argument types.  Ignore
23976         type/mode checking for uniform arguments.
23978 2019-02-01  Segher Boessenkool  <segher@kernel.crashing.org>
23980         * combine.c (try_combine): Do not print "Can't combine" messages unless
23981         printing failed combination attempts.
23983 2019-02-01  Martin Jambor  <mjambor@suse.cz>
23985         PR hsa/87863
23986         * omp-grid.c (grid_mark_variable_segment): Set assembler name of group
23987         segment and global segment variables before making them static.
23989 2019-02-01  Martin Jambor  <mjambor@suse.cz>
23991         * omp-grid.c (grid_target_follows_gridifiable_pattern): Guard two
23992         missed optimization dump with dump_enabled_p.
23994 2019-02-01  Richard Biener  <rguenther@suse.de>
23996         PR middle-end/88597
23997         * tree-scalar-evolution.c (analyze_scalar_evolution): Set up
23998         the instantiate cache.
23999         (instantiate_scev_binary): Elide second operand procesing
24000         if equal to the first.
24001         * tree-chrec.c (chrec_contains_symbols): Add visited set.
24002         (chrec_contains_undetermined): Likewise.
24003         (tree_contains_chrecs): Likewise.
24005 2019-02-01  Jan Hubicka  <hubicka@ucw.cz>
24007         * parms.def (MAX_INLINE_INSNS_SINGLE): Reduce from 400 to 200.
24009 2019-02-01  Jakub Jelinek  <jakub@redhat.com>
24011         PR tree-optimization/89143
24012         * wide-int-range.h (wide_int_range_absu): Declare.
24013         * wide-int-range.cc (wide_int_range_absu): New function.
24014         * tree-vrp.c (extract_range_from_unary_expr): Handle ABSU_EXPR.
24016         PR tree-optimization/88107
24017         * tree-cfg.c (find_outermost_region_in_block): Add ALL argument,
24018         instead of assertion that eh_region_outermost is non-NULL, if it
24019         is NULL, set *ALL to true and return NULL.
24020         (move_sese_region_to_fn): Adjust caller, if all is set, call
24021         duplicate_eh_regions with NULL region.
24023 2019-02-01  Richard Biener  <rguenth@suse.de>
24025         PR rtl-optimization/88593
24026         * mode-switching.c (optimize_mode_switching): Free dominators before
24027         calling cleanup_cfg.
24029 2019-02-01  Bin Cheng  <bin.cheng@linux.alibaba.com>
24031         PR tree-optimization/88932
24032         * tree-predcom.c (try_combine_chains): Get loop bbs in dom order.
24034 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
24036         PR middle-end/89137
24037         * omp-low.c (lower_omp_task_reductions): Drop redundant test to avoid
24038         bogus clang warning.
24040 2019-01-31  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24042         PR target/89071
24043         * config/i386/i386.md (*extendsfdf2): Split out reg->reg
24044         alternative to avoid partial SSE register stall for TARGET_AVX.
24045         (truncdfsf2): Ditto.
24046         (sse4_1_round<mode>2): Ditto.
24048 2018-01-31  Bill Schmidt  <wschmidt@linux.ibm.com>
24050         PR tree-optimization/89008
24051         * gimple-ssa-strength-reduction.c (slsr_process_mul): Don't
24052         process anything of the form X * 0.
24054 2019-01-31  Richard Biener  <rguenther@suse.de>
24056         PR tree-optimization/89135
24057         * tree-ssa-phiprop.c (pass_phiprop::execute): Skip blocks
24058         with abnormal preds.
24060 2019-01-31  Jakub Jelinek  <jakub@redhat.com>
24062         PR sanitizer/89124
24063         * ipa-inline.c (sanitize_attrs_match_for_inline_p): Allow inlining
24064         always_inline callees into no_sanitize_address callers.
24066 2019-01-31  Richard Biener  <rguenther@suse.de>
24068         PR rtl-optimization/89115
24069         * lra.c (lra_rtx_hash): Properly hash CONST_INT values.
24071 2019-01-30  Martin Sebor  <msebor@redhat.com>
24073         PR other/89106
24074         * doc/extend.texi (cast to a union): Correct and expand.
24076 2019-01-30  Vladimir Makarov  <vmakarov@redhat.com>
24078         PR rtl-optimization/87246
24079         * lra-constraints.c (simplify_operand_subreg): Reload memory
24080         in subreg if the address became invalid.
24082 2019-01-30  Bill Schmidt  <wschmidt@linux.ibm.com>
24084         PR target/87064
24085         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v4sf_scalar):
24086         Disable for little-endian.
24088 2019-01-30  Richard Biener  <rguenther@suse.de>
24090         PR rtl-optimization/89115
24091         * opts.c (default_options_optimization): Reduce
24092         PARAM_MAX_DSE_ACTIVE_LOCAL_STORES by a factor of 10 at -O1.
24093         Make PARAM_LOOP_INVARIANT_MAX_BBS_IN_LOOP reduction relative
24094         to the default.
24096 2019-01-30  Kelvin Nilsen  <kelvin@gcc.gnu.org>
24098         * config/rs6000/rs6000-c.c (altivec-resolve_overloaded_builtin):
24099         Change handling of ALTIVEC_BUILTIN_VEC_EXTRACT.  Coerce result to
24100         type of vector element when vec_extract is implemented by direct
24101         move.
24103 2019-01-30  Thomas Schwinge  <thomas@codesourcery.com>
24105         * doc/invoke.texi (C Language Options): List "-fopenacc-dim".
24107 2019-01-30  Richard Biener  <rguenther@suse.de>
24109         PR tree-optimization/89111
24110         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Restrict
24111         canonicalization to appropriately sized access types.
24113 2019-01-30  Jakub Jelinek  <jakub@redhat.com>
24115         PR c++/89105
24116         * config/i386/i386.c (ix86_warn_parameter_passing_abi): Don't warn
24117         for arguments to functions that are TU-local and shouldn't be
24118         referenced by assembly.
24120 2019-01-30  Ulrich Drepper  <drepper@redhat.com>
24122         * dumpfile.c (opt_info_switch_p_1): Ignore '-' if it appears
24123         after '='.
24125 2019-01-29  Martin Sebor  <msebor@redhat.com>
24127         PR c/88956
24128         * gimple-fold.c (fold_array_ctor_reference): Avoid zero-length arrays.
24130 2019-01-29  Jakub Jelinek  <jakub@redhat.com>
24132         PR c++/66676
24133         PR ipa/89104
24134         * omp-simd-clone.c (simd_clone_clauses_extract)
24135         <case OMP_CLAUSE_ALIGNED>: Ignore clauses with NULL
24136         OMP_CLAUSE_ALIGNED_ALIGNMENT.
24138 2019-01-29  Vineet Gupta  <vgupta@synopsys.com>
24140         * config.gcc: Force .init_array for ARC.
24142 2019-01-29  Richard Biener  <rguenther@suse.de>
24144         PR debug/87295
24145         * dwarf2out.c (collect_skeleton_dies): New helper.
24146         (copy_decls_for_unworthy_types): Call it.
24147         (build_abbrev_table): Assert we do not try to replace
24148         DW_AT_signature refs with local refs.
24150 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
24152         PR middle-end/89002
24153         * gimplify.c (gimplify_omp_for): When adding OMP_CLAUSE_*_GIMPLE_SEQ
24154         for lastprivate/linear IV, push gimplify context around gimplify_assign
24155         and, if it needed any temporaries, pop it into a gimple bind around the
24156         sequence.
24158 2019-01-28  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24160         * common.opt (-Wattribute-alias): Remove "no-" from name.
24161         Make -Wattribute-alias command line option and
24162         #pragma GCC diagnostic ignored "-Wattribute-alias" work again.
24164 2019-01-28  Jakub Jelinek  <jakub@redhat.com>
24166         PR target/89073
24167         * doc/invoke.texi (-mclwb, -mprfchw, -mrdpid, -mrdseed, -msgx,
24168         -madx, -mhle, -mavx5124fmaps, -mavx512vnni, -mavx5124vnniw): Document
24169         x86 ISA options.
24170         (bmi2): Add missing @opindex.
24171         * doc/extend.texi (x86 target attribute): Move fma4, lwp, ssse3
24172         options alphabetically.  Add missing 3dnow, 3dnowa, adx, avx, avx2,
24173         avx5124fmaps, avx5124vnniw, avx512bitalg, avx512bw, avx512cd,
24174         avx512dq, avx512er, avx512f, avx512ifma, avx512pf, avx512vbmi,
24175         avx512vbmi2, avx512vl, avx512vnni, avx512vpopcntdq, bmi, bmi2,
24176         cldemote, clflushopt, clwb, clzero, crc32, cx16, f16c, fma, fsgsbase,
24177         fxsr, gfni, hle, lzcnt, movbe, movdir64b, movdiri, mwaitx, pconfig,
24178         pku, prefetchwt1, prfchw, ptwrite, rdpid, rdrnd, rdseed, rtm, sahf,
24179         sgx, sha, shstk, tbm, vaes, vpclmulqdq, waitpkg, wbnoinvd, xsave,
24180         xsavec, xsaveopt and xsaves options.
24182 2019-01-28  Richard Biener  <rguenther@suse.de>
24184         PR debug/89076
24185         * dwarf2out.c (gen_subprogram_die): Remove leftover from MPX
24186         support removal.
24188 2019-01-28  Richard Biener  <rguenther@suse.de>
24190         PR tree-optimization/88739
24191         * tree-cfg.c (verify_types_in_gimple_reference): Verify
24192         BIT_FIELD_REFs only are applied to mode-precision operands
24193         when they are integral.
24194         (verify_gimple_assign_ternary): Likewise for BIT_INSERT_EXPR.
24195         * tree-ssa-sccvn.c (vn_reference_lookup_3): Avoid generating
24196         BIT_FIELD_REFs of non-mode-precision integral operands.
24198 2019-01-27  Jakub Jelinek  <jakub@redhat.com>
24200         PR target/87214
24201         * config/i386/sse.md
24202         (<mask_codefor>avx512dq_shuf_<shuffletype>64x2_1<mask_name>,
24203         avx512f_shuf_<shuffletype>64x2_1<mask_name>): Ensure the
24204         first constants in pairs are multiples of 2.  Formatting fixes.
24205         (avx512vl_shuf_<shuffletype>32x4_1<mask_name>,
24206         avx512vl_shuf_<shuffletype>32x4_1<mask_name>): Ensure the
24207         first constants in each quadruple are multiples of 4.  Formatting fixes.
24209 2019-01-26  Martin Jambor  <mjambor@suse.cz>
24211         PR ipa/88933
24212         * tree-inline.c: Include tree-cfgcleanup.h.
24213         (delete_unreachable_blocks_update_callgraph): Move...
24214         * tree-cfgcleanup.c (delete_unreachable_blocks_update_callgraph):
24215         ...here, make externally visible, make second argument bool, adjust
24216         all callers.
24217         * tree-cfgcleanup.c: Include cgraph.h.
24218         * tree-cfgcleanup.h (delete_unreachable_blocks_update_callgraph):
24219         Declare.
24220         * ipa-prop.c: Include tree-cfgcleanup.h.
24221         (ipcp_transform_function): Call
24222         delete_unreachable_blocks_update_callgraph instead of cleaning uo CFG.
24224 2019-01-25  Vladimir Makarov  <vmakarov@redhat.com>
24226         PR rtl-optimization/88846
24227         * ira.c (process_set_for_memref_referenced_p): New.
24228         (memref_referenced_p): Add new param.  Use
24229         process_set_for_memref_referenced_p.  Add new switch cases.
24230         (memref_used_between_p): Pass new arg to memref_referenced_p.
24232 2019-01-25  Richard Earnshaw  <rearnsha@arm.com>
24234         PR target/88469
24235         * config/aarch64/aarch64.c (aarch64_function_arg_alignment): Add new
24236         argument ABI_BREAK.  Set to true if the calculated alignment has
24237         changed in gcc-9.  Check bit-fields for their base type alignment.
24238         (aarch64_layout_arg): Warn if argument passing has changed in gcc-9.
24239         (aarch64_function_arg_boundary): Likewise.
24240         (aarch64_gimplify_va_arg_expr): Likewise.
24242 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
24244         PR middle-end/89037
24245         * varasm.c (output_constructor_bitfield): Use wi::extract_uhwi
24246         instead of accessing TREE_INT_CST_ELT directly.
24248 2019-01-25  Christophe Lyon  <christophe.lyon@linaro.org>
24250         * doc/sourcebuild.texi (Environment attributes): Add fenv and
24251         fenv_exceptions description.
24253 2019-01-25  Wilco Dijkstra  <wdijkstr@arm.com>
24255         PR rtl-optimization/87763
24256         * config/aarch64/aarch64.c (aarch64_select_cc_mode):
24257         Allow SUBREG when matching CC_NZmode compare.
24259 2019-01-25  Richard Biener  <rguenther@suse.de>
24261         PR tree-optimization/89049
24262         * tree-vect-loop.c (vect_compute_single_scalar_iteration_cost):
24263         Look at the pattern stmt to determine if the stmt is vectorized.
24265 2019-01-25  Richard Sandiford  <richard.sandiford@arm.com>
24267         * config/aarch64/aarch64-sve.md (*pred_mov<mode>)
24268         (pred_mov<mode>): Handle all-register forms using both a new
24269         alternative and a split.
24271 2019-01-25  Richard Biener  <rguenther@suse.de>
24273         PR tree-optimization/86865
24274         * graphite-scop-detection.c (scop_detection::can_represent_loop):
24275         Reject non-do-while loops.
24277 2019-01-24  Peter Bergner  <bergner@linux.ibm.com>
24279         * config/rs6000/altivec.md (build_vector_mask_for_load): Use MEM_P.
24280         * config/rs6000/constraints.md (Q constraint): Use REG_P.
24281         * config/rs6000/darwin.h (PREFERRED_RELOAD_CLASS): Use SYMBOL_REF_P.
24282         * config/rs6000/freebsd64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24283         SYMBOL_REF_P, CONST_INT_P and CONST_DOUBLE_P.
24284         * config/rs6000/linux64.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24285         * config/rs6000/predicates.md (altivec_register_operand, vint_operand,
24286         vsx_register_operand, vsx_reg_sfsubreg_ok, vfloat_operand,
24287         vlogical_operand, gpc_reg_operand, int_reg_operand,
24288         int_reg_operand_not_pseudo): Use SUBREG_P and HARD_REGISTER_P.
24289         (ca_operand, base_reg_operand, htm_spr_reg_operand, cc_reg_operand,
24290         cc_reg_not_cr0_operand, input_operand): Use SUBREG_P.
24291         (save_world_operation, restore_world_operation, lmw_operation,
24292         stmw_operation): Use MEM_P and REG_P.
24293         (tie_operand): Use MEM_P.
24294         (vrsave_operation, crsave_operation): Use REG_P.
24295         (mfcr_operation, mtcrf_operation): Use REG_P and CONST_INT_P.
24296         (fpr_reg_operand): Use SUBREG_P and HARD_REGISTER_NUM_P.
24297         (quad_int_reg_operand): Use HARD_REGISTER_NUM_P.
24298         (call_operand): Use HARD_REGISTER_P.
24299         (indexed_or_indirect_operand, altivec_indexed_or_indirect_operand):
24300         Use CONST_INT_P.
24301         (lwa_operand): Use SUBREG_P, REG_P and CONST_INT_P.
24302         * config/rs6000/rs6000-p8swap.c (insn_is_load_p, insn_is_store_p,
24303         quad_aligned_load_p, replace_swapped_aligned_store,
24304         recombine_lvx_pattern, replace_swapped_aligned_load,
24305         recombine_stvx_pattern): Use MEM_P.
24306         (const_load_sequence_p, adjust_vperm, replace_swapped_load_constant):
24307         Use MEM_P and SYMBOL_REF_P.
24308         (rtx_is_swappable_p): Use REG_P and CONST_INT_P.
24309         (insn_is_swappable_p): Use REG_P and MEM_P.
24310         (insn_is_swap_p, (alignment_mask): Use CONST_INT_P.
24311         * config/rs6000/rs6000-string.c (expand_block_clear, expand_block_move):
24312         Use CONST_INT_P.
24313         * config/rs6000/rs6000.c (rs6000_secondary_reload, rs6000_emit_cmove):
24314         Use CONST_DOUBLE_P.
24315         (rs6000_output_move_128bit): Use CONST_DOUBLE_P, CONST_INT_P and
24316         CONST_WIDE_INT_P.
24317         (rs6000_legitimize_address): Use CONST_DOUBLE_P, CONST_INT_P,
24318         CONST_WIDE_INT_P, REG_P and SYMBOL_REF_P.
24319         (rs6000_emit_move): Use CONST_DOUBLE_P, CONST_INT_P, HARD_REGISTER_P,
24320         HARD_REGISTER_NUM_P, MEM_P, REG_P, SUBREG_P, SYMBOL_REF_P and
24321         reg_or_subregno:
24322         (output_toc): Use CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24323         (easy_altivec_constant, rs6000_legitimate_offset_address_p,
24324         rs6000_mode_dependent_address, rs6000_expand_mtfsf_builtin,
24325         rs6000_expand_set_fpscr_rn_builtin, rs6000_expand_set_fpscr_drn_builtin,
24326         rs6000_expand_unop_builtin, INT_P, rs6000_generate_compare,
24327         rs6000_machopic_legitimize_pic_address, rs6000_split_logical_inner,
24328         rs6000_split_logical_di): Use CONST_INT_P.
24329         (rs6000_legitimize_reload_address): Use CONST_INT_P, HARD_REGISTER_P,
24330         REG_P and SYMBOL_REF_P.
24331         (setup_incoming_varargs, rs6000_rtx_costs): Use CONST_INT_P and MEM_P.
24332         (print_operand): Use CONST_INT_P, MEM_P and REG_P.
24333         (virtual_stack_registers_memory_p, rs6000_legitimate_address_p,
24334         mems_ok_for_quad_peep): Use CONST_INT_P and REG_P.
24335         (rs6000_secondary_reload_memory): Use CONST_INT_P and SUBREG_P.
24336         (small_data_operand, print_operand_address): Use CONST_INT_P and
24337         SYMBOL_REF_P.
24338         (split_stack_arg_pointer_used_p): Use HARD_REGISTER_P.
24339         (rs6000_init_hard_regno_mode_ok, direct_move_p):
24340         Use HARD_REGISTER_NUM_P.
24341         (rs6000_secondary_reload_gpr): Use HARD_REGISTER_NUM_P and MEM_P.
24342         (rs6000_secondary_reload_class): Use HARD_REGISTER_NUM_P, REG_P,
24343         SUBREG_P and SYMBOL_REF_P.
24344         (register_to_reg_type, rs6000_secondary_reload_inner): Use SUBREG_P
24345         and HARD_REGISTER_NUM_P.
24346         (rs6000_adjust_vec_address): Use HARD_REGISTER_NUM_P and
24347         reg_or_subregno.
24348         (rs6000_adjust_cost, find_mem_ref): Use MEM_P.
24349         (macho_lo_sum_memory_operand, rs6000_eliminate_indexed_memrefs): Use
24350         MEM_P and REG_P.
24351         (legitimate_indirect_address_p, legitimate_lo_sum_address_p,
24352         registers_ok_for_quad_peep, rs6000_output_function_epilogue,
24353         find_addr_reg): Use REG_P.
24354         (altivec_expand_vec_perm_const): Use REG_P and SUBREG_P.
24355         (rs6000_emit_le_vsx_move): Use SUBREG_P.
24356         (offsettable_ok_by_alignment, constant_pool_expr_p,
24357         legitimate_small_data_p, rs6000_output_dwarf_dtprel,
24358         rs6000_delegitimize_address, rs6000_const_not_ok_for_debug_p,
24359         rs6000_cannot_force_const_mem, rs6000_output_addr_const_extra,
24360         rs6000_assemble_integer, create_TOC_reference,
24361         rs6000_emit_allocate_stack, rs6000_xcoff_encode_section_info,
24362         rs6000_call_aix, rs6000_call_aix): Use SYMBOL_REF_P.
24363         (rs6000_split_vec_extract_var): Use reg_or_subregno.
24364         * config/rs6000/rtems.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Use
24365         CONST_DOUBLE_P, CONST_INT_P and SYMBOL_REF_P.
24366         * config/rs6000/sysv4.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24367         * config/rs6000/xcoff.h (ASM_OUTPUT_SPECIAL_POOL_ENTRY_P): Likewise.
24368         * config/rs6000/rs6000.h (RS6000_SYMBOL_REF_TLS_P): Use SYMBOL_REF_P.
24369         (REGNO_OK_FOR_INDEX_P, REGNO_OK_FOR_BASE_P): Use HARD_REGISTER_NUM_P.
24370         (INT_REG_OK_FOR_INDEX_P, INT_REG_OK_FOR_BASE_P): Use HARD_REGISTER_P.
24371         (CONSTANT_ADDRESS_P): Use CONST_INT_P and SYMBOL_REF_P.
24372         * config/rs6000/rs6000.md (define_expands strlensi, mod<mode>3
24373         and cbranch<mode>4): Use CONST_INT_P.
24374         (multiple define_splits): Use REG_P and SUBREG_P.
24375         (define_expands call, call_value): Use MEM_P.
24376         (define_expands sibcall, sibcall_value): Use CONST_INT_P and  MEM_P.
24377         (define insn *mtcrfsi): Use CONST_INT_P and REG_P.
24378         * config/rs6000/vsx.md (*vsx_le_perm_load_<mode>,
24379         *vsx_le_perm_load_v8hi, *vsx_le_perm_load_v16qi): Use HARD_REGISTER_P
24380         and HARD_REGISTER_NUM_P.
24381         (multiple define_splits): Use HARD_REGISTER_NUM_P.
24383 2019-01-24  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24385         PR rtl-optimization/88948
24386         * rtl.h (prepare_copy_insn): New prototype.
24387         * gcse.c (prepare_copy_insn): New function, split out from
24388         process_insert_insn.
24389         (process_insert_insn): Use prepare_copy_insn.
24390         * store-motion.c (replace_store_insn): Use prepare_copy_insn
24391         instead of gen_move_insn.
24393 2019-01-24  Jakub Jelinek  <jakub@redhat.com>
24395         PR debug/89006
24396         * config/i386/i386.c (ix86_pic_register_p): Return true for
24397         UNSPEC_SET_GOT too.
24399         PR tree-optimization/88964
24400         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Also
24401         punt if HONOR_SNANS (chrec).
24403         PR middle-end/89015
24404         * tree-nested.c (convert_nonlocal_reference_stmt,
24405         convert_local_reference_stmt, convert_tramp_reference_stmt,
24406         convert_gimple_call) <case GIMPLE_OMP_TEAMS>: Treat
24407         gimple_omp_teams_host teams stmts like GIMPLE_OMP_PARALLEL
24408         or GIMPLE_OMP_TASK.
24410         PR tree-optimization/89027
24411         * tree-inline.c (add_clobbers_to_eh_landing_pad): Don't add clobbers
24412         for "omp simd array" variables.
24414 2019-01-24  Richard Earnshaw  <rearnsha@arm.com>
24416         PR target/88469
24417         * profile-count.h (profile_count): On ARM systems using GCC 6/7/8
24418         force the alignment of m_val.
24420 2019-01-24  Richard Biener  <rguenther@suse.de>
24422         PR lto/87187
24423         * tree-streamer-out.c (write_ts_decl_common_tree_pointers):
24424         When in "legacy" debug mode make sure to reset self-origins.
24426 2019-01-24  Martin Liska  <mliska@suse.cz>
24428         PR gcov-profile/88994
24429         * gcov-io.c (mangle_path): Do not allocate a bigger buffer,
24430         result will be always smaller or equal to the original.
24431         * gcov.c (mangle_name): Fix else branch where we should
24432         also copy to PTR and shift the pointer.
24434 2019-01-24  Xiong Hu Luo  <luoxhu@linux.vnet.ibm.com>
24436         * tree-ssa-dom.c (test_for_singularity): Fix a comment typo.
24437         * vr-values.c (find_case_label_ranges): Fix a comment typo.
24439 2019-01-23  Xuepeng Guo  <xuepeng.guo@intel.com>
24441         * common/config/i386/i386-common.c
24442         (OPTION_MASK_ISA_ENQCMD_SET,
24443         OPTION_MASK_ISA_ENQCMD_UNSET): New macros.
24444         (ix86_handle_option): Handle -menqcmd.
24445         * config.gcc (enqcmdintrin.h): New header file.
24446         * config/i386/cpuid.h (bit_ENQCMD): New bit.
24447         * config/i386/driver-i386.c (host_detect_local_cpu): Handle
24448         -menqcmd.
24449         * config/i386/i386-builtin-types.def ((INT, PVOID, PCVOID)): New
24450         function type.
24451         * config/i386/i386-builtin.def (__builtin_ia32_enqcmd,
24452         __builtin_ia32_enqcmds): New builtins.
24453         * config/i386/i386-c.c (__ENQCMD__): New macro.
24454         * config/i386/i386-option.c (ix86_target_string): Add
24455         -menqcmd.
24456         (ix86_valid_target_attribute_inner_p): Likewise.
24457         * config/i386/i386-expand.c
24458         (ix86_expand_builtin): Expand IX86_BUILTIN_ENQCMD and
24459         IX86_BUILTIN_ENQCMDS.
24460         * config/i386/i386.h (TARGET_ENQCMD): New.
24461         * config/i386/i386.md (UNSPECV_ENQCMD, UNSPECV_ENQCMDS): New.
24462         (@enqcmd<enqcmd_sfx>_<mode>): New insn pattern.
24463         (movdir64b_<mode>): Parameterize to enable share expansion code
24464         with ENQCMD in function ix86_expand_builtin.
24465         * config/i386/i386.opt: Add -menqcmd.
24466         * config/i386/immintrin.h: Include enqcmdintrin.h.
24467         * config/i386/enqcmdintrin.h: New intrinsic file.
24468         * doc/invoke.texi: Add -menqcmd.
24470 2019-01-23  Bin Cheng  <bin.cheng@arm.com>
24471             Steve Ellcey  <sellcey@marvell.com>
24473         PR target/85711
24474         * recog.c (address_operand): Return false on wrong mode for address.
24475         (constrain_operands): Check for mode with 'p' constraint.
24477 2019-01-23  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24479         PR target/88998
24480         * config/i386/sse.md (sse2_cvtpi2pd): Add SSE alternatives.
24481         Disparage MMX alternative.
24482         (sse2_cvtpd2pi): Ditto.
24483         (sse2_cvttpd2pi): Ditto.
24485 2019-01-23  David Malcolm  <dmalcolm@redhat.com>
24487         PR driver/89014
24488         * config/aarch64/driver-aarch64.c (host_detect_local_cpu): Fix
24489         use-after-free of the result of
24490         aarch64_get_extension_string_for_isa_flags.
24492 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
24494         PR c/44715
24495         * doc/extend.texi: Document break and continue behavior in
24496         statement expressions.
24498 2019-01-23  Richard Biener  <rguenther@suse.de>
24500         PR tree-optimization/89008
24501         * tree-ssa-reassoc.c (eliminate_using_constants): For * 0 do
24502         not leave another stray operand.
24504 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
24506         * BASE-VER: Bump to 9.0.1.
24508 2019-01-23  Eric Botcazou  <ebotcazou@adacore.com>
24510         * cgraphunit.c (cgraph_node::expand_thunk): When expanding a GIMPLE
24511         thunk that returns by reference, use the type of the return object
24512         of the thunk instead of that of the alias to build the dereference.
24514 2019-01-23  Vineet Gupta  <vgupta@synopsys.com>
24516         * config/arc/atomic.md: Add operand to DMB instruction.
24518 2019-01-23  Jakub Jelinek  <jakub@redhat.com>
24520         PR tree-optimization/88964
24521         * gimple-loop-interchange.cc (loop_cand::analyze_induction_var): Use
24522         build_zero_cst instead of build_int_cst.  Return false for loop
24523         invariants which honor signed zeros.
24525 2019-01-22  Segher Boessenkool  <segher@kernel.crashing.org>
24527         * doc/invoke.texi (-fsplit-paths): This is enabled by default at -O3.
24529 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
24531         PR target/88965
24532         * config/rs6000/rs6000.c: Include tree-vrp.h and tree-ssanames.h.
24533         (rs6000_gimple_fold_builtin): If MEM_REF address doesn't satisfy
24534         is_gimple_mem_ref_addr predicate, force it into a SSA_NAME first.
24536         PR middle-end/88968
24537         * gimplify.c (gimplify_omp_atomic): Handle bitfield atomics with
24538         non-integral DECL_BIT_FIELD_REPRESENTATIVEs.
24540         PR target/87064
24541         * config/rs6000/vsx.md (*vsx_reduc_<VEC_reduc_name>_v2df_scalar):
24542         Disable for little endian.
24544 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
24546         PR target/88469
24547         * config/arm/arm.c (arm_needs_double_word_align): Check
24548         DECL_BIT_FIELD_TYPE.
24550 2019-01-22  Hongtao Liu  <hongtao.liu@intel.com>
24551             H.J. Lu  <hongjiu.lu@intel.com>
24553         PR target/88909
24554         * config/i386/i386-builtin.def: Add mask2 to all builtin
24555         initializations.  Merge ARGS2 and SPECIAL_ARGS2 into ARGS and
24556         SPECIAL_ARGS.
24557         * config/i386/i386.c (BDESC): Add mask2 to the definition.
24558         (BDESC_FIRST): Likewise.
24559         (define_builtin): Add an argument for mask2.  Updated to handle
24560         both ix86_isa_flags and ix86_isa_flags2.
24561         (define_builtin_const): Likewise.
24562         (define_builtin_pure): Likewise.
24563         (define_builtin2): Deleted.
24564         (define_builtin_const2): Likewise.
24565         (builtin_description): Add a member, mask2.
24566         (bdesc_*): Add mask2 to builtin initializations.
24567         (ix86_init_mmx_sse_builtins): Update calls to def_builtin,
24568         def_builtin_const and def_builtin_pure.  Remove SPECIAL_ARGS2
24569         support.
24570         (ix86_get_builtin_func_type): Remove SPECIAL_ARGS2 support.
24572 2019-01-22  H.J. Lu  <hongjiu.lu@intel.com>
24574         PR target/88954
24575         * config/i386/i386.c (ix86_force_load_from_GOT_p): Also check
24576         noplt attribute.
24578 2019-01-22  Richard Earnshaw  <rearnsha@arm.com>
24580         PR target/88469
24581         * config/arm/arm.c (arm_needs_doubleword_align): Return 2 if a record's
24582         alignment is dominated by a bitfield with 64-bit aligned base type.
24583         (arm_function_arg): Emit a warning if the alignment has changed since
24584         earlier GCC releases.
24585         (arm_function_arg_boundary): Likewise.
24586         (arm_setup_incoming_varargs): Likewise.
24588 2019-01-22  Richard Biener  <rguenther@suse.de>
24590         PR tree-optimization/88862
24591         * graphite-scop-detection.c
24592         (scop_detection::graphite_can_represent_scev): Reject ADDR_EXPR.
24594 2019-01-22  Andrew Stubbs  <ams@codesourcery.com>
24596         * doc/extend.tex (AMD GCN Function Attributes): New section.
24597         * doc/install.texi (amdgcn-unknown-amdhsa): New instructions.
24598         * doc/invoke.texi (AMD GCN Options): New section.
24599         * doc/md.texi (Constraints for Particular Machines): Add AMD GCN.
24601 2019-01-22  Eric Botcazou  <ebotcazou@adacore.com>
24603         * config/sparc/sparc.c (parc_delegitimize_address): Recognize the GOT
24604         register and decoded HIGH/LO_SUM combinations for labels in PIC mode.
24606 2019-01-22  Jakub Jelinek  <jakub@redhat.com>
24608         PR tree-optimization/88044
24609         * tree-ssa-loop-niter.c (number_of_iterations_cond): If condition
24610         is false in the first iteration, but !every_iteration, return false
24611         instead of true with niter->niter zero.
24613         PR rtl-optimization/88904
24614         * cfgcleanup.c (thread_jump): Verify cond2 doesn't mention
24615         any nonequal registers before processing BB_END (b).
24617         PR target/88905
24618         * optabs.c (add_equal_note): Add op0_mode argument, use it instead of
24619         GET_MODE (op0).
24620         (expand_binop_directly, expand_doubleword_clz,
24621         expand_doubleword_popcount, expand_ctz, expand_ffs,
24622         expand_unop_direct, maybe_emit_unop_insn): Adjust callers.
24624         PR rtl-optimization/49429
24625         PR target/49454
24626         PR rtl-optimization/86334
24627         PR target/88906
24628         * expr.c (emit_block_move_hints): Move marking of MEM_EXPRs
24629         addressable from here...
24630         (emit_block_op_via_libcall): ... to here.
24632 2019-01-22  Richard Biener  <rguenther@suse.de>
24634         * tree-vect-loop.c (vect_analyze_loop_operations): Use
24635         auto_vec for cost vector to fix memleak.
24636         (vectorize_fold_left_reduction): Properly gather SLP defs.
24637         (vectorizable_comparison): Do not swap operands to properly
24638         gather SLP defs.
24640 2019-01-22  Alan Modra  <amodra@gmail.com>
24642         PR target/88614
24643         * config/rs6000/predicates.md (unspec_tls): Ensure GOT reg
24644         stays a reg.  Allow a const_int.
24645         * config/rs6000/rs6000-protos.h (rs6000_output_tlsargs): Declare.
24646         * config/rs6000/rs6000.h (IS_V4_FP_ARGS): Define.
24647         (IS_NOMARK_TLSGETADDR): Define.
24648         * config/rs6000/rs6000.c (edit_tls_call_insn): Delete.
24649         (rs6000_output_tlsargs): New function.
24650         (rs6000_legitimize_tls_address): Don't say a !TARGET_TLS_MARKERS
24651         __tls_get_addr call takes an arg.
24652         (rs6000_call_sysv): Generate sysv4 secure plt call pattern here..
24653         * config/rs6000/rs6000.md (call_nonlocal_sysv): ..rather than here,
24654         delete split..
24655         (call_value_nonlocal_sysv): ..or here, delete split.
24656         (tls_gdld_nomark): Delete.
24657         (call_value_indirect_nonlocal_sysv): Use unspec_tls as operand2
24658         predicate.  Call rs6000_output_tlsargs.  Adjust length to suit.
24659         (call_value_nonlocal_sysv): Likewise.
24660         (call_value_nonlocal_sysv_secure): Likewise.
24661         (call_value_nonlocal_aix): Likewise.
24662         (call_value_indirect_aix): Likewise.
24663         (call_value_indirect_elfv2): Likewise.
24664         (call_value_local32, call_value_local64): Disable for no-mark tls.
24665         (call_value_local_aix): Likewise.
24667 2019-01-21  UroÅ¡ Bizjak  <ubizjak@gmail.com>
24669         PR target/88938
24670         * config/i386/i386.c (ix86_expand_builtin) [case IX86_BUILTIN_BEXTRI32,
24671         case IX86_BUILTIN_BEXTRI64]: Sanitize operands.
24673 2019-01-21  Michael Ploujnikov  <michael.ploujnikov@oracle.com>
24675         * hash-map-tests.c (test_map_of_strings_to_int): Show how to use
24676         string contents as hash_map keys.
24678 2019-01-21  Bernd Edlinger  <bernd.edlinger@hotmail.de>
24680         PR c/88928
24681         * c-warn.c (check_alignment_of_packed_member): Add a boolean parameter
24682         for rvalue context.  Handle rvalues correctly.  Use min_align_of_type
24683         instead of TYPE_ALIGN.
24684         (check_address_or_pointer_of_packed_member): Handle rvalues coorrectly.
24685         Use min_align_of_type instead of TYPE_ALIGN_UNIT.  Check for NULL
24686         pointer from TYPE_STUB_DECL.
24688 2019-01-21  Richard Biener  <rguenther@suse.de>
24690         PR tree-optimization/88934
24691         * tree-vect-slp.c (vect_mask_constant_operand_p): Always look
24692         at the possibly non-constant operand.
24693         (vect_get_constant_vectors): Adjust.
24695 2019-01-21  H.J. Lu  <hongjiu.lu@intel.com>
24697         PR target/71659
24698         * config/i386/adxintrin.h: Just check _IMMINTRIN_H_INCLUDED.
24699         * config/i386/clflushoptintrin.h: Check _IMMINTRIN_H_INCLUDED
24700         instead of _X86INTRIN_H_INCLUDED.
24701         * onfig/i386/clwbintrin.h: Likewise.
24702         * config/i386/pkuintrin.h: Likewise.
24703         * config/i386/prfchwintrin.h: Likewise.
24704         * config/i386/rdseedintrin.h: Likewise.
24705         * config/i386/wbnoinvdintrin.h: Likewise.
24706         * config/i386/xsavecintrin.h: Likewise.
24707         * config/i386/xsavesintrin.h: Likewise.
24708         * config/i386/fxsrintrin.h: Enable _IMMINTRIN_H_INCLUDED check.
24709         * config/i386/xsaveintrin.h: Likewise.
24710         * config/i386/xsaveoptintrin.h: Likewise.
24711         * config/i386/x86intrin.h: Move "#include" <rdseedintrin.h>,
24712         <prfchwintrin.h>, <fxsrintrin.h>, <xsaveintrin.h>,
24713         <xsaveoptintrin.h>, <adxintrin.h>, <clwbintrin.h>,
24714         <clflushoptintrin.h>, <xsavesintrin.h>, <xsavecintrin.h>,
24715         <wbnoinvdintrin.h> and <pkuintrin.h> to ...
24716         * config/i386/immintrin.h: Here.
24718 2019-01-20  Martin Jambor  <mjambor@suse.cz>
24720         PR ipa/87615
24721         * ipa-prop.h (struct ipa_func_body_info): Replaced field aa_walked
24722         with aa_walk_budget.
24723         * cgraph.h (ipa_polymorphic_call_context::get_dynamic_type): Add
24724         aa_walk_budget_p parameter.
24725         * ipa-fnsummary.c (unmodified_parm_1): New parameter fbi.  Limit AA
24726         walk.  Updated all callers.
24727         (unmodified_parm): New parameter fbi, pass it to unmodified_parm_1.
24728         (eliminated_by_inlining_prob): New parameter fbi, pass it on to
24729         unmodified_parm.
24730         (will_be_nonconstant_expr_predicate): New parameter fbi, removed
24731         parameter info.  Extract info from fbi.  Pass fbi to recursive calls
24732         and to unmodified_parm.
24733         (phi_result_unknown_predicate): New parameter fbi, removed parameter
24734         info, updated call to will_be_nonconstant_expr_predicate.
24735         (param_change_prob): New parameter fbi, limit AA walking.
24736         (analyze_function_body): Initialize aa_walk_budget in fbi.  Update
24737         calls to various above functions.
24738         * ipa-polymorphic-call.c (get_dynamic_type): Add aa_walk_budget_p
24739         parameter.  Use it to limit AA walking.
24740         * ipa-prop.c (detect_type_change_from_memory_writes): New parameter
24741         fbi, limit AA walk.
24742         (detect_type_change): New parameter fbi, pass it on to
24743         detect_type_change_from_memory_writes.
24744         (detect_type_change_ssa): Likewise.
24745         (aa_overwalked): Removed.
24746         (parm_preserved_before_stmt_p): Assume fbi is never NULL, stream line
24747         accordingly, adjust to the neew AA limiting scheme.
24748         (parm_ref_data_preserved_p): Likewise.
24749         (ipa_compute_jump_functions_for_edge): Adjust call to
24750         get_dynamic_type.
24751         (ipa_analyze_call_uses): Likewise.
24752         (ipa_analyze_virtual_call_uses): Pass fbi to detect_type_change_ssa.
24753         (ipa_analyze_node): Initialize aa_walk_budget.
24754         (ipcp_transform_function): Likewise.
24755         * tree-ssa-sccvn.c (eliminate_dom_walker::eliminate_stmt): Update call
24756         to get_dynamic_type.
24758 2019-01-19  Jakub Jelinek  <jakub@redhat.com>
24760         * config/aarch64/aarch64.c (aarch64_stack_protect_guard): Move
24761         outside of #if CHECKING_P code.
24763 2019-01-19  Richard Sandiford  <richard.sandiford@arm.com>
24765         * gimple-loop-versioning.cc (loop_versioning::dump_inner_likelihood):
24766         New function, split out from...
24767         (loop_versioning::analyze_stride): ...here.
24768         (loop_versioning::find_per_loop_multiplication): Use gassign.
24769         (loop_versioning::analyze_term_using_scevs): Return a success code.
24770         (loop_versioning::analyze_arbitrary_term): New function.
24771         (loop_versioning::analyze_address_fragment): Use
24772         analyze_arbitrary_term if all else fails.
24774 2019-01-18  Segher Boessenkool  <segher@kernel.crashing.org>
24776         PR target/88892
24777         * config/rs6000/rs6000.md (*movsi_from_df): Allow only register
24778         operands.
24780 2019-01-18  Richard Biener  <rguenther@suse.de>
24782         PR tree-optimization/88903
24783         * tree-vect-stmts.c (vectorizable_shift): Verify we see all
24784         scalar stmts a SLP shift amount is composed of when detecting
24785         shifts by scalars.
24787 2019-01-18  Richard Earnshaw  <rearnsha@arm.com>
24789         PR target/88799
24790         * config/arm/arm-cpus.in (mp): New feature.
24791         (sec): New feature.
24792         (fgroup ARMv7ve): Add mp and sec features.
24793         (arch armv7-a): Add options to allow mp and sec extensions.
24794         (cpu generic-armv7-a): Add options to allow mp and sec extensions.
24795         (cpu cortex-a5, cpu cortex-7, cpu cortex-a9): Add mp and sec
24796         extenstions to the base architecture.
24797         (cpu cortex-a8): Add sec extension to the base architecture.
24798         (cpu marvell-pj4): Add mp and sec extensions to the base architecture.
24799         * config/arm/t-aprofile (MULTILIB_MATCHES): Map all armv7-a arch
24800         variants down to the base v7-a varaint.
24801         * config/arm/t-multilib (v7_a_arch_variants): New variable.
24802         * doc/invoke.texi (ARM Options): Add +mp and +sec to the list
24803         of permitted extensions for -march=armv7-a and for
24804         -mcpu=generic-armv7-a.
24806 2019-01-18  Martin Liska  <mliska@suse.cz>
24808         * params.def: Fix comment.
24809         * tree-profile.c (gimple_init_gcov_profiler): Bump function
24810         name.
24811         (gimple_gen_ic_func_profiler): Likewise.
24813 2019-01-18  Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
24815         * config/aarch64/aarch64-opts.h (enum stack_protector_guard): New
24816         * config/aarch64/aarch64.c (aarch64_override_options_internal): Handle
24817         and put in error checks for stack protector guard options.
24818         (aarch64_stack_protect_guard): New.
24819         (TARGET_STACK_PROTECT_GUARD): Define.
24820         * config/aarch64/aarch64.md (UNSPEC_SSP_SYSREG): New.
24821         (reg_stack_protect_address<mode>): New.
24822         (stack_protect_set): Adjust for SSP_GLOBAL.
24823         (stack_protect_test): Likewise.
24824         * config/aarch64/aarch64.opt (-mstack-protector-guard-reg): New.
24825         (-mstack-protector-guard): Likewise.
24826         (-mstack-protector-guard-offset): Likewise.
24828 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
24830         PR tree-optimization/86214
24831         * tree-inline.h (struct copy_body_data): Add
24832         add_clobbers_to_eh_landing_pads member.
24833         * tree-inline.c (add_clobbers_to_eh_landing_pad): New function.
24834         (copy_edges_for_bb): Call it if EH edge destination is <
24835         id->add_clobbers_to_eh_landing_pads.  Fix a comment typo.
24836         (expand_call_inline): Set id->add_clobbers_to_eh_landing_pads
24837         if flag_stack_reuse != SR_NONE and clear it afterwards.
24839 2019-01-18  Christophe Lyon  <christophe.lyon@linaro.org>
24841         PR target/85596
24842         * doc/install.texi (with-multilib-list): Document for aarch64.
24844 2019-01-18  Jakub Jelinek  <jakub@redhat.com>
24846         PR target/88734
24847         * config/arm/arm_neon.h: Fix #pragma GCC target syntax - replace
24848         (("..."))) with ("...").
24850 2019-01-18  Sebastian Huber  <sebastian.huber@embedded-brains.de>
24852         * doc/extend.texi (Built-in Functions for Memory Model Aware
24853         Atomic Operations): Document atomic fetch and nand.
24855 2019-01-18  Martin Liska  <mliska@suse.cz>
24856             Richard Biener  <rguenther@suse.de>
24858         PR middle-end/88587
24859         * cgraph.h (create_version_clone_with_body): Add new argument
24860         with attributes.
24861         * cgraphclones.c (cgraph_node::create_version_clone): Add
24862         DECL_ATTRIBUTES to a newly created decl.  And call
24863         valid_attribute_p so that proper cl_target_optimization_node
24864         is set for the newly created declaration.
24865         * multiple_target.c (create_target_clone): Set DECL_ATTRIBUTES
24866         for declaration.
24867         (expand_target_clones): Do not call valid_attribute_p, it must
24868         be already done.
24869         * tree-inline.c (copy_decl_for_dup_finish): Reset mode for
24870         vector types.
24872 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
24874         PR target/88734
24875         * config/aarch64/arm_neon.h: Fix #pragma GCC target syntax - replace
24876         (("..."))) with ("...").  Use arch=armv8.2-a+sha3 instead of
24877         arch=armv8.2-a+crypto for vsha512hq_u64 etc. intrinsics.
24879 2019-01-17  Martin Sebor  <msebor@redhat.com>
24881         PR middle-end/88273
24882         * gimple-ssa-warn-restrict.c (builtin_memref::extend_offset_range):
24883         Handle anti-ranges the same as no range at all.
24885 2018-01-17  Steve Ellcey  <sellcey@cavium.com>
24887         * config/aarch64/aarch64.c (cgraph.h): New include.
24888         (intl.h): New include.
24889         (supported_simd_type): New function.
24890         (currently_supported_simd_type): Ditto.
24891         (aarch64_simd_clone_compute_vecsize_and_simdlen): Ditto.
24892         (aarch64_simd_clone_adjust): Ditto.
24893         (aarch64_simd_clone_usable): Ditto.
24894         (TARGET_SIMD_CLONE_COMPUTE_VECSIZE_AND_SIMDLEN): New macro.
24895         (TARGET_SIMD_CLONE_ADJUST): Ditto.
24896         (TARGET_SIMD_CLONE_USABLE): Ditto.
24897         * config/i386/i386.c (ix86_simd_clone_adjust): Add definition check.
24898         * omp-simd-clone.c (expand_simd_clones): Add targetm.simd_clone.adjust
24899         call.
24901 2019-01-17  Martin Sebor  <msebor@redhat.com>
24903         PR tree-optimization/88800
24904         * gimple-fold.c (gimple_fold_builtin_memory_op): Avoid checking
24905         NO_WARNING bit here.  Avoid folding out-of-bounds calls.
24906         * gimple-ssa-warn-restrict.c (maybe_diag_offset_bounds): Remove
24907         redundant argument.  Add new argument and issue diagnostics under
24908         its control.  Detect out-of-bounds access even with warnings
24909         disabled.
24910         (check_bounds_or_overlap): Change return type.  Add argument.
24911         (wrestrict_dom_walker::check_call): Adjust.
24912         * gimple-ssa-warn-restrict.h (check_bounds_or_overlap): Add argument.
24913         * tree-ssa-strlen.c (handle_builtin_strcpy): Adjust to change in
24914         check_bounds_or_overlap's return value.
24915         (handle_builtin_stxncpy): Same.
24916         (handle_builtin_strcat): Same.
24918 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24919             Kwok Cheung Yeung  <kcy@codesourcery.com>
24920             Julian Brown  <julian@codesourcery.com>
24921             Tom de Vries  <tom@codesourcery.com>
24923         * doc/sourcebuild.texi: Document dg-add-options sqrt_insn.
24925 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24927         * doc/sourcebuild.texi: Document dg-require-effective-target
24928         llvm_binutils and offload_gcn.
24930 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24931             Kwok Cheung Yeung  <kcy@codesourcery.com>
24932             Julian Brown  <julian@codesourcery.com>
24933             Tom de Vries  <tom@codesourcery.com>
24935         * doc/sourcebuild.texi: Document dg-required-effective-target
24936         exceptions.
24938 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24939             Kwok Cheung Yeung  <kcy@codesourcery.com>
24940             Julian Brown  <julian@codesourcery.com>
24941             Tom de Vries  <tom@codesourcery.com>
24942             Jan Hubicka  <hubicka@ucw.cz>
24943             Martin Jambor  <mjambor@suse.cz>
24945         * config.gcc: Add amdgcn*-*-amdhsa configuration.
24946         * configure.ac: Check for dlopen.
24947         * configure: Regenerate.
24949 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24950             Kwok Cheung Yeung  <kcy@codesourcery.com>
24951             Julian Brown  <julian@codesourcery.com>
24952             Tom de Vries  <tom@codesourcery.com>
24953             Jan Hubicka  <hubicka@ucw.cz>
24954             Martin Jambor  <mjambor@suse.cz>
24956         * common/config/gcn/gcn-common.c: New file.
24957         * config/gcn/driver-gcn.c: New file.
24958         * config/gcn/gcn-builtins.def: New file.
24959         * config/gcn/gcn-hsa.h: New file.
24960         * config/gcn/gcn-modes.def: New file.
24961         * config/gcn/gcn-opts.h: New file.
24962         * config/gcn/gcn-passes.def: New file.
24963         * config/gcn/gcn-protos.h: New file.
24964         * config/gcn/gcn-run.c: New file.
24965         * config/gcn/gcn-tree.c: New file.
24966         * config/gcn/gcn.c: New file.
24967         * config/gcn/gcn.h: New file.
24968         * config/gcn/gcn.opt: New file.
24969         * config/gcn/t-gcn-hsa: New file.
24971 2019-01-17  Andrew Stubbs  <ams@codesourcery.com>
24972             Kwok Cheung Yeung  <kcy@codesourcery.com>
24973             Julian Brown  <julian@codesourcery.com>
24974             Tom de Vries  <tom@codesourcery.com>
24975             Jan Hubicka  <hubicka@ucw.cz>
24976             Martin Jambor  <mjambor@suse.cz>
24978         * config/gcn/constraints.md: New file.
24979         * config/gcn/gcn-valu.md: New file.
24980         * config/gcn/gcn.md: New file.
24981         * config/gcn/predicates.md: New file.
24983 2019-01-17  Eric Botcazou  <ebotcazou@adacore.com>
24985         * gimple-ssa-isolate-paths.c (stmt_uses_name_in_undefined_way): Replace
24986         flag_non_call_exceptions with cfun->can_throw_non_call_exceptions.
24987         (stmt_uses_0_or_null_in_undefined_way): Likewise.
24988         * tree-ssa-alias.c (same_addr_size_stores_p): Likewise.
24990 2019-01-17  Tamar Christina  <tamar.christina@arm.com>
24992         PR target/88851
24993         * config/aarch64/aarch64.md (STACK_CLASH_SVE_CFA_REGNUM): New.
24994         * config/aarch64/aarch64.c (aarch64_allocate_and_probe_stack_space): Use
24995         it and document registers.
24997 2019-01-17  Kyrylo Tkachov  <kyrylo.tkachov@arm.com>
24999         * config/aarch64/aarch64.c (ares_tunings): Define.
25000         * config/aarch64/aarch64-cores.def (ares): Use the above.
25002 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
25004         PR target/88794
25005         Revert:
25006         2018-11-06  Wei Xiao  <wei3.xiao@intel.com>
25008         * config/i386/avx512fintrin.h: Update VFIXUPIMM* intrinsics.
25009         (_mm512_fixupimm_round_pd): Update parameters and builtin.
25010         (_mm512_maskz_fixupimm_round_pd): Ditto.
25011         (_mm512_fixupimm_round_ps): Ditto.
25012         (_mm512_maskz_fixupimm_round_ps): Ditto.
25013         (_mm_fixupimm_round_sd): Ditto.
25014         (_mm_maskz_fixupimm_round_sd): Ditto.
25015         (_mm_fixupimm_round_ss): Ditto.
25016         (_mm_maskz_fixupimm_round_ss): Ditto.
25017         (_mm512_fixupimm_pd): Ditto.
25018         (_mm512_maskz_fixupimm_pd): Ditto.
25019         (_mm512_fixupimm_ps): Ditto.
25020         (_mm512_maskz_fixupimm_ps): Ditto.
25021         (_mm_fixupimm_sd): Ditto.
25022         (_mm_maskz_fixupimm_sd): Ditto.
25023         (_mm_fixupimm_ss): Ditto.
25024         (_mm_maskz_fixupimm_ss): Ditto.
25025         (_mm512_mask_fixupimm_round_pd): Update builtin.
25026         (_mm512_mask_fixupimm_round_ps): Ditto.
25027         (_mm_mask_fixupimm_round_sd): Ditto.
25028         (_mm_mask_fixupimm_round_ss): Ditto.
25029         (_mm512_mask_fixupimm_pd): Ditto.
25030         (_mm512_mask_fixupimm_ps): Ditto.
25031         (_mm_mask_fixupimm_sd): Ditto.
25032         (_mm_mask_fixupimm_ss): Ditto.
25033         * config/i386/avx512vlintrin.h:
25034         (_mm256_fixupimm_pd): Update parameters and builtin.
25035         (_mm256_maskz_fixupimm_pd): Ditto.
25036         (_mm256_fixupimm_ps): Ditto.
25037         (_mm256_maskz_fixupimm_ps): Ditto.
25038         (_mm_fixupimm_pd): Ditto.
25039         (_mm_maskz_fixupimm_pd): Ditto.
25040         (_mm_fixupimm_ps): Ditto.
25041         (_mm_maskz_fixupimm_ps): Ditto.
25042         (_mm256_mask_fixupimm_pd): Update builtin.
25043         (_mm256_mask_fixupimm_ps): Ditto.
25044         (_mm_mask_fixupimm_pd): Ditto.
25045         (_mm_mask_fixupimm_ps): Ditto.
25046         * config/i386/i386-builtin-types.def: Add new types and remove
25047         useless ones.
25048         * config/i386/i386-builtin.def: Update builtin definitions.
25049         * config/i386/i386.c: Handle new builtin types and remove useless ones.
25050         * config/i386/sse.md: Update VFIXUPIMM* patterns.
25051         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25052         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25053         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Update.
25054         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25055         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25056         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Update.
25057         * config/i386/subst.md:
25058         (round_saeonly_sd_mask_operand4): Add new subst_attr.
25059         (round_saeonly_sd_mask_op4): Ditto.
25060         (round_saeonly_expand_operand5): Ditto.
25061         (round_saeonly_expand): Update.
25063 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
25065         PR target/88794
25066         Revert:
25067         2018-11-12  Wei Xiao  <wei3.xiao@intel.com>
25069         * config/i386/sse.md: Combine VFIXUPIMM* patterns
25070         (<avx512>_fixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25071         (<avx512>_fixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25072         (<avx512>_fixupimm<mode>_mask<round_saeonly_name>): Remove.
25073         (avx512f_sfixupimm<mode>_maskz<round_saeonly_expand_name>): Update.
25074         (avx512f_sfixupimm<mode><sd_maskz_name><round_saeonly_name>): Update.
25075         (avx512f_sfixupimm<mode>_mask<round_saeonly_name>): Remove.
25077 2019-01-17  Wei Xiao  <wei3.xiao@intel.com>
25079         PR target/88794
25080         Revert:
25081         2018-12-15  Jakub Jelinek  <jakub@redhat.com>
25083         PR target/88489
25084         * config/i386/sse.md (UNSPEC_SFIXUPIMM): New unspec enumerator.
25085         (avx512f_sfixupimm<mode><mask_name><round_saeonly_name>): Use it
25086         instead of UNSPEC_FIXUPIMM.
25088 2019-01-17  Richard Biener  <rguenther@suse.de>
25090         PR lto/86736
25091         * dwarf2out.c (want_pubnames): Never generate pubnames sections
25092         and friends for the LTO part of debug info.
25094 2019-01-17  Jakub Jelinek  <jakub@redhat.com>
25096         PR tree-optimization/86214
25097         * cfgexpand.c (add_stack_var_conflict): Don't add any conflicts
25098         if x == y.
25100         PR rtl-optimization/88870
25101         * dce.c (deletable_insn_p): Never delete const/pure calls that can
25102         throw if we can't alter the cfg or delete dead exceptions.
25103         (mark_insn): Don't call find_call_stack_args for such calls.
25105 2019-01-17  Kewen Lin  <linkw@gcc.gnu.org>
25107         * doc/extend.texi: Add four new prototypes for vec_ld and seven new
25108         prototypes for vec_st.
25109         * config/rs6000/rs6000-c.c (altivec_overloaded_builtins): Add entries
25110         for scalar address type variants of altivec_vec_ld/altivec_vec_st,
25111         mainly on signed/unsigned long long and double.
25113 2019-01-16  David Malcolm  <dmalcolm@redhat.com>
25115         PR target/88861
25116         * combine.c (delete_noop_moves): Convert to "bool" return,
25117         returning true if any edges are eliminated.
25118         (combine_instructions): Also return true if delete_noop_moves
25119         returns true.
25121 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
25123         * config/aarch64/aarch64-builtins.c (aarch64_simd_expand_args): Use
25124         correct max nunits for endian swap.
25125         (aarch64_expand_fcmla_builtin): Correct subreg code.
25126         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25127         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>): Correct
25128         lane endianness.
25130 2019-01-16  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25132         * config/alpha/alpha.c (alpha_gimplify_va_arg):
25133         Handle split indirect COMPLEX_TYPE arguments.
25135 2019-01-16  Richard Earnshaw  <rearnsha@arm.com>
25137         PR target/86891
25138         * config/aarch64/aarch64-modes.def: Add comment about how the carry
25139         bit is set by add and compare.
25140         (CC_ADC): New CC_MODE.
25141         * config/aarch64/aarch64.c (aarch64_select_cc_mode): Use variables
25142         to cache the code and mode of X.  Adjust the shape of a CC_Cmode
25143         comparison.  Add detection for CC_ADCmode.
25144         (aarch64_get_condition_code_1): Update code support for CC_Cmode.  Add
25145         CC_ADCmode.
25146         * config/aarch64/aarch64.md (uaddv<mode>4): Use LTU with CCmode.
25147         (uaddvti4): Comparison result is in CC_ADCmode and the condition is GEU.
25148         (add<mode>3_compareC_cconly_imm): Delete.  Merge into...
25149         (add<mode>3_compareC_cconly): ... this.  Restructure the comparison
25150         to eliminate the need for zero-extending the operands.
25151         (add<mode>3_compareC_imm): Delete.  Merge into ...
25152         (add<mode>3_compareC): ... this.  Restructure the comparison to
25153         eliminate the need for zero-extending the operands.
25154         (add<mode>3_carryin): Use LTU for the overflow detection.
25155         (add<mode>3_carryinC): Use CC_ADCmode for the result of the carry out.
25156         Reexpress comparison for overflow.
25157         (add<mode>3_carryinC_zero): Update for change to add<mode>3_carryinC.
25158         (add<mode>3_carryinC): Likewise.
25159         (add<mode>3_carryinV): Use LTU for carry between partials.
25160         * config/aarch64/predicates.md (aarch64_carry_operation): Update
25161         handling of CC_Cmode and add CC_ADCmode.
25162         (aarch64_borrow_operation): Likewise.
25164 2019-01-16  Tamar Christina  <tamar.christina@arm.com>
25166         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands):
25167         Remove patternmode.
25168         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): Likewise.
25169         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25170         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>):
25171         Remove endianness conversion.
25173 2019-01-16  Martin Liska  <mliska@suse.cz>
25175         * Makefile.in: Set TOOL_INCLUDE_DIR and NATIVE_SYSTEM_HEADER_DIR
25176         for GCC driver.
25177         * config/gnu-user.h (TARGET_F951_OPTIONS): Add 'finclude%s/' as
25178         a new argument.
25179         * gcc.c (add_sysrooted_hdrs_prefix): New function.
25180         (path_prefix_reset): Move up in the source file.
25181         (find_fortran_preinclude_file): Make complex search for the
25182         fortran header files.
25184 2019-01-15  Nikhil Benesch  <nikhil.benesch@gmail.com>
25186         * godump.c (go_output_typedef): When outputting a typedef, refer
25187         to the underlying type by its name and not its structure.
25189 2019-01-15  David Malcolm  <dmalcolm@redhat.com>
25191         PR c++/88795
25192         * tree.c (build_function_type): Assert that arg_types is not
25193         error_mark_node.
25195 2019-01-15  Richard Sandiford  <richard.sandiford@arm.com>
25197         PR inline-asm/52813
25198         * doc/extend.texi: Document that listing the stack pointer in the
25199         clobber list of an asm is a deprecated feature.
25200         * common.opt (Wdeprecated): Moved from c-family/c.opt.
25201         * cfgexpand.c (asm_clobber_reg_is_valid): Issue a -Wdeprecated
25202         warning instead of an error for clobbers of the stack pointer.
25203         Add a note explaining why.
25205 2019-01-15  Richard Biener  <rguenther@suse.de>
25207         PR debug/88046
25208         * dwarf2out.c (gen_member_die): Do not generate inheritance
25209         DIEs late.
25211 2019-01-15  Richard Biener  <rguenther@suse.de>
25213         PR tree-optimization/88855
25214         * tree-if-conv.c (combine_blocks): Collect
25215         SSA_NAME_OCCURS_IN_ABNORMAL_PHI from propagated out virtuals.
25217 2019-01-15  Tom de Vries  <tdevries@suse.de>
25219         PR target/80547
25220         * config/nvptx/nvptx.c (nvptx_goacc_reduction_init): Handle
25221         lhs == NULL_TREE for gang-level reduction.
25223 2019-01-15  Richard Biener  <rguenther@suse.de>
25224             Prathamesh Kulkarni  <prathamesh.kulkarni@linaro.org>
25226         PR ipa/88788
25227         * ipa-pure-const.c (malloc_candidate_p_1): Add parameter visited and
25228         return true if SSA_NAME is already marked in visited bitmap.
25229         (malloc_candidate_p): Pass visited to malloc_candidate_p_1.
25231 2019-01-15  Jakub Jelinek  <jakub@redhat.com>
25233         PR tree-optimization/88775
25234         * match.pd (cmp (convert1?@2 addr@0) (convert2? addr@1)): Optimize
25235         equal == 0 equality pointer comparisons some more if compared in
25236         integral types and either one points to an automatic var and the
25237         other to a global, or we can prove at least one points to the middle
25238         or both point to start or both point to end.
25240 2019-01-14  Andi Kleen  <ak@linux.intel.com>
25242         * Makefile.in: Lower autofdo sampling rate by 10x.
25243         * Makefile.tpl: Dito.
25245 2019-01-14  Tom Honermann  <tom@honermann.net>
25247         * defaults.h: Define CHAR8_TYPE.
25249 2019-01-14  Martin Sebor  <msebor@redhat.com>
25251         PR target/88638
25252         * doc/extend.texi (Darwin Format Checks): Clarify.
25254 2019-01-14  Richard Biener  <rguenther@suse.de>
25256         * genmatch.c (dt_simplify::gen_1): Change dumping dependent on
25257         whether we are in (simplify ...) or (match ...) context.
25259 2019-01-14  Jakub Jelinek  <jakub@redhat.com>
25261         PR rtl-optimization/88796
25262         * emit-rtl.h (struct rtl_data): Add stack_protect_guard_decl field.
25263         * cfgexpand.c (stack_protect_prologue): Initialize
25264         crtl->stack_protect_guard_decl.
25265         * function.c (stack_protect_epilogue): Use it instead of calling
25266         targetm.stack_protect_guard again.
25267         * dse.c (check_mem_read_rtx): Ignore MEM_VOLATILE_P reads from
25268         MEMs with MEM_EXPR equal to crtl->stack_protect_guard or
25269         crtl->stack_protect_guard_decl.
25270         * config/i386/i386.c (ix86_stack_protect_guard): Set TREE_THIS_VOLATILE
25271         on the returned MEM_EXPR.
25273 2019-01-12  Tom de Vries  <tdevries@suse.de>
25275         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Alow setting
25276         vector length using -fopenacc-dim.
25278 2019-01-12  Tom de Vries  <tdevries@suse.de>
25280         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Take larger vector
25281         lengths into account.
25283 2019-01-12  Svante Signell  <svante.signell@gmail.com>
25285         * config/i386/gnu.h (TARGET_THREAD_SSP_OFFSET): Define.
25286         (TARGET_CAN_SPLIT_STACK): Define.
25287         (TARGET_THREAD_SPLIT_STACK_OFFSET): Define.
25289 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
25291         * params.def (inline-unit-growth): Set to 40.
25293 2019-01-12  Jakub Jelinek  <jakub@redhat.com>
25295         * tree-ssa-loop-ivopts.c (find_inv_vars): Fix a comment typo.
25297 2019-01-12  Tom de Vries  <tdevries@suse.de>
25299         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): In offloading
25300         region calling vector-partitionable routine, set default_vector_length
25301         to WARP_SIZE.
25303 2019-01-12  Tom de Vries  <tdevries@suse.de>
25305         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add an use new
25306         variable default_vector_length.
25308 2019-01-12  Tom de Vries  <tdevries@suse.de>
25310         PR middle-end/88703
25311         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Apply defaults
25312         from oacc_default_dims, as oacc_validate_dims would do it, and apply
25313         dimensions limits.
25315 2019-01-12  Tom de Vries  <tdevries@suse.de>
25317         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1)
25318         (nvptx_goacc_validate_dims): Add used parameter.
25319         * doc/tm.texi: Regenerate.
25320         * omp-offload.c (oacc_parse_default_dims, oacc_validate_dims): Add
25321         argument to call to targetm.goacc.validate_dims.
25322         (default_goacc_validate_dims): Add used
25323         parameter.
25324         * target.def (validate_dims): Add used parameter in DEFHOOK.
25325         * targhooks.h (default_goacc_validate_dims): Add used parameter.
25327 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25329         PR middle-end/85956
25330         PR lto/88733
25331         * tree-inline.h (struct copy_body_data): Add adjust_array_error_bounds
25332         field.
25333         * tree-inline.c (remap_type_1): Formatting fix.  If TYPE_MAX_VALUE of
25334         ARRAY_TYPE's TYPE_DOMAIN is newly error_mark_node, replace it with
25335         a dummy "omp dummy var" variable if id->adjust_array_error_bounds.
25336         * omp-low.c (new_omp_context): Set cb.adjust_array_error_bounds.
25338 2019-01-11  Vladimir Makarov  <vmakarov@redhat.com>
25340         PR rtl-optimization/87305
25341         * lra-assigns.c
25342         (setup_live_pseudos_and_spill_after_risky_transforms): Add code
25343         for little endian pseudos used as paradoxical subreg.
25345 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25347         PR tree-optimization/88693
25348         * tree-ssa-strlen.c (get_min_string_length): Don't set *full_string_p
25349         for STRING_CSTs that don't contain any NUL characters in the first
25350         TREE_STRING_LENGTH bytes.
25352 2019-01-11  Alan Modra  <amodra@gmail.com>
25354         PR 88777
25355         PR 88614
25356         * genattrtab.c (min_fn): Don't translate values.
25357         (min_attr_value): Return INT_MAX when the value can't be calculated.
25358         Return minimum among any values that can be calculated.
25359         (max_attr_value): Adjust.
25361 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25363         * Makefile.in (PLUGIN_HEADERS): Add $(INSN_ATTR_H).
25365 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
25367         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25368         (aarch64_hard_regno_call_part_clobbered): Add insn argument.
25369         (aarch64_return_call_with_max_clobbers): New function.
25370         (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New macro.
25371         * config/avr/avr.c (avr_hard_regno_call_part_clobbered): Add insn
25372         argument.
25373         * config/i386/i386.c (ix86_hard_regno_call_part_clobbered): Ditto.
25374         * config/mips/mips.c (mips_hard_regno_call_part_clobbered): Ditto.
25375         * config/rs6000/rs6000.c (rs6000_hard_regno_call_part_clobbered): Ditto.
25376         * config/s390/s390.c (s390_hard_regno_call_part_clobbered): Ditto.
25377         * cselib.c (cselib_process_insn): Add argument to
25378         targetm.hard_regno_call_part_clobbered call.
25379         * ira-conflicts.c (ira_build_conflicts): Ditto.
25380         * ira-costs.c (ira_tune_allocno_costs): Ditto.
25381         * lra-constraints.c (inherit_reload_reg): Ditto.
25382         * lra-int.h (struct lra_reg): Add call_insn field, remove call_p field.
25383         * lra-lives.c (check_pseudos_live_through_calls): Add call_insn
25384         argument.  Call targetm.return_call_with_max_clobbers.
25385         Add argument to targetm.hard_regno_call_part_clobbered call.
25386         (calls_have_same_clobbers_p): New function.
25387         (process_bb_lives): Add call_insn and last_call_insn variables.
25388         Pass call_insn to check_pseudos_live_through_calls.
25389         Modify if stmt to check targetm.return_call_with_max_clobbers.
25390         Update setting of flush variable.
25391         (lra_create_live_ranges_1): Set call_insn to NULL instead of call_p
25392         to false.
25393         * lra.c (initialize_lra_reg_info_element): Set call_insn to NULL.
25394         * regcprop.c (copyprop_hardreg_forward_1): Add argument to
25395         targetm.hard_regno_call_part_clobbered call.
25396         * reginfo.c (choose_hard_reg_mode): Ditto.
25397         * regrename.c (check_new_reg_p): Ditto.
25398         * reload.c (find_equiv_reg): Ditto.
25399         * reload1.c (emit_reload_insns): Ditto.
25400         * sched-deps.c (deps_analyze_insn): Ditto.
25401         * sel-sched.c (init_regs_for_mode): Ditto.
25402         (mark_unavailable_hard_regs): Ditto.
25403         * targhooks.c (default_dwarf_frame_reg_mode): Ditto.
25404         * target.def (hard_regno_call_part_clobbered): Add insn argument.
25405         (return_call_with_max_clobbers): New target function.
25406         * doc/tm.texi: Regenerate.
25407         * doc/tm.texi.in (TARGET_RETURN_CALL_WITH_MAX_CLOBBERS): New hook.
25408         * hooks.c (hook_bool_uint_mode_false): Change to
25409         hook_bool_insn_uint_mode_false.
25410         * hooks.h (hook_bool_uint_mode_false): Ditto.
25412 2019-01-11  Steve Ellcey  <sellcey@marvell.com>
25414         * config/aarch64/aarch64.c (aarch64_simd_call_p): New function.
25415         (aarch64_remove_extra_call_preserved_regs): New function.
25416         (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New macro.
25417         * doc/tm.texi.in (TARGET_REMOVE_EXTRA_CALL_PRESERVED_REGS): New hook.
25418         * doc/tm.texi: Regenerate.
25419         * final.c (get_call_reg_set_usage): Call new hook.
25420         * target.def (remove_extra_call_preserved_regs): New hook.
25421         * targhooks.c (default_remove_extra_call_preserved_regs): New function.
25422         * targhooks.h (default_remove_extra_call_preserved_regs): New function.
25424 2019-01-11  Jakub Jelinek  <jakub@redhat.com>
25426         PR bootstrap/88714
25427         * passes.c (finish_optimization_passes): Call print_combine_total_stats
25428         inside of pass_combine_1 dump rather than pass_profile_1.
25430 2019-01-11  Tom de Vries  <tdevries@suse.de>
25432         * config/nvptx/nvptx.c (PTX_CTA_NUM_BARRIERS, PTX_PER_CTA_BARRIER)
25433         (PTX_NUM_PER_CTA_BARRIER, PTX_FIRST_PER_WORKER_BARRIER)
25434         (PTX_NUM_PER_WORKER_BARRIERS): Define.
25435         (nvptx_apply_dim_limits): Prevent vector_length 64 and
25436         num_workers 16.
25438 2019-01-11  Tom de Vries  <tdevries@suse.de>
25440         * config/nvptx/nvptx.c (PTX_CTA_SIZE): Move up.
25442 2019-01-11  Jan Beulich  <jbeulich@suse.com>
25444         * config/i386/i386.md (rex64suffix): Add L suffix for SI.
25445         * config/i386/sse.md (cvtusi2<ssescalarmodesuffix>32<round_name>,
25446         sse2_cvtsi2sd): Add {l}.
25447         (sse2_cvtsi2sdq<round_name>): Make q conditional upon AT&T
25448         syntax.
25450 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
25452         PR target/88785
25453         * config/i386/sse.md (float<floatunssuffix>v2div2sf2): Turn into
25454         define_expand.
25455         (*float<floatunssuffix>v2div2sf2): New define_insn.
25456         (float<floatunssuffix>v2div2sf2_mask): Turn into define_expand.
25457         (*float<floatunssuffix>v2div2sf2_mask): New define_insn.
25458         (*float<floatunssuffix>v2div2sf2_mask_1): Replace
25459         subrtxes (const_vector:V2SF [(const_int 0) (const_int 0)]) with
25460         match_operands with "const0_operand" "C".
25462 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
25464         * config/aarch64/aarch64-builtins.c
25465         (aarch64_init_builtins): Move aarch64_init_fcmla_laneq_builtins...
25466         (aarch64_init_simd_builtins): ...Here
25468 2019-01-10  Vladimir Makarov  <vmakarov@redhat.com>
25470         PR rtl-optimization/87305
25471         * lra-assigns.c
25472         (setup_live_pseudos_and_spill_after_risky_transforms): Check
25473         allocation for big endian pseudos used as paradoxical subregs and
25474         spill them if it is wrong.
25475         * lra-constraints.c (lra_constraints): Add a comment.
25477 2019-01-10  Richard Biener  <rguenther@suse.de>
25479         PR tree-optimization/88792
25480         * tree-ssa-pre.c (get_representative_for): Do not return a
25481         value-number here.
25483 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
25485         PR middle-end/84877
25486         PR bootstrap/88450
25487         * function.c (assign_stack_local_1): Revert the 2018-11-21 changes.
25488         (assign_parm_setup_block): Do the argument slot realignment here
25489         instead.
25491 2019-01-10  Stefan Agner  <stefan@agner.ch>
25493         PR target/88648
25494         * config/arm/arm.c (arm_option_override_internal): Force
25495         opts->x_inline_asm_unified to true only if TARGET_THUMB2_P.
25497 2019-01-10  Jakub Jelinek  <jakub@redhat.com>
25499         PR c/88568
25500         * attribs.c (handle_dll_attribute): Clear TREE_STATIC after setting
25501         DECL_EXTERNAL.
25503 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
25505         * config/arm/arm-builtins.c
25506         (enum arm_type_qualifiers): Add qualifier_lane_pair_index.
25507         (MAC_LANE_PAIR_QUALIFIERS): New.
25508         (arm_expand_builtin_args): Use it.
25509         (arm_expand_builtin_1): Likewise.
25510         * config/arm/arm-protos.h (neon_vcmla_lane_prepare_operands): New.
25511         * config/arm/arm.c (neon_vcmla_lane_prepare_operands): New.
25512         * config/arm/arm-c.c (arm_cpu_builtins): Add __ARM_FEATURE_COMPLEX.
25513         * config/arm/arm_neon.h:
25514         (vcadd_rot90_f16): New.
25515         (vcaddq_rot90_f16): New.
25516         (vcadd_rot270_f16): New.
25517         (vcaddq_rot270_f16): New.
25518         (vcmla_f16): New.
25519         (vcmlaq_f16): New.
25520         (vcmla_lane_f16): New.
25521         (vcmla_laneq_f16): New.
25522         (vcmlaq_lane_f16): New.
25523         (vcmlaq_laneq_f16): New.
25524         (vcmla_rot90_f16): New.
25525         (vcmlaq_rot90_f16): New.
25526         (vcmla_rot90_lane_f16): New.
25527         (vcmla_rot90_laneq_f16): New.
25528         (vcmlaq_rot90_lane_f16): New.
25529         (vcmlaq_rot90_laneq_f16): New.
25530         (vcmla_rot180_f16): New.
25531         (vcmlaq_rot180_f16): New.
25532         (vcmla_rot180_lane_f16): New.
25533         (vcmla_rot180_laneq_f16): New.
25534         (vcmlaq_rot180_lane_f16): New.
25535         (vcmlaq_rot180_laneq_f16): New.
25536         (vcmla_rot270_f16): New.
25537         (vcmlaq_rot270_f16): New.
25538         (vcmla_rot270_lane_f16): New.
25539         (vcmla_rot270_laneq_f16): New.
25540         (vcmlaq_rot270_lane_f16): New.
25541         (vcmlaq_rot270_laneq_f16): New.
25542         (vcadd_rot90_f32): New.
25543         (vcaddq_rot90_f32): New.
25544         (vcadd_rot270_f32): New.
25545         (vcaddq_rot270_f32): New.
25546         (vcmla_f32): New.
25547         (vcmlaq_f32): New.
25548         (vcmla_lane_f32): New.
25549         (vcmla_laneq_f32): New.
25550         (vcmlaq_lane_f32): New.
25551         (vcmlaq_laneq_f32): New.
25552         (vcmla_rot90_f32): New.
25553         (vcmlaq_rot90_f32): New.
25554         (vcmla_rot90_lane_f32): New.
25555         (vcmla_rot90_laneq_f32): New.
25556         (vcmlaq_rot90_lane_f32): New.
25557         (vcmlaq_rot90_laneq_f32): New.
25558         (vcmla_rot180_f32): New.
25559         (vcmlaq_rot180_f32): New.
25560         (vcmla_rot180_lane_f32): New.
25561         (vcmla_rot180_laneq_f32): New.
25562         (vcmlaq_rot180_lane_f32): New.
25563         (vcmlaq_rot180_laneq_f32): New.
25564         (vcmla_rot270_f32): New.
25565         (vcmlaq_rot270_f32): New.
25566         (vcmla_rot270_lane_f32): New.
25567         (vcmla_rot270_laneq_f32): New.
25568         (vcmlaq_rot270_lane_f32): New.
25569         (vcmlaq_rot270_laneq_f32): New.
25570         * config/arm/arm_neon_builtins.def (vcadd90, vcadd270, vcmla0, vcmla90,
25571         vcmla180, vcmla270, vcmla_lane0, vcmla_lane90, vcmla_lane180,
25572         vcmla_lane270, vcmla_laneq0, vcmla_laneq90, vcmla_laneq180,
25573         vcmla_laneq270, vcmlaq_lane0, vcmlaq_lane90, vcmlaq_lane180,
25574         vcmlaq_lane270): New.
25575         * config/arm/neon.md (neon_vcmla_lane<rot><mode>,
25576         neon_vcmla_laneq<rot><mode>, neon_vcmlaq_lane<rot><mode>): New.
25577         * config/arm/arm.c (arm_arch8_3, arm_arch8_4): New.
25578         * config/arm/arm.h (TARGET_COMPLEX, arm_arch8_3, arm_arch8_4): New.
25579         (arm_option_reconfigure_globals): Use them.
25580         * config/arm/iterators.md (VDF, VQ_HSF): New.
25581         (VCADD, VCMLA): New.
25582         (VF_constraint, rot, rotsplit1, rotsplit2): Add V4HF and V8HF.
25583         * config/arm/neon.md (neon_vcadd<rot><mode>, neon_vcmla<rot><mode>):
25584         New.
25585         * config/arm/unspecs.md (UNSPEC_VCADD90, UNSPEC_VCADD270,
25586         UNSPEC_VCMLA, UNSPEC_VCMLA90, UNSPEC_VCMLA180, UNSPEC_VCMLA270): New.
25588 2019-01-10  Tamar Christina  <tamar.christina@arm.com>
25590         * config/aarch64/aarch64-builtins.c (enum aarch64_type_qualifiers):
25591         Add qualifier_lane_pair_index.
25592         (emit-rtl.h): Include.
25593         (TYPES_QUADOP_LANE_PAIR): New.
25594         (aarch64_simd_expand_args): Use it.
25595         (aarch64_simd_expand_builtin): Likewise.
25596         (AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_laneq_builtin_datum):
25597         New.
25598         (FCMLA_LANEQ_BUILTIN, AARCH64_SIMD_FCMLA_LANEQ_BUILTIN_BASE,
25599         AARCH64_SIMD_FCMLA_LANEQ_BUILTINS, aarch64_fcmla_lane_builtin_data,
25600         aarch64_init_fcmla_laneq_builtins, aarch64_expand_fcmla_builtin): New.
25601         (aarch64_init_builtins): Add aarch64_init_fcmla_laneq_builtins.
25602         (aarch64_expand_buildin): Add AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V2SF,
25603         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V2SF,
25604         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V2SF,
25605         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ2700_V2SF,
25606         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ0_V4HF,
25607         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ90_V4HF,
25608         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ180_V4HF,
25609         AARCH64_SIMD_BUILTIN_FCMLA_LANEQ270_V4HF.
25610         * config/aarch64/iterators.md (FCMLA_maybe_lane): New.
25611         * config/aarch64/aarch64-c.c (aarch64_update_cpp_builtins):
25612         Add __ARM_FEATURE_COMPLEX.
25613         * config/aarch64/aarch64-simd-builtins.def (fcadd90, fcadd270, fcmla0,
25614         fcmla90, fcmla180, fcmla270, fcmla_lane0, fcmla_lane90, fcmla_lane180,
25615         fcmla_lane270, fcmla_laneq0, fcmla_laneq90, fcmla_laneq180,
25616         fcmla_laneq270, fcmlaq_lane0, fcmlaq_lane90, fcmlaq_lane180,
25617         fcmlaq_lane270): New.
25618         * config/aarch64/aarch64-simd.md (aarch64_fcmla_lane<rot><mode>,
25619         aarch64_fcmla_laneq<rot>v4hf, aarch64_fcmlaq_lane<rot><mode>,
25620         aarch64_fcadd<rot><mode>, aarch64_fcmla<rot><mode>): New.
25621         * config/aarch64/arm_neon.h:
25622         (vcadd_rot90_f16): New.
25623         (vcaddq_rot90_f16): New.
25624         (vcadd_rot270_f16): New.
25625         (vcaddq_rot270_f16): New.
25626         (vcmla_f16): New.
25627         (vcmlaq_f16): New.
25628         (vcmla_lane_f16): New.
25629         (vcmla_laneq_f16): New.
25630         (vcmlaq_lane_f16): New.
25631         (vcmlaq_rot90_lane_f16): New.
25632         (vcmla_rot90_laneq_f16): New.
25633         (vcmla_rot90_lane_f16): New.
25634         (vcmlaq_rot90_f16): New.
25635         (vcmla_rot90_f16): New.
25636         (vcmlaq_laneq_f16): New.
25637         (vcmla_rot180_laneq_f16): New.
25638         (vcmla_rot180_lane_f16): New.
25639         (vcmlaq_rot180_f16): New.
25640         (vcmla_rot180_f16): New.
25641         (vcmlaq_rot90_laneq_f16): New.
25642         (vcmlaq_rot270_laneq_f16): New.
25643         (vcmlaq_rot270_lane_f16): New.
25644         (vcmla_rot270_laneq_f16): New.
25645         (vcmlaq_rot270_f16): New.
25646         (vcmla_rot270_f16): New.
25647         (vcmlaq_rot180_laneq_f16): New.
25648         (vcmlaq_rot180_lane_f16): New.
25649         (vcmla_rot270_lane_f16): New.
25650         (vcadd_rot90_f32): New.
25651         (vcaddq_rot90_f32): New.
25652         (vcaddq_rot90_f64): New.
25653         (vcadd_rot270_f32): New.
25654         (vcaddq_rot270_f32): New.
25655         (vcaddq_rot270_f64): New.
25656         (vcmla_f32): New.
25657         (vcmlaq_f32): New.
25658         (vcmlaq_f64): New.
25659         (vcmla_lane_f32): New.
25660         (vcmla_laneq_f32): New.
25661         (vcmlaq_lane_f32): New.
25662         (vcmlaq_laneq_f32): New.
25663         (vcmla_rot90_f32): New.
25664         (vcmlaq_rot90_f32): New.
25665         (vcmlaq_rot90_f64): New.
25666         (vcmla_rot90_lane_f32): New.
25667         (vcmla_rot90_laneq_f32): New.
25668         (vcmlaq_rot90_lane_f32): New.
25669         (vcmlaq_rot90_laneq_f32): New.
25670         (vcmla_rot180_f32): New.
25671         (vcmlaq_rot180_f32): New.
25672         (vcmlaq_rot180_f64): New.
25673         (vcmla_rot180_lane_f32): New.
25674         (vcmla_rot180_laneq_f32): New.
25675         (vcmlaq_rot180_lane_f32): New.
25676         (vcmlaq_rot180_laneq_f32): New.
25677         (vcmla_rot270_f32): New.
25678         (vcmlaq_rot270_f32): New.
25679         (vcmlaq_rot270_f64): New.
25680         (vcmla_rot270_lane_f32): New.
25681         (vcmla_rot270_laneq_f32): New.
25682         (vcmlaq_rot270_lane_f32): New.
25683         (vcmlaq_rot270_laneq_f32): New.
25684         * config/aarch64/aarch64.h (TARGET_COMPLEX): New.
25685         * config/aarch64/iterators.md (UNSPEC_FCADD90, UNSPEC_FCADD270,
25686         UNSPEC_FCMLA, UNSPEC_FCMLA90, UNSPEC_FCMLA180, UNSPEC_FCMLA270): New.
25687         (FCADD, FCMLA): New.
25688         (rot): New.
25689         * config/arm/types.md (neon_fcadd, neon_fcmla): New.
25691 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
25693         PR other/16615
25695         * config/pa/pa.c: Change "can not" to "cannot".
25696         * gimple-ssa-evrp-analyze.c: Likewise.
25697         * ipa-icf.c: Likewise.
25698         * ipa-polymorphic-call.c: Likewise.
25699         * ipa-pure-const.c: Likewise.
25700         * lra-constraints.c: Likewise.
25701         * lra-remat.c: Likewise.
25702         * reload1.c: Likewise.
25703         * reorg.c: Likewise.
25704         * tree-ssa-uninit.c: Likewise.
25706 2019-01-09  Sandra Loosemore  <sandra@codesourcery.com>
25708         PR other/16615
25710         * Makefile.in: Mechanically replace "can not" with "cannot".
25711         * alias.c: Likewise.
25712         * builtins.c: Likewise.
25713         * calls.c: Likewise.
25714         * cgraph.c: Likewise.
25715         * cgraph.h: Likewise.
25716         * cgraphclones.c: Likewise.
25717         * cgraphunit.c: Likewise.
25718         * combine-stack-adj.c: Likewise.
25719         * combine.c: Likewise.
25720         * common/config/i386/i386-common.c: Likewise.
25721         * config/aarch64/aarch64.c: Likewise.
25722         * config/alpha/sync.md: Likewise.
25723         * config/arc/arc.c: Likewise.
25724         * config/arc/predicates.md: Likewise.
25725         * config/arm/arm-c.c: Likewise.
25726         * config/arm/arm.c: Likewise.
25727         * config/arm/arm.h: Likewise.
25728         * config/arm/arm.md: Likewise.
25729         * config/arm/cortex-r4f.md: Likewise.
25730         * config/csky/csky.c: Likewise.
25731         * config/csky/csky.h: Likewise.
25732         * config/darwin-f.c: Likewise.
25733         * config/epiphany/epiphany.md: Likewise.
25734         * config/i386/i386.c: Likewise.
25735         * config/i386/sol2.h: Likewise.
25736         * config/m68k/m68k.c: Likewise.
25737         * config/mcore/mcore.h: Likewise.
25738         * config/microblaze/microblaze.md: Likewise.
25739         * config/mips/20kc.md: Likewise.
25740         * config/mips/sb1.md: Likewise.
25741         * config/nds32/nds32.c: Likewise.
25742         * config/nds32/predicates.md: Likewise.
25743         * config/pa/pa.c: Likewise.
25744         * config/rs6000/e300c2c3.md: Likewise.
25745         * config/rs6000/rs6000.c: Likewise.
25746         * config/s390/s390.h: Likewise.
25747         * config/sh/sh.c: Likewise.
25748         * config/sh/sh.md: Likewise.
25749         * config/spu/vmx2spu.h: Likewise.
25750         * cprop.c: Likewise.
25751         * dbxout.c: Likewise.
25752         * df-scan.c: Likewise.
25753         * doc/cfg.texi: Likewise.
25754         * doc/extend.texi: Likewise.
25755         * doc/fragments.texi: Likewise.
25756         * doc/gty.texi: Likewise.
25757         * doc/invoke.texi: Likewise.
25758         * doc/lto.texi: Likewise.
25759         * doc/md.texi: Likewise.
25760         * doc/objc.texi: Likewise.
25761         * doc/rtl.texi: Likewise.
25762         * doc/tm.texi: Likewise.
25763         * dse.c: Likewise.
25764         * emit-rtl.c: Likewise.
25765         * emit-rtl.h: Likewise.
25766         * except.c: Likewise.
25767         * expmed.c: Likewise.
25768         * expr.c: Likewise.
25769         * fold-const.c: Likewise.
25770         * genautomata.c: Likewise.
25771         * gimple-fold.c: Likewise.
25772         * hard-reg-set.h: Likewise.
25773         * ifcvt.c: Likewise.
25774         * ipa-comdats.c: Likewise.
25775         * ipa-cp.c: Likewise.
25776         * ipa-devirt.c: Likewise.
25777         * ipa-fnsummary.c: Likewise.
25778         * ipa-icf.c: Likewise.
25779         * ipa-inline-transform.c: Likewise.
25780         * ipa-inline.c: Likewise.
25781         * ipa-polymorphic-call.c: Likewise.
25782         * ipa-profile.c: Likewise.
25783         * ipa-prop.c: Likewise.
25784         * ipa-pure-const.c: Likewise.
25785         * ipa-reference.c: Likewise.
25786         * ipa-split.c: Likewise.
25787         * ipa-visibility.c: Likewise.
25788         * ipa.c: Likewise.
25789         * ira-build.c: Likewise.
25790         * ira-color.c: Likewise.
25791         * ira-conflicts.c: Likewise.
25792         * ira-costs.c: Likewise.
25793         * ira-int.h: Likewise.
25794         * ira-lives.c: Likewise.
25795         * ira.c: Likewise.
25796         * ira.h: Likewise.
25797         * loop-invariant.c: Likewise.
25798         * loop-unroll.c: Likewise.
25799         * lower-subreg.c: Likewise.
25800         * lra-assigns.c: Likewise.
25801         * lra-constraints.c: Likewise.
25802         * lra-eliminations.c: Likewise.
25803         * lra-lives.c: Likewise.
25804         * lra-remat.c: Likewise.
25805         * lra-spills.c: Likewise.
25806         * lra.c: Likewise.
25807         * lto-cgraph.c: Likewise.
25808         * lto-streamer-out.c: Likewise.
25809         * postreload-gcse.c: Likewise.
25810         * predict.c: Likewise.
25811         * profile-count.h: Likewise.
25812         * profile.c: Likewise.
25813         * recog.c: Likewise.
25814         * ree.c: Likewise.
25815         * reload.c: Likewise.
25816         * reload1.c: Likewise.
25817         * reorg.c: Likewise.
25818         * resource.c: Likewise.
25819         * rtl.def: Likewise.
25820         * rtl.h: Likewise.
25821         * rtlanal.c: Likewise.
25822         * sched-deps.c: Likewise.
25823         * sched-ebb.c: Likewise.
25824         * sched-rgn.c: Likewise.
25825         * sel-sched-ir.c: Likewise.
25826         * sel-sched.c: Likewise.
25827         * shrink-wrap.c: Likewise.
25828         * simplify-rtx.c: Likewise.
25829         * symtab.c: Likewise.
25830         * target.def: Likewise.
25831         * toplev.c: Likewise.
25832         * tree-call-cdce.c: Likewise.
25833         * tree-cfg.c: Likewise.
25834         * tree-complex.c: Likewise.
25835         * tree-core.h: Likewise.
25836         * tree-eh.c: Likewise.
25837         * tree-inline.c: Likewise.
25838         * tree-loop-distribution.c: Likewise.
25839         * tree-nrv.c: Likewise.
25840         * tree-profile.c: Likewise.
25841         * tree-sra.c: Likewise.
25842         * tree-ssa-alias.c: Likewise.
25843         * tree-ssa-dce.c: Likewise.
25844         * tree-ssa-dom.c: Likewise.
25845         * tree-ssa-forwprop.c: Likewise.
25846         * tree-ssa-loop-im.c: Likewise.
25847         * tree-ssa-loop-ivcanon.c: Likewise.
25848         * tree-ssa-loop-ivopts.c: Likewise.
25849         * tree-ssa-loop-niter.c: Likewise.
25850         * tree-ssa-phionlycprop.c: Likewise.
25851         * tree-ssa-phiopt.c: Likewise.
25852         * tree-ssa-propagate.c: Likewise.
25853         * tree-ssa-threadedge.c: Likewise.
25854         * tree-ssa-threadupdate.c: Likewise.
25855         * tree-ssa-uninit.c: Likewise.
25856         * tree-ssanames.c: Likewise.
25857         * tree-streamer-out.c: Likewise.
25858         * tree.c: Likewise.
25859         * tree.h: Likewise.
25860         * vr-values.c: Likewise.
25862 2019-01-09  UroÅ¡ Bizjak  <ubizjak@gmail.com>
25864         * config/i386/i386-protos.h (ix86_expand_xorsign): New prototype.
25865         (ix86_split_xorsign): Ditto.
25866         * config/i386/i386.c (ix86_expand_xorsign): New function.
25867         (ix86_split_xorsign): Ditto.
25868         * config/i386/i386.md (UNSPEC_XORSIGN): New unspec.
25869         (xorsign<mode>3): New expander.
25870         (xorsign<mode>3_1): New insn_and_split pattern.
25871         * config/i386/sse.md (xorsign<mode>3): New expander.
25873 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
25875         * config/sparc/sparc.md (*tablejump_sp32): Merge into...
25876         (*tablejump_sp64): Likewise.
25877         (*tablejump<P:mode>): ...this.
25878         (*call_address_sp32): Merge into...
25879         (*call_address_sp64): Likewise.
25880         (*call_address<P:mode>): ...this.
25881         (*call_symbolic_sp32): Merge into...
25882         (*call_symbolic_sp64): Likewise.
25883         (*call_symbolic<P:mode>): ...this.
25884         (call_value): Remove constraint and add predicate.
25885         (*call_value_address_sp32): Merge into...
25886         (*call_value_address_sp64): Likewise.
25887         (*call_value_address<P:mode>): ...this.
25888         (*call_value_symbolic_sp32): Merge into...
25889         (*call_value_symbolic_sp64): Likewise.
25890         (*call_value_symbolic<P:mode>): ...this.
25891         (*sibcall_symbolic_sp32): Merge into...
25892         (*sibcall_symbolic_sp64): Likewise.
25893         (*sibcall_symbolic<P:mode>): ...this.
25894         (sibcall_value): Remove constraint and add predicate.
25895         (*sibcall_value_symbolic_sp32): Merge into...
25896         (*sibcall_value_symbolic_sp64): Likewise.
25897         (*sibcall_value_symbolic<P:mode>): ...this.
25898         (window_save): Minor tweak.
25899         (*branch_sp32): Merge into...
25900         (*branch_sp64): Likewise.
25901         (*branch<P:mode>): ...this.
25903 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
25904             James Clarke  <jrtc27@jrtc27.com>
25906         PR target/84010
25907         * config/sparc/sparc.c (sparc_legitimize_tls_address): Only use Pmode
25908         consistently in TLS address generation and adjust code to the renaming
25909         of patterns.  Mark calls to __tls_get_addr as const.
25910         * config/sparc/sparc.md (tgd_hi22): Turn into...
25911         (tgd_hi22<P:mode>): ...this and use Pmode throughout.
25912         (tgd_lo10): Turn into...
25913         (tgd_lo10<P:mode>): ...this and use Pmode throughout.
25914         (tgd_add32): Merge into...
25915         (tgd_add64): Likewise.
25916         (tgd_add<P:mode>): ...this and use Pmode throughout.
25917         (tldm_hi22): Turn into...
25918         (tldm_hi22<P:mode>): ...this and use Pmode throughout.
25919         (tldm_lo10): Turn into...
25920         (tldm_lo10<P:mode>): ...this and use Pmode throughout.
25921         (tldm_add32): Merge into...
25922         (tldm_add64): Likewise.
25923         (tldm_add<P:mode>): ...this and use Pmode throughout.
25924         (tldm_call32): Merge into...
25925         (tldm_call64): Likewise.
25926         (tldm_call<P:mode>): ...this and use Pmode throughout.
25927         (tldo_hix22): Turn into...
25928         (tldo_hix22<P:mode>): ...this and use Pmode throughout.
25929         (tldo_lox10): Turn into...
25930         (tldo_lox10<P:mode>): ...this and use Pmode throughout.
25931         (tldo_add32): Merge into...
25932         (tldo_add64): Likewise.
25933         (tldo_add<P:mode>): ...this and use Pmode throughout.
25934         (tie_hi22): Turn into...
25935         (tie_hi22<P:mode>): ...this and use Pmode throughout.
25936         (tie_lo10): Turn into...
25937         (tie_lo10<P:mode>): ...this and use Pmode throughout.
25938         (tie_ld64): Use DImode throughout.
25939         (tie_add32): Merge into...
25940         (tie_add64): Likewise.
25941         (tie_add<P:mode>): ...this and use Pmode throughout.
25942         (tle_hix22_sp32): Merge into...
25943         (tle_hix22_sp64): Likewise.
25944         (tle_hix22<P:mode>): ...this and use Pmode throughout.
25945         (tle_lox22_sp32): Merge into...
25946         (tle_lox22_sp64): Likewise.
25947         (tle_lox22<P:mode>): ...this and use Pmode throughout.
25948         (*tldo_ldub_sp32): Merge into...
25949         (*tldo_ldub_sp64): Likewise.
25950         (*tldo_ldub<P:mode>): ...this and use Pmode throughout.
25951         (*tldo_ldub1_sp32): Merge into...
25952         (*tldo_ldub1_sp64): Likewise.
25953         (*tldo_ldub1<P:mode>): ...this and use Pmode throughout.
25954         (*tldo_ldub2_sp32): Merge into...
25955         (*tldo_ldub2_sp64): Likewise.
25956         (*tldo_ldub2<P:mode>): ...this and use Pmode throughout.
25957         (*tldo_ldsb1_sp32): Merge into...
25958         (*tldo_ldsb1_sp64): Likewise.
25959         (*tldo_ldsb1<P:mode>): ...this and use Pmode throughout.
25960         (*tldo_ldsb2_sp32): Merge into...
25961         (*tldo_ldsb2_sp64): Likewise.
25962         (*tldo_ldsb2<P:mode>): ...this and use Pmode throughout.
25963         (*tldo_ldub3_sp64): Use DImode throughout.
25964         (*tldo_ldsb3_sp64): Likewise.
25965         (*tldo_lduh_sp32): Merge into...
25966         (*tldo_lduh_sp64): Likewise.
25967         (*tldo_lduh<P:mode>): ...this and use Pmode throughout.
25968         (*tldo_lduh1_sp32): Merge into...
25969         (*tldo_lduh1_sp64): Likewise.
25970         (*tldo_lduh1<P:mode>): ...this and use Pmode throughout.
25971         (*tldo_ldsh1_sp32): Merge into...
25972         (*tldo_ldsh1_sp64): Likewise.
25973         (*tldo_ldsh1<P:mode>): ...this and use Pmode throughout.
25974         (*tldo_lduh2_sp64): Use DImode throughout.
25975         (*tldo_ldsh2_sp64): Likewise.
25976         (*tldo_lduw_sp32): Merge into...
25977         (*tldo_lduw_sp64): Likewise.
25978         (*tldo_lduw<P:mode>): ...this and use Pmode throughout.
25979         (*tldo_lduw1_sp64): Use DImode throughout.
25980         (*tldo_ldsw1_sp64): Likewise.
25981         (*tldo_ldx_sp64): Likewise.
25982         (*tldo_stb_sp32): Merge into...
25983         (*tldo_stb_sp64): Likewise.
25984         (*tldo_stb<P:mode>): ...this and use Pmode throughout.
25985         (*tldo_sth_sp32): Merge into...
25986         (*tldo_sth_sp64): Likewise.
25987         (*tldo_sth<P:mode>): ...this and use Pmode throughout.
25988         (*tldo_stw_sp32): Merge into...
25989         (*tldo_stw_sp64): Likewise.
25990         (*tldo_stw<P:mode>): ...this and use Pmode throughout.
25991         (*tldo_stx_sp64): Use DImode throughout.
25993 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
25995         * config/aarch64/aarch64.c (aarch64_override_options): Add case to
25996         check configure option to set BTI and Return Address Signing.
25997         * configure.ac: Add --enable-standard-branch-protection and
25998         --disable-standard-branch-protection.
25999         * configure: Regenerated.
26000         * doc/install.texi: Document the same.
26002 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
26003             Ramana Radhakrishnan  <ramana.radhakrishnan@arm.com>
26005         * config.gcc (aarch64*-*-*): Add aarch64-bti-insert.o.
26006         * config/aarch64/aarch64.h: Update comment for TRAMPOLINE_SIZE.
26007         * config/aarch64/aarch64.c (aarch64_asm_trampoline_template): Update
26008         if bti is enabled.
26009         * config/aarch64/aarch64-bti-insert.c: New file.
26010         * config/aarch64/aarch64-passes.def (INSERT_PASS_BEFORE): Insert bti
26011         pass.
26012         * config/aarch64/aarch64-protos.h (make_pass_insert_bti): Declare the
26013         new bti pass.
26014         * config/aarch64/aarch64.md (unspecv): Add UNSPECV_BTI_NOARG,
26015         UNSPECV_BTI_C, UNSPECV_BTI_J and UNSPECV_BTI_JC.
26016         (bti_noarg, bti_j, bti_c, bti_jc): New define_insns.
26017         * config/aarch64/t-aarch64: Add rule for aarch64-bti-insert.o.
26019 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
26021         * config/aarch64/aarch64-protos.h (aarch64_bti_enabled): Declare.
26022         * config/aarch64/aarch64.c (aarch64_handle_no_branch_protection):
26023         Disable bti for -mbranch-protection=none.
26024         (aarch64_handle_standard_branch_protection): Enable bti for
26025         -mbranch-protection=standard.
26026         (aarch64_handle_bti_protection): Enable bti for "bti" in the string to
26027         -mbranch-protection.
26028         (aarch64_bti_enabled): Check if bti is enabled.
26029         * config/aarch64/aarch64.opt: Declare target variable.
26030         * doc/invoke.texi: Add bti to the -mbranch-protection documentation.
26032 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
26034         * config/aarch64/aarch64.c (aarch64_expand_prologue): Use new
26035         epilogue/prologue scratch registers EP0_REGNUM and EP1_REGNUM.
26036         (aarch64_expand_epilogue): Likewise.
26037         (aarch64_output_mi_thunk): Likewise.
26038         * config/aarch64/aarch64.h (REG_CLASS_CONTENTS): Change
26039         TAILCALL_ADDR_REGS to x16 and x17.
26040         * config/aarch64/aarch64.md: Define EP0_REGNUM and EP1_REGNUM.
26042 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
26044         * config/aarch64/aarch64-option-extensions.def: Define
26045         AARCH64_OPT_EXTENSION for memtag, rng, sb, ssbs and predres.
26046         * config/aarch64/aarch64.h (AARCH64_FL_RNG): New.
26047         (AARCH64_FL_MEMTAG, ARCH64_FL_SB, AARCH64_FL_SSBS): New.
26048         (AARCH64_FL_PREDRES): New.
26049         (AARCH64_FL_FOR_ARCH8_5): Add AARCH64_FL_SB, AARCH64_FL_SSBS and
26050         AARCH64_FL_PREDRES by default.
26051         * doc/invoke.texi: Document rng, memtag, sb, ssbs and predres.
26053 2018-01-09  Sudakshina Das  <sudi.das@arm.com>
26055         * config/aarch64/aarch64-arches.def: Define AARCH64_ARCH for
26056         ARMv8.5-A.
26057         * config/aarch64/aarch64.h (AARCH64_FL_V8_5): New.
26058         (AARCH64_FL_FOR_ARCH8_5, AARCH64_ISA_V8_5): New.
26059         * doc/invoke.texi: Document ARMv8.5-A.
26061 2019-01-09  Alejandro Martinez  <alejandro.martinezvicente@arm.com>
26063         * config/aarch64/aarch64-sve.md (copysign<mode>3): New define_expand.
26064         (xorsign<mode>3): Likewise.
26066 2019-01-09  Jelinek  <jakub@redhat.com>
26068         PR middle-end/88758
26069         * tree.c (initializer_each_zero_or_onep) <case VECTOR_CST>: Use
26070         vector_cst_elt instead of VECTOR_CST_ENCODED_ELT.
26072         PR rtl-optimization/88331
26073         * function.c (assign_stack_local_1): Don't set dynamic_align_addr if
26074         not currently_expanding_to_rtl.
26076 2019-01-09  Eric Botcazou  <ebotcazou@adacore.com>
26078         * doc/invoke.texi (-Os): Remove trailing spaces.
26079         (-finline-functions): Remove reference to -O2.
26081 2019-01-08  Jakub Jelinek  <jakub@redhat.com>
26083         PR rtl-optimization/79593
26084         * config/i386/i386.md (reg = mem; mem = reg): New define_peephole2.
26086         * config/rs6000/rs6000.c (rs6000_delegitimize_address): Delegitimize
26087         UNSPEC_FUSION_GPR to its argument.  Formatting fixes.
26089 2019-01-08  Eric Botcazou  <ebotcazou@adacore.com>
26091         PR bootstrap/88721
26092         * config/sparc/sparc.c (function_arg_slotno): Set *PPREGNO & *PPADDING
26093         to -1 on entry.
26095         PR debug/88723
26096         * config/sparc/sparc.c (sparc_delegitimize_address): Deal with naked
26097         UNSPECs and UNSPEC_MOVE_GOTDATA specifically.
26099 2019-01-08  H.J. Lu  <hongjiu.lu@intel.com>
26101         PR target/88717
26102         * config/i386/i386.c (ix86_avx_u128_mode_exit): Call
26103         ix86_avx_u128_mode_entry.
26105 2019-01-08  Martin Liska  <mliska@suse.cz>
26107         PR tree-optimization/88753
26108         * tree-switch-conversion.c (switch_conversion::build_one_array):
26109         Come up with local variable constructor.  Convert first to
26110         type of constructor values.
26112 2019-01-08  Richard Biener  <rguenther@suse.de>
26114         PR tree-optimization/86554
26115         * tree-ssa-sccvn.c (eliminate_dom_walker, rpo_elim,
26116         rpo_avail): Move earlier.
26117         (visit_nary_op): When value-numbering to expressions
26118         with different overflow behavior make sure there's an
26119         available expression on the path.
26121 2019-01-08  Sam Tebbs  <sam.tebbs@arm.com>
26123         * config/aarch64/aarch64.c (BRANCH_PROTECT_STR_MAX,
26124         aarch64_parse_branch_protection,
26125         struct aarch64_branch_protect_type,
26126         aarch64_handle_no_branch_protection,
26127         aarch64_handle_standard_branch_protection,
26128         aarch64_validate_mbranch_protection,
26129         aarch64_handle_pac_ret_protection,
26130         aarch64_handle_attr_branch_protection,
26131         accepted_branch_protection_string,
26132         aarch64_pac_ret_subtypes,
26133         aarch64_branch_protect_types,
26134         aarch64_handle_pac_ret_leaf): Define.
26135         (aarch64_override_options_after_change_1, aarch64_override_options):
26136         Add check for accepted_branch_protection_string.
26137         (aarch64_option_save): Save accepted_branch_protection_string.
26138         (aarch64_option_restore): Save accepted_branch_protection_string.
26139         * config/aarch64/aarch64.c (aarch64_attributes): Add branch-protection.
26140         * config/aarch64/aarch64.opt: Add mbranch-protection. Deprecate
26141         msign-return-address.
26142         * doc/invoke.texi: Add mbranch-protection.
26144 2019-01-08  Alan Modra  <amodra@gmail.com>
26146         PR target/88614
26147         * genattrtab.c (max_attr_value, min_attr_value, or_attr_value):
26148         Delete "unknownp" parameter.  Adjust callers.  Handle
26149         CONST_INT, PLUS, MINUS, and MULT.
26150         (attr_value_aligned): Renamed from or_attr_value.
26151         (min_attr_value): Return INT_MIN for unhandled rtl case..
26152         (min_fn): ..and translate to INT_MAX here.
26153         (write_length_unit_log): Modify to cope without "unknown".
26154         (write_attr_value): Handle IF_THEN_ELSE.
26156 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
26158         * tree-vect-stmts.c (vectorizable_store): Don't use the dataref_offset
26159         optimization for masked stores.
26161 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
26163         PR middle-end/88567
26164         * tree-vect-loop.c (get_initial_defs_for_reduction): Pass the
26165         output vector directly to duplicate_and_interleave instead of
26166         going through a temporary.  Postpone insertion of ctor_seq to
26167         the end of the loop.
26169 2019-01-07  Richard Earnshaw  <rearnsha@arm.com>
26171         PR target/86891
26172         * config/aarch64/aarch64.c (aarch64_expand_subvti): New parameter
26173         unsigned_p.  Handle signed and unsigned overflow correction as
26174         required.
26175         * config/aarch64/aarch64-protos.h (aarch64_expand_subvti): Update
26176         prototype.
26177         * config/aarch64/aarch64.md (addv<mode>4): Use aarch64_plus_operand
26178         for operand 2.
26179         (add<mode>3_compareV_imm): Make this callable for expanding.
26180         (subv<GPI:mode>4): Use register_operand for operand 1.  Use
26181         aarch64_plus_operand for operand 2.
26182         (subv<GPI:mode>_insn): New insn pattern.
26183         (subv<GPI:mode>_imm): Likewise.
26184         (negv<GPI:mode>3): New expand pattern.
26185         (negv<GPI:mode>_insn): New insn pattern.
26186         (negv<GPI:mode>_cmp_only): Likewise.
26187         (cmpv<GPI:mode>_insn): Likewise.
26188         (subvti4): Use register_operand for operand 1.  Update call to
26189         aarch64_expand_subvti.
26190         (usubvti4): Likewise.
26191         (negvti3): New expand pattern.
26192         (negdi_carryout): New insn pattern.
26193         (negvdi_carryinV): New insn pattern.
26194         (sub<mode3>_compare1_imm): Delete named insn pattern, make anonymous
26195         version the named version.
26196         (peepholes to convert to sub<mode3>_compare1_imm): Adjust order of
26197         operands.
26198         (usub<GPI:mode>3_carryinC, usub<GPI:mode>3_carryinC_z1): New insn
26199         patterns.
26200         (usub<GPI:mode>3_carryinC_z2, usub<GPI:mode>3_carryinC): New insn
26201         patterns.
26202         (sub<mode>3_carryinCV, sub<mode>3_carryinCV_z1_z2): Delete.
26203         (sub<mode>3_carryinCV_z1, sub<mode>3_carryinCV_z2): Delete.
26204         (sub<mode>3_carryinCV): Delete.
26205         (sub<GPI:mode>3_carryinV): New expand pattern.
26206         sub<mode>3_carryinV, sub<mode>3_carryinV_z2): New insn patterns.
26208 2019-01-07  Richard Biener  <rguenther@suse.de>
26210         * tree-ssa-uncprop.c (ssa_equip_hash_traits): Remove in favor
26211         of tree_operand_hash.
26213 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
26215         PR tree-optimization/88598
26216         * tree.h (single_nonzero_element): Declare.
26217         * tree.c (single_nonzero_element): New function.
26218         * match.pd: Fold certain reductions of X & CST to X[I] & CST[I]
26219         if I is the only nonzero element of CST.
26221 2019-01-07  Richard Sandiford  <richard.sandiford@arm.com>
26223         PR tree-optimization/88598
26224         * tree.h (initializer_each_zero_or_onep): Declare.
26225         * tree.c (initializer_each_zero_or_onep): New function.
26226         (signed_or_unsigned_type_for): Handle float types too.
26227         (unsigned_type_for, signed_type_for): Update comments accordingly.
26228         * match.pd: Fold x * { 0 or 1, 0 or 1, ...} to
26229         x & { 0 or -1, 0 or -1, ... }.
26231 2019-01-07  Jonathan Wakely  <jwakely@redhat.com>
26233         * doc/install.texi: Replace references to x86_64-unknown-linux-gnu
26234         with x86_64-pc-linux-gnu.
26236 2019-01-07  Tom de Vries  <tdevries@suse.de>
26238         PR target/85486
26239         * config/nvptx/nvptx.c (has_vector_partitionable_routine_calls_p): New
26240         function.
26241         (nvptx_goacc_validate_dims): Force vl32 if calling vector-partitionable
26242         routines.
26244 2019-01-07  Jakub Jelinek  <jakub@redhat.com>
26246         * config/i386/sse.md (vec_extract<mode><ssehalfvecmodelower>): Use
26247         V_256_512 iterator instead of V_512 and TARGET_AVX instead of
26248         TARGET_AVX512F as condition.
26250         PR debug/88723
26251         * dwarf2out.c (const_ok_for_output_1): Remove redundant call to
26252         const_not_ok_for_debug_p target hook.
26253         (mem_loc_descriptor) <case UNSPEC>: Only call const_ok_for_output_1
26254         on UNSPEC and subexpressions thereof if all subexpressions of the
26255         UNSPEC are CONSTANT_P.
26257         PR tree-optimization/88676
26258         * tree-ssa-phiopt.c (two_value_replacement): New function.
26259         (tree_ssa_phiopt_worker): Call it.
26261         PR sanitizer/88619
26262         * cfgexpand.c (expand_stack_vars): Only align prev_offset to
26263         ASAN_MIN_RED_ZONE_SIZE, not to maximum of that and alignb.
26265         PR c++/85052
26266         * tree-vect-generic.c: Include insn-config.h and recog.h.
26267         (expand_vector_piecewise): Add defaulted ret_type argument,
26268         if non-NULL, use that in preference to type for the result type.
26269         (expand_vector_parallel): Formatting fix.
26270         (do_vec_conversion, do_vec_narrowing_conversion,
26271         expand_vector_conversion): New functions.
26272         (expand_vector_operations_1): Call expand_vector_conversion
26273         for VEC_CONVERT ifn calls.
26274         * internal-fn.def (VEC_CONVERT): New internal function.
26275         * internal-fn.c (expand_VEC_CONVERT): New function.
26276         * fold-const-call.c (fold_const_vec_convert): New function.
26277         (fold_const_call): Use it for CFN_VEC_CONVERT.
26278         * doc/extend.texi (__builtin_convertvector): Document.
26280 2019-01-07  Tom de Vries  <tdevries@suse.de>
26282         * config/nvptx/nvptx-protos.h (nvptx_output_red_partition): Declare.
26283         * config/nvptx/nvptx.c (vector_red_size, vector_red_align,
26284         vector_red_partition, vector_red_sym): New global variables.
26285         (nvptx_option_override): Initialize vector_red_sym.
26286         (nvptx_declare_function_name): Restore red_partition register.
26287         (nvptx_file_end): Emit code to declare the vector reduction variables.
26288         (nvptx_output_red_partition): New function.
26289         (nvptx_expand_shared_addr): Add vector argument. Use it to handle
26290         large vector reductions.
26291         (enum nvptx_builtins): Add NVPTX_BUILTIN_VECTOR_ADDR.
26292         (nvptx_init_builtins): Add VECTOR_ADDR.
26293         (nvptx_expand_builtin): Update call to nvptx_expand_shared_addr.
26294         Handle nvptx_expand_shared_addr.
26295         (nvptx_get_shared_red_addr): Add vector argument and handle large
26296         vectors.
26297         (nvptx_goacc_reduction_setup): Add offload_attrs argument and handle
26298         large vectors.
26299         (nvptx_goacc_reduction_init): Likewise.
26300         (nvptx_goacc_reduction_fini): Likewise.
26301         (nvptx_goacc_reduction_teardown): Likewise.
26302         (nvptx_goacc_reduction): Update calls to nvptx_goacc_reduction_{setup,
26303         init,fini,teardown}.
26304         (nvptx_init_axis_predicate): Initialize vector_red_partition.
26305         (nvptx_set_current_function): Init vector_red_partition.
26306         * config/nvptx/nvptx.md (UNSPECV_RED_PART): New unspecv.
26307         (nvptx_red_partition): New insn.
26308         * config/nvptx/nvptx.h (struct machine_function): Add red_partition.
26310 2019-01-07  Tom de Vries  <tdevries@suse.de>
26312         PR target/85381
26313         * config/nvptx/nvptx.c (nvptx_process_pars): Don't emit barriers for
26314         empty loops.
26316 2019-01-07  Tom de Vries  <tdevries@suse.de>
26318         * config/nvptx/nvptx.c (oacc_bcast_partition): Declare.
26319         (nvptx_option_override): Init oacc_bcast_partition.
26320         (nvptx_init_oacc_workers): New function.
26321         (nvptx_declare_function_name): Call nvptx_init_oacc_workers.
26322         (nvptx_needs_shared_bcast): New function.
26323         (nvptx_find_par): Generalize to enable vectors to use shared-memory
26324         to propagate state.
26325         (nvptx_shared_propagate): Initialize vector bcast partition and
26326         synchronization state.
26327         (nvptx_single): Generalize to enable vectors to use shared-memory
26328         to propagate state.
26329         (nvptx_process_pars): Likewise.
26330         (nvptx_set_current_function): Initialize oacc_broadcast_partition.
26331         * config/nvptx/nvptx.h (struct machine_function): Add
26332         bcast_partition and sync_bar members.
26334 2019-01-07  Tom de Vries  <tdevries@suse.de>
26336         * config/nvptx/nvptx.c (nvptx_welformed_vector_length_p)
26337         (nvptx_apply_dim_limits): New function.
26338         (nvptx_goacc_validate_dims_1): Allow PTX_MAX_VECTOR_LENGTH larger than
26339         PTX_WARP_SIZE.
26341 2019-01-07  Tom de Vries  <tdevries@suse.de>
26343         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Move warnings to
26344         as late as possible.
26346 2019-01-07  Tom de Vries  <tdevries@suse.de>
26348         * config/nvptx/nvptx.c (PTX_VECTOR_LENGTH): Remove.
26349         (PTX_DEFAULT_VECTOR_LENGTH, PTX_MAX_VECTOR_LENGTH): Define.
26350         (nvptx_goacc_validate_dims_1, nvptx_dim_limit)
26351         (nvptx_goacc_reduction_fini): Use PTX_DEFAULT_VECTOR_LENGTH,
26352         PTX_MAX_VECTOR_LENGTH and PTX_WARP_SIZE instead of PTX_VECTOR_LENGTH.
26354 2019-01-07  Tom de Vries  <tdevries@suse.de>
26356         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims): Add asserts.
26358 2019-01-07  Tom de Vries  <tdevries@suse.de>
26360         * omp-offload.c (oacc_get_min_dim): New function.
26361         * omp-offload.h (oacc_get_min_dim): Declare.
26363 2018-12-26  Mateusz B  <mateuszb@poczta.onet.pl>
26365         PR target/88521
26366         * config/i386/i386.c (function_value_ms_64): Return small sturct in
26367         AX_REG and float/double in FIRST_SSE_REG for 4 or 8 byte modes.
26369 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26371         PR tree-opt/86020
26372         Revert:
26373         2017-05-22  Jan Hubicka  <hubicka@ucw.cz>
26375         * ipa-inline.c (edge_badness): Use inlined_time instead of
26376         inline_summaries->get.
26378 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26380         * opts.c (enable_fdo_optimizations): Enable
26381         version-loops-for-strides, loop-interchange, unrol-and-jam
26382         and tree-loop-distribution.
26383         * invoke.texi: Document newly enabled options.
26385 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26387         * doc/invoke.texi (max-inline-insns-small): New parameters.
26388         * ipa-inline.c (want_early_inline_function_p): simplify.
26389         (want_inline_small_function_p): Fix pasto from previous patch;
26390         use max-inline-insns-small bound.
26391         * params.def (max-inline-insns-small): New param.
26392         * ipa-fnsummary.c (analyze_function_body): Initialize time/size
26393         variables correctly.
26395 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26397         * doc/invoke.texi: Document max-inline-insns-size,
26398         uninlined-function-insns, uninlined-function-time,
26399         uninlined-thunk-insns and uninlined-thunk-time.
26400         * params.def: Add max-inline-insns-size,
26401         uninlined-function-insns, uninlined-function-time,
26402         uninlined-thunk-insns and uninlined-thunk-time.
26403         * ipa-fnsummary.c (compute_fn_summary, analyze_function_body): Use
26404         new parameters.
26405         * ipa-inline.c (can_inline_edge_by_limits_p,
26406         want_inline_small_function_p): Use new parameters.
26408 2019-01-05  Jan Hubicka  <hubicka@ucw.cz>
26410         * ipa-fnsummary.c (analyze_function_body): Fix accounting of time.
26412 2019-01-05  Jakub Jelinek  <jakub@redhat.com>
26414         PR middle-end/82564
26415         PR target/88620
26416         * expr.c (expand_assignment): For calls returning VLA structures
26417         if to_rtx is not a MEM, force it into a stack temporary.
26419         PR debug/88635
26420         * dwarf2out.c (const_ok_for_output_1): Reject MINUS that contains
26421         SYMBOL_REF, CODE_LABEL or UNSPEC in subexpressions of second argument.
26422         Reject PLUS that contains SYMBOL_REF, CODE_LABEL or UNSPEC in
26423         subexpressions of both operands.
26424         (mem_loc_descriptor): Handle UNSPEC if target hook acks it and all the
26425         subrtxes are CONSTANT_P.
26426         * config/i386/i386.c (ix86_const_not_ok_for_debug_p): Revert
26427         2018-11-09 changes.
26429 2019-01-04  Jan Hubicka  <hubicka@ucw.cz>
26431         * params.def (hot-bb-count-ws-permille): Set to 990.
26433 2019-01-04  Martin Sebor  <msebor@redhat.com>
26435         PR c/88546
26436         * attribs.c (decls_mismatched_attributes): Avoid warning for attribute
26437         leaf.
26439 2019-01-04  Martin Sebor  <msebor@redhat.com>
26441         PR c/88363
26442         * doc/extend.texi (attribute alloc_align, alloc_size): Update.
26444 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
26446         * gdbinit.in: Turn off pagination for the skip commands, restore
26447         it to previous state afterwards.
26449 2019-01-04  Jakub Jelinek  <jakub@redhat.com>
26451         PR target/88594
26452         * config/i386/i386.c (ix86_expand_divmod_libfunc): Use mode instead
26453         of GET_MODE (opN) as modes of the libcall arguments.
26455 2019-01-04  Jan Beulich  <jbeulich@suse.com>
26457         * config/i386/sse.md
26458         (<avx512>_cmp<mode>3<mask_scalar_merge_name><round_saeonly_name>,
26459         <avx512>_cmp<mode>3<mask_scalar_merge_name>,
26460         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26461         <avx512>_ucmp<mode>3<mask_scalar_merge_name>,
26462         avx512f_vmcmp<mode>3<round_saeonly_name>,
26463         avx512f_vmcmp<mode>3_mask<round_saeonly_name>,
26464         avx512f_maskcmp<mode>3,
26465         <avx512>_cvt<ssemodesuffix>2mask<mode>,
26466         <avx512>_cvt<ssemodesuffix>2mask<mode>,
26467         *<avx512>_cvtmask2<ssemodesuffix><mode>,
26468         *<avx512>_cvtmask2<ssemodesuffix><mode>,
26469         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26470         <avx512>_eq<mode>3<mask_scalar_merge_name>_1,
26471         <avx512>_gt<mode>3<mask_scalar_merge_name>,
26472         <avx512>_gt<mode>3<mask_scalar_merge_name>,
26473         <avx512>_testm<mode>3<mask_scalar_merge_name>,
26474         <avx512>_testnm<mode>3<mask_scalar_merge_name>,
26475         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext,
26476         *<avx512>_testm<VI1248_AVX512VLBW:mode>3_zext_mask,
26477         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext,
26478         *<avx512>_testnm<VI1248_AVX512VLBW:mode>3_zext_mask,
26479         avx512cd_maskb_vec_dup<mode>,
26480         avx512cd_maskw_vec_dup<mode>,
26481         avx512dq_fpclass<mode><mask_scalar_merge_name>,
26482         avx512dq_vmfpclass<mode>,
26483         avx512vl_vpshufbitqmb<mode><mask_scalar_merge_name>): Use =k
26484         instead of =Yk.
26486 2019-01-03  Martin Sebor  <msebor@redhat.com>
26488         PR tree-optimization/88659
26489         * calls.c (maybe_warn_nonstring_arg): Avoid assuming maxlen is set.
26491 2019-01-03  Aaron Sawdey  <acsawdey@linux.ibm.com>
26493         * config/rs6000/rs6000-string.c (expand_block_move): Don't use
26494         unaligned vsx and avoid lxvd2x/stxvd2x.
26495         (gen_lvx_v4si_move): New function.
26497 2019-01-03  Tom de Vries  <tdevries@suse.de>
26499         * config/nvptx/nvptx.c (MACH_VECTOR_LENGTH, MACH_MAX_WORKERS): Define.
26500         (init_axis_dim, nvptx_mach_max_workers, nvptx_mach_vector_length): New
26501         function.
26502         * config/nvptx/nvptx.h (struct machine_function): Add axis_dims.
26504 2019-01-03  Tom de Vries  <tdevries@suse.de>
26506         * config/nvptx/nvptx.c (struct offload_attrs): New.
26507         (populate_offload_attrs): New function.  Factor mask extraction out of
26508         nvptx_reorg.  Add extraction of dimensions.
26509         (nvptx_reorg): Use populate_offload_attrs.
26511 2019-01-03  Tom de Vries  <tdevries@suse.de>
26513         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): Add early-out
26514         cases for oacc_min_dims_p and routine_p.  Add asserts for
26515         oacc_default_dims_p and offload_region_p.
26517 2019-01-03  Tom de Vries  <tdevries@suse.de>
26519         * config/nvptx/nvptx.c (nvptx_goacc_validate_dims_1): New function,
26520         factored out of ...
26521         (nvptx_goacc_validate_dims): ... here.
26523 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
26525         PR tree-optimization/85574
26526         * tree-ssa-uncprop.c (struct equiv_hash_elt): Remove unused
26527         structure.
26528         (struct ssa_equip_hash_traits): Declare.
26529         (val_ssa_equiv): Use custom hash traits using operand_equal_p.
26531 2019-01-03  Jakub Jelinek  <jakub@redhat.com>
26533         PR debug/88644
26534         * dwarf2out.c (modified_type_die): If type is equal to sizetype,
26535         change it to qualified_type.
26537 2019-01-03  Jan Hubicka  <hubicka@ucw.cz>
26539         * ipa-utils.c (scale_ipa_profile_for_fn): Break out from ...
26540         (ipa_merge_profiles): ... here; do not ICE on thunks and aliases.
26542 2019-01-02  Martin Sebor  <msebor@redhat.com>
26543             Jeff Law  <law@redhat.com>
26545         * gimple-fold.c (strlen_range_kind): Remove SRK_LENRANGE_2.
26546         (get_range_strlen_tree): Update appropriately.
26547         (get_range_strlen)
26548         * gimple-fold.h (get_range_strlen): Drop unused last argument.
26550         * gimple-fold.c (gimple_fold_builtin_strlen): Use set_strlen_range
26551         rather than set_range_info.
26552         * tree-ssa-strlen.c (set_strlen_range): Extracted from
26553         maybe_set_strlen_range.  Handle potentially boundary crossing
26554         cases more conservatively.
26555         (maybe_set_strlen_range): Parts refactored into set_strlen_range.
26556         Call set_strlen_range.
26557         * tree-ssa-strlen.h (set_strlen_range): Add prototype.
26559         PR middle-end/88663
26560         * gimple-fold.c (get_range_strlen): Update prototype to no longer
26561         need the flexp argument.
26562         (get_range_strlen_tree): Drop flexp argument.  Drop flexp argument
26563         from calls to get_range_strlen.  Update comments.  Just update
26564         VAL for an unterminated const char array and let the reset of the
26565         code handle it normally.  No longer try to set *flexp.  Adjust
26566         return value.
26567         (get_range_strlen): Update for the new get_range_strlen API.
26568         (get_maxval_strlen): Similarly.
26569         (gimple_fold_builtin_strlen): Handle update meaning of return value
26570         from get_range_strlen.
26571         * gimple-ssa-sprintf.c (get_string_length): Update for the new
26572         get_range_strlen API.
26574 2019-01-02  Jan Hubicka  <hubicka@ucw.cz>
26576         PR lto/88130
26577         * varpool.c (varpool_node::ctor_useable_for_folding_p): Also return
26578         false at WPA time when body was removed.
26580 2019-01-02  Martin Liska  <mliska@suse.cz>
26582         PR tree-optimization/88650
26583         * predict.c (set_even_probabilities): Calculate probability
26584         remainer only when really used.
26586 2019-01-02  Richard Biener  <rguenther@suse.de>
26588         PR middle-end/88651
26589         * tree-data-ref.c (analyze_subscript_affine_affine): Use
26590         widest_ints when mangling max_stmt_execution results.
26592 2019-01-02  Richard Biener  <rguenther@suse.de>
26594         PR tree-optimization/88621
26595         * tree-ssa-loop-im.c (gather_mem_refs_stmt): Fix pastos, avoid
26596         bitfields when canoncalizing.
26598 2019-01-02  Richard Biener  <rguenther@suse.de>
26600         PR target/87545
26601         * config/i386/x86-tune-costs.h (intel_cost): Adjust
26602         cost of cheap SSE instruction.
26604 2019-01-02  Richard Biener  <rguenther@suse.de>
26606         PR ipa/85574
26607         * ipa-icf.h (sem_item_optimizer::sort_congruence_split): Declare.
26608         * ipa-icf.c (sem_item_optimizer::sort_congruence_split): New
26609         function.
26610         (sem_item_optimizer::do_congruence_step_f): Sort the congruence
26611         set after UIDs before splitting them.
26613 2019-01-01  Martin Sebor  <msebor@redhat.com>
26614             Jeff Law  <law@redhat.com>
26616         * gimple-fold.c (get_range_strlen_tree): Record if the computed
26617         length is optimistic.  If it is, then arrange to compute the
26618         conservative length as well.
26620         * gimple-fold.h (get_range_strlen): Update prototype.
26621         * builtins.c (check_access): Update call to get_range_strlen to use
26622         c_strlen_data pointer.   Change various variable accesses to instead
26623         pull data from the c_strlen_data structure.
26624         (check_strncat_sizes, expand_builtin_strncat): Likewise.
26625         * calls.c (maybe_warn_nonstring_arg): Likewise.
26626         * tree-ssa-strlen.c (maybe_diag_stxncpy_trunc): Likewise.  Reset
26627         minimum length if maximum lengh is unknown.
26628         * gimple-ssa-sprintf.c (get_string_length): Likewise.  Drop code
26629         that used c_strlen, it's no longer needed.  Restructure slightly.
26630         (format_string): Set unlikely range appropriately.
26631         * gimple-fold.c (get_range_strlen): Update comments.  Fix minor
26632         formatting issues.
26633         (get_range_strlen): Accept c_strlen_data pointer for external
26634         call sites as well.  Pass through to call to internal get_range_strlen.
26635         Adjust minlen, maxlen and maxbound as needed.
26636         (get_maxval_strlen): Update comments.
26637         (gimple_fold_builtin_strlen): Update call to get_range_strlen
26638         to use c_strlen_data pointer.  Change variable accesses to instead
26639         use c_strlen_data data members.
26641         * gimple-fold.c (get_range_strlen): Update prototype.
26642         (get_range_strlen_tree): Update prototype.  Drop minlen/maxlen
26643         local variables.  Use pdata to return information to caller.
26644         Update calls to get_range_strlen.  Update pdata->maxbound.
26645         (get_range_strlen -- static version): Similarly.
26646         (get_range_strlen -- extern version): Update for internal
26647         get_range_strlen API change.  Convert to external data format.
26648         (get_maxval_strlen): Similarly.
26650 2019-01-01  Jan Hubicka  <hubicka@ucw.cz>
26652         * coverage.c (get_coverage_counts): Use current_function_decl.
26653         * profile.c (read_thunk_profile): New function.
26654         (branch_prob): Add THUNK parameter.
26655         * tree-profile.c (tree_profiling): Handle thunks.
26656         * value-prof.c (init_node_map): Handle thunks.
26657         * value-prof.h (branch_prob): Upate prototype.
26658         (read_thunk_profile): Declare.
26660 2019-01-01  Jakub Jelinek  <jakub@redhat.com>
26662         Update copyright years.
26664         * gcc.c (process_command): Update copyright notice dates.
26665         * gcov-dump.c (print_version): Ditto.
26666         * gcov.c (print_version): Ditto.
26667         * gcov-tool.c (print_version): Ditto.
26668         * gengtype.c (create_file): Ditto.
26669         * doc/cpp.texi: Bump @copying's copyright year.
26670         * doc/cppinternals.texi: Ditto.
26671         * doc/gcc.texi: Ditto.
26672         * doc/gccint.texi: Ditto.
26673         * doc/gcov.texi: Ditto.
26674         * doc/install.texi: Ditto.
26675         * doc/invoke.texi: Ditto.
26677 Copyright (C) 2019 Free Software Foundation, Inc.
26679 Copying and distribution of this file, with or without modification,
26680 are permitted in any medium without royalty provided the copyright
26681 notice and this notice are preserved.